@byte_fluffy/nexra-sdk 0.1.0-alpha.45 → 0.1.0-alpha.46.1

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.
@@ -10,6 +10,7 @@ var MEDIA_KINDS = [
10
10
 
11
11
  // ../contracts/src/public-error-catalog.ts
12
12
  var PUBLIC_ERROR_CATALOG = {
13
+ google_channel_rate_limited: { "zh-CN": "\u5F53\u524D\u6587\u672C\u6A21\u578B\u670D\u52A1\u7E41\u5FD9\u6216\u53D7\u5230\u9650\u6D41\uFF08429\uFF09\u3002\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF1B\u82E5\u6301\u7EED\u51FA\u73B0\uFF0C\u53EF\u5207\u6362\u5176\u4ED6\u6587\u672C\u6A21\u578B\uFF0C\u518D\u53D1\u9001\u6D88\u606F\u7EE7\u7EED\u3002", en: "The current text model service is busy or rate limited (429). Try again later; if the problem persists, switch to another text model and send a message to continue." },
13
14
  queue_wait_timeout: { "zh-CN": "\u4EFB\u52A1\u6392\u961F\u7B49\u5F85\u6267\u884C\u8D85\u8FC7\u65F6\u9650\uFF0C\u5C1A\u672A\u63D0\u4EA4\u7ED9\u6A21\u578B\u670D\u52A1\u3002\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF1B\u6301\u7EED\u8D85\u65F6\u65F6\u51ED\u8BF7\u6C42 ID \u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u3002", en: "The task exceeded its queue wait limit before submission to the model service. Try again later; contact a platform administrator with the request ID if queue timeouts persist." },
14
15
  task_execution_timeout: { "zh-CN": "\u4EFB\u52A1\u8D85\u8FC7\u603B\u65F6\u9650\uFF0C\u5DF2\u7ED3\u675F\u3002\u4E0A\u6E38\u53EF\u80FD\u4ECD\u5728\u5904\u7406\uFF0C\u8BF7\u5148\u6838\u5BF9\u539F\u8BF7\u6C42\u7ED3\u679C\uFF0C\u907F\u514D\u91CD\u590D\u63D0\u4EA4\u3002", en: "The task exceeded its total time limit and has ended. The upstream service may still be processing it; check the original request before submitting again." },
15
16
  authentication_required: { "zh-CN": "\u8BF7\u6C42\u672A\u63D0\u4F9B\u53EF\u7528\u7684 Nexra \u8EAB\u4EFD\u51ED\u8BC1\u3002\u8BF7\u767B\u5F55\u8D26\u6237\uFF0C\u6216\u5728\u8BF7\u6C42\u4E2D\u63D0\u4F9B\u6709\u6548\u7684 Nexra API Key\u3002", en: "The request has no usable Nexra credentials. Sign in or include a valid Nexra API key." },
@@ -419,21 +420,27 @@ var NEXRA_GENERATION_OPERATIONS = [
419
420
  "video.generate",
420
421
  "audio.generate",
421
422
  "image.upscale",
422
- "video.upscale"
423
+ "video.upscale",
424
+ "video.depth",
425
+ "video.segment"
423
426
  ];
424
427
  var NEXRA_MEDIA_OPERATIONS = [
425
428
  "image.generate",
426
429
  "video.generate",
427
430
  "audio.generate",
428
431
  "image.upscale",
429
- "video.upscale"
432
+ "video.upscale",
433
+ "video.depth",
434
+ "video.segment"
430
435
  ];
431
436
  var NEXRA_PUBLISHED_MEDIA_OPERATIONS = [
432
437
  "image.generate",
433
438
  "video.generate",
434
439
  "audio.generate",
435
440
  "image.upscale",
436
- "video.upscale"
441
+ "video.upscale",
442
+ "video.depth",
443
+ "video.segment"
437
444
  ];
438
445
  var NEXRA_MEDIA_FEATURES = [
439
446
  "text-to-image",
@@ -459,7 +466,9 @@ var NEXRA_MEDIA_FEATURES = [
459
466
  "voice-reference",
460
467
  "voice-design",
461
468
  "scale-factor",
462
- "target-resolution"
469
+ "target-resolution",
470
+ "video-depth",
471
+ "video-segment"
463
472
  ];
464
473
  var NEXRA_MEDIA_OPERATION_DEFINITIONS = Object.freeze([
465
474
  {
@@ -496,6 +505,20 @@ var NEXRA_MEDIA_OPERATION_DEFINITIONS = Object.freeze([
496
505
  outputKind: "video",
497
506
  features: ["scale-factor", "target-resolution"],
498
507
  parameterKeys: ["scale", "resolution", "output_format", "preserve_details"]
508
+ },
509
+ {
510
+ operation: "video.depth",
511
+ status: "active",
512
+ outputKind: "video",
513
+ features: ["video-depth"],
514
+ parameterKeys: ["resolution"]
515
+ },
516
+ {
517
+ operation: "video.segment",
518
+ status: "active",
519
+ outputKind: "video",
520
+ features: ["video-segment"],
521
+ parameterKeys: ["resolution"]
499
522
  }
500
523
  ]);
501
524
  var mediaSourceSchema = {
@@ -553,9 +576,20 @@ function inputSchema(contentItems, properties, contentBounds = {}) {
553
576
  };
554
577
  }
555
578
  var imagePart = mediaPartSchema("image", ["source", "reference", "first_frame", "last_frame", "mask", "control", "subject", "background"]);
556
- var videoImagePart = mediaPartSchema("image", ["source", "reference", "first_frame", "last_frame", "mask", "control", "subject", "background", "keyframe"]);
579
+ var videoImagePart = mediaPartSchema("image", ["source", "reference", "first_frame", "middle_frame", "last_frame", "mask", "control", "subject", "background", "keyframe"]);
557
580
  var videoPart = mediaPartSchema("video", ["source", "reference", "edit", "extend"]);
558
581
  var audioPart = mediaPartSchema("audio", ["source", "reference", "voice_reference"]);
582
+ var resourcePart = {
583
+ type: "object",
584
+ properties: {
585
+ type: { const: "resource" },
586
+ resource: { type: "string", enum: ["element", "voice"] },
587
+ source: { type: "string", minLength: 1 },
588
+ name: { type: "string", minLength: 1 }
589
+ },
590
+ required: ["type", "resource", "source", "name"],
591
+ additionalProperties: false
592
+ };
559
593
  var draftPart = {
560
594
  type: "object",
561
595
  properties: {
@@ -580,7 +614,7 @@ var NEXRA_MEDIA_INPUT_SCHEMAS = Object.freeze({
580
614
  }
581
615
  ),
582
616
  "video.generate": inputSchema(
583
- [textPartSchema(["prompt", "negative_prompt", "script"]), videoImagePart, videoPart, audioPart, draftPart],
617
+ [textPartSchema(["prompt", "negative_prompt", "script"]), videoImagePart, videoPart, audioPart, draftPart, resourcePart],
584
618
  {
585
619
  task_type: { type: "string", minLength: 1, "x-ui": { order: 8, control: "segmented" } },
586
620
  voice: { type: "string", minLength: 1, "x-ui": { order: 9, control: "resource", resource: "voice" } },
@@ -635,6 +669,16 @@ var NEXRA_MEDIA_INPUT_SCHEMAS = Object.freeze({
635
669
  preserve_details: { type: "boolean", "x-ui": { order: 13, control: "switch" } }
636
670
  },
637
671
  { minItems: 1, maxItems: 1 }
672
+ ),
673
+ "video.segment": inputSchema(
674
+ [textPartSchema(["prompt"]), mediaPartSchema("video", ["source"])],
675
+ { resolution: { type: "string", minLength: 1, "x-ui": { order: 10 } } },
676
+ { minItems: 2, maxItems: 2 }
677
+ ),
678
+ "video.depth": inputSchema(
679
+ [mediaPartSchema("video", ["source"])],
680
+ { resolution: { type: "string", minLength: 1, "x-ui": { order: 10 } } },
681
+ { minItems: 1, maxItems: 1 }
638
682
  )
639
683
  });
640
684
  function nexraMediaInputSchema(operation) {
@@ -649,6 +693,7 @@ function isNexraMediaInput(value) {
649
693
  return Array.isArray(content) && content.length > 0 && content.every((part) => {
650
694
  if (!part || typeof part !== "object" || Array.isArray(part)) return false;
651
695
  if (part.type === "text") return typeof part.text === "string" && part.text.length > 0;
696
+ if (part.type === "resource") return ["element", "voice"].includes(String(part.resource)) && typeof part.source === "string" && part.source.length > 0 && typeof part.name === "string" && part.name.length > 0;
652
697
  if (part.type === "draft_task") {
653
698
  const reference = part.draft_task;
654
699
  return Boolean(reference && typeof reference === "object" && !Array.isArray(reference) && typeof reference.id === "string" && reference.id.length > 0);
@@ -664,6 +709,8 @@ function nexraMediaOperationForMode(mode) {
664
709
  if (["text-to-speech", "text-to-music", "text-to-sfx"].includes(mode)) return "audio.generate";
665
710
  if (mode === "image-upscale") return "image.upscale";
666
711
  if (mode === "video-upscale") return "video.upscale";
712
+ if (mode === "video-depth") return "video.depth";
713
+ if (mode === "video-segment") return "video.segment";
667
714
  return void 0;
668
715
  }
669
716
  function nexraMediaInputSchemaForMode(mode) {
@@ -705,10 +752,11 @@ function nexraMediaInputSchemaForMode(mode) {
705
752
  variant.required = [...required];
706
753
  }
707
754
  }
708
- const requiredMedia = mode === "image-to-image" || mode === "image-to-video" || mode === "avatar-video" ? "image" : void 0;
755
+ const requiredMedia = ["video-depth", "video-segment"].includes(mode) ? "video" : mode === "image-to-image" || mode === "image-to-video" || mode === "avatar-video" ? "image" : void 0;
709
756
  const requiresReferenceMedia = mode === "multimodal-to-video";
757
+ const hasTextPart = items.oneOf.some((variant) => variant.properties.type.const === "text");
710
758
  content.allOf = [
711
- ...mode === "avatar-video" ? [] : [{
759
+ ...mode === "avatar-video" || !hasTextPart ? [] : [{
712
760
  contains: { type: "object", properties: { type: { const: "text" } }, required: ["type"] },
713
761
  minContains: 1
714
762
  }],
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export { A as AssetImportRequest, a as AssetInput, b as AssetReference, c as AssetUploadOptions, M as MEDIA_KINDS, d as MediaAsset, e as MediaAssetStatus, f as MediaKind, N as NexraImageLayer, g as NexraImageLayerDecompositionOutput } from './media-CwGmG5qB.js';
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-KwQh1O8Y.js';
3
- 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, E as ModelResourceOption, l as NexraBillingCurrency, g as NexraCatalogRevision, 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, U as UnifiedMediaGeometry, q as applyMediaGeometry, r as decodeMediaGeometry, s as encodeMediaGeometry, t as projectMediaGeometry } from './media-geometry-KwQh1O8Y.js';
1
+ export { A as AssetImportRequest, a as AssetInput, b as AssetReference, c as AssetUploadOptions, M as MEDIA_KINDS, d as MediaAsset, e as MediaAssetStatus, f as MediaKind, N as NexraImageLayer, g as NexraImageLayerDecompositionOutput } from './media-Co8S2qEM.js';
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-BS4DZh4B.js';
3
+ 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, E as ModelResourceOption, l as NexraBillingCurrency, g as NexraCatalogRevision, 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, U as UnifiedMediaGeometry, q as applyMediaGeometry, r as decodeMediaGeometry, s as encodeMediaGeometry, t as projectMediaGeometry } from './media-geometry-BS4DZh4B.js';
4
4
  import { C as CursorPage, J as JsonValue } from './json-Cz0MkWQn.js';
5
5
  export { a as JsonObject, b as JsonPrimitive } from './json-Cz0MkWQn.js';
6
6
  import { N as NexraError, P as PublicErrorFields } from './errors-DJZuAKoO.js';
7
7
  export { A as ApiErrorPayload, a as PublicError, b as PublicErrorContext, e as extractUpstreamErrorMessage } from './errors-DJZuAKoO.js';
8
- import { V as Voice, C as CreateVoiceRequest, a as VoiceCreation, A as AssetsClient, T as TasksClient, R as RunTaskOptions, b as RunResult, c as TaskResult } from './voices-B09HqQJJ.js';
9
- export { d as CreateTaskOptions, e as CreateTaskRequest, f as RequestDetails, g as TASK_STATUSES, 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, u as VerifyWebhookOptions, W as WaitTaskOptions, v as WatchTaskOptions, w as isTerminalTaskStatus, x as verifyWebhook } from './voices-B09HqQJJ.js';
8
+ import { V as Voice, C as CreateVoiceRequest, a as VoiceCreation, A as AssetsClient, T as TasksClient, R as RunTaskOptions, b as RunResult, c as TaskResult } from './voices-Bzt4nV1r.js';
9
+ export { d as CreateTaskOptions, e as CreateTaskRequest, f as RequestDetails, g as TASK_STATUSES, 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, u as VerifyWebhookOptions, W as WaitTaskOptions, v as WatchTaskOptions, w as isTerminalTaskStatus, x as verifyWebhook } from './voices-Bzt4nV1r.js';
10
10
  import { CatalogClient } from './catalog.js';
11
11
  export { formatModelDisplayName, getModelSpec, listModelSpecs } from './catalog.js';
12
12
  export { ceilDecimal, multiplyDecimal } from './decimal.js';
package/dist/index.js CHANGED
@@ -20,14 +20,14 @@ import {
20
20
  projectMediaGeometry,
21
21
  queryString,
22
22
  sleep
23
- } from "./chunk-OX5GFYVN.js";
23
+ } from "./chunk-JK6LUGM5.js";
24
24
  import {
25
25
  MEDIA_KINDS,
26
26
  TASK_STATUSES,
27
27
  createTaskRequest,
28
28
  extractUpstreamErrorMessage,
29
29
  isTerminalTaskStatus
30
- } from "./chunk-FEACXUHZ.js";
30
+ } from "./chunk-NR4EWD3X.js";
31
31
 
32
32
  // src/assets.ts
33
33
  var AssetsClient = class {
@@ -1,7 +1,7 @@
1
1
  import { APICallError, LanguageModelV4 } from '@ai-sdk/provider';
2
2
  import { NexraLanguageProtocol } from './catalog.js';
3
3
  export { NexraLanguageModelBinding } from './catalog.js';
4
- import { F as FetchLike } from './media-geometry-KwQh1O8Y.js';
4
+ import { F as FetchLike } from './media-geometry-BS4DZh4B.js';
5
5
  import { N as NexraError } from './errors-DJZuAKoO.js';
6
6
  import './json-Cz0MkWQn.js';
7
7
 
package/dist/language.js CHANGED
@@ -6,12 +6,12 @@ import {
6
6
  jsonBody,
7
7
  parseServerSentEvents,
8
8
  resolveNexraLanguageReasoning
9
- } from "./chunk-OX5GFYVN.js";
9
+ } from "./chunk-JK6LUGM5.js";
10
10
  import {
11
11
  isPublicErrorCode,
12
12
  publicErrorMessage,
13
13
  resolvePublicErrorLocale
14
- } from "./chunk-FEACXUHZ.js";
14
+ } from "./chunk-NR4EWD3X.js";
15
15
 
16
16
  // src/language/index.ts
17
17
  import { createAnthropic } from "@ai-sdk/anthropic";
@@ -60,18 +60,18 @@ interface AssetCertificationWaitOptions {
60
60
 
61
61
  declare const NEXRA_MEDIA_API_VERSION: 1;
62
62
  /** Catalog-level generation taxonomy. Text keeps its native endpoint protocols. */
63
- declare const NEXRA_GENERATION_OPERATIONS: readonly ["text.generate", "image.generate", "video.generate", "audio.generate", "image.upscale", "video.upscale"];
63
+ declare const NEXRA_GENERATION_OPERATIONS: readonly ["text.generate", "image.generate", "video.generate", "audio.generate", "image.upscale", "video.upscale", "video.depth", "video.segment"];
64
64
  type NexraGenerationOperation = (typeof NEXRA_GENERATION_OPERATIONS)[number];
65
- declare const NEXRA_MEDIA_OPERATIONS: readonly ["image.generate", "video.generate", "audio.generate", "image.upscale", "video.upscale"];
65
+ declare const NEXRA_MEDIA_OPERATIONS: readonly ["image.generate", "video.generate", "audio.generate", "image.upscale", "video.upscale", "video.depth", "video.segment"];
66
66
  type NexraMediaOperation = (typeof NEXRA_MEDIA_OPERATIONS)[number];
67
- declare const NEXRA_PUBLISHED_MEDIA_OPERATIONS: readonly ["image.generate", "video.generate", "audio.generate", "image.upscale", "video.upscale"];
67
+ declare const NEXRA_PUBLISHED_MEDIA_OPERATIONS: readonly ["image.generate", "video.generate", "audio.generate", "image.upscale", "video.upscale", "video.depth", "video.segment"];
68
68
  type NexraPublishedMediaOperation = (typeof NEXRA_PUBLISHED_MEDIA_OPERATIONS)[number];
69
- declare const NEXRA_MEDIA_FEATURES: readonly ["text-to-image", "image-to-image", "image-reference", "image-edit", "image-inpaint", "image-control", "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", "tts", "music", "sfx", "voice-reference", "voice-design", "scale-factor", "target-resolution"];
69
+ declare const NEXRA_MEDIA_FEATURES: readonly ["text-to-image", "image-to-image", "image-reference", "image-edit", "image-inpaint", "image-control", "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", "tts", "music", "sfx", "voice-reference", "voice-design", "scale-factor", "target-resolution", "video-depth", "video-segment"];
70
70
  type NexraMediaFeature = (typeof NEXRA_MEDIA_FEATURES)[number];
71
71
  /** JSON wire locator. SDK-only Blob/File support is normalized into one of these forms. */
72
72
  type NexraMediaSource = string | AssetReference;
73
73
  type NexraTextRole = "prompt" | "negative_prompt" | "script" | "lyrics";
74
- type NexraImageRole = "source" | "reference" | "first_frame" | "last_frame" | "mask" | "control" | "subject" | "background";
74
+ type NexraImageRole = "source" | "reference" | "first_frame" | "middle_frame" | "last_frame" | "mask" | "control" | "subject" | "background";
75
75
  type NexraVideoRole = "source" | "reference" | "edit" | "extend";
76
76
  type NexraAudioRole = "source" | "reference" | "voice_reference";
77
77
  type NexraTextContentPart = Readonly<{
@@ -98,13 +98,20 @@ type NexraVideoContentPart = Readonly<{
98
98
  type: "video";
99
99
  source: NexraMediaSource;
100
100
  role?: NexraVideoRole;
101
+ name?: string;
101
102
  }>;
102
103
  type NexraAudioContentPart = Readonly<{
103
104
  type: "audio";
104
105
  source: NexraMediaSource;
105
106
  role?: NexraAudioRole;
106
107
  }>;
107
- type NexraMediaContentPart = NexraTextContentPart | NexraImageContentPart | NexraVideoContentPart | NexraAudioContentPart;
108
+ type NexraResourceContentPart = Readonly<{
109
+ type: "resource";
110
+ resource: "element" | "voice";
111
+ source: string;
112
+ name: string;
113
+ }>;
114
+ type NexraMediaContentPart = NexraResourceContentPart | NexraTextContentPart | NexraImageContentPart | NexraVideoContentPart | NexraAudioContentPart;
108
115
  type NexraDraftContentPart = Readonly<{
109
116
  type: "draft_task";
110
117
  draft_task: Readonly<{
@@ -197,12 +204,22 @@ type NexraVideoUpscaleInput = Readonly<{
197
204
  vid: string;
198
205
  content?: never;
199
206
  }>);
207
+ type NexraVideoDepthInput = Readonly<{
208
+ content: readonly [NexraVideoContentPart];
209
+ resolution?: string;
210
+ }>;
211
+ type NexraVideoSegmentInput = Readonly<{
212
+ content: readonly [NexraVideoContentPart, NexraTextContentPart] | readonly [NexraTextContentPart, NexraVideoContentPart];
213
+ resolution?: string;
214
+ }>;
200
215
  type NexraMediaInputByOperation = Readonly<{
201
216
  "image.generate": NexraImageGenerateInput;
202
217
  "video.generate": NexraVideoGenerateInput;
203
218
  "audio.generate": NexraAudioGenerateInput;
204
219
  "image.upscale": NexraImageUpscaleInput;
205
220
  "video.upscale": NexraVideoUpscaleInput;
221
+ "video.depth": NexraVideoDepthInput;
222
+ "video.segment": NexraVideoSegmentInput;
206
223
  }>;
207
224
  type NexraMediaKind = "image" | "video" | "audio";
208
225
  type NexraMediaInputSlot = Readonly<{
@@ -288,6 +305,18 @@ declare const NEXRA_MEDIA_OPERATION_DEFINITIONS: readonly [{
288
305
  readonly outputKind: "video";
289
306
  readonly features: readonly ["scale-factor", "target-resolution"];
290
307
  readonly parameterKeys: readonly ["scale", "resolution", "output_format", "preserve_details"];
308
+ }, {
309
+ readonly operation: "video.depth";
310
+ readonly status: "active";
311
+ readonly outputKind: "video";
312
+ readonly features: readonly ["video-depth"];
313
+ readonly parameterKeys: readonly ["resolution"];
314
+ }, {
315
+ readonly operation: "video.segment";
316
+ readonly status: "active";
317
+ readonly outputKind: "video";
318
+ readonly features: readonly ["video-segment"];
319
+ readonly parameterKeys: readonly ["resolution"];
291
320
  }];
292
321
  declare const NEXRA_MEDIA_INPUT_SCHEMAS: Readonly<Record<NexraPublishedMediaOperation, JsonObject>>;
293
322
  declare function nexraMediaInputSchema(operation: NexraMediaOperation): JsonObject | undefined;
@@ -296,4 +325,4 @@ declare function nexraMediaOperationForMode(mode: string): NexraPublishedMediaOp
296
325
  /** Narrow the shared category vocabulary for one Experience Center input mode. */
297
326
  declare function nexraMediaInputSchemaForMode(mode: string): JsonObject | undefined;
298
327
 
299
- export { type AssetImportRequest as A, type NexraMediaInputMode as B, type NexraMediaInputSlot as C, type NexraMediaKind as D, type NexraMediaOperation as E, type NexraMediaOperationDefinition as F, type NexraMediaParameter as G, type NexraMediaParameterConstraint as H, type NexraMediaSource as I, type NexraPublishedMediaOperation as J, type NexraTextContentPart as K, type NexraVideoContentPart as L, MEDIA_KINDS as M, type NexraImageLayer as N, type NexraVideoGenerateInput as O, type NexraVideoKeyframeContentPart as P, type NexraVideoUpscaleInput as Q, isNexraMediaInput as R, nexraMediaInputSchema as S, nexraMediaInputSchemaForMode as T, nexraMediaOperationForMode as U, 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 NexraImageLayerDecompositionOutput as g, type AssetCertificationRequest as h, type AssetCertification as i, type AssetCertificationWaitOptions as j, NEXRA_GENERATION_OPERATIONS as k, NEXRA_MEDIA_API_VERSION as l, NEXRA_MEDIA_FEATURES as m, NEXRA_MEDIA_INPUT_SCHEMAS as n, NEXRA_MEDIA_OPERATIONS as o, NEXRA_MEDIA_OPERATION_DEFINITIONS as p, NEXRA_PUBLISHED_MEDIA_OPERATIONS as q, type NexraAudioContentPart as r, type NexraAudioGenerateInput as s, type NexraGenerationOperation as t, type NexraImageContentPart as u, type NexraImageGenerateInput as v, type NexraImageUpscaleInput as w, type NexraMediaContentPart as x, type NexraMediaFeature as y, type NexraMediaInputByOperation as z };
328
+ export { type AssetImportRequest as A, type NexraMediaInputMode as B, type NexraMediaInputSlot as C, type NexraMediaKind as D, type NexraMediaOperation as E, type NexraMediaOperationDefinition as F, type NexraMediaParameter as G, type NexraMediaParameterConstraint as H, type NexraMediaSource as I, type NexraPublishedMediaOperation as J, type NexraResourceContentPart as K, type NexraTextContentPart as L, MEDIA_KINDS as M, type NexraImageLayer as N, type NexraVideoContentPart as O, type NexraVideoDepthInput as P, type NexraVideoGenerateInput as Q, type NexraVideoKeyframeContentPart as R, type NexraVideoUpscaleInput as S, isNexraMediaInput as T, nexraMediaInputSchema as U, nexraMediaInputSchemaForMode as V, nexraMediaOperationForMode as W, 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 NexraImageLayerDecompositionOutput as g, type AssetCertificationRequest as h, type AssetCertification as i, type AssetCertificationWaitOptions as j, NEXRA_GENERATION_OPERATIONS as k, NEXRA_MEDIA_API_VERSION as l, NEXRA_MEDIA_FEATURES as m, NEXRA_MEDIA_INPUT_SCHEMAS as n, NEXRA_MEDIA_OPERATIONS as o, NEXRA_MEDIA_OPERATION_DEFINITIONS as p, NEXRA_PUBLISHED_MEDIA_OPERATIONS as q, type NexraAudioContentPart as r, type NexraAudioGenerateInput as s, type NexraGenerationOperation as t, type NexraImageContentPart as u, type NexraImageGenerateInput as v, type NexraImageUpscaleInput as w, type NexraMediaContentPart as x, type NexraMediaFeature as y, type NexraMediaInputByOperation as z };
@@ -109,6 +109,8 @@ interface TaskModelSummary {
109
109
  }
110
110
  interface TaskModel extends TaskModelSummary {
111
111
  description?: string;
112
+ /** Code-owned contracts for documentation; endpoints remains executable supply only. */
113
+ documentedEndpoints?: ModelEndpointSummary[];
112
114
  regions: string[];
113
115
  metadata?: JsonObject;
114
116
  /** Public list and customer-facing sale prices. Channel costs are never exposed here. */
package/dist/media.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { k as NEXRA_GENERATION_OPERATIONS, l as NEXRA_MEDIA_API_VERSION, m as NEXRA_MEDIA_FEATURES, n as NEXRA_MEDIA_INPUT_SCHEMAS, o as NEXRA_MEDIA_OPERATIONS, p as NEXRA_MEDIA_OPERATION_DEFINITIONS, q as NEXRA_PUBLISHED_MEDIA_OPERATIONS, r as NexraAudioContentPart, s as NexraAudioGenerateInput, t as NexraGenerationOperation, u as NexraImageContentPart, v as NexraImageGenerateInput, N as NexraImageLayer, g as NexraImageLayerDecompositionOutput, w as NexraImageUpscaleInput, x as NexraMediaContentPart, y as NexraMediaFeature, z as NexraMediaInputByOperation, B as NexraMediaInputMode, C as NexraMediaInputSlot, D as NexraMediaKind, E as NexraMediaOperation, F as NexraMediaOperationDefinition, G as NexraMediaParameter, H as NexraMediaParameterConstraint, I as NexraMediaSource, J as NexraPublishedMediaOperation, K as NexraTextContentPart, L as NexraVideoContentPart, O as NexraVideoGenerateInput, P as NexraVideoKeyframeContentPart, Q as NexraVideoUpscaleInput, R as isNexraMediaInput, S as nexraMediaInputSchema, T as nexraMediaInputSchemaForMode, U as nexraMediaOperationForMode } from './media-CwGmG5qB.js';
1
+ export { k as NEXRA_GENERATION_OPERATIONS, l as NEXRA_MEDIA_API_VERSION, m as NEXRA_MEDIA_FEATURES, n as NEXRA_MEDIA_INPUT_SCHEMAS, o as NEXRA_MEDIA_OPERATIONS, p as NEXRA_MEDIA_OPERATION_DEFINITIONS, q as NEXRA_PUBLISHED_MEDIA_OPERATIONS, r as NexraAudioContentPart, s as NexraAudioGenerateInput, t as NexraGenerationOperation, u as NexraImageContentPart, v as NexraImageGenerateInput, N as NexraImageLayer, g as NexraImageLayerDecompositionOutput, w as NexraImageUpscaleInput, x as NexraMediaContentPart, y as NexraMediaFeature, z as NexraMediaInputByOperation, B as NexraMediaInputMode, C as NexraMediaInputSlot, D as NexraMediaKind, E as NexraMediaOperation, F as NexraMediaOperationDefinition, G as NexraMediaParameter, H as NexraMediaParameterConstraint, I as NexraMediaSource, J as NexraPublishedMediaOperation, K as NexraResourceContentPart, L as NexraTextContentPart, O as NexraVideoContentPart, P as NexraVideoDepthInput, Q as NexraVideoGenerateInput, R as NexraVideoKeyframeContentPart, S as NexraVideoUpscaleInput, T as isNexraMediaInput, U as nexraMediaInputSchema, V as nexraMediaInputSchemaForMode, W as nexraMediaOperationForMode } from './media-Co8S2qEM.js';
2
2
  import './json-Cz0MkWQn.js';
package/dist/media.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  nexraMediaInputSchema,
11
11
  nexraMediaInputSchemaForMode,
12
12
  nexraMediaOperationForMode
13
- } from "./chunk-FEACXUHZ.js";
13
+ } from "./chunk-NR4EWD3X.js";
14
14
  export {
15
15
  NEXRA_GENERATION_OPERATIONS,
16
16
  NEXRA_MEDIA_API_VERSION,
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, N as NexraImageLayer, g as NexraImageLayerDecompositionOutput } from './media-CwGmG5qB.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-KwQh1O8Y.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-B09HqQJJ.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, h as AssetCertificationRequest, i as AssetCertification, j as AssetCertificationWaitOptions } from './media-CwGmG5qB.js';
2
- import { H as HttpTransport, p as NexraSettlement } from './media-geometry-KwQh1O8Y.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
 
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byte_fluffy/nexra-sdk",
3
- "version": "0.1.0-alpha.45",
3
+ "version": "0.1.0-alpha.46.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "sideEffects": false,