vellum-ai 0.9.1 → 0.9.3

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 (128) hide show
  1. package/.mock/definition/__package__.yml +42 -2
  2. package/.mock/definition/containerImages.yml +20 -0
  3. package/.mock/definition/workflows.yml +24 -2
  4. package/.mock/openapi/openapi.yml +122 -1
  5. package/Client.js +10 -10
  6. package/api/resources/adHoc/client/Client.js +1 -1
  7. package/api/resources/containerImages/client/Client.d.ts +9 -0
  8. package/api/resources/containerImages/client/Client.js +54 -3
  9. package/api/resources/deployments/client/Client.js +5 -5
  10. package/api/resources/documentIndexes/client/Client.js +8 -8
  11. package/api/resources/documents/client/Client.js +5 -5
  12. package/api/resources/folderEntities/client/Client.js +2 -2
  13. package/api/resources/metricDefinitions/client/Client.js +1 -1
  14. package/api/resources/sandboxes/client/Client.js +3 -3
  15. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  16. package/api/resources/testSuites/client/Client.js +4 -4
  17. package/api/resources/workflowDeployments/client/Client.js +4 -4
  18. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  19. package/api/resources/workflows/client/Client.d.ts +6 -0
  20. package/api/resources/workflows/client/Client.js +44 -2
  21. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  22. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  23. package/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  24. package/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  25. package/api/types/AudioChatMessageContent.d.ts +11 -0
  26. package/api/types/AudioChatMessageContent.js +5 -0
  27. package/api/types/AudioChatMessageContentRequest.d.ts +11 -0
  28. package/api/types/AudioChatMessageContentRequest.js +5 -0
  29. package/api/types/ChatMessageContent.d.ts +1 -1
  30. package/api/types/ChatMessageContentRequest.d.ts +1 -1
  31. package/api/types/DockerServiceToken.d.ts +8 -0
  32. package/api/types/DockerServiceToken.js +5 -0
  33. package/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
  34. package/api/types/VellumAudio.d.ts +7 -0
  35. package/api/types/VellumAudio.js +5 -0
  36. package/api/types/VellumAudioRequest.d.ts +7 -0
  37. package/api/types/VellumAudioRequest.js +5 -0
  38. package/api/types/index.d.ts +5 -0
  39. package/api/types/index.js +5 -0
  40. package/dist/Client.js +10 -10
  41. package/dist/api/resources/adHoc/client/Client.js +1 -1
  42. package/dist/api/resources/containerImages/client/Client.d.ts +9 -0
  43. package/dist/api/resources/containerImages/client/Client.js +54 -3
  44. package/dist/api/resources/deployments/client/Client.js +5 -5
  45. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  46. package/dist/api/resources/documents/client/Client.js +5 -5
  47. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  48. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  49. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  50. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  51. package/dist/api/resources/testSuites/client/Client.js +4 -4
  52. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  53. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  54. package/dist/api/resources/workflows/client/Client.d.ts +6 -0
  55. package/dist/api/resources/workflows/client/Client.js +44 -2
  56. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  57. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  58. package/dist/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  59. package/dist/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  60. package/dist/api/types/AudioChatMessageContent.d.ts +11 -0
  61. package/dist/api/types/AudioChatMessageContent.js +5 -0
  62. package/dist/api/types/AudioChatMessageContentRequest.d.ts +11 -0
  63. package/dist/api/types/AudioChatMessageContentRequest.js +5 -0
  64. package/dist/api/types/ChatMessageContent.d.ts +1 -1
  65. package/dist/api/types/ChatMessageContentRequest.d.ts +1 -1
  66. package/dist/api/types/DockerServiceToken.d.ts +8 -0
  67. package/dist/api/types/DockerServiceToken.js +5 -0
  68. package/dist/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
  69. package/dist/api/types/VellumAudio.d.ts +7 -0
  70. package/dist/api/types/VellumAudio.js +5 -0
  71. package/dist/api/types/VellumAudioRequest.d.ts +7 -0
  72. package/dist/api/types/VellumAudioRequest.js +5 -0
  73. package/dist/api/types/index.d.ts +5 -0
  74. package/dist/api/types/index.js +5 -0
  75. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  76. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +1 -0
  77. package/dist/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
  78. package/dist/serialization/types/ArrayChatMessageContentItem.js +2 -0
  79. package/dist/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
  80. package/dist/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
  81. package/dist/serialization/types/AudioChatMessageContent.d.ts +14 -0
  82. package/dist/serialization/types/AudioChatMessageContent.js +35 -0
  83. package/dist/serialization/types/AudioChatMessageContentRequest.d.ts +14 -0
  84. package/dist/serialization/types/AudioChatMessageContentRequest.js +35 -0
  85. package/dist/serialization/types/ChatMessageContent.d.ts +2 -1
  86. package/dist/serialization/types/ChatMessageContent.js +2 -0
  87. package/dist/serialization/types/ChatMessageContentRequest.d.ts +2 -1
  88. package/dist/serialization/types/ChatMessageContentRequest.js +2 -0
  89. package/dist/serialization/types/DockerServiceToken.d.ts +14 -0
  90. package/dist/serialization/types/DockerServiceToken.js +35 -0
  91. package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
  92. package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  93. package/dist/serialization/types/VellumAudio.d.ts +13 -0
  94. package/dist/serialization/types/VellumAudio.js +34 -0
  95. package/dist/serialization/types/VellumAudioRequest.d.ts +13 -0
  96. package/dist/serialization/types/VellumAudioRequest.js +34 -0
  97. package/dist/serialization/types/index.d.ts +5 -0
  98. package/dist/serialization/types/index.js +5 -0
  99. package/dist/version.d.ts +1 -1
  100. package/dist/version.js +1 -1
  101. package/package.json +1 -1
  102. package/reference.md +118 -0
  103. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  104. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +1 -0
  105. package/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
  106. package/serialization/types/ArrayChatMessageContentItem.js +2 -0
  107. package/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
  108. package/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
  109. package/serialization/types/AudioChatMessageContent.d.ts +14 -0
  110. package/serialization/types/AudioChatMessageContent.js +35 -0
  111. package/serialization/types/AudioChatMessageContentRequest.d.ts +14 -0
  112. package/serialization/types/AudioChatMessageContentRequest.js +35 -0
  113. package/serialization/types/ChatMessageContent.d.ts +2 -1
  114. package/serialization/types/ChatMessageContent.js +2 -0
  115. package/serialization/types/ChatMessageContentRequest.d.ts +2 -1
  116. package/serialization/types/ChatMessageContentRequest.js +2 -0
  117. package/serialization/types/DockerServiceToken.d.ts +14 -0
  118. package/serialization/types/DockerServiceToken.js +35 -0
  119. package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
  120. package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  121. package/serialization/types/VellumAudio.d.ts +13 -0
  122. package/serialization/types/VellumAudio.js +34 -0
  123. package/serialization/types/VellumAudioRequest.d.ts +13 -0
  124. package/serialization/types/VellumAudioRequest.js +34 -0
  125. package/serialization/types/index.d.ts +5 -0
  126. package/serialization/types/index.js +5 -0
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
@@ -475,7 +475,6 @@ service:
475
475
  completions:
476
476
  - id: id
477
477
  text: text
478
- model_version_id: model_version_id
479
478
  prompt_version_id: prompt_version_id
480
479
  deployment_release_tag: deployment_release_tag
481
480
  model_name: model_name
@@ -776,6 +775,7 @@ types:
776
775
  - StringChatMessageContent
777
776
  - FunctionCallChatMessageContent
778
777
  - ImageChatMessageContent
778
+ - AudioChatMessageContent
779
779
  source:
780
780
  openapi: openapi/openapi.yml
781
781
  ArrayChatMessageContentItemRequest:
@@ -784,6 +784,7 @@ types:
784
784
  - StringChatMessageContentRequest
785
785
  - FunctionCallChatMessageContentRequest
786
786
  - ImageChatMessageContentRequest
787
+ - AudioChatMessageContentRequest
787
788
  source:
788
789
  openapi: openapi/openapi.yml
789
790
  ArrayChatMessageContentRequest:
@@ -840,6 +841,21 @@ types:
840
841
  value: optional<list<VellumValueRequest>>
841
842
  source:
842
843
  openapi: openapi/openapi.yml
844
+ AudioChatMessageContent:
845
+ docs: An audio value that is used in a chat message.
846
+ properties:
847
+ type: literal<"AUDIO">
848
+ value: VellumAudio
849
+ source:
850
+ openapi: openapi/openapi.yml
851
+ AudioChatMessageContentRequest:
852
+ docs: An audio value that is used in a chat message.
853
+ properties:
854
+ type: literal<"AUDIO">
855
+ value: VellumAudioRequest
856
+ source:
857
+ openapi: openapi/openapi.yml
858
+ AudioEnum: literal<"AUDIO">
843
859
  BasicVectorizerIntfloatMultilingualE5Large:
844
860
  docs: Basic vectorizer for intfloat/multilingual-e5-large.
845
861
  properties:
@@ -934,6 +950,7 @@ types:
934
950
  - FunctionCallChatMessageContent
935
951
  - ArrayChatMessageContent
936
952
  - ImageChatMessageContent
953
+ - AudioChatMessageContent
937
954
  source:
938
955
  openapi: openapi/openapi.yml
939
956
  ChatMessageContentRequest:
@@ -943,6 +960,7 @@ types:
943
960
  - FunctionCallChatMessageContentRequest
944
961
  - ArrayChatMessageContentRequest
945
962
  - ImageChatMessageContentRequest
963
+ - AudioChatMessageContentRequest
946
964
  source:
947
965
  openapi: openapi/openapi.yml
948
966
  ChatMessageEnum: literal<"CHAT_MESSAGE">
@@ -1333,6 +1351,13 @@ types:
1333
1351
  docs: The Deployment History Item that this Release Tag is associated with
1334
1352
  source:
1335
1353
  openapi: openapi/openapi.yml
1354
+ DockerServiceToken:
1355
+ properties:
1356
+ access_token: string
1357
+ organization_id: string
1358
+ repository: string
1359
+ source:
1360
+ openapi: openapi/openapi.yml
1336
1361
  DocumentDocumentToDocumentIndex:
1337
1362
  properties:
1338
1363
  id:
@@ -1505,7 +1530,7 @@ types:
1505
1530
  The logprobs of the completion. Only present if specified in the
1506
1531
  original request options.
1507
1532
  model_version_id:
1508
- type: string
1533
+ type: optional<string>
1509
1534
  docs: The ID of the model version used to generate this completion.
1510
1535
  prompt_version_id: string
1511
1536
  type: optional<VellumVariableType>
@@ -5370,6 +5395,21 @@ types:
5370
5395
  format: uuid
5371
5396
  source:
5372
5397
  openapi: openapi/openapi.yml
5398
+ VellumAudio:
5399
+ properties:
5400
+ src: string
5401
+ metadata: optional<map<string, unknown>>
5402
+ source:
5403
+ openapi: openapi/openapi.yml
5404
+ VellumAudioRequest:
5405
+ properties:
5406
+ src:
5407
+ type: string
5408
+ validation:
5409
+ minLength: 1
5410
+ metadata: optional<map<string, unknown>>
5411
+ source:
5412
+ openapi: openapi/openapi.yml
5373
5413
  VellumError:
5374
5414
  properties:
5375
5415
  message: string
@@ -74,6 +74,26 @@ service:
74
74
  - tags
75
75
  audiences:
76
76
  - internal
77
+ docker-service-token:
78
+ path: /v1/container-images/docker-service-token
79
+ method: GET
80
+ auth: true
81
+ docs: >-
82
+ An internal-only endpoint that's subject to breaking changes without
83
+ notice. Not intended for public use.
84
+ response:
85
+ docs: ''
86
+ type: root.DockerServiceToken
87
+ url: Default
88
+ availability: pre-release
89
+ examples:
90
+ - response:
91
+ body:
92
+ access_token: access_token
93
+ organization_id: organization_id
94
+ repository: repository
95
+ audiences:
96
+ - internal
77
97
  push_container_image:
78
98
  path: /v1/container-images/push
79
99
  method: POST
@@ -1,9 +1,25 @@
1
- imports:
2
- root: __package__.yml
3
1
  service:
4
2
  auth: false
5
3
  base-path: ''
6
4
  endpoints:
5
+ pull:
6
+ path: /v1/workflows/{id}/pull
7
+ method: GET
8
+ auth: true
9
+ docs: >-
10
+ An internal-only endpoint that's subject to breaking changes without
11
+ notice. Not intended for public use.
12
+ path-parameters:
13
+ id:
14
+ type: string
15
+ docs: The ID of the Workflow to pull from
16
+ response:
17
+ docs: ''
18
+ type: file
19
+ url: Default
20
+ availability: pre-release
21
+ audiences:
22
+ - internal
7
23
  push:
8
24
  path: /v1/workflows/push
9
25
  method: POST
@@ -20,6 +36,10 @@ service:
20
36
  type: string
21
37
  validation:
22
38
  minLength: 1
39
+ workflow_sandbox_id:
40
+ type: optional<string>
41
+ validation:
42
+ format: uuid
23
43
  response:
24
44
  docs: ''
25
45
  type: root.WorkflowPushResponse
@@ -37,3 +57,5 @@ service:
37
57
  - internal
38
58
  source:
39
59
  openapi: openapi/openapi.yml
60
+ imports:
61
+ root: __package__.yml
@@ -145,6 +145,25 @@ paths:
145
145
  x-fern-availability: beta
146
146
  x-fern-audiences:
147
147
  - internal
148
+ /v1/container-images/docker-service-token:
149
+ get:
150
+ operationId: docker-service-token
151
+ description: An internal-only endpoint that's subject to breaking changes without
152
+ notice. Not intended for public use.
153
+ tags:
154
+ - container-images
155
+ security:
156
+ - apiKeyAuth: []
157
+ responses:
158
+ '200':
159
+ content:
160
+ application/json:
161
+ schema:
162
+ $ref: '#/components/schemas/DockerServiceToken'
163
+ description: ''
164
+ x-fern-availability: beta
165
+ x-fern-audiences:
166
+ - internal
148
167
  /v1/container-images/push:
149
168
  post:
150
169
  operationId: push_container_image
@@ -2016,9 +2035,36 @@ paths:
2016
2035
  x-fern-availability: beta
2017
2036
  x-fern-audiences:
2018
2037
  - customers
2038
+ /v1/workflows/{id}/pull:
2039
+ get:
2040
+ operationId: workflows_pull
2041
+ description: An internal-only endpoint that's subject to breaking changes without
2042
+ notice. Not intended for public use.
2043
+ parameters:
2044
+ - in: path
2045
+ name: id
2046
+ schema:
2047
+ type: string
2048
+ description: The ID of the Workflow to pull from
2049
+ required: true
2050
+ tags:
2051
+ - workflows
2052
+ security:
2053
+ - apiKeyAuth: []
2054
+ responses:
2055
+ '200':
2056
+ content:
2057
+ application/zip:
2058
+ schema:
2059
+ type: string
2060
+ format: binary
2061
+ description: ''
2062
+ x-fern-availability: beta
2063
+ x-fern-audiences:
2064
+ - internal
2019
2065
  /v1/workflows/push:
2020
2066
  post:
2021
- operationId: push
2067
+ operationId: workflows_push
2022
2068
  description: An internal-only endpoint that's subject to breaking changes without
2023
2069
  notice. Not intended for public use.
2024
2070
  tags:
@@ -2280,23 +2326,27 @@ components:
2280
2326
  - $ref: '#/components/schemas/StringChatMessageContent'
2281
2327
  - $ref: '#/components/schemas/FunctionCallChatMessageContent'
2282
2328
  - $ref: '#/components/schemas/ImageChatMessageContent'
2329
+ - $ref: '#/components/schemas/AudioChatMessageContent'
2283
2330
  discriminator:
2284
2331
  propertyName: type
2285
2332
  mapping:
2286
2333
  STRING: '#/components/schemas/StringChatMessageContent'
2287
2334
  FUNCTION_CALL: '#/components/schemas/FunctionCallChatMessageContent'
2288
2335
  IMAGE: '#/components/schemas/ImageChatMessageContent'
2336
+ AUDIO: '#/components/schemas/AudioChatMessageContent'
2289
2337
  ArrayChatMessageContentItemRequest:
2290
2338
  oneOf:
2291
2339
  - $ref: '#/components/schemas/StringChatMessageContentRequest'
2292
2340
  - $ref: '#/components/schemas/FunctionCallChatMessageContentRequest'
2293
2341
  - $ref: '#/components/schemas/ImageChatMessageContentRequest'
2342
+ - $ref: '#/components/schemas/AudioChatMessageContentRequest'
2294
2343
  discriminator:
2295
2344
  propertyName: type
2296
2345
  mapping:
2297
2346
  STRING: '#/components/schemas/StringChatMessageContentRequest'
2298
2347
  FUNCTION_CALL: '#/components/schemas/FunctionCallChatMessageContentRequest'
2299
2348
  IMAGE: '#/components/schemas/ImageChatMessageContentRequest'
2349
+ AUDIO: '#/components/schemas/AudioChatMessageContentRequest'
2300
2350
  ArrayChatMessageContentRequest:
2301
2351
  type: object
2302
2352
  description: A list of chat message content items.
@@ -2396,6 +2446,32 @@ components:
2396
2446
  required:
2397
2447
  - type
2398
2448
  - value
2449
+ AudioChatMessageContent:
2450
+ type: object
2451
+ description: An audio value that is used in a chat message.
2452
+ properties:
2453
+ type:
2454
+ $ref: '#/components/schemas/AudioEnum'
2455
+ value:
2456
+ $ref: '#/components/schemas/VellumAudio'
2457
+ required:
2458
+ - type
2459
+ - value
2460
+ AudioChatMessageContentRequest:
2461
+ type: object
2462
+ description: An audio value that is used in a chat message.
2463
+ properties:
2464
+ type:
2465
+ $ref: '#/components/schemas/AudioEnum'
2466
+ value:
2467
+ $ref: '#/components/schemas/VellumAudioRequest'
2468
+ required:
2469
+ - type
2470
+ - value
2471
+ AudioEnum:
2472
+ type: string
2473
+ enum:
2474
+ - AUDIO
2399
2475
  BasicVectorizerIntfloatMultilingualE5Large:
2400
2476
  type: object
2401
2477
  description: Basic vectorizer for intfloat/multilingual-e5-large.
@@ -2555,6 +2631,7 @@ components:
2555
2631
  - $ref: '#/components/schemas/FunctionCallChatMessageContent'
2556
2632
  - $ref: '#/components/schemas/ArrayChatMessageContent'
2557
2633
  - $ref: '#/components/schemas/ImageChatMessageContent'
2634
+ - $ref: '#/components/schemas/AudioChatMessageContent'
2558
2635
  discriminator:
2559
2636
  propertyName: type
2560
2637
  mapping:
@@ -2562,12 +2639,14 @@ components:
2562
2639
  FUNCTION_CALL: '#/components/schemas/FunctionCallChatMessageContent'
2563
2640
  ARRAY: '#/components/schemas/ArrayChatMessageContent'
2564
2641
  IMAGE: '#/components/schemas/ImageChatMessageContent'
2642
+ AUDIO: '#/components/schemas/AudioChatMessageContent'
2565
2643
  ChatMessageContentRequest:
2566
2644
  oneOf:
2567
2645
  - $ref: '#/components/schemas/StringChatMessageContentRequest'
2568
2646
  - $ref: '#/components/schemas/FunctionCallChatMessageContentRequest'
2569
2647
  - $ref: '#/components/schemas/ArrayChatMessageContentRequest'
2570
2648
  - $ref: '#/components/schemas/ImageChatMessageContentRequest'
2649
+ - $ref: '#/components/schemas/AudioChatMessageContentRequest'
2571
2650
  discriminator:
2572
2651
  propertyName: type
2573
2652
  mapping:
@@ -2575,6 +2654,7 @@ components:
2575
2654
  FUNCTION_CALL: '#/components/schemas/FunctionCallChatMessageContentRequest'
2576
2655
  ARRAY: '#/components/schemas/ArrayChatMessageContentRequest'
2577
2656
  IMAGE: '#/components/schemas/ImageChatMessageContentRequest'
2657
+ AUDIO: '#/components/schemas/AudioChatMessageContentRequest'
2578
2658
  ChatMessageEnum:
2579
2659
  type: string
2580
2660
  enum:
@@ -3276,6 +3356,19 @@ components:
3276
3356
  - history_item
3277
3357
  - name
3278
3358
  - source
3359
+ DockerServiceToken:
3360
+ type: object
3361
+ properties:
3362
+ access_token:
3363
+ type: string
3364
+ organization_id:
3365
+ type: string
3366
+ repository:
3367
+ type: string
3368
+ required:
3369
+ - access_token
3370
+ - organization_id
3371
+ - repository
3279
3372
  DocumentDocumentToDocumentIndex:
3280
3373
  type: object
3281
3374
  properties:
@@ -3571,6 +3664,7 @@ components:
3571
3664
  the original request options.
3572
3665
  model_version_id:
3573
3666
  type: string
3667
+ nullable: true
3574
3668
  description: The ID of the model version used to generate this completion.
3575
3669
  prompt_version_id:
3576
3670
  type: string
@@ -10008,6 +10102,29 @@ components:
10008
10102
  - block_type
10009
10103
  - id
10010
10104
  - input_variable_id
10105
+ VellumAudio:
10106
+ type: object
10107
+ properties:
10108
+ src:
10109
+ type: string
10110
+ metadata:
10111
+ type: object
10112
+ additionalProperties: {}
10113
+ nullable: true
10114
+ required:
10115
+ - src
10116
+ VellumAudioRequest:
10117
+ type: object
10118
+ properties:
10119
+ src:
10120
+ type: string
10121
+ minLength: 1
10122
+ metadata:
10123
+ type: object
10124
+ additionalProperties: {}
10125
+ nullable: true
10126
+ required:
10127
+ - src
10011
10128
  VellumError:
10012
10129
  type: object
10013
10130
  properties:
@@ -10815,6 +10932,10 @@ components:
10815
10932
  label:
10816
10933
  type: string
10817
10934
  minLength: 1
10935
+ workflow_sandbox_id:
10936
+ type: string
10937
+ format: uuid
10938
+ nullable: true
10818
10939
  required:
10819
10940
  - exec_config
10820
10941
  - label
package/Client.js CHANGED
@@ -94,7 +94,7 @@ class VellumClient {
94
94
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
95
95
  .default, "v1/execute-code"),
96
96
  method: "POST",
97
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
97
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
98
98
  contentType: "application/json",
99
99
  requestType: "json",
100
100
  body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -163,7 +163,7 @@ class VellumClient {
163
163
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
164
164
  .predict, "v1/execute-prompt"),
165
165
  method: "POST",
166
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
166
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -221,7 +221,7 @@ class VellumClient {
221
221
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
222
222
  .predict, "v1/execute-prompt-stream"),
223
223
  method: "POST",
224
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -306,7 +306,7 @@ class VellumClient {
306
306
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
307
307
  .predict, "v1/execute-workflow"),
308
308
  method: "POST",
309
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
310
310
  contentType: "application/json",
311
311
  requestType: "json",
312
312
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -362,7 +362,7 @@ class VellumClient {
362
362
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
363
363
  .predict, "v1/execute-workflow-stream"),
364
364
  method: "POST",
365
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
365
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
366
366
  contentType: "application/json",
367
367
  requestType: "json",
368
368
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -449,7 +449,7 @@ class VellumClient {
449
449
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
450
450
  .predict, "v1/generate"),
451
451
  method: "POST",
452
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
452
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
453
453
  contentType: "application/json",
454
454
  requestType: "json",
455
455
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -510,7 +510,7 @@ class VellumClient {
510
510
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
511
511
  .predict, "v1/generate-stream"),
512
512
  method: "POST",
513
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
514
514
  contentType: "application/json",
515
515
  requestType: "json",
516
516
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -591,7 +591,7 @@ class VellumClient {
591
591
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
592
592
  .predict, "v1/search"),
593
593
  method: "POST",
594
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
594
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
595
595
  contentType: "application/json",
596
596
  requestType: "json",
597
597
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -659,7 +659,7 @@ class VellumClient {
659
659
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
660
660
  .predict, "v1/submit-completion-actuals"),
661
661
  method: "POST",
662
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
662
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
663
663
  contentType: "application/json",
664
664
  requestType: "json",
665
665
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -722,7 +722,7 @@ class VellumClient {
722
722
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
723
723
  .predict, "v1/submit-workflow-execution-actuals"),
724
724
  method: "POST",
725
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
725
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
726
726
  contentType: "application/json",
727
727
  requestType: "json",
728
728
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -59,7 +59,7 @@ class AdHoc {
59
59
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
60
60
  .default, "v1/ad-hoc/execute-prompt-stream"),
61
61
  method: "POST",
62
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -41,6 +41,15 @@ export declare class ContainerImages {
41
41
  * await client.containerImages.retrieve("id")
42
42
  */
43
43
  retrieve(id: string, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.ContainerImageRead>;
44
+ /**
45
+ * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
46
+ *
47
+ * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
48
+ *
49
+ * @example
50
+ * await client.containerImages.dockerServiceToken()
51
+ */
52
+ dockerServiceToken(requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.DockerServiceToken>;
44
53
  /**
45
54
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
46
55
  *
@@ -75,7 +75,7 @@ class ContainerImages {
75
75
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
76
76
  .default, "v1/container-images"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -128,7 +128,7 @@ class ContainerImages {
128
128
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
129
129
  .default, `v1/container-images/${encodeURIComponent(id)}`),
130
130
  method: "GET",
131
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
132
  contentType: "application/json",
133
133
  requestType: "json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -164,6 +164,57 @@ class ContainerImages {
164
164
  }
165
165
  });
166
166
  }
167
+ /**
168
+ * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
169
+ *
170
+ * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
171
+ *
172
+ * @example
173
+ * await client.containerImages.dockerServiceToken()
174
+ */
175
+ dockerServiceToken(requestOptions) {
176
+ var _a;
177
+ return __awaiter(this, void 0, void 0, function* () {
178
+ const _response = yield core.fetcher({
179
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
180
+ .default, "v1/container-images/docker-service-token"),
181
+ method: "GET",
182
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
+ contentType: "application/json",
184
+ requestType: "json",
185
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
186
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
187
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
188
+ });
189
+ if (_response.ok) {
190
+ return serializers.DockerServiceToken.parseOrThrow(_response.body, {
191
+ unrecognizedObjectKeys: "passthrough",
192
+ allowUnrecognizedUnionMembers: true,
193
+ allowUnrecognizedEnumValues: true,
194
+ breadcrumbsPrefix: ["response"],
195
+ });
196
+ }
197
+ if (_response.error.reason === "status-code") {
198
+ throw new errors.VellumError({
199
+ statusCode: _response.error.statusCode,
200
+ body: _response.error.body,
201
+ });
202
+ }
203
+ switch (_response.error.reason) {
204
+ case "non-json":
205
+ throw new errors.VellumError({
206
+ statusCode: _response.error.statusCode,
207
+ body: _response.error.rawBody,
208
+ });
209
+ case "timeout":
210
+ throw new errors.VellumTimeoutError();
211
+ case "unknown":
212
+ throw new errors.VellumError({
213
+ message: _response.error.errorMessage,
214
+ });
215
+ }
216
+ });
217
+ }
167
218
  /**
168
219
  * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
169
220
  *
@@ -184,7 +235,7 @@ class ContainerImages {
184
235
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
236
  .default, "v1/container-images/push"),
186
237
  method: "POST",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
238
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.3", "User-Agent": "vellum-ai/v0.9.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
239
  contentType: "application/json",
189
240
  requestType: "json",
190
241
  body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),