vellum-ai 0.9.2 → 0.9.4
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/.mock/definition/__package__.yml +57 -3
- package/.mock/definition/containerImages.yml +20 -0
- package/.mock/definition/workflows.yml +22 -2
- package/.mock/openapi/openapi.yml +137 -1
- package/Client.js +10 -10
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.d.ts +9 -0
- package/api/resources/containerImages/client/Client.js +54 -3
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/metricDefinitions/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.d.ts +6 -0
- package/api/resources/workflows/client/Client.js +44 -2
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/ArrayVariableValueItem.d.ts +1 -1
- package/api/types/AudioVariableValue.d.ts +11 -0
- package/api/types/AudioVariableValue.js +5 -0
- package/api/types/AudioVellumValue.d.ts +11 -0
- package/api/types/AudioVellumValue.js +5 -0
- package/api/types/AudioVellumValueRequest.d.ts +11 -0
- package/api/types/AudioVellumValueRequest.js +5 -0
- package/api/types/DockerServiceToken.d.ts +8 -0
- package/api/types/DockerServiceToken.js +5 -0
- package/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/api/types/VellumAudio.d.ts +1 -0
- package/api/types/VellumAudioRequest.d.ts +1 -0
- package/api/types/VellumValue.d.ts +1 -1
- package/api/types/VellumValueRequest.d.ts +1 -1
- package/api/types/WorkflowPushDeploymentConfigRequest.d.ts +9 -0
- package/api/types/WorkflowPushDeploymentConfigRequest.js +5 -0
- package/api/types/WorkflowPushResponse.d.ts +1 -0
- package/api/types/index.d.ts +5 -0
- package/api/types/index.js +5 -0
- package/dist/Client.js +10 -10
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/containerImages/client/Client.d.ts +9 -0
- package/dist/api/resources/containerImages/client/Client.js +54 -3
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.d.ts +6 -0
- package/dist/api/resources/workflows/client/Client.js +44 -2
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/ArrayVariableValueItem.d.ts +1 -1
- package/dist/api/types/AudioVariableValue.d.ts +11 -0
- package/dist/api/types/AudioVariableValue.js +5 -0
- package/dist/api/types/AudioVellumValue.d.ts +11 -0
- package/dist/api/types/AudioVellumValue.js +5 -0
- package/dist/api/types/AudioVellumValueRequest.d.ts +11 -0
- package/dist/api/types/AudioVellumValueRequest.js +5 -0
- package/dist/api/types/DockerServiceToken.d.ts +8 -0
- package/dist/api/types/DockerServiceToken.js +5 -0
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/dist/api/types/VellumAudio.d.ts +1 -0
- package/dist/api/types/VellumAudioRequest.d.ts +1 -0
- package/dist/api/types/VellumValue.d.ts +1 -1
- package/dist/api/types/VellumValueRequest.d.ts +1 -1
- package/dist/api/types/WorkflowPushDeploymentConfigRequest.d.ts +9 -0
- package/dist/api/types/WorkflowPushDeploymentConfigRequest.js +5 -0
- package/dist/api/types/WorkflowPushResponse.d.ts +1 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -0
- package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +2 -0
- package/dist/serialization/types/ArrayVariableValueItem.d.ts +2 -1
- package/dist/serialization/types/ArrayVariableValueItem.js +2 -0
- package/dist/serialization/types/AudioVariableValue.d.ts +14 -0
- package/dist/serialization/types/AudioVariableValue.js +35 -0
- package/dist/serialization/types/AudioVellumValue.d.ts +14 -0
- package/dist/serialization/types/AudioVellumValue.js +35 -0
- package/dist/serialization/types/AudioVellumValueRequest.d.ts +14 -0
- package/dist/serialization/types/AudioVellumValueRequest.js +35 -0
- package/dist/serialization/types/DockerServiceToken.d.ts +14 -0
- package/dist/serialization/types/DockerServiceToken.js +35 -0
- package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/dist/serialization/types/VellumValue.d.ts +2 -1
- package/dist/serialization/types/VellumValue.js +2 -0
- package/dist/serialization/types/VellumValueRequest.d.ts +2 -1
- package/dist/serialization/types/VellumValueRequest.js +2 -0
- package/dist/serialization/types/WorkflowPushDeploymentConfigRequest.d.ts +15 -0
- package/dist/serialization/types/WorkflowPushDeploymentConfigRequest.js +36 -0
- package/dist/serialization/types/WorkflowPushResponse.d.ts +1 -0
- package/dist/serialization/types/WorkflowPushResponse.js +1 -0
- package/dist/serialization/types/index.d.ts +5 -0
- package/dist/serialization/types/index.js +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +118 -0
- package/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -0
- package/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +2 -0
- package/serialization/types/ArrayVariableValueItem.d.ts +2 -1
- package/serialization/types/ArrayVariableValueItem.js +2 -0
- package/serialization/types/AudioVariableValue.d.ts +14 -0
- package/serialization/types/AudioVariableValue.js +35 -0
- package/serialization/types/AudioVellumValue.d.ts +14 -0
- package/serialization/types/AudioVellumValue.js +35 -0
- package/serialization/types/AudioVellumValueRequest.d.ts +14 -0
- package/serialization/types/AudioVellumValueRequest.js +35 -0
- package/serialization/types/DockerServiceToken.d.ts +14 -0
- package/serialization/types/DockerServiceToken.js +35 -0
- package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/serialization/types/VellumValue.d.ts +2 -1
- package/serialization/types/VellumValue.js +2 -0
- package/serialization/types/VellumValueRequest.d.ts +2 -1
- package/serialization/types/VellumValueRequest.js +2 -0
- package/serialization/types/WorkflowPushDeploymentConfigRequest.d.ts +15 -0
- package/serialization/types/WorkflowPushDeploymentConfigRequest.js +36 -0
- package/serialization/types/WorkflowPushResponse.d.ts +1 -0
- package/serialization/types/WorkflowPushResponse.js +1 -0
- package/serialization/types/index.d.ts +5 -0
- package/serialization/types/index.js +5 -0
- package/version.d.ts +1 -1
- 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
|
|
@@ -823,6 +822,7 @@ types:
|
|
|
823
822
|
- ErrorVariableValue
|
|
824
823
|
- FunctionCallVariableValue
|
|
825
824
|
- ImageVariableValue
|
|
825
|
+
- AudioVariableValue
|
|
826
826
|
- ChatHistoryVariableValue
|
|
827
827
|
- SearchResultsVariableValue
|
|
828
828
|
- ArrayVariableValue
|
|
@@ -857,6 +857,27 @@ types:
|
|
|
857
857
|
source:
|
|
858
858
|
openapi: openapi/openapi.yml
|
|
859
859
|
AudioEnum: literal<"AUDIO">
|
|
860
|
+
AudioVariableValue:
|
|
861
|
+
docs: A base Vellum primitive value representing audio.
|
|
862
|
+
properties:
|
|
863
|
+
type: literal<"AUDIO">
|
|
864
|
+
value: optional<VellumAudio>
|
|
865
|
+
source:
|
|
866
|
+
openapi: openapi/openapi.yml
|
|
867
|
+
AudioVellumValue:
|
|
868
|
+
docs: A base Vellum primitive value representing audio.
|
|
869
|
+
properties:
|
|
870
|
+
type: literal<"AUDIO">
|
|
871
|
+
value: optional<VellumAudio>
|
|
872
|
+
source:
|
|
873
|
+
openapi: openapi/openapi.yml
|
|
874
|
+
AudioVellumValueRequest:
|
|
875
|
+
docs: A base Vellum primitive value representing audio.
|
|
876
|
+
properties:
|
|
877
|
+
type: literal<"AUDIO">
|
|
878
|
+
value: optional<VellumAudioRequest>
|
|
879
|
+
source:
|
|
880
|
+
openapi: openapi/openapi.yml
|
|
860
881
|
BasicVectorizerIntfloatMultilingualE5Large:
|
|
861
882
|
docs: Basic vectorizer for intfloat/multilingual-e5-large.
|
|
862
883
|
properties:
|
|
@@ -1352,6 +1373,13 @@ types:
|
|
|
1352
1373
|
docs: The Deployment History Item that this Release Tag is associated with
|
|
1353
1374
|
source:
|
|
1354
1375
|
openapi: openapi/openapi.yml
|
|
1376
|
+
DockerServiceToken:
|
|
1377
|
+
properties:
|
|
1378
|
+
access_token: string
|
|
1379
|
+
organization_id: string
|
|
1380
|
+
repository: string
|
|
1381
|
+
source:
|
|
1382
|
+
openapi: openapi/openapi.yml
|
|
1355
1383
|
DocumentDocumentToDocumentIndex:
|
|
1356
1384
|
properties:
|
|
1357
1385
|
id:
|
|
@@ -1524,7 +1552,7 @@ types:
|
|
|
1524
1552
|
The logprobs of the completion. Only present if specified in the
|
|
1525
1553
|
original request options.
|
|
1526
1554
|
model_version_id:
|
|
1527
|
-
type: string
|
|
1555
|
+
type: optional<string>
|
|
1528
1556
|
docs: The ID of the model version used to generate this completion.
|
|
1529
1557
|
prompt_version_id: string
|
|
1530
1558
|
type: optional<VellumVariableType>
|
|
@@ -5391,7 +5419,9 @@ types:
|
|
|
5391
5419
|
openapi: openapi/openapi.yml
|
|
5392
5420
|
VellumAudio:
|
|
5393
5421
|
properties:
|
|
5394
|
-
src:
|
|
5422
|
+
src:
|
|
5423
|
+
type: string
|
|
5424
|
+
docs: A valid data URL containing the audio data.
|
|
5395
5425
|
metadata: optional<map<string, unknown>>
|
|
5396
5426
|
source:
|
|
5397
5427
|
openapi: openapi/openapi.yml
|
|
@@ -5399,6 +5429,7 @@ types:
|
|
|
5399
5429
|
properties:
|
|
5400
5430
|
src:
|
|
5401
5431
|
type: string
|
|
5432
|
+
docs: A valid data URL containing the audio data.
|
|
5402
5433
|
validation:
|
|
5403
5434
|
minLength: 1
|
|
5404
5435
|
metadata: optional<map<string, unknown>>
|
|
@@ -5456,6 +5487,7 @@ types:
|
|
|
5456
5487
|
- NumberVellumValue
|
|
5457
5488
|
- JsonVellumValue
|
|
5458
5489
|
- ImageVellumValue
|
|
5490
|
+
- AudioVellumValue
|
|
5459
5491
|
- FunctionCallVellumValue
|
|
5460
5492
|
- ErrorVellumValue
|
|
5461
5493
|
- ArrayVellumValue
|
|
@@ -5497,6 +5529,7 @@ types:
|
|
|
5497
5529
|
- NumberVellumValueRequest
|
|
5498
5530
|
- JsonVellumValueRequest
|
|
5499
5531
|
- ImageVellumValueRequest
|
|
5532
|
+
- AudioVellumValueRequest
|
|
5500
5533
|
- FunctionCallVellumValueRequest
|
|
5501
5534
|
- ErrorVellumValueRequest
|
|
5502
5535
|
- ArrayVellumValueRequest
|
|
@@ -5987,6 +6020,23 @@ types:
|
|
|
5987
6020
|
value: optional<string>
|
|
5988
6021
|
source:
|
|
5989
6022
|
openapi: openapi/openapi.yml
|
|
6023
|
+
WorkflowPushDeploymentConfigRequest:
|
|
6024
|
+
properties:
|
|
6025
|
+
label:
|
|
6026
|
+
type: optional<string>
|
|
6027
|
+
validation:
|
|
6028
|
+
minLength: 1
|
|
6029
|
+
name:
|
|
6030
|
+
type: optional<string>
|
|
6031
|
+
validation:
|
|
6032
|
+
minLength: 1
|
|
6033
|
+
description:
|
|
6034
|
+
type: optional<string>
|
|
6035
|
+
validation:
|
|
6036
|
+
minLength: 1
|
|
6037
|
+
release_tags: optional<list<string>>
|
|
6038
|
+
source:
|
|
6039
|
+
openapi: openapi/openapi.yml
|
|
5990
6040
|
WorkflowPushExecConfig: map<string, unknown>
|
|
5991
6041
|
WorkflowPushResponse:
|
|
5992
6042
|
properties:
|
|
@@ -5994,6 +6044,10 @@ types:
|
|
|
5994
6044
|
type: string
|
|
5995
6045
|
validation:
|
|
5996
6046
|
format: uuid
|
|
6047
|
+
workflow_deployment_id:
|
|
6048
|
+
type: optional<string>
|
|
6049
|
+
validation:
|
|
6050
|
+
format: uuid
|
|
5997
6051
|
source:
|
|
5998
6052
|
openapi: openapi/openapi.yml
|
|
5999
6053
|
WorkflowReleaseTagRead:
|
|
@@ -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
|
|
@@ -24,6 +40,7 @@ service:
|
|
|
24
40
|
type: optional<string>
|
|
25
41
|
validation:
|
|
26
42
|
format: uuid
|
|
43
|
+
deployment_config: optional<root.WorkflowPushDeploymentConfigRequest>
|
|
27
44
|
response:
|
|
28
45
|
docs: ''
|
|
29
46
|
type: root.WorkflowPushResponse
|
|
@@ -37,7 +54,10 @@ service:
|
|
|
37
54
|
response:
|
|
38
55
|
body:
|
|
39
56
|
workflow_sandbox_id: workflow_sandbox_id
|
|
57
|
+
workflow_deployment_id: workflow_deployment_id
|
|
40
58
|
audiences:
|
|
41
59
|
- internal
|
|
42
60
|
source:
|
|
43
61
|
openapi: openapi/openapi.yml
|
|
62
|
+
imports:
|
|
63
|
+
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:
|
|
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:
|
|
@@ -2357,6 +2403,7 @@ components:
|
|
|
2357
2403
|
- $ref: '#/components/schemas/ErrorVariableValue'
|
|
2358
2404
|
- $ref: '#/components/schemas/FunctionCallVariableValue'
|
|
2359
2405
|
- $ref: '#/components/schemas/ImageVariableValue'
|
|
2406
|
+
- $ref: '#/components/schemas/AudioVariableValue'
|
|
2360
2407
|
- $ref: '#/components/schemas/ChatHistoryVariableValue'
|
|
2361
2408
|
- $ref: '#/components/schemas/SearchResultsVariableValue'
|
|
2362
2409
|
- $ref: '#/components/schemas/ArrayVariableValue'
|
|
@@ -2369,6 +2416,7 @@ components:
|
|
|
2369
2416
|
ERROR: '#/components/schemas/ErrorVariableValue'
|
|
2370
2417
|
FUNCTION_CALL: '#/components/schemas/FunctionCallVariableValue'
|
|
2371
2418
|
IMAGE: '#/components/schemas/ImageVariableValue'
|
|
2419
|
+
AUDIO: '#/components/schemas/AudioVariableValue'
|
|
2372
2420
|
CHAT_HISTORY: '#/components/schemas/ChatHistoryVariableValue'
|
|
2373
2421
|
SEARCH_RESULTS: '#/components/schemas/SearchResultsVariableValue'
|
|
2374
2422
|
ARRAY: '#/components/schemas/ArrayVariableValue'
|
|
@@ -2426,6 +2474,45 @@ components:
|
|
|
2426
2474
|
type: string
|
|
2427
2475
|
enum:
|
|
2428
2476
|
- AUDIO
|
|
2477
|
+
AudioVariableValue:
|
|
2478
|
+
type: object
|
|
2479
|
+
description: A base Vellum primitive value representing audio.
|
|
2480
|
+
properties:
|
|
2481
|
+
type:
|
|
2482
|
+
$ref: '#/components/schemas/AudioEnum'
|
|
2483
|
+
value:
|
|
2484
|
+
allOf:
|
|
2485
|
+
- $ref: '#/components/schemas/VellumAudio'
|
|
2486
|
+
nullable: true
|
|
2487
|
+
required:
|
|
2488
|
+
- type
|
|
2489
|
+
- value
|
|
2490
|
+
AudioVellumValue:
|
|
2491
|
+
type: object
|
|
2492
|
+
description: A base Vellum primitive value representing audio.
|
|
2493
|
+
properties:
|
|
2494
|
+
type:
|
|
2495
|
+
$ref: '#/components/schemas/AudioEnum'
|
|
2496
|
+
value:
|
|
2497
|
+
allOf:
|
|
2498
|
+
- $ref: '#/components/schemas/VellumAudio'
|
|
2499
|
+
nullable: true
|
|
2500
|
+
required:
|
|
2501
|
+
- type
|
|
2502
|
+
- value
|
|
2503
|
+
AudioVellumValueRequest:
|
|
2504
|
+
type: object
|
|
2505
|
+
description: A base Vellum primitive value representing audio.
|
|
2506
|
+
properties:
|
|
2507
|
+
type:
|
|
2508
|
+
$ref: '#/components/schemas/AudioEnum'
|
|
2509
|
+
value:
|
|
2510
|
+
allOf:
|
|
2511
|
+
- $ref: '#/components/schemas/VellumAudioRequest'
|
|
2512
|
+
nullable: true
|
|
2513
|
+
required:
|
|
2514
|
+
- type
|
|
2515
|
+
- value
|
|
2429
2516
|
BasicVectorizerIntfloatMultilingualE5Large:
|
|
2430
2517
|
type: object
|
|
2431
2518
|
description: Basic vectorizer for intfloat/multilingual-e5-large.
|
|
@@ -3310,6 +3397,19 @@ components:
|
|
|
3310
3397
|
- history_item
|
|
3311
3398
|
- name
|
|
3312
3399
|
- source
|
|
3400
|
+
DockerServiceToken:
|
|
3401
|
+
type: object
|
|
3402
|
+
properties:
|
|
3403
|
+
access_token:
|
|
3404
|
+
type: string
|
|
3405
|
+
organization_id:
|
|
3406
|
+
type: string
|
|
3407
|
+
repository:
|
|
3408
|
+
type: string
|
|
3409
|
+
required:
|
|
3410
|
+
- access_token
|
|
3411
|
+
- organization_id
|
|
3412
|
+
- repository
|
|
3313
3413
|
DocumentDocumentToDocumentIndex:
|
|
3314
3414
|
type: object
|
|
3315
3415
|
properties:
|
|
@@ -3605,6 +3705,7 @@ components:
|
|
|
3605
3705
|
the original request options.
|
|
3606
3706
|
model_version_id:
|
|
3607
3707
|
type: string
|
|
3708
|
+
nullable: true
|
|
3608
3709
|
description: The ID of the model version used to generate this completion.
|
|
3609
3710
|
prompt_version_id:
|
|
3610
3711
|
type: string
|
|
@@ -10047,6 +10148,7 @@ components:
|
|
|
10047
10148
|
properties:
|
|
10048
10149
|
src:
|
|
10049
10150
|
type: string
|
|
10151
|
+
description: A valid data URL containing the audio data.
|
|
10050
10152
|
metadata:
|
|
10051
10153
|
type: object
|
|
10052
10154
|
additionalProperties: {}
|
|
@@ -10059,6 +10161,7 @@ components:
|
|
|
10059
10161
|
src:
|
|
10060
10162
|
type: string
|
|
10061
10163
|
minLength: 1
|
|
10164
|
+
description: A valid data URL containing the audio data.
|
|
10062
10165
|
metadata:
|
|
10063
10166
|
type: object
|
|
10064
10167
|
additionalProperties: {}
|
|
@@ -10129,6 +10232,7 @@ components:
|
|
|
10129
10232
|
- $ref: '#/components/schemas/NumberVellumValue'
|
|
10130
10233
|
- $ref: '#/components/schemas/JsonVellumValue'
|
|
10131
10234
|
- $ref: '#/components/schemas/ImageVellumValue'
|
|
10235
|
+
- $ref: '#/components/schemas/AudioVellumValue'
|
|
10132
10236
|
- $ref: '#/components/schemas/FunctionCallVellumValue'
|
|
10133
10237
|
- $ref: '#/components/schemas/ErrorVellumValue'
|
|
10134
10238
|
- $ref: '#/components/schemas/ArrayVellumValue'
|
|
@@ -10141,6 +10245,7 @@ components:
|
|
|
10141
10245
|
NUMBER: '#/components/schemas/NumberVellumValue'
|
|
10142
10246
|
JSON: '#/components/schemas/JsonVellumValue'
|
|
10143
10247
|
IMAGE: '#/components/schemas/ImageVellumValue'
|
|
10248
|
+
AUDIO: '#/components/schemas/AudioVellumValue'
|
|
10144
10249
|
FUNCTION_CALL: '#/components/schemas/FunctionCallVellumValue'
|
|
10145
10250
|
ERROR: '#/components/schemas/ErrorVellumValue'
|
|
10146
10251
|
ARRAY: '#/components/schemas/ArrayVellumValue'
|
|
@@ -10198,6 +10303,7 @@ components:
|
|
|
10198
10303
|
- $ref: '#/components/schemas/NumberVellumValueRequest'
|
|
10199
10304
|
- $ref: '#/components/schemas/JsonVellumValueRequest'
|
|
10200
10305
|
- $ref: '#/components/schemas/ImageVellumValueRequest'
|
|
10306
|
+
- $ref: '#/components/schemas/AudioVellumValueRequest'
|
|
10201
10307
|
- $ref: '#/components/schemas/FunctionCallVellumValueRequest'
|
|
10202
10308
|
- $ref: '#/components/schemas/ErrorVellumValueRequest'
|
|
10203
10309
|
- $ref: '#/components/schemas/ArrayVellumValueRequest'
|
|
@@ -10210,6 +10316,7 @@ components:
|
|
|
10210
10316
|
NUMBER: '#/components/schemas/NumberVellumValueRequest'
|
|
10211
10317
|
JSON: '#/components/schemas/JsonVellumValueRequest'
|
|
10212
10318
|
IMAGE: '#/components/schemas/ImageVellumValueRequest'
|
|
10319
|
+
AUDIO: '#/components/schemas/AudioVellumValueRequest'
|
|
10213
10320
|
FUNCTION_CALL: '#/components/schemas/FunctionCallVellumValueRequest'
|
|
10214
10321
|
ERROR: '#/components/schemas/ErrorVellumValueRequest'
|
|
10215
10322
|
ARRAY: '#/components/schemas/ArrayVellumValueRequest'
|
|
@@ -10861,6 +10968,27 @@ components:
|
|
|
10861
10968
|
- name
|
|
10862
10969
|
- type
|
|
10863
10970
|
- value
|
|
10971
|
+
WorkflowPushDeploymentConfigRequest:
|
|
10972
|
+
type: object
|
|
10973
|
+
properties:
|
|
10974
|
+
label:
|
|
10975
|
+
type: string
|
|
10976
|
+
nullable: true
|
|
10977
|
+
minLength: 1
|
|
10978
|
+
name:
|
|
10979
|
+
type: string
|
|
10980
|
+
nullable: true
|
|
10981
|
+
minLength: 1
|
|
10982
|
+
description:
|
|
10983
|
+
type: string
|
|
10984
|
+
nullable: true
|
|
10985
|
+
minLength: 1
|
|
10986
|
+
release_tags:
|
|
10987
|
+
type: array
|
|
10988
|
+
items:
|
|
10989
|
+
type: string
|
|
10990
|
+
minLength: 1
|
|
10991
|
+
nullable: true
|
|
10864
10992
|
WorkflowPushExecConfig:
|
|
10865
10993
|
type: object
|
|
10866
10994
|
additionalProperties: {}
|
|
@@ -10876,6 +11004,10 @@ components:
|
|
|
10876
11004
|
type: string
|
|
10877
11005
|
format: uuid
|
|
10878
11006
|
nullable: true
|
|
11007
|
+
deployment_config:
|
|
11008
|
+
allOf:
|
|
11009
|
+
- $ref: '#/components/schemas/WorkflowPushDeploymentConfigRequest'
|
|
11010
|
+
nullable: true
|
|
10879
11011
|
required:
|
|
10880
11012
|
- exec_config
|
|
10881
11013
|
- label
|
|
@@ -10885,6 +11017,10 @@ components:
|
|
|
10885
11017
|
workflow_sandbox_id:
|
|
10886
11018
|
type: string
|
|
10887
11019
|
format: uuid
|
|
11020
|
+
workflow_deployment_id:
|
|
11021
|
+
type: string
|
|
11022
|
+
format: uuid
|
|
11023
|
+
nullable: true
|
|
10888
11024
|
required:
|
|
10889
11025
|
- workflow_sandbox_id
|
|
10890
11026
|
WorkflowReleaseTagRead:
|
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": "0.9.
|
|
97
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
166
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
224
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
309
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
365
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
452
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
513
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
594
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
662
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
725
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
62
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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": "0.9.
|
|
238
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.4", "User-Agent": "vellum-ai/0.9.4", "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" }),
|