@byte_fluffy/nexra-sdk 0.1.0-alpha.45 → 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.
@@ -2,7 +2,7 @@ import {
2
2
  normalizePublicErrorInput,
3
3
  pickPublicErrorFields,
4
4
  sortRatioDisplayOrder
5
- } from "./chunk-FEACXUHZ.js";
5
+ } from "./chunk-LXR3MEF3.js";
6
6
 
7
7
  // src/catalog/generated/audio.generated.json
8
8
  var audio_generated_default = [
@@ -32824,6 +32824,1365 @@ var language_generated_default = [
32824
32824
 
32825
32825
  // src/catalog/generated/video.generated.json
32826
32826
  var video_generated_default = [
32827
+ {
32828
+ id: "depth-anything/video-depth-anything-small",
32829
+ contractVersion: 1,
32830
+ developer: "depth-anything",
32831
+ displayName: "Video Depth Anything Small",
32832
+ summary: "Extract temporally consistent grayscale depth maps from a video while preserving its audio.",
32833
+ kind: "video",
32834
+ family: "Video Depth Anything",
32835
+ versionLabel: "Small",
32836
+ aliases: [],
32837
+ capabilities: {
32838
+ inputModalities: [
32839
+ "video"
32840
+ ],
32841
+ outputModalities: [
32842
+ "video"
32843
+ ],
32844
+ inputModes: [
32845
+ "video-depth"
32846
+ ],
32847
+ features: [
32848
+ "video-depth"
32849
+ ]
32850
+ },
32851
+ operations: [
32852
+ {
32853
+ operation: "video.depth",
32854
+ inputModalities: [
32855
+ "video"
32856
+ ],
32857
+ outputModalities: [
32858
+ "video"
32859
+ ],
32860
+ inputSchema: {
32861
+ $schema: "https://json-schema.org/draft/2020-12/schema",
32862
+ type: "object",
32863
+ properties: {
32864
+ content: {
32865
+ type: "array",
32866
+ minItems: 1,
32867
+ maxItems: 1,
32868
+ items: {
32869
+ oneOf: [
32870
+ {
32871
+ type: "object",
32872
+ properties: {
32873
+ type: {
32874
+ const: "video"
32875
+ },
32876
+ source: {
32877
+ oneOf: [
32878
+ {
32879
+ type: "string",
32880
+ minLength: 1,
32881
+ pattern: "^https://",
32882
+ maxLength: 4096
32883
+ },
32884
+ {
32885
+ type: "object",
32886
+ properties: {
32887
+ assetId: {
32888
+ type: "string",
32889
+ minLength: 1
32890
+ }
32891
+ },
32892
+ required: [
32893
+ "assetId"
32894
+ ],
32895
+ additionalProperties: false
32896
+ }
32897
+ ]
32898
+ },
32899
+ role: {
32900
+ type: "string",
32901
+ enum: [
32902
+ "source"
32903
+ ]
32904
+ }
32905
+ },
32906
+ required: [
32907
+ "type",
32908
+ "source",
32909
+ "role"
32910
+ ],
32911
+ additionalProperties: false
32912
+ }
32913
+ ]
32914
+ },
32915
+ "x-ui": {
32916
+ control: "content-parts",
32917
+ order: 0
32918
+ }
32919
+ },
32920
+ resolution: {
32921
+ type: "string",
32922
+ enum: [
32923
+ "480p",
32924
+ "720p"
32925
+ ],
32926
+ default: "720p",
32927
+ description: "Limit the source's long edge to 1280 pixels, then apply scale 2/3 at 480p or 1 at 720p. Output dimensions are rounded to even pixels.",
32928
+ title: "\u5206\u8FA8\u7387",
32929
+ "x-ui": {
32930
+ order: 10
32931
+ }
32932
+ }
32933
+ },
32934
+ required: [
32935
+ "content"
32936
+ ],
32937
+ additionalProperties: false
32938
+ },
32939
+ outputSchema: {},
32940
+ metering: {
32941
+ schemaVersion: 1,
32942
+ kind: "non_token",
32943
+ metrics: [
32944
+ {
32945
+ metric: "requests",
32946
+ requirement: "required"
32947
+ }
32948
+ ]
32949
+ }
32950
+ }
32951
+ ],
32952
+ endpoints: []
32953
+ },
32954
+ {
32955
+ id: "meta/sam-3.1",
32956
+ contractVersion: 1,
32957
+ developer: "meta",
32958
+ displayName: "SAM 3.1",
32959
+ summary: "Segment video objects by description or positive/negative points. Preview one frame, then track one selected object and export a mask, tracking preview and transparent foreground. Up to 30 seconds / 900 frames.",
32960
+ kind: "video",
32961
+ family: "Segment Anything",
32962
+ versionLabel: "3.1",
32963
+ aliases: [],
32964
+ capabilities: {
32965
+ inputModalities: [
32966
+ "text",
32967
+ "video"
32968
+ ],
32969
+ outputModalities: [
32970
+ "image",
32971
+ "video"
32972
+ ],
32973
+ inputModes: [
32974
+ "video-segment"
32975
+ ],
32976
+ features: [
32977
+ "video-segment"
32978
+ ]
32979
+ },
32980
+ operations: [
32981
+ {
32982
+ operation: "video.segment",
32983
+ inputModalities: [
32984
+ "text",
32985
+ "video"
32986
+ ],
32987
+ outputModalities: [
32988
+ "image",
32989
+ "video"
32990
+ ],
32991
+ inputSchema: {
32992
+ $schema: "https://json-schema.org/draft/2020-12/schema",
32993
+ type: "object",
32994
+ properties: {
32995
+ content: {
32996
+ type: "array",
32997
+ minItems: 1,
32998
+ maxItems: 2,
32999
+ items: {
33000
+ oneOf: [
33001
+ {
33002
+ type: "object",
33003
+ properties: {
33004
+ type: {
33005
+ const: "text"
33006
+ },
33007
+ text: {
33008
+ type: "string",
33009
+ minLength: 1,
33010
+ maxLength: 200,
33011
+ pattern: "\\S",
33012
+ title: "\u76EE\u6807\u63CF\u8FF0",
33013
+ description: "Describe the objects to segment and track, such as person or roller coaster."
33014
+ },
33015
+ role: {
33016
+ type: "string",
33017
+ enum: [
33018
+ "prompt"
33019
+ ]
33020
+ }
33021
+ },
33022
+ required: [
33023
+ "type",
33024
+ "text",
33025
+ "role"
33026
+ ],
33027
+ additionalProperties: false
33028
+ },
33029
+ {
33030
+ type: "object",
33031
+ properties: {
33032
+ type: {
33033
+ const: "video"
33034
+ },
33035
+ source: {
33036
+ oneOf: [
33037
+ {
33038
+ type: "string",
33039
+ minLength: 1,
33040
+ pattern: "^https://",
33041
+ maxLength: 4096
33042
+ },
33043
+ {
33044
+ type: "object",
33045
+ properties: {
33046
+ assetId: {
33047
+ type: "string",
33048
+ minLength: 1
33049
+ }
33050
+ },
33051
+ required: [
33052
+ "assetId"
33053
+ ],
33054
+ additionalProperties: false
33055
+ }
33056
+ ]
33057
+ },
33058
+ role: {
33059
+ type: "string",
33060
+ enum: [
33061
+ "source"
33062
+ ]
33063
+ }
33064
+ },
33065
+ required: [
33066
+ "type",
33067
+ "source",
33068
+ "role"
33069
+ ],
33070
+ additionalProperties: false
33071
+ }
33072
+ ]
33073
+ },
33074
+ "x-ui": {
33075
+ control: "content-parts",
33076
+ order: 0
33077
+ },
33078
+ allOf: [
33079
+ {
33080
+ contains: {
33081
+ type: "object",
33082
+ properties: {
33083
+ type: {
33084
+ const: "video"
33085
+ }
33086
+ },
33087
+ required: [
33088
+ "type"
33089
+ ]
33090
+ },
33091
+ minContains: 1,
33092
+ maxContains: 1
33093
+ },
33094
+ {
33095
+ contains: {
33096
+ type: "object",
33097
+ properties: {
33098
+ type: {
33099
+ const: "text"
33100
+ }
33101
+ },
33102
+ required: [
33103
+ "type"
33104
+ ]
33105
+ },
33106
+ minContains: 0,
33107
+ maxContains: 1
33108
+ }
33109
+ ],
33110
+ description: "One source video up to 30 seconds / 900 frames, with either an object description or normalized point prompts. Point preview returns two PNGs; tracking also returns a transparent foreground WebM."
33111
+ },
33112
+ resolution: {
33113
+ type: "string",
33114
+ enum: [
33115
+ "480p",
33116
+ "720p"
33117
+ ],
33118
+ default: "720p",
33119
+ description: "Limit the source's long edge to 1280 pixels, then apply scale 2/3 at 480p or 1 at 720p. Output dimensions are rounded to even pixels.",
33120
+ title: "\u5206\u8FA8\u7387",
33121
+ "x-ui": {
33122
+ order: 10
33123
+ }
33124
+ },
33125
+ mode: {
33126
+ type: "string",
33127
+ enum: [
33128
+ "preview",
33129
+ "track"
33130
+ ],
33131
+ description: "Point preview on one frame, or selected-object tracking across the clip. Omitted mode defaults to preview only when point prompts are supplied."
33132
+ },
33133
+ preview_time_ms: {
33134
+ type: "integer",
33135
+ minimum: 0,
33136
+ exclusiveMaximum: 3e4,
33137
+ description: "A prompted frame time to preview, in milliseconds."
33138
+ },
33139
+ prompts: {
33140
+ type: "array",
33141
+ minItems: 1,
33142
+ maxItems: 16,
33143
+ items: {
33144
+ type: "object",
33145
+ additionalProperties: false,
33146
+ required: [
33147
+ "time_ms",
33148
+ "points"
33149
+ ],
33150
+ properties: {
33151
+ time_ms: {
33152
+ type: "integer",
33153
+ minimum: 0,
33154
+ exclusiveMaximum: 3e4
33155
+ },
33156
+ points: {
33157
+ type: "array",
33158
+ minItems: 1,
33159
+ maxItems: 32,
33160
+ items: {
33161
+ type: "object",
33162
+ additionalProperties: false,
33163
+ required: [
33164
+ "x",
33165
+ "y",
33166
+ "label"
33167
+ ],
33168
+ properties: {
33169
+ x: {
33170
+ type: "number",
33171
+ minimum: 0,
33172
+ maximum: 1
33173
+ },
33174
+ y: {
33175
+ type: "number",
33176
+ minimum: 0,
33177
+ maximum: 1
33178
+ },
33179
+ label: {
33180
+ type: "integer",
33181
+ enum: [
33182
+ 0,
33183
+ 1
33184
+ ],
33185
+ description: "1 includes foreground; 0 excludes background."
33186
+ }
33187
+ }
33188
+ },
33189
+ contains: {
33190
+ type: "object",
33191
+ properties: {
33192
+ label: {
33193
+ const: 1
33194
+ }
33195
+ },
33196
+ required: [
33197
+ "label"
33198
+ ]
33199
+ },
33200
+ minContains: 1
33201
+ }
33202
+ }
33203
+ },
33204
+ description: "Unique frame times and normalized positive/negative points for one tracked object. Each frame requires a positive point."
33205
+ }
33206
+ },
33207
+ required: [
33208
+ "content"
33209
+ ],
33210
+ additionalProperties: false,
33211
+ oneOf: [
33212
+ {
33213
+ required: [
33214
+ "prompts",
33215
+ "preview_time_ms"
33216
+ ],
33217
+ properties: {
33218
+ content: {
33219
+ type: "array",
33220
+ minItems: 1,
33221
+ maxItems: 1
33222
+ }
33223
+ }
33224
+ },
33225
+ {
33226
+ not: {
33227
+ anyOf: [
33228
+ {
33229
+ required: [
33230
+ "mode"
33231
+ ]
33232
+ },
33233
+ {
33234
+ required: [
33235
+ "preview_time_ms"
33236
+ ]
33237
+ },
33238
+ {
33239
+ required: [
33240
+ "prompts"
33241
+ ]
33242
+ }
33243
+ ]
33244
+ },
33245
+ properties: {
33246
+ content: {
33247
+ type: "array",
33248
+ minItems: 2,
33249
+ maxItems: 2
33250
+ }
33251
+ }
33252
+ }
33253
+ ]
33254
+ },
33255
+ outputSchema: {
33256
+ type: "object",
33257
+ properties: {
33258
+ images: {
33259
+ type: "array",
33260
+ minItems: 2,
33261
+ maxItems: 2,
33262
+ prefixItems: [
33263
+ {
33264
+ type: "string",
33265
+ format: "uri",
33266
+ title: "Frame mask",
33267
+ "x-ui": {
33268
+ outputRole: "mask"
33269
+ }
33270
+ },
33271
+ {
33272
+ type: "string",
33273
+ format: "uri",
33274
+ title: "Selection overlay",
33275
+ "x-ui": {
33276
+ outputRole: "selection-overlay",
33277
+ defaultPreview: true
33278
+ }
33279
+ }
33280
+ ]
33281
+ },
33282
+ videos: {
33283
+ type: "array",
33284
+ minItems: 2,
33285
+ maxItems: 3,
33286
+ prefixItems: [
33287
+ {
33288
+ type: "string",
33289
+ format: "uri",
33290
+ title: "Segmentation mask",
33291
+ "x-ui": {
33292
+ outputRole: "mask"
33293
+ }
33294
+ },
33295
+ {
33296
+ type: "string",
33297
+ format: "uri",
33298
+ title: "Tracking preview",
33299
+ "x-ui": {
33300
+ outputRole: "tracking-preview",
33301
+ defaultPreview: true
33302
+ }
33303
+ },
33304
+ {
33305
+ type: "string",
33306
+ format: "uri",
33307
+ title: "Transparent foreground",
33308
+ "x-ui": {
33309
+ outputRole: "foreground"
33310
+ }
33311
+ }
33312
+ ]
33313
+ },
33314
+ metadata: {
33315
+ type: "object"
33316
+ }
33317
+ },
33318
+ anyOf: [
33319
+ {
33320
+ required: [
33321
+ "images"
33322
+ ]
33323
+ },
33324
+ {
33325
+ required: [
33326
+ "videos"
33327
+ ]
33328
+ }
33329
+ ],
33330
+ required: [
33331
+ "metadata"
33332
+ ],
33333
+ additionalProperties: false
33334
+ },
33335
+ metering: {
33336
+ schemaVersion: 1,
33337
+ kind: "non_token",
33338
+ metrics: [
33339
+ {
33340
+ metric: "requests",
33341
+ requirement: "required"
33342
+ }
33343
+ ]
33344
+ }
33345
+ }
33346
+ ],
33347
+ endpoints: []
33348
+ },
33349
+ {
33350
+ id: "kuaishou/kling-4.0",
33351
+ contractVersion: 1,
33352
+ developer: "kuaishou",
33353
+ displayName: "Kling 4.0",
33354
+ summary: "Generate, reference and edit video with keyframes, reusable elements and voices.",
33355
+ kind: "video",
33356
+ family: "Kling",
33357
+ versionLabel: "4.0",
33358
+ aliases: [
33359
+ "kling-4.0"
33360
+ ],
33361
+ capabilities: {
33362
+ inputModalities: [
33363
+ "text",
33364
+ "image",
33365
+ "video",
33366
+ "audio"
33367
+ ],
33368
+ outputModalities: [
33369
+ "video",
33370
+ "image",
33371
+ "audio"
33372
+ ],
33373
+ inputModes: [
33374
+ "text-to-video",
33375
+ "image-to-video",
33376
+ "video-to-video"
33377
+ ],
33378
+ features: [
33379
+ "first-frame",
33380
+ "first-last-frame",
33381
+ "reference-image",
33382
+ "reference-video",
33383
+ "voice-reference"
33384
+ ]
33385
+ },
33386
+ operations: [
33387
+ {
33388
+ operation: "video.generate",
33389
+ inputModalities: [
33390
+ "text",
33391
+ "image",
33392
+ "video",
33393
+ "audio"
33394
+ ],
33395
+ outputModalities: [
33396
+ "video"
33397
+ ],
33398
+ inputSchema: {
33399
+ $schema: "https://json-schema.org/draft/2020-12/schema",
33400
+ type: "object",
33401
+ properties: {
33402
+ content: {
33403
+ type: "array",
33404
+ minItems: 1,
33405
+ maxItems: 16,
33406
+ "x-ui": {
33407
+ media: {
33408
+ image: {
33409
+ maxItems: 10
33410
+ },
33411
+ video: {
33412
+ maxItems: 5
33413
+ },
33414
+ element: {
33415
+ maxItems: 7
33416
+ },
33417
+ voice: {
33418
+ maxItems: 3
33419
+ }
33420
+ },
33421
+ roleLimits: {
33422
+ first_frame: 1,
33423
+ last_frame: 1,
33424
+ base_video: 1
33425
+ },
33426
+ control: "content-parts",
33427
+ order: 0,
33428
+ defaultInputMode: "reference"
33429
+ },
33430
+ items: {
33431
+ oneOf: [
33432
+ {
33433
+ type: "object",
33434
+ properties: {
33435
+ type: {
33436
+ const: "text"
33437
+ },
33438
+ role: {
33439
+ const: "prompt"
33440
+ },
33441
+ text: {
33442
+ type: "string",
33443
+ minLength: 1,
33444
+ maxLength: 26e3
33445
+ }
33446
+ },
33447
+ required: [
33448
+ "type",
33449
+ "role",
33450
+ "text"
33451
+ ],
33452
+ additionalProperties: false
33453
+ },
33454
+ {
33455
+ type: "object",
33456
+ properties: {
33457
+ type: {
33458
+ const: "image"
33459
+ },
33460
+ role: {
33461
+ const: "first_frame"
33462
+ },
33463
+ source: {
33464
+ oneOf: [
33465
+ {
33466
+ type: "string",
33467
+ minLength: 1
33468
+ },
33469
+ {
33470
+ type: "object",
33471
+ properties: {
33472
+ assetId: {
33473
+ type: "string",
33474
+ minLength: 1
33475
+ }
33476
+ },
33477
+ required: [
33478
+ "assetId"
33479
+ ],
33480
+ additionalProperties: false
33481
+ }
33482
+ ]
33483
+ },
33484
+ name: {
33485
+ type: "string",
33486
+ minLength: 1
33487
+ }
33488
+ },
33489
+ required: [
33490
+ "type",
33491
+ "role",
33492
+ "source"
33493
+ ],
33494
+ additionalProperties: false
33495
+ },
33496
+ {
33497
+ type: "object",
33498
+ properties: {
33499
+ type: {
33500
+ const: "image"
33501
+ },
33502
+ role: {
33503
+ const: "middle_frame"
33504
+ },
33505
+ source: {
33506
+ oneOf: [
33507
+ {
33508
+ type: "string",
33509
+ minLength: 1
33510
+ },
33511
+ {
33512
+ type: "object",
33513
+ properties: {
33514
+ assetId: {
33515
+ type: "string",
33516
+ minLength: 1
33517
+ }
33518
+ },
33519
+ required: [
33520
+ "assetId"
33521
+ ],
33522
+ additionalProperties: false
33523
+ }
33524
+ ]
33525
+ },
33526
+ name: {
33527
+ type: "string",
33528
+ minLength: 1
33529
+ }
33530
+ },
33531
+ required: [
33532
+ "type",
33533
+ "role",
33534
+ "source"
33535
+ ],
33536
+ additionalProperties: false
33537
+ },
33538
+ {
33539
+ type: "object",
33540
+ properties: {
33541
+ type: {
33542
+ const: "image"
33543
+ },
33544
+ role: {
33545
+ const: "last_frame"
33546
+ },
33547
+ source: {
33548
+ oneOf: [
33549
+ {
33550
+ type: "string",
33551
+ minLength: 1
33552
+ },
33553
+ {
33554
+ type: "object",
33555
+ properties: {
33556
+ assetId: {
33557
+ type: "string",
33558
+ minLength: 1
33559
+ }
33560
+ },
33561
+ required: [
33562
+ "assetId"
33563
+ ],
33564
+ additionalProperties: false
33565
+ }
33566
+ ]
33567
+ },
33568
+ name: {
33569
+ type: "string",
33570
+ minLength: 1
33571
+ }
33572
+ },
33573
+ required: [
33574
+ "type",
33575
+ "role",
33576
+ "source"
33577
+ ],
33578
+ additionalProperties: false
33579
+ },
33580
+ {
33581
+ type: "object",
33582
+ properties: {
33583
+ type: {
33584
+ const: "image"
33585
+ },
33586
+ role: {
33587
+ const: "reference"
33588
+ },
33589
+ source: {
33590
+ oneOf: [
33591
+ {
33592
+ type: "string",
33593
+ minLength: 1
33594
+ },
33595
+ {
33596
+ type: "object",
33597
+ properties: {
33598
+ assetId: {
33599
+ type: "string",
33600
+ minLength: 1
33601
+ }
33602
+ },
33603
+ required: [
33604
+ "assetId"
33605
+ ],
33606
+ additionalProperties: false
33607
+ }
33608
+ ]
33609
+ },
33610
+ name: {
33611
+ type: "string",
33612
+ minLength: 1
33613
+ }
33614
+ },
33615
+ required: [
33616
+ "type",
33617
+ "role",
33618
+ "source"
33619
+ ],
33620
+ additionalProperties: false
33621
+ },
33622
+ {
33623
+ type: "object",
33624
+ properties: {
33625
+ type: {
33626
+ const: "video"
33627
+ },
33628
+ role: {
33629
+ const: "reference"
33630
+ },
33631
+ source: {
33632
+ oneOf: [
33633
+ {
33634
+ type: "string",
33635
+ minLength: 1
33636
+ },
33637
+ {
33638
+ type: "object",
33639
+ properties: {
33640
+ assetId: {
33641
+ type: "string",
33642
+ minLength: 1
33643
+ }
33644
+ },
33645
+ required: [
33646
+ "assetId"
33647
+ ],
33648
+ additionalProperties: false
33649
+ }
33650
+ ]
33651
+ },
33652
+ name: {
33653
+ type: "string",
33654
+ minLength: 1
33655
+ }
33656
+ },
33657
+ required: [
33658
+ "type",
33659
+ "role",
33660
+ "source"
33661
+ ],
33662
+ additionalProperties: false
33663
+ },
33664
+ {
33665
+ type: "object",
33666
+ properties: {
33667
+ type: {
33668
+ const: "video"
33669
+ },
33670
+ role: {
33671
+ const: "source"
33672
+ },
33673
+ source: {
33674
+ oneOf: [
33675
+ {
33676
+ type: "string",
33677
+ minLength: 1
33678
+ },
33679
+ {
33680
+ type: "object",
33681
+ properties: {
33682
+ assetId: {
33683
+ type: "string",
33684
+ minLength: 1
33685
+ }
33686
+ },
33687
+ required: [
33688
+ "assetId"
33689
+ ],
33690
+ additionalProperties: false
33691
+ }
33692
+ ]
33693
+ },
33694
+ name: {
33695
+ type: "string",
33696
+ minLength: 1
33697
+ }
33698
+ },
33699
+ required: [
33700
+ "type",
33701
+ "role",
33702
+ "source"
33703
+ ],
33704
+ additionalProperties: false
33705
+ },
33706
+ {
33707
+ type: "object",
33708
+ properties: {
33709
+ type: {
33710
+ const: "resource"
33711
+ },
33712
+ resource: {
33713
+ const: "element"
33714
+ },
33715
+ source: {
33716
+ type: "string",
33717
+ minLength: 1
33718
+ },
33719
+ name: {
33720
+ type: "string",
33721
+ minLength: 1
33722
+ }
33723
+ },
33724
+ required: [
33725
+ "type",
33726
+ "resource",
33727
+ "source",
33728
+ "name"
33729
+ ],
33730
+ additionalProperties: false
33731
+ },
33732
+ {
33733
+ type: "object",
33734
+ properties: {
33735
+ type: {
33736
+ const: "resource"
33737
+ },
33738
+ resource: {
33739
+ const: "voice"
33740
+ },
33741
+ source: {
33742
+ type: "string",
33743
+ minLength: 1
33744
+ },
33745
+ name: {
33746
+ type: "string",
33747
+ minLength: 1
33748
+ }
33749
+ },
33750
+ required: [
33751
+ "type",
33752
+ "resource",
33753
+ "source",
33754
+ "name"
33755
+ ],
33756
+ additionalProperties: false
33757
+ }
33758
+ ]
33759
+ },
33760
+ allOf: [
33761
+ {
33762
+ contains: {
33763
+ type: "object",
33764
+ properties: {
33765
+ type: {
33766
+ const: "image"
33767
+ }
33768
+ },
33769
+ required: [
33770
+ "type"
33771
+ ]
33772
+ },
33773
+ minContains: 0,
33774
+ maxContains: 10
33775
+ },
33776
+ {
33777
+ contains: {
33778
+ type: "object",
33779
+ properties: {
33780
+ type: {
33781
+ const: "video"
33782
+ }
33783
+ },
33784
+ required: [
33785
+ "type"
33786
+ ]
33787
+ },
33788
+ minContains: 0,
33789
+ maxContains: 5
33790
+ },
33791
+ {
33792
+ contains: {
33793
+ type: "object",
33794
+ properties: {
33795
+ type: {
33796
+ const: "resource"
33797
+ },
33798
+ resource: {
33799
+ const: "element"
33800
+ }
33801
+ },
33802
+ required: [
33803
+ "type",
33804
+ "resource"
33805
+ ]
33806
+ },
33807
+ minContains: 0,
33808
+ maxContains: 7
33809
+ },
33810
+ {
33811
+ contains: {
33812
+ type: "object",
33813
+ properties: {
33814
+ type: {
33815
+ const: "resource"
33816
+ },
33817
+ resource: {
33818
+ const: "voice"
33819
+ }
33820
+ },
33821
+ required: [
33822
+ "type",
33823
+ "resource"
33824
+ ]
33825
+ },
33826
+ minContains: 0,
33827
+ maxContains: 3
33828
+ },
33829
+ {
33830
+ contains: {
33831
+ type: "object",
33832
+ properties: {
33833
+ type: {
33834
+ const: "image"
33835
+ },
33836
+ role: {
33837
+ const: "first_frame"
33838
+ }
33839
+ },
33840
+ required: [
33841
+ "type",
33842
+ "role"
33843
+ ]
33844
+ },
33845
+ minContains: 0,
33846
+ maxContains: 1
33847
+ },
33848
+ {
33849
+ contains: {
33850
+ type: "object",
33851
+ properties: {
33852
+ type: {
33853
+ const: "image"
33854
+ },
33855
+ role: {
33856
+ const: "last_frame"
33857
+ }
33858
+ },
33859
+ required: [
33860
+ "type",
33861
+ "role"
33862
+ ]
33863
+ },
33864
+ minContains: 0,
33865
+ maxContains: 1
33866
+ },
33867
+ {
33868
+ contains: {
33869
+ type: "object",
33870
+ properties: {
33871
+ type: {
33872
+ const: "video"
33873
+ },
33874
+ role: {
33875
+ const: "source"
33876
+ }
33877
+ },
33878
+ required: [
33879
+ "type",
33880
+ "role"
33881
+ ]
33882
+ },
33883
+ minContains: 0,
33884
+ maxContains: 1
33885
+ }
33886
+ ]
33887
+ },
33888
+ resolution: {
33889
+ type: "string",
33890
+ enum: [
33891
+ "720p",
33892
+ "1080p"
33893
+ ],
33894
+ default: "1080p"
33895
+ },
33896
+ duration: {
33897
+ anyOf: [
33898
+ {
33899
+ const: -1
33900
+ },
33901
+ {
33902
+ type: "integer",
33903
+ minimum: 3,
33904
+ maximum: 30,
33905
+ description: "Omit to allow prompt/source duration inference; otherwise 3\u201330 seconds."
33906
+ }
33907
+ ],
33908
+ "x-ui": {
33909
+ control: "range-with-auto",
33910
+ autoValue: -1,
33911
+ minimum: 3,
33912
+ maximum: 30
33913
+ }
33914
+ },
33915
+ aspect_ratio: {
33916
+ type: "string",
33917
+ enum: [
33918
+ "21:9",
33919
+ "16:9",
33920
+ "9:16",
33921
+ "1:1",
33922
+ "adaptive"
33923
+ ]
33924
+ },
33925
+ watermark: {
33926
+ type: "boolean",
33927
+ const: false,
33928
+ "x-ui": {
33929
+ hidden: true
33930
+ }
33931
+ }
33932
+ },
33933
+ required: [
33934
+ "content"
33935
+ ],
33936
+ additionalProperties: false,
33937
+ allOf: [
33938
+ {
33939
+ if: {
33940
+ anyOf: [
33941
+ {
33942
+ required: [
33943
+ "aspect_ratio"
33944
+ ]
33945
+ },
33946
+ {
33947
+ properties: {
33948
+ content: {
33949
+ type: "array",
33950
+ contains: {
33951
+ anyOf: [
33952
+ {
33953
+ type: "object",
33954
+ properties: {
33955
+ type: {
33956
+ const: "image"
33957
+ },
33958
+ role: {
33959
+ const: "reference"
33960
+ },
33961
+ source: {
33962
+ oneOf: [
33963
+ {
33964
+ type: "string",
33965
+ minLength: 1
33966
+ },
33967
+ {
33968
+ type: "object",
33969
+ properties: {
33970
+ assetId: {
33971
+ type: "string",
33972
+ minLength: 1
33973
+ }
33974
+ },
33975
+ required: [
33976
+ "assetId"
33977
+ ],
33978
+ additionalProperties: false
33979
+ }
33980
+ ]
33981
+ },
33982
+ name: {
33983
+ type: "string",
33984
+ minLength: 1
33985
+ }
33986
+ },
33987
+ required: [
33988
+ "type",
33989
+ "role",
33990
+ "source"
33991
+ ],
33992
+ additionalProperties: false
33993
+ },
33994
+ {
33995
+ type: "object",
33996
+ properties: {
33997
+ type: {
33998
+ const: "video"
33999
+ },
34000
+ role: {
34001
+ const: "reference"
34002
+ },
34003
+ source: {
34004
+ oneOf: [
34005
+ {
34006
+ type: "string",
34007
+ minLength: 1
34008
+ },
34009
+ {
34010
+ type: "object",
34011
+ properties: {
34012
+ assetId: {
34013
+ type: "string",
34014
+ minLength: 1
34015
+ }
34016
+ },
34017
+ required: [
34018
+ "assetId"
34019
+ ],
34020
+ additionalProperties: false
34021
+ }
34022
+ ]
34023
+ },
34024
+ name: {
34025
+ type: "string",
34026
+ minLength: 1
34027
+ }
34028
+ },
34029
+ required: [
34030
+ "type",
34031
+ "role",
34032
+ "source"
34033
+ ],
34034
+ additionalProperties: false
34035
+ },
34036
+ {
34037
+ type: "object",
34038
+ properties: {
34039
+ type: {
34040
+ const: "video"
34041
+ },
34042
+ role: {
34043
+ const: "source"
34044
+ },
34045
+ source: {
34046
+ oneOf: [
34047
+ {
34048
+ type: "string",
34049
+ minLength: 1
34050
+ },
34051
+ {
34052
+ type: "object",
34053
+ properties: {
34054
+ assetId: {
34055
+ type: "string",
34056
+ minLength: 1
34057
+ }
34058
+ },
34059
+ required: [
34060
+ "assetId"
34061
+ ],
34062
+ additionalProperties: false
34063
+ }
34064
+ ]
34065
+ },
34066
+ name: {
34067
+ type: "string",
34068
+ minLength: 1
34069
+ }
34070
+ },
34071
+ required: [
34072
+ "type",
34073
+ "role",
34074
+ "source"
34075
+ ],
34076
+ additionalProperties: false
34077
+ },
34078
+ {
34079
+ type: "object",
34080
+ properties: {
34081
+ type: {
34082
+ const: "resource"
34083
+ },
34084
+ resource: {
34085
+ const: "element"
34086
+ },
34087
+ source: {
34088
+ type: "string",
34089
+ minLength: 1
34090
+ },
34091
+ name: {
34092
+ type: "string",
34093
+ minLength: 1
34094
+ }
34095
+ },
34096
+ required: [
34097
+ "type",
34098
+ "resource",
34099
+ "source",
34100
+ "name"
34101
+ ],
34102
+ additionalProperties: false
34103
+ },
34104
+ {
34105
+ type: "object",
34106
+ properties: {
34107
+ type: {
34108
+ const: "resource"
34109
+ },
34110
+ resource: {
34111
+ const: "voice"
34112
+ },
34113
+ source: {
34114
+ type: "string",
34115
+ minLength: 1
34116
+ },
34117
+ name: {
34118
+ type: "string",
34119
+ minLength: 1
34120
+ }
34121
+ },
34122
+ required: [
34123
+ "type",
34124
+ "resource",
34125
+ "source",
34126
+ "name"
34127
+ ],
34128
+ additionalProperties: false
34129
+ }
34130
+ ]
34131
+ }
34132
+ }
34133
+ },
34134
+ required: [
34135
+ "content"
34136
+ ]
34137
+ }
34138
+ ]
34139
+ },
34140
+ then: {
34141
+ properties: {
34142
+ content: {
34143
+ type: "array",
34144
+ contains: {
34145
+ type: "object",
34146
+ properties: {
34147
+ type: {
34148
+ const: "text"
34149
+ }
34150
+ },
34151
+ required: [
34152
+ "type"
34153
+ ]
34154
+ },
34155
+ minContains: 1,
34156
+ maxContains: 1
34157
+ }
34158
+ }
34159
+ }
34160
+ }
34161
+ ]
34162
+ },
34163
+ outputSchema: {},
34164
+ metering: {
34165
+ schemaVersion: 1,
34166
+ kind: "non_token",
34167
+ metrics: [
34168
+ {
34169
+ metric: "requests",
34170
+ requirement: "required"
34171
+ },
34172
+ {
34173
+ metric: "output_video_seconds",
34174
+ requirement: "required"
34175
+ },
34176
+ {
34177
+ metric: "input_video_seconds",
34178
+ requirement: "required"
34179
+ }
34180
+ ]
34181
+ }
34182
+ }
34183
+ ],
34184
+ endpoints: []
34185
+ },
32827
34186
  {
32828
34187
  id: "bytedance/video-super-resolution",
32829
34188
  contractVersion: 1,
@@ -49437,7 +50796,7 @@ var video_generated_default = [
49437
50796
  "5:4",
49438
50797
  "1:1"
49439
50798
  ],
49440
- default: "auto",
50799
+ default: "16:9",
49441
50800
  title: "\u753B\u9762\u6BD4\u4F8B",
49442
50801
  "x-ui": {
49443
50802
  order: 10,
@@ -55175,7 +56534,7 @@ var NexraWaitTimeoutError = class extends Error {
55175
56534
  };
55176
56535
 
55177
56536
  // src/generated/version.generated.ts
55178
- var SDK_VERSION = "0.1.0-alpha.45";
56537
+ var SDK_VERSION = "0.1.0-alpha.46";
55179
56538
 
55180
56539
  // src/transport.ts
55181
56540
  var DEFAULT_BASE_URL = "https://api.nexra-ai.com/v1";