@byte_fluffy/nexra-sdk 0.1.0-alpha.23 → 0.1.0-alpha.25

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/index.d.ts CHANGED
@@ -3,8 +3,8 @@ import { H as HttpTransport, q as ModelSearchParams, T as TaskModelSummary, r as
3
3
  export { b as CreateNexraDisplayQuoteBatchRequest, C as CreateNexraQuoteRequest, F as FetchLike, M as MediaGeometryField, g as MediaGeometryProjection, u as ModelCapabilitySummary, v as ModelDateVersion, w as ModelEndpointSummary, x as ModelModality, y as ModelResourceList, z as ModelResourceOption, h as NexraBillingCurrency, d as NexraCatalogRevision, c as NexraDisplayQuoteBatch, A as NexraDisplayQuoteBatchEntry, j as NexraModelOperation, e as NexraModelSpec, f as NexraModelSpecFilter, a as NexraQuote, k as NexraSalePrice, N as NexraSalePriceList, l as NexraSettlement, U as UnifiedMediaGeometry, m as applyMediaGeometry, n as decodeMediaGeometry, o as encodeMediaGeometry, p as projectMediaGeometry } from './media-geometry-Bo6ukeIQ.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, a as RunResult, b as ApiErrorPayload, c as TaskResult } from './types-DPLgTh8D.js';
7
- export { C as CreateTaskOptions, d as CreateTaskRequest, e as RequestDetails, f as TASK_STATUSES, g 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, p as TaskStatus, q as TaskTiming, r as TaskUsage, s as TaskWebhookConfig, t as TerminalTaskStatus, V as VerifyWebhookOptions, W as WaitTaskOptions, u as WatchTaskOptions, v as isTerminalTaskStatus, w as verifyWebhook } from './types-DPLgTh8D.js';
6
+ import { A as AssetsClient, T as TasksClient, R as RunTaskOptions, a as RunResult, b as ApiErrorPayload, c as TaskResult } from './types-CmONdGYs.js';
7
+ export { C as CreateTaskOptions, d as CreateTaskRequest, e as RequestDetails, f as TASK_STATUSES, g 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, p as TaskStatus, q as TaskTiming, r as TaskUsage, s as TaskWebhookConfig, t as TerminalTaskStatus, V as VerifyWebhookOptions, W as WaitTaskOptions, u as WatchTaskOptions, v as isTerminalTaskStatus, w as verifyWebhook } from './types-CmONdGYs.js';
8
8
  import { CatalogClient } from './catalog.js';
9
9
  export { getModelSpec, listModelSpecs } from './catalog.js';
10
10
  export { ceilDecimal, multiplyDecimal } from './decimal.js';
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  projectMediaGeometry,
15
15
  queryString,
16
16
  sleep
17
- } from "./chunk-AM7HU7Y7.js";
17
+ } from "./chunk-RKIOP6VA.js";
18
18
  import {
19
19
  ceilDecimal,
20
20
  multiplyDecimal
@@ -24,7 +24,7 @@ import {
24
24
  TASK_STATUSES,
25
25
  createTaskRequest,
26
26
  isTerminalTaskStatus
27
- } from "./chunk-TA3YGQQY.js";
27
+ } from "./chunk-OPHFEY7Z.js";
28
28
 
29
29
  // src/assets.ts
30
30
  var AssetsClient = class {
package/dist/media.d.ts CHANGED
@@ -29,6 +29,14 @@ type NexraImageContentPart = Readonly<{
29
29
  /** Stable prompt reference name for models that address media as `@name`. */
30
30
  name?: string;
31
31
  }>;
32
+ /** An image pinned inside a generated video; only models declaring this role accept it. */
33
+ type NexraVideoKeyframeContentPart = Readonly<{
34
+ type: "image";
35
+ source: NexraMediaSource;
36
+ role: "keyframe";
37
+ /** Position in seconds, strictly inside the generated clip. */
38
+ timestamp: number;
39
+ }>;
32
40
  type NexraVideoContentPart = Readonly<{
33
41
  type: "video";
34
42
  source: NexraMediaSource;
@@ -56,14 +64,18 @@ type NexraImageGenerateInput = Readonly<{
56
64
  seed?: number;
57
65
  }>;
58
66
  type NexraVideoGenerateInput = Readonly<{
59
- content: readonly (NexraMediaContentPart | NexraDraftContentPart)[];
67
+ content: readonly (NexraMediaContentPart | NexraDraftContentPart | NexraVideoKeyframeContentPart)[];
60
68
  draft?: boolean;
69
+ /** Explicit no-watermark value, only on models whose contract declares it. */
70
+ watermark?: false;
61
71
  /** Optional preset or cloned voice used by talking-avatar video models. */
62
72
  voice?: string;
63
73
  aspect_ratio?: string;
64
74
  resolution?: string;
65
75
  quality?: string;
66
76
  duration?: number;
77
+ fit?: "contain" | "cover";
78
+ title?: string;
67
79
  generate_audio?: boolean;
68
80
  output_format?: string;
69
81
  seed?: number;
@@ -170,7 +182,7 @@ declare const NEXRA_MEDIA_OPERATION_DEFINITIONS: readonly [{
170
182
  readonly status: "active";
171
183
  readonly outputKind: "video";
172
184
  readonly features: readonly ["text-to-video", "first-frame", "first-last-frame", "image-to-video", "video-to-video", "audio-to-video", "avatar-video", "reference-image", "reference-video", "reference-audio", "omni-reference"];
173
- readonly parameterKeys: readonly ["voice", "aspect_ratio", "resolution", "quality", "duration", "generate_audio", "output_format", "seed"];
185
+ readonly parameterKeys: readonly ["voice", "aspect_ratio", "resolution", "quality", "duration", "fit", "title", "generate_audio", "output_format", "seed", "watermark"];
174
186
  }, {
175
187
  readonly operation: "audio.generate";
176
188
  readonly status: "active";
@@ -197,4 +209,4 @@ declare function nexraMediaOperationForMode(mode: string): NexraPublishedMediaOp
197
209
  /** Narrow the shared category vocabulary for one Experience Center input mode. */
198
210
  declare function nexraMediaInputSchemaForMode(mode: string): JsonObject | undefined;
199
211
 
200
- export { NEXRA_GENERATION_OPERATIONS, NEXRA_MEDIA_API_VERSION, NEXRA_MEDIA_FEATURES, NEXRA_MEDIA_INPUT_SCHEMAS, NEXRA_MEDIA_OPERATIONS, NEXRA_MEDIA_OPERATION_DEFINITIONS, NEXRA_PUBLISHED_MEDIA_OPERATIONS, type NexraAudioContentPart, type NexraAudioGenerateInput, type NexraGenerationOperation, type NexraImageContentPart, type NexraImageGenerateInput, type NexraImageUpscaleInput, type NexraMediaContentPart, type NexraMediaFeature, type NexraMediaInputByOperation, type NexraMediaInputMode, type NexraMediaInputSlot, type NexraMediaKind, type NexraMediaOperation, type NexraMediaOperationDefinition, type NexraMediaParameter, type NexraMediaParameterConstraint, type NexraMediaSource, type NexraPublishedMediaOperation, type NexraTextContentPart, type NexraVideoContentPart, type NexraVideoGenerateInput, type NexraVideoUpscaleInput, isNexraMediaInput, nexraMediaInputSchema, nexraMediaInputSchemaForMode, nexraMediaOperationForMode };
212
+ export { NEXRA_GENERATION_OPERATIONS, NEXRA_MEDIA_API_VERSION, NEXRA_MEDIA_FEATURES, NEXRA_MEDIA_INPUT_SCHEMAS, NEXRA_MEDIA_OPERATIONS, NEXRA_MEDIA_OPERATION_DEFINITIONS, NEXRA_PUBLISHED_MEDIA_OPERATIONS, type NexraAudioContentPart, type NexraAudioGenerateInput, type NexraGenerationOperation, type NexraImageContentPart, type NexraImageGenerateInput, type NexraImageUpscaleInput, type NexraMediaContentPart, type NexraMediaFeature, type NexraMediaInputByOperation, type NexraMediaInputMode, type NexraMediaInputSlot, type NexraMediaKind, type NexraMediaOperation, type NexraMediaOperationDefinition, type NexraMediaParameter, type NexraMediaParameterConstraint, type NexraMediaSource, type NexraPublishedMediaOperation, type NexraTextContentPart, type NexraVideoContentPart, type NexraVideoGenerateInput, type NexraVideoKeyframeContentPart, type NexraVideoUpscaleInput, isNexraMediaInput, nexraMediaInputSchema, nexraMediaInputSchemaForMode, nexraMediaOperationForMode };
package/dist/media.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  nexraMediaInputSchema,
11
11
  nexraMediaInputSchemaForMode,
12
12
  nexraMediaOperationForMode
13
- } from "./chunk-TA3YGQQY.js";
13
+ } from "./chunk-OPHFEY7Z.js";
14
14
  export {
15
15
  NEXRA_GENERATION_OPERATIONS,
16
16
  NEXRA_MEDIA_API_VERSION,
@@ -40,6 +40,12 @@ interface TaskCost {
40
40
  amount: string;
41
41
  currency: string;
42
42
  }
43
+ interface TaskQueueSnapshot {
44
+ phase: "waiting_capacity" | "waiting_channel" | "dispatch_pending";
45
+ since: string;
46
+ deadlineAt?: string;
47
+ cancelable: boolean;
48
+ }
43
49
  interface TaskTiming {
44
50
  submittedAt: string;
45
51
  providerSubmittedAt?: string;
@@ -77,6 +83,8 @@ interface Task<TOutput = JsonValue> {
77
83
  /** Model request parameters; native-managed tasks retain the upstream field structure. */
78
84
  input?: JsonObject;
79
85
  status: TaskStatus;
86
+ /** Present only while an asynchronous Task is queued. */
87
+ queue?: TaskQueueSnapshot;
80
88
  /** Persistence policy frozen when the Task is created. Background is limited to video Tasks. */
81
89
  persistPolicy?: "terminal" | "background";
82
90
  /**
@@ -126,7 +134,7 @@ interface Task<TOutput = JsonValue> {
126
134
  /** POST /tasks returns acceptance only, including for idempotent replays. */
127
135
  type TaskReceipt = Pick<Task, "id" | "status">;
128
136
  /** Public Task result; platform diagnostics and business tags live in RequestDetails. */
129
- type TaskResult<TOutput = JsonValue> = Pick<Task<TOutput>, "id" | "model" | "status"> & Partial<Pick<Task<TOutput>, "requestId" | "output" | "assets" | "error" | "persistPolicy" | "deliveryStatus" | "settlement">>;
137
+ type TaskResult<TOutput = JsonValue> = Pick<Task<TOutput>, "id" | "model" | "status"> & Partial<Pick<Task<TOutput>, "requestId" | "output" | "assets" | "error" | "persistPolicy" | "deliveryStatus" | "settlement" | "queue">>;
130
138
  /** Platform request details, used by both managed Tasks and native proxy requests. */
131
139
  interface RequestDetails {
132
140
  id: string;
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
2
  export { b as CreateNexraDisplayQuoteBatchRequest, C as CreateNexraQuoteRequest, F as FetchLike, M as MediaGeometryField, g as MediaGeometryProjection, u as ModelCapabilitySummary, v as ModelDateVersion, w as ModelEndpointSummary, x as ModelModality, y as ModelResourceList, z as ModelResourceOption, s as ModelSchema, q as ModelSearchParams, h as NexraBillingCurrency, d as NexraCatalogRevision, t as NexraClientOptions, c as NexraDisplayQuoteBatch, A as NexraDisplayQuoteBatchEntry, j as NexraModelOperation, e as NexraModelSpec, f as NexraModelSpecFilter, a as NexraQuote, k as NexraSalePrice, N as NexraSalePriceList, l as NexraSettlement, r as TaskModel, T as TaskModelSummary, U as UnifiedMediaGeometry } from './media-geometry-Bo6ukeIQ.js';
3
3
  export { C as CursorPage, J as JsonObject, b as JsonPrimitive, a as JsonValue } from './json-Drjj1OKl.js';
4
- export { b as ApiErrorPayload, C as CreateTaskOptions, d as CreateTaskRequest, e as RequestDetails, a as RunResult, R as RunTaskOptions, g 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, V as VerifyWebhookOptions, W as WaitTaskOptions, u as WatchTaskOptions } from './types-DPLgTh8D.js';
4
+ export { b as ApiErrorPayload, C as CreateTaskOptions, d as CreateTaskRequest, e as RequestDetails, a as RunResult, R as RunTaskOptions, g 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, V as VerifyWebhookOptions, W as WaitTaskOptions, u as WatchTaskOptions } from './types-CmONdGYs.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byte_fluffy/nexra-sdk",
3
- "version": "0.1.0-alpha.23",
3
+ "version": "0.1.0-alpha.25",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "sideEffects": false,