@byte_fluffy/nexra-sdk 0.1.0-alpha.44 → 0.1.0-alpha.46
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 +32 -0
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +2 -2
- package/dist/{chunk-ESPUF2D4.js → chunk-LXR3MEF3.js} +75 -10
- package/dist/{chunk-JJD32I64.js → chunk-ZNPLN7N6.js} +1939 -450
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/language.d.ts +1 -1
- package/dist/language.js +2 -2
- package/dist/media-Co8S2qEM.d.ts +328 -0
- package/dist/{media-geometry-YD9Y_CFw.d.ts → media-geometry-BS4DZh4B.d.ts} +3 -1
- package/dist/media.d.ts +2 -222
- package/dist/media.js +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/{voices-BHzDQ5xH.d.ts → voices-Bzt4nV1r.d.ts} +13 -7
- package/package.json +1 -1
- package/dist/assets-Cusrjj7_.d.ts +0 -61
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AssetImportRequest, a as AssetInput, b as AssetReference, c as AssetUploadOptions, d as MediaAsset, e as MediaAssetStatus, f as MediaKind } from './
|
|
2
|
-
export {
|
|
1
|
+
export { A as AssetImportRequest, a as AssetInput, b as AssetReference, c as AssetUploadOptions, d as MediaAsset, e as MediaAssetStatus, f as MediaKind, N as NexraImageLayer, g as NexraImageLayerDecompositionOutput } from './media-Co8S2qEM.js';
|
|
2
|
+
export { e as CreateNexraDisplayQuoteBatchRequest, C as CreateNexraQuoteRequest, F as FetchLike, M as MediaGeometryField, k 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, l as NexraBillingCurrency, g as NexraCatalogRevision, y as NexraClientOptions, f as NexraDisplayQuoteBatch, G as NexraDisplayQuoteBatchEntry, n as NexraModelOperation, h as NexraModelSpec, j 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-BS4DZh4B.js';
|
|
3
3
|
export { C as CursorPage, a as JsonObject, b as JsonPrimitive, J as JsonValue } from './json-Cz0MkWQn.js';
|
|
4
4
|
export { A as ApiErrorPayload, N as NexraError, a as PublicError, b as PublicErrorContext, P as PublicErrorFields } from './errors-DJZuAKoO.js';
|
|
5
|
-
export { d as CreateTaskOptions, e as CreateTaskRequest, C as CreateVoiceRequest, f as RequestDetails, b as RunResult, R as RunTaskOptions, c as Task, h as TaskCost, i as TaskError, j as TaskEvent, k as TaskEventType, l as TaskListParams, m as TaskPage, n as TaskProgress, o as TaskReceipt, c as TaskResult, p as TaskStatus, q as TaskTiming, r as TaskUsage, s as TaskWebhookConfig, t as TerminalTaskStatus, u as VerifyWebhookOptions, V as Voice, a as VoiceCreation, W as WaitTaskOptions, v as WatchTaskOptions } from './voices-
|
|
5
|
+
export { d as CreateTaskOptions, e as CreateTaskRequest, C as CreateVoiceRequest, f as RequestDetails, b as RunResult, R as RunTaskOptions, c as Task, h as TaskCost, i as TaskError, j as TaskEvent, k as TaskEventType, l as TaskListParams, m as TaskPage, n as TaskProgress, o as TaskReceipt, c as TaskResult, p as TaskStatus, q as TaskTiming, r as TaskUsage, s as TaskWebhookConfig, t as TerminalTaskStatus, u as VerifyWebhookOptions, V as Voice, a as VoiceCreation, W as WaitTaskOptions, v as WatchTaskOptions } from './voices-Bzt4nV1r.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as AssetUploadOptions, d as MediaAsset, A as AssetImportRequest,
|
|
2
|
-
import { H as HttpTransport,
|
|
1
|
+
import { c as AssetUploadOptions, d as MediaAsset, A as AssetImportRequest, h as AssetCertificationRequest, i as AssetCertification, j as AssetCertificationWaitOptions } from './media-Co8S2qEM.js';
|
|
2
|
+
import { H as HttpTransport, p as NexraSettlement } from './media-geometry-BS4DZh4B.js';
|
|
3
3
|
import { a as JsonObject, J as JsonValue, C as CursorPage } from './json-Cz0MkWQn.js';
|
|
4
4
|
import { P as PublicErrorFields, a as PublicError, b as PublicErrorContext, N as NexraError } from './errors-DJZuAKoO.js';
|
|
5
5
|
|
|
@@ -178,9 +178,9 @@ interface Task<TOutput = JsonValue> extends PublicErrorFields {
|
|
|
178
178
|
/**
|
|
179
179
|
* Caller-supplied business data, returned unchanged; never sent to the provider.
|
|
180
180
|
* The platform extracts the reserved string keys `callerUrl` (caller origin,
|
|
181
|
-
* https URL)
|
|
182
|
-
*
|
|
183
|
-
*
|
|
181
|
+
* https URL), `endUserId` (opaque end-user identifier), and `endUserIp`
|
|
182
|
+
* (IPv4/IPv6 address) for support diagnostics. These caller assertions are
|
|
183
|
+
* checked for format only and remain unchanged inside `metadata`.
|
|
184
184
|
*/
|
|
185
185
|
metadata?: JsonObject;
|
|
186
186
|
timing?: TaskTiming;
|
|
@@ -207,6 +207,8 @@ type TaskResult<TOutput = JsonValue> = Pick<Task<TOutput>, "id" | "model" | "sta
|
|
|
207
207
|
/** Platform request details, used by both managed Tasks and native proxy requests. */
|
|
208
208
|
interface RequestDetails extends PublicErrorFields {
|
|
209
209
|
id: string;
|
|
210
|
+
/** Owning Nexra account, used to separate users in system request history. */
|
|
211
|
+
accountId?: string | null;
|
|
210
212
|
nexraRequestId?: string;
|
|
211
213
|
taskId: string | null;
|
|
212
214
|
method: string;
|
|
@@ -229,12 +231,16 @@ interface RequestDetails extends PublicErrorFields {
|
|
|
229
231
|
billingReason?: Task["billingReason"];
|
|
230
232
|
settlement?: NexraSettlement;
|
|
231
233
|
metadata?: JsonObject;
|
|
232
|
-
/** Caller-asserted origin
|
|
234
|
+
/** Caller-asserted origin recorded with the request; diagnostics display only. */
|
|
233
235
|
callerUrl?: string | null;
|
|
234
236
|
/** Client address recorded at the trusted HTTP ingress; absent on historical requests. */
|
|
235
237
|
clientIp?: string | null;
|
|
236
|
-
/** Caller-asserted end-user identifier
|
|
238
|
+
/** Caller-asserted end-user identifier recorded with the request; diagnostics display only. */
|
|
237
239
|
endUserId?: string | null;
|
|
240
|
+
endUserIp?: string | null;
|
|
241
|
+
purpose?: string | null;
|
|
242
|
+
sourceSessionId?: string | null;
|
|
243
|
+
sourceTaskId?: string | null;
|
|
238
244
|
/** Name of the API key that authenticated this request; diagnostics display only. */
|
|
239
245
|
apiKeyName?: string | null;
|
|
240
246
|
/** Latest known execution update; omitted when not observed. */
|
package/package.json
CHANGED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { a as JsonObject } from './json-Cz0MkWQn.js';
|
|
2
|
-
|
|
3
|
-
declare const MEDIA_KINDS: readonly ["image", "video", "audio", "document", "archive", "other"];
|
|
4
|
-
type MediaKind = (typeof MEDIA_KINDS)[number];
|
|
5
|
-
type MediaAssetStatus = "pending" | "ready" | "failed" | "deleted";
|
|
6
|
-
interface MediaAsset {
|
|
7
|
-
id: string;
|
|
8
|
-
kind: MediaKind;
|
|
9
|
-
status: MediaAssetStatus;
|
|
10
|
-
source: "upload" | "generated" | "provider" | "imported";
|
|
11
|
-
name?: string;
|
|
12
|
-
mimeType?: string;
|
|
13
|
-
sizeBytes?: number;
|
|
14
|
-
width?: number;
|
|
15
|
-
height?: number;
|
|
16
|
-
durationMs?: number;
|
|
17
|
-
checksumSha256?: string;
|
|
18
|
-
url?: string;
|
|
19
|
-
downloadUrl?: string;
|
|
20
|
-
expiresAt?: string;
|
|
21
|
-
metadata?: JsonObject;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
}
|
|
24
|
-
interface AssetReference {
|
|
25
|
-
assetId: string;
|
|
26
|
-
}
|
|
27
|
-
type AssetInput = AssetReference | Blob | File | MediaAsset | string | URL;
|
|
28
|
-
interface AssetUploadOptions {
|
|
29
|
-
kind?: MediaKind;
|
|
30
|
-
name?: string;
|
|
31
|
-
signal?: AbortSignal;
|
|
32
|
-
}
|
|
33
|
-
interface AssetImportRequest {
|
|
34
|
-
url: string;
|
|
35
|
-
kind?: MediaKind;
|
|
36
|
-
name?: string;
|
|
37
|
-
}
|
|
38
|
-
type AssetCertificationProvider = "seedance";
|
|
39
|
-
type AssetCertificationStatus = "processing" | "ready" | "failed";
|
|
40
|
-
interface AssetCertification {
|
|
41
|
-
assetId: string;
|
|
42
|
-
provider: AssetCertificationProvider;
|
|
43
|
-
status: AssetCertificationStatus;
|
|
44
|
-
providerAssetId?: string;
|
|
45
|
-
assetUri?: string;
|
|
46
|
-
groupId?: string;
|
|
47
|
-
library: "general" | "liveness";
|
|
48
|
-
error?: string;
|
|
49
|
-
createdAt: string;
|
|
50
|
-
updatedAt: string;
|
|
51
|
-
}
|
|
52
|
-
interface AssetCertificationRequest {
|
|
53
|
-
library?: "general" | "liveness";
|
|
54
|
-
}
|
|
55
|
-
interface AssetCertificationWaitOptions {
|
|
56
|
-
pollIntervalMs?: number;
|
|
57
|
-
timeoutMs?: number;
|
|
58
|
-
signal?: AbortSignal;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export { type AssetImportRequest as A, MEDIA_KINDS as M, type AssetInput as a, type AssetReference as b, type AssetUploadOptions as c, type MediaAsset as d, type MediaAssetStatus as e, type MediaKind as f, type AssetCertificationRequest as g, type AssetCertification as h, type AssetCertificationWaitOptions as i };
|