@byte_fluffy/nexra-sdk 0.1.0-alpha.49 → 0.1.0-alpha.50

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-AO4HOLPJ.js";
12
+ } from "./chunk-WXPCZYOK.js";
13
13
  import "./chunk-BS3B6F7W.js";
14
14
  export {
15
15
  CatalogClient,
@@ -37231,6 +37231,471 @@ var language_generated_default = [
37231
37231
 
37232
37232
  // src/catalog/generated/video.generated.json
37233
37233
  var video_generated_default = [
37234
+ {
37235
+ id: "google/gemini-omni-1.2-flash",
37236
+ contractVersion: 1,
37237
+ developer: "google",
37238
+ displayName: "Gemini Omni 1.2 Flash",
37239
+ summary: "Generate and edit 3\u201315 second videos with synchronized audio at 360p, 720p, 1080p or 4K, with image and video references.",
37240
+ kind: "video",
37241
+ family: "Gemini Omni",
37242
+ aliases: [
37243
+ "gemini-omni-1.2-flash"
37244
+ ],
37245
+ capabilities: {
37246
+ inputModalities: [
37247
+ "text",
37248
+ "image",
37249
+ "video"
37250
+ ],
37251
+ outputModalities: [
37252
+ "video"
37253
+ ],
37254
+ inputModes: [
37255
+ "text-to-video",
37256
+ "image-to-video",
37257
+ "first-last-frame",
37258
+ "reference-to-video",
37259
+ "video-to-video"
37260
+ ],
37261
+ features: [
37262
+ "text-to-video",
37263
+ "image-to-video",
37264
+ "reference-to-video",
37265
+ "video-editing",
37266
+ "video-extension",
37267
+ "native-audio"
37268
+ ]
37269
+ },
37270
+ operations: [
37271
+ {
37272
+ operation: "video.generate",
37273
+ inputModalities: [
37274
+ "text",
37275
+ "image",
37276
+ "video"
37277
+ ],
37278
+ outputModalities: [
37279
+ "video"
37280
+ ],
37281
+ inputSchema: {
37282
+ $schema: "https://json-schema.org/draft/2020-12/schema",
37283
+ type: "object",
37284
+ properties: {
37285
+ content: {
37286
+ type: "array",
37287
+ minItems: 1,
37288
+ items: {
37289
+ oneOf: [
37290
+ {
37291
+ type: "object",
37292
+ properties: {
37293
+ type: {
37294
+ const: "text"
37295
+ },
37296
+ text: {
37297
+ type: "string",
37298
+ minLength: 1
37299
+ },
37300
+ role: {
37301
+ const: "prompt",
37302
+ type: "string"
37303
+ }
37304
+ },
37305
+ required: [
37306
+ "type",
37307
+ "text",
37308
+ "role"
37309
+ ],
37310
+ additionalProperties: false
37311
+ },
37312
+ {
37313
+ type: "object",
37314
+ properties: {
37315
+ type: {
37316
+ const: "image"
37317
+ },
37318
+ source: {
37319
+ oneOf: [
37320
+ {
37321
+ type: "string",
37322
+ minLength: 1
37323
+ },
37324
+ {
37325
+ type: "object",
37326
+ properties: {
37327
+ assetId: {
37328
+ type: "string",
37329
+ minLength: 1
37330
+ }
37331
+ },
37332
+ required: [
37333
+ "assetId"
37334
+ ],
37335
+ additionalProperties: false
37336
+ }
37337
+ ]
37338
+ },
37339
+ role: {
37340
+ type: "string",
37341
+ enum: [
37342
+ "first_frame",
37343
+ "last_frame",
37344
+ "reference"
37345
+ ]
37346
+ }
37347
+ },
37348
+ required: [
37349
+ "type",
37350
+ "source",
37351
+ "role"
37352
+ ],
37353
+ additionalProperties: false
37354
+ },
37355
+ {
37356
+ type: "object",
37357
+ properties: {
37358
+ type: {
37359
+ const: "video"
37360
+ },
37361
+ source: {
37362
+ oneOf: [
37363
+ {
37364
+ type: "string",
37365
+ minLength: 1
37366
+ },
37367
+ {
37368
+ type: "object",
37369
+ properties: {
37370
+ assetId: {
37371
+ type: "string",
37372
+ minLength: 1
37373
+ }
37374
+ },
37375
+ required: [
37376
+ "assetId"
37377
+ ],
37378
+ additionalProperties: false
37379
+ }
37380
+ ]
37381
+ },
37382
+ role: {
37383
+ type: "string",
37384
+ enum: [
37385
+ "reference",
37386
+ "edit",
37387
+ "extend"
37388
+ ]
37389
+ }
37390
+ },
37391
+ required: [
37392
+ "type",
37393
+ "source",
37394
+ "role"
37395
+ ],
37396
+ additionalProperties: false
37397
+ }
37398
+ ]
37399
+ },
37400
+ "x-ui": {
37401
+ control: "content-parts",
37402
+ order: 0,
37403
+ defaultInputMode: "reference"
37404
+ },
37405
+ maxItems: 14,
37406
+ description: "HTTP \u56FE\u7247\u6216\u89C6\u9891\u53C2\u8003\u7D20\u6750\u6BCF\u4E2A\u4E0D\u5F97\u8D85\u8FC7 20 MB\uFF1B\u4E5F\u53EF\u63D0\u4F9B\u6E20\u9053\u53EF\u8BFB\u53D6\u7684 GCS \u5730\u5740\u3002",
37407
+ allOf: [
37408
+ {
37409
+ contains: {
37410
+ type: "object",
37411
+ properties: {
37412
+ type: {
37413
+ const: "text"
37414
+ }
37415
+ },
37416
+ required: [
37417
+ "type"
37418
+ ]
37419
+ },
37420
+ minContains: 1,
37421
+ maxContains: 1
37422
+ },
37423
+ {
37424
+ contains: {
37425
+ type: "object",
37426
+ properties: {
37427
+ type: {
37428
+ const: "image"
37429
+ }
37430
+ },
37431
+ required: [
37432
+ "type"
37433
+ ]
37434
+ },
37435
+ minContains: 0,
37436
+ maxContains: 10
37437
+ },
37438
+ {
37439
+ contains: {
37440
+ type: "object",
37441
+ properties: {
37442
+ type: {
37443
+ const: "video"
37444
+ }
37445
+ },
37446
+ required: [
37447
+ "type"
37448
+ ]
37449
+ },
37450
+ minContains: 0,
37451
+ maxContains: 3
37452
+ }
37453
+ ]
37454
+ },
37455
+ resolution: {
37456
+ type: "string",
37457
+ enum: [
37458
+ "360p",
37459
+ "720p",
37460
+ "1080p",
37461
+ "4k"
37462
+ ],
37463
+ default: "720p",
37464
+ "x-ui": {
37465
+ order: 10,
37466
+ control: "segmented"
37467
+ }
37468
+ },
37469
+ aspect_ratio: {
37470
+ type: "string",
37471
+ enum: [
37472
+ "16:9",
37473
+ "9:16"
37474
+ ],
37475
+ "x-ui": {
37476
+ order: 11,
37477
+ control: "segmented"
37478
+ }
37479
+ },
37480
+ duration: {
37481
+ type: "integer",
37482
+ minimum: 3,
37483
+ maximum: 15,
37484
+ default: 5,
37485
+ "x-ui": {
37486
+ order: 12,
37487
+ control: "range",
37488
+ unit: "\u79D2"
37489
+ }
37490
+ }
37491
+ },
37492
+ required: [
37493
+ "content"
37494
+ ],
37495
+ additionalProperties: false,
37496
+ allOf: [
37497
+ {
37498
+ if: {
37499
+ type: "object",
37500
+ properties: {
37501
+ content: {
37502
+ type: "array",
37503
+ contains: {
37504
+ type: "object",
37505
+ properties: {
37506
+ role: {
37507
+ enum: [
37508
+ "last_frame",
37509
+ "extend"
37510
+ ]
37511
+ }
37512
+ },
37513
+ required: [
37514
+ "role"
37515
+ ]
37516
+ }
37517
+ }
37518
+ }
37519
+ },
37520
+ then: {
37521
+ type: "object",
37522
+ properties: {
37523
+ duration: {
37524
+ type: "integer",
37525
+ maximum: 10
37526
+ }
37527
+ }
37528
+ }
37529
+ },
37530
+ {
37531
+ if: {
37532
+ type: "object",
37533
+ properties: {
37534
+ content: {
37535
+ type: "array",
37536
+ contains: {
37537
+ type: "object",
37538
+ properties: {
37539
+ role: {
37540
+ enum: [
37541
+ "first_frame",
37542
+ "last_frame"
37543
+ ]
37544
+ }
37545
+ },
37546
+ required: [
37547
+ "role"
37548
+ ]
37549
+ }
37550
+ }
37551
+ }
37552
+ },
37553
+ then: {
37554
+ type: "object",
37555
+ properties: {
37556
+ content: {
37557
+ type: "array",
37558
+ items: {
37559
+ type: "object",
37560
+ properties: {
37561
+ role: {
37562
+ enum: [
37563
+ "prompt",
37564
+ "first_frame",
37565
+ "last_frame"
37566
+ ]
37567
+ }
37568
+ }
37569
+ },
37570
+ allOf: [
37571
+ {
37572
+ contains: {
37573
+ type: "object",
37574
+ properties: {
37575
+ role: {
37576
+ const: "first_frame"
37577
+ }
37578
+ },
37579
+ required: [
37580
+ "role"
37581
+ ]
37582
+ },
37583
+ minContains: 1,
37584
+ maxContains: 1
37585
+ },
37586
+ {
37587
+ contains: {
37588
+ type: "object",
37589
+ properties: {
37590
+ role: {
37591
+ const: "last_frame"
37592
+ }
37593
+ },
37594
+ required: [
37595
+ "role"
37596
+ ]
37597
+ },
37598
+ minContains: 0,
37599
+ maxContains: 1
37600
+ }
37601
+ ]
37602
+ }
37603
+ }
37604
+ }
37605
+ },
37606
+ {
37607
+ if: {
37608
+ type: "object",
37609
+ properties: {
37610
+ content: {
37611
+ type: "array",
37612
+ contains: {
37613
+ type: "object",
37614
+ properties: {
37615
+ role: {
37616
+ enum: [
37617
+ "edit",
37618
+ "extend"
37619
+ ]
37620
+ }
37621
+ },
37622
+ required: [
37623
+ "role"
37624
+ ]
37625
+ }
37626
+ }
37627
+ }
37628
+ },
37629
+ then: {
37630
+ type: "object",
37631
+ properties: {
37632
+ content: {
37633
+ type: "array",
37634
+ allOf: [
37635
+ {
37636
+ contains: {
37637
+ type: "object",
37638
+ properties: {
37639
+ type: {
37640
+ const: "video"
37641
+ }
37642
+ },
37643
+ required: [
37644
+ "type"
37645
+ ]
37646
+ },
37647
+ minContains: 1,
37648
+ maxContains: 1
37649
+ },
37650
+ {
37651
+ contains: {
37652
+ type: "object",
37653
+ properties: {
37654
+ type: {
37655
+ const: "image"
37656
+ }
37657
+ },
37658
+ required: [
37659
+ "type"
37660
+ ]
37661
+ },
37662
+ minContains: 0,
37663
+ maxContains: 2
37664
+ }
37665
+ ]
37666
+ }
37667
+ }
37668
+ }
37669
+ }
37670
+ ]
37671
+ },
37672
+ outputSchema: {},
37673
+ metering: {
37674
+ schemaVersion: 1,
37675
+ kind: "mixed",
37676
+ metrics: [
37677
+ {
37678
+ metric: "requests",
37679
+ requirement: "required"
37680
+ },
37681
+ {
37682
+ metric: "input_tokens",
37683
+ requirement: "required"
37684
+ },
37685
+ {
37686
+ metric: "output_tokens",
37687
+ requirement: "required"
37688
+ },
37689
+ {
37690
+ metric: "output_video_seconds",
37691
+ requirement: "informational"
37692
+ }
37693
+ ]
37694
+ }
37695
+ }
37696
+ ],
37697
+ endpoints: []
37698
+ },
37234
37699
  {
37235
37700
  id: "minimax/MiniMax-H3-Max",
37236
37701
  contractVersion: 1,
@@ -61319,7 +61784,7 @@ var NexraWaitTimeoutError = class extends Error {
61319
61784
  };
61320
61785
 
61321
61786
  // src/generated/version.generated.ts
61322
- var SDK_VERSION = "0.1.0-alpha.49";
61787
+ var SDK_VERSION = "0.1.0-alpha.50";
61323
61788
 
61324
61789
  // src/transport.ts
61325
61790
  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-AO4HOLPJ.js";
23
+ } from "./chunk-WXPCZYOK.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-AO4HOLPJ.js";
9
+ } from "./chunk-WXPCZYOK.js";
10
10
  import {
11
11
  isPublicErrorCode,
12
12
  publicErrorMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byte_fluffy/nexra-sdk",
3
- "version": "0.1.0-alpha.49",
3
+ "version": "0.1.0-alpha.50",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "sideEffects": false,