@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 +1 -1
- package/dist/{chunk-QPUI7EN7.js → chunk-JJD32I64.js} +43 -6
- package/dist/index.js +1 -1
- package/dist/language.js +1 -1
- package/dist/media.d.ts +10 -2
- package/package.json +1 -1
package/dist/catalog.js
CHANGED
|
@@ -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: "
|
|
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.
|
|
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
package/dist/language.js
CHANGED
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
|
-
|
|
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;
|