arcmira 0.4.0 → 0.4.2

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 (166) hide show
  1. package/README.md +21 -12
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/channels/client/Client.d.ts +1 -1
  4. package/dist/cjs/api/resources/channels/client/Client.js +1 -1
  5. package/dist/cjs/api/resources/channels/resources/videos/client/Client.d.ts +1 -1
  6. package/dist/cjs/api/resources/channels/resources/videos/client/Client.js +1 -1
  7. package/dist/cjs/api/resources/entities/client/Client.d.ts +2 -2
  8. package/dist/cjs/api/resources/entities/client/Client.js +2 -2
  9. package/dist/cjs/api/resources/feedback/client/Client.d.ts +2 -2
  10. package/dist/cjs/api/resources/feedback/client/Client.js +2 -2
  11. package/dist/cjs/api/resources/feedback/client/requests/SubmitFeedbackRequest.d.ts +10 -10
  12. package/dist/cjs/api/resources/feedback/client/requests/SubmitFeedbackRequest.js +4 -4
  13. package/dist/cjs/api/resources/me/client/Client.d.ts +1 -1
  14. package/dist/cjs/api/resources/me/client/Client.js +1 -1
  15. package/dist/cjs/api/resources/me/client/requests/UpdateSettingsMeRequest.d.ts +2 -2
  16. package/dist/cjs/api/resources/me/client/requests/UpdateSettingsMeRequest.js +1 -1
  17. package/dist/cjs/api/resources/mentions/client/Client.d.ts +2 -2
  18. package/dist/cjs/api/resources/mentions/client/Client.js +2 -2
  19. package/dist/cjs/api/resources/mentions/client/requests/ListMentionsRequest.d.ts +1 -1
  20. package/dist/cjs/api/resources/monitors/client/Client.d.ts +1 -1
  21. package/dist/cjs/api/resources/monitors/client/Client.js +1 -1
  22. package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorsRequest.d.ts +2 -2
  23. package/dist/cjs/api/resources/monitors/client/requests/CreateMonitorsRequest.js +1 -1
  24. package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorsRequest.d.ts +2 -2
  25. package/dist/cjs/api/resources/monitors/client/requests/UpdateMonitorsRequest.js +1 -1
  26. package/dist/cjs/api/resources/recommendations/client/Client.d.ts +1 -1
  27. package/dist/cjs/api/resources/recommendations/client/Client.js +1 -1
  28. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +5 -5
  29. package/dist/cjs/api/resources/transcripts/client/Client.js +4 -4
  30. package/dist/cjs/api/resources/transcripts/client/requests/GetTranscriptsRequest.d.ts +3 -3
  31. package/dist/cjs/api/resources/transcripts/types/GetTranscriptsRequestQuality.d.ts +1 -1
  32. package/dist/cjs/api/resources/transcripts/types/GetTranscriptsRequestQuality.js +1 -1
  33. package/dist/cjs/api/types/Alert.d.ts +10 -7
  34. package/dist/cjs/api/types/Alert.js +1 -1
  35. package/dist/cjs/api/types/BadRankingChange.d.ts +3 -3
  36. package/dist/cjs/api/types/ChannelSponsor.d.ts +1 -1
  37. package/dist/cjs/api/types/ChannelSponsorsResponse.d.ts +4 -0
  38. package/dist/cjs/api/types/DeliveryIssueChange.d.ts +1 -1
  39. package/dist/cjs/api/types/Entity.d.ts +2 -2
  40. package/dist/cjs/api/types/EntityDetailRecommendationsSummary.d.ts +2 -2
  41. package/dist/cjs/api/types/EntityMomentumResponse.d.ts +4 -0
  42. package/dist/cjs/api/types/EntityRef.d.ts +1 -1
  43. package/dist/cjs/api/types/EntityResolveResponse.d.ts +5 -5
  44. package/dist/cjs/api/types/EntityResolveResponse.js +1 -1
  45. package/dist/cjs/api/types/Error_.d.ts +4 -0
  46. package/dist/cjs/api/types/FeedbackReadbackCorrection.d.ts +1 -1
  47. package/dist/cjs/api/types/FeedbackReadbackResponse.d.ts +1 -1
  48. package/dist/cjs/api/types/MeResponse.d.ts +8 -8
  49. package/dist/cjs/api/types/Mention.d.ts +1 -1
  50. package/dist/cjs/api/types/MentionListResponse.d.ts +1 -1
  51. package/dist/cjs/api/types/MissedAlertChange.d.ts +1 -1
  52. package/dist/cjs/api/types/Monitor.d.ts +1 -1
  53. package/dist/cjs/api/types/NamedEntityRef.d.ts +1 -1
  54. package/dist/cjs/api/types/{TranscriptPurchaseQuote.d.ts → PremiumQuote.d.ts} +9 -7
  55. package/dist/cjs/api/types/{TranscriptPurchaseQuote.js → PremiumQuote.js} +6 -6
  56. package/dist/cjs/api/types/Recommendation.d.ts +3 -3
  57. package/dist/cjs/api/types/RecommendationListResponse.d.ts +1 -1
  58. package/dist/cjs/api/types/RefusedQuote.d.ts +3 -3
  59. package/dist/cjs/api/types/ResolveCandidate.d.ts +6 -6
  60. package/dist/cjs/api/types/ResolveCandidate.js +1 -1
  61. package/dist/cjs/api/types/ResolveSuggestion.d.ts +8 -8
  62. package/dist/cjs/api/types/ResolveSuggestion.js +2 -2
  63. package/dist/cjs/api/types/SignupVerifiedResponse.d.ts +1 -1
  64. package/dist/cjs/api/types/TranscriptFailed.d.ts +5 -5
  65. package/dist/cjs/api/types/TranscriptFailed.js +1 -1
  66. package/dist/cjs/api/types/TranscriptJob.d.ts +10 -10
  67. package/dist/cjs/api/types/TranscriptJob.js +3 -3
  68. package/dist/cjs/api/types/TranscriptQuote.d.ts +1 -1
  69. package/dist/cjs/api/types/TranscriptRequestListResponse.d.ts +3 -0
  70. package/dist/cjs/api/types/TranscriptResponse.d.ts +7 -3
  71. package/dist/cjs/api/types/TranscriptSearchResponse.d.ts +4 -0
  72. package/dist/cjs/api/types/TranscriptVideo.d.ts +1 -1
  73. package/dist/cjs/api/types/WrongClassificationChange.d.ts +1 -1
  74. package/dist/cjs/api/types/WrongEntityChange.d.ts +2 -2
  75. package/dist/cjs/api/types/index.d.ts +1 -1
  76. package/dist/cjs/api/types/index.js +1 -1
  77. package/dist/cjs/version.d.ts +1 -1
  78. package/dist/cjs/version.js +1 -1
  79. package/dist/cli/main.js +21 -11
  80. package/dist/cli/operations.js +6 -6
  81. package/dist/esm/BaseClient.mjs +2 -2
  82. package/dist/esm/api/resources/channels/client/Client.d.mts +1 -1
  83. package/dist/esm/api/resources/channels/client/Client.mjs +1 -1
  84. package/dist/esm/api/resources/channels/resources/videos/client/Client.d.mts +1 -1
  85. package/dist/esm/api/resources/channels/resources/videos/client/Client.mjs +1 -1
  86. package/dist/esm/api/resources/entities/client/Client.d.mts +2 -2
  87. package/dist/esm/api/resources/entities/client/Client.mjs +2 -2
  88. package/dist/esm/api/resources/feedback/client/Client.d.mts +2 -2
  89. package/dist/esm/api/resources/feedback/client/Client.mjs +2 -2
  90. package/dist/esm/api/resources/feedback/client/requests/SubmitFeedbackRequest.d.mts +10 -10
  91. package/dist/esm/api/resources/feedback/client/requests/SubmitFeedbackRequest.mjs +4 -4
  92. package/dist/esm/api/resources/me/client/Client.d.mts +1 -1
  93. package/dist/esm/api/resources/me/client/Client.mjs +1 -1
  94. package/dist/esm/api/resources/me/client/requests/UpdateSettingsMeRequest.d.mts +2 -2
  95. package/dist/esm/api/resources/me/client/requests/UpdateSettingsMeRequest.mjs +1 -1
  96. package/dist/esm/api/resources/mentions/client/Client.d.mts +2 -2
  97. package/dist/esm/api/resources/mentions/client/Client.mjs +2 -2
  98. package/dist/esm/api/resources/mentions/client/requests/ListMentionsRequest.d.mts +1 -1
  99. package/dist/esm/api/resources/monitors/client/Client.d.mts +1 -1
  100. package/dist/esm/api/resources/monitors/client/Client.mjs +1 -1
  101. package/dist/esm/api/resources/monitors/client/requests/CreateMonitorsRequest.d.mts +2 -2
  102. package/dist/esm/api/resources/monitors/client/requests/CreateMonitorsRequest.mjs +1 -1
  103. package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorsRequest.d.mts +2 -2
  104. package/dist/esm/api/resources/monitors/client/requests/UpdateMonitorsRequest.mjs +1 -1
  105. package/dist/esm/api/resources/recommendations/client/Client.d.mts +1 -1
  106. package/dist/esm/api/resources/recommendations/client/Client.mjs +1 -1
  107. package/dist/esm/api/resources/transcripts/client/Client.d.mts +5 -5
  108. package/dist/esm/api/resources/transcripts/client/Client.mjs +4 -4
  109. package/dist/esm/api/resources/transcripts/client/requests/GetTranscriptsRequest.d.mts +3 -3
  110. package/dist/esm/api/resources/transcripts/types/GetTranscriptsRequestQuality.d.mts +1 -1
  111. package/dist/esm/api/resources/transcripts/types/GetTranscriptsRequestQuality.mjs +1 -1
  112. package/dist/esm/api/types/Alert.d.mts +10 -7
  113. package/dist/esm/api/types/Alert.mjs +1 -1
  114. package/dist/esm/api/types/BadRankingChange.d.mts +3 -3
  115. package/dist/esm/api/types/ChannelSponsor.d.mts +1 -1
  116. package/dist/esm/api/types/ChannelSponsorsResponse.d.mts +4 -0
  117. package/dist/esm/api/types/DeliveryIssueChange.d.mts +1 -1
  118. package/dist/esm/api/types/Entity.d.mts +2 -2
  119. package/dist/esm/api/types/EntityDetailRecommendationsSummary.d.mts +2 -2
  120. package/dist/esm/api/types/EntityMomentumResponse.d.mts +4 -0
  121. package/dist/esm/api/types/EntityRef.d.mts +1 -1
  122. package/dist/esm/api/types/EntityResolveResponse.d.mts +5 -5
  123. package/dist/esm/api/types/EntityResolveResponse.mjs +1 -1
  124. package/dist/esm/api/types/Error_.d.mts +4 -0
  125. package/dist/esm/api/types/FeedbackReadbackCorrection.d.mts +1 -1
  126. package/dist/esm/api/types/FeedbackReadbackResponse.d.mts +1 -1
  127. package/dist/esm/api/types/MeResponse.d.mts +8 -8
  128. package/dist/esm/api/types/Mention.d.mts +1 -1
  129. package/dist/esm/api/types/MentionListResponse.d.mts +1 -1
  130. package/dist/esm/api/types/MissedAlertChange.d.mts +1 -1
  131. package/dist/esm/api/types/Monitor.d.mts +1 -1
  132. package/dist/esm/api/types/NamedEntityRef.d.mts +1 -1
  133. package/dist/esm/api/types/{TranscriptPurchaseQuote.d.mts → PremiumQuote.d.mts} +9 -7
  134. package/dist/esm/api/types/{TranscriptPurchaseQuote.mjs → PremiumQuote.mjs} +5 -5
  135. package/dist/esm/api/types/Recommendation.d.mts +3 -3
  136. package/dist/esm/api/types/RecommendationListResponse.d.mts +1 -1
  137. package/dist/esm/api/types/RefusedQuote.d.mts +3 -3
  138. package/dist/esm/api/types/ResolveCandidate.d.mts +6 -6
  139. package/dist/esm/api/types/ResolveCandidate.mjs +1 -1
  140. package/dist/esm/api/types/ResolveSuggestion.d.mts +8 -8
  141. package/dist/esm/api/types/ResolveSuggestion.mjs +2 -2
  142. package/dist/esm/api/types/SignupVerifiedResponse.d.mts +1 -1
  143. package/dist/esm/api/types/TranscriptFailed.d.mts +5 -5
  144. package/dist/esm/api/types/TranscriptFailed.mjs +1 -1
  145. package/dist/esm/api/types/TranscriptJob.d.mts +10 -10
  146. package/dist/esm/api/types/TranscriptJob.mjs +3 -3
  147. package/dist/esm/api/types/TranscriptQuote.d.mts +1 -1
  148. package/dist/esm/api/types/TranscriptRequestListResponse.d.mts +3 -0
  149. package/dist/esm/api/types/TranscriptResponse.d.mts +7 -3
  150. package/dist/esm/api/types/TranscriptSearchResponse.d.mts +4 -0
  151. package/dist/esm/api/types/TranscriptVideo.d.mts +1 -1
  152. package/dist/esm/api/types/WrongClassificationChange.d.mts +1 -1
  153. package/dist/esm/api/types/WrongEntityChange.d.mts +2 -2
  154. package/dist/esm/api/types/index.d.mts +1 -1
  155. package/dist/esm/api/types/index.mjs +1 -1
  156. package/dist/esm/version.d.mts +1 -1
  157. package/dist/esm/version.mjs +1 -1
  158. package/llms.txt +1 -1
  159. package/package.json +7 -3
  160. package/reference.md +16 -16
  161. package/skills/arcmira/SKILL.md +4 -4
  162. package/skills/company-watch/SKILL.md +23 -16
  163. package/skills/compare-shows/SKILL.md +2 -2
  164. package/skills/find-quotes/SKILL.md +7 -7
  165. package/skills/person-research/SKILL.md +5 -5
  166. 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";
@@ -80,7 +89,7 @@ for (const chunk of hits.chunks) console.log(chunk.channel_name, chunk.published
80
89
  if (hits.window.before) console.log(`results stop before ${hits.window.before}`);
81
90
  if (hits.search_index.missing_before) console.log(`transcripts before ${hits.search_index.missing_before} are still being added`);
82
91
 
83
- // Catalog rows page themselves: iterate and the client follows next_cursor. Each row bills, so stop when you have enough.
92
+ // Catalog rows page themselves: iterate and the client follows next_cursor. Each row uses credits, so stop when you have enough.
84
93
  let seen = 0;
85
94
  for await (const mention of await client.mentions.list({ entity_id: ramp.id, after: "2026-09-01", limit: 25 })) {
86
95
  console.log(mention.media.title, mention.start_seconds);
@@ -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
@@ -201,7 +210,7 @@ Account
201
210
  arcmira setup [--only agent] connect the MCP server and skills to your coding agents, updates on
202
211
  arcmira login [email] [--code N] [--key arc_sk_...]
203
212
  arcmira logout
204
- arcmira whoami key id, label and account, plan, scopes, rate limit, rows, and where the key came from
213
+ arcmira whoami key id, label and account, plan, scopes, rate limit, credits, and where the key came from
205
214
  arcmira auth login same as arcmira login
206
215
  arcmira auth logout same as arcmira logout
207
216
  arcmira auth status same as arcmira whoami
@@ -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.2",
47
+ "User-Agent": "arcmira/0.4.2",
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);
@@ -17,7 +17,7 @@ export declare class ChannelsClient {
17
17
  get sponsors(): SponsorsClient;
18
18
  get videos(): VideosClient;
19
19
  /**
20
- * How many videos of a YouTube channel are searchable, the newest publish date among them, and the split by transcript source class. Call it when a search or mention lookup came back empty, before telling anyone we do not cover a show, and cite indexed_through as the as-of date for mentions and search_indexed_through for transcript search. It cannot request indexing; channel backfill is not available yet. Free (0 rows). Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
20
+ * How many videos of a YouTube channel are searchable, the newest publish date among them, and the split by transcript source class. Call it when a search or mention lookup came back empty, before telling anyone we do not cover a show, and cite indexed_through as the as-of date for mentions and search_indexed_through for transcript search. It cannot request indexing; channel backfill is not available yet. Free; uses no credits. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
21
21
  *
22
22
  * @param {Arcmira.CoverageChannelsRequest} request
23
23
  * @param {ChannelsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -66,7 +66,7 @@ class ChannelsClient {
66
66
  return ((_a = this._videos) !== null && _a !== void 0 ? _a : (this._videos = new Client_js_2.VideosClient(this._options)));
67
67
  }
68
68
  /**
69
- * How many videos of a YouTube channel are searchable, the newest publish date among them, and the split by transcript source class. Call it when a search or mention lookup came back empty, before telling anyone we do not cover a show, and cite indexed_through as the as-of date for mentions and search_indexed_through for transcript search. It cannot request indexing; channel backfill is not available yet. Free (0 rows). Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
69
+ * How many videos of a YouTube channel are searchable, the newest publish date among them, and the split by transcript source class. Call it when a search or mention lookup came back empty, before telling anyone we do not cover a show, and cite indexed_through as the as-of date for mentions and search_indexed_through for transcript search. It cannot request indexing; channel backfill is not available yet. Free; uses no credits. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
70
70
  *
71
71
  * @param {Arcmira.CoverageChannelsRequest} request
72
72
  * @param {ChannelsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -11,7 +11,7 @@ export declare class VideosClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<VideosClient.Options>;
12
12
  constructor(options?: VideosClient.Options);
13
13
  /**
14
- * The indexed videos of a YouTube channel, newest first, each with its video_id, title, publish date, duration, view count, and watch_url on arcmira.com. Pass next_cursor as cursor to continue. The signed token binds the route, filters, caller and visibility; invalid or old tokens return invalid_cursor. A first-page media ID fence excludes later insertions, including old-date backfills; edits and deletions to existing rows remain live. Call it for the latest or most recent episode of a show, or to list what a show published in a window, then pass a video_id to GET /v1/mentions/counts video_ids for what that episode mentions or to GET /v1/transcripts/{video_id} to read it. indexed_through is the newest date we hold for the channel. An empty list means nothing is indexed; channel backfill is not available yet. Bills one row per video returned. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
14
+ * The indexed videos of a YouTube channel, newest first, each with its video_id, title, publish date, duration, view count, and watch_url on arcmira.com. Pass next_cursor as cursor to continue. The signed token binds the route, filters, caller and visibility; invalid or old tokens return invalid_cursor. A first-page media ID fence excludes later insertions, including old-date backfills; edits and deletions to existing videos remain live. Call it for the latest or most recent episode of a show, or to list what a show published in a window, then pass a video_id to GET /v1/mentions/counts video_ids for what that episode mentions or to GET /v1/transcripts/{video_id} to read it. indexed_through is the newest date we hold for the channel. An empty list means nothing is indexed; channel backfill is not available yet. Uses 4 credits per video returned past the first 5. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
15
15
  *
16
16
  * @param {Arcmira.channels.ListVideosRequest} request
17
17
  * @param {VideosClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class VideosClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * The indexed videos of a YouTube channel, newest first, each with its video_id, title, publish date, duration, view count, and watch_url on arcmira.com. Pass next_cursor as cursor to continue. The signed token binds the route, filters, caller and visibility; invalid or old tokens return invalid_cursor. A first-page media ID fence excludes later insertions, including old-date backfills; edits and deletions to existing rows remain live. Call it for the latest or most recent episode of a show, or to list what a show published in a window, then pass a video_id to GET /v1/mentions/counts video_ids for what that episode mentions or to GET /v1/transcripts/{video_id} to read it. indexed_through is the newest date we hold for the channel. An empty list means nothing is indexed; channel backfill is not available yet. Bills one row per video returned. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
59
+ * The indexed videos of a YouTube channel, newest first, each with its video_id, title, publish date, duration, view count, and watch_url on arcmira.com. Pass next_cursor as cursor to continue. The signed token binds the route, filters, caller and visibility; invalid or old tokens return invalid_cursor. A first-page media ID fence excludes later insertions, including old-date backfills; edits and deletions to existing videos remain live. Call it for the latest or most recent episode of a show, or to list what a show published in a window, then pass a video_id to GET /v1/mentions/counts video_ids for what that episode mentions or to GET /v1/transcripts/{video_id} to read it. indexed_through is the newest date we hold for the channel. An empty list means nothing is indexed; channel backfill is not available yet. Uses 4 credits per video returned past the first 5. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
60
60
  *
61
61
  * @param {Arcmira.channels.ListVideosRequest} request
62
62
  * @param {VideosClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -11,7 +11,7 @@ export declare class EntitiesClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<EntitiesClient.Options>;
12
12
  constructor(options?: EntitiesClient.Options);
13
13
  /**
14
- * Call this before passing an id to about, by, entity_ids, channel_ids or channel; those filters refuse names with id_required. Pass context with the user's own words about the name ("the startup bank", "on My First Million"). The answer is one of three: best (the name means one row: use it and name it), suggested (no row is certain but one stands out, with reason and evidence: use it and tell the user you assumed it), or ask (several rows fit: show ask.options, or check every option id and answer per row). For a show pass type=channel and use the youtube_channel_id; for a brand or a person use the id. Free; bills no rows.
14
+ * Call this before passing an id to about, by, entity_ids, channel_ids or channel; those filters refuse names with id_required. Pass context with the user's own words about the name ("the startup bank", "on My First Million"). The answer is one of three: best (the name means one entity: use it and name it), suggested (no entity is certain but one stands out, with reason and evidence: use it and tell the user you assumed it), or ask (several entities fit: show ask.options, or check every option id and answer per entity). For a show pass type=channel and use the youtube_channel_id; for a brand or a person use the id. Free; uses no credits.
15
15
  *
16
16
  * @param {Arcmira.ResolveEntitiesRequest} request
17
17
  * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ export declare class EntitiesClient {
56
56
  get(request: Arcmira.GetEntitiesRequest, requestOptions?: EntitiesClient.RequestOptions): core.HttpResponsePromise<Arcmira.EntityDetailResponse>;
57
57
  private __get;
58
58
  /**
59
- * Mentions in the last 7 and 30 days against the prior 30, an absolute-delta verdict (accelerating, flat, fading, none), the newest media date, and the top shows in the window. It counts the shows we index, not the whole internet, and it is a count, not a score. On a Pro+ plan the card also carries paid_vs_organic; otherwise that field is absent and access names the gate. Bills one row. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
59
+ * Mentions in the last 7 and 30 days against the prior 30, an absolute-delta verdict (accelerating, flat, fading, none), the newest media date, and the top shows in the window. It counts the shows we index, not the whole internet, and it is a count, not a score. On a Pro+ plan the card also carries paid_vs_organic; otherwise that field is absent and access names the gate. Free; uses no credits. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
60
60
  *
61
61
  * @param {Arcmira.MomentumEntitiesRequest} request
62
62
  * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class EntitiesClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * Call this before passing an id to about, by, entity_ids, channel_ids or channel; those filters refuse names with id_required. Pass context with the user's own words about the name ("the startup bank", "on My First Million"). The answer is one of three: best (the name means one row: use it and name it), suggested (no row is certain but one stands out, with reason and evidence: use it and tell the user you assumed it), or ask (several rows fit: show ask.options, or check every option id and answer per row). For a show pass type=channel and use the youtube_channel_id; for a brand or a person use the id. Free; bills no rows.
59
+ * Call this before passing an id to about, by, entity_ids, channel_ids or channel; those filters refuse names with id_required. Pass context with the user's own words about the name ("the startup bank", "on My First Million"). The answer is one of three: best (the name means one entity: use it and name it), suggested (no entity is certain but one stands out, with reason and evidence: use it and tell the user you assumed it), or ask (several entities fit: show ask.options, or check every option id and answer per entity). For a show pass type=channel and use the youtube_channel_id; for a brand or a person use the id. Free; uses no credits.
60
60
  *
61
61
  * @param {Arcmira.ResolveEntitiesRequest} request
62
62
  * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -205,7 +205,7 @@ class EntitiesClient {
205
205
  });
206
206
  }
207
207
  /**
208
- * Mentions in the last 7 and 30 days against the prior 30, an absolute-delta verdict (accelerating, flat, fading, none), the newest media date, and the top shows in the window. It counts the shows we index, not the whole internet, and it is a count, not a score. On a Pro+ plan the card also carries paid_vs_organic; otherwise that field is absent and access names the gate. Bills one row. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
208
+ * Mentions in the last 7 and 30 days against the prior 30, an absolute-delta verdict (accelerating, flat, fading, none), the newest media date, and the top shows in the window. It counts the shows we index, not the whole internet, and it is a count, not a score. On a Pro+ plan the card also carries paid_vs_organic; otherwise that field is absent and access names the gate. Free; uses no credits. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
209
209
  *
210
210
  * @param {Arcmira.MomentumEntitiesRequest} request
211
211
  * @param {EntitiesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -11,7 +11,7 @@ export declare class FeedbackClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<FeedbackClient.Options>;
12
12
  constructor(options?: FeedbackClient.Options);
13
13
  /**
14
- * Attach corrections to the exact query you ran: pass the feedback type, the query object you sent, and optional per-item corrections. Public submissions are recorded for human review (status "logged"); nothing is auto-applied. Read the review status back later via GET /v1/feedback/{feedback_id}. recommendations and channel_sponsors feedback types require a Pro+ plan; every other type needs read. monitor_alert feedback targets fired alert rows: query carries monitor_id and/or tracker_id and/or alert_id, corrections target the alert row id, and every referenced alert row must belong to the caller (otherwise 404 alert_not_found). missed_alert corrections are expectations with no row to target: omit the correction id and put { source_url, approximate_timestamp_seconds?, entity_id? } in suggested_change. delivery_issue corrections may carry { channel } in suggested_change. experience feedback says how a task went as a whole rather than correcting a row: it requires category and notes, refuses corrections (400 invalid_feedback_request), and needs no query. category and mcp_call_id, when sent, are recorded in the stored query.
14
+ * Attach corrections to the exact query you ran: pass the feedback type, the query object you sent, and optional per-item corrections. Public submissions are recorded for human review (status "logged"); nothing is auto-applied. Read the review status back later via GET /v1/feedback/{feedback_id}. recommendations and channel_sponsors feedback types require a Pro+ plan; every other type needs read. monitor_alert feedback targets fired alerts: query carries monitor_id and/or tracker_id and/or alert_id, corrections target the alert id, and every referenced alert must belong to the caller (otherwise 404 alert_not_found). missed_alert corrections are expectations with nothing to target: omit the correction id and put { source_url, approximate_timestamp_seconds?, entity_id? } in suggested_change. delivery_issue corrections may carry { channel } in suggested_change. experience feedback says how a task went as a whole rather than correcting a result: it requires category and notes, refuses corrections (400 invalid_feedback_request), and needs no query. category and mcp_call_id, when sent, are recorded in the stored query.
15
15
  *
16
16
  * @param {Arcmira.SubmitFeedbackRequest} request
17
17
  * @param {FeedbackClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -35,7 +35,7 @@ export declare class FeedbackClient {
35
35
  submit(request: Arcmira.SubmitFeedbackRequest, requestOptions?: FeedbackClient.RequestOptions): core.HttpResponsePromise<Arcmira.FeedbackResponse>;
36
36
  private __submit;
37
37
  /**
38
- * Returns the submission (id, type, query, notes, created_at) plus its per-correction rows, each with a review status in the public vocabulary: pending_review, needs_information, accepted, accepted_with_changes, rejected, withdrawn, applied, reverted (accepted means a reviewer agreed; applied means the change is live in the index). Only the submitting user's keys can read a submission; unknown ids and other users' submissions both return 404 (never 403).
38
+ * Returns the submission (id, type, query, notes, created_at) plus its corrections, each with a review status in the public vocabulary: pending_review, needs_information, accepted, accepted_with_changes, rejected, withdrawn, applied, reverted (accepted means a reviewer agreed; applied means the change is live in the index). Only the submitting user's keys can read a submission; unknown ids and other users' submissions both return 404 (never 403).
39
39
  *
40
40
  * @param {Arcmira.GetFeedbackRequest} request
41
41
  * @param {FeedbackClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -68,7 +68,7 @@ class FeedbackClient {
68
68
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
69
69
  }
70
70
  /**
71
- * Attach corrections to the exact query you ran: pass the feedback type, the query object you sent, and optional per-item corrections. Public submissions are recorded for human review (status "logged"); nothing is auto-applied. Read the review status back later via GET /v1/feedback/{feedback_id}. recommendations and channel_sponsors feedback types require a Pro+ plan; every other type needs read. monitor_alert feedback targets fired alert rows: query carries monitor_id and/or tracker_id and/or alert_id, corrections target the alert row id, and every referenced alert row must belong to the caller (otherwise 404 alert_not_found). missed_alert corrections are expectations with no row to target: omit the correction id and put { source_url, approximate_timestamp_seconds?, entity_id? } in suggested_change. delivery_issue corrections may carry { channel } in suggested_change. experience feedback says how a task went as a whole rather than correcting a row: it requires category and notes, refuses corrections (400 invalid_feedback_request), and needs no query. category and mcp_call_id, when sent, are recorded in the stored query.
71
+ * Attach corrections to the exact query you ran: pass the feedback type, the query object you sent, and optional per-item corrections. Public submissions are recorded for human review (status "logged"); nothing is auto-applied. Read the review status back later via GET /v1/feedback/{feedback_id}. recommendations and channel_sponsors feedback types require a Pro+ plan; every other type needs read. monitor_alert feedback targets fired alerts: query carries monitor_id and/or tracker_id and/or alert_id, corrections target the alert id, and every referenced alert must belong to the caller (otherwise 404 alert_not_found). missed_alert corrections are expectations with nothing to target: omit the correction id and put { source_url, approximate_timestamp_seconds?, entity_id? } in suggested_change. delivery_issue corrections may carry { channel } in suggested_change. experience feedback says how a task went as a whole rather than correcting a result: it requires category and notes, refuses corrections (400 invalid_feedback_request), and needs no query. category and mcp_call_id, when sent, are recorded in the stored query.
72
72
  *
73
73
  * @param {Arcmira.SubmitFeedbackRequest} request
74
74
  * @param {FeedbackClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -143,7 +143,7 @@ class FeedbackClient {
143
143
  });
144
144
  }
145
145
  /**
146
- * Returns the submission (id, type, query, notes, created_at) plus its per-correction rows, each with a review status in the public vocabulary: pending_review, needs_information, accepted, accepted_with_changes, rejected, withdrawn, applied, reverted (accepted means a reviewer agreed; applied means the change is live in the index). Only the submitting user's keys can read a submission; unknown ids and other users' submissions both return 404 (never 403).
146
+ * Returns the submission (id, type, query, notes, created_at) plus its corrections, each with a review status in the public vocabulary: pending_review, needs_information, accepted, accepted_with_changes, rejected, withdrawn, applied, reverted (accepted means a reviewer agreed; applied means the change is live in the index). Only the submitting user's keys can read a submission; unknown ids and other users' submissions both return 404 (never 403).
147
147
  *
148
148
  * @param {Arcmira.GetFeedbackRequest} request
149
149
  * @param {FeedbackClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -9,7 +9,7 @@ import type * as Arcmira from "../../../../index.js";
9
9
  export interface SubmitFeedbackRequest {
10
10
  /** 1 to 255 printable ASCII characters (0x21 to 0x7E); anything else is 400 invalid_idempotency_key. Persist a unique key and the exact request before sending a logical mutation. A retry returns its stored response with Idempotency-Replayed: true. A changed intent under a finalized key returns 409 idempotency_conflict. Keys belong to the authenticated owner, credential and mutation domain. Current authorization still applies. Receipts have no general 24-hour expiry; signing-secret recovery alone expires after 24 hours or when the secret is displaced. */
11
11
  "Idempotency-Key"?: string;
12
- /** The surface being reviewed. Values: recommendations (/v1/recommendations rows by com_* id; requires a Pro+ plan), channel_sponsors (sponsor entities on a channel; requires a Pro+ plan), mentions (/v1/mentions rows by men_* id), entities_search (/v1/entities/resolve candidates), entities (/v1/entities/{id} payloads), channels (/v1/channels/{channel_id}/videos rows), monitor_alert (fired alert rows from /v1/monitors/{id}/alerts or /v1/trackers/{id}/alerts; corrections target the alert row id), appearances (person appearance rows from /v1/mentions with is_appearance=true), search (/v1/search passages), experience (how a task went as a whole, not one row: requires category and notes, takes no corrections, and query is optional). */
12
+ /** The surface being reviewed. Values: recommendations (/v1/recommendations results by com_* id; requires a Pro+ plan), channel_sponsors (sponsor entities on a channel; requires a Pro+ plan), mentions (/v1/mentions results by men_* id), entities_search (/v1/entities/resolve candidates), entities (/v1/entities/{id} payloads), channels (/v1/channels/{channel_id}/videos results), monitor_alert (fired alerts from /v1/monitors/{id}/alerts or /v1/trackers/{id}/alerts; corrections target the alert id), appearances (person appearances from /v1/mentions with is_appearance=true), search (/v1/search passages), experience (how a task went as a whole, not one result: requires category and notes, takes no corrections, and query is optional). */
13
13
  type: SubmitFeedbackRequest.Type;
14
14
  /** The query object that produced the result you are reviewing, echoed back verbatim so reviewers can replay it. For monitor_alert feedback, carry monitor_id and/or tracker_id and/or alert_id. */
15
15
  query?: Record<string, unknown>;
@@ -20,15 +20,15 @@ export interface SubmitFeedbackRequest {
20
20
  source_url?: string;
21
21
  /** Free text for the reviewer. Required when type is experience: say what the user asked for and what went wrong, slow, or missing. */
22
22
  notes?: string;
23
- /** Per-row corrections. Not allowed when type is experience. */
23
+ /** Per-result corrections. Not allowed when type is experience. */
24
24
  corrections?: SubmitFeedbackRequest.Corrections.Item[];
25
- /** What kind of problem this is. Values: wrong_entity (a name resolved to the wrong person, company or thing), bad_data (a row or field is wrong), missing (something that should exist was not found), slow (the task took too long), confusing (the answer or an error was hard to act on), other (anything else; say what in notes). Required when type is experience. */
25
+ /** What kind of problem this is. Values: wrong_entity (a name resolved to the wrong person, company or thing), bad_data (a result or field is wrong), missing (something that should exist was not found), slow (the task took too long), confusing (the answer or an error was hard to act on), other (anything else; say what in notes). Required when type is experience. */
26
26
  category?: SubmitFeedbackRequest.Category;
27
27
  /** The MCP tool call this feedback is about, as the Arcmira MCP server names it (mcpc_ and 32 hex digits). Joins the feedback to that call in product analytics. */
28
28
  mcp_call_id?: string;
29
29
  }
30
30
  export declare namespace SubmitFeedbackRequest {
31
- /** The surface being reviewed. Values: recommendations (/v1/recommendations rows by com_* id; requires a Pro+ plan), channel_sponsors (sponsor entities on a channel; requires a Pro+ plan), mentions (/v1/mentions rows by men_* id), entities_search (/v1/entities/resolve candidates), entities (/v1/entities/{id} payloads), channels (/v1/channels/{channel_id}/videos rows), monitor_alert (fired alert rows from /v1/monitors/{id}/alerts or /v1/trackers/{id}/alerts; corrections target the alert row id), appearances (person appearance rows from /v1/mentions with is_appearance=true), search (/v1/search passages), experience (how a task went as a whole, not one row: requires category and notes, takes no corrections, and query is optional). */
31
+ /** The surface being reviewed. Values: recommendations (/v1/recommendations results by com_* id; requires a Pro+ plan), channel_sponsors (sponsor entities on a channel; requires a Pro+ plan), mentions (/v1/mentions results by men_* id), entities_search (/v1/entities/resolve candidates), entities (/v1/entities/{id} payloads), channels (/v1/channels/{channel_id}/videos results), monitor_alert (fired alerts from /v1/monitors/{id}/alerts or /v1/trackers/{id}/alerts; corrections target the alert id), appearances (person appearances from /v1/mentions with is_appearance=true), search (/v1/search passages), experience (how a task went as a whole, not one result: requires category and notes, takes no corrections, and query is optional). */
32
32
  const Type: {
33
33
  readonly Recommendations: "recommendations";
34
34
  readonly ChannelSponsors: "channel_sponsors";
@@ -53,19 +53,19 @@ export declare namespace SubmitFeedbackRequest {
53
53
  type Corrections = Corrections.Item[];
54
54
  namespace Corrections {
55
55
  interface Item {
56
- /** Public id of the row being corrected, from the response you received: men_* (mentions, appearances), com_* (recommendations), ent_* (entities, sponsors), or the alert row id (monitor_alert). Omit for missed_alert and missing_result corrections, which have no row to target. */
56
+ /** Public id of the result being corrected, from the response you received: men_* (mentions, appearances), com_* (recommendations), ent_* (entities, sponsors), or the alert id (monitor_alert). Omit for missed_alert and missing_result corrections, which have nothing to target. */
57
57
  id?: string | undefined;
58
- /** On recommendations feedback, the class the row should carry. Values: sponsored (an ad-style promotion heard at that moment: a paid sponsor read, promo code, affiliate plug, thanks for supplied goods or venue, or a show promoting its own product as an ad), organic (an unpaid personal recommendation), mention (a neutral commercial mention). */
58
+ /** On recommendations feedback, the class the result should carry. Values: sponsored (an ad-style promotion heard at that moment: a paid sponsor read, promo code, affiliate plug, thanks for supplied goods or venue, or a show promoting its own product as an ad), organic (an unpaid personal recommendation), mention (a neutral commercial mention). */
59
59
  class?: Item.Class | undefined;
60
60
  reason?: Item.Reason | undefined;
61
- /** Issue classification for the correction. Entity-family values: wrong_entity_type (right entity, wrong type), wrong_entity (the row points at the wrong canonical entity), duplicate_entity (results split across variants of the same entity), merge_suggestion (propose the canonical merge for split variants), missing_result (a result you know should exist is absent), stale_metadata (name/website/channel metadata is outdated), wrong_classification (class-level error on a commercial row), bad_ranking (duplicates or aliases ranking above the canonical entity). monitor_alert values: false_positive_alert (the alert should not have fired), wrong_media (fired against the wrong video), wrong_timestamp (fired at the wrong position in the video), duplicate_alert (the same occurrence fired more than once), missed_alert (an expectation: an alert that should have fired but did not; no row to target), delivery_issue (the delivery itself was wrong: wrong channel, not received). appearances values: person_not_present (the person does not appear in the media), wrong_person (the appearance is attributed to the wrong person), wrong_appearance_role (right person, wrong role, e.g. guest vs host). other (escape hatch; detail in notes). */
61
+ /** Issue classification for the correction. Entity-family values: wrong_entity_type (right entity, wrong type), wrong_entity (the result points at the wrong canonical entity), duplicate_entity (results split across variants of the same entity), merge_suggestion (propose the canonical merge for split variants), missing_result (a result you know should exist is absent), stale_metadata (name/website/channel metadata is outdated), wrong_classification (class-level error on a commercial result), bad_ranking (duplicates or aliases ranking above the canonical entity). monitor_alert values: false_positive_alert (the alert should not have fired), wrong_media (fired against the wrong video), wrong_timestamp (fired at the wrong position in the video), duplicate_alert (the same occurrence fired more than once), missed_alert (an expectation: an alert that should have fired but did not; nothing to target), delivery_issue (the delivery itself was wrong: wrong channel, not received). appearances values: person_not_present (the person does not appear in the media), wrong_person (the appearance is attributed to the wrong person), wrong_appearance_role (right person, wrong role, e.g. guest vs host). other (escape hatch; detail in notes). */
62
62
  issue_type?: Item.IssueType | undefined;
63
63
  /** Your concrete proposed fix, shaped by issue_type: merge_suggestion → MergeSuggestionChange, wrong_entity/wrong_person → WrongEntityChange, wrong_entity_type → WrongEntityTypeChange, missing_result → MissingResultChange, wrong_classification → WrongClassificationChange, stale_metadata → StaleMetadataChange, bad_ranking → BadRankingChange, missed_alert → MissedAlertChange, delivery_issue → DeliveryIssueChange. Unknown keys are accepted and logged verbatim; only non-object values are rejected. Omit suggested_change entirely when you do not have a concrete fix. */
64
64
  suggested_change?: Item.SuggestedChange | undefined;
65
65
  notes?: string | undefined;
66
66
  }
67
67
  namespace Item {
68
- /** On recommendations feedback, the class the row should carry. Values: sponsored (an ad-style promotion heard at that moment: a paid sponsor read, promo code, affiliate plug, thanks for supplied goods or venue, or a show promoting its own product as an ad), organic (an unpaid personal recommendation), mention (a neutral commercial mention). */
68
+ /** On recommendations feedback, the class the result should carry. Values: sponsored (an ad-style promotion heard at that moment: a paid sponsor read, promo code, affiliate plug, thanks for supplied goods or venue, or a show promoting its own product as an ad), organic (an unpaid personal recommendation), mention (a neutral commercial mention). */
69
69
  const Class: {
70
70
  readonly Sponsored: "sponsored";
71
71
  readonly Organic: "organic";
@@ -82,7 +82,7 @@ export declare namespace SubmitFeedbackRequest {
82
82
  readonly Other: "other";
83
83
  };
84
84
  type Reason = (typeof Reason)[keyof typeof Reason];
85
- /** Issue classification for the correction. Entity-family values: wrong_entity_type (right entity, wrong type), wrong_entity (the row points at the wrong canonical entity), duplicate_entity (results split across variants of the same entity), merge_suggestion (propose the canonical merge for split variants), missing_result (a result you know should exist is absent), stale_metadata (name/website/channel metadata is outdated), wrong_classification (class-level error on a commercial row), bad_ranking (duplicates or aliases ranking above the canonical entity). monitor_alert values: false_positive_alert (the alert should not have fired), wrong_media (fired against the wrong video), wrong_timestamp (fired at the wrong position in the video), duplicate_alert (the same occurrence fired more than once), missed_alert (an expectation: an alert that should have fired but did not; no row to target), delivery_issue (the delivery itself was wrong: wrong channel, not received). appearances values: person_not_present (the person does not appear in the media), wrong_person (the appearance is attributed to the wrong person), wrong_appearance_role (right person, wrong role, e.g. guest vs host). other (escape hatch; detail in notes). */
85
+ /** Issue classification for the correction. Entity-family values: wrong_entity_type (right entity, wrong type), wrong_entity (the result points at the wrong canonical entity), duplicate_entity (results split across variants of the same entity), merge_suggestion (propose the canonical merge for split variants), missing_result (a result you know should exist is absent), stale_metadata (name/website/channel metadata is outdated), wrong_classification (class-level error on a commercial result), bad_ranking (duplicates or aliases ranking above the canonical entity). monitor_alert values: false_positive_alert (the alert should not have fired), wrong_media (fired against the wrong video), wrong_timestamp (fired at the wrong position in the video), duplicate_alert (the same occurrence fired more than once), missed_alert (an expectation: an alert that should have fired but did not; nothing to target), delivery_issue (the delivery itself was wrong: wrong channel, not received). appearances values: person_not_present (the person does not appear in the media), wrong_person (the appearance is attributed to the wrong person), wrong_appearance_role (right person, wrong role, e.g. guest vs host). other (escape hatch; detail in notes). */
86
86
  const IssueType: {
87
87
  readonly WrongEntityType: "wrong_entity_type";
88
88
  readonly WrongEntity: "wrong_entity";
@@ -110,7 +110,7 @@ export declare namespace SubmitFeedbackRequest {
110
110
  type SuggestedChange = Arcmira.MergeSuggestionChange | Arcmira.WrongEntityChange | Arcmira.WrongEntityTypeChange | Arcmira.MissingResultChange | Arcmira.WrongClassificationChange | Arcmira.StaleMetadataChange | Arcmira.BadRankingChange | Arcmira.MissedAlertChange | Arcmira.DeliveryIssueChange | Arcmira.FreeformSuggestedChange;
111
111
  }
112
112
  }
113
- /** What kind of problem this is. Values: wrong_entity (a name resolved to the wrong person, company or thing), bad_data (a row or field is wrong), missing (something that should exist was not found), slow (the task took too long), confusing (the answer or an error was hard to act on), other (anything else; say what in notes). Required when type is experience. */
113
+ /** What kind of problem this is. Values: wrong_entity (a name resolved to the wrong person, company or thing), bad_data (a result or field is wrong), missing (something that should exist was not found), slow (the task took too long), confusing (the answer or an error was hard to act on), other (anything else; say what in notes). Required when type is experience. */
114
114
  const Category: {
115
115
  readonly WrongEntity: "wrong_entity";
116
116
  readonly BadData: "bad_data";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.SubmitFeedbackRequest = void 0;
5
5
  var SubmitFeedbackRequest;
6
6
  (function (SubmitFeedbackRequest) {
7
- /** The surface being reviewed. Values: recommendations (/v1/recommendations rows by com_* id; requires a Pro+ plan), channel_sponsors (sponsor entities on a channel; requires a Pro+ plan), mentions (/v1/mentions rows by men_* id), entities_search (/v1/entities/resolve candidates), entities (/v1/entities/{id} payloads), channels (/v1/channels/{channel_id}/videos rows), monitor_alert (fired alert rows from /v1/monitors/{id}/alerts or /v1/trackers/{id}/alerts; corrections target the alert row id), appearances (person appearance rows from /v1/mentions with is_appearance=true), search (/v1/search passages), experience (how a task went as a whole, not one row: requires category and notes, takes no corrections, and query is optional). */
7
+ /** The surface being reviewed. Values: recommendations (/v1/recommendations results by com_* id; requires a Pro+ plan), channel_sponsors (sponsor entities on a channel; requires a Pro+ plan), mentions (/v1/mentions results by men_* id), entities_search (/v1/entities/resolve candidates), entities (/v1/entities/{id} payloads), channels (/v1/channels/{channel_id}/videos results), monitor_alert (fired alerts from /v1/monitors/{id}/alerts or /v1/trackers/{id}/alerts; corrections target the alert id), appearances (person appearances from /v1/mentions with is_appearance=true), search (/v1/search passages), experience (how a task went as a whole, not one result: requires category and notes, takes no corrections, and query is optional). */
8
8
  SubmitFeedbackRequest.Type = {
9
9
  Recommendations: "recommendations",
10
10
  ChannelSponsors: "channel_sponsors",
@@ -28,7 +28,7 @@ var SubmitFeedbackRequest;
28
28
  (function (Corrections) {
29
29
  let Item;
30
30
  (function (Item) {
31
- /** On recommendations feedback, the class the row should carry. Values: sponsored (an ad-style promotion heard at that moment: a paid sponsor read, promo code, affiliate plug, thanks for supplied goods or venue, or a show promoting its own product as an ad), organic (an unpaid personal recommendation), mention (a neutral commercial mention). */
31
+ /** On recommendations feedback, the class the result should carry. Values: sponsored (an ad-style promotion heard at that moment: a paid sponsor read, promo code, affiliate plug, thanks for supplied goods or venue, or a show promoting its own product as an ad), organic (an unpaid personal recommendation), mention (a neutral commercial mention). */
32
32
  Item.Class = {
33
33
  Sponsored: "sponsored",
34
34
  Organic: "organic",
@@ -43,7 +43,7 @@ var SubmitFeedbackRequest;
43
43
  WrongEntity: "wrong_entity",
44
44
  Other: "other",
45
45
  };
46
- /** Issue classification for the correction. Entity-family values: wrong_entity_type (right entity, wrong type), wrong_entity (the row points at the wrong canonical entity), duplicate_entity (results split across variants of the same entity), merge_suggestion (propose the canonical merge for split variants), missing_result (a result you know should exist is absent), stale_metadata (name/website/channel metadata is outdated), wrong_classification (class-level error on a commercial row), bad_ranking (duplicates or aliases ranking above the canonical entity). monitor_alert values: false_positive_alert (the alert should not have fired), wrong_media (fired against the wrong video), wrong_timestamp (fired at the wrong position in the video), duplicate_alert (the same occurrence fired more than once), missed_alert (an expectation: an alert that should have fired but did not; no row to target), delivery_issue (the delivery itself was wrong: wrong channel, not received). appearances values: person_not_present (the person does not appear in the media), wrong_person (the appearance is attributed to the wrong person), wrong_appearance_role (right person, wrong role, e.g. guest vs host). other (escape hatch; detail in notes). */
46
+ /** Issue classification for the correction. Entity-family values: wrong_entity_type (right entity, wrong type), wrong_entity (the result points at the wrong canonical entity), duplicate_entity (results split across variants of the same entity), merge_suggestion (propose the canonical merge for split variants), missing_result (a result you know should exist is absent), stale_metadata (name/website/channel metadata is outdated), wrong_classification (class-level error on a commercial result), bad_ranking (duplicates or aliases ranking above the canonical entity). monitor_alert values: false_positive_alert (the alert should not have fired), wrong_media (fired against the wrong video), wrong_timestamp (fired at the wrong position in the video), duplicate_alert (the same occurrence fired more than once), missed_alert (an expectation: an alert that should have fired but did not; nothing to target), delivery_issue (the delivery itself was wrong: wrong channel, not received). appearances values: person_not_present (the person does not appear in the media), wrong_person (the appearance is attributed to the wrong person), wrong_appearance_role (right person, wrong role, e.g. guest vs host). other (escape hatch; detail in notes). */
47
47
  Item.IssueType = {
48
48
  WrongEntityType: "wrong_entity_type",
49
49
  WrongEntity: "wrong_entity",
@@ -66,7 +66,7 @@ var SubmitFeedbackRequest;
66
66
  };
67
67
  })(Item = Corrections.Item || (Corrections.Item = {}));
68
68
  })(Corrections = SubmitFeedbackRequest.Corrections || (SubmitFeedbackRequest.Corrections = {}));
69
- /** What kind of problem this is. Values: wrong_entity (a name resolved to the wrong person, company or thing), bad_data (a row or field is wrong), missing (something that should exist was not found), slow (the task took too long), confusing (the answer or an error was hard to act on), other (anything else; say what in notes). Required when type is experience. */
69
+ /** What kind of problem this is. Values: wrong_entity (a name resolved to the wrong person, company or thing), bad_data (a result or field is wrong), missing (something that should exist was not found), slow (the task took too long), confusing (the answer or an error was hard to act on), other (anything else; say what in notes). Required when type is experience. */
70
70
  SubmitFeedbackRequest.Category = {
71
71
  WrongEntity: "wrong_entity",
72
72
  BadData: "bad_data",
@@ -11,7 +11,7 @@ export declare class MeClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<MeClient.Options>;
12
12
  constructor(options?: MeClient.Options);
13
13
  /**
14
- * Available even when the account has exhausted its usage allowance. Returns the credential making the request (key_id, key_label, credential_kind), the masked account email, the tier, scopes, rate limit, row usage with period_resets_at, and account settings. settings.transcripts is what a transcript request that names no parameter of its own receives: every key of the account resolves against it.
14
+ * Available even when the account has exhausted its usage allowance. Returns the credential making the request (key_id, key_label, credential_kind), the masked account email, the tier, scopes, rate limit, usage with period_resets_at, and account settings. usage.credits is the primary measure: credits from the plan, then the on-demand budget. The row fields restate it at 4 credits a row. settings.transcripts is what a transcript request that names no parameter of its own receives: every key of the account resolves against it.
15
15
  *
16
16
  * @param {MeClient.RequestOptions} requestOptions - Request-specific configuration.
17
17
  *
@@ -57,7 +57,7 @@ class MeClient {
57
57
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
58
58
  }
59
59
  /**
60
- * Available even when the account has exhausted its usage allowance. Returns the credential making the request (key_id, key_label, credential_kind), the masked account email, the tier, scopes, rate limit, row usage with period_resets_at, and account settings. settings.transcripts is what a transcript request that names no parameter of its own receives: every key of the account resolves against it.
60
+ * Available even when the account has exhausted its usage allowance. Returns the credential making the request (key_id, key_label, credential_kind), the masked account email, the tier, scopes, rate limit, usage with period_resets_at, and account settings. usage.credits is the primary measure: credits from the plan, then the on-demand budget. The row fields restate it at 4 credits a row. settings.transcripts is what a transcript request that names no parameter of its own receives: every key of the account resolves against it.
61
61
  *
62
62
  * @param {MeClient.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
@@ -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",
@@ -11,7 +11,7 @@ export declare class MentionsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<MentionsClient.Options>;
12
12
  constructor(options?: MentionsClient.Options);
13
13
  /**
14
- * Cursor-paginated mentions filtered by entity (entity_id is required; resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter), channel (channel_id), text query, sentiment, appearance flag, and publication window [after, before). The signed continuation binds the route, filters, caller and visibility; invalid or old cursors return invalid_cursor. A first-page ID fence excludes later insertions, including old-date backfills. Edits and deletions to existing rows remain live. Positions are start_seconds and end_seconds (integer seconds; 0 means full episode). is_appearance filtering applies to person entities only; passing is_appearance=true for any other type returns a 400 (appearances_person_only). details=full attaches per-mention commercial recommendations and requires a Pro+ plan.
14
+ * Cursor-paginated mentions filtered by entity (entity_id is required; resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter), channel (channel_id), text query, sentiment, appearance flag, and publication window [after, before). The signed continuation binds the route, filters, caller and visibility; invalid or old cursors return invalid_cursor. A first-page ID fence excludes later insertions, including old-date backfills. Edits and deletions to existing mentions remain live. Positions are start_seconds and end_seconds (integer seconds; 0 means full episode). is_appearance filtering applies to person entities only; passing is_appearance=true for any other type returns a 400 (appearances_person_only). details=full attaches per-mention commercial recommendations and requires a Pro+ plan.
15
15
  *
16
16
  * @param {Arcmira.ListMentionsRequest} request
17
17
  * @param {MentionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -33,7 +33,7 @@ export declare class MentionsClient {
33
33
  */
34
34
  list(request: Arcmira.ListMentionsRequest, requestOptions?: MentionsClient.RequestOptions): Promise<core.Page<Arcmira.Mention, Arcmira.MentionListResponse>>;
35
35
  /**
36
- * A small ranked table of entity and channel counts, all-time unless after is set. Pass channel_ids for what shows talk about and entity_types to match the question (topic for subjects, person for guests, organization,product for brands). Pass video_ids with one id from GET /v1/channels/{channel_id}/videos for what a single episode mentions. Two or more channel_ids also return shared, the entities on more than one of them ranked by the smallest per-channel count, which is true overlap. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. Bills one row per table row returned. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
36
+ * A small ranked table of entity and channel counts, all-time unless after is set. Pass channel_ids for what shows talk about and entity_types to match the question (topic for subjects, person for guests, organization,product for brands). Pass video_ids with one id from GET /v1/channels/{channel_id}/videos for what a single episode mentions. Two or more channel_ids also return shared, the entities on more than one of them ranked by the smallest per-channel count, which is true overlap. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. Uses 4 credits per ranked entry returned past the first 5. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
37
37
  *
38
38
  * @param {Arcmira.CountMentionsRequest} request
39
39
  * @param {MentionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class MentionsClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * Cursor-paginated mentions filtered by entity (entity_id is required; resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter), channel (channel_id), text query, sentiment, appearance flag, and publication window [after, before). The signed continuation binds the route, filters, caller and visibility; invalid or old cursors return invalid_cursor. A first-page ID fence excludes later insertions, including old-date backfills. Edits and deletions to existing rows remain live. Positions are start_seconds and end_seconds (integer seconds; 0 means full episode). is_appearance filtering applies to person entities only; passing is_appearance=true for any other type returns a 400 (appearances_person_only). details=full attaches per-mention commercial recommendations and requires a Pro+ plan.
59
+ * Cursor-paginated mentions filtered by entity (entity_id is required; resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter), channel (channel_id), text query, sentiment, appearance flag, and publication window [after, before). The signed continuation binds the route, filters, caller and visibility; invalid or old cursors return invalid_cursor. A first-page ID fence excludes later insertions, including old-date backfills. Edits and deletions to existing mentions remain live. Positions are start_seconds and end_seconds (integer seconds; 0 means full episode). is_appearance filtering applies to person entities only; passing is_appearance=true for any other type returns a 400 (appearances_person_only). details=full attaches per-mention commercial recommendations and requires a Pro+ plan.
60
60
  *
61
61
  * @param {Arcmira.ListMentionsRequest} request
62
62
  * @param {MentionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -153,7 +153,7 @@ class MentionsClient {
153
153
  });
154
154
  }
155
155
  /**
156
- * A small ranked table of entity and channel counts, all-time unless after is set. Pass channel_ids for what shows talk about and entity_types to match the question (topic for subjects, person for guests, organization,product for brands). Pass video_ids with one id from GET /v1/channels/{channel_id}/videos for what a single episode mentions. Two or more channel_ids also return shared, the entities on more than one of them ranked by the smallest per-channel count, which is true overlap. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. Bills one row per table row returned. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
156
+ * A small ranked table of entity and channel counts, all-time unless after is set. Pass channel_ids for what shows talk about and entity_types to match the question (topic for subjects, person for guests, organization,product for brands). Pass video_ids with one id from GET /v1/channels/{channel_id}/videos for what a single episode mentions. Two or more channel_ids also return shared, the entities on more than one of them ranked by the smallest per-channel count, which is true overlap. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. Uses 4 credits per ranked entry returned past the first 5. Every gate is a typed error whose error.unlock.url names the plan that lifts it; pass src=mcp-tool only from the Arcmira MCP server.
157
157
  *
158
158
  * @param {Arcmira.CountMentionsRequest} request
159
159
  * @param {MentionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -18,7 +18,7 @@ export interface ListMentionsRequest {
18
18
  is_appearance?: boolean;
19
19
  /** Only media published at or after this instant. An ISO 8601 date (2026-09-01) or datetime with offset (2026-09-01T00:00:00Z), read in UTC. The window is half-open: after is inclusive, before is exclusive. */
20
20
  after?: string;
21
- /** Only media published before this instant, so before=2026-09-02 includes all of 2026-09-01. An ISO 8601 date (2026-09-01) or datetime with offset (2026-09-01T00:00:00Z), read in UTC. The window is half-open: after is inclusive, before is exclusive. */
21
+ /** Only media published before this instant, so before=2026-09-02 includes all of 2026-09-01. Needs a paid plan: the free plan refuses it with filter_requires_paid. An ISO 8601 date (2026-09-01) or datetime with offset (2026-09-01T00:00:00Z), read in UTC. The window is half-open: after is inclusive, before is exclusive. */
22
22
  before?: string;
23
23
  details?: Arcmira.ListMentionsRequestDetails;
24
24
  }
@@ -39,7 +39,7 @@ export declare class MonitorsClient {
39
39
  list(requestOptions?: MonitorsClient.RequestOptions): core.HttpResponsePromise<Arcmira.MonitorListResponse>;
40
40
  private __list;
41
41
  /**
42
- * Creating with notify_webhook: true and a webhook_url enables HMAC-signed webhook delivery and returns the signing secret (monitor.webhook_secret) in this response. Store it securely. A retry with the original Idempotency-Key recovers the same secret for up to 24 hours while it remains the current secret or the valid previous secret. An expired or displaced secret returns 409 idempotency_result_expired without rotating again. Reads do not expose the secret. All subsequent reads expose only webhook_secret_set and webhook_secret_hint.
42
+ * Creating with notify_webhook: true and a webhook_url enables HMAC-signed webhook delivery and returns the signing secret (monitor.webhook_secret) in this response. Store it securely. A retry with the original Idempotency-Key recovers the same secret for up to 24 hours while it remains the current secret or the valid previous secret. An expired or displaced secret returns 409 idempotency_result_expired without rotating again. Reads do not expose the secret. All subsequent reads expose only webhook_secret_set and webhook_secret_hint. Creating monitors and trackers is free. Each alert uses 25 credits once, however many channels and recipients deliver it: credits from your plan, then your on-demand budget. When the account is out of credits, alerts wait instead of sending.
43
43
  *
44
44
  * @param {Arcmira.CreateMonitorsRequest} request
45
45
  * @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -147,7 +147,7 @@ class MonitorsClient {
147
147
  });
148
148
  }
149
149
  /**
150
- * Creating with notify_webhook: true and a webhook_url enables HMAC-signed webhook delivery and returns the signing secret (monitor.webhook_secret) in this response. Store it securely. A retry with the original Idempotency-Key recovers the same secret for up to 24 hours while it remains the current secret or the valid previous secret. An expired or displaced secret returns 409 idempotency_result_expired without rotating again. Reads do not expose the secret. All subsequent reads expose only webhook_secret_set and webhook_secret_hint.
150
+ * Creating with notify_webhook: true and a webhook_url enables HMAC-signed webhook delivery and returns the signing secret (monitor.webhook_secret) in this response. Store it securely. A retry with the original Idempotency-Key recovers the same secret for up to 24 hours while it remains the current secret or the valid previous secret. An expired or displaced secret returns 409 idempotency_result_expired without rotating again. Reads do not expose the secret. All subsequent reads expose only webhook_secret_set and webhook_secret_hint. Creating monitors and trackers is free. Each alert uses 25 credits once, however many channels and recipients deliver it: credits from your plan, then your on-demand budget. When the account is out of credits, alerts wait instead of sending.
151
151
  *
152
152
  * @param {Arcmira.CreateMonitorsRequest} request
153
153
  * @param {MonitorsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -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";