arcmira 0.5.0 → 0.6.0

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 (77) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/channels/resources/sponsors/client/requests/ListSponsorsRequest.d.ts +2 -2
  4. package/dist/cjs/api/resources/channels/resources/sponsors/types/ListSponsorsRequestStatus.d.ts +1 -1
  5. package/dist/cjs/api/resources/channels/resources/sponsors/types/ListSponsorsRequestStatus.js +1 -1
  6. package/dist/cjs/api/resources/entities/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/entities/client/Client.js +10 -3
  8. package/dist/cjs/api/resources/entities/client/requests/MomentumEntitiesRequest.d.ts +2 -0
  9. package/dist/cjs/api/resources/me/client/Client.d.ts +1 -1
  10. package/dist/cjs/api/resources/me/client/Client.js +1 -1
  11. package/dist/cjs/api/resources/mentions/client/Client.d.ts +1 -1
  12. package/dist/cjs/api/resources/mentions/client/Client.js +1 -1
  13. package/dist/cjs/api/resources/transcripts/client/Client.d.ts +2 -2
  14. package/dist/cjs/api/resources/transcripts/client/Client.js +2 -2
  15. package/dist/cjs/api/types/ChannelSponsorsResponse.d.ts +1 -0
  16. package/dist/cjs/api/types/ChannelVideosResponse.d.ts +12 -0
  17. package/dist/cjs/api/types/EntityMomentumResponse.d.ts +30 -5
  18. package/dist/cjs/api/types/EntityMomentumResponse.js +1 -1
  19. package/dist/cjs/api/types/Error_.d.ts +1 -0
  20. package/dist/cjs/api/types/Freshness.d.ts +9 -0
  21. package/dist/cjs/api/types/Freshness.js +3 -0
  22. package/dist/cjs/api/types/Limit.d.ts +33 -0
  23. package/dist/cjs/api/types/Limit.js +3 -0
  24. package/dist/cjs/api/types/MeResponse.d.ts +11 -0
  25. package/dist/cjs/api/types/MentionCountsResponse.d.ts +12 -0
  26. package/dist/cjs/api/types/MentionListResponse.d.ts +1 -0
  27. package/dist/cjs/api/types/MomentumWindow.d.ts +8 -0
  28. package/dist/cjs/api/types/MomentumWindow.js +3 -0
  29. package/dist/cjs/api/types/TranscriptResponse.d.ts +1 -0
  30. package/dist/cjs/api/types/TranscriptSearchResponse.d.ts +4 -6
  31. package/dist/cjs/api/types/index.d.ts +3 -0
  32. package/dist/cjs/api/types/index.js +3 -0
  33. package/dist/cjs/version.d.ts +1 -1
  34. package/dist/cjs/version.js +1 -1
  35. package/dist/cli/main.js +9 -7
  36. package/dist/cli/operations.js +2 -2
  37. package/dist/esm/BaseClient.mjs +2 -2
  38. package/dist/esm/api/resources/channels/resources/sponsors/client/requests/ListSponsorsRequest.d.mts +2 -2
  39. package/dist/esm/api/resources/channels/resources/sponsors/types/ListSponsorsRequestStatus.d.mts +1 -1
  40. package/dist/esm/api/resources/channels/resources/sponsors/types/ListSponsorsRequestStatus.mjs +1 -1
  41. package/dist/esm/api/resources/entities/client/Client.d.mts +1 -1
  42. package/dist/esm/api/resources/entities/client/Client.mjs +10 -3
  43. package/dist/esm/api/resources/entities/client/requests/MomentumEntitiesRequest.d.mts +2 -0
  44. package/dist/esm/api/resources/me/client/Client.d.mts +1 -1
  45. package/dist/esm/api/resources/me/client/Client.mjs +1 -1
  46. package/dist/esm/api/resources/mentions/client/Client.d.mts +1 -1
  47. package/dist/esm/api/resources/mentions/client/Client.mjs +1 -1
  48. package/dist/esm/api/resources/transcripts/client/Client.d.mts +2 -2
  49. package/dist/esm/api/resources/transcripts/client/Client.mjs +2 -2
  50. package/dist/esm/api/types/ChannelSponsorsResponse.d.mts +1 -0
  51. package/dist/esm/api/types/ChannelVideosResponse.d.mts +12 -0
  52. package/dist/esm/api/types/EntityMomentumResponse.d.mts +30 -5
  53. package/dist/esm/api/types/EntityMomentumResponse.mjs +1 -1
  54. package/dist/esm/api/types/Error_.d.mts +1 -0
  55. package/dist/esm/api/types/Freshness.d.mts +9 -0
  56. package/dist/esm/api/types/Freshness.mjs +2 -0
  57. package/dist/esm/api/types/Limit.d.mts +33 -0
  58. package/dist/esm/api/types/Limit.mjs +2 -0
  59. package/dist/esm/api/types/MeResponse.d.mts +11 -0
  60. package/dist/esm/api/types/MentionCountsResponse.d.mts +12 -0
  61. package/dist/esm/api/types/MentionListResponse.d.mts +1 -0
  62. package/dist/esm/api/types/MomentumWindow.d.mts +8 -0
  63. package/dist/esm/api/types/MomentumWindow.mjs +2 -0
  64. package/dist/esm/api/types/TranscriptResponse.d.mts +1 -0
  65. package/dist/esm/api/types/TranscriptSearchResponse.d.mts +4 -6
  66. package/dist/esm/api/types/index.d.mts +3 -0
  67. package/dist/esm/api/types/index.mjs +3 -0
  68. package/dist/esm/version.d.mts +1 -1
  69. package/dist/esm/version.mjs +1 -1
  70. package/package.json +1 -1
  71. package/reference.md +6 -5
  72. package/skills/arcmira/SKILL.md +16 -19
  73. package/skills/company-watch/SKILL.md +17 -31
  74. package/skills/compare-shows/SKILL.md +9 -17
  75. package/skills/find-quotes/SKILL.md +9 -17
  76. package/skills/person-research/SKILL.md +9 -17
  77. package/skills/sponsor-research/SKILL.md +10 -18
package/README.md CHANGED
@@ -44,7 +44,7 @@ if (read.state === "ready") {
44
44
  }
45
45
  ```
46
46
 
47
- 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.
47
+ 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 Arcmira enforces it, so no call takes a spending amount. 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.
48
48
 
49
49
  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`.
50
50
 
@@ -182,7 +182,7 @@ Data commands (they mirror the MCP client; filters take ids, arcmira resolve fin
182
182
  arcmira search <query> spoken transcript passages for a topic or phrase; --about, --by, --entity (ent_ ids), --channel (UC ids), --kind
183
183
  arcmira resolve <name> a name to one entity id: the best match, an assumed pick, or options; --context settles close calls
184
184
  arcmira mentions --entity <ent_id> where an entity was mentioned, newest first
185
- arcmira momentum <ent_id>... 7 and 30 day volume for one to four entities
185
+ arcmira momentum <ent_id>... volume in a window against the one before, for one to four entities; --days 7 to 365
186
186
  arcmira sponsors <UC id> recurring sponsors of a YouTube channel
187
187
  arcmira recommendations <ent_id> who recommends an entity on air: --kind sponsored, organic, mention or all
188
188
  arcmira episodes <UC id> newest indexed videos of a channel
@@ -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.5.0",
47
- "User-Agent": "arcmira/0.5.0",
46
+ "X-Fern-SDK-Version": "0.6.0",
47
+ "User-Agent": "arcmira/0.6.0",
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);
@@ -10,8 +10,8 @@ export interface ListSponsorsRequest {
10
10
  channel_id: string;
11
11
  /** Sponsors with fewer ad reads are excluded. Default 3. Pro+ only; on other plans passing it is refused with filter_requires_paid. */
12
12
  min_ad_reads?: number;
13
- /** Filter against the curated known-advertisers dataset. Pro+ only. */
13
+ /** Filter against the curated known-advertisers dataset. Pro+ only; on other plans passing it is refused with filter_requires_paid. */
14
14
  status?: Arcmira.channels.ListSponsorsRequestStatus;
15
- /** Sponsors to return. Default 100. Pro+ only; other plans receive the free slice. */
15
+ /** Sponsors to return. Default 100. Pro+ only; on other plans passing it is refused with filter_requires_paid, and omitting it serves the free slice. */
16
16
  limit?: number;
17
17
  }
@@ -1,4 +1,4 @@
1
- /** Filter against the curated known-advertisers dataset. Pro+ only. */
1
+ /** Filter against the curated known-advertisers dataset. Pro+ only; on other plans passing it is refused with filter_requires_paid. */
2
2
  export declare const ListSponsorsRequestStatus: {
3
3
  readonly Active: "active";
4
4
  readonly Lapsed: "lapsed";
@@ -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.ListSponsorsRequestStatus = void 0;
5
- /** Filter against the curated known-advertisers dataset. Pro+ only. */
5
+ /** Filter against the curated known-advertisers dataset. Pro+ only; on other plans passing it is refused with filter_requires_paid. */
6
6
  exports.ListSponsorsRequestStatus = {
7
7
  Active: "active",
8
8
  Lapsed: "lapsed",
@@ -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. 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.
59
+ * Mentions in a lookback window of days (7 to 365, default 30) against the same number of days before it, an absolute-delta verdict on that window (accelerating, flat, fading, none), the newest media date, and the top shows in the window. Pass the window the rest of your answer uses: days=90 for a 90-day answer. The fixed 7, 30 and 90 day counts stay on every card. 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 for the window; otherwise that field is absent and access names the gate. On a plan with a freshness gate, the window ends at the cutoff and the card carries freshness, unlock, and a note that says where results stop. Uses 10 credits from your plan at any window, the default included. 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.
@@ -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. 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.
208
+ * Mentions in a lookback window of days (7 to 365, default 30) against the same number of days before it, an absolute-delta verdict on that window (accelerating, flat, fading, none), the newest media date, and the top shows in the window. Pass the window the rest of your answer uses: days=90 for a 90-day answer. The fixed 7, 30 and 90 day counts stay on every card. 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 for the window; otherwise that field is absent and access names the gate. On a plan with a freshness gate, the window ends at the cutoff and the card carries freshness, unlock, and a note that says where results stop. Uses 10 credits from your plan at any window, the default included. 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.
@@ -231,14 +231,21 @@ class EntitiesClient {
231
231
  __momentum(request, requestOptions) {
232
232
  return __awaiter(this, void 0, void 0, function* () {
233
233
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
234
- const { id } = request;
234
+ const { id, days } = request;
235
+ const _queryParams = {
236
+ days,
237
+ };
235
238
  const _authRequest = yield this._options.authProvider.getAuthRequest();
236
239
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
237
240
  const _response = yield core.fetcher({
238
241
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ArcmiraEnvironment.Default, `v1/entities/${core.url.encodePathParam(id)}/momentum`),
239
242
  method: "GET",
240
243
  headers: _headers,
241
- queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
244
+ queryString: core.url
245
+ .queryBuilder()
246
+ .addMany(_queryParams)
247
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
248
+ .build(),
242
249
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
243
250
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
244
251
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -7,4 +7,6 @@
7
7
  export interface MomentumEntitiesRequest {
8
8
  /** Entity id, ent_{n} or the numeric id. Merged ids follow their redirect. */
9
9
  id: string;
10
+ /** Lookback window in days, 7 to 365. Default 30. The card counts mentions in that many days, and in as many days before them, as mentions_window and mentions_prior_window. Pass the window the rest of your answer uses. */
11
+ days?: number;
10
12
  }
@@ -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 email of the person, the account whose credits it spends (account: id, name, kind, plan) and the role the person holds on it, 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.
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 email of the person, the account whose credits it spends (account: id, name, kind, plan) and the role the person holds on it, the tier, scopes, rate limit, freshness (where results stop on a plan that reads media after a delay, or null), 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 email of the person, the account whose credits it spends (account: id, name, kind, plan) and the role the person holds on it, 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.
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 email of the person, the account whose credits it spends (account: id, name, kind, plan) and the role the person holds on it, the tier, scopes, rate limit, freshness (where results stop on a plan that reads media after a delay, or null), 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
  *
@@ -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. 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.
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. A window the gate cut carries freshness (delay_days, served_through), unlock, and a note that says where results on this plan stop. 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.
@@ -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. 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.
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. A window the gate cut carries freshness (delay_days, served_through), unlock, and a note that says where results on this plan stop. 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.
@@ -11,7 +11,7 @@ export declare class TranscriptsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<TranscriptsClient.Options>;
12
12
  constructor(options?: TranscriptsClient.Options);
13
13
  /**
14
- * Search indexed YouTube and podcast transcripts for short spoken slices. Each result includes spoken text, a watch URL, and a publish date. Scope with channel_ids (or channel) and entity_ids (a person id filters to that person's appearances); narrow to passages about entities with about, to a speaker with by, and to sponsored, organic or mention passages with kind. Every filter takes ids, never names: resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter. Results carry names beside ids (filters.about, filters.by, chunk about and speakers_by). Use one topic per call. Search results include text on every plan within the plan's publication-date window. Explicitly requesting source=arcmira_premium on a plan without Premium transcripts is refused with filter_requires_paid. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. Uses 4 credits per chunk 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.
14
+ * Search indexed YouTube and podcast transcripts for short spoken slices. Each result includes spoken text, a watch URL, and a publish date. Scope with channel_ids (or channel) and entity_ids (a person id filters to that person's appearances); narrow to passages about entities with about, to a speaker with by, and to sponsored, organic or mention passages with kind. Every filter takes ids, never names: resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter. Results carry names beside ids (filters.about, filters.by, chunk about and speakers_by). Use one topic per call. Search results include text on every plan within the plan's publication-date window. Explicitly requesting source=arcmira_premium on a plan without Premium transcripts is refused with filter_requires_paid. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. A window the gate cut carries freshness (delay_days, served_through), unlock, and a note that says where results on this plan stop. Uses 4 credits per chunk 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.SearchTranscriptsRequest} request
17
17
  * @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -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 reads use 4 credits per started 15 minutes. quality=premium is one read. An owned transcript answers 200 ready at no charge. Otherwise this call starts a Premium transcript of the whole video, 300 credits per started 15 minutes, 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.
38
+ * Caption reads use 4 credits per started 15 minutes. quality=premium is one read. An owned transcript answers 200 ready at no charge. Otherwise this call starts a Premium transcript of the whole video, 300 credits per started 15 minutes, 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 the limit it met in limit, and nothing is charged. A default-premium account with nothing owned reads captions with a note. On captions, start and end set the billed window: 4 credits per started 15 minutes of end minus start. On Premium they only trim the returned content, and the charge is the whole video. 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.
@@ -56,7 +56,7 @@ class TranscriptsClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * Search indexed YouTube and podcast transcripts for short spoken slices. Each result includes spoken text, a watch URL, and a publish date. Scope with channel_ids (or channel) and entity_ids (a person id filters to that person's appearances); narrow to passages about entities with about, to a speaker with by, and to sponsored, organic or mention passages with kind. Every filter takes ids, never names: resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter. Results carry names beside ids (filters.about, filters.by, chunk about and speakers_by). Use one topic per call. Search results include text on every plan within the plan's publication-date window. Explicitly requesting source=arcmira_premium on a plan without Premium transcripts is refused with filter_requires_paid. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. Uses 4 credits per chunk 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.
59
+ * Search indexed YouTube and podcast transcripts for short spoken slices. Each result includes spoken text, a watch URL, and a publish date. Scope with channel_ids (or channel) and entity_ids (a person id filters to that person's appearances); narrow to passages about entities with about, to a speaker with by, and to sponsored, organic or mention passages with kind. Every filter takes ids, never names: resolve a name first with GET /v1/entities/resolve, or the call answers 400 id_required naming the parameter. Results carry names beside ids (filters.about, filters.by, chunk about and speakers_by). Use one topic per call. Search results include text on every plan within the plan's publication-date window. Explicitly requesting source=arcmira_premium on a plan without Premium transcripts is refused with filter_requires_paid. An after later than the plan's freshness gate is refused with freshness_requires_paid rather than widened. A window the gate cut carries freshness (delay_days, served_through), unlock, and a note that says where results on this plan stop. Uses 4 credits per chunk 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.SearchTranscriptsRequest} request
62
62
  * @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -147,7 +147,7 @@ class TranscriptsClient {
147
147
  });
148
148
  }
149
149
  /**
150
- * Caption reads use 4 credits per started 15 minutes. quality=premium is one read. An owned transcript answers 200 ready at no charge. Otherwise this call starts a Premium transcript of the whole video, 300 credits per started 15 minutes, 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.
150
+ * Caption reads use 4 credits per started 15 minutes. quality=premium is one read. An owned transcript answers 200 ready at no charge. Otherwise this call starts a Premium transcript of the whole video, 300 credits per started 15 minutes, 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 the limit it met in limit, and nothing is charged. A default-premium account with nothing owned reads captions with a note. On captions, start and end set the billed window: 4 credits per started 15 minutes of end minus start. On Premium they only trim the returned content, and the charge is the whole video. 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.
@@ -114,6 +114,7 @@ export declare namespace ChannelSponsorsResponse {
114
114
  */
115
115
  interface Details {
116
116
  quote?: Arcmira.RefusedQuote | undefined;
117
+ limit?: Arcmira.Limit | undefined;
117
118
  }
118
119
  }
119
120
  }
@@ -15,6 +15,9 @@ export interface ChannelVideosResponse {
15
15
  index_age_days: number | null;
16
16
  /** Same as indexed_through. */
17
17
  as_of: string | null;
18
+ freshness?: Arcmira.Freshness | undefined;
19
+ /** Present with freshness when your plan's freshness gate cut the window; note says so. */
20
+ unlock?: ChannelVideosResponse.Unlock | undefined;
18
21
  /** One steering sentence for the agent reading this. */
19
22
  note: string;
20
23
  }
@@ -48,4 +51,13 @@ export declare namespace ChannelVideosResponse {
48
51
  watch_url: string;
49
52
  }
50
53
  }
54
+ /**
55
+ * Present with freshness when your plan's freshness gate cut the window; note says so.
56
+ */
57
+ interface Unlock {
58
+ /** The plan that lifts the freshness gate. */
59
+ tier: string;
60
+ /** Where to start that plan. */
61
+ url: string;
62
+ }
51
63
  }
@@ -1,24 +1,29 @@
1
1
  import type * as Arcmira from "../index.js";
2
2
  export interface EntityMomentumResponse {
3
3
  entity: Arcmira.EntityRef;
4
- /** Absolute delta of the last 30 days against the prior 30. none when the entity has no mentions at all. */
4
+ /** Absolute delta of the window against the prior window of the same length. The delta it needs grows with the square root of the window: 3 at 7 days, 5 at 30, 9 at 90, 18 at 365. none when the entity has no mentions at all. */
5
5
  verdict: EntityMomentumResponse.Verdict;
6
6
  /** Newest indexed media that mentions the entity. Lead with it; it is the date the verdict is true as of. */
7
7
  as_of: string | null;
8
+ window: Arcmira.MomentumWindow;
8
9
  /** What the count measures. Always the shows we index, never the whole internet. */
9
10
  coverage: string;
11
+ /** Each count ends where window ends. On a plan whose freshness gate cut the window, nothing published after window.before is counted. */
10
12
  volume: EntityMomentumResponse.Volume;
11
- /** Up to five channels by mentions in the last 30 days. */
13
+ /** Up to five channels by mentions in window. */
12
14
  top_shows: EntityMomentumResponse.TopShows.Item[];
13
- /** Commercial split for the last 30 days. Present only on a Pro+ plan; otherwise access names the gate. */
15
+ /** Commercial split in window. Present only on a Pro+ plan; otherwise access names the gate. */
14
16
  paid_vs_organic?: EntityMomentumResponse.PaidVsOrganic | undefined;
15
17
  /** The gate that reduced this response. Present only when something was withheld; carries the same code, gate, and unlock an outright refusal would. */
16
18
  access?: EntityMomentumResponse.Access | undefined;
19
+ freshness?: Arcmira.Freshness | undefined;
20
+ /** Present with freshness when your plan's freshness gate cut the window; note says so. */
21
+ unlock?: EntityMomentumResponse.Unlock | undefined;
17
22
  /** One steering sentence for the agent reading this. */
18
23
  note: string;
19
24
  }
20
25
  export declare namespace EntityMomentumResponse {
21
- /** Absolute delta of the last 30 days against the prior 30. none when the entity has no mentions at all. */
26
+ /** Absolute delta of the window against the prior window of the same length. The delta it needs grows with the square root of the window: 3 at 7 days, 5 at 30, 9 at 90, 18 at 365. none when the entity has no mentions at all. */
22
27
  const Verdict: {
23
28
  readonly Accelerating: "accelerating";
24
29
  readonly Flat: "flat";
@@ -26,6 +31,9 @@ export declare namespace EntityMomentumResponse {
26
31
  readonly None: "none";
27
32
  };
28
33
  type Verdict = (typeof Verdict)[keyof typeof Verdict];
34
+ /**
35
+ * Each count ends where window ends. On a plan whose freshness gate cut the window, nothing published after window.before is counted.
36
+ */
29
37
  interface Volume {
30
38
  mentions_7d: number;
31
39
  mentions_30d: number;
@@ -36,6 +44,13 @@ export declare namespace EntityMomentumResponse {
36
44
  mentions_90d: number;
37
45
  /** All-time mentions in the index. */
38
46
  total: number;
47
+ /** Mentions in window. Equals mentions_30d when days is 30. */
48
+ mentions_window: number;
49
+ /** Mentions in the same number of days before window.after. Equals mentions_prior_30d when days is 30. */
50
+ mentions_prior_window: number;
51
+ delta_window_absolute: number;
52
+ /** Percent change against the prior window. Null when the prior window was zero. */
53
+ delta_window_pct: number | null;
39
54
  }
40
55
  type TopShows = TopShows.Item[];
41
56
  namespace TopShows {
@@ -48,7 +63,7 @@ export declare namespace EntityMomentumResponse {
48
63
  }
49
64
  }
50
65
  /**
51
- * Commercial split for the last 30 days. Present only on a Pro+ plan; otherwise access names the gate.
66
+ * Commercial split in window. Present only on a Pro+ plan; otherwise access names the gate.
52
67
  */
53
68
  interface PaidVsOrganic {
54
69
  ad_reads: number;
@@ -143,6 +158,16 @@ export declare namespace EntityMomentumResponse {
143
158
  */
144
159
  interface Details {
145
160
  quote?: Arcmira.RefusedQuote | undefined;
161
+ limit?: Arcmira.Limit | undefined;
146
162
  }
147
163
  }
164
+ /**
165
+ * Present with freshness when your plan's freshness gate cut the window; note says so.
166
+ */
167
+ interface Unlock {
168
+ /** The plan that lifts the freshness gate. */
169
+ tier: string;
170
+ /** Where to start that plan. */
171
+ url: string;
172
+ }
148
173
  }
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.EntityMomentumResponse = void 0;
5
5
  var EntityMomentumResponse;
6
6
  (function (EntityMomentumResponse) {
7
- /** Absolute delta of the last 30 days against the prior 30. none when the entity has no mentions at all. */
7
+ /** Absolute delta of the window against the prior window of the same length. The delta it needs grows with the square root of the window: 3 at 7 days, 5 at 30, 9 at 90, 18 at 365. none when the entity has no mentions at all. */
8
8
  EntityMomentumResponse.Verdict = {
9
9
  Accelerating: "accelerating",
10
10
  Flat: "flat",
@@ -88,6 +88,7 @@ export declare namespace Error_ {
88
88
  */
89
89
  interface Details {
90
90
  quote?: Arcmira.RefusedQuote | undefined;
91
+ limit?: Arcmira.Limit | undefined;
91
92
  }
92
93
  }
93
94
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Where results stop on a plan that reads media after a delay.
3
+ */
4
+ export interface Freshness {
5
+ /** Days after publication before this plan reads a video. */
6
+ delay_days: number;
7
+ /** YYYY-MM-DD (UTC). Results on this plan stop at this publish date; media published after it is not read. */
8
+ served_through: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ /**
2
+ * On quota_exceeded, spend_limit_exceeded, member_limit, fair_use_cap and freshness_requires_paid: the limit the refusal met. Absent when the server holds no figure for it.
3
+ */
4
+ export type Limit = {
5
+ kind: "plan_credits";
6
+ unit: "credits";
7
+ amount: number;
8
+ used: number;
9
+ resets_at: string;
10
+ } | {
11
+ kind: "on_demand_budget";
12
+ unit: "credits";
13
+ amount: number;
14
+ used: number;
15
+ resets_at: string;
16
+ } | {
17
+ kind: "member_on_demand";
18
+ unit: "cents";
19
+ amount: number;
20
+ used: number;
21
+ resets_at: string;
22
+ } | {
23
+ kind: "premium_hours";
24
+ unit: "hours";
25
+ amount: number;
26
+ used: number;
27
+ resets_at: string;
28
+ }
29
+ /**
30
+ * Where results stop on a plan that reads media after a delay. */
31
+ | {
32
+ kind: "freshness";
33
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -24,6 +24,8 @@ export interface MeResponse {
24
24
  rate_limit: number;
25
25
  /** True when the plan includes the Recommendations API (commercial intelligence endpoints). */
26
26
  recommendations_api_enabled: boolean;
27
+ /** Where results stop for this account now: the free plan, and a paid plan past its usage limit, read media after a delay. Dated reads cut their window at served_through and say so. Null when results are current. */
28
+ freshness: MeResponse.Freshness | null;
27
29
  usage: MeResponse.Usage;
28
30
  settings: Arcmira.AccountSettings;
29
31
  }
@@ -63,6 +65,15 @@ export declare namespace MeResponse {
63
65
  readonly Member: "member";
64
66
  };
65
67
  type Role = (typeof Role)[keyof typeof Role];
68
+ /**
69
+ * Where results stop for this account now: the free plan, and a paid plan past its usage limit, read media after a delay. Dated reads cut their window at served_through and say so. Null when results are current.
70
+ */
71
+ interface Freshness {
72
+ /** Days after publication before this plan reads a video. */
73
+ delay_days: number;
74
+ /** YYYY-MM-DD (UTC). Results on this plan stop at this publish date; media published after it is not read. */
75
+ served_through: string;
76
+ }
66
77
  interface Usage {
67
78
  /** Plan credits used this month, in rows (a row is 4 credits): usage.credits.plan.used divided by 4, rounded up. */
68
79
  rows_used: number;
@@ -16,6 +16,9 @@ export interface MentionCountsResponse {
16
16
  shared: MentionCountsResponse.Shared.Item[];
17
17
  /** Newest media across rows. Null when there are none. */
18
18
  as_of: string | null;
19
+ freshness?: Arcmira.Freshness | undefined;
20
+ /** Present with freshness when your plan's freshness gate cut the window; note says so. */
21
+ unlock?: MentionCountsResponse.Unlock | undefined;
19
22
  /** One steering sentence for the agent reading this. */
20
23
  note: string;
21
24
  }
@@ -91,4 +94,13 @@ export declare namespace MentionCountsResponse {
91
94
  }
92
95
  }
93
96
  }
97
+ /**
98
+ * Present with freshness when your plan's freshness gate cut the window; note says so.
99
+ */
100
+ interface Unlock {
101
+ /** The plan that lifts the freshness gate. */
102
+ tier: string;
103
+ /** Where to start that plan. */
104
+ url: string;
105
+ }
94
106
  }
@@ -12,6 +12,7 @@ export interface MentionListResponse {
12
12
  note?: string | undefined;
13
13
  /** Present with note on a free preview page. */
14
14
  unlock?: MentionListResponse.Unlock | undefined;
15
+ freshness?: Arcmira.Freshness | undefined;
15
16
  }
16
17
  export declare namespace MentionListResponse {
17
18
  /**
@@ -0,0 +1,8 @@
1
+ import type * as Arcmira from "../index.js";
2
+ /**
3
+ * The window mentions_window counts, [after, before) in UTC. mentions_prior_window counts the same number of days before after.
4
+ */
5
+ export interface MomentumWindow extends Arcmira.PublicationWindow {
6
+ /** The lookback you asked for, 7 to 365. */
7
+ days: number;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -174,6 +174,7 @@ export declare namespace TranscriptResponse {
174
174
  */
175
175
  interface Details {
176
176
  quote?: Arcmira.RefusedQuote | undefined;
177
+ limit?: Arcmira.Limit | undefined;
177
178
  }
178
179
  }
179
180
  }
@@ -10,17 +10,14 @@ export interface TranscriptSearchResponse {
10
10
  window: Arcmira.PublicationWindow;
11
11
  /** Ranked slices. Empty means no hit in the shows we index; say so, never search the open web. */
12
12
  chunks: Arcmira.TranscriptSearchChunk[];
13
- /** True when some retrieval batches failed and these chunks are what survived. */
14
- partial?: boolean | undefined;
15
- /** How many batches failed when partial is true. */
16
- failed_batches?: number | undefined;
17
13
  /** Newest published_at among the chunks. Null when there are none. */
18
14
  as_of: string | null;
19
15
  /** Health of the search index behind these results. Catalog routes are unaffected by it. */
20
16
  search_index: TranscriptSearchResponse.SearchIndex;
21
17
  /** The gate that reduced this response. Present only when something was withheld; carries the same code, gate, and unlock an outright refusal would. */
22
18
  access?: TranscriptSearchResponse.Access | undefined;
23
- /** Present when your plan's freshness gate cut the window and nothing older matched; note says so. */
19
+ freshness?: Arcmira.Freshness | undefined;
20
+ /** Present with freshness when your plan's freshness gate cut the window; note says so. */
24
21
  unlock?: TranscriptSearchResponse.Unlock | undefined;
25
22
  /** One steering sentence for the agent reading this. */
26
23
  note: string;
@@ -155,10 +152,11 @@ export declare namespace TranscriptSearchResponse {
155
152
  */
156
153
  interface Details {
157
154
  quote?: Arcmira.RefusedQuote | undefined;
155
+ limit?: Arcmira.Limit | undefined;
158
156
  }
159
157
  }
160
158
  /**
161
- * Present when your plan's freshness gate cut the window and nothing older matched; note says so.
159
+ * Present with freshness when your plan's freshness gate cut the window; note says so.
162
160
  */
163
161
  interface Unlock {
164
162
  /** The plan that lifts the freshness gate. */
@@ -21,7 +21,9 @@ export * from "./FeedbackReadbackCorrection.js";
21
21
  export * from "./FeedbackReadbackResponse.js";
22
22
  export * from "./FeedbackResponse.js";
23
23
  export * from "./FreeformSuggestedChange.js";
24
+ export * from "./Freshness.js";
24
25
  export * from "./HealthResponse.js";
26
+ export * from "./Limit.js";
25
27
  export * from "./Mention.js";
26
28
  export * from "./MentionCountsResponse.js";
27
29
  export * from "./MentionListResponse.js";
@@ -31,6 +33,7 @@ export * from "./MeSettingsResponse.js";
31
33
  export * from "./MessageResponse.js";
32
34
  export * from "./MissedAlertChange.js";
33
35
  export * from "./MissingResultChange.js";
36
+ export * from "./MomentumWindow.js";
34
37
  export * from "./Monitor.js";
35
38
  export * from "./MonitorAddEntitiesResponse.js";
36
39
  export * from "./MonitorAddTrackersResponse.js";
@@ -37,7 +37,9 @@ __exportStar(require("./FeedbackReadbackCorrection.js"), exports);
37
37
  __exportStar(require("./FeedbackReadbackResponse.js"), exports);
38
38
  __exportStar(require("./FeedbackResponse.js"), exports);
39
39
  __exportStar(require("./FreeformSuggestedChange.js"), exports);
40
+ __exportStar(require("./Freshness.js"), exports);
40
41
  __exportStar(require("./HealthResponse.js"), exports);
42
+ __exportStar(require("./Limit.js"), exports);
41
43
  __exportStar(require("./Mention.js"), exports);
42
44
  __exportStar(require("./MentionCountsResponse.js"), exports);
43
45
  __exportStar(require("./MentionListResponse.js"), exports);
@@ -47,6 +49,7 @@ __exportStar(require("./MeSettingsResponse.js"), exports);
47
49
  __exportStar(require("./MessageResponse.js"), exports);
48
50
  __exportStar(require("./MissedAlertChange.js"), exports);
49
51
  __exportStar(require("./MissingResultChange.js"), exports);
52
+ __exportStar(require("./MomentumWindow.js"), exports);
50
53
  __exportStar(require("./Monitor.js"), exports);
51
54
  __exportStar(require("./MonitorAddEntitiesResponse.js"), exports);
52
55
  __exportStar(require("./MonitorAddTrackersResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.5.0";
1
+ export declare const SDK_VERSION = "0.6.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.5.0";
4
+ exports.SDK_VERSION = "0.6.0";
package/dist/cli/main.js CHANGED
@@ -620,20 +620,22 @@ const COMMANDS = {
620
620
  momentum: {
621
621
  section: "data",
622
622
  operations: ["get_entity_momentum"],
623
- summary: "Spoken-web heat for one to four entities: 7 and 30 day volume against the prior 30.",
624
- usage: "momentum <ent_...> [ent_... up to 4]",
625
- examples: ["arcmira momentum ent_14", "arcmira momentum ent_14 ent_258320"],
623
+ summary: "Spoken-web heat for one to four entities: volume in a window of days against the same number of days before it. 10 credits per entity.",
624
+ usage: "momentum <ent_...> [ent_... up to 4] [--days N]",
625
+ examples: ["arcmira momentum ent_14", "arcmira momentum ent_14 ent_258320 --days 90"],
626
626
  positionals: "many",
627
- options: {},
628
- run: async ({ client, positionals }) => {
627
+ options: {
628
+ days: { type: "string", int: [7, 365], help: "Lookback window in days, 7 to 365. Default 30." },
629
+ },
630
+ run: async ({ client, positionals, values: v }) => {
629
631
  if (positionals.length > 4)
630
632
  throw new UsageError("momentum takes one to four entities", "too_many_entities");
631
- return { momentum: await Promise.all(positionals.map((id) => client.entities.momentum({ id }))) };
633
+ return { momentum: await Promise.all(positionals.map((id) => client.entities.momentum({ id, days: num(v.days) }))) };
632
634
  },
633
635
  print: ({ momentum }) => {
634
636
  for (const r of momentum) {
635
637
  const v = r.volume;
636
- console.log(`${r.entity.name} (${r.entity.id}): ${r.verdict} as of ${day(r.as_of)} ${Object.entries(v).map(([k, n]) => `${k}=${n}`).join(" ")}`);
638
+ console.log(`${r.entity.name} (${r.entity.id}): ${r.verdict} ${r.window.days} days to ${day(r.window.before)} ${Object.entries(v).map(([k, n]) => `${k}=${n}`).join(" ")}`);
637
639
  for (const s of r.top_shows.slice(0, 5))
638
640
  console.log(` ${String(s.mentions).padStart(5)} ${s.channel_name ?? s.channel_id}`);
639
641
  if (r.paid_vs_organic)