vellum-ai 0.9.7 → 0.9.9
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 +10 -38
- package/.mock/definition/adHoc.yml +1 -1
- package/.mock/openapi/openapi.yml +16 -50
- package/Client.js +10 -10
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +8 -2
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +6 -6
- 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 +5 -5
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/ChatMessagePromptBlock.d.ts +16 -0
- package/api/types/ChatMessagePromptBlock.js +5 -0
- package/api/types/EphemeralPromptCacheConfig.d.ts +7 -0
- package/api/types/EphemeralPromptCacheConfig.js +5 -0
- package/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +7 -0
- package/api/types/EphemeralPromptCacheConfigTypeEnum.js +5 -0
- package/api/types/FunctionDefinitionPromptBlock.d.ts +15 -0
- package/api/types/FunctionDefinitionPromptBlock.js +5 -0
- package/api/types/JinjaPromptBlock.d.ts +14 -0
- package/api/types/JinjaPromptBlock.js +5 -0
- package/api/types/PlainTextPromptBlock.d.ts +13 -0
- package/api/types/PlainTextPromptBlock.js +5 -0
- package/api/types/PromptBlock.d.ts +5 -0
- package/api/types/PromptBlock.js +5 -0
- package/api/types/PromptBlockState.d.ts +12 -0
- package/api/types/PromptBlockState.js +10 -0
- package/api/types/RichTextChildBlock.d.ts +5 -0
- package/api/types/RichTextChildBlock.js +5 -0
- package/api/types/RichTextPromptBlock.d.ts +13 -0
- package/api/types/RichTextPromptBlock.js +5 -0
- package/api/types/VariablePromptBlock.d.ts +13 -0
- package/api/types/VariablePromptBlock.js +5 -0
- package/api/types/index.d.ts +11 -0
- package/api/types/index.js +11 -0
- package/dist/Client.js +10 -10
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +8 -2
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +6 -6
- 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 +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/ChatMessagePromptBlock.d.ts +16 -0
- package/dist/api/types/ChatMessagePromptBlock.js +5 -0
- package/dist/api/types/EphemeralPromptCacheConfig.d.ts +7 -0
- package/dist/api/types/EphemeralPromptCacheConfig.js +5 -0
- package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +7 -0
- package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.js +5 -0
- package/dist/api/types/FunctionDefinitionPromptBlock.d.ts +15 -0
- package/dist/api/types/FunctionDefinitionPromptBlock.js +5 -0
- package/dist/api/types/JinjaPromptBlock.d.ts +14 -0
- package/dist/api/types/JinjaPromptBlock.js +5 -0
- package/dist/api/types/PlainTextPromptBlock.d.ts +13 -0
- package/dist/api/types/PlainTextPromptBlock.js +5 -0
- package/dist/api/types/PromptBlock.d.ts +5 -0
- package/dist/api/types/PromptBlock.js +5 -0
- package/dist/api/types/PromptBlockState.d.ts +12 -0
- package/dist/api/types/PromptBlockState.js +10 -0
- package/dist/api/types/RichTextChildBlock.d.ts +5 -0
- package/dist/api/types/RichTextChildBlock.js +5 -0
- package/dist/api/types/RichTextPromptBlock.d.ts +13 -0
- package/dist/api/types/RichTextPromptBlock.js +5 -0
- package/dist/api/types/VariablePromptBlock.d.ts +13 -0
- package/dist/api/types/VariablePromptBlock.js +5 -0
- package/dist/api/types/index.d.ts +11 -0
- package/dist/api/types/index.js +11 -0
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +1 -1
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -1
- package/dist/serialization/types/ChatMessagePromptBlock.d.ts +21 -0
- package/dist/serialization/types/ChatMessagePromptBlock.js +43 -0
- package/dist/serialization/types/EphemeralPromptCacheConfig.d.ts +13 -0
- package/dist/serialization/types/EphemeralPromptCacheConfig.js +34 -0
- package/dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +10 -0
- package/dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.js +31 -0
- package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +19 -0
- package/dist/serialization/types/FunctionDefinitionPromptBlock.js +40 -0
- package/dist/serialization/types/JinjaPromptBlock.d.ts +19 -0
- package/dist/serialization/types/JinjaPromptBlock.js +40 -0
- package/dist/serialization/types/PlainTextPromptBlock.d.ts +17 -0
- package/dist/serialization/types/PlainTextPromptBlock.js +38 -0
- package/dist/serialization/types/PromptBlock.d.ts +14 -0
- package/dist/serialization/types/PromptBlock.js +42 -0
- package/dist/serialization/types/PromptBlockState.d.ts +10 -0
- package/dist/serialization/types/PromptBlockState.js +31 -0
- package/dist/serialization/types/RichTextChildBlock.d.ts +12 -0
- package/dist/serialization/types/RichTextChildBlock.js +33 -0
- package/dist/serialization/types/RichTextPromptBlock.d.ts +18 -0
- package/dist/serialization/types/RichTextPromptBlock.js +39 -0
- package/dist/serialization/types/VariablePromptBlock.d.ts +17 -0
- package/dist/serialization/types/VariablePromptBlock.js +38 -0
- package/dist/serialization/types/index.d.ts +11 -0
- package/dist/serialization/types/index.js +11 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +7 -1
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +1 -1
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -1
- package/serialization/types/ChatMessagePromptBlock.d.ts +21 -0
- package/serialization/types/ChatMessagePromptBlock.js +43 -0
- package/serialization/types/EphemeralPromptCacheConfig.d.ts +13 -0
- package/serialization/types/EphemeralPromptCacheConfig.js +34 -0
- package/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +10 -0
- package/serialization/types/EphemeralPromptCacheConfigTypeEnum.js +31 -0
- package/serialization/types/FunctionDefinitionPromptBlock.d.ts +19 -0
- package/serialization/types/FunctionDefinitionPromptBlock.js +40 -0
- package/serialization/types/JinjaPromptBlock.d.ts +19 -0
- package/serialization/types/JinjaPromptBlock.js +40 -0
- package/serialization/types/PlainTextPromptBlock.d.ts +17 -0
- package/serialization/types/PlainTextPromptBlock.js +38 -0
- package/serialization/types/PromptBlock.d.ts +14 -0
- package/serialization/types/PromptBlock.js +42 -0
- package/serialization/types/PromptBlockState.d.ts +10 -0
- package/serialization/types/PromptBlockState.js +31 -0
- package/serialization/types/RichTextChildBlock.d.ts +12 -0
- package/serialization/types/RichTextChildBlock.js +33 -0
- package/serialization/types/RichTextPromptBlock.d.ts +18 -0
- package/serialization/types/RichTextPromptBlock.js +39 -0
- package/serialization/types/VariablePromptBlock.d.ts +17 -0
- package/serialization/types/VariablePromptBlock.js +38 -0
- package/serialization/types/index.d.ts +11 -0
- package/serialization/types/index.js +11 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -992,14 +992,7 @@ types:
|
|
|
992
992
|
state: optional<PromptBlockState>
|
|
993
993
|
cache_config: optional<EphemeralPromptCacheConfig>
|
|
994
994
|
block_type: literal<"CHAT_MESSAGE">
|
|
995
|
-
|
|
996
|
-
source:
|
|
997
|
-
openapi: openapi/openapi.yml
|
|
998
|
-
ChatMessagePromptBlockProperties:
|
|
999
|
-
docs: The properties of a ChatMessagePromptTemplateBlock
|
|
1000
|
-
properties:
|
|
1001
|
-
blocks: list<unknown>
|
|
1002
|
-
chat_role: optional<ChatMessageRole>
|
|
995
|
+
chat_role: ChatMessageRole
|
|
1003
996
|
chat_source:
|
|
1004
997
|
type: optional<string>
|
|
1005
998
|
validation:
|
|
@@ -1007,6 +1000,7 @@ types:
|
|
|
1007
1000
|
chat_message_unterminated:
|
|
1008
1001
|
type: optional<boolean>
|
|
1009
1002
|
default: false
|
|
1003
|
+
blocks: list<PromptBlock>
|
|
1010
1004
|
source:
|
|
1011
1005
|
openapi: openapi/openapi.yml
|
|
1012
1006
|
ChatMessageRequest:
|
|
@@ -2134,32 +2128,12 @@ types:
|
|
|
2134
2128
|
state: optional<PromptBlockState>
|
|
2135
2129
|
cache_config: optional<EphemeralPromptCacheConfig>
|
|
2136
2130
|
block_type: literal<"FUNCTION_DEFINITION">
|
|
2137
|
-
properties: FunctionDefinitionPromptBlockProperties
|
|
2138
|
-
source:
|
|
2139
|
-
openapi: openapi/openapi.yml
|
|
2140
|
-
FunctionDefinitionPromptBlockProperties:
|
|
2141
|
-
properties:
|
|
2142
2131
|
function_name:
|
|
2143
2132
|
type: optional<string>
|
|
2144
|
-
docs: The name identifying the function.
|
|
2145
2133
|
validation:
|
|
2146
2134
|
minLength: 1
|
|
2147
|
-
function_description:
|
|
2148
|
-
|
|
2149
|
-
docs: A description to help guide the model when to invoke this function.
|
|
2150
|
-
function_parameters:
|
|
2151
|
-
type: optional<map<string, unknown>>
|
|
2152
|
-
docs: >-
|
|
2153
|
-
An OpenAPI specification of parameters that are supported by this
|
|
2154
|
-
function.
|
|
2155
|
-
function_forced:
|
|
2156
|
-
type: optional<boolean>
|
|
2157
|
-
docs: >-
|
|
2158
|
-
Set this option to true to force the model to return a function call
|
|
2159
|
-
of this function.
|
|
2160
|
-
function_strict:
|
|
2161
|
-
type: optional<boolean>
|
|
2162
|
-
docs: Set this option to use strict schema decoding when available.
|
|
2135
|
+
function_description: optional<string>
|
|
2136
|
+
function_parameters: optional<map<string, unknown>>
|
|
2163
2137
|
source:
|
|
2164
2138
|
openapi: openapi/openapi.yml
|
|
2165
2139
|
GenerateErrorResponse:
|
|
@@ -2487,13 +2461,11 @@ types:
|
|
|
2487
2461
|
state: optional<PromptBlockState>
|
|
2488
2462
|
cache_config: optional<EphemeralPromptCacheConfig>
|
|
2489
2463
|
block_type: literal<"JINJA">
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
template: optional<string>
|
|
2496
|
-
template_type: optional<VellumVariableType>
|
|
2464
|
+
template:
|
|
2465
|
+
type: string
|
|
2466
|
+
validation:
|
|
2467
|
+
minLength: 1
|
|
2468
|
+
template_type: VellumVariableType
|
|
2497
2469
|
source:
|
|
2498
2470
|
openapi: openapi/openapi.yml
|
|
2499
2471
|
JsonEnum: literal<"JSON">
|
|
@@ -3412,7 +3384,7 @@ types:
|
|
|
3412
3384
|
* `FAILED` - Failed
|
|
3413
3385
|
source:
|
|
3414
3386
|
openapi: openapi/openapi.yml
|
|
3415
|
-
|
|
3387
|
+
PromptBlock:
|
|
3416
3388
|
discriminated: false
|
|
3417
3389
|
union:
|
|
3418
3390
|
- JinjaPromptBlock
|
|
@@ -23,7 +23,7 @@ service:
|
|
|
23
23
|
input_variables: list<root.VellumVariable>
|
|
24
24
|
parameters: root.PromptParameters
|
|
25
25
|
settings: optional<root.PromptSettings>
|
|
26
|
-
blocks: list<
|
|
26
|
+
blocks: list<root.PromptBlock>
|
|
27
27
|
expand_meta: optional<root.AdHocExpandMeta>
|
|
28
28
|
response-stream:
|
|
29
29
|
docs: ''
|
|
@@ -2827,23 +2827,8 @@ components:
|
|
|
2827
2827
|
nullable: true
|
|
2828
2828
|
block_type:
|
|
2829
2829
|
$ref: '#/components/schemas/ChatMessageEnum'
|
|
2830
|
-
properties:
|
|
2831
|
-
$ref: '#/components/schemas/ChatMessagePromptBlockProperties'
|
|
2832
|
-
required:
|
|
2833
|
-
- block_type
|
|
2834
|
-
- properties
|
|
2835
|
-
ChatMessagePromptBlockProperties:
|
|
2836
|
-
type: object
|
|
2837
|
-
description: The properties of a ChatMessagePromptTemplateBlock
|
|
2838
|
-
properties:
|
|
2839
|
-
blocks:
|
|
2840
|
-
type: array
|
|
2841
|
-
items:
|
|
2842
|
-
$ref: '#/components/schemas/PromptBlock'
|
|
2843
2830
|
chat_role:
|
|
2844
|
-
|
|
2845
|
-
- $ref: '#/components/schemas/ChatMessageRole'
|
|
2846
|
-
nullable: true
|
|
2831
|
+
$ref: '#/components/schemas/ChatMessageRole'
|
|
2847
2832
|
chat_source:
|
|
2848
2833
|
type: string
|
|
2849
2834
|
nullable: true
|
|
@@ -2851,8 +2836,14 @@ components:
|
|
|
2851
2836
|
chat_message_unterminated:
|
|
2852
2837
|
type: boolean
|
|
2853
2838
|
default: false
|
|
2839
|
+
blocks:
|
|
2840
|
+
type: array
|
|
2841
|
+
items:
|
|
2842
|
+
$ref: '#/components/schemas/PromptBlock'
|
|
2854
2843
|
required:
|
|
2844
|
+
- block_type
|
|
2855
2845
|
- blocks
|
|
2846
|
+
- chat_role
|
|
2856
2847
|
ChatMessageRequest:
|
|
2857
2848
|
type: object
|
|
2858
2849
|
properties:
|
|
@@ -4993,38 +4984,19 @@ components:
|
|
|
4993
4984
|
nullable: true
|
|
4994
4985
|
block_type:
|
|
4995
4986
|
$ref: '#/components/schemas/FunctionDefinitionEnum'
|
|
4996
|
-
properties:
|
|
4997
|
-
$ref: '#/components/schemas/FunctionDefinitionPromptBlockProperties'
|
|
4998
|
-
required:
|
|
4999
|
-
- block_type
|
|
5000
|
-
- properties
|
|
5001
|
-
FunctionDefinitionPromptBlockProperties:
|
|
5002
|
-
type: object
|
|
5003
|
-
properties:
|
|
5004
4987
|
function_name:
|
|
5005
4988
|
type: string
|
|
5006
4989
|
nullable: true
|
|
5007
4990
|
minLength: 1
|
|
5008
|
-
description: The name identifying the function.
|
|
5009
4991
|
function_description:
|
|
5010
4992
|
type: string
|
|
5011
4993
|
nullable: true
|
|
5012
|
-
description: A description to help guide the model when to invoke this function.
|
|
5013
4994
|
function_parameters:
|
|
5014
4995
|
type: object
|
|
5015
4996
|
additionalProperties: {}
|
|
5016
4997
|
nullable: true
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
function_forced:
|
|
5020
|
-
type: boolean
|
|
5021
|
-
nullable: true
|
|
5022
|
-
description: Set this option to true to force the model to return a function
|
|
5023
|
-
call of this function.
|
|
5024
|
-
function_strict:
|
|
5025
|
-
type: boolean
|
|
5026
|
-
nullable: true
|
|
5027
|
-
description: Set this option to use strict schema decoding when available.
|
|
4998
|
+
required:
|
|
4999
|
+
- block_type
|
|
5028
5000
|
GenerateBodyRequest:
|
|
5029
5001
|
type: object
|
|
5030
5002
|
properties:
|
|
@@ -5556,21 +5528,15 @@ components:
|
|
|
5556
5528
|
nullable: true
|
|
5557
5529
|
block_type:
|
|
5558
5530
|
$ref: '#/components/schemas/JinjaEnum'
|
|
5559
|
-
properties:
|
|
5560
|
-
$ref: '#/components/schemas/JinjaPromptBlockProperties'
|
|
5561
|
-
required:
|
|
5562
|
-
- block_type
|
|
5563
|
-
- properties
|
|
5564
|
-
JinjaPromptBlockProperties:
|
|
5565
|
-
type: object
|
|
5566
|
-
properties:
|
|
5567
5531
|
template:
|
|
5568
5532
|
type: string
|
|
5569
|
-
|
|
5533
|
+
minLength: 1
|
|
5570
5534
|
template_type:
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5535
|
+
$ref: '#/components/schemas/VellumVariableType'
|
|
5536
|
+
required:
|
|
5537
|
+
- block_type
|
|
5538
|
+
- template
|
|
5539
|
+
- template_type
|
|
5574
5540
|
JsonEnum:
|
|
5575
5541
|
type: string
|
|
5576
5542
|
enum:
|
|
@@ -7148,7 +7114,7 @@ components:
|
|
|
7148
7114
|
* `PROCESSING` - Processing
|
|
7149
7115
|
* `PROCESSED` - Processed
|
|
7150
7116
|
* `FAILED` - Failed
|
|
7151
|
-
|
|
7117
|
+
PromptBlock:
|
|
7152
7118
|
oneOf:
|
|
7153
7119
|
- $ref: '#/components/schemas/JinjaPromptBlock'
|
|
7154
7120
|
- $ref: '#/components/schemas/ChatMessagePromptBlock'
|
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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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" }),
|
|
@@ -51,7 +51,13 @@ import * as Vellum from "../../../../index";
|
|
|
51
51
|
* timeout: 1.1
|
|
52
52
|
* },
|
|
53
53
|
* blocks: [{
|
|
54
|
-
*
|
|
54
|
+
* state: "ENABLED",
|
|
55
|
+
* cacheConfig: {
|
|
56
|
+
* type: "EPHEMERAL"
|
|
57
|
+
* },
|
|
58
|
+
* blockType: "JINJA",
|
|
59
|
+
* template: "string",
|
|
60
|
+
* templateType: "STRING"
|
|
55
61
|
* }],
|
|
56
62
|
* expandMeta: {
|
|
57
63
|
* cost: true,
|
|
@@ -67,6 +73,6 @@ export interface AdHocExecutePromptStream {
|
|
|
67
73
|
inputVariables: Vellum.VellumVariable[];
|
|
68
74
|
parameters: Vellum.PromptParameters;
|
|
69
75
|
settings?: Vellum.PromptSettings;
|
|
70
|
-
blocks:
|
|
76
|
+
blocks: Vellum.PromptBlock[];
|
|
71
77
|
expandMeta?: Vellum.AdHocExpandMeta;
|
|
72
78
|
}
|
|
@@ -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.9", "User-Agent": "vellum-ai/0.9.9", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
182
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
238
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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,
|
|
@@ -199,7 +199,7 @@ class Deployments {
|
|
|
199
199
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
200
200
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags`),
|
|
201
201
|
method: "GET",
|
|
202
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
202
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
203
203
|
contentType: "application/json",
|
|
204
204
|
queryParameters: _queryParams,
|
|
205
205
|
requestType: "json",
|
|
@@ -253,7 +253,7 @@ class Deployments {
|
|
|
253
253
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
254
254
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
255
255
|
method: "GET",
|
|
256
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
256
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
257
257
|
contentType: "application/json",
|
|
258
258
|
requestType: "json",
|
|
259
259
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -307,7 +307,7 @@ class Deployments {
|
|
|
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
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
309
309
|
method: "PATCH",
|
|
310
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
310
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -382,7 +382,7 @@ class Deployments {
|
|
|
382
382
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
383
383
|
.default, "v1/deployments/provider-payload"),
|
|
384
384
|
method: "POST",
|
|
385
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
385
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
386
386
|
contentType: "application/json",
|
|
387
387
|
requestType: "json",
|
|
388
388
|
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.9.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
199
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
307
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
360
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
408
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
464
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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.9.
|
|
512
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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,
|
|
@@ -79,7 +79,7 @@ class Documents {
|
|
|
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/documents"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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 Documents {
|
|
|
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/documents/${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.9.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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,
|
|
@@ -184,7 +184,7 @@ class Documents {
|
|
|
184
184
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
185
|
.documents, `v1/documents/${encodeURIComponent(id)}`),
|
|
186
186
|
method: "DELETE",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -232,7 +232,7 @@ class Documents {
|
|
|
232
232
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
233
233
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
234
234
|
method: "PATCH",
|
|
235
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
235
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
236
236
|
contentType: "application/json",
|
|
237
237
|
requestType: "json",
|
|
238
238
|
body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -322,7 +322,7 @@ class Documents {
|
|
|
322
322
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
323
323
|
.documents, "v1/upload-document"),
|
|
324
324
|
method: "POST",
|
|
325
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
325
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
|
|
326
326
|
requestType: "file",
|
|
327
327
|
duplex: _maybeEncodedRequest.duplex,
|
|
328
328
|
body: _maybeEncodedRequest.body,
|
|
@@ -81,7 +81,7 @@ class FolderEntities {
|
|
|
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/folder-entities"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "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",
|
|
@@ -145,7 +145,7 @@ class FolderEntities {
|
|
|
145
145
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
146
146
|
.default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
|
|
147
147
|
method: "POST",
|
|
148
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
148
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
149
149
|
contentType: "application/json",
|
|
150
150
|
requestType: "json",
|
|
151
151
|
body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -71,7 +71,7 @@ class MetricDefinitions {
|
|
|
71
71
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
72
72
|
.default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
body: serializers.ExecuteMetricDefinitionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|