@byte_fluffy/nexra-sdk 0.1.0-alpha.26 → 0.1.0-alpha.28
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/README.md +102 -0
- package/dist/catalog.d.ts +11 -3
- package/dist/catalog.js +4 -2
- package/dist/{chunk-73CGYVFV.js → chunk-ECF5MLSM.js} +551 -171
- package/dist/{chunk-KEAAHI25.js → chunk-IEBCNRT4.js} +4 -0
- package/dist/index.d.ts +20 -6
- package/dist/index.js +50 -55
- package/dist/{media-geometry-CRCAkREf.d.ts → media-geometry-BoxkWQlj.d.ts} +30 -1
- package/dist/media.js +1 -1
- package/dist/{types-CmZz1KmL.d.ts → types-BYmoc0n8.d.ts} +38 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -231,6 +231,10 @@ function isNexraMediaInput(value) {
|
|
|
231
231
|
return Array.isArray(content) && content.length > 0 && content.every((part) => {
|
|
232
232
|
if (!part || typeof part !== "object" || Array.isArray(part)) return false;
|
|
233
233
|
if (part.type === "text") return typeof part.text === "string" && part.text.length > 0;
|
|
234
|
+
if (part.type === "draft_task") {
|
|
235
|
+
const reference = part.draft_task;
|
|
236
|
+
return Boolean(reference && typeof reference === "object" && !Array.isArray(reference) && typeof reference.id === "string" && reference.id.length > 0);
|
|
237
|
+
}
|
|
234
238
|
if (!["image", "video", "audio"].includes(String(part.type))) return false;
|
|
235
239
|
if (typeof part.source === "string") return part.source.length > 0;
|
|
236
240
|
return Boolean(part.source && typeof part.source === "object" && !Array.isArray(part.source) && typeof part.source.assetId === "string" && part.source.assetId.length > 0);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { a as AssetImportRequest, b as AssetInput, A as AssetReference, c as AssetUploadOptions, M as MEDIA_KINDS, d as MediaAsset, e as MediaAssetStatus, f as MediaKind } from './assets-dUJMQNJD.js';
|
|
2
|
-
import { H as HttpTransport,
|
|
3
|
-
export {
|
|
2
|
+
import { H as HttpTransport, u as ModelSearchParams, T as TaskModelSummary, v as TaskModel, w as ModelSchema, x as ModelResourceList, y as NexraClientOptions } from './media-geometry-BoxkWQlj.js';
|
|
3
|
+
export { e as CreateNexraDisplayQuoteBatchRequest, C as CreateNexraQuoteRequest, F as FetchLike, M as MediaGeometryField, j as MediaGeometryProjection, z as ModelCapabilitySummary, A as ModelDateVersion, B as ModelEndpointSummary, D as ModelModality, E as ModelResourceOption, k as NexraBillingCurrency, g as NexraCatalogRevision, f as NexraDisplayQuoteBatch, G as NexraDisplayQuoteBatchEntry, n as NexraModelOperation, h as NexraModelSpec, i as NexraModelSpecFilter, d as NexraQuote, o as NexraSalePrice, c as NexraSalePriceList, p as NexraSettlement, U as UnifiedMediaGeometry, q as applyMediaGeometry, r as decodeMediaGeometry, s as encodeMediaGeometry, t as projectMediaGeometry } from './media-geometry-BoxkWQlj.js';
|
|
4
4
|
import { C as CursorPage, a as JsonValue } from './json-Drjj1OKl.js';
|
|
5
5
|
export { J as JsonObject, b as JsonPrimitive } from './json-Drjj1OKl.js';
|
|
6
|
-
import { A as AssetsClient, T as TasksClient, R as RunTaskOptions,
|
|
7
|
-
export {
|
|
6
|
+
import { V as Voice, C as CreateVoiceRequest, a as VoiceCreation, A as AssetsClient, T as TasksClient, R as RunTaskOptions, b as RunResult, c as ApiErrorPayload, d as TaskResult } from './types-BYmoc0n8.js';
|
|
7
|
+
export { e as CreateTaskOptions, f as CreateTaskRequest, g as RequestDetails, h as TASK_STATUSES, i as Task, j as TaskCost, k as TaskError, l as TaskEvent, m as TaskEventType, n as TaskListParams, o as TaskPage, p as TaskProgress, q as TaskReceipt, r as TaskStatus, s as TaskTiming, t as TaskUsage, u as TaskWebhookConfig, v as TerminalTaskStatus, w as VerifyWebhookOptions, W as WaitTaskOptions, x as WatchTaskOptions, y as isTerminalTaskStatus, z as verifyWebhook } from './types-BYmoc0n8.js';
|
|
8
8
|
import { CatalogClient } from './catalog.js';
|
|
9
|
-
export { getModelSpec, listModelSpecs } from './catalog.js';
|
|
9
|
+
export { formatModelDisplayName, getModelSpec, listModelSpecs } from './catalog.js';
|
|
10
10
|
export { ceilDecimal, multiplyDecimal } from './decimal.js';
|
|
11
11
|
|
|
12
12
|
declare class ModelsClient {
|
|
@@ -15,6 +15,19 @@ declare class ModelsClient {
|
|
|
15
15
|
search(params?: ModelSearchParams, signal?: AbortSignal): Promise<CursorPage<TaskModelSummary>>;
|
|
16
16
|
get(model: string, signal?: AbortSignal): Promise<TaskModel>;
|
|
17
17
|
schema(model: string, signal?: AbortSignal): Promise<ModelSchema>;
|
|
18
|
+
resources(model: string, resource: string, signal?: AbortSignal): Promise<ModelResourceList>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type CreateVoiceOptions = Readonly<{
|
|
22
|
+
idempotencyKey: string;
|
|
23
|
+
signal?: AbortSignal;
|
|
24
|
+
}>;
|
|
25
|
+
declare class VoicesClient {
|
|
26
|
+
private readonly transport;
|
|
27
|
+
constructor(transport: HttpTransport);
|
|
28
|
+
list(signal?: AbortSignal): Promise<readonly Voice[]>;
|
|
29
|
+
get(voiceId: string, signal?: AbortSignal): Promise<Voice>;
|
|
30
|
+
create(request: CreateVoiceRequest, options: CreateVoiceOptions): Promise<VoiceCreation>;
|
|
18
31
|
}
|
|
19
32
|
|
|
20
33
|
declare class NexraClient {
|
|
@@ -22,6 +35,7 @@ declare class NexraClient {
|
|
|
22
35
|
readonly catalog: CatalogClient;
|
|
23
36
|
readonly models: ModelsClient;
|
|
24
37
|
readonly tasks: TasksClient;
|
|
38
|
+
readonly voices: VoicesClient;
|
|
25
39
|
constructor(options?: NexraClientOptions);
|
|
26
40
|
run<TOutput = JsonValue, TInput = Record<string, unknown>>(model: string, input: TInput, options?: RunTaskOptions): Promise<RunResult<TOutput>>;
|
|
27
41
|
}
|
|
@@ -51,4 +65,4 @@ declare class NexraWaitTimeoutError extends Error {
|
|
|
51
65
|
constructor(taskId: string, timeoutMs: number);
|
|
52
66
|
}
|
|
53
67
|
|
|
54
|
-
export { ApiErrorPayload, AssetsClient, CatalogClient, CursorPage, JsonValue, ModelSchema, ModelSearchParams, ModelsClient, NexraApiError, NexraClient, NexraClientOptions, NexraTaskError, NexraWaitTimeoutError, RunResult, RunTaskOptions, TaskModel, TaskModelSummary, TaskResult, TasksClient, createNexra };
|
|
68
|
+
export { ApiErrorPayload, AssetsClient, CatalogClient, type CreateVoiceOptions, CreateVoiceRequest, CursorPage, JsonValue, ModelResourceList, ModelSchema, ModelSearchParams, ModelsClient, NexraApiError, NexraClient, NexraClientOptions, NexraTaskError, NexraWaitTimeoutError, RunResult, RunTaskOptions, TaskModel, TaskModelSummary, TaskResult, TasksClient, Voice, VoiceCreation, VoicesClient, createNexra };
|
package/dist/index.js
CHANGED
|
@@ -8,13 +8,15 @@ import {
|
|
|
8
8
|
applyNoWatermark,
|
|
9
9
|
decodeMediaGeometry,
|
|
10
10
|
encodeMediaGeometry,
|
|
11
|
+
formatModelDisplayName,
|
|
11
12
|
getModelSpec,
|
|
12
13
|
jsonBody,
|
|
13
14
|
listModelSpecs,
|
|
15
|
+
parseServerSentEvents,
|
|
14
16
|
projectMediaGeometry,
|
|
15
17
|
queryString,
|
|
16
18
|
sleep
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ECF5MLSM.js";
|
|
18
20
|
import {
|
|
19
21
|
ceilDecimal,
|
|
20
22
|
multiplyDecimal
|
|
@@ -24,7 +26,7 @@ import {
|
|
|
24
26
|
TASK_STATUSES,
|
|
25
27
|
createTaskRequest,
|
|
26
28
|
isTerminalTaskStatus
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IEBCNRT4.js";
|
|
28
30
|
|
|
29
31
|
// src/assets.ts
|
|
30
32
|
var AssetsClient = class {
|
|
@@ -133,13 +135,16 @@ function isFile(value) {
|
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
// src/models.ts
|
|
138
|
+
function withModelDisplayName(model) {
|
|
139
|
+
return { ...model, displayName: formatModelDisplayName(model.displayName) };
|
|
140
|
+
}
|
|
136
141
|
var ModelsClient = class {
|
|
137
142
|
constructor(transport) {
|
|
138
143
|
this.transport = transport;
|
|
139
144
|
}
|
|
140
145
|
transport;
|
|
141
|
-
search(params = {}, signal) {
|
|
142
|
-
|
|
146
|
+
async search(params = {}, signal) {
|
|
147
|
+
const page = await this.transport.json(
|
|
143
148
|
`/models${queryString({
|
|
144
149
|
q: params.query,
|
|
145
150
|
modality: params.modality,
|
|
@@ -150,11 +155,16 @@ var ModelsClient = class {
|
|
|
150
155
|
})}`,
|
|
151
156
|
{ signal }
|
|
152
157
|
);
|
|
158
|
+
return { ...page, data: page.data.map(withModelDisplayName) };
|
|
153
159
|
}
|
|
154
|
-
get(model, signal) {
|
|
155
|
-
|
|
160
|
+
async get(model, signal) {
|
|
161
|
+
const detail = await this.transport.json(`/models/${encodeURIComponent(model)}`, {
|
|
156
162
|
signal
|
|
157
163
|
});
|
|
164
|
+
return {
|
|
165
|
+
...withModelDisplayName(detail),
|
|
166
|
+
...detail.familyVersions ? { familyVersions: detail.familyVersions.map(withModelDisplayName) } : {}
|
|
167
|
+
};
|
|
158
168
|
}
|
|
159
169
|
schema(model, signal) {
|
|
160
170
|
return this.transport.json(
|
|
@@ -162,6 +172,36 @@ var ModelsClient = class {
|
|
|
162
172
|
{ signal }
|
|
163
173
|
);
|
|
164
174
|
}
|
|
175
|
+
resources(model, resource, signal) {
|
|
176
|
+
return this.transport.json(
|
|
177
|
+
`/models/${encodeURIComponent(model)}/resources/${encodeURIComponent(resource)}`,
|
|
178
|
+
{ signal }
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
// src/voices.ts
|
|
184
|
+
var VoicesClient = class {
|
|
185
|
+
constructor(transport) {
|
|
186
|
+
this.transport = transport;
|
|
187
|
+
}
|
|
188
|
+
transport;
|
|
189
|
+
async list(signal) {
|
|
190
|
+
const response = await this.transport.json("/voices", { signal });
|
|
191
|
+
return response.data;
|
|
192
|
+
}
|
|
193
|
+
get(voiceId, signal) {
|
|
194
|
+
return this.transport.json(`/voices/${encodeURIComponent(voiceId)}`, { signal });
|
|
195
|
+
}
|
|
196
|
+
create(request, options) {
|
|
197
|
+
if (!options.idempotencyKey.trim()) throw new TypeError("Idempotency-Key is required");
|
|
198
|
+
return this.transport.json("/voices", {
|
|
199
|
+
method: "POST",
|
|
200
|
+
...jsonBody(request),
|
|
201
|
+
headers: { "content-type": "application/json", "idempotency-key": options.idempotencyKey },
|
|
202
|
+
signal: options.signal
|
|
203
|
+
}, { retryable: true });
|
|
204
|
+
}
|
|
165
205
|
};
|
|
166
206
|
|
|
167
207
|
// src/input.ts
|
|
@@ -225,55 +265,6 @@ function isMediaAsset(value) {
|
|
|
225
265
|
return isPlainObject(value) && typeof value.id === "string" && typeof value.kind === "string" && typeof value.status === "string" && typeof value.source === "string";
|
|
226
266
|
}
|
|
227
267
|
|
|
228
|
-
// src/sse.ts
|
|
229
|
-
async function* parseServerSentEvents(response) {
|
|
230
|
-
if (!response.body) throw new Error("SSE response did not contain a body");
|
|
231
|
-
const reader = response.body.getReader();
|
|
232
|
-
const decoder = new TextDecoder();
|
|
233
|
-
let buffer = "";
|
|
234
|
-
let current = emptyEvent();
|
|
235
|
-
while (true) {
|
|
236
|
-
const { value, done } = await reader.read();
|
|
237
|
-
buffer += decoder.decode(value, { stream: !done });
|
|
238
|
-
const lines = buffer.split(/\r?\n/);
|
|
239
|
-
buffer = done ? "" : lines.pop() ?? "";
|
|
240
|
-
for (const line of lines) {
|
|
241
|
-
if (line === "") {
|
|
242
|
-
const event = buildEvent(current);
|
|
243
|
-
current = emptyEvent();
|
|
244
|
-
if (event) yield event;
|
|
245
|
-
continue;
|
|
246
|
-
}
|
|
247
|
-
if (line.startsWith(":")) continue;
|
|
248
|
-
const separator = line.indexOf(":");
|
|
249
|
-
const field = separator === -1 ? line : line.slice(0, separator);
|
|
250
|
-
let content = separator === -1 ? "" : line.slice(separator + 1);
|
|
251
|
-
if (content.startsWith(" ")) content = content.slice(1);
|
|
252
|
-
if (field === "data") current.data.push(content);
|
|
253
|
-
else if (field === "event") current.event = content;
|
|
254
|
-
else if (field === "id") current.id = content;
|
|
255
|
-
else if (field === "retry") current.retry = Number(content);
|
|
256
|
-
}
|
|
257
|
-
if (done) {
|
|
258
|
-
const event = buildEvent(current);
|
|
259
|
-
if (event) yield event;
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
function emptyEvent() {
|
|
265
|
-
return { data: [] };
|
|
266
|
-
}
|
|
267
|
-
function buildEvent(pending) {
|
|
268
|
-
if (pending.data.length === 0) return void 0;
|
|
269
|
-
return {
|
|
270
|
-
id: pending.id,
|
|
271
|
-
event: pending.event,
|
|
272
|
-
retry: Number.isFinite(pending.retry) ? pending.retry : void 0,
|
|
273
|
-
data: pending.data.join("\n")
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
|
|
277
268
|
// src/tasks.ts
|
|
278
269
|
var TasksClient = class {
|
|
279
270
|
constructor(transport, assets) {
|
|
@@ -434,12 +425,14 @@ var NexraClient = class {
|
|
|
434
425
|
catalog;
|
|
435
426
|
models;
|
|
436
427
|
tasks;
|
|
428
|
+
voices;
|
|
437
429
|
constructor(options = {}) {
|
|
438
430
|
const transport = new HttpTransport(options);
|
|
439
431
|
this.assets = new AssetsClient(transport);
|
|
440
432
|
this.catalog = new CatalogClient(transport);
|
|
441
433
|
this.models = new ModelsClient(transport);
|
|
442
434
|
this.tasks = new TasksClient(transport, this.assets);
|
|
435
|
+
this.voices = new VoicesClient(transport);
|
|
443
436
|
}
|
|
444
437
|
run(model, input, options = {}) {
|
|
445
438
|
return this.tasks.run(model, input, options);
|
|
@@ -501,11 +494,13 @@ export {
|
|
|
501
494
|
NexraWaitTimeoutError,
|
|
502
495
|
TASK_STATUSES,
|
|
503
496
|
TasksClient,
|
|
497
|
+
VoicesClient,
|
|
504
498
|
applyMediaGeometry,
|
|
505
499
|
ceilDecimal,
|
|
506
500
|
createNexra,
|
|
507
501
|
decodeMediaGeometry,
|
|
508
502
|
encodeMediaGeometry,
|
|
503
|
+
formatModelDisplayName,
|
|
509
504
|
getModelSpec,
|
|
510
505
|
isTerminalTaskStatus,
|
|
511
506
|
listModelSpecs,
|
|
@@ -217,8 +217,16 @@ interface NexraSalePrice {
|
|
|
217
217
|
priceRevision: string;
|
|
218
218
|
effectiveFrom: string;
|
|
219
219
|
rule: PriceRule;
|
|
220
|
+
displayEstimates?: readonly Readonly<{
|
|
221
|
+
parameters: JsonObject;
|
|
222
|
+
inputImageCounts: readonly number[];
|
|
223
|
+
amount: string;
|
|
224
|
+
maximumAmount: string;
|
|
225
|
+
}>[];
|
|
226
|
+
displayEstimatesValidUntil?: string;
|
|
220
227
|
}
|
|
221
228
|
interface NexraSalePriceList {
|
|
229
|
+
quoteContextRevision?: string;
|
|
222
230
|
currency: NexraBillingCurrency;
|
|
223
231
|
prices: readonly NexraSalePrice[];
|
|
224
232
|
}
|
|
@@ -272,6 +280,27 @@ interface NexraCatalogRevision {
|
|
|
272
280
|
revision: string;
|
|
273
281
|
changedAt: string;
|
|
274
282
|
}
|
|
283
|
+
interface NexraCatalogModelIdentity {
|
|
284
|
+
modelId: string;
|
|
285
|
+
operation: string;
|
|
286
|
+
revision: string;
|
|
287
|
+
available: boolean;
|
|
288
|
+
}
|
|
289
|
+
interface NexraCatalogChangeParams {
|
|
290
|
+
after?: string;
|
|
291
|
+
upper?: string;
|
|
292
|
+
cursor?: string;
|
|
293
|
+
limit?: number;
|
|
294
|
+
}
|
|
295
|
+
interface NexraCatalogChangePage extends NexraCatalogRevision {
|
|
296
|
+
data: readonly NexraCatalogModelIdentity[];
|
|
297
|
+
nextCursor?: string;
|
|
298
|
+
}
|
|
299
|
+
interface NexraCatalogModelState extends NexraCatalogModelIdentity {
|
|
300
|
+
displayName?: string;
|
|
301
|
+
inputSchema?: JsonObject;
|
|
302
|
+
prices: readonly NexraSalePrice[];
|
|
303
|
+
}
|
|
275
304
|
interface NexraSettlement {
|
|
276
305
|
amount: string;
|
|
277
306
|
currency: NexraBillingCurrency;
|
|
@@ -329,4 +358,4 @@ declare function decodeMediaGeometry(_inputSchema: JsonObject, input: JsonObject
|
|
|
329
358
|
/** Normalize the SDK convenience alias `ratio` without producing Native fields. */
|
|
330
359
|
declare function applyMediaGeometry(inputSchema: JsonObject, input: JsonObject): JsonObject;
|
|
331
360
|
|
|
332
|
-
export { type
|
|
361
|
+
export { type ModelDateVersion as A, type ModelEndpointSummary as B, type CreateNexraQuoteRequest as C, type ModelModality as D, type ModelResourceOption as E, type FetchLike as F, type NexraDisplayQuoteBatchEntry as G, HttpTransport as H, type MediaGeometryField as M, type NexraCatalogChangeParams as N, type TaskModelSummary as T, type UnifiedMediaGeometry as U, type NexraCatalogChangePage as a, type NexraCatalogModelState as b, type NexraSalePriceList as c, type NexraQuote as d, type CreateNexraDisplayQuoteBatchRequest as e, type NexraDisplayQuoteBatch as f, type NexraCatalogRevision as g, type NexraModelSpec as h, type NexraModelSpecFilter as i, type MediaGeometryProjection as j, type NexraBillingCurrency as k, type NexraCatalogModelIdentity as l, type NexraModelEndpointSpec as m, type NexraModelOperation as n, type NexraSalePrice as o, type NexraSettlement as p, applyMediaGeometry as q, decodeMediaGeometry as r, encodeMediaGeometry as s, projectMediaGeometry as t, type ModelSearchParams as u, type TaskModel as v, type ModelSchema as w, type ModelResourceList as x, type NexraClientOptions as y, type ModelCapabilitySummary as z };
|
package/dist/media.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as MediaAsset, c as AssetUploadOptions, a as AssetImportRequest, g as AssetCertificationRequest, h as AssetCertification, i as AssetCertificationWaitOptions } from './assets-dUJMQNJD.js';
|
|
2
|
-
import {
|
|
2
|
+
import { p as NexraSettlement, H as HttpTransport } from './media-geometry-BoxkWQlj.js';
|
|
3
3
|
import { J as JsonObject, a as JsonValue, C as CursorPage } from './json-Drjj1OKl.js';
|
|
4
4
|
|
|
5
5
|
interface ApiErrorPayload {
|
|
@@ -66,6 +66,13 @@ interface TaskTiming {
|
|
|
66
66
|
/** Background persistence elapsed time from first response to durable asset readiness. */
|
|
67
67
|
persistMs?: number | null;
|
|
68
68
|
totalMs: number | null;
|
|
69
|
+
/** Incident-only estimate of service readiness; actual public response remains in totalMs. */
|
|
70
|
+
correction?: {
|
|
71
|
+
incidentId: string;
|
|
72
|
+
outputReadyAt: string;
|
|
73
|
+
serviceReadyMs: number;
|
|
74
|
+
deploymentDelayMs: number;
|
|
75
|
+
};
|
|
69
76
|
startSource: "client" | "server";
|
|
70
77
|
/** Server clock reading taken when this snapshot was built; lets clients anchor live timers to server time. */
|
|
71
78
|
observedAt?: string;
|
|
@@ -237,6 +244,35 @@ interface RunResult<TOutput = JsonValue> {
|
|
|
237
244
|
}
|
|
238
245
|
declare function isTerminalTaskStatus(status: TaskStatus): status is TerminalTaskStatus;
|
|
239
246
|
|
|
247
|
+
type Voice = Readonly<{
|
|
248
|
+
id: string;
|
|
249
|
+
provider: "elevenlabs";
|
|
250
|
+
source: "design" | "clone";
|
|
251
|
+
sourceTaskId?: string;
|
|
252
|
+
previewId?: string;
|
|
253
|
+
name: string;
|
|
254
|
+
status: "processing" | "active" | "verification_required" | "failed" | "expired" | "deleted";
|
|
255
|
+
previewUrl?: string;
|
|
256
|
+
requiresVerification?: boolean;
|
|
257
|
+
createdAt: string;
|
|
258
|
+
expiresAt?: string;
|
|
259
|
+
}>;
|
|
260
|
+
type CreateVoiceRequest = Readonly<{
|
|
261
|
+
name: string;
|
|
262
|
+
source: Readonly<{
|
|
263
|
+
kind: "design";
|
|
264
|
+
taskId: string;
|
|
265
|
+
previewId: string;
|
|
266
|
+
}> | Readonly<{
|
|
267
|
+
kind: "clone";
|
|
268
|
+
samples: readonly string[];
|
|
269
|
+
}>;
|
|
270
|
+
}>;
|
|
271
|
+
type VoiceCreation = Readonly<{
|
|
272
|
+
taskId: string;
|
|
273
|
+
voice: Voice;
|
|
274
|
+
}>;
|
|
275
|
+
|
|
240
276
|
declare class AssetsClient {
|
|
241
277
|
private readonly transport;
|
|
242
278
|
constructor(transport: HttpTransport);
|
|
@@ -294,4 +330,4 @@ interface VerifyWebhookOptions {
|
|
|
294
330
|
/** @deprecated Only verifies legacy signed webhooks, not callback_url notifications. */
|
|
295
331
|
declare function verifyWebhook(request: Request, secret: string, options?: VerifyWebhookOptions): Promise<boolean>;
|
|
296
332
|
|
|
297
|
-
export { AssetsClient as A, type
|
|
333
|
+
export { AssetsClient as A, type CreateVoiceRequest as C, type RunTaskOptions as R, TasksClient as T, type Voice as V, type WaitTaskOptions as W, type VoiceCreation as a, type RunResult as b, type ApiErrorPayload as c, type TaskResult as d, type CreateTaskOptions as e, type CreateTaskRequest as f, type RequestDetails as g, TASK_STATUSES as h, type Task as i, type TaskCost as j, type TaskError as k, type TaskEvent as l, type TaskEventType as m, type TaskListParams as n, type TaskPage as o, type TaskProgress as p, type TaskReceipt as q, type TaskStatus as r, type TaskTiming as s, type TaskUsage as t, type TaskWebhookConfig as u, type TerminalTaskStatus as v, type VerifyWebhookOptions as w, type WatchTaskOptions as x, isTerminalTaskStatus as y, verifyWebhook as z };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { a as AssetImportRequest, b as AssetInput, A as AssetReference, c as AssetUploadOptions, d as MediaAsset, e as MediaAssetStatus, f as MediaKind } from './assets-dUJMQNJD.js';
|
|
2
|
-
export {
|
|
2
|
+
export { e as CreateNexraDisplayQuoteBatchRequest, C as CreateNexraQuoteRequest, F as FetchLike, M as MediaGeometryField, j as MediaGeometryProjection, z as ModelCapabilitySummary, A as ModelDateVersion, B as ModelEndpointSummary, D as ModelModality, x as ModelResourceList, E as ModelResourceOption, w as ModelSchema, u as ModelSearchParams, k as NexraBillingCurrency, g as NexraCatalogRevision, y as NexraClientOptions, f as NexraDisplayQuoteBatch, G as NexraDisplayQuoteBatchEntry, n as NexraModelOperation, h as NexraModelSpec, i as NexraModelSpecFilter, d as NexraQuote, o as NexraSalePrice, c as NexraSalePriceList, p as NexraSettlement, v as TaskModel, T as TaskModelSummary, U as UnifiedMediaGeometry } from './media-geometry-BoxkWQlj.js';
|
|
3
3
|
export { C as CursorPage, J as JsonObject, b as JsonPrimitive, a as JsonValue } from './json-Drjj1OKl.js';
|
|
4
|
-
export {
|
|
4
|
+
export { c as ApiErrorPayload, e as CreateTaskOptions, f as CreateTaskRequest, C as CreateVoiceRequest, g as RequestDetails, b as RunResult, R as RunTaskOptions, i as Task, j as TaskCost, k as TaskError, l as TaskEvent, m as TaskEventType, n as TaskListParams, o as TaskPage, p as TaskProgress, q as TaskReceipt, d as TaskResult, r as TaskStatus, s as TaskTiming, t as TaskUsage, u as TaskWebhookConfig, v as TerminalTaskStatus, w as VerifyWebhookOptions, V as Voice, a as VoiceCreation, W as WaitTaskOptions, x as WatchTaskOptions } from './types-BYmoc0n8.js';
|