Podcasts: en español solamente, y se acuerdan de dónde ibas
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Música tiene una sección **Podcasts**: programas por categoría —Salud y fitness, Deporte, Comedia, Noticias, Historia, Crímenes reales, Ciencia, Tecnología, Sociedad y cultura, Negocios, Ficción, Educación, Música, Ocio— que suenan mientras entrenás y siguen donde los dejaste. Sin dependencias nuevas y sin clave de API: el directorio de Apple es público. **En español se comprueba, no se supone.** La tienda dice dónde se *vende* un podcast, no en qué idioma está —en el ranking español de comedia hay uno en catalán y en el argentino uno en inglés—, así que se lee el `<language>` del feed de cada programa (los primeros 64 KB, con una petición `Range`: el idioma está en las primeras líneas) y se descarta lo que no sea español. Un feed sin etiqueta se queda: feeds genuinamente españoles la omiten, y tirarlos por una omisión sería sacar podcasts buenos de la lista. La respuesta cuenta cuántos quedaron afuera y por qué (`skipped`), así que una lista corta nunca es un misterio, y abrir un programa en otro idioma se contesta con `spanish:false` en vez de con una lista vacía. Es la otra mitad de la radio y es lo contrario en todo lo que le importa al reproductor: un podcast es un **archivo** —tiene principio, final y un minuto en el que ibas—. Por eso hay un módulo de reglas puras (`lib/podcast-view.js`: dónde retomar, qué cuenta como escuchado, cuál sigue, cuántas posiciones se guardan) y por eso `lib/radio-player.js` pasa a ser `lib/player.js`: **un solo elemento de audio** para las dos cosas, que es lo que impide que una emisora y un episodio suenen a la vez. La barra crece línea de progreso, −15 s, +30 s, siguiente episodio y reloj; la posición se guarda por perfil (con tope de 200, lo más nuevo primero) en pausa, al parar, al terminar y cuando la app se va al fondo, porque con la pantalla bloqueada iOS suspende los temporizadores y un guardado sólo desde el tick perdería lo escuchado con el teléfono guardado. Media Session muestra episodio, programa y progreso en la pantalla bloqueada. Nada se descarga y nada pasa por el servidor: el episodio llega como la URL del `enclosure` y el audio va de quien lo publica al teléfono. Acá no hay lista blanca posible —un feed vive en cualquier host—, así que la puerta es **https, host real y nunca una dirección privada**, comprobada en la URL y en dónde terminó el pedido, con el cuerpo leído a tope y la conexión cortada al llegar: este contenedor vive adentro de una casa. Verificado con datos reales: 20 programas en español por categoría (idiomas es, es-ES, es-mx), un feed de 40 episodios parseado, un feed en inglés contestado como `spanish:false` y la dirección de metadatos rechazada con 400 sin hacer el pedido. Fuera de los podcasts: la página de la API ocultaba `health` y `music` enteras —el generador sólo dibuja las secciones de su tabla de etiquetas—, así que ahora están, con radio y podcasts incluidas.
This commit is contained in:
1 parent
a3e13df279
commit
22654c61fc
31 files changed
+3687
-360
No files matched your search
+609
-2
@@ -207,6 +207,8 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
|
||||
<a class="side-link" href="#auth"><b>Auth</b><span>Passkeys & sessions</span></a>
|
||||
<a class="side-link" href="#pairing"><b>Pairing</b><span>Connect the mobile app</span></a>
|
||||
<a class="side-link" href="#data"><b>Data</b><span>State sync</span></a>
|
||||
<a class="side-link" href="#health"><b>Health</b><span>Apple Health metrics & the second opinion</span></a>
|
||||
<a class="side-link" href="#music"><b>Música</b><span>Playlists, radio & podcasts</span></a>
|
||||
<a class="side-link" href="#push"><b>Push</b><span>Notifications & rest timer</span></a>
|
||||
<a class="side-link" href="#activity"><b>Activity</b><span>Live presence</span></a>
|
||||
<a class="side-link" href="#admin"><b>Admin</b><span>Users, invites, audit log</span></a>
|
||||
@@ -232,7 +234,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
|
||||
<p class="api-facts">
|
||||
<span>OpenAPI 3.1.0</span>
|
||||
<span>KuentaGYM v1.3.8</span>
|
||||
<span>41 endpoints</span>
|
||||
<span>43 endpoints</span>
|
||||
<span>AGPL-3.0-or-later</span>
|
||||
</p>
|
||||
|
||||
@@ -317,7 +319,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">Instance flags.<span class="r-sig">{ invite_only: boolean, allow_guest: boolean, features: ("vitals" | "vitals.hours" | "vitals.receipt" | "music.lookup" | "radio" | "insights")[], coach: object }</span></span>
|
||||
<span class="p-desc">Instance flags.<span class="r-sig">{ invite_only: boolean, allow_guest: boolean, features: ("vitals" | "vitals.hours" | "vitals.receipt" | "music.lookup" | "radio" | "podcasts" | "insights")[], coach: object }</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -715,6 +717,505 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="api-sec" id="health">
|
||||
<h2>Health</h2>
|
||||
<p class="sub">Apple Health metrics ingested from an iPhone (Health Auto Export automations) — per profile, write-only for the phone's ingest key</p>
|
||||
<div class="eps">
|
||||
|
||||
<details class="ep" id="op-vitalsGet">
|
||||
<summary>
|
||||
<span class="m get">GET</span>
|
||||
<span class="ep-path"><code>/api/vitals</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">The caller's Apple Health metrics, as per-day aggregates</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>What the Salud view renders: one entry per metric, one bucket per day, and every bucket carrying every numeric field HAE sent under the name it used (<code>qty</code>, <code>Min</code>/<code>Avg</code>/<code>Max</code>, <code>systolic</code>/<code>diastolic</code>, <code>asleep</code>/<code>inBed</code>/<code>core</code>/<code>deep</code>/<code>rem</code>…), already summed and averaged for that day.</p>
|
||||
<p>The server deliberately does not decide what "steps today" means — which field a card shows is a presentation rule (frontend <code>lib/vitals-view.js</code>), so a metric HAE adds later needs no change here.</p>
|
||||
<p>A session is always required: the ingest key is write-only, so a key that leaks out of a phone can add to a profile's health file and still cannot read it back.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
<p class="ep-h">Query parameters</p><div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">days</span>
|
||||
<span class="p-type">integer <span class="p-hint">(1–400, default 90)</span></span>
|
||||
<span class="p-desc">Calendar days to return, including today.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">The stored metrics for the window, oldest day first.<span class="r-sig">{ ok: boolean, days: integer, key: string, updatedAt: integer, last: object, metrics: object, workouts: object[] }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-vitalsClear">
|
||||
<summary>
|
||||
<span class="m delete">DELETE</span>
|
||||
<span class="ep-path"><code>/api/vitals</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">Delete the caller's health data, or one metric of it</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>Removes the profile's health file and nothing else: the workout history, the account and the ingest key are untouched, so a phone needs no re-configuring to sync again.</p>
|
||||
<p>With <code>?metric=</code> it forgets <b>one</b> measurement instead, days and hours included, and leaves every other metric in place — the answer to "these numbers look wrong, start this one over". It is a reset rather than a loss whenever the automation's Date Range is wider than a day: the next sync sends that metric again from Apple Health. A metric the profile does not have answers <code>200</code> with <code>metric: null</code>, not an error.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
<p class="ep-h">Query parameters</p><div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">metric</span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">The metric name exactly as HAE wrote it (<code>step_count</code>, <code>heart_rate</code>…). Omit it to clear everything.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">Deleted (also when there was nothing stored).<span class="r-sig">{ ok: boolean }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-vitalsHours">
|
||||
<summary>
|
||||
<span class="m get">GET</span>
|
||||
<span class="ep-path"><code>/api/vitals/hours</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">One metric's hours on one day</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>The detail behind a card: the hourly buckets the phone sent for a single metric on a single day, oldest first, each carrying the same per-field aggregates a day does.</p>
|
||||
<p>This is a separate request on purpose. The hours are the bulky part of health data (24 buckets per metric per day), and they are only interesting once somebody taps a card, so a screen listing forty metrics fetches none of them.</p>
|
||||
<p>A day the automation grouped by Day has no hours and comes back as an empty list rather than a fabricated one: the honest answer to "what did the hours look like" for a payload that never carried hours is that the automation does not send them. Set Time Grouping to <b>Hours</b> in Health Auto Export to keep them — the day remains the sum of its hours, so nothing is counted twice.</p>
|
||||
<p>Session only, like <code>GET /api/vitals</code>: the ingest key is write-only.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
<p class="ep-h">Query parameters</p><div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">metric<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">The metric name exactly as HAE wrote it (<code>step_count</code>, <code>heart_rate</code>…).</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">day<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">A calendar day, in the phone's own date, as <code>YYYY-MM-DD</code>.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">The hours stored for that metric and day (empty when there are none).<span class="r-sig">{ ok: boolean, metric: string, day: string, units: string, hours: object[] }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-insightsGet">
|
||||
<summary>
|
||||
<span class="m get">GET</span>
|
||||
<span class="ep-path"><code>/api/insights</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">The profile's last second opinion, if the instance has one</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>Whether this instance is configured for a second opinion at all (<code>configured</code>, false unless <code>JEV_API_KEY</code> or <code>OPENCODE_API_KEY</code> is set), what was judged last, whether that judgment is still about the data on screen, and what is left of today's budget.</p>
|
||||
<p>The judgment itself is a small object: one entry per question the server asked, each with the option or level the model chose and the probability it put there. A question it did not answer is <code>null</code> — the server never fills a gap with a guess, and the screen says the question went unanswered rather than drawing a zero.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
<p class="ep-h">Query parameters</p><div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">raw</span>
|
||||
<span class="p-type">"1"</span>
|
||||
<span class="p-desc">Include the gateway's own response body, exactly as it arrived. Debugging detail: the default response leaves it out, because a screen polling this does not need it.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">The state of the feature and the last judgment.<span class="r-sig">{ ok: boolean, configured: boolean, model: string, host: string, insight: object, freshness: object, budget: object }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-insightsAsk">
|
||||
<summary>
|
||||
<span class="m post">POST</span>
|
||||
<span class="ep-path"><code>/api/insights</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">Ask for a second opinion about this profile</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>Builds a state from the profile's own data — a week of every health metric it has, the sets per body part over four weeks, the last few sessions, <b>the whole training history per exercise</b> (sessions, the estimate of the best set then and now, one point per session, and where it has stalled), the weekly load and volume of the last ten weeks, the newest weigh-in, and the Coach intake's goal and limitations note — sends it to Jev (TypeSafe's System One model, through the OpenCode Zen gateway) with four typed questions, and stores the answers.</p>
|
||||
<p><b>What leaves the instance is decided server-side and is aggregates only</b>: no name, no workout titles, no chat, and no identifier of a person. The exceptions are deliberate and small: the Coach intake's <code>limitations</code> note, because "bad shoulder" changes the answer, and the <b>library id of an exercise that has stopped progressing</b>, because a question about which exercise to change has to name something the app can edit — a library id is a row in a public dataset, not an identifier of anybody. The one piece of the person's own writing that goes is the intake's <code>limitations</code> field, because "bad shoulder" changes the answer; the sheet in front of the button lists exactly what will be sent before it is sent.</p>
|
||||
<p>It costs a request, so it is never on a timer: the call is the ask, and the budget (<code>per profile per day</code>, plus a ten-minute floor) is enforced here rather than trusted to the client. A profile with no health data and no training still gets an answer — the questions that cannot be answered are simply not asked.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">The judgment, parsed. Every question the model left unanswered is null.<span class="r-sig">{ ok: boolean, model: string, host: string, insight: object, freshness: object, budget: object, sent: object }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">400</span>
|
||||
<span class="p-desc">The instance has no key configured — the message names the variable to set.</span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">429</span>
|
||||
<span class="p-desc">Today's budget is spent, or ten minutes have not passed since the last ask.</span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s5">502</span>
|
||||
<span class="p-desc">The gateway refused or failed; the message carries what it said.</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-vitalsIngest">
|
||||
<summary>
|
||||
<span class="m post">POST</span>
|
||||
<span class="ep-path"><code>/api/vitals/ingest</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">Receive a Health Auto Export JSON export</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>The endpoint an iOS automation posts to. In Health Auto Export: Automation Type <b>REST API</b>, URL = this endpoint, header <code>Authorization: Bearer <ingest key></code> (from <code>POST /api/vitals/key</code>), Export Format <b>JSON</b>, Export Version <b>2</b>, Summarize Data <b>On</b>, Time Grouping <b>Hours</b> (or <b>Days</b> for totals with nothing behind them), Date Range <b>Previous 7 Days</b> — with the default range every sync carries today only, and the past is never in the file.</p>
|
||||
<p>The merge is idempotent, which is what makes a five-minute cadence safe:</p>
|
||||
<p>* A payload whose datapoints all sit on midnight is HAE's own day grouping, and a day total <i>replaces</i> the day it names — so the same day re-sent all afternoon converges on the day's total instead of adding up. * A payload whose datapoints all sit on the hour is its hour grouping: the <i>hour</i> is replaced for the same reason (the hour in progress grows on every run), and the day is recomputed as the sum of its hours, so the day and the hourly detail can never disagree. * Anything else is a real sample: it is identified by its instant plus its numbers and is counted once, and it also lands in its own hour, which is where intraday detail comes from. Repeats come back as <code>duplicates</code>.</p>
|
||||
<p>CSRF-exempt: the request carries its own credential in a header and has no session to borrow.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
|
||||
<p class="ep-h">Request body <span class="p-hint">(JSON)</span></p>
|
||||
<pre><code>{
|
||||
"data": {
|
||||
"metrics": [
|
||||
{
|
||||
"name": "step_count",
|
||||
"units": "count",
|
||||
"data": [
|
||||
{
|
||||
"qty": 12481,
|
||||
"date": "2026-09-03 00:00:00 +0200"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}</code></pre>
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">Accepted — including an export with nothing in it, because a scheduled automation that fires when there is nothing to report is not a failure.<span class="r-sig">{ ok: boolean, ts: integer, received: object, stored: object }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">400</span>
|
||||
<span class="p-desc">Not a Health Auto Export JSON export (or not JSON at all).<span class="r-sig"><code>{"error":"not a Health Auto Export JSON export"}</code></span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No ingest key, an unknown or rotated key, or a disabled account.<span class="r-sig"><code>{"error":"invalid ingest key"}</code></span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">413</span>
|
||||
<span class="p-desc">Body over 32 MB. Group by days in HAE, or select fewer metrics.<span class="r-sig"><code>{"error":"body too large"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-vitalsKeyCreate">
|
||||
<summary>
|
||||
<span class="m post">POST</span>
|
||||
<span class="ep-path"><code>/api/vitals/key</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">Get the profile's ingest key, creating it on first use</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>Idempotent: a second call returns the key that exists rather than invalidating the configuration already pasted into the phone.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">The ingest key.<span class="r-sig">{ ok: boolean, key: string }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-vitalsKeyRotate">
|
||||
<summary>
|
||||
<span class="m post">POST</span>
|
||||
<span class="ep-path"><code>/api/vitals/key/rotate</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">Replace the profile's ingest key</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>The old key stops working everywhere at once. Stored health data is untouched; the phone stops syncing until the new key is pasted in. Separate from the session token on purpose — losing a phone should not sign you out of the app.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">A new key.<span class="r-sig">{ ok: boolean, key: string }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="api-sec" id="music">
|
||||
<h2>Música</h2>
|
||||
<p class="sub">Música — reading a public Apple Music page for a saved playlist's card, the live radio station directory, and the Spanish-language podcast directory. Audio is never proxied by this server: a station arrives as a resolved stream URL, an episode as the publisher's own file URL, and the phone talks to the station or the publisher directly.</p>
|
||||
<div class="eps">
|
||||
|
||||
<details class="ep" id="op-radioGet">
|
||||
<summary>
|
||||
<span class="m get">GET</span>
|
||||
<span class="ep-path"><code>/api/radio</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">Live radio stations for a genre, with their stream URLs resolved</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>What the <b>Radio</b> section of the Música screen draws. Every station arrives with the URL to hand an <code><audio></code> element already resolved — the one non-obvious decision here, and it is about iOS: audio may only start <i>inside</i> the tap that asked for it, so anything asynchronous between the finger and the <code>play()</code> is a press that quietly does nothing.</p>
|
||||
<p>The audio never passes through this server. The list is the whole feature on this side: the phone then talks to the station directly, so this instance spends no bandwidth and keeps no copy of anything. Sources are SomaFM (commercial-free) and Radio Paradise for the curated picks, and the public radio-browser directory for the rest, filtered to HTTPS and to codecs a browser plays without a library (HLS streams are skipped — that would mean shipping a player library).</p>
|
||||
<p>A session is required. Not to protect the stations — they are public — but because this container sits on the owner's own network and fetches on behalf of whoever asks.</p>
|
||||
<p>An unknown or missing <code>genre</code> is not an error: it falls back to the first genre.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
<p class="ep-h">Query parameters</p><div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">genre</span>
|
||||
<span class="p-type">"workout" | "techno" | "rnb" | "latin" | "hiphop" | "reggae" | "chill" | "jazz" | "rock" | "electronic"</span>
|
||||
<span class="p-desc">Genre key. Missing or unrecognised falls back to <code>workout</code>.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">The genres for the chips, and the stations for the one that was asked for.<span class="r-sig">{ ok: boolean, genres: object[], genre: string, label: string, stations: <a href="#schema-RadioStation">RadioStation</a>[] }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-radioNow">
|
||||
<summary>
|
||||
<span class="m get">GET</span>
|
||||
<span class="ep-path"><code>/api/radio/now</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">What a station says it is playing</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>The line under the station's name in the player bar, and the metadata the lock screen shows. Only <b>SomaFM</b> and <b>Radio Paradise</b> publish this; for anything else the answer is <code>now: null</code> and the bar shows the station itself rather than inventing a track.</p>
|
||||
<p>The station is rebuilt from <code>src</code> + <code>id</code> rather than accepted as an object, and the id is checked against a plain-id pattern, because the id is used to build a URL this process fetches: without that, a session would be enough to make the api a request proxy for anything on the owner's network. The two known sources are the only ones accepted.</p>
|
||||
<p>The client polls this every 45 seconds while something plays — the screen's own timer, so when iOS suspends it on a locked screen the caption freezes and the music does not.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
<p class="ep-h">Query parameters</p><div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">src<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">"soma" | "paradise"</span>
|
||||
<span class="p-desc">Which service the station belongs to.</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">id<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">The station's id at that service (a SomaFM channel like <code>beatblender</code>, or a Radio Paradise mix like <code>main</code>).</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">The current track, or <code>null</code> when the station does not publish one.<span class="r-sig">{ ok: boolean, now: object }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">400</span>
|
||||
<span class="p-desc">No such station — an unknown <code>src</code>, or an <code>id</code> that is not a plain id.</span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-podcastsGet">
|
||||
<summary>
|
||||
<span class="m get">GET</span>
|
||||
<span class="ep-path"><code>/api/podcasts</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">Spanish-language podcast shows for a category</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>What the <b>Podcasts</b> section of the Música screen draws. Apple's public podcast directory (no API key, no account) supplies the storefront charts per category and the feed URL behind each show; the episodes themselves come from the publisher's own RSS, fetched by <code>GET /api/podcasts/show</code>.</p>
|
||||
<p><b>Spanish only, and checked rather than assumed.</b> A storefront says a podcast is sold in Spain or Mexico, which is not the same as being in Spanish — the Spanish comedy chart carries a Catalan show, the Argentine one an English show. So each show's feed is read (its first 64 KB, with a <code>Range</code> request) and its <code><language></code> decides: <code>es</code>, <code>es-ES</code>, <code>es-419</code> and <code>spa</code> are kept, <code>ca</code> and <code>en</code> are dropped, and a feed that declares no language at all is kept too — genuinely Spanish feeds omit the tag, and dropping them over an omission would quietly remove good podcasts. <code>skipped</code> reports how many went each way, so a short list is never a mystery.</p>
|
||||
<p>The audio never passes through this server: an episode is a file URL in the publisher's enclosure, handed to the phone. What this route costs is server-side requests to Apple and to each publisher's feed, so the answer is cached for thirty minutes.</p>
|
||||
<p>A session is required. Not to protect the shows — they are public — but because this container sits on the owner's own network and fetches on behalf of whoever asks.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
<p class="ep-h">Query parameters</p><div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">category</span>
|
||||
<span class="p-type">"fitness" | "sports" | "comedy" | "news" | "history" | "truecrime" | "science" | "tech" | "society" | "business" | "fiction" | "education" | "music" | "leisure"</span>
|
||||
<span class="p-desc">Category key. Missing or unrecognised falls back to <code>fitness</code>.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">The categories for the chips, and the Spanish shows in the one asked for.<span class="r-sig">{ ok: boolean, categories: object[], category: string, label: string, shows: <a href="#schema-PodcastShow">PodcastShow</a>[], skipped: object }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-podcastsShow">
|
||||
<summary>
|
||||
<span class="m get">GET</span>
|
||||
<span class="ep-path"><code>/api/podcasts/show</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">One show's episodes, read out of the publisher's feed</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>The episode list behind a show, newest first, from the publisher's own RSS — the same feed every podcast app in the world reads. Each episode carries the <code>https://</code> URL of its audio file (<code>enclosure</code>), which is what the phone plays; nothing is downloaded by this server and no audio is proxied.</p>
|
||||
<p>Two things are refused or reported rather than faked:</p>
|
||||
<ul><li><b>A URL this process will not fetch</b> is a <code>400</code>. Podcast feeds live on every host in the world, so there is no allowlist to hide behind: the rule is https, no credentials, a real hostname, and never a private address (no loopback, no <code>10.</code>/<code>192.168.</code>/<code>172.16-31.</code>, no link-local, no IPv6 literals, no <code>.local</code>). A redirect is checked the same way, because a redirect is otherwise the way around it.</li><li><b>A feed that is not Spanish</b> is answered with <code>200</code> and <code>spanish: false</code> (with <code>episodes: []</code>), not with a hidden empty list: the show exists, it is simply not in Spanish, and saying which of the two it is is the whole point of the field.</li></ul>
|
||||
<p>Episodes without a public audio enclosure are left out: a trailer, a subscriber-only episode or a video is a row that plays silence or nothing. Feeds are up to a few megabytes, so the body is read with a cap and the connection is dropped at it; a feed cut off mid-item simply loses that last, unparseable item.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
<p class="ep-h">Query parameters</p><div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">feed<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">The show's feed URL, exactly as <code>GET /api/podcasts</code> returned it.</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">title</span>
|
||||
<span class="p-type">string <span class="p-hint">(≤ 120 chars)</span></span>
|
||||
<span class="p-desc">The directory's name for the show, used only when the feed declares none.</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">image</span>
|
||||
<span class="p-type">string <span class="p-hint">(≤ 300 chars)</span></span>
|
||||
<span class="p-desc">The directory's artwork, used only when the feed declares none.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">The show and its episodes — or <code>show: null</code> when the feed did not answer.<span class="r-sig">{ ok: boolean, feed: string, spanish: boolean, show: object, episodes: <a href="#schema-PodcastEpisode">PodcastEpisode</a>[], error: string }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">400</span>
|
||||
<span class="p-desc">The feed URL is not one this server will fetch (not https, not a public host).</span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep" id="op-musicLookup">
|
||||
<summary>
|
||||
<span class="m post">POST</span>
|
||||
<span class="ep-path"><code>/api/music/lookup</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">Read what a public Apple Music page says about itself</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p>Apple has no API for somebody else's public playlists, so a playlist saved in KuentaGYM is a <i>link</i> — and this is how the card gets its title, artwork, track count and curator without the client fetching Apple itself (which CORS would refuse anyway).</p>
|
||||
<p>The URL must be an Apple Music link on an allowlisted host (<code>hostAllowed</code>), and so must the URL the request ends up at: a redirect is otherwise a way around the allowlist. This container sits on the owner's own network, which is the whole reason for the check.</p>
|
||||
<p>An unreachable page or a page that left the allowlist is <b>not</b> an error status — the answer is <code>200</code> with <code>meta: null</code> and an <code>error</code> naming which of the two happened, because the app's job then is to save the link anyway with the name the person typed.</p>
|
||||
<p class="ep-auth"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2.5"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg><span>Requires a session — the cookie set at sign-in, or <code>Authorization: Bearer <token></code> from mobile-app pairing.</span></p>
|
||||
|
||||
<p class="ep-h">Request body <span class="p-hint">(JSON)</span></p><div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">url<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">A public <code>https://music.apple.com/...</code> link.</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="ep-h">Responses</p>
|
||||
<div class="ptab">
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s2">200</span>
|
||||
<span class="p-desc">What the page said, or <code>meta: null</code> with a reason.<span class="r-sig">{ ok: boolean, meta: object, error: string }</span></span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">400</span>
|
||||
<span class="p-desc">Not an Apple Music link, or a plain-<code>http</code>/off-host URL. Refused before any request is made.</span>
|
||||
</div>
|
||||
<div class="prow rrow">
|
||||
<span class="r-code s4">401</span>
|
||||
<span class="p-desc">No session, expired/revoked session, or a disabled account.<span class="r-sig"><code>{"error":"not signed in"}</code></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="api-sec" id="push">
|
||||
<h2>Push</h2>
|
||||
<p class="sub">Web Push (VAPID) subscriptions, rest-timer and test pushes</p>
|
||||
@@ -1385,6 +1886,112 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep sch" id="schema-PodcastShow">
|
||||
<summary>
|
||||
<span class="sch-name"><code>PodcastShow</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">One show in the Podcasts section.</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
<p><code>feed</code> is the only field the episodes can be fetched with, and it is what the show is saved by in a profile.</p>
|
||||
<div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">feed<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">The publisher's RSS URL</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">id</span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">The directory's own id for the show.</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">name<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc"></span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">author</span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc"></span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">image</span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">HTTPS artwork.</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">genre</span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc"></span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">country</span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">The storefront it was found in: <code>es</code> or <code>mx</code>.</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">lang</span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">What the feed itself declares — <code>es</code>, <code>es-ES</code>, <code>es-mx</code>… — or null when it declares nothing, which is a "kept, unconfirmed" and not a "not Spanish".</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep sch" id="schema-PodcastEpisode">
|
||||
<summary>
|
||||
<span class="sch-name"><code>PodcastEpisode</code></span>
|
||||
<span class="ep-chev" aria-hidden="true"></span>
|
||||
<span class="ep-sum">One episode: a file with a length, which is the difference that matters against a radio station — there is a position to remember and a place to resume from.</span>
|
||||
</summary>
|
||||
<div class="ep-body">
|
||||
|
||||
<div class="ptab">
|
||||
<div class="prow">
|
||||
<span class="p-name">id<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">The feed's guid</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">title<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc"></span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">url<em class="p-req" title="required">required</em></span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">The <code>https://</code> audio file to play. Never proxied.</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">date</span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">ISO 8601</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">duration</span>
|
||||
<span class="p-type">integer</span>
|
||||
<span class="p-desc">Seconds</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">image</span>
|
||||
<span class="p-type">string</span>
|
||||
<span class="p-desc">Episode artwork</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">episode</span>
|
||||
<span class="p-type">integer</span>
|
||||
<span class="p-desc"><code>itunes:episode</code>, when the feed numbers them.</span>
|
||||
</div>
|
||||
<div class="prow">
|
||||
<span class="p-name">bytes</span>
|
||||
<span class="p-type">integer</span>
|
||||
<span class="p-desc">The enclosure's declared size.</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<details class="ep sch" id="schema-RadioStation">
|
||||
<summary>
|
||||
<span class="sch-name"><code>RadioStation</code></span>
|
||||
|
||||
Reference in new issue
Block a user