arcmira 0.6.2 → 0.6.3
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.
- package/GUIDE.md +576 -88
- package/README.md +93 -20
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/channels/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/channels/client/Client.js +1 -1
- package/dist/cjs/api/resources/channels/resources/videos/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/channels/resources/videos/client/Client.js +1 -1
- package/dist/cjs/api/resources/entities/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/entities/client/Client.js +1 -1
- package/dist/cjs/api/resources/feedback/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/feedback/client/Client.js +1 -1
- package/dist/cjs/api/resources/mentions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/mentions/client/Client.js +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/transcripts/client/Client.js +2 -2
- package/dist/cjs/api/resources/transcripts/client/requests/GetTranscriptsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/requests/SearchTranscriptsRequest.d.ts +2 -2
- package/dist/cjs/api/types/Alert.d.ts +1 -1
- package/dist/cjs/api/types/Mention.d.ts +1 -1
- package/dist/cjs/api/types/TranscriptResponse.d.ts +6 -2
- package/dist/cjs/api/types/TranscriptSearchChunk.d.ts +16 -3
- package/dist/cjs/api/types/TranscriptSearchChunk.js +10 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cli/operations.js +2 -2
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/channels/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/channels/client/Client.mjs +1 -1
- package/dist/esm/api/resources/channels/resources/videos/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/channels/resources/videos/client/Client.mjs +1 -1
- package/dist/esm/api/resources/entities/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/entities/client/Client.mjs +1 -1
- package/dist/esm/api/resources/feedback/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/feedback/client/Client.mjs +1 -1
- package/dist/esm/api/resources/mentions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/mentions/client/Client.mjs +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/transcripts/client/Client.mjs +2 -2
- package/dist/esm/api/resources/transcripts/client/requests/GetTranscriptsRequest.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/requests/SearchTranscriptsRequest.d.mts +2 -2
- package/dist/esm/api/types/Alert.d.mts +1 -1
- package/dist/esm/api/types/Mention.d.mts +1 -1
- package/dist/esm/api/types/TranscriptResponse.d.mts +6 -2
- package/dist/esm/api/types/TranscriptSearchChunk.d.mts +16 -3
- package/dist/esm/api/types/TranscriptSearchChunk.mjs +9 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/llms.txt +6 -2
- package/package.json +4 -3
- package/reference.md +7 -7
- package/skills/arcmira/SKILL.md +27 -38
- package/skills/brand-mention-monitoring/SKILL.md +91 -0
- package/skills/company-watch/SKILL.md +8 -58
- package/skills/compare-shows/SKILL.md +4 -2
- package/skills/find-quotes/SKILL.md +5 -3
- package/skills/person-research/SKILL.md +11 -8
- package/skills/podcast-transcript-search/SKILL.md +88 -0
- package/skills/sponsor-research/SKILL.md +4 -2
- package/skills/what-did-they-say/SKILL.md +84 -0
- package/skills/youtube-clip-finder/SKILL.md +105 -0
- package/skills/youtube-transcript-search/SKILL.md +85 -0
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Arcmira for TypeScript and JavaScript
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
YouTube transcript search and monitoring for your AI: exact quotes, full transcripts and speakers.
|
|
4
4
|
|
|
5
|
-
[Get an API key](https://arcmira.com/docs/authentication) · [API docs](https://arcmira.com/docs) · [Pricing](https://arcmira.com/pricing)
|
|
5
|
+
[Arcmira](https://arcmira.com) · [Get an API key](https://arcmira.com/docs/authentication) · [API docs](https://arcmira.com/docs) · [Pricing](https://arcmira.com/pricing)
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -12,27 +12,96 @@ npm install arcmira
|
|
|
12
12
|
|
|
13
13
|
Set `ARCMIRA_API_KEY` to your API key. The examples below work in TypeScript or JavaScript. Save one as `example.mjs` and run `node example.mjs`.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Search YouTube videos and podcast transcripts for quotes and clips
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Find what people are saying about a company, product, or idea across YouTube videos and podcasts. Search phrases such as `GPU demand`, `GPU financing`, or `inference costs`; narrow by speaker, company, channel, or date as your question develops. Start with GPU demand over the last 60 days.
|
|
18
18
|
|
|
19
19
|
```ts
|
|
20
20
|
import { ArcmiraClient } from "arcmira";
|
|
21
21
|
|
|
22
22
|
const client = new ArcmiraClient({ apiKey: process.env.ARCMIRA_API_KEY });
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
const query = "GPU demand";
|
|
24
|
+
|
|
25
|
+
// Search the last 60 days.
|
|
26
|
+
const now = Date.now();
|
|
27
|
+
const day = 86_400_000;
|
|
28
|
+
const after = new Date(now - 60 * day).toISOString();
|
|
29
|
+
const before = new Date(now).toISOString();
|
|
30
|
+
|
|
31
|
+
const hits = await client.transcripts.search({
|
|
32
|
+
q: query, after, before, limit: 20,
|
|
33
|
+
});
|
|
34
|
+
console.log(`\n${query} (${hits.chunks.length} passages)`);
|
|
35
|
+
console.log(
|
|
36
|
+
`${hits.window.after?.slice(0, 10) ?? "unknown"} - ` +
|
|
37
|
+
`${hits.window.before?.slice(0, 10) ?? "unknown"}\n`,
|
|
38
|
+
);
|
|
39
|
+
for (const [i, hit] of hits.chunks.entries()) {
|
|
40
|
+
console.log(`${String(i + 1).padStart(2, "0")}\n${hit.text}\n`);
|
|
41
|
+
console.log(`Video: ${hit.video_title ?? hit.video_id}`);
|
|
42
|
+
console.log(`Channel: ${hit.channel_name ?? "Unknown"}`);
|
|
43
|
+
console.log(`Published: ${hit.published_at?.slice(0, 10) ?? "Unknown"}`);
|
|
44
|
+
console.log(`Transcript: ${hit.source_label ?? "Unknown"}`);
|
|
45
|
+
const watch = new URL(hit.watch_url, "https://arcmira.com").href;
|
|
46
|
+
console.log(`Watch: ${watch}\n--\n`);
|
|
27
47
|
}
|
|
28
|
-
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Sample console output**
|
|
52
|
+
|
|
53
|
+
The script prints every returned passage in full. Below is an excerpt from result 13 of the October 16, 2026 run, wrapped for readability. `...` marks omitted output. Your results will vary.
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
GPU demand (20 passages)
|
|
57
|
+
2026-08-17 - 2026-10-16
|
|
58
|
+
|
|
59
|
+
...
|
|
60
|
+
|
|
61
|
+
13
|
|
62
|
+
...
|
|
63
|
+
John Coogan: What is the next couple months even look like for CPU demand in the
|
|
64
|
+
data center?
|
|
65
|
+
Cristiano Amon: Okay, let me separate that conversation into— I think one, one
|
|
66
|
+
topic is there's so much more demand for compute than availability right now and
|
|
67
|
+
across the board.
|
|
68
|
+
Cristiano Amon: So I think what we're seeing this right now and by the way, as a
|
|
69
|
+
semiconductor company, I'll tell you, this supply chain, it's operating at 100%
|
|
70
|
+
capacity, everything Everything is short because there's so much more demand
|
|
71
|
+
|
|
72
|
+
Video: Jensen vs NYT, New Model Reactions, Saudi EVs, You Can See
|
|
73
|
+
Everything
|
|
74
|
+
Channel: TBPN
|
|
75
|
+
Published: 2026-09-23
|
|
76
|
+
Transcript: Arcmira Premium
|
|
77
|
+
Watch: https://arcmira.com/watch?v=wDWgNOpna90&t=2428
|
|
78
|
+
--
|
|
79
|
+
|
|
80
|
+
...
|
|
29
81
|
```
|
|
30
82
|
|
|
31
|
-
Search covers indexed transcripts within your plan's date window. Check `window`, `search_index`, and `note` before treating an empty result as evidence that nobody said it.
|
|
32
83
|
|
|
33
|
-
|
|
84
|
+
Use `hits.chunks` directly for further analysis; the logging above is for inspection.
|
|
34
85
|
|
|
35
|
-
|
|
86
|
+
**Find evidence that could change your mind.** Strong demand is the beginning of the investigation. Follow the other results into customer commitments, margins, and financing, compare conflicting claims, and build a research brief with timestamped sources.
|
|
87
|
+
|
|
88
|
+
Learn how to [investigate a research question with YouTube video and podcast transcript search in our Guide](https://github.com/arcmira/arcmira/blob/master/GUIDE.md#investigate-a-research-question-with-youtube-video-and-podcast-transcript-search).
|
|
89
|
+
|
|
90
|
+
Give your agent access to the latest indexed conversations, speaker-labeled Premium transcripts, and company alerts. The most up-to-date coverage is only available via paid plans, starting at $20/month. [Try Pro free for 7 days at no risk.](https://arcmira.com/pricing) Put Arcmira to work on a real research question, then keep it only if it earns a place in your research stack.
|
|
91
|
+
|
|
92
|
+
Not ready for a paid plan? [Tell us why and what you would pay for](https://arcmira.com/docs/feedback#not-ready-for-a-paid-plan). Feedback is free to give and helps us build what you want.
|
|
93
|
+
|
|
94
|
+
Search covers indexed transcripts within your plan's date window. Missing a source you care about? [Help shape the index](https://arcmira.com/docs/feedback#help-shape-the-index) with the channels or industries you need and what better coverage would make possible.
|
|
95
|
+
|
|
96
|
+
## Transcribe a YouTube video
|
|
97
|
+
|
|
98
|
+
Start free with 1,000 credits a month, enough for up to 250 caption transcripts of videos up to 15 minutes each. Captions use 4 credits per started 15 minutes from the same balance as search and alerts. [Plans and usage](https://arcmira.com/pricing).
|
|
99
|
+
|
|
100
|
+
Pull an available YouTube caption track with timestamps. Replace the video id below with yours.
|
|
101
|
+
|
|
102
|
+
**Keep the names your research depends on.** Misheard company and product names can send an agent to the wrong entity. In a spelling-based review across 167 tech and finance videos, name disagreements favored Premium over YouTube automatic captions by about 21:1. Use Premium for speaker labels and research where names matter.
|
|
103
|
+
|
|
104
|
+
This measures the tested name disagreements, not overall word accuracy. [How we measured this](https://arcmira.com/docs/transcript-name-comparison).
|
|
36
105
|
|
|
37
106
|
```ts
|
|
38
107
|
import { ArcmiraClient } from "arcmira";
|
|
@@ -44,11 +113,13 @@ if (transcript.state === "ready") {
|
|
|
44
113
|
}
|
|
45
114
|
```
|
|
46
115
|
|
|
47
|
-
|
|
116
|
+
Get a free cost estimate with `client.transcripts.quote({ video_id })`, then read with `quality: "premium"`. Premium uses credits from your plan, then your on-demand budget. If `pending`, poll after `job.next_poll_seconds`. [Premium states, polling, and retries](https://github.com/arcmira/arcmira/blob/master/GUIDE.md#premium-transcripts).
|
|
48
117
|
|
|
49
|
-
##
|
|
118
|
+
## Set up YouTube monitoring for your company
|
|
50
119
|
|
|
51
|
-
Follow
|
|
120
|
+
Follow 2 names and get up to 40 alerts a month on a free account, if you use all 1,000 monthly credits for alerts. Each alert uses 25 credits once per occurrence, regardless of delivery channels or recipients. Get alerts as new mentions are analyzed, by email or [Slack](https://arcmira.com/docs/monitors#delivery), or use a [webhook](https://arcmira.com/docs/monitors#verify-webhooks) on a paid plan.
|
|
121
|
+
|
|
122
|
+
Follow your company or a competitor in newly analyzed YouTube videos and podcasts. Replace `PlanetScale` and `you@example.com` below. External email recipients must confirm before delivery.
|
|
52
123
|
|
|
53
124
|
```ts
|
|
54
125
|
import { ArcmiraClient } from "arcmira";
|
|
@@ -56,19 +127,19 @@ import { ArcmiraClient } from "arcmira";
|
|
|
56
127
|
const client = new ArcmiraClient({ apiKey: process.env.ARCMIRA_API_KEY });
|
|
57
128
|
const { monitor } = await client.monitors.create({
|
|
58
129
|
name: "Company watch",
|
|
59
|
-
notify_frequency: "
|
|
130
|
+
notify_frequency: "realtime",
|
|
60
131
|
notify_emails: ["you@example.com"],
|
|
61
132
|
});
|
|
62
133
|
const { results } = await client.monitors.entities.add({
|
|
63
134
|
id: monitor.id,
|
|
64
|
-
names: [{ name: "
|
|
135
|
+
names: [{ name: "PlanetScale", type: "organization" }],
|
|
65
136
|
});
|
|
66
137
|
for (const result of results) {
|
|
67
138
|
console.log(result.attached ? result.tracker_id : result.reason);
|
|
68
139
|
}
|
|
69
140
|
```
|
|
70
141
|
|
|
71
|
-
This creates a monitor and tracker in your account.
|
|
142
|
+
This creates a monitor and tracker in your account. Check each `attached` result. Alerts cover newly analyzed episodes published within the last 14 days. For retries of writes, reuse the same `Idempotency-Key`.
|
|
72
143
|
|
|
73
144
|
## Choose the next task
|
|
74
145
|
|
|
@@ -82,10 +153,12 @@ This creates a monitor and tracker in your account. Creation is free; delivered
|
|
|
82
153
|
|
|
83
154
|
Entity filters take ids. Resolve names first; explain a `suggested` match and ask the user when the resolver returns `ask`. Use `after` inclusive and `before` exclusive for date windows. Paginated methods fetch more rows as you iterate, so stop when you have enough.
|
|
84
155
|
|
|
85
|
-
## Use with an AI agent
|
|
156
|
+
## Use Arcmira with an AI agent
|
|
86
157
|
|
|
87
158
|
For tasks such as "pull YouTube transcripts", "find quotes with timestamps", "research podcast sponsors", or "monitor company mentions", connect the [Arcmira MCP server](https://github.com/arcmira/mcp). It gives your agent the same API and task skills.
|
|
88
159
|
|
|
160
|
+
Add "use arcmira" to any question to send it to Arcmira first.
|
|
161
|
+
|
|
89
162
|
```sh
|
|
90
163
|
npx arcmira setup
|
|
91
164
|
```
|
|
@@ -95,7 +168,7 @@ Setup supports Claude Code, Codex, Cursor, VS Code, Gemini CLI, and Claude Deskt
|
|
|
95
168
|
## Command line
|
|
96
169
|
|
|
97
170
|
```sh
|
|
98
|
-
npx arcmira search "
|
|
171
|
+
npx arcmira search "TSMC" --limit 5
|
|
99
172
|
npx arcmira transcripts get dQw4w9WgXcQ
|
|
100
173
|
npx arcmira help
|
|
101
174
|
```
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.6.
|
|
47
|
-
"User-Agent": "arcmira/0.6.
|
|
46
|
+
"X-Fern-SDK-Version": "0.6.3",
|
|
47
|
+
"User-Agent": "arcmira/0.6.3",
|
|
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
|
|
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; to ask for a channel, send feedback with its channel id. 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
|
|
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; to ask for a channel, send feedback with its channel id. 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 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;
|
|
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; this route cannot add a channel. 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 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;
|
|
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; this route cannot add a channel. 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.
|
|
@@ -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
|
-
*
|
|
59
|
+
* Compare an entity's mention volume with the preceding period. Returns the counts, absolute and percentage change, momentum verdict, latest source date, and top shows. Choose a rolling window of 7 to 365 days with `days` (default 30). The preceding period is the same number of days before the window, and the verdict (accelerating, flat, fading, none) reads the absolute change. 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
|
-
*
|
|
208
|
+
* Compare an entity's mention volume with the preceding period. Returns the counts, absolute and percentage change, momentum verdict, latest source date, and top shows. Choose a rolling window of 7 to 365 days with `days` (default 30). The preceding period is the same number of days before the window, and the verdict (accelerating, flat, fading, none) reads the absolute change. 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.
|
|
@@ -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
|
-
*
|
|
14
|
+
* Help shape Arcmira. Report a wrong result, request sources or capabilities, or tell us what would make your workflow more useful. To correct a result, 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.
|
|
@@ -68,7 +68,7 @@ class FeedbackClient {
|
|
|
68
68
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Help shape Arcmira. Report a wrong result, request sources or capabilities, or tell us what would make your workflow more useful. To correct a result, 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.
|
|
@@ -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
|
|
14
|
+
* Find where a person, company, product, or topic is mentioned in indexed videos and podcasts. For a person, set `is_appearance` to true to find media appearances, false for mentions by others, or omit it for both. Results include a description, source video, and available timestamps. Cursor-paginated, 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.
|
|
@@ -56,7 +56,7 @@ class MentionsClient {
|
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Cursor-paginated
|
|
59
|
+
* Find where a person, company, product, or topic is mentioned in indexed videos and podcasts. For a person, set `is_appearance` to true to find media appearances, false for mentions by others, or omit it for both. Results include a description, source video, and available timestamps. Cursor-paginated, 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.
|
|
@@ -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
|
|
14
|
+
* Search indexed YouTube and podcast transcripts for passages matching a word or phrase. Returns passage text, source metadata, publication dates, and timestamped watch links. Narrow to passages about an entity with `about`, or passages where a person speaks with `by`. Scope with `channel_ids` (or `channel`) and `entity_ids` (a person id filters to that person's appearances). Filter 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 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.
|
|
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. language picks the language: language= returns the base transcript (base_language), and a language the transcript is not in returns it translated, line for line with the same timestamps and speakers. Captions offer only the languages YouTube makes available for the video (translation_languages), billed as a caption read; any other language is Premium: an owned Premium transcript in another language costs the Premium rate once per account and language.
|
|
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
|
|
59
|
+
* Search indexed YouTube and podcast transcripts for passages matching a word or phrase. Returns passage text, source metadata, publication dates, and timestamped watch links. Narrow to passages about an entity with `about`, or passages where a person speaks with `by`. Scope with `channel_ids` (or `channel`) and `entity_ids` (a person id filters to that person's appearances). Filter 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 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.
|
|
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. language picks the language: language= returns the base transcript (base_language), and a language the transcript is not in returns it translated, line for line with the same timestamps and speakers. Captions offer only the languages YouTube makes available for the video (translation_languages), billed as a caption read; any other language is Premium: an owned Premium transcript in another language costs the Premium rate once per account and language.
|
|
151
151
|
*
|
|
152
152
|
* @param {Arcmira.GetTranscriptsRequest} request
|
|
153
153
|
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -10,7 +10,7 @@ export interface GetTranscriptsRequest {
|
|
|
10
10
|
video_id: string;
|
|
11
11
|
/** captions reads creator or automatic captions at 4 credits per started 15 minutes. premium is one read. An owned transcript returns 200 state ready at no charge. Otherwise the read 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 returns 202 state pending with the job until it is ready. When the last Premium transcript for the video failed it answers 200 state failed and starts a new one only with retry=true. 402 quota_exceeded or spend_limit_exceeded and 403 paid_plan_required carry the price in quote. It never substitutes captions. Default captions unless changed in account settings. */
|
|
12
12
|
quality?: Arcmira.GetTranscriptsRequestQuality;
|
|
13
|
-
/**
|
|
13
|
+
/** The language to read the transcript in, as a code (e.g. "es") or a comma-separated priority list of at most 5 (e.g. "de,en"); asr picks the first automatic caption track and asr-<code> a specific one. Every transcript has a base language, base_language in the response: the language of the original caption track, or the language a Premium transcript was spoken and transcribed in. language= with no value returns the base transcript; so does a code in the base language. Omitted, the account default applies (en unless changed), falling back to the base transcript. When no code in the list matches, the transcript is translated into the first code, line for line with the same timestamps and speakers. Captions translate only into the languages YouTube makes available for the video (translation_languages in the response, or GET /v1/videos/{video_id}/captions), billed as a caption read of the window, 4 credits per started 15 minutes; any other code answers 400 invalid_query naming the Premium read. On a Premium transcript the account owns, each other language costs the Premium rate, 300 credits per started 15 minutes, once per account and language, and is free after that. While a translation runs the read answers 503 transcript_fetching with Retry-After and progress, and charges nothing. languages[] lists every caption track the video offers. */
|
|
14
14
|
language?: string;
|
|
15
15
|
/** false returns paragraphs[] of { start, text, speaker? } instead of lines[], for reading rather than citing. Default true. */
|
|
16
16
|
timestamps?: boolean;
|
|
@@ -16,9 +16,9 @@ export interface SearchTranscriptsRequest {
|
|
|
16
16
|
entity_ids?: string;
|
|
17
17
|
/** Comma-separated entity ids (ent_{n}), at most 8. Only passages about these entities: excerpt pins, exact-name mentions and ad verdicts. Ids only: a name answers 400 id_required. Resolve names first with GET /v1/entities/resolve. */
|
|
18
18
|
about?: string;
|
|
19
|
-
/** Comma-separated person ids (ent_{n}), at most 8. Only passages where one of these people
|
|
19
|
+
/** Comma-separated person ids (ent_{n}), at most 8. Only passages where one of these people speaks the query words. A passage can include other speakers' lines; each line with a known speaker starts with that speaker's name. A non-person id is refused with invalid_query naming its type. Speaker labels cover a minority of shows; an empty result carries a note saying whether the person is labeled anywhere. Ids only: a name answers 400 id_required. Resolve names first with GET /v1/entities/resolve. */
|
|
20
20
|
by?: string;
|
|
21
|
-
/** Comma-separated passage classes: sponsored, organic, mention. Combine with about to read what was said about a brand in ad reads or in organic talk. */
|
|
21
|
+
/** Comma-separated passage classes: sponsored, organic, mention. Combine with about to read what was said about a brand in ad reads or in organic talk. organic and mention leave out every passage tagged as an ad read, including one that also names other brands; add sponsored to include them. */
|
|
22
22
|
kind?: string;
|
|
23
23
|
/** Only media published at or after this instant. An after later than your plan's freshness gate is refused with freshness_requires_paid rather than widened. 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. */
|
|
24
24
|
after?: string;
|
|
@@ -20,7 +20,7 @@ export interface Alert {
|
|
|
20
20
|
evidence_kind: Alert.EvidenceKind | null;
|
|
21
21
|
/** Delivery channel. Values: email (sent by email), webhook (POSTed to the configured webhook URL), slack (sent to Slack). */
|
|
22
22
|
channel: string;
|
|
23
|
-
/** Delivery status. Values: pending (queued for delivery), sent (delivered), failed (delivery failed; see error_message), skipped (delivery intentionally skipped). */
|
|
23
|
+
/** Delivery status. Values: pending (queued for delivery), sending (handed to the destination, answer not yet recorded), sent (delivered), unconfirmed (handed to the destination with no answer recorded; counted as delivered), failed (delivery failed; see error_message), skipped (delivery intentionally skipped). */
|
|
24
24
|
status: string;
|
|
25
25
|
/** Terminal status after retries. Null while delivery is still in progress. */
|
|
26
26
|
final_status: string | null;
|
|
@@ -10,7 +10,7 @@ export interface Mention {
|
|
|
10
10
|
end_seconds: number | null;
|
|
11
11
|
/** True when the person physically appears/speaks in the media (person entities only). Always false for organization, product, topic, and channel entities. Filtering with is_appearance=true on a non-person entity returns a 400 (appearances_person_only). */
|
|
12
12
|
is_appearance: boolean;
|
|
13
|
-
/** One
|
|
13
|
+
/** One sentence on why the entity comes up in this video, written to sit under the quoted line. Some mentions read in October 2026 hold the quoted transcript line instead. Null when not generated. */
|
|
14
14
|
description: string | null;
|
|
15
15
|
/** Analyzer confidence between 0 and 1. Null for legacy mentions analyzed before confidence scoring. */
|
|
16
16
|
confidence: number | null;
|
|
@@ -5,10 +5,14 @@ export interface TranscriptResponse {
|
|
|
5
5
|
quality: TranscriptResponse.Quality;
|
|
6
6
|
/** Public source class. creator_captions were written or approved by the channel, third_party_quick are YouTube automatic captions, arcmira_premium is our own diarized transcript. */
|
|
7
7
|
source: TranscriptResponse.Source;
|
|
8
|
-
/** The resolved track code
|
|
8
|
+
/** The language of the lines: the resolved track code (asr-en style when the track is automatic) or, when the transcript was translated, the code it was translated into. */
|
|
9
9
|
language: string;
|
|
10
|
+
/** The transcript's own language, as a code (en, es): the original caption track's, or the language a Premium transcript was spoken and transcribed in. language= returns the transcript in it; a language other than base_language means the lines were translated. */
|
|
11
|
+
base_language: string;
|
|
10
12
|
/** Every caption track the video offers. Empty when we did not list them on this call. */
|
|
11
13
|
languages: Arcmira.CaptionTrack[];
|
|
14
|
+
/** The codes language can name on this read. On captions, only the languages YouTube makes available for the video (its own tracks, and its auto-translate languages); on Premium, every language Arcmira translates into, at the Premium rate. */
|
|
15
|
+
translation_languages: string[];
|
|
12
16
|
/** Present when timestamps is true. Cite start with watch_url. */
|
|
13
17
|
lines?: TranscriptResponse.Lines.Item[] | undefined;
|
|
14
18
|
/** Present when timestamps is false. Lines joined on speaker changes for Premium and on sentence boundaries for captions. */
|
|
@@ -19,7 +23,7 @@ export interface TranscriptResponse {
|
|
|
19
23
|
revision?: string | undefined;
|
|
20
24
|
/** Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed. An explicit Premium read is charged for the whole video, from the account's plan credits and then its on-demand budget; the window only trims the returned content. */
|
|
21
25
|
range?: TranscriptResponse.Range | undefined;
|
|
22
|
-
/** Credits this captions read used, in rows (a row is 4 credits): 4 credits per started 15 minutes. 0 on a repeat of the same video, quality, language, and range inside the 7 day dedupe window. Premium reads report 0, because the Premium transcript job carries their charge. */
|
|
26
|
+
/** Credits this captions read used, in rows (a row is 4 credits): 4 credits per started 15 minutes. 0 on a repeat of the same video, quality, language, translation, and range inside the 7 day dedupe window. Premium reads report 0, because the Premium transcript job carries their charge, except the read that pays for a Premium transcript in another language, which reports its rows. */
|
|
23
27
|
rows_billed: number;
|
|
24
28
|
/** When the transcript was produced. */
|
|
25
29
|
as_of: string | null;
|
|
@@ -22,16 +22,29 @@ export interface TranscriptSearchChunk {
|
|
|
22
22
|
published_at: string | null;
|
|
23
23
|
/** The spoken slice. Search results include text on every plan within the permitted publication-date window. */
|
|
24
24
|
text: string;
|
|
25
|
-
/**
|
|
25
|
+
/** Where the slice starts in the video, in seconds. The line that matched q can be up to a minute later; line_start_seconds says when it is said. */
|
|
26
26
|
start_seconds: number | null;
|
|
27
|
-
/**
|
|
27
|
+
/** When the line that best matches q starts, in whole seconds from the start of the video: the line where q starts as a phrase, otherwise the first of the fewest consecutive lines holding the most words of q. With by, the person's own line. watch_url and cite_line open here. Null when no line can be placed, for example on a passage indexed before line times were stored; watch_url and cite_line then open at start_seconds. */
|
|
28
|
+
line_start_seconds: number | null;
|
|
29
|
+
/** Absolute watch URL on arcmira.com at line_start_seconds (start_seconds when it is null), e.g. https://arcmira.com/watch?v=...&t=4787. */
|
|
28
30
|
watch_url: string;
|
|
29
|
-
/** A ready citation line: title, clock, channel, date. */
|
|
31
|
+
/** A ready citation line: title, clock, channel, date. The clock is the second watch_url opens at. */
|
|
30
32
|
cite_line?: (string | null) | undefined;
|
|
31
33
|
/** Retrieval score. Higher is a closer match. Not comparable across calls. */
|
|
32
34
|
score: number;
|
|
35
|
+
/** How the passage holds q, ignoring case and punctuation: phrase holds every word of q in order, all_words holds each content word somewhere, partial holds only some. Passages holding the phrase or every word rank first. When no chunk is a phrase match, note says so. */
|
|
36
|
+
match: TranscriptSearchChunk.Match;
|
|
33
37
|
/** Entities the passage is tagged about (excerpt pins, exact-name mentions, ad verdicts). Present on passages served from the spoken index. */
|
|
34
38
|
about?: Arcmira.NamedEntityRef[] | undefined;
|
|
35
39
|
/** The people speaking in the passage, as ids with names. Present on passages served from the spoken index. */
|
|
36
40
|
speakers_by?: Arcmira.NamedEntityRef[] | undefined;
|
|
37
41
|
}
|
|
42
|
+
export declare namespace TranscriptSearchChunk {
|
|
43
|
+
/** How the passage holds q, ignoring case and punctuation: phrase holds every word of q in order, all_words holds each content word somewhere, partial holds only some. Passages holding the phrase or every word rank first. When no chunk is a phrase match, note says so. */
|
|
44
|
+
const Match: {
|
|
45
|
+
readonly Phrase: "phrase";
|
|
46
|
+
readonly AllWords: "all_words";
|
|
47
|
+
readonly Partial: "partial";
|
|
48
|
+
};
|
|
49
|
+
type Match = (typeof Match)[keyof typeof Match];
|
|
50
|
+
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TranscriptSearchChunk = void 0;
|
|
5
|
+
var TranscriptSearchChunk;
|
|
6
|
+
(function (TranscriptSearchChunk) {
|
|
7
|
+
/** How the passage holds q, ignoring case and punctuation: phrase holds every word of q in order, all_words holds each content word somewhere, partial holds only some. Passages holding the phrase or every word rank first. When no chunk is a phrase match, note says so. */
|
|
8
|
+
TranscriptSearchChunk.Match = {
|
|
9
|
+
Phrase: "phrase",
|
|
10
|
+
AllWords: "all_words",
|
|
11
|
+
Partial: "partial",
|
|
12
|
+
};
|
|
13
|
+
})(TranscriptSearchChunk || (exports.TranscriptSearchChunk = TranscriptSearchChunk = {}));
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.6.
|
|
1
|
+
export declare const SDK_VERSION = "0.6.3";
|
package/dist/cjs/version.js
CHANGED