@byte_fluffy/nexra-sdk 0.1.0-alpha.42 → 0.1.0-alpha.44

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/catalog.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  listModelSpecs,
10
10
  projectMediaGeometry,
11
11
  resolveNexraLanguageReasoning
12
- } from "./chunk-QPUI7EN7.js";
12
+ } from "./chunk-JJD32I64.js";
13
13
  import "./chunk-ESPUF2D4.js";
14
14
  export {
15
15
  CatalogClient,
@@ -2900,6 +2900,12 @@ var image_generated_default = [
2900
2900
  "x-ui": {
2901
2901
  order: 11
2902
2902
  }
2903
+ },
2904
+ enable_hdr: {
2905
+ type: "boolean"
2906
+ },
2907
+ enable_wb: {
2908
+ type: "boolean"
2903
2909
  }
2904
2910
  },
2905
2911
  required: [
@@ -32808,6 +32814,21 @@ var video_generated_default = [
32808
32814
  order: 0
32809
32815
  }
32810
32816
  },
32817
+ vid: {
32818
+ type: "string",
32819
+ minLength: 1
32820
+ },
32821
+ config: {
32822
+ type: "string",
32823
+ enum: [
32824
+ "common",
32825
+ "ugc",
32826
+ "short_series",
32827
+ "aigc",
32828
+ "old_film"
32829
+ ],
32830
+ default: "common"
32831
+ },
32811
32832
  source_duration: {
32812
32833
  type: "number",
32813
32834
  exclusiveMinimum: 0,
@@ -32825,10 +32846,27 @@ var video_generated_default = [
32825
32846
  }
32826
32847
  },
32827
32848
  required: [
32828
- "content",
32829
32849
  "source_duration"
32830
32850
  ],
32831
- additionalProperties: false
32851
+ additionalProperties: false,
32852
+ oneOf: [
32853
+ {
32854
+ properties: {
32855
+ content: {}
32856
+ },
32857
+ required: [
32858
+ "content"
32859
+ ]
32860
+ },
32861
+ {
32862
+ properties: {
32863
+ vid: {}
32864
+ },
32865
+ required: [
32866
+ "vid"
32867
+ ]
32868
+ }
32869
+ ]
32832
32870
  },
32833
32871
  outputSchema: {},
32834
32872
  metering: {
@@ -49274,10 +49312,9 @@ var video_generated_default = [
49274
49312
  "9:16",
49275
49313
  "4:5",
49276
49314
  "5:4",
49277
- "1:1",
49278
- "auto"
49315
+ "1:1"
49279
49316
  ],
49280
- default: "auto",
49317
+ default: "16:9",
49281
49318
  title: "\u753B\u9762\u6BD4\u4F8B",
49282
49319
  "x-ui": {
49283
49320
  order: 10,
@@ -55008,7 +55045,7 @@ var NexraWaitTimeoutError = class extends Error {
55008
55045
  };
55009
55046
 
55010
55047
  // src/generated/version.generated.ts
55011
- var SDK_VERSION = "0.1.0-alpha.42";
55048
+ var SDK_VERSION = "0.1.0-alpha.44";
55012
55049
 
55013
55050
  // src/transport.ts
55014
55051
  var DEFAULT_BASE_URL = "https://api.nexra-ai.com/v1";
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  projectMediaGeometry,
21
21
  queryString,
22
22
  sleep
23
- } from "./chunk-QPUI7EN7.js";
23
+ } from "./chunk-JJD32I64.js";
24
24
  import {
25
25
  MEDIA_KINDS,
26
26
  TASK_STATUSES,
package/dist/language.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  jsonBody,
7
7
  parseServerSentEvents,
8
8
  resolveNexraLanguageReasoning
9
- } from "./chunk-QPUI7EN7.js";
9
+ } from "./chunk-JJD32I64.js";
10
10
  import {
11
11
  isPublicErrorCode,
12
12
  publicErrorMessage,
package/dist/media.d.ts CHANGED
@@ -99,6 +99,8 @@ type NexraAudioGenerateInput = Readonly<{
99
99
  }>;
100
100
  type NexraImageUpscaleInput = Readonly<{
101
101
  content: readonly [NexraImageContentPart];
102
+ enable_hdr?: boolean;
103
+ enable_wb?: boolean;
102
104
  scale?: number;
103
105
  resolution?: string;
104
106
  output_format?: string;
@@ -106,12 +108,18 @@ type NexraImageUpscaleInput = Readonly<{
106
108
  }>;
107
109
  type NexraVideoUpscaleInput = Readonly<{
108
110
  source_duration: number;
109
- content: readonly [NexraVideoContentPart];
111
+ config?: string;
110
112
  scale?: number;
111
113
  resolution?: string;
112
114
  output_format?: string;
113
115
  preserve_details?: boolean;
114
- }>;
116
+ }> & (Readonly<{
117
+ content: readonly [NexraVideoContentPart];
118
+ vid?: never;
119
+ }> | Readonly<{
120
+ vid: string;
121
+ content?: never;
122
+ }>);
115
123
  type NexraMediaInputByOperation = Readonly<{
116
124
  "image.generate": NexraImageGenerateInput;
117
125
  "video.generate": NexraVideoGenerateInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byte_fluffy/nexra-sdk",
3
- "version": "0.1.0-alpha.42",
3
+ "version": "0.1.0-alpha.44",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "sideEffects": false,