arcmira 0.4.2 → 0.4.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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
- package/dist/cjs/api/types/MeResponse.d.ts +5 -5
- package/dist/cjs/api/types/SignupVerifiedResponse.d.ts +1 -1
- package/dist/cjs/api/types/TranscriptQuote.d.ts +1 -1
- package/dist/cjs/api/types/TranscriptResponse.d.ts +1 -1
- package/dist/cjs/api/types/TranscriptSearchChunk.d.ts +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cli/main.js +15 -7
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
- package/dist/esm/api/types/MeResponse.d.mts +5 -5
- package/dist/esm/api/types/SignupVerifiedResponse.d.mts +1 -1
- package/dist/esm/api/types/TranscriptQuote.d.mts +1 -1
- package/dist/esm/api/types/TranscriptResponse.d.mts +1 -1
- package/dist/esm/api/types/TranscriptSearchChunk.d.mts +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
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.4.
|
|
47
|
-
"User-Agent": "arcmira/0.4.
|
|
46
|
+
"X-Fern-SDK-Version": "0.4.3",
|
|
47
|
+
"User-Agent": "arcmira/0.4.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);
|
|
@@ -59,7 +59,7 @@ export declare class TranscriptsClient {
|
|
|
59
59
|
get(request: Arcmira.GetTranscriptsRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Arcmira.TranscriptResult>;
|
|
60
60
|
private __get;
|
|
61
61
|
/**
|
|
62
|
-
* Optional free quote: what a Premium read of this video would use right now, as rows and
|
|
62
|
+
* Optional free quote: what a Premium read of this video would use right now, as credits (charge; quote.rows restates it in rows, and a row is 4 credits), where the credits would come from, and max_on_demand_cents, the on-demand budget the read would need beyond the plan's credits within the account limit. It does not reserve credits or budget and does not start a transcript. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
|
|
63
63
|
*
|
|
64
64
|
* @param {Arcmira.QuoteTranscriptsRequest} request
|
|
65
65
|
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -234,7 +234,7 @@ class TranscriptsClient {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
|
-
* Optional free quote: what a Premium read of this video would use right now, as rows and
|
|
237
|
+
* Optional free quote: what a Premium read of this video would use right now, as credits (charge; quote.rows restates it in rows, and a row is 4 credits), where the credits would come from, and max_on_demand_cents, the on-demand budget the read would need beyond the plan's credits within the account limit. It does not reserve credits or budget and does not start a transcript. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
|
|
238
238
|
*
|
|
239
239
|
* @param {Arcmira.QuoteTranscriptsRequest} request
|
|
240
240
|
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -10,8 +10,8 @@ export interface MeResponse {
|
|
|
10
10
|
credential_kind: MeResponse.CredentialKind;
|
|
11
11
|
/** The account email with the local part masked after its first character, e.g. z***@example.com. Null when the account has none. */
|
|
12
12
|
email_masked: string | null;
|
|
13
|
-
/** ISO 8601 time the plan credits reset: 00:00 UTC on the first of next month
|
|
14
|
-
period_resets_at: string
|
|
13
|
+
/** ISO 8601 time the plan credits reset: 00:00 UTC on the first of next month, on every plan. */
|
|
14
|
+
period_resets_at: string;
|
|
15
15
|
/** Plan tier, e.g. free, pro, pro_plus, ultra, enterprise. */
|
|
16
16
|
tier: string;
|
|
17
17
|
/** Scopes granted to this API key, e.g. read, monitors:write, trackers:write, recommendations:read. */
|
|
@@ -32,11 +32,11 @@ export declare namespace MeResponse {
|
|
|
32
32
|
};
|
|
33
33
|
type CredentialKind = (typeof CredentialKind)[keyof typeof CredentialKind];
|
|
34
34
|
interface Usage {
|
|
35
|
-
/** Plan credits used this month, in rows: usage.credits.plan.used divided by 4, rounded up.
|
|
35
|
+
/** Plan credits used this month, in rows (a row is 4 credits): usage.credits.plan.used divided by 4, rounded up. */
|
|
36
36
|
rows_used: number;
|
|
37
|
-
/** Credits left from the plan, grants and top-ups, on-demand excluded, in rows: divided by 4, rounded up.
|
|
37
|
+
/** Credits left from the plan, grants and top-ups, on-demand excluded, in rows (a row is 4 credits): divided by 4, rounded up. */
|
|
38
38
|
rows_remaining: number;
|
|
39
|
-
/**
|
|
39
|
+
/** Plan credits a month, in rows (a row is 4 credits): usage.credits.plan.credits divided by 4 when the plan has a limit. */
|
|
40
40
|
monthly_rows: number;
|
|
41
41
|
/** On-demand overage spend so far this period, in US cents. */
|
|
42
42
|
current_spend_cents: number;
|
|
@@ -9,7 +9,7 @@ export interface SignupVerifiedResponse {
|
|
|
9
9
|
scopes: string[];
|
|
10
10
|
/** The plan the account is on: free for a new account, its plan when the address already had one. */
|
|
11
11
|
tier: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Plan credits a month, in rows (a row is 4 credits), on a paid plan. On the free plan, the account's allotment from before credits (1,000 for a new account). The free plan has 1,000 credits a month; read the balance from usage.credits on GET /v1/me. */
|
|
13
13
|
rows_allotted: number;
|
|
14
14
|
/** A curl command for the first call: GET /v1/me with the key. */
|
|
15
15
|
next: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface TranscriptQuote {
|
|
2
2
|
/** Number of 15-minute blocks in the video, ceiling'd, minimum 1. */
|
|
3
3
|
quarters: number;
|
|
4
|
-
/**
|
|
4
|
+
/** Credits the whole video uses, in rows: 300 credits per 15-minute block (75 rows; a row is 4 credits). */
|
|
5
5
|
rows: number;
|
|
6
6
|
}
|
|
@@ -19,7 +19,7 @@ export interface TranscriptResponse {
|
|
|
19
19
|
revision?: string | undefined;
|
|
20
20
|
/** Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed. An explicit Premium read is charged for the whole video, from the account's plan credits and then its on-demand budget; the window only trims the returned content. */
|
|
21
21
|
range?: TranscriptResponse.Range | undefined;
|
|
22
|
-
/**
|
|
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. */
|
|
23
23
|
rows_billed: number;
|
|
24
24
|
/** When the transcript was produced. */
|
|
25
25
|
as_of: string | null;
|
|
@@ -24,7 +24,7 @@ export interface TranscriptSearchChunk {
|
|
|
24
24
|
text: string;
|
|
25
25
|
/** Offset of the slice in the video, in seconds. */
|
|
26
26
|
start_seconds: number | null;
|
|
27
|
-
/**
|
|
27
|
+
/** Absolute watch URL on arcmira.com with the timestamp, e.g. https://arcmira.com/watch?v=...&t=4787. */
|
|
28
28
|
watch_url: string;
|
|
29
29
|
/** A ready citation line: title, clock, channel, date. */
|
|
30
30
|
cite_line?: (string | null) | undefined;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.3";
|
package/dist/cjs/version.js
CHANGED
package/dist/cli/main.js
CHANGED
|
@@ -27,6 +27,8 @@ const SKILLS = (0, node_fs_1.readdirSync)(SKILLS_DIR)
|
|
|
27
27
|
.map((name) => ({ name, content: (0, node_fs_1.readFileSync)((0, node_path_1.join)(SKILLS_DIR, name, "SKILL.md"), "utf8") }));
|
|
28
28
|
/** Exit codes past 0 ok, 1 API or network error and 2 usage error. A pipeline sees them even with --json. 3 is retired. */
|
|
29
29
|
const EXIT_PENDING = 4;
|
|
30
|
+
/** The API prices reads in rows of 4 credits; people see credits. */
|
|
31
|
+
const CREDITS_PER_ROW = 4;
|
|
30
32
|
const GLOBAL = {
|
|
31
33
|
json: { type: "boolean", help: "Print the API response as JSON on stdout; errors as JSON on stderr." },
|
|
32
34
|
key: { type: "string", help: "API key. Defaults to ARCMIRA_API_KEY, then the key saved by `arcmira login`." },
|
|
@@ -52,7 +54,7 @@ const ALIASES = { transcript: "transcripts get", follow: "trackers create" };
|
|
|
52
54
|
/** Names held for later versions, each with the way to reach the same endpoints today. */
|
|
53
55
|
const RESERVED = {
|
|
54
56
|
feedback: "use `arcmira api POST /v1/feedback --body @feedback.json` (arcmira schema submit_feedback)",
|
|
55
|
-
keys: "manage keys at https://arcmira.com/dashboard
|
|
57
|
+
keys: "manage keys at https://arcmira.com/dashboard/api",
|
|
56
58
|
};
|
|
57
59
|
/** Commands earlier versions had, each with what replaces it. */
|
|
58
60
|
const RETIRED = {
|
|
@@ -490,7 +492,13 @@ function usageLine(me) {
|
|
|
490
492
|
const n = (x) => x.toLocaleString("en-US");
|
|
491
493
|
const plan = c.plan.credits == null ? `${n(c.plan.used)} plan credits used` : `${n(c.plan.used)} of ${n(c.plan.credits)} plan credits used`;
|
|
492
494
|
const onDemand = c.on_demand.enabled ? `, on-demand ${n(c.on_demand.used)}${c.on_demand.cap_credits == null ? "" : ` of ${n(c.on_demand.cap_credits)}`}` : ", on-demand off";
|
|
493
|
-
|
|
495
|
+
const sources = [
|
|
496
|
+
c.plan.credits == null ? null : `${n(Math.max(c.plan.credits - c.plan.used, 0))} plan`,
|
|
497
|
+
c.granted ? `${n(c.granted)} granted` : null,
|
|
498
|
+
c.purchased ? `${n(c.purchased)} top-up` : null,
|
|
499
|
+
].filter(Boolean);
|
|
500
|
+
const available = c.available == null ? "" : `, ${n(c.available)} available${sources.length > 1 ? ` (${sources.join(", ")})` : ""}`;
|
|
501
|
+
return `${plan}${onDemand}${available}, resets ${day(c.plan.resets_at)}`;
|
|
494
502
|
}
|
|
495
503
|
const COMMANDS = {
|
|
496
504
|
search: {
|
|
@@ -639,9 +647,9 @@ const COMMANDS = {
|
|
|
639
647
|
examples: ["arcmira sponsors UC-DRzaGnL_vtBUpCFH5M0tg", "arcmira sponsors UC-DRzaGnL_vtBUpCFH5M0tg --status active --limit 20"],
|
|
640
648
|
positionals: "one",
|
|
641
649
|
options: {
|
|
642
|
-
"min-ad-reads": { type: "string", int: [1, 100], help: "Exclude sponsors with fewer ad reads. Default 3. Pro
|
|
643
|
-
status: { type: "string", oneOf: ["active", "lapsed", "ended", "uncertain"], help: "Filter by curated sponsorship status. Pro
|
|
644
|
-
...limit(200, "Sponsors to return, 1 to 200. Pro
|
|
650
|
+
"min-ad-reads": { type: "string", int: [1, 100], help: "Exclude sponsors with fewer ad reads. Default 3. Pro+." },
|
|
651
|
+
status: { type: "string", oneOf: ["active", "lapsed", "ended", "uncertain"], help: "Filter by curated sponsorship status. Pro+." },
|
|
652
|
+
...limit(200, "Sponsors to return, 1 to 200. Pro+ past the free slice."),
|
|
645
653
|
},
|
|
646
654
|
run: ({ client, positionals: [channel_id], values: v }) => client.channels.sponsors.list({
|
|
647
655
|
channel_id,
|
|
@@ -769,7 +777,7 @@ const COMMANDS = {
|
|
|
769
777
|
console.log(`[${seconds(line.start)}] ${who(line.speaker)}${line.text}`);
|
|
770
778
|
for (const p of r.paragraphs ?? [])
|
|
771
779
|
console.log(`${who(p.speaker)}${p.text}\n`);
|
|
772
|
-
note(`${r.video.title || r.video.id} ${r.quality} ${r.language}
|
|
780
|
+
note(`${r.video.title || r.video.id} ${r.quality} ${r.language} ${(r.rows_billed * CREDITS_PER_ROW).toLocaleString("en-US")} credits`);
|
|
773
781
|
},
|
|
774
782
|
},
|
|
775
783
|
"transcripts quote": {
|
|
@@ -1252,7 +1260,7 @@ function help(name) {
|
|
|
1252
1260
|
if (!spec.reserved)
|
|
1253
1261
|
lines.push(optionLine(key, spec, 24));
|
|
1254
1262
|
const reserved = Object.entries(GLOBAL).filter(([, spec]) => spec.reserved).map(([key, spec]) => `--${key}${spec.short ? `/-${spec.short}` : ""}`);
|
|
1255
|
-
lines.push(`Reserved flags, not available yet: ${reserved.join(", ")}.`, "", "Examples:", " arcmira setup connect the MCP server and skills to your coding agents, updates on", " arcmira login you@example.com email a code, then: arcmira login you@example.com --code 123456", " arcmira resolve Ramp names to ent_ ids; filter with the id: arcmira mentions --entity ent_14", " arcmira resolve TBPN --type channel shows to UC ids: arcmira sponsors UC-DRzaGnL_vtBUpCFH5M0tg", " arcmira mentions --entity ent_14 --after 2026-09-01 --before 2026-10-01 --json", " arcmira follow Ramp --type org alerts on a name, even before it is indexed", " arcmira api GET /v1/monitors any endpoint; arcmira schema lists them", "", "Key: --key, then ARCMIRA_API_KEY, then the key saved by `arcmira login`.", "Output: data on stdout, messages on stderr; --json prints the API response, and errors as JSON on stderr.", "Errors: every API error line carries the request_id to quote to support.", "Dates: --after is inclusive and --before exclusive, in UTC, on every dated command.", "Exit codes: 0 ok, 1 API or network error, 2 usage error (bad input, a name where an id belongs, no key),", " 4 Premium still transcribing (run the same command again later; it never uses credits twice).", "Telemetry: none. The CLI sends only the API requests you ask for.", "Docs: https://arcmira.com/docs Worked examples: arcmira examples Each command: arcmira <command> --help");
|
|
1263
|
+
lines.push(`Reserved flags, not available yet: ${reserved.join(", ")}. setup has its own --dry-run and --yes.`, "", "Examples:", " arcmira setup connect the MCP server and skills to your coding agents, updates on", " arcmira login you@example.com email a code, then: arcmira login you@example.com --code 123456", " arcmira resolve Ramp names to ent_ ids; filter with the id: arcmira mentions --entity ent_14", " arcmira resolve TBPN --type channel shows to UC ids: arcmira sponsors UC-DRzaGnL_vtBUpCFH5M0tg", " arcmira mentions --entity ent_14 --after 2026-09-01 --before 2026-10-01 --json", " arcmira follow Ramp --type org alerts on a name, even before it is indexed", " arcmira api GET /v1/monitors any endpoint; arcmira schema lists them", "", "Key: --key, then ARCMIRA_API_KEY, then the key saved by `arcmira login`.", "Output: data on stdout, messages on stderr; --json prints the API response, and errors as JSON on stderr.", "Errors: every API error line carries the request_id to quote to support.", "Dates: --after is inclusive and --before exclusive, in UTC, on every dated command.", "Exit codes: 0 ok, 1 API or network error, 2 usage error (bad input, a name where an id belongs, no key),", " 4 Premium still transcribing (run the same command again later; it never uses credits twice).", "Telemetry: none. The CLI sends only the API requests you ask for.", "Docs: https://arcmira.com/docs Worked examples: arcmira examples Each command: arcmira <command> --help");
|
|
1256
1264
|
return lines.join("\n");
|
|
1257
1265
|
}
|
|
1258
1266
|
function validate(name, command, values, positionals) {
|
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "arcmira",
|
|
9
|
-
"X-Fern-SDK-Version": "0.4.
|
|
10
|
-
"User-Agent": "arcmira/0.4.
|
|
9
|
+
"X-Fern-SDK-Version": "0.4.3",
|
|
10
|
+
"User-Agent": "arcmira/0.4.3",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -59,7 +59,7 @@ export declare class TranscriptsClient {
|
|
|
59
59
|
get(request: Arcmira.GetTranscriptsRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Arcmira.TranscriptResult>;
|
|
60
60
|
private __get;
|
|
61
61
|
/**
|
|
62
|
-
* Optional free quote: what a Premium read of this video would use right now, as rows and
|
|
62
|
+
* Optional free quote: what a Premium read of this video would use right now, as credits (charge; quote.rows restates it in rows, and a row is 4 credits), where the credits would come from, and max_on_demand_cents, the on-demand budget the read would need beyond the plan's credits within the account limit. It does not reserve credits or budget and does not start a transcript. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
|
|
63
63
|
*
|
|
64
64
|
* @param {Arcmira.QuoteTranscriptsRequest} request
|
|
65
65
|
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -198,7 +198,7 @@ export class TranscriptsClient {
|
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
/**
|
|
201
|
-
* Optional free quote: what a Premium read of this video would use right now, as rows and
|
|
201
|
+
* Optional free quote: what a Premium read of this video would use right now, as credits (charge; quote.rows restates it in rows, and a row is 4 credits), where the credits would come from, and max_on_demand_cents, the on-demand budget the read would need beyond the plan's credits within the account limit. It does not reserve credits or budget and does not start a transcript. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
|
|
202
202
|
*
|
|
203
203
|
* @param {Arcmira.QuoteTranscriptsRequest} request
|
|
204
204
|
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -10,8 +10,8 @@ export interface MeResponse {
|
|
|
10
10
|
credential_kind: MeResponse.CredentialKind;
|
|
11
11
|
/** The account email with the local part masked after its first character, e.g. z***@example.com. Null when the account has none. */
|
|
12
12
|
email_masked: string | null;
|
|
13
|
-
/** ISO 8601 time the plan credits reset: 00:00 UTC on the first of next month
|
|
14
|
-
period_resets_at: string
|
|
13
|
+
/** ISO 8601 time the plan credits reset: 00:00 UTC on the first of next month, on every plan. */
|
|
14
|
+
period_resets_at: string;
|
|
15
15
|
/** Plan tier, e.g. free, pro, pro_plus, ultra, enterprise. */
|
|
16
16
|
tier: string;
|
|
17
17
|
/** Scopes granted to this API key, e.g. read, monitors:write, trackers:write, recommendations:read. */
|
|
@@ -32,11 +32,11 @@ export declare namespace MeResponse {
|
|
|
32
32
|
};
|
|
33
33
|
type CredentialKind = (typeof CredentialKind)[keyof typeof CredentialKind];
|
|
34
34
|
interface Usage {
|
|
35
|
-
/** Plan credits used this month, in rows: usage.credits.plan.used divided by 4, rounded up.
|
|
35
|
+
/** Plan credits used this month, in rows (a row is 4 credits): usage.credits.plan.used divided by 4, rounded up. */
|
|
36
36
|
rows_used: number;
|
|
37
|
-
/** Credits left from the plan, grants and top-ups, on-demand excluded, in rows: divided by 4, rounded up.
|
|
37
|
+
/** Credits left from the plan, grants and top-ups, on-demand excluded, in rows (a row is 4 credits): divided by 4, rounded up. */
|
|
38
38
|
rows_remaining: number;
|
|
39
|
-
/**
|
|
39
|
+
/** Plan credits a month, in rows (a row is 4 credits): usage.credits.plan.credits divided by 4 when the plan has a limit. */
|
|
40
40
|
monthly_rows: number;
|
|
41
41
|
/** On-demand overage spend so far this period, in US cents. */
|
|
42
42
|
current_spend_cents: number;
|
|
@@ -9,7 +9,7 @@ export interface SignupVerifiedResponse {
|
|
|
9
9
|
scopes: string[];
|
|
10
10
|
/** The plan the account is on: free for a new account, its plan when the address already had one. */
|
|
11
11
|
tier: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Plan credits a month, in rows (a row is 4 credits), on a paid plan. On the free plan, the account's allotment from before credits (1,000 for a new account). The free plan has 1,000 credits a month; read the balance from usage.credits on GET /v1/me. */
|
|
13
13
|
rows_allotted: number;
|
|
14
14
|
/** A curl command for the first call: GET /v1/me with the key. */
|
|
15
15
|
next: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface TranscriptQuote {
|
|
2
2
|
/** Number of 15-minute blocks in the video, ceiling'd, minimum 1. */
|
|
3
3
|
quarters: number;
|
|
4
|
-
/**
|
|
4
|
+
/** Credits the whole video uses, in rows: 300 credits per 15-minute block (75 rows; a row is 4 credits). */
|
|
5
5
|
rows: number;
|
|
6
6
|
}
|
|
@@ -19,7 +19,7 @@ export interface TranscriptResponse {
|
|
|
19
19
|
revision?: string | undefined;
|
|
20
20
|
/** Echoed when you sent start and end. Lines overlapping the window are returned. On captions only the window is billed. An explicit Premium read is charged for the whole video, from the account's plan credits and then its on-demand budget; the window only trims the returned content. */
|
|
21
21
|
range?: TranscriptResponse.Range | undefined;
|
|
22
|
-
/**
|
|
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. */
|
|
23
23
|
rows_billed: number;
|
|
24
24
|
/** When the transcript was produced. */
|
|
25
25
|
as_of: string | null;
|
|
@@ -24,7 +24,7 @@ export interface TranscriptSearchChunk {
|
|
|
24
24
|
text: string;
|
|
25
25
|
/** Offset of the slice in the video, in seconds. */
|
|
26
26
|
start_seconds: number | null;
|
|
27
|
-
/**
|
|
27
|
+
/** Absolute watch URL on arcmira.com with the timestamp, e.g. https://arcmira.com/watch?v=...&t=4787. */
|
|
28
28
|
watch_url: string;
|
|
29
29
|
/** A ready citation line: title, clock, channel, date. */
|
|
30
30
|
cite_line?: (string | null) | undefined;
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.3";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.4.
|
|
1
|
+
export const SDK_VERSION = "0.4.3";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -418,7 +418,7 @@ Caption reads use 4 credits per started 15 minutes. quality=premium is one read.
|
|
|
418
418
|
|
|
419
419
|
`GET /v1/transcripts/{video_id}/quote`
|
|
420
420
|
|
|
421
|
-
Optional free quote: what a Premium read of this video would use right now, as rows and
|
|
421
|
+
Optional free quote: what a Premium read of this video would use right now, as credits (charge; quote.rows restates it in rows, and a row is 4 credits), where the credits would come from, and max_on_demand_cents, the on-demand budget the read would need beyond the plan's credits within the account limit. It does not reserve credits or budget and does not start a transcript. A video with no known duration, or one past the 12 hour cap, answers 400 invalid_query with param video_id.
|
|
422
422
|
|
|
423
423
|
| Field | Location | Required | Type |
|
|
424
424
|
|---|---|---|---|
|