@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/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 './assets-Cusrjj7_.js';
2
- export { C as CreateNexraDisplayQuoteBatchRequest, d as CreateNexraQuoteRequest, F as FetchLike, e as MediaGeometryField, f as MediaGeometryProjection, g as ModelCapabilitySummary, h as ModelDateVersion, i as ModelEndpointSummary, j as ModelModality, c as ModelResourceList, k as ModelResourceOption, b as ModelSchema, M as ModelSearchParams, l as NexraBillingCurrency, m as NexraCatalogRevision, N as NexraClientOptions, n as NexraDisplayQuoteBatch, o as NexraDisplayQuoteBatchEntry, p as NexraModelOperation, q as NexraModelSpec, r as NexraModelSpecFilter, s as NexraQuote, t as NexraSalePrice, u as NexraSalePriceList, v as NexraSettlement, a as TaskModel, T as TaskModelSummary, U as UnifiedMediaGeometry } from './media-geometry-YD9Y_CFw.js';
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-BHzDQ5xH.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-Bzt4nV1r.js';
@@ -1,5 +1,5 @@
1
- import { c as AssetUploadOptions, d as MediaAsset, A as AssetImportRequest, g as AssetCertificationRequest, h as AssetCertification, i as AssetCertificationWaitOptions } from './assets-Cusrjj7_.js';
2
- import { H as HttpTransport, v as NexraSettlement } from './media-geometry-YD9Y_CFw.js';
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) and `endUserId` (opaque end-user identifier) into dedicated
182
- * attribution columns for support diagnostics; their values are not validated
183
- * beyond format checks and remain unchanged inside `metadata`.
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 extracted from metadata.callerUrl; diagnostics display only. */
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 extracted from metadata.endUserId; diagnostics display only. */
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@byte_fluffy/nexra-sdk",
3
- "version": "0.1.0-alpha.44",
3
+ "version": "0.1.0-alpha.46",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "sideEffects": false,
@@ -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 };