arcmira 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +19 -10
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/me/client/requests/UpdateSettingsMeRequest.d.ts +2 -2
  4. package/dist/cjs/api/resources/me/client/requests/UpdateSettingsMeRequest.js +1 -1
  5. package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorsRequest.d.ts +2 -2
  6. package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorsRequest.js +1 -1
  7. package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorsRequest.d.ts +2 -2
  8. package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorsRequest.js +1 -1
  9. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +3 -3
  10. package/dist/cjs/api/resources/transcripts/client/Client.js +3 -3
  11. package/dist/cjs/api/resources/transcripts/client/requests/GetTranscriptsRequest.d.ts +3 -3
  12. package/dist/cjs/api/resources/transcripts/types/GetTranscriptsRequestQuality.d.ts +1 -1
  13. package/dist/cjs/api/resources/transcripts/types/GetTranscriptsRequestQuality.js +1 -1
  14. package/dist/cjs/api/types/ChannelSponsorsResponse.d.ts +4 -0
  15. package/dist/cjs/api/types/EntityMomentumResponse.d.ts +4 -0
  16. package/dist/cjs/api/types/Error_.d.ts +4 -0
  17. package/dist/cjs/api/types/MeResponse.d.ts +1 -1
  18. package/dist/cjs/api/types/Monitor.d.ts +1 -1
  19. package/dist/cjs/api/types/RefusedQuote.d.ts +3 -3
  20. package/dist/cjs/api/types/TranscriptFailed.d.ts +5 -5
  21. package/dist/cjs/api/types/TranscriptFailed.js +1 -1
  22. package/dist/cjs/api/types/TranscriptJob.d.ts +10 -10
  23. package/dist/cjs/api/types/TranscriptJob.js +3 -3
  24. package/dist/cjs/api/types/TranscriptPurchaseQuote.d.ts +2 -2
  25. package/dist/cjs/api/types/TranscriptQuote.d.ts +1 -1
  26. package/dist/cjs/api/types/TranscriptRequestListResponse.d.ts +3 -0
  27. package/dist/cjs/api/types/TranscriptResponse.d.ts +7 -3
  28. package/dist/cjs/api/types/TranscriptSearchResponse.d.ts +4 -0
  29. package/dist/cjs/version.d.ts +1 -1
  30. package/dist/cjs/version.js +1 -1
  31. package/dist/cli/main.js +8 -8
  32. package/dist/cli/operations.js +4 -4
  33. package/dist/esm/BaseClient.mjs +2 -2
  34. package/dist/esm/api/resources/me/client/requests/UpdateSettingsMeRequest.d.mts +2 -2
  35. package/dist/esm/api/resources/me/client/requests/UpdateSettingsMeRequest.mjs +1 -1
  36. package/dist/esm/api/resources/monitors/client/requests/CreateMonitorsRequest.d.mts +2 -2
  37. package/dist/esm/api/resources/monitors/client/requests/CreateMonitorsRequest.mjs +1 -1
  38. package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorsRequest.d.mts +2 -2
  39. package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorsRequest.mjs +1 -1
  40. package/dist/esm/api/resources/transcripts/client/Client.d.mts +3 -3
  41. package/dist/esm/api/resources/transcripts/client/Client.mjs +3 -3
  42. package/dist/esm/api/resources/transcripts/client/requests/GetTranscriptsRequest.d.mts +3 -3
  43. package/dist/esm/api/resources/transcripts/types/GetTranscriptsRequestQuality.d.mts +1 -1
  44. package/dist/esm/api/resources/transcripts/types/GetTranscriptsRequestQuality.mjs +1 -1
  45. package/dist/esm/api/types/ChannelSponsorsResponse.d.mts +4 -0
  46. package/dist/esm/api/types/EntityMomentumResponse.d.mts +4 -0
  47. package/dist/esm/api/types/Error_.d.mts +4 -0
  48. package/dist/esm/api/types/MeResponse.d.mts +1 -1
  49. package/dist/esm/api/types/Monitor.d.mts +1 -1
  50. package/dist/esm/api/types/RefusedQuote.d.mts +3 -3
  51. package/dist/esm/api/types/TranscriptFailed.d.mts +5 -5
  52. package/dist/esm/api/types/TranscriptFailed.mjs +1 -1
  53. package/dist/esm/api/types/TranscriptJob.d.mts +10 -10
  54. package/dist/esm/api/types/TranscriptJob.mjs +3 -3
  55. package/dist/esm/api/types/TranscriptPurchaseQuote.d.mts +2 -2
  56. package/dist/esm/api/types/TranscriptQuote.d.mts +1 -1
  57. package/dist/esm/api/types/TranscriptRequestListResponse.d.mts +3 -0
  58. package/dist/esm/api/types/TranscriptResponse.d.mts +7 -3
  59. package/dist/esm/api/types/TranscriptSearchResponse.d.mts +4 -0
  60. package/dist/esm/version.d.mts +1 -1
  61. package/dist/esm/version.mjs +1 -1
  62. package/llms.txt +1 -1
  63. package/package.json +7 -3
  64. package/reference.md +4 -4
  65. package/skills/arcmira/SKILL.md +4 -4
  66. package/skills/company-watch/SKILL.md +23 -16
  67. package/skills/compare-shows/SKILL.md +2 -2
  68. package/skills/find-quotes/SKILL.md +7 -7
  69. package/skills/person-research/SKILL.md +5 -5
  70. package/skills/sponsor-research/SKILL.md +5 -4
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
- # Arcmira for TypeScript and JavaScript
1
+ # Arcmira: YouTube Transcript Search
2
2
 
3
- The official `arcmira` package: a typed client for the [Arcmira API](https://arcmira.com/docs) and the `arcmira` command line. Arcmira is the search engine for the spoken web: it indexes YouTube and podcast transcripts and answers who said what, where, and when.
3
+ The official TypeScript SDK and CLI for searching indexed YouTube transcripts. Find timestamped quotes, speaker appearances, mentions, sponsors and recommendations.
4
+
5
+ [API docs](https://arcmira.com/docs) · [OpenAPI schema](https://api.arcmira.com/v1/openapi.json) · [MCP setup](https://arcmira.com/docs/mcp-server)
4
6
 
5
7
  - Zero runtime dependencies. Uses the global `fetch`, so it runs in Node 18 and later, Cloudflare Workers, Deno, Bun and browsers.
6
8
  - ESM and CommonJS builds with types.
@@ -25,17 +27,24 @@ Get a key at [arcmira.com/docs/authentication](https://arcmira.com/docs/authenti
25
27
 
26
28
  ## Premium transcripts
27
29
 
30
+ A Premium read uses credits from your plan, then your on-demand budget. `transcripts.quote({ video_id })` shows how many credits a read of the video will use, free, before you read it.
31
+
28
32
  ```ts
29
33
  import { ArcmiraClient } from "arcmira";
30
34
  const arcmira = new ArcmiraClient();
31
35
  const read = await arcmira.transcripts.get({ video_id: "dQw4w9WgXcQ", quality: "premium" });
32
- if (read.state === "ready") for (const line of read.lines ?? []) console.log(line.speaker, line.text);
33
- else console.log(`transcribing, read again in ${read.job.next_poll_seconds ?? 30} s`);
36
+ if (read.state === "ready") {
37
+ for (const line of read.lines ?? []) console.log(line.speaker, line.text);
38
+ } else if (read.state === "failed") {
39
+ throw new Error(`${read.last_attempt.status}: ${read.last_attempt.error}`);
40
+ } else {
41
+ console.log(`transcribing, read again in ${read.job.next_poll_seconds ?? 30} s`);
42
+ }
34
43
  ```
35
44
 
36
- A Premium read is one GET. When your account does not own the transcript yet, the read buys it within your plan: included credits first, then your on-demand budget, which you set in the dashboard and which is the approval. The answer is `state: "ready"` (HTTP 200) with the lines, or `state: "pending"` (HTTP 202) with the `job` while it transcribes. Read again after `Retry-After` or `job.next_poll_seconds`. Repeated and concurrent reads join the same job and never buy twice. When the last purchase failed or was refunded, the read answers `state: "failed"` (HTTP 200) with `last_attempt` and buys nothing; read with `retry: true` to buy it again. `transcripts.quote({ video_id })` prices it first, free.
45
+ A Premium read is one GET. When your account does not own the transcript yet, the read starts transcribing it and uses credits from your plan, then your on-demand budget. You set that budget in the dashboard, and it is the approval. The answer is `state: "ready"` (HTTP 200) with the lines, or `state: "pending"` (HTTP 202) with the `job` while it transcribes. Read again after `Retry-After` or `job.next_poll_seconds`. Repeated and concurrent reads join the same job and never use credits twice. When the last transcription failed or was refunded, the read answers `state: "failed"` (HTTP 200) with `last_attempt` and uses no credits; read with `retry: true` to transcribe it again, which uses credits again. `transcripts.quote({ video_id })` shows the credits first, free.
37
46
 
38
- A read the plan cannot pay for throws instead. `PaymentRequiredError` carries `quota_exceeded` or `spend_limit_exceeded`, and `ForbiddenError` carries `paid_plan_required` on a free plan. Both carry the price in `err.body.error.details.quote`.
47
+ A read your plan and budget cannot cover throws instead. `PaymentRequiredError` carries `quota_exceeded` or `spend_limit_exceeded`, and `ForbiddenError` carries `paid_plan_required` on a free plan. Both carry the price in `err.body.error.details.quote`.
39
48
 
40
49
  ```ts
41
50
  import { Arcmira } from "arcmira";
@@ -177,7 +186,7 @@ Data commands (they mirror the MCP client; filters take ids, arcmira resolve fin
177
186
  arcmira sponsors <UC id> recurring sponsors of a YouTube channel
178
187
  arcmira recommendations <ent_id> who recommends an entity on air: --kind sponsored, organic, mention or all
179
188
  arcmira episodes <UC id> newest indexed videos of a channel
180
- arcmira transcripts get <video> full transcript of one YouTube video; --quality premium buys it within your plan
189
+ arcmira transcripts get <video> full transcript of one YouTube video; --quality premium uses credits from your plan
181
190
  arcmira transcripts quote <video> free whole-video Premium price
182
191
  arcmira occurrences --channel ... ranked counts of the entities a set of channels or videos mention
183
192
  arcmira status [UC id] your plan, or a channel's coverage
@@ -223,7 +232,7 @@ Reads take ids. `--entity`, `--about`, `--by` and every entity positional take a
223
232
 
224
233
  Every dated command takes `--after` (inclusive) and `--before` (exclusive), as a date or an ISO 8601 datetime with an offset, read in UTC. September is `--after 2026-09-01 --before 2026-10-01`.
225
234
 
226
- `arcmira transcripts get <video> --quality premium` is one read. When your account does not own the transcript, the read buys it within your plan (included credits, then your on-demand budget) and exits 4 while it transcribes, naming the minutes left on stderr. Run the same command again later: it reads the same job and never buys twice. When the last purchase failed it exits 1 and names the error; add `--retry` to buy it again. A plan that cannot pay exits 1 and prints the quote. With `--json` the API body is still printed on stdout, so `arcmira transcripts get X --quality premium --json | jq` fails on the exit code under `set -o pipefail`.
235
+ `arcmira transcripts get <video> --quality premium` is one read. When your account does not own the transcript, the read starts transcribing it, using credits from your plan and then your on-demand budget, and exits 4 while it transcribes, naming the minutes left on stderr. Run the same command again later: it reads the same job and never uses credits twice. When the last transcription failed it exits 1 and names the error; add `--retry` to transcribe it again, which uses credits again. A read your plan and budget cannot cover exits 1 and prints the quote. With `--json` the API body is still printed on stdout, so `arcmira transcripts get X --quality premium --json | jq` fails on the exit code under `set -o pipefail`.
227
236
 
228
237
  `arcmira api` follows `gh api`: `-f` adds a string parameter and `-F` a typed one (`true`, `false`, `null`, numbers, `@file`, `key[]=value`). They go to the query string on GET and DELETE, and into a JSON body otherwise. A POST without `-H 'Idempotency-Key: ...'` gets a generated key; `--verbose` shows it. Reuse the same key and input to retry a write. The path may drop the `/v1` prefix.
229
238
 
@@ -231,7 +240,7 @@ Every dated command takes `--after` (inclusive) and `--before` (exclusive), as a
231
240
  - Output: data on stdout, notes and errors on stderr, no colour. `--json` prints the API response unchanged on stdout; on failure it prints `{"error":{"type","code","message","request_id",...}}` on stderr, the API's own error body or a `usage_error` in the same shape.
232
241
  - Errors: every API error names its `request_id` (quote it to support). A 401 adds `try: arcmira login`.
233
242
  - Paging: `mentions`, `recommendations` and `episodes` take `--cursor`; the next page's command is printed on stderr, and `next_cursor` is in `--json`. `arcmira api --paginate` follows every page.
234
- - Exit codes: 0 ok, 1 an API or network error (the message names the code, any unlock link, and the quote on a priced refusal), 2 a usage error (bad input, a name where an id belongs, no key, a command or flag not available yet or retired), 4 Premium is still transcribing (run the same command again later). Input is checked before any request. Exit 3 is retired with Premium preparation.
243
+ - Exit codes: 0 ok, 1 an API or network error (the message names the code, any unlock link, and the quote on a priced refusal), 2 a usage error (bad input, a name where an id belongs, no key, a command or flag not available yet or retired), 4 Premium is still transcribing (run the same command again later). Input is checked before any request. Exit 3 is retired.
235
244
  - Writes (`trackers create`, `monitors create|update|add|attach`) send a fresh `Idempotency-Key`, so the CLI's one retry never applies a write twice.
236
245
  - Reserved flags: `--dry-run`, `--force`, `-y`/`--yes`, `--profile` and `--jq` exit 2 in this version outside `arcmira setup`; their names are held for write commands to come.
237
246
  - Requests carry `User-Agent: arcmira-cli/<version>`. The SDK used on its own sends `arcmira/<version>`.
@@ -263,6 +272,6 @@ Run `npm run generate -- <path to arcmira-v1.json>` with Node 22 or newer, Pytho
263
272
 
264
273
  `fern/method-names.json` names the SDK group and method of every operation by its `operationId`; an operation it does not name, or a name for an operation the spec lacks, fails generation. The overlay combines success schemas into a `state` union and discovers cursor collections from their schemas. The installer rewrites the `exports` map in `package.json` from the generated resources. Unknown or ambiguous collections fail generation. An exact checked patch keeps request timer cleanup in `finally` until the pinned generator includes the fix. Generated source is never edited by hand.
265
274
 
266
- Run `npm test` for the SDK and CLI tests, and `npm run test:types` for the consumer type contract. Tests use local HTTP fixtures and do not purchase transcripts.
275
+ Run `npm test` for the SDK and CLI tests, and `npm run test:types` for the consumer type contract. Tests use local HTTP fixtures and use no credits.
267
276
 
268
277
  Upgrading from 0.3: see [CHANGELOG.md](./CHANGELOG.md) for every removed method and its replacement.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "arcmira",
46
- "X-Fern-SDK-Version": "0.4.0",
47
- "User-Agent": "arcmira/0.4.0",
46
+ "X-Fern-SDK-Version": "0.4.1",
47
+ "User-Agent": "arcmira/0.4.1",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -13,7 +13,7 @@ export declare namespace UpdateSettingsMeRequest {
13
13
  * Fields to change. An omitted field keeps the value the account already carries.
14
14
  */
15
15
  interface Transcripts {
16
- /** Default transcript quality for this account: captions or premium. premium reads require an existing purchase. Owned transcripts remain readable after a plan downgrade; new purchases require an eligible plan. */
16
+ /** Default transcript quality for this account: captions or premium. As a default, premium reads only transcripts the account already owns. Owned transcripts remain readable after a plan downgrade; starting new ones requires an eligible plan. */
17
17
  quality?: Transcripts.Quality | undefined;
18
18
  /** Default comma-separated caption language priority list, tried in order (e.g. "de,en"), at most 5 codes. Use asr for the first automatic track and asr-<code> for a specific one. */
19
19
  language?: string | undefined;
@@ -21,7 +21,7 @@ export declare namespace UpdateSettingsMeRequest {
21
21
  timestamps?: boolean | undefined;
22
22
  }
23
23
  namespace Transcripts {
24
- /** Default transcript quality for this account: captions or premium. premium reads require an existing purchase. Owned transcripts remain readable after a plan downgrade; new purchases require an eligible plan. */
24
+ /** Default transcript quality for this account: captions or premium. As a default, premium reads only transcripts the account already owns. Owned transcripts remain readable after a plan downgrade; starting new ones requires an eligible plan. */
25
25
  const Quality: {
26
26
  readonly Captions: "captions";
27
27
  readonly Premium: "premium";
@@ -6,7 +6,7 @@ var UpdateSettingsMeRequest;
6
6
  (function (UpdateSettingsMeRequest) {
7
7
  let Transcripts;
8
8
  (function (Transcripts) {
9
- /** Default transcript quality for this account: captions or premium. premium reads require an existing purchase. Owned transcripts remain readable after a plan downgrade; new purchases require an eligible plan. */
9
+ /** Default transcript quality for this account: captions or premium. As a default, premium reads only transcripts the account already owns. Owned transcripts remain readable after a plan downgrade; starting new ones requires an eligible plan. */
10
10
  Transcripts.Quality = {
11
11
  Captions: "captions",
12
12
  Premium: "premium",
@@ -12,7 +12,7 @@ export interface CreateMonitorsRequest {
12
12
  name: string;
13
13
  /** Desired email recipients. External recipients must confirm before delivery. Free includes one additional recipient per monitor; paid plans allow up to 20 total. Default []. */
14
14
  notify_emails?: string[];
15
- /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). Free-tier email delivery is coerced to daily regardless of the value sent. */
15
+ /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). */
16
16
  notify_frequency?: CreateMonitorsRequest.NotifyFrequency;
17
17
  /** Digest day of week. Default "monday". Consulted only by weekly digests, which are dashboard-configured today; inert for API-set frequencies. */
18
18
  digest_day?: string;
@@ -32,7 +32,7 @@ export interface CreateMonitorsRequest {
32
32
  team_id?: string;
33
33
  }
34
34
  export declare namespace CreateMonitorsRequest {
35
- /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). Free-tier email delivery is coerced to daily regardless of the value sent. */
35
+ /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). */
36
36
  const NotifyFrequency: {
37
37
  readonly Realtime: "realtime";
38
38
  readonly Hourly: "hourly";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CreateMonitorsRequest = void 0;
5
5
  var CreateMonitorsRequest;
6
6
  (function (CreateMonitorsRequest) {
7
- /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). Free-tier email delivery is coerced to daily regardless of the value sent. */
7
+ /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). */
8
8
  CreateMonitorsRequest.NotifyFrequency = {
9
9
  Realtime: "realtime",
10
10
  Hourly: "hourly",
@@ -14,7 +14,7 @@ export interface UpdateMonitorsRequest {
14
14
  name?: string;
15
15
  /** Desired email recipients. External recipients must confirm before delivery. Free includes one additional recipient per monitor; paid plans allow up to 20 total. Default []. */
16
16
  notify_emails?: string[];
17
- /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). Free-tier email delivery is coerced to daily regardless of the value sent. */
17
+ /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). */
18
18
  notify_frequency?: UpdateMonitorsRequest.NotifyFrequency;
19
19
  /** Digest day of week. Default "monday". Consulted only by weekly digests, which are dashboard-configured today; inert for API-set frequencies. */
20
20
  digest_day?: string;
@@ -34,7 +34,7 @@ export interface UpdateMonitorsRequest {
34
34
  paused?: boolean;
35
35
  }
36
36
  export declare namespace UpdateMonitorsRequest {
37
- /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). Free-tier email delivery is coerced to daily regardless of the value sent. */
37
+ /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). */
38
38
  const NotifyFrequency: {
39
39
  readonly Realtime: "realtime";
40
40
  readonly Hourly: "hourly";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.UpdateMonitorsRequest = void 0;
5
5
  var UpdateMonitorsRequest;
6
6
  (function (UpdateMonitorsRequest) {
7
- /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). Free-tier email delivery is coerced to daily regardless of the value sent. */
7
+ /** Delivery cadence. Default realtime. Values: realtime (as analysis completes), hourly (hourly digest), daily (daily digest). */
8
8
  UpdateMonitorsRequest.NotifyFrequency = {
9
9
  Realtime: "realtime",
10
10
  Hourly: "hourly",
@@ -35,7 +35,7 @@ export declare class TranscriptsClient {
35
35
  search(request: Arcmira.SearchTranscriptsRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Arcmira.TranscriptSearchResponse>;
36
36
  private __search;
37
37
  /**
38
- * Caption retrieval costs one row per started 15 minutes. quality=premium is one read: an owned transcript answers 200 ready at zero rows; otherwise this call buys the whole video within the account's plan and on-demand budget, included credits first and then on-demand money up to the account limit, and answers 202 pending with the job and Retry-After until the transcript is ready. Read again after Retry-After; repeated reads join the same purchase and never buy twice. When the last purchase for the video failed, the read answers 200 state failed with the job and last_attempt and buys nothing; retry=true buys it again. When the plan or the budget blocks, 403 paid_plan_required (with unlock) or 402 quota_exceeded or spend_limit_exceeded carries the price in quote and nothing is charged. A default-premium account with nothing owned reads captions with a note. start/end only trim the returned content; language selects caption tracks, timestamps=false returns paragraphs. Premium lines carry speaker and index, and the body carries speakers and revision.
38
+ * Caption reads use one row per started 15 minutes. quality=premium is one read. An owned transcript answers 200 ready at zero rows. Otherwise this call starts a Premium transcript of the whole video, using credits from the account's plan first and then the account's on-demand budget up to its limit, and answers 202 pending with the job and Retry-After until the transcript is ready. Read again after Retry-After; repeated reads join the same job and never charge twice. When the last Premium transcript for the video failed, the read answers 200 state failed with the job and last_attempt and charges nothing; retry=true starts a new one. When the plan or the budget blocks, 403 paid_plan_required (with unlock) or 402 quota_exceeded or spend_limit_exceeded carries the price in quote and nothing is charged. A default-premium account with nothing owned reads captions with a note. start/end only trim the returned content; language selects caption tracks, timestamps=false returns paragraphs. Premium lines carry speaker and index, and the body carries speakers and revision.
39
39
  *
40
40
  * @param {Arcmira.GetTranscriptsRequest} request
41
41
  * @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -59,7 +59,7 @@ export declare class TranscriptsClient {
59
59
  get(request: Arcmira.GetTranscriptsRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Arcmira.TranscriptResult>;
60
60
  private __get;
61
61
  /**
62
- * Optional free quote: the price a Premium read of this video would charge right now, as rows and credits, where the credits would come from, and max_on_demand_cents, the on-demand money the read would need beyond included credits within the account limit. It does not reserve funds or start generation. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
62
+ * Optional free quote: what a Premium read of this video would use right now, as rows and credits, where the credits would come from, and max_on_demand_cents, the on-demand budget the read would need beyond the plan's credits within the account limit. It does not reserve credits or budget and does not start a transcript. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
63
63
  *
64
64
  * @param {Arcmira.QuoteTranscriptsRequest} request
65
65
  * @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -81,7 +81,7 @@ export declare class TranscriptsClient {
81
81
  quote(request: Arcmira.QuoteTranscriptsRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Arcmira.TranscriptPurchaseQuote>;
82
82
  private __quote;
83
83
  /**
84
- * Your transcription requests in descending creation time and id order. limit defaults to 20 and accepts 1–100. Follow next_cursor with the same video_id, limit and credential; has_more is false and next_cursor is null on the last page. A traversal excludes requests inserted after its first page. Each entry has the same shape as the status poll plus a `title` field (the video title, null when unknown). The scheduled reconciler advances requests; reading this list never dispatches work or changes billing. In-flight entries carry `eta_seconds` and `next_poll_seconds`.
84
+ * Your transcription requests in descending creation time and id order. limit defaults to 20 and accepts 1–100. Follow next_cursor with the same video_id, limit and credential; has_more is false and next_cursor is null on the last page. A traversal excludes requests inserted after its first page. Each entry is a Premium transcript job with its processing and billing state, a `status_url` for the Premium transcript GET, and a `title` field (the video title, null when unknown). The scheduled reconciler advances requests; reading this list never dispatches work or changes billing. In-flight entries carry `eta_seconds` and `next_poll_seconds`.
85
85
  *
86
86
  * @param {Arcmira.ListRequestsTranscriptsRequest} request
87
87
  * @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -147,7 +147,7 @@ class TranscriptsClient {
147
147
  });
148
148
  }
149
149
  /**
150
- * Caption retrieval costs one row per started 15 minutes. quality=premium is one read: an owned transcript answers 200 ready at zero rows; otherwise this call buys the whole video within the account's plan and on-demand budget, included credits first and then on-demand money up to the account limit, and answers 202 pending with the job and Retry-After until the transcript is ready. Read again after Retry-After; repeated reads join the same purchase and never buy twice. When the last purchase for the video failed, the read answers 200 state failed with the job and last_attempt and buys nothing; retry=true buys it again. When the plan or the budget blocks, 403 paid_plan_required (with unlock) or 402 quota_exceeded or spend_limit_exceeded carries the price in quote and nothing is charged. A default-premium account with nothing owned reads captions with a note. start/end only trim the returned content; language selects caption tracks, timestamps=false returns paragraphs. Premium lines carry speaker and index, and the body carries speakers and revision.
150
+ * Caption reads use one row per started 15 minutes. quality=premium is one read. An owned transcript answers 200 ready at zero rows. Otherwise this call starts a Premium transcript of the whole video, using credits from the account's plan first and then the account's on-demand budget up to its limit, and answers 202 pending with the job and Retry-After until the transcript is ready. Read again after Retry-After; repeated reads join the same job and never charge twice. When the last Premium transcript for the video failed, the read answers 200 state failed with the job and last_attempt and charges nothing; retry=true starts a new one. When the plan or the budget blocks, 403 paid_plan_required (with unlock) or 402 quota_exceeded or spend_limit_exceeded carries the price in quote and nothing is charged. A default-premium account with nothing owned reads captions with a note. start/end only trim the returned content; language selects caption tracks, timestamps=false returns paragraphs. Premium lines carry speaker and index, and the body carries speakers and revision.
151
151
  *
152
152
  * @param {Arcmira.GetTranscriptsRequest} request
153
153
  * @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -234,7 +234,7 @@ class TranscriptsClient {
234
234
  });
235
235
  }
236
236
  /**
237
- * Optional free quote: the price a Premium read of this video would charge right now, as rows and credits, where the credits would come from, and max_on_demand_cents, the on-demand money the read would need beyond included credits within the account limit. It does not reserve funds or start generation. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
237
+ * Optional free quote: what a Premium read of this video would use right now, as rows and credits, where the credits would come from, and max_on_demand_cents, the on-demand budget the read would need beyond the plan's credits within the account limit. It does not reserve credits or budget and does not start a transcript. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
238
238
  *
239
239
  * @param {Arcmira.QuoteTranscriptsRequest} request
240
240
  * @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -302,7 +302,7 @@ class TranscriptsClient {
302
302
  });
303
303
  }
304
304
  /**
305
- * Your transcription requests in descending creation time and id order. limit defaults to 20 and accepts 1–100. Follow next_cursor with the same video_id, limit and credential; has_more is false and next_cursor is null on the last page. A traversal excludes requests inserted after its first page. Each entry has the same shape as the status poll plus a `title` field (the video title, null when unknown). The scheduled reconciler advances requests; reading this list never dispatches work or changes billing. In-flight entries carry `eta_seconds` and `next_poll_seconds`.
305
+ * Your transcription requests in descending creation time and id order. limit defaults to 20 and accepts 1–100. Follow next_cursor with the same video_id, limit and credential; has_more is false and next_cursor is null on the last page. A traversal excludes requests inserted after its first page. Each entry is a Premium transcript job with its processing and billing state, a `status_url` for the Premium transcript GET, and a `title` field (the video title, null when unknown). The scheduled reconciler advances requests; reading this list never dispatches work or changes billing. In-flight entries carry `eta_seconds` and `next_poll_seconds`.
306
306
  *
307
307
  * @param {Arcmira.ListRequestsTranscriptsRequest} request
308
308
  * @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -8,17 +8,17 @@ import type * as Arcmira from "../../../../index.js";
8
8
  export interface GetTranscriptsRequest {
9
9
  /** YouTube video id, 11 characters. */
10
10
  video_id: string;
11
- /** captions reads creator or automatic captions at 1 row per started 15 minutes. premium is one read: an owned transcript returns 200 state ready at zero rows; otherwise the read buys the whole video within the account's plan and on-demand budget (included credits first, then on-demand money up to the account limit) and returns 202 state pending with the job until it is ready. When the last purchase for the video failed it answers 200 state failed and buys again only with retry=true. 402 quota_exceeded or spend_limit_exceeded and 403 paid_plan_required carry the price in quote. It never substitutes captions. Default captions unless changed in account settings. */
11
+ /** captions reads creator or automatic captions at 1 row per started 15 minutes. premium is one read. An owned transcript returns 200 state ready at zero rows. Otherwise the read starts a Premium transcript of the whole video, using credits from the account's plan first and then the account's on-demand budget up to its limit, and returns 202 state pending with the job until it is ready. When the last Premium transcript for the video failed it answers 200 state failed and starts a new one only with retry=true. 402 quota_exceeded or spend_limit_exceeded and 403 paid_plan_required carry the price in quote. It never substitutes captions. Default captions unless changed in account settings. */
12
12
  quality?: Arcmira.GetTranscriptsRequestQuality;
13
13
  /** Comma-separated caption language priority list, at most 5, tried in order (e.g. "de,en"). Use asr for the first automatic track and asr-<code> for a specific one. Default en. languages[] in the response lists every track the video offers. */
14
14
  language?: string;
15
15
  /** false returns paragraphs[] of { start, text, speaker? } instead of lines[], for reading rather than citing. Default true. */
16
16
  timestamps?: boolean;
17
- /** Window start in seconds from the beginning of the video. Send start and end together. On captions the window bills only its own started 15-minute blocks; on Premium it trims an already purchased transcript; this GET does not charge. */
17
+ /** Window start in seconds from the beginning of the video. Send start and end together. On captions the window bills only its own started 15-minute blocks; on Premium it trims the returned content. An explicit Premium read is charged for the whole video from the account's plan credits and then its on-demand budget; a window does not reduce that charge. */
18
18
  start?: number | null;
19
19
  /** Window end in seconds, greater than start and no greater than the video duration. Send start and end together. */
20
20
  end?: number | null;
21
- /** Premium only; captions with retry=true returns invalid_query. When the last Premium purchase for this video failed, a read answers 200 state failed with the job and last_attempt and buys nothing; retry=true buys it again under the same quote, budget and one-purchase rules as the first read. While that refund is still settling (job.status refund_pending) even retry=true answers state failed. Without a failed purchase it changes nothing. */
21
+ /** Premium only; captions with retry=true returns invalid_query. When the last Premium transcript for this video failed, a read answers 200 state failed with the job and last_attempt and charges nothing; retry=true starts a new one under the same quote, budget and one-job-per-video rules as the first read. While that refund is still settling (job.status refund_pending) even retry=true answers state failed. Without a failed job it changes nothing. */
22
22
  retry?: boolean;
23
23
  /** Captions only; Premium with refresh=true returns invalid_query. Refetch the caption track from YouTube instead of serving the stored copy. Available only for videos outside our index; a pipeline-owned video refuses it with invalid_query. */
24
24
  refresh?: boolean;
@@ -1,4 +1,4 @@
1
- /** captions reads creator or automatic captions at 1 row per started 15 minutes. premium is one read: an owned transcript returns 200 state ready at zero rows; otherwise the read buys the whole video within the account's plan and on-demand budget (included credits first, then on-demand money up to the account limit) and returns 202 state pending with the job until it is ready. When the last purchase for the video failed it answers 200 state failed and buys again only with retry=true. 402 quota_exceeded or spend_limit_exceeded and 403 paid_plan_required carry the price in quote. It never substitutes captions. Default captions unless changed in account settings. */
1
+ /** captions reads creator or automatic captions at 1 row per started 15 minutes. premium is one read. An owned transcript returns 200 state ready at zero rows. Otherwise the read starts a Premium transcript of the whole video, using credits from the account's plan first and then the account's on-demand budget up to its limit, and returns 202 state pending with the job until it is ready. When the last Premium transcript for the video failed it answers 200 state failed and starts a new one only with retry=true. 402 quota_exceeded or spend_limit_exceeded and 403 paid_plan_required carry the price in quote. It never substitutes captions. Default captions unless changed in account settings. */
2
2
  export declare const GetTranscriptsRequestQuality: {
3
3
  readonly Captions: "captions";
4
4
  readonly Premium: "premium";
@@ -2,7 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.GetTranscriptsRequestQuality = void 0;
5
- /** captions reads creator or automatic captions at 1 row per started 15 minutes. premium is one read: an owned transcript returns 200 state ready at zero rows; otherwise the read buys the whole video within the account's plan and on-demand budget (included credits first, then on-demand money up to the account limit) and returns 202 state pending with the job until it is ready. When the last purchase for the video failed it answers 200 state failed and buys again only with retry=true. 402 quota_exceeded or spend_limit_exceeded and 403 paid_plan_required carry the price in quote. It never substitutes captions. Default captions unless changed in account settings. */
5
+ /** captions reads creator or automatic captions at 1 row per started 15 minutes. premium is one read. An owned transcript returns 200 state ready at zero rows. Otherwise the read starts a Premium transcript of the whole video, using credits from the account's plan first and then the account's on-demand budget up to its limit, and returns 202 state pending with the job until it is ready. When the last Premium transcript for the video failed it answers 200 state failed and starts a new one only with retry=true. 402 quota_exceeded or spend_limit_exceeded and 403 paid_plan_required carry the price in quote. It never substitutes captions. Default captions unless changed in account settings. */
6
6
  exports.GetTranscriptsRequestQuality = {
7
7
  Captions: "captions",
8
8
  Premium: "premium",
@@ -116,6 +116,10 @@ export declare namespace ChannelSponsorsResponse {
116
116
  quote?: Arcmira.RefusedQuote | undefined;
117
117
  /** On tracker_already_exists, the existing tracker id. Reuse it instead of creating another tracker. */
118
118
  existing_id?: string | undefined;
119
+ /** On tracker_limit, the trackers the plan holds. */
120
+ limit?: number | undefined;
121
+ /** On tracker_limit, the trackers the account holds now. */
122
+ count?: number | undefined;
119
123
  }
120
124
  }
121
125
  }
@@ -145,6 +145,10 @@ export declare namespace EntityMomentumResponse {
145
145
  quote?: Arcmira.RefusedQuote | undefined;
146
146
  /** On tracker_already_exists, the existing tracker id. Reuse it instead of creating another tracker. */
147
147
  existing_id?: string | undefined;
148
+ /** On tracker_limit, the trackers the plan holds. */
149
+ limit?: number | undefined;
150
+ /** On tracker_limit, the trackers the account holds now. */
151
+ count?: number | undefined;
148
152
  }
149
153
  }
150
154
  }
@@ -90,6 +90,10 @@ export declare namespace Error_ {
90
90
  quote?: Arcmira.RefusedQuote | undefined;
91
91
  /** On tracker_already_exists, the existing tracker id. Reuse it instead of creating another tracker. */
92
92
  existing_id?: string | undefined;
93
+ /** On tracker_limit, the trackers the plan holds. */
94
+ limit?: number | undefined;
95
+ /** On tracker_limit, the trackers the account holds now. */
96
+ count?: number | undefined;
93
97
  }
94
98
  }
95
99
  }
@@ -12,7 +12,7 @@ export interface MeResponse {
12
12
  email_masked: string | null;
13
13
  /** ISO 8601 time the monthly row pool resets: 00:00 UTC on the first of next month. Null on the free plan, whose rows are a lifetime pool. */
14
14
  period_resets_at: string | null;
15
- /** Plan tier, e.g. free, hobby, pro, enterprise. */
15
+ /** Plan tier, e.g. free, pro, pro_plus, ultra, enterprise. */
16
16
  tier: string;
17
17
  /** Scopes granted to this API key, e.g. read, monitors:write, trackers:write, recommendations:read. */
18
18
  scopes: string[];
@@ -9,7 +9,7 @@ export interface Monitor {
9
9
  notify_emails: string[];
10
10
  /** Every address the monitor reaches, with consent and invitation state. An account is not required to accept. */
11
11
  email_recipients?: Monitor.EmailRecipients.Item[] | undefined;
12
- /** Delivery cadence. Values: realtime (deliver immediately), hourly (hourly digest), daily (daily digest). Free tier is limited to daily. */
12
+ /** Delivery cadence. Values: realtime (deliver immediately), hourly (hourly digest), daily (daily digest). */
13
13
  notify_frequency?: string | undefined;
14
14
  /** Day of week for digest delivery. */
15
15
  digest_day?: string | undefined;
@@ -3,14 +3,14 @@ import type * as Arcmira from "../index.js";
3
3
  * The refused price, on a priced refusal: quota_exceeded, spend_limit_exceeded and paid_plan_required.
4
4
  */
5
5
  export interface RefusedQuote extends Arcmira.TranscriptQuote {
6
- /** What the purchase would charge at the current balance. Absent when no current price could be read. */
6
+ /** What the request would charge at the current balance. Absent when no current price could be read. */
7
7
  charge?: RefusedQuote.Charge | undefined;
8
- /** The on-demand money, in whole cents, this purchase needs beyond included credits at the current balance. */
8
+ /** The on-demand usage, in whole cents, this request needs beyond the plan's credits at the current balance. */
9
9
  max_on_demand_cents?: number | undefined;
10
10
  }
11
11
  export declare namespace RefusedQuote {
12
12
  /**
13
- * What the purchase would charge at the current balance. Absent when no current price could be read.
13
+ * What the request would charge at the current balance. Absent when no current price could be read.
14
14
  */
15
15
  interface Charge {
16
16
  unit: Charge.Unit;
@@ -3,9 +3,9 @@ export interface TranscriptFailed {
3
3
  quality: TranscriptFailed.Quality;
4
4
  video_id: string;
5
5
  job: Arcmira.TranscriptJob;
6
- /** The failed purchase in brief: job.status and job.error. */
6
+ /** The failed job in brief, as job.status and job.error. */
7
7
  last_attempt: TranscriptFailed.LastAttempt;
8
- /** What to do next: read again with retry=true to buy the video again, or wait while the refund settles. */
8
+ /** The next step. Read again with retry=true to start a new Premium transcript, or wait while the refund settles. */
9
9
  note: string;
10
10
  }
11
11
  export declare namespace TranscriptFailed {
@@ -14,16 +14,16 @@ export declare namespace TranscriptFailed {
14
14
  };
15
15
  type Quality = (typeof Quality)[keyof typeof Quality];
16
16
  /**
17
- * The failed purchase in brief: job.status and job.error.
17
+ * The failed job in brief, as job.status and job.error.
18
18
  */
19
19
  interface LastAttempt {
20
- /** How the last purchase ended: failed, refunded (the charge was returned), or refund_pending (the refund is still settling). */
20
+ /** How the last job ended: failed, refunded (the charge was returned), or refund_pending (the refund is still settling). */
21
21
  status: LastAttempt.Status;
22
22
  /** Why it failed. */
23
23
  error: string;
24
24
  }
25
25
  namespace LastAttempt {
26
- /** How the last purchase ended: failed, refunded (the charge was returned), or refund_pending (the refund is still settling). */
26
+ /** How the last job ended: failed, refunded (the charge was returned), or refund_pending (the refund is still settling). */
27
27
  const Status: {
28
28
  readonly Failed: "failed";
29
29
  readonly RefundPending: "refund_pending";
@@ -9,7 +9,7 @@ var TranscriptFailed;
9
9
  };
10
10
  let LastAttempt;
11
11
  (function (LastAttempt) {
12
- /** How the last purchase ended: failed, refunded (the charge was returned), or refund_pending (the refund is still settling). */
12
+ /** How the last job ended: failed, refunded (the charge was returned), or refund_pending (the refund is still settling). */
13
13
  LastAttempt.Status = {
14
14
  Failed: "failed",
15
15
  RefundPending: "refund_pending",
@@ -1,18 +1,18 @@
1
1
  /**
2
- * Your open Premium purchase for this video, when captions were served while it transcribes.
2
+ * A Premium transcript job with its processing state, charge and URL for reading the transcript again.
3
3
  */
4
4
  export interface TranscriptJob {
5
5
  /** Transcription request id (UUID). */
6
6
  id: string;
7
7
  /** YouTube video id (11 characters). */
8
8
  video_id: string;
9
- /** Coarse outcome: pending until the Premium transcript is servable (ready), the purchase failed, or it was refunded. */
9
+ /** Coarse outcome: pending until the Premium transcript is servable (ready), the job failed, or it was refunded. */
10
10
  state: TranscriptJob.State;
11
- /** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent or legacy purchase requiring accounting review), refund_pending (refund transaction must still complete), refunded (terminal failure; the charged rows were returned and the unlock this submission bought was revoked). */
11
+ /** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent, or a legacy request needing accounting review), refund_pending (refund transaction must still complete), refunded (terminal failure; the charged rows were returned and the unlock this request granted was revoked). */
12
12
  status: TranscriptJob.Status;
13
13
  /** User-facing stage: downloading folds into transcribing. Values: queued (waiting to start), transcribing (downloading or transcribing), analyzing (analysis running). Null for terminal statuses and refund_pending. */
14
14
  stage: TranscriptJob.Stage | null;
15
- /** What the purchase charged. Present on durable purchases; absent only on legacy requests. */
15
+ /** What the job charged. Absent only on legacy requests. */
16
16
  charge?: TranscriptJob.Charge | undefined;
17
17
  /** Estimated seconds until completion, re-derived from live pipeline telemetry on every poll. Only present while the request is in flight; absent on refund_pending, which has no completion ETA. */
18
18
  eta_seconds?: number | undefined;
@@ -30,7 +30,7 @@ export interface TranscriptJob {
30
30
  status_url: string;
31
31
  }
32
32
  export declare namespace TranscriptJob {
33
- /** Coarse outcome: pending until the Premium transcript is servable (ready), the purchase failed, or it was refunded. */
33
+ /** Coarse outcome: pending until the Premium transcript is servable (ready), the job failed, or it was refunded. */
34
34
  const State: {
35
35
  readonly Pending: "pending";
36
36
  readonly Ready: "ready";
@@ -38,7 +38,7 @@ export declare namespace TranscriptJob {
38
38
  readonly Refunded: "refunded";
39
39
  };
40
40
  type State = (typeof State)[keyof typeof State];
41
- /** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent or legacy purchase requiring accounting review), refund_pending (refund transaction must still complete), refunded (terminal failure; the charged rows were returned and the unlock this submission bought was revoked). */
41
+ /** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent, or a legacy request needing accounting review), refund_pending (refund transaction must still complete), refunded (terminal failure; the charged rows were returned and the unlock this request granted was revoked). */
42
42
  const Status: {
43
43
  readonly Queued: "queued";
44
44
  readonly Downloading: "downloading";
@@ -58,13 +58,13 @@ export declare namespace TranscriptJob {
58
58
  };
59
59
  type Stage = (typeof Stage)[keyof typeof Stage];
60
60
  /**
61
- * What the purchase charged. Present on durable purchases; absent only on legacy requests.
61
+ * What the job charged. Absent only on legacy requests.
62
62
  */
63
63
  interface Charge {
64
64
  unit: Charge.Unit;
65
- /** Credits this purchase charged. 0 when a prior unlock made it free. */
65
+ /** Credits this job charged. 0 when a prior unlock made it free. */
66
66
  amount: number;
67
- /** Where the credits came from: the included allowance, on-demand usage, or both. Present once the purchase is funded. */
67
+ /** Where the credits came from. included is the plan's credits, on_demand is the on-demand budget, mixed is both. Present once the job is funded. */
68
68
  from?: Charge.From | undefined;
69
69
  }
70
70
  namespace Charge {
@@ -72,7 +72,7 @@ export declare namespace TranscriptJob {
72
72
  readonly Credits: "credits";
73
73
  };
74
74
  type Unit = (typeof Unit)[keyof typeof Unit];
75
- /** Where the credits came from: the included allowance, on-demand usage, or both. Present once the purchase is funded. */
75
+ /** Where the credits came from. included is the plan's credits, on_demand is the on-demand budget, mixed is both. Present once the job is funded. */
76
76
  const From: {
77
77
  readonly Included: "included";
78
78
  readonly OnDemand: "on_demand";
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.TranscriptJob = void 0;
5
5
  var TranscriptJob;
6
6
  (function (TranscriptJob) {
7
- /** Coarse outcome: pending until the Premium transcript is servable (ready), the purchase failed, or it was refunded. */
7
+ /** Coarse outcome: pending until the Premium transcript is servable (ready), the job failed, or it was refunded. */
8
8
  TranscriptJob.State = {
9
9
  Pending: "pending",
10
10
  Ready: "ready",
11
11
  Failed: "failed",
12
12
  Refunded: "refunded",
13
13
  };
14
- /** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent or legacy purchase requiring accounting review), refund_pending (refund transaction must still complete), refunded (terminal failure; the charged rows were returned and the unlock this submission bought was revoked). */
14
+ /** Request status. Values: queued (accepted; audio download not started), downloading (fetching the video audio), transcribing (premium speech-to-text is running), analyzing (entity/commercial analysis is running), complete (premium transcript is servable via GET /v1/transcripts/{video_id}), failed (rejected intent, or a legacy request needing accounting review), refund_pending (refund transaction must still complete), refunded (terminal failure; the charged rows were returned and the unlock this request granted was revoked). */
15
15
  TranscriptJob.Status = {
16
16
  Queued: "queued",
17
17
  Downloading: "downloading",
@@ -33,7 +33,7 @@ var TranscriptJob;
33
33
  Charge.Unit = {
34
34
  Credits: "credits",
35
35
  };
36
- /** Where the credits came from: the included allowance, on-demand usage, or both. Present once the purchase is funded. */
36
+ /** Where the credits came from. included is the plan's credits, on_demand is the on-demand budget, mixed is both. Present once the job is funded. */
37
37
  Charge.From = {
38
38
  Included: "included",
39
39
  OnDemand: "on_demand",
@@ -5,7 +5,7 @@ export interface TranscriptPurchaseQuote {
5
5
  billing_scope: TranscriptPurchaseQuote.BillingScope;
6
6
  owned: boolean;
7
7
  eligible: boolean;
8
- /** Present when eligible is false: the plan checkout that can buy this transcript, as a button label and an absolute link. */
8
+ /** Present when eligible is false. Names the plan that includes Premium transcripts, as a button label and an absolute link to its checkout. */
9
9
  upgrade?: TranscriptPurchaseQuote.Upgrade | undefined;
10
10
  quote: Arcmira.TranscriptQuote;
11
11
  charge: TranscriptPurchaseQuote.Charge;
@@ -20,7 +20,7 @@ export declare namespace TranscriptPurchaseQuote {
20
20
  };
21
21
  type BillingScope = (typeof BillingScope)[keyof typeof BillingScope];
22
22
  /**
23
- * Present when eligible is false: the plan checkout that can buy this transcript, as a button label and an absolute link.
23
+ * Present when eligible is false. Names the plan that includes Premium transcripts, as a button label and an absolute link to its checkout.
24
24
  */
25
25
  interface Upgrade {
26
26
  label: string;
@@ -1,6 +1,6 @@
1
1
  export interface TranscriptQuote {
2
2
  /** Number of 15-minute blocks in the video, ceiling'd, minimum 1. */
3
3
  quarters: number;
4
- /** Total unlock cost in rows: 75 rows per 15-minute block. */
4
+ /** Rows the whole video uses, 75 rows per 15-minute block. */
5
5
  rows: number;
6
6
  }
@@ -10,6 +10,9 @@ export interface TranscriptRequestListResponse {
10
10
  export declare namespace TranscriptRequestListResponse {
11
11
  type Requests = Requests.Item[];
12
12
  namespace Requests {
13
+ /**
14
+ * A Premium transcript job with its processing state, charge and URL for reading the transcript again.
15
+ */
13
16
  interface Item extends Arcmira.TranscriptJob {
14
17
  /** Video title for display. Null when unknown. */
15
18
  title: string | null;
@@ -17,9 +17,9 @@ export interface TranscriptResponse {
17
17
  speakers?: TranscriptResponse.Speakers.Item[] | undefined;
18
18
  /** Premium reads only. Opaque id of the transcript you were served, the approved corrections on it, and who speaks each line. It changes when any of those change. */
19
19
  revision?: string | undefined;
20
- /** Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed; Premium retrieval is free. */
20
+ /** Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed. An explicit Premium read is charged for the whole video, from the account's plan credits and then its on-demand budget; the window only trims the returned content. */
21
21
  range?: TranscriptResponse.Range | undefined;
22
- /** Rows this call charged. 0 on a repeat of the same video, quality, language, and range inside the 7 day dedupe window, and always 0 on Premium retrieval. */
22
+ /** Caption retrieval rows charged by this call. 0 on a repeat of the same video, quality, language, and range inside the 7 day dedupe window. Premium responses report 0 here even when the read was charged for the whole video; this field does not report Premium charges. */
23
23
  rows_billed: number;
24
24
  /** When the transcript was produced. */
25
25
  as_of: string | null;
@@ -80,7 +80,7 @@ export declare namespace TranscriptResponse {
80
80
  }
81
81
  }
82
82
  /**
83
- * Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed; Premium retrieval is free.
83
+ * Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed. An explicit Premium read is charged for the whole video, from the account's plan credits and then its on-demand budget; the window only trims the returned content.
84
84
  */
85
85
  interface Range {
86
86
  start: number;
@@ -176,6 +176,10 @@ export declare namespace TranscriptResponse {
176
176
  quote?: Arcmira.RefusedQuote | undefined;
177
177
  /** On tracker_already_exists, the existing tracker id. Reuse it instead of creating another tracker. */
178
178
  existing_id?: string | undefined;
179
+ /** On tracker_limit, the trackers the plan holds. */
180
+ limit?: number | undefined;
181
+ /** On tracker_limit, the trackers the account holds now. */
182
+ count?: number | undefined;
179
183
  }
180
184
  }
181
185
  }