vellum-ai 0.9.12 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/.mock/definition/__package__.yml +10 -10
  2. package/.mock/definition/adHoc.yml +1 -0
  3. package/.mock/definition/workflows.yml +6 -3
  4. package/.mock/openapi/openapi.yml +23 -19
  5. package/Client.js +10 -10
  6. package/api/resources/adHoc/client/Client.js +1 -1
  7. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +16 -0
  8. package/api/resources/containerImages/client/Client.js +4 -4
  9. package/api/resources/deployments/client/Client.js +6 -6
  10. package/api/resources/documentIndexes/client/Client.js +8 -8
  11. package/api/resources/documents/client/Client.js +5 -5
  12. package/api/resources/folderEntities/client/Client.js +2 -2
  13. package/api/resources/metricDefinitions/client/Client.js +1 -1
  14. package/api/resources/sandboxes/client/Client.js +3 -3
  15. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  16. package/api/resources/testSuites/client/Client.js +4 -4
  17. package/api/resources/workflowDeployments/client/Client.js +5 -5
  18. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  19. package/api/resources/workflows/client/Client.d.ts +6 -5
  20. package/api/resources/workflows/client/Client.js +22 -10
  21. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -3
  22. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  23. package/api/types/{FunctionDefinitionPromptBlock.d.ts → FunctionDefinition.d.ts} +6 -7
  24. package/api/types/PromptBlock.d.ts +1 -1
  25. package/api/types/WorkflowPushExecConfig.d.ts +1 -1
  26. package/api/types/index.d.ts +1 -1
  27. package/api/types/index.js +1 -1
  28. package/dist/Client.js +10 -10
  29. package/dist/api/resources/adHoc/client/Client.js +1 -1
  30. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +16 -0
  31. package/dist/api/resources/containerImages/client/Client.js +4 -4
  32. package/dist/api/resources/deployments/client/Client.js +6 -6
  33. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  34. package/dist/api/resources/documents/client/Client.js +5 -5
  35. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  36. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  37. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  38. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  39. package/dist/api/resources/testSuites/client/Client.js +4 -4
  40. package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
  41. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  42. package/dist/api/resources/workflows/client/Client.d.ts +6 -5
  43. package/dist/api/resources/workflows/client/Client.js +22 -10
  44. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -3
  45. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  46. package/dist/api/types/{FunctionDefinitionPromptBlock.d.ts → FunctionDefinition.d.ts} +6 -7
  47. package/dist/api/types/PromptBlock.d.ts +1 -1
  48. package/dist/api/types/WorkflowPushExecConfig.d.ts +1 -1
  49. package/dist/api/types/index.d.ts +1 -1
  50. package/dist/api/types/index.js +1 -1
  51. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
  52. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
  53. package/dist/serialization/resources/index.d.ts +0 -1
  54. package/dist/serialization/resources/index.js +0 -1
  55. package/dist/serialization/resources/workflows/index.d.ts +0 -1
  56. package/dist/serialization/resources/workflows/index.js +0 -1
  57. package/dist/serialization/types/FunctionDefinition.d.ts +20 -0
  58. package/dist/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
  59. package/dist/serialization/types/PromptBlock.d.ts +1 -2
  60. package/dist/serialization/types/PromptBlock.js +0 -2
  61. package/dist/serialization/types/WorkflowPushExecConfig.d.ts +1 -1
  62. package/dist/serialization/types/WorkflowPushExecConfig.js +1 -1
  63. package/dist/serialization/types/index.d.ts +1 -1
  64. package/dist/serialization/types/index.js +1 -1
  65. package/dist/version.d.ts +1 -1
  66. package/dist/version.js +1 -1
  67. package/package.json +1 -1
  68. package/reference.md +28 -5
  69. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
  70. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
  71. package/serialization/resources/index.d.ts +0 -1
  72. package/serialization/resources/index.js +0 -1
  73. package/serialization/resources/workflows/index.d.ts +0 -1
  74. package/serialization/resources/workflows/index.js +0 -1
  75. package/serialization/types/FunctionDefinition.d.ts +20 -0
  76. package/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
  77. package/serialization/types/PromptBlock.d.ts +1 -2
  78. package/serialization/types/PromptBlock.js +0 -2
  79. package/serialization/types/WorkflowPushExecConfig.d.ts +1 -1
  80. package/serialization/types/WorkflowPushExecConfig.js +1 -1
  81. package/serialization/types/index.d.ts +1 -1
  82. package/serialization/types/index.js +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/dist/serialization/resources/workflows/client/index.d.ts +0 -1
  86. package/dist/serialization/resources/workflows/client/index.js +0 -17
  87. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -17
  88. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +0 -38
  89. package/dist/serialization/resources/workflows/client/requests/index.d.ts +0 -1
  90. package/dist/serialization/resources/workflows/client/requests/index.js +0 -5
  91. package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
  92. package/serialization/resources/workflows/client/index.d.ts +0 -1
  93. package/serialization/resources/workflows/client/index.js +0 -17
  94. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -17
  95. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +0 -38
  96. package/serialization/resources/workflows/client/requests/index.d.ts +0 -1
  97. package/serialization/resources/workflows/client/requests/index.js +0 -5
  98. package/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
  99. /package/api/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +0 -0
  100. /package/dist/api/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +0 -0
@@ -2140,21 +2140,19 @@ types:
2140
2140
  value: optional<FunctionCallRequest>
2141
2141
  source:
2142
2142
  openapi: openapi/openapi.yml
2143
- FunctionDefinitionEnum: literal<"FUNCTION_DEFINITION">
2144
- FunctionDefinitionPromptBlock:
2143
+ FunctionDefinition:
2145
2144
  docs: A block that represents a function definition in a prompt template.
2146
2145
  properties:
2147
2146
  state: optional<PromptBlockState>
2148
2147
  cache_config: optional<EphemeralPromptCacheConfig>
2149
- block_type: literal<"FUNCTION_DEFINITION">
2150
- function_name:
2148
+ name:
2151
2149
  type: optional<string>
2152
2150
  validation:
2153
2151
  minLength: 1
2154
- function_description: optional<string>
2155
- function_parameters: optional<map<string, unknown>>
2156
- function_forced: optional<boolean>
2157
- function_strict: optional<boolean>
2152
+ description: optional<string>
2153
+ parameters: optional<map<string, unknown>>
2154
+ forced: optional<boolean>
2155
+ strict: optional<boolean>
2158
2156
  source:
2159
2157
  openapi: openapi/openapi.yml
2160
2158
  GenerateErrorResponse:
@@ -3408,7 +3406,6 @@ types:
3408
3406
  union:
3409
3407
  - JinjaPromptBlock
3410
3408
  - ChatMessagePromptBlock
3411
- - FunctionDefinitionPromptBlock
3412
3409
  - VariablePromptBlock
3413
3410
  - RichTextPromptBlock
3414
3411
  source:
@@ -6039,7 +6036,10 @@ types:
6039
6036
  release_tags: optional<list<string>>
6040
6037
  source:
6041
6038
  openapi: openapi/openapi.yml
6042
- WorkflowPushExecConfig: map<string, unknown>
6039
+ WorkflowPushExecConfig:
6040
+ type: string
6041
+ validation:
6042
+ minLength: 1
6043
6043
  WorkflowPushResponse:
6044
6044
  properties:
6045
6045
  workflow_sandbox_id:
@@ -24,6 +24,7 @@ service:
24
24
  parameters: root.PromptParameters
25
25
  settings: optional<root.PromptSettings>
26
26
  blocks: list<root.PromptBlock>
27
+ functions: optional<list<root.FunctionDefinition>>
27
28
  expand_meta: optional<root.AdHocExpandMeta>
28
29
  response-stream:
29
30
  docs: ''
@@ -46,7 +46,9 @@ service:
46
46
  name: WorkflowPushRequest
47
47
  body:
48
48
  properties:
49
- exec_config: root.WorkflowPushExecConfig
49
+ exec_config:
50
+ type: root.WorkflowPushExecConfig
51
+ docs: The execution configuration of the workflow.
50
52
  label:
51
53
  type: string
52
54
  validation:
@@ -56,6 +58,8 @@ service:
56
58
  validation:
57
59
  format: uuid
58
60
  deployment_config: optional<root.WorkflowPushDeploymentConfigRequest>
61
+ artifact: optional<file>
62
+ content-type: multipart/form-data
59
63
  response:
60
64
  docs: ''
61
65
  type: root.WorkflowPushResponse
@@ -63,8 +67,7 @@ service:
63
67
  availability: pre-release
64
68
  examples:
65
69
  - request:
66
- exec_config:
67
- key: value
70
+ exec_config: exec_config
68
71
  label: label
69
72
  response:
70
73
  body:
@@ -2186,6 +2186,9 @@ paths:
2186
2186
  - workflows
2187
2187
  requestBody:
2188
2188
  content:
2189
+ multipart/form-data:
2190
+ schema:
2191
+ $ref: '#/components/schemas/WorkflowPushRequest'
2189
2192
  application/json:
2190
2193
  schema:
2191
2194
  $ref: '#/components/schemas/WorkflowPushRequest'
@@ -2295,6 +2298,11 @@ components:
2295
2298
  type: array
2296
2299
  items:
2297
2300
  $ref: '#/components/schemas/PromptBlock'
2301
+ functions:
2302
+ type: array
2303
+ items:
2304
+ $ref: '#/components/schemas/FunctionDefinition'
2305
+ nullable: true
2298
2306
  expand_meta:
2299
2307
  allOf:
2300
2308
  - $ref: '#/components/schemas/AdHocExpandMeta'
@@ -4993,11 +5001,7 @@ components:
4993
5001
  required:
4994
5002
  - type
4995
5003
  - value
4996
- FunctionDefinitionEnum:
4997
- type: string
4998
- enum:
4999
- - FUNCTION_DEFINITION
5000
- FunctionDefinitionPromptBlock:
5004
+ FunctionDefinition:
5001
5005
  type: object
5002
5006
  description: A block that represents a function definition in a prompt template.
5003
5007
  properties:
@@ -5007,27 +5011,23 @@ components:
5007
5011
  allOf:
5008
5012
  - $ref: '#/components/schemas/EphemeralPromptCacheConfig'
5009
5013
  nullable: true
5010
- block_type:
5011
- $ref: '#/components/schemas/FunctionDefinitionEnum'
5012
- function_name:
5014
+ name:
5013
5015
  type: string
5014
5016
  nullable: true
5015
5017
  minLength: 1
5016
- function_description:
5018
+ description:
5017
5019
  type: string
5018
5020
  nullable: true
5019
- function_parameters:
5021
+ parameters:
5020
5022
  type: object
5021
5023
  additionalProperties: {}
5022
5024
  nullable: true
5023
- function_forced:
5025
+ forced:
5024
5026
  type: boolean
5025
5027
  nullable: true
5026
- function_strict:
5028
+ strict:
5027
5029
  type: boolean
5028
5030
  nullable: true
5029
- required:
5030
- - block_type
5031
5031
  GenerateBodyRequest:
5032
5032
  type: object
5033
5033
  properties:
@@ -7149,7 +7149,6 @@ components:
7149
7149
  oneOf:
7150
7150
  - $ref: '#/components/schemas/JinjaPromptBlock'
7151
7151
  - $ref: '#/components/schemas/ChatMessagePromptBlock'
7152
- - $ref: '#/components/schemas/FunctionDefinitionPromptBlock'
7153
7152
  - $ref: '#/components/schemas/VariablePromptBlock'
7154
7153
  - $ref: '#/components/schemas/RichTextPromptBlock'
7155
7154
  discriminator:
@@ -7157,7 +7156,6 @@ components:
7157
7156
  mapping:
7158
7157
  JINJA: '#/components/schemas/JinjaPromptBlock'
7159
7158
  CHAT_MESSAGE: '#/components/schemas/ChatMessagePromptBlock'
7160
- FUNCTION_DEFINITION: '#/components/schemas/FunctionDefinitionPromptBlock'
7161
7159
  VARIABLE: '#/components/schemas/VariablePromptBlock'
7162
7160
  RICH_TEXT: '#/components/schemas/RichTextPromptBlock'
7163
7161
  PromptBlockState:
@@ -11108,13 +11106,15 @@ components:
11108
11106
  minLength: 1
11109
11107
  nullable: true
11110
11108
  WorkflowPushExecConfig:
11111
- type: object
11112
- additionalProperties: {}
11109
+ type: string
11110
+ minLength: 1
11113
11111
  WorkflowPushRequest:
11114
11112
  type: object
11115
11113
  properties:
11116
11114
  exec_config:
11117
- $ref: '#/components/schemas/WorkflowPushExecConfig'
11115
+ allOf:
11116
+ - $ref: '#/components/schemas/WorkflowPushExecConfig'
11117
+ description: The execution configuration of the workflow.
11118
11118
  label:
11119
11119
  type: string
11120
11120
  minLength: 1
@@ -11126,6 +11126,10 @@ components:
11126
11126
  allOf:
11127
11127
  - $ref: '#/components/schemas/WorkflowPushDeploymentConfigRequest'
11128
11128
  nullable: true
11129
+ artifact:
11130
+ type: string
11131
+ format: binary
11132
+ description: The contents of the artifact tar.gz file.
11129
11133
  required:
11130
11134
  - exec_config
11131
11135
  - label
package/Client.js CHANGED
@@ -94,7 +94,7 @@ class VellumClient {
94
94
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
95
95
  .default, "v1/execute-code"),
96
96
  method: "POST",
97
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
97
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.CodeExecutor.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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
166
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
365
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
452
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
594
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
662
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
725
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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" }),
@@ -56,6 +56,21 @@ import * as Vellum from "../../../../index";
56
56
  * blockType: "JINJA",
57
57
  * template: "string"
58
58
  * }],
59
+ * functions: [{
60
+ * state: "ENABLED",
61
+ * cacheConfig: {
62
+ * type: "EPHEMERAL"
63
+ * },
64
+ * name: "string",
65
+ * description: "string",
66
+ * parameters: {
67
+ * "string": {
68
+ * "key": "value"
69
+ * }
70
+ * },
71
+ * forced: true,
72
+ * strict: true
73
+ * }],
59
74
  * expandMeta: {
60
75
  * cost: true,
61
76
  * modelName: true,
@@ -71,5 +86,6 @@ export interface AdHocExecutePromptStream {
71
86
  parameters: Vellum.PromptParameters;
72
87
  settings?: Vellum.PromptSettings;
73
88
  blocks: Vellum.PromptBlock[];
89
+ functions?: Vellum.FunctionDefinition[];
74
90
  expandMeta?: Vellum.AdHocExpandMeta;
75
91
  }
@@ -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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
182
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
238
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
202
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
256
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
310
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
385
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
199
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
408
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
464
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
235
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
325
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
148
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.14", "User-Agent": "vellum-ai/0.9.14", "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.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),