@vertesia/common 1.6.0-dev.20260918.115658Z → 1.6.0-dev.20260923.085325Z

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.
Files changed (107) hide show
  1. package/lib/api-contract/components.generated.json +3085 -2649
  2. package/lib/api-schemas/account.d.ts +5 -0
  3. package/lib/api-schemas/account.d.ts.map +1 -1
  4. package/lib/api-schemas/account.js +7 -0
  5. package/lib/api-schemas/account.js.map +1 -1
  6. package/lib/api-schemas/agent-runs.d.ts +930 -300
  7. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  8. package/lib/api-schemas/app-lifecycle.d.ts +4 -0
  9. package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
  10. package/lib/api-schemas/app-lifecycle.js +10 -0
  11. package/lib/api-schemas/app-lifecycle.js.map +1 -1
  12. package/lib/api-schemas/app-runtime.d.ts +1342 -420
  13. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  14. package/lib/api-schemas/app-runtime.js +14 -0
  15. package/lib/api-schemas/app-runtime.js.map +1 -1
  16. package/lib/api-schemas/content.d.ts +465 -150
  17. package/lib/api-schemas/content.d.ts.map +1 -1
  18. package/lib/api-schemas/document-processing.d.ts +279 -90
  19. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  20. package/lib/api-schemas/environment.d.ts +2 -2
  21. package/lib/api-schemas/events.d.ts +837 -270
  22. package/lib/api-schemas/events.d.ts.map +1 -1
  23. package/lib/api-schemas/interaction.d.ts +4260 -1290
  24. package/lib/api-schemas/interaction.d.ts.map +1 -1
  25. package/lib/api-schemas/interaction.js +1 -0
  26. package/lib/api-schemas/interaction.js.map +1 -1
  27. package/lib/api-schemas/oauth-server.d.ts +27 -0
  28. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  29. package/lib/api-schemas/oauth-server.js +32 -0
  30. package/lib/api-schemas/oauth-server.js.map +1 -1
  31. package/lib/api-schemas/process.d.ts +186 -60
  32. package/lib/api-schemas/process.d.ts.map +1 -1
  33. package/lib/api-schemas/project-configuration.d.ts +937 -300
  34. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  35. package/lib/api-schemas/project-configuration.js +6 -0
  36. package/lib/api-schemas/project-configuration.js.map +1 -1
  37. package/lib/api-schemas/project.d.ts +1416 -450
  38. package/lib/api-schemas/project.d.ts.map +1 -1
  39. package/lib/api-schemas/prompt.d.ts +1 -0
  40. package/lib/api-schemas/prompt.d.ts.map +1 -1
  41. package/lib/api-schemas/prompt.js +1 -0
  42. package/lib/api-schemas/prompt.js.map +1 -1
  43. package/lib/api-schemas/registry.d.ts +12043 -30352
  44. package/lib/api-schemas/registry.d.ts.map +1 -1
  45. package/lib/api-schemas/registry.js +42 -33
  46. package/lib/api-schemas/registry.js.map +1 -1
  47. package/lib/api-schemas/store.d.ts +4650 -1500
  48. package/lib/api-schemas/store.d.ts.map +1 -1
  49. package/lib/api-schemas/sts.d.ts +10 -0
  50. package/lib/api-schemas/sts.d.ts.map +1 -1
  51. package/lib/api-schemas/sts.js +14 -0
  52. package/lib/api-schemas/sts.js.map +1 -1
  53. package/lib/api-schemas/user.d.ts +28 -12
  54. package/lib/api-schemas/user.d.ts.map +1 -1
  55. package/lib/api-schemas/user.js +23 -17
  56. package/lib/api-schemas/user.js.map +1 -1
  57. package/lib/api-schemas/workflow-runs.d.ts +186 -60
  58. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  59. package/lib/apps.d.ts +2 -1
  60. package/lib/apps.d.ts.map +1 -1
  61. package/lib/apps.js.map +1 -1
  62. package/lib/index.d.ts +2 -2
  63. package/lib/index.d.ts.map +1 -1
  64. package/lib/index.js.map +1 -1
  65. package/lib/oauth-server.d.ts +5 -1
  66. package/lib/oauth-server.d.ts.map +1 -1
  67. package/lib/principal-context.d.ts +21 -12
  68. package/lib/principal-context.d.ts.map +1 -1
  69. package/lib/project.d.ts.map +1 -1
  70. package/lib/project.js +10 -0
  71. package/lib/project.js.map +1 -1
  72. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  73. package/lib/store/intake-policy-schema.generated.js +166 -32
  74. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  75. package/lib/sts-token-types.d.ts +3 -1
  76. package/lib/sts-token-types.d.ts.map +1 -1
  77. package/lib/user.d.ts +2 -1
  78. package/lib/user.d.ts.map +1 -1
  79. package/lib/user.js.map +1 -1
  80. package/lib/vertesia-common.js +2 -2
  81. package/lib/vertesia-common.js.map +1 -1
  82. package/package.json +6 -6
  83. package/src/api-contract/components.generated.json +3085 -2649
  84. package/src/api-schemas/account.ts +8 -0
  85. package/src/api-schemas/app-lifecycle.ts +11 -0
  86. package/src/api-schemas/app-runtime.ts +15 -0
  87. package/src/api-schemas/interaction.ts +1 -0
  88. package/src/api-schemas/llumiverse.contract.test.ts +70 -40
  89. package/src/api-schemas/oauth-server.ts +36 -0
  90. package/src/api-schemas/project-configuration.ts +6 -0
  91. package/src/api-schemas/project.contract.test.ts +15 -0
  92. package/src/api-schemas/prompt.ts +1 -0
  93. package/src/api-schemas/registry-groups.test.ts +9 -1
  94. package/src/api-schemas/registry.ts +100 -32
  95. package/src/api-schemas/store.contract.test.ts +6 -6
  96. package/src/api-schemas/sts.ts +16 -0
  97. package/src/api-schemas/user.contract.test.ts +24 -18
  98. package/src/api-schemas/user.ts +24 -18
  99. package/src/api-schemas/views.contract.test.ts +3 -10
  100. package/src/apps.ts +3 -0
  101. package/src/index.ts +9 -2
  102. package/src/oauth-server.ts +11 -0
  103. package/src/principal-context.ts +22 -12
  104. package/src/project.ts +10 -0
  105. package/src/store/intake-policy-schema.generated.ts +166 -32
  106. package/src/sts-token-types.ts +5 -0
  107. package/src/user.ts +8 -1
@@ -251,6 +251,51 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
251
251
  additionalProperties: false,
252
252
  description: 'Per-content-type policy for the standard intake workflows.',
253
253
  $defs: {
254
+ AnthropicClaudeOptions: {
255
+ type: 'object',
256
+ properties: {
257
+ _option_id: {
258
+ type: 'string',
259
+ const: 'anthropic-claude',
260
+ },
261
+ max_tokens: {
262
+ type: 'number',
263
+ },
264
+ temperature: {
265
+ type: 'number',
266
+ },
267
+ top_p: {
268
+ type: 'number',
269
+ },
270
+ top_k: {
271
+ type: 'number',
272
+ },
273
+ stop_sequence: {
274
+ type: 'array',
275
+ items: {
276
+ type: 'string',
277
+ },
278
+ },
279
+ effort: {
280
+ type: 'string',
281
+ enum: ['low', 'medium', 'high', 'xhigh', 'max'],
282
+ },
283
+ thinking_budget_tokens: {
284
+ type: 'number',
285
+ },
286
+ include_thoughts: {
287
+ type: 'boolean',
288
+ },
289
+ cache_enabled: {
290
+ type: 'boolean',
291
+ },
292
+ cache_ttl: {
293
+ type: 'string',
294
+ enum: ['5m', '1h'],
295
+ },
296
+ },
297
+ additionalProperties: false,
298
+ },
254
299
  AzureFoundryChatOptions: {
255
300
  type: 'object',
256
301
  properties: {
@@ -290,7 +335,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
290
335
  type: 'boolean',
291
336
  },
292
337
  },
293
- required: ['_option_id'],
294
338
  additionalProperties: false,
295
339
  },
296
340
  BedrockAI21Options: {
@@ -309,6 +353,12 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
309
353
  top_p: {
310
354
  type: 'number',
311
355
  },
356
+ presence_penalty: {
357
+ type: 'number',
358
+ },
359
+ frequency_penalty: {
360
+ type: 'number',
361
+ },
312
362
  stop_sequence: {
313
363
  type: 'array',
314
364
  items: {
@@ -325,7 +375,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
325
375
  'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
326
376
  },
327
377
  },
328
- required: ['_option_id'],
329
378
  additionalProperties: false,
330
379
  },
331
380
  BedrockClaudeOptions: {
@@ -377,7 +426,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
377
426
  'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
378
427
  },
379
428
  },
380
- required: ['_option_id'],
381
429
  additionalProperties: false,
382
430
  },
383
431
  BedrockCohereCommandOptions: {
@@ -396,6 +444,15 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
396
444
  top_p: {
397
445
  type: 'number',
398
446
  },
447
+ top_k: {
448
+ type: 'number',
449
+ },
450
+ presence_penalty: {
451
+ type: 'number',
452
+ },
453
+ frequency_penalty: {
454
+ type: 'number',
455
+ },
399
456
  stop_sequence: {
400
457
  type: 'array',
401
458
  items: {
@@ -412,7 +469,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
412
469
  'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
413
470
  },
414
471
  },
415
- required: ['_option_id'],
416
472
  additionalProperties: false,
417
473
  },
418
474
  BedrockConverseOptions: {
@@ -447,7 +503,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
447
503
  'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
448
504
  },
449
505
  },
450
- required: ['_option_id'],
451
506
  additionalProperties: false,
452
507
  },
453
508
  BedrockGptOssOptions: {
@@ -489,7 +544,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
489
544
  'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
490
545
  },
491
546
  },
492
- required: ['_option_id'],
493
547
  additionalProperties: false,
494
548
  },
495
549
  BedrockMantleChatCompletionsOptions: {
@@ -526,7 +580,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
526
580
  type: 'boolean',
527
581
  },
528
582
  },
529
- required: ['_option_id'],
530
583
  additionalProperties: false,
531
584
  },
532
585
  BedrockMantleClaudeOptions: {
@@ -572,7 +625,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
572
625
  enum: ['5m', '1h'],
573
626
  },
574
627
  },
575
- required: ['_option_id'],
576
628
  additionalProperties: false,
577
629
  },
578
630
  BedrockMantleResponsesOptions: {
@@ -593,11 +645,11 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
593
645
  },
594
646
  effort: {
595
647
  type: 'string',
596
- enum: ['none', 'low', 'medium', 'high', 'xhigh'],
648
+ enum: ['none', 'low', 'medium', 'high', 'xhigh', 'max'],
597
649
  },
598
650
  reasoning_effort: {
599
651
  type: 'string',
600
- enum: ['none', 'low', 'medium', 'high', 'xhigh'],
652
+ enum: ['none', 'low', 'medium', 'high', 'xhigh', 'max'],
601
653
  },
602
654
  verbosity: {
603
655
  type: 'string',
@@ -611,7 +663,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
611
663
  type: 'boolean',
612
664
  },
613
665
  },
614
- required: ['_option_id'],
615
666
  additionalProperties: false,
616
667
  },
617
668
  BedrockMistralOptions: {
@@ -630,6 +681,9 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
630
681
  top_p: {
631
682
  type: 'number',
632
683
  },
684
+ top_k: {
685
+ type: 'number',
686
+ },
633
687
  stop_sequence: {
634
688
  type: 'array',
635
689
  items: {
@@ -646,7 +700,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
646
700
  'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
647
701
  },
648
702
  },
649
- required: ['_option_id'],
650
703
  additionalProperties: false,
651
704
  },
652
705
  BedrockNovaOptions: {
@@ -665,6 +718,9 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
665
718
  top_p: {
666
719
  type: 'number',
667
720
  },
721
+ top_k: {
722
+ type: 'number',
723
+ },
668
724
  stop_sequence: {
669
725
  type: 'array',
670
726
  items: {
@@ -681,7 +737,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
681
737
  'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
682
738
  },
683
739
  },
684
- required: ['_option_id'],
685
740
  additionalProperties: false,
686
741
  },
687
742
  BedrockPalmyraOptions: {
@@ -725,7 +780,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
725
780
  'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
726
781
  },
727
782
  },
728
- required: ['_option_id'],
729
783
  additionalProperties: false,
730
784
  },
731
785
  ConfigModes: {
@@ -895,7 +949,7 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
895
949
  enum: ['parsed', 'raw', 'hidden'],
896
950
  },
897
951
  },
898
- required: ['_option_id', 'reasoning_format'],
952
+ required: ['reasoning_format'],
899
953
  additionalProperties: false,
900
954
  },
901
955
  HttpTimeoutOptions: {
@@ -941,7 +995,7 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
941
995
  },
942
996
  person_generation: {
943
997
  type: 'string',
944
- enum: ['dont_allow', 'allow_adults', 'allow_all'],
998
+ enum: ['dont_allow', 'allow_adults', 'allow_all', 'allow_adult'],
945
999
  },
946
1000
  safety_setting: {
947
1001
  type: 'string',
@@ -1002,7 +1056,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1002
1056
  ],
1003
1057
  },
1004
1058
  },
1005
- required: ['_option_id'],
1006
1059
  additionalProperties: false,
1007
1060
  },
1008
1061
  ImagenTaskType: {
@@ -1153,11 +1206,10 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1153
1206
  type: 'boolean',
1154
1207
  },
1155
1208
  },
1156
- required: ['_option_id'],
1157
1209
  additionalProperties: false,
1158
1210
  },
1159
1211
  ModelOptions: {
1160
- oneOf: [
1212
+ anyOf: [
1161
1213
  {
1162
1214
  $ref: '#/$defs/TextFallbackOptions',
1163
1215
  },
@@ -1233,6 +1285,15 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1233
1285
  {
1234
1286
  $ref: '#/$defs/OpenAiGptImageOptions',
1235
1287
  },
1288
+ {
1289
+ $ref: '#/$defs/OpenAiTranscriptionOptions',
1290
+ },
1291
+ {
1292
+ $ref: '#/$defs/OpenAiSpeechOptions',
1293
+ },
1294
+ {
1295
+ $ref: '#/$defs/OpenAiAudioOptions',
1296
+ },
1236
1297
  {
1237
1298
  $ref: '#/$defs/XAIGrokImageOptions',
1238
1299
  },
@@ -1242,7 +1303,11 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1242
1303
  {
1243
1304
  $ref: '#/$defs/MistralTextOptions',
1244
1305
  },
1306
+ {
1307
+ $ref: '#/$defs/AnthropicClaudeOptions',
1308
+ },
1245
1309
  ],
1310
+ type: 'object',
1246
1311
  },
1247
1312
  NovaCanvasOptions: {
1248
1313
  type: 'object',
@@ -1303,7 +1368,25 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1303
1368
  enum: ['DEFAULT', 'PRECISE'],
1304
1369
  },
1305
1370
  },
1306
- required: ['_option_id', 'taskType'],
1371
+ required: ['taskType'],
1372
+ additionalProperties: false,
1373
+ },
1374
+ OpenAiAudioOptions: {
1375
+ type: 'object',
1376
+ properties: {
1377
+ _option_id: {
1378
+ type: 'string',
1379
+ const: 'openai-audio',
1380
+ },
1381
+ voice: {
1382
+ type: 'string',
1383
+ minLength: 1,
1384
+ },
1385
+ response_format: {
1386
+ type: 'string',
1387
+ enum: ['wav', 'mp3', 'flac', 'opus', 'pcm16'],
1388
+ },
1389
+ },
1307
1390
  additionalProperties: false,
1308
1391
  },
1309
1392
  OpenAiDalleOptions: {
@@ -1333,7 +1416,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1333
1416
  type: 'number',
1334
1417
  },
1335
1418
  },
1336
- required: ['_option_id'],
1337
1419
  additionalProperties: false,
1338
1420
  },
1339
1421
  OpenAiGptImageOptions: {
@@ -1360,7 +1442,32 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1360
1442
  enum: ['png', 'webp', 'jpeg'],
1361
1443
  },
1362
1444
  },
1363
- required: ['_option_id'],
1445
+ additionalProperties: false,
1446
+ },
1447
+ OpenAiSpeechOptions: {
1448
+ type: 'object',
1449
+ properties: {
1450
+ _option_id: {
1451
+ type: 'string',
1452
+ const: 'openai-speech',
1453
+ },
1454
+ voice: {
1455
+ type: 'string',
1456
+ minLength: 1,
1457
+ },
1458
+ response_format: {
1459
+ type: 'string',
1460
+ enum: ['mp3', 'wav', 'opus', 'aac', 'flac', 'pcm'],
1461
+ },
1462
+ speed: {
1463
+ type: 'number',
1464
+ minimum: 0.25,
1465
+ maximum: 4,
1466
+ },
1467
+ instructions: {
1468
+ type: 'string',
1469
+ },
1470
+ },
1364
1471
  additionalProperties: false,
1365
1472
  },
1366
1473
  OpenAiTextOptions: {
@@ -1420,7 +1527,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1420
1527
  description: 'Additional provider-specific fields merged into the OpenAI-compatible request body.',
1421
1528
  },
1422
1529
  },
1423
- required: ['_option_id'],
1424
1530
  additionalProperties: false,
1425
1531
  },
1426
1532
  OpenAiThinkingOptions: {
@@ -1468,7 +1574,19 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1468
1574
  description: 'Additional provider-specific fields merged into the OpenAI-compatible request body.',
1469
1575
  },
1470
1576
  },
1471
- required: ['_option_id'],
1577
+ additionalProperties: false,
1578
+ },
1579
+ OpenAiTranscriptionOptions: {
1580
+ type: 'object',
1581
+ properties: {
1582
+ _option_id: {
1583
+ type: 'string',
1584
+ const: 'openai-transcription',
1585
+ },
1586
+ language: {
1587
+ type: 'string',
1588
+ },
1589
+ },
1472
1590
  additionalProperties: false,
1473
1591
  },
1474
1592
  OpenRouterTextOptions: {
@@ -1578,7 +1696,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1578
1696
  },
1579
1697
  },
1580
1698
  },
1581
- required: ['_option_id'],
1582
1699
  additionalProperties: false,
1583
1700
  },
1584
1701
  PromptCacheMode: {
@@ -1632,7 +1749,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1632
1749
  type: 'boolean',
1633
1750
  },
1634
1751
  },
1635
- required: ['_option_id'],
1636
1752
  additionalProperties: false,
1637
1753
  },
1638
1754
  ThinkingLevel: {
@@ -1659,7 +1775,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1659
1775
  'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
1660
1776
  },
1661
1777
  },
1662
- required: ['_option_id'],
1663
1778
  additionalProperties: false,
1664
1779
  },
1665
1780
  VertexAIClaudeOptions: {
@@ -1705,7 +1820,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1705
1820
  enum: ['5m', '1h'],
1706
1821
  },
1707
1822
  },
1708
- required: ['_option_id'],
1709
1823
  additionalProperties: false,
1710
1824
  },
1711
1825
  VertexAIGeminiOmniVideoOptions: {
@@ -1733,7 +1847,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1733
1847
  enum: ['360p', '720p', '1080p', '4k'],
1734
1848
  },
1735
1849
  },
1736
- required: ['_option_id'],
1737
1850
  additionalProperties: false,
1738
1851
  },
1739
1852
  VertexAIGeminiOptions: {
@@ -1795,6 +1908,30 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1795
1908
  'x-deprecated-message': 'Use service_tier="flex" instead.',
1796
1909
  description: 'Deprecated: Use service_tier="flex" instead.',
1797
1910
  },
1911
+ speech_voice: {
1912
+ type: 'string',
1913
+ },
1914
+ speech_language: {
1915
+ type: 'string',
1916
+ },
1917
+ transcription_language_codes: {
1918
+ type: 'array',
1919
+ items: {
1920
+ type: 'string',
1921
+ },
1922
+ },
1923
+ transcription_diarization: {
1924
+ type: 'boolean',
1925
+ },
1926
+ transcription_word_timestamps: {
1927
+ type: 'boolean',
1928
+ },
1929
+ transcription_vocabulary: {
1930
+ type: 'array',
1931
+ items: {
1932
+ type: 'string',
1933
+ },
1934
+ },
1798
1935
  image_aspect_ratio: {
1799
1936
  type: 'string',
1800
1937
  enum: ['1:1', '2:3', '3:2', '3:4', '4:3', '9:16', '16:9', '21:9'],
@@ -1819,7 +1956,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1819
1956
  type: 'number',
1820
1957
  },
1821
1958
  },
1822
- required: ['_option_id'],
1823
1959
  additionalProperties: false,
1824
1960
  },
1825
1961
  VertexAIGrokOptions: {
@@ -1845,7 +1981,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1845
1981
  },
1846
1982
  },
1847
1983
  },
1848
- required: ['_option_id'],
1849
1984
  additionalProperties: false,
1850
1985
  },
1851
1986
  XAIGrokImageOptions: {
@@ -1892,7 +2027,6 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1892
2027
  maximum: 10,
1893
2028
  },
1894
2029
  },
1895
- required: ['_option_id'],
1896
2030
  additionalProperties: false,
1897
2031
  },
1898
2032
  },
@@ -6,6 +6,8 @@ import type { z } from 'zod';
6
6
  import type {
7
7
  AgentTokenRequestSchema,
8
8
  ApiKeyTokenRequestSchema,
9
+ AppSessionTokenRequestSchema,
10
+ AppSessionTokenResponseSchema,
9
11
  EnvironmentTokenRequestSchema,
10
12
  IssueTokenForbiddenResponseSchema,
11
13
  IssueTokenRequestSchema,
@@ -74,3 +76,6 @@ export interface ValidateTokenResponse {
74
76
  }
75
77
 
76
78
  export type IssueTokenUnavailableResponse = z.infer<typeof IssueTokenUnavailableResponseSchema>;
79
+
80
+ export type AppSessionTokenRequest = z.infer<typeof AppSessionTokenRequestSchema>;
81
+ export type AppSessionTokenResponse = z.infer<typeof AppSessionTokenResponseSchema>;
package/src/user.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  import type { z } from 'zod';
2
- import type { AccountBillingSchema, AccountSchema, UpdateAccountPayloadSchema } from './api-schemas/account.js';
2
+ import type {
3
+ AccountApiVersionPolicySchema,
4
+ AccountBillingSchema,
5
+ AccountSchema,
6
+ UpdateAccountPayloadSchema,
7
+ } from './api-schemas/account.js';
3
8
  import type {
4
9
  AccountProjectsResponseSchema,
5
10
  AccountRefSchema,
@@ -104,3 +109,5 @@ export type SignupData = z.infer<typeof SignupDataSchema>;
104
109
  * The `POST /auth/signup` request body.
105
110
  */
106
111
  export type SignupPayload = z.infer<typeof SignupPayloadSchema>;
112
+
113
+ export type AccountApiVersionPolicy = z.infer<typeof AccountApiVersionPolicySchema>;