vellum-ai 0.12.4 → 0.12.6
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 +29 -12
- package/.mock/definition/workflows.yml +4 -0
- package/.mock/openapi/openapi.yml +57 -19
- package/Client.js +10 -10
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +7 -7
- 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 +2 -2
- package/api/resources/mlModels/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 +6 -6
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +15 -3
- package/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +4 -0
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/ChatMessagePromptBlock.d.ts +1 -1
- package/api/types/FunctionDefinition.d.ts +6 -1
- package/api/types/JinjaPromptBlock.d.ts +1 -1
- package/api/types/PlainTextPromptBlock.d.ts +1 -1
- package/api/types/PromptBlockState.d.ts +2 -2
- package/api/types/RichTextPromptBlock.d.ts +1 -1
- package/api/types/VariablePromptBlock.d.ts +1 -1
- package/dist/Client.js +10 -10
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +7 -7
- 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 +2 -2
- package/dist/api/resources/mlModels/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 +6 -6
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +15 -3
- package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +4 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/ChatMessagePromptBlock.d.ts +1 -1
- package/dist/api/types/FunctionDefinition.d.ts +6 -1
- package/dist/api/types/JinjaPromptBlock.d.ts +1 -1
- package/dist/api/types/PlainTextPromptBlock.d.ts +1 -1
- package/dist/api/types/PromptBlockState.d.ts +2 -2
- package/dist/api/types/RichTextPromptBlock.d.ts +1 -1
- package/dist/api/types/VariablePromptBlock.d.ts +1 -1
- package/dist/serialization/types/ChatMessagePromptBlock.d.ts +1 -1
- package/dist/serialization/types/ChatMessagePromptBlock.js +1 -1
- package/dist/serialization/types/JinjaPromptBlock.d.ts +1 -1
- package/dist/serialization/types/JinjaPromptBlock.js +1 -1
- package/dist/serialization/types/PlainTextPromptBlock.d.ts +1 -1
- package/dist/serialization/types/PlainTextPromptBlock.js +1 -1
- package/dist/serialization/types/RichTextPromptBlock.d.ts +1 -1
- package/dist/serialization/types/RichTextPromptBlock.js +1 -1
- package/dist/serialization/types/VariablePromptBlock.d.ts +1 -1
- package/dist/serialization/types/VariablePromptBlock.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ChatMessagePromptBlock.d.ts +1 -1
- package/serialization/types/ChatMessagePromptBlock.js +1 -1
- package/serialization/types/JinjaPromptBlock.d.ts +1 -1
- package/serialization/types/JinjaPromptBlock.js +1 -1
- package/serialization/types/PlainTextPromptBlock.d.ts +1 -1
- package/serialization/types/PlainTextPromptBlock.js +1 -1
- package/serialization/types/RichTextPromptBlock.d.ts +1 -1
- package/serialization/types/RichTextPromptBlock.js +1 -1
- package/serialization/types/VariablePromptBlock.d.ts +1 -1
- package/serialization/types/VariablePromptBlock.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1123,9 +1123,9 @@ types:
|
|
|
1123
1123
|
ChatMessagePromptBlock:
|
|
1124
1124
|
docs: A block that represents a chat message in a prompt template.
|
|
1125
1125
|
properties:
|
|
1126
|
+
block_type: literal<"CHAT_MESSAGE">
|
|
1126
1127
|
state: optional<PromptBlockState>
|
|
1127
1128
|
cache_config: optional<EphemeralPromptCacheConfig>
|
|
1128
|
-
block_type: literal<"CHAT_MESSAGE">
|
|
1129
1129
|
chat_role: ChatMessageRole
|
|
1130
1130
|
chat_source:
|
|
1131
1131
|
type: optional<string>
|
|
@@ -2295,18 +2295,35 @@ types:
|
|
|
2295
2295
|
source:
|
|
2296
2296
|
openapi: openapi/openapi.yml
|
|
2297
2297
|
FunctionDefinition:
|
|
2298
|
-
docs:
|
|
2298
|
+
docs: >-
|
|
2299
|
+
The definition of a Function (aka "Tool Call") that a Prompt/Model has
|
|
2300
|
+
access to.
|
|
2299
2301
|
properties:
|
|
2300
2302
|
state: optional<PromptBlockState>
|
|
2301
2303
|
cache_config: optional<EphemeralPromptCacheConfig>
|
|
2302
2304
|
name:
|
|
2303
2305
|
type: optional<string>
|
|
2306
|
+
docs: The name identifying the function.
|
|
2304
2307
|
validation:
|
|
2305
2308
|
minLength: 1
|
|
2306
|
-
description:
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2309
|
+
description:
|
|
2310
|
+
type: optional<string>
|
|
2311
|
+
docs: A description to help guide the model when to invoke this function.
|
|
2312
|
+
parameters:
|
|
2313
|
+
type: optional<map<string, unknown>>
|
|
2314
|
+
docs: >-
|
|
2315
|
+
An OpenAPI specification of parameters that are supported by this
|
|
2316
|
+
function.
|
|
2317
|
+
forced:
|
|
2318
|
+
type: optional<boolean>
|
|
2319
|
+
docs: >-
|
|
2320
|
+
Set this option to true to force the model to return a function call
|
|
2321
|
+
of this function.
|
|
2322
|
+
default: false
|
|
2323
|
+
strict:
|
|
2324
|
+
type: optional<boolean>
|
|
2325
|
+
docs: Set this option to use strict schema decoding when available.
|
|
2326
|
+
default: false
|
|
2310
2327
|
source:
|
|
2311
2328
|
openapi: openapi/openapi.yml
|
|
2312
2329
|
GenerateErrorResponse:
|
|
@@ -2643,9 +2660,9 @@ types:
|
|
|
2643
2660
|
JinjaPromptBlock:
|
|
2644
2661
|
docs: A block of Jinja template code that is used to generate a prompt
|
|
2645
2662
|
properties:
|
|
2663
|
+
block_type: literal<"JINJA">
|
|
2646
2664
|
state: optional<PromptBlockState>
|
|
2647
2665
|
cache_config: optional<EphemeralPromptCacheConfig>
|
|
2648
|
-
block_type: literal<"JINJA">
|
|
2649
2666
|
template:
|
|
2650
2667
|
type: string
|
|
2651
2668
|
validation:
|
|
@@ -3571,9 +3588,9 @@ types:
|
|
|
3571
3588
|
PlainTextPromptBlock:
|
|
3572
3589
|
docs: A block that holds a plain text string value.
|
|
3573
3590
|
properties:
|
|
3591
|
+
block_type: literal<"PLAIN_TEXT">
|
|
3574
3592
|
state: optional<PromptBlockState>
|
|
3575
3593
|
cache_config: optional<EphemeralPromptCacheConfig>
|
|
3576
|
-
block_type: literal<"PLAIN_TEXT">
|
|
3577
3594
|
text: string
|
|
3578
3595
|
source:
|
|
3579
3596
|
openapi: openapi/openapi.yml
|
|
@@ -3606,8 +3623,8 @@ types:
|
|
|
3606
3623
|
- ENABLED
|
|
3607
3624
|
- DISABLED
|
|
3608
3625
|
docs: |-
|
|
3609
|
-
* `ENABLED` -
|
|
3610
|
-
* `DISABLED` -
|
|
3626
|
+
* `ENABLED` - Enabled
|
|
3627
|
+
* `DISABLED` - Disabled
|
|
3611
3628
|
source:
|
|
3612
3629
|
openapi: openapi/openapi.yml
|
|
3613
3630
|
PromptDeploymentExpandMetaRequest:
|
|
@@ -3932,9 +3949,9 @@ types:
|
|
|
3932
3949
|
RichTextPromptBlock:
|
|
3933
3950
|
docs: A block that includes a combination of plain text and variable blocks.
|
|
3934
3951
|
properties:
|
|
3952
|
+
block_type: literal<"RICH_TEXT">
|
|
3935
3953
|
state: optional<PromptBlockState>
|
|
3936
3954
|
cache_config: optional<EphemeralPromptCacheConfig>
|
|
3937
|
-
block_type: literal<"RICH_TEXT">
|
|
3938
3955
|
blocks: list<RichTextChildBlock>
|
|
3939
3956
|
source:
|
|
3940
3957
|
openapi: openapi/openapi.yml
|
|
@@ -5777,9 +5794,9 @@ types:
|
|
|
5777
5794
|
VariablePromptBlock:
|
|
5778
5795
|
docs: A block that represents a variable in a prompt template.
|
|
5779
5796
|
properties:
|
|
5797
|
+
block_type: literal<"VARIABLE">
|
|
5780
5798
|
state: optional<PromptBlockState>
|
|
5781
5799
|
cache_config: optional<EphemeralPromptCacheConfig>
|
|
5782
|
-
block_type: literal<"VARIABLE">
|
|
5783
5800
|
input_variable:
|
|
5784
5801
|
type: string
|
|
5785
5802
|
validation:
|
|
@@ -27,7 +27,11 @@ service:
|
|
|
27
27
|
request:
|
|
28
28
|
name: WorkflowsPullRequest
|
|
29
29
|
query-parameters:
|
|
30
|
+
exclude_code: optional<boolean>
|
|
30
31
|
format: optional<WorkflowsPullRequestFormat>
|
|
32
|
+
include_json: optional<boolean>
|
|
33
|
+
include_sandbox: optional<boolean>
|
|
34
|
+
strict: optional<boolean>
|
|
31
35
|
response:
|
|
32
36
|
docs: ''
|
|
33
37
|
type: file
|
|
@@ -2276,6 +2276,10 @@ paths:
|
|
|
2276
2276
|
description: An internal-only endpoint that's subject to breaking changes without
|
|
2277
2277
|
notice. Not intended for public use.
|
|
2278
2278
|
parameters:
|
|
2279
|
+
- in: query
|
|
2280
|
+
name: exclude_code
|
|
2281
|
+
schema:
|
|
2282
|
+
type: boolean
|
|
2279
2283
|
- in: query
|
|
2280
2284
|
name: format
|
|
2281
2285
|
schema:
|
|
@@ -2289,6 +2293,18 @@ paths:
|
|
|
2289
2293
|
type: string
|
|
2290
2294
|
description: The ID of the Workflow to pull from
|
|
2291
2295
|
required: true
|
|
2296
|
+
- in: query
|
|
2297
|
+
name: include_json
|
|
2298
|
+
schema:
|
|
2299
|
+
type: boolean
|
|
2300
|
+
- in: query
|
|
2301
|
+
name: include_sandbox
|
|
2302
|
+
schema:
|
|
2303
|
+
type: boolean
|
|
2304
|
+
- in: query
|
|
2305
|
+
name: strict
|
|
2306
|
+
schema:
|
|
2307
|
+
type: boolean
|
|
2292
2308
|
tags:
|
|
2293
2309
|
- workflows
|
|
2294
2310
|
security:
|
|
@@ -2979,14 +2995,16 @@ components:
|
|
|
2979
2995
|
type: object
|
|
2980
2996
|
description: A block that represents a chat message in a prompt template.
|
|
2981
2997
|
properties:
|
|
2998
|
+
block_type:
|
|
2999
|
+
$ref: '#/components/schemas/ChatMessageEnum'
|
|
2982
3000
|
state:
|
|
2983
|
-
|
|
3001
|
+
allOf:
|
|
3002
|
+
- $ref: '#/components/schemas/PromptBlockState'
|
|
3003
|
+
default: ENABLED
|
|
2984
3004
|
cache_config:
|
|
2985
3005
|
allOf:
|
|
2986
3006
|
- $ref: '#/components/schemas/EphemeralPromptCacheConfig'
|
|
2987
3007
|
nullable: true
|
|
2988
|
-
block_type:
|
|
2989
|
-
$ref: '#/components/schemas/ChatMessageEnum'
|
|
2990
3008
|
chat_role:
|
|
2991
3009
|
$ref: '#/components/schemas/ChatMessageRole'
|
|
2992
3010
|
chat_source:
|
|
@@ -5180,10 +5198,13 @@ components:
|
|
|
5180
5198
|
- value
|
|
5181
5199
|
FunctionDefinition:
|
|
5182
5200
|
type: object
|
|
5183
|
-
description:
|
|
5201
|
+
description: The definition of a Function (aka "Tool Call") that a Prompt/Model
|
|
5202
|
+
has access to.
|
|
5184
5203
|
properties:
|
|
5185
5204
|
state:
|
|
5186
|
-
|
|
5205
|
+
allOf:
|
|
5206
|
+
- $ref: '#/components/schemas/PromptBlockState'
|
|
5207
|
+
default: ENABLED
|
|
5187
5208
|
cache_config:
|
|
5188
5209
|
allOf:
|
|
5189
5210
|
- $ref: '#/components/schemas/EphemeralPromptCacheConfig'
|
|
@@ -5192,19 +5213,28 @@ components:
|
|
|
5192
5213
|
type: string
|
|
5193
5214
|
nullable: true
|
|
5194
5215
|
minLength: 1
|
|
5216
|
+
description: The name identifying the function.
|
|
5195
5217
|
description:
|
|
5196
5218
|
type: string
|
|
5197
5219
|
nullable: true
|
|
5220
|
+
description: A description to help guide the model when to invoke this function.
|
|
5198
5221
|
parameters:
|
|
5199
5222
|
type: object
|
|
5200
5223
|
additionalProperties: {}
|
|
5201
5224
|
nullable: true
|
|
5225
|
+
description: An OpenAPI specification of parameters that are supported by
|
|
5226
|
+
this function.
|
|
5202
5227
|
forced:
|
|
5203
5228
|
type: boolean
|
|
5204
5229
|
nullable: true
|
|
5230
|
+
default: false
|
|
5231
|
+
description: Set this option to true to force the model to return a function
|
|
5232
|
+
call of this function.
|
|
5205
5233
|
strict:
|
|
5206
5234
|
type: boolean
|
|
5207
5235
|
nullable: true
|
|
5236
|
+
default: false
|
|
5237
|
+
description: Set this option to use strict schema decoding when available.
|
|
5208
5238
|
GenerateBodyRequest:
|
|
5209
5239
|
type: object
|
|
5210
5240
|
properties:
|
|
@@ -5743,14 +5773,16 @@ components:
|
|
|
5743
5773
|
type: object
|
|
5744
5774
|
description: A block of Jinja template code that is used to generate a prompt
|
|
5745
5775
|
properties:
|
|
5776
|
+
block_type:
|
|
5777
|
+
$ref: '#/components/schemas/JinjaEnum'
|
|
5746
5778
|
state:
|
|
5747
|
-
|
|
5779
|
+
allOf:
|
|
5780
|
+
- $ref: '#/components/schemas/PromptBlockState'
|
|
5781
|
+
default: ENABLED
|
|
5748
5782
|
cache_config:
|
|
5749
5783
|
allOf:
|
|
5750
5784
|
- $ref: '#/components/schemas/EphemeralPromptCacheConfig'
|
|
5751
5785
|
nullable: true
|
|
5752
|
-
block_type:
|
|
5753
|
-
$ref: '#/components/schemas/JinjaEnum'
|
|
5754
5786
|
template:
|
|
5755
5787
|
type: string
|
|
5756
5788
|
minLength: 1
|
|
@@ -7341,14 +7373,16 @@ components:
|
|
|
7341
7373
|
type: object
|
|
7342
7374
|
description: A block that holds a plain text string value.
|
|
7343
7375
|
properties:
|
|
7376
|
+
block_type:
|
|
7377
|
+
$ref: '#/components/schemas/PlainTextEnum'
|
|
7344
7378
|
state:
|
|
7345
|
-
|
|
7379
|
+
allOf:
|
|
7380
|
+
- $ref: '#/components/schemas/PromptBlockState'
|
|
7381
|
+
default: ENABLED
|
|
7346
7382
|
cache_config:
|
|
7347
7383
|
allOf:
|
|
7348
7384
|
- $ref: '#/components/schemas/EphemeralPromptCacheConfig'
|
|
7349
7385
|
nullable: true
|
|
7350
|
-
block_type:
|
|
7351
|
-
$ref: '#/components/schemas/PlainTextEnum'
|
|
7352
7386
|
text:
|
|
7353
7387
|
type: string
|
|
7354
7388
|
required:
|
|
@@ -7392,8 +7426,8 @@ components:
|
|
|
7392
7426
|
- DISABLED
|
|
7393
7427
|
type: string
|
|
7394
7428
|
description: |-
|
|
7395
|
-
* `ENABLED` -
|
|
7396
|
-
* `DISABLED` -
|
|
7429
|
+
* `ENABLED` - Enabled
|
|
7430
|
+
* `DISABLED` - Disabled
|
|
7397
7431
|
PromptDeploymentExpandMetaRequest:
|
|
7398
7432
|
type: object
|
|
7399
7433
|
properties:
|
|
@@ -7904,14 +7938,16 @@ components:
|
|
|
7904
7938
|
description: A block that includes a combination of plain text and variable
|
|
7905
7939
|
blocks.
|
|
7906
7940
|
properties:
|
|
7941
|
+
block_type:
|
|
7942
|
+
$ref: '#/components/schemas/RichTextEnum'
|
|
7907
7943
|
state:
|
|
7908
|
-
|
|
7944
|
+
allOf:
|
|
7945
|
+
- $ref: '#/components/schemas/PromptBlockState'
|
|
7946
|
+
default: ENABLED
|
|
7909
7947
|
cache_config:
|
|
7910
7948
|
allOf:
|
|
7911
7949
|
- $ref: '#/components/schemas/EphemeralPromptCacheConfig'
|
|
7912
7950
|
nullable: true
|
|
7913
|
-
block_type:
|
|
7914
|
-
$ref: '#/components/schemas/RichTextEnum'
|
|
7915
7951
|
blocks:
|
|
7916
7952
|
type: array
|
|
7917
7953
|
items:
|
|
@@ -10683,14 +10719,16 @@ components:
|
|
|
10683
10719
|
type: object
|
|
10684
10720
|
description: A block that represents a variable in a prompt template.
|
|
10685
10721
|
properties:
|
|
10722
|
+
block_type:
|
|
10723
|
+
$ref: '#/components/schemas/VariableEnum'
|
|
10686
10724
|
state:
|
|
10687
|
-
|
|
10725
|
+
allOf:
|
|
10726
|
+
- $ref: '#/components/schemas/PromptBlockState'
|
|
10727
|
+
default: ENABLED
|
|
10688
10728
|
cache_config:
|
|
10689
10729
|
allOf:
|
|
10690
10730
|
- $ref: '#/components/schemas/EphemeralPromptCacheConfig'
|
|
10691
10731
|
nullable: true
|
|
10692
|
-
block_type:
|
|
10693
|
-
$ref: '#/components/schemas/VariableEnum'
|
|
10694
10732
|
input_variable:
|
|
10695
10733
|
type: string
|
|
10696
10734
|
minLength: 1
|
package/Client.js
CHANGED
|
@@ -95,7 +95,7 @@ class VellumClient {
|
|
|
95
95
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
96
96
|
.default, "v1/execute-code"),
|
|
97
97
|
method: "POST",
|
|
98
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
98
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
99
99
|
contentType: "application/json",
|
|
100
100
|
requestType: "json",
|
|
101
101
|
body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -164,7 +164,7 @@ class VellumClient {
|
|
|
164
164
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
165
165
|
.predict, "v1/execute-prompt"),
|
|
166
166
|
method: "POST",
|
|
167
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
167
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
requestType: "json",
|
|
170
170
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -222,7 +222,7 @@ class VellumClient {
|
|
|
222
222
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
223
223
|
.predict, "v1/execute-prompt-stream"),
|
|
224
224
|
method: "POST",
|
|
225
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
225
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
226
226
|
contentType: "application/json",
|
|
227
227
|
requestType: "json",
|
|
228
228
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -307,7 +307,7 @@ class VellumClient {
|
|
|
307
307
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
308
308
|
.predict, "v1/execute-workflow"),
|
|
309
309
|
method: "POST",
|
|
310
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
310
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
311
311
|
contentType: "application/json",
|
|
312
312
|
requestType: "json",
|
|
313
313
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -363,7 +363,7 @@ class VellumClient {
|
|
|
363
363
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
364
364
|
.predict, "v1/execute-workflow-stream"),
|
|
365
365
|
method: "POST",
|
|
366
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
366
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
367
367
|
contentType: "application/json",
|
|
368
368
|
requestType: "json",
|
|
369
369
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -450,7 +450,7 @@ class VellumClient {
|
|
|
450
450
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
451
451
|
.predict, "v1/generate"),
|
|
452
452
|
method: "POST",
|
|
453
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
453
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
454
454
|
contentType: "application/json",
|
|
455
455
|
requestType: "json",
|
|
456
456
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -511,7 +511,7 @@ class VellumClient {
|
|
|
511
511
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
512
512
|
.predict, "v1/generate-stream"),
|
|
513
513
|
method: "POST",
|
|
514
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
514
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
515
515
|
contentType: "application/json",
|
|
516
516
|
requestType: "json",
|
|
517
517
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -592,7 +592,7 @@ class VellumClient {
|
|
|
592
592
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
593
593
|
.predict, "v1/search"),
|
|
594
594
|
method: "POST",
|
|
595
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
595
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
596
596
|
contentType: "application/json",
|
|
597
597
|
requestType: "json",
|
|
598
598
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -660,7 +660,7 @@ class VellumClient {
|
|
|
660
660
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
661
661
|
.predict, "v1/submit-completion-actuals"),
|
|
662
662
|
method: "POST",
|
|
663
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
663
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
664
664
|
contentType: "application/json",
|
|
665
665
|
requestType: "json",
|
|
666
666
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -723,7 +723,7 @@ class VellumClient {
|
|
|
723
723
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
724
724
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
725
725
|
method: "POST",
|
|
726
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
726
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
727
727
|
contentType: "application/json",
|
|
728
728
|
requestType: "json",
|
|
729
729
|
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.12.
|
|
62
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "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.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -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.12.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "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.12.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "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,
|
|
@@ -179,7 +179,7 @@ class ContainerImages {
|
|
|
179
179
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
180
180
|
.default, "v1/container-images/docker-service-token"),
|
|
181
181
|
method: "GET",
|
|
182
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
182
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
183
183
|
contentType: "application/json",
|
|
184
184
|
requestType: "json",
|
|
185
185
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -235,7 +235,7 @@ class ContainerImages {
|
|
|
235
235
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
236
236
|
.default, "v1/container-images/push"),
|
|
237
237
|
method: "POST",
|
|
238
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
238
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -79,7 +79,7 @@ class Deployments {
|
|
|
79
79
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
80
80
|
.default, "v1/deployments"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -132,7 +132,7 @@ class Deployments {
|
|
|
132
132
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
133
133
|
.default, `v1/deployments/${encodeURIComponent(id)}`),
|
|
134
134
|
method: "GET",
|
|
135
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -185,7 +185,7 @@ class Deployments {
|
|
|
185
185
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
186
186
|
.default, `v1/deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
|
|
187
187
|
method: "GET",
|
|
188
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
188
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
189
189
|
contentType: "application/json",
|
|
190
190
|
requestType: "json",
|
|
191
191
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -252,7 +252,7 @@ class Deployments {
|
|
|
252
252
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
253
253
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags`),
|
|
254
254
|
method: "GET",
|
|
255
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
255
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
256
256
|
contentType: "application/json",
|
|
257
257
|
queryParameters: _queryParams,
|
|
258
258
|
requestType: "json",
|
|
@@ -306,7 +306,7 @@ class Deployments {
|
|
|
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
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
308
308
|
method: "GET",
|
|
309
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
309
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "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
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -360,7 +360,7 @@ class Deployments {
|
|
|
360
360
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
361
361
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
362
362
|
method: "PATCH",
|
|
363
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
363
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
364
364
|
contentType: "application/json",
|
|
365
365
|
requestType: "json",
|
|
366
366
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -435,7 +435,7 @@ class Deployments {
|
|
|
435
435
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
436
436
|
.default, "v1/deployments/provider-payload"),
|
|
437
437
|
method: "POST",
|
|
438
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
438
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
439
439
|
contentType: "application/json",
|
|
440
440
|
requestType: "json",
|
|
441
441
|
body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -81,7 +81,7 @@ class DocumentIndexes {
|
|
|
81
81
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/document-indexes"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
queryParameters: _queryParams,
|
|
87
87
|
requestType: "json",
|
|
@@ -196,7 +196,7 @@ class DocumentIndexes {
|
|
|
196
196
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
197
197
|
.default, "v1/document-indexes"),
|
|
198
198
|
method: "POST",
|
|
199
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
199
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
200
200
|
contentType: "application/json",
|
|
201
201
|
requestType: "json",
|
|
202
202
|
body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -249,7 +249,7 @@ class DocumentIndexes {
|
|
|
249
249
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
250
250
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
251
251
|
method: "GET",
|
|
252
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
253
253
|
contentType: "application/json",
|
|
254
254
|
requestType: "json",
|
|
255
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -304,7 +304,7 @@ class DocumentIndexes {
|
|
|
304
304
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
305
305
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
306
306
|
method: "PUT",
|
|
307
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
307
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
308
308
|
contentType: "application/json",
|
|
309
309
|
requestType: "json",
|
|
310
310
|
body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -357,7 +357,7 @@ class DocumentIndexes {
|
|
|
357
357
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
358
358
|
.documents, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
359
359
|
method: "DELETE",
|
|
360
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
360
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
361
361
|
contentType: "application/json",
|
|
362
362
|
requestType: "json",
|
|
363
363
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -405,7 +405,7 @@ class DocumentIndexes {
|
|
|
405
405
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
406
406
|
.default, `v1/document-indexes/${encodeURIComponent(id)}`),
|
|
407
407
|
method: "PATCH",
|
|
408
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
408
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
409
409
|
contentType: "application/json",
|
|
410
410
|
requestType: "json",
|
|
411
411
|
body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
@@ -461,7 +461,7 @@ class DocumentIndexes {
|
|
|
461
461
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
462
462
|
.default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
|
|
463
463
|
method: "POST",
|
|
464
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
464
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
465
465
|
contentType: "application/json",
|
|
466
466
|
requestType: "json",
|
|
467
467
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -509,7 +509,7 @@ class DocumentIndexes {
|
|
|
509
509
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
510
510
|
.documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
|
|
511
511
|
method: "DELETE",
|
|
512
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.
|
|
512
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.6", "User-Agent": "vellum-ai/0.12.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
513
513
|
contentType: "application/json",
|
|
514
514
|
requestType: "json",
|
|
515
515
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|