vellum-ai 0.8.25 → 0.8.26
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 +34 -1
- package/.mock/definition/adHoc.yml +1 -0
- package/.mock/definition/workspaceSecrets.yml +34 -0
- package/.mock/openapi/openapi.yml +74 -4
- package/Client.d.ts +3 -0
- package/Client.js +15 -10
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +4 -0
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/metricDefinitions/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workspaceSecrets/client/Client.d.ts +37 -0
- package/api/resources/workspaceSecrets/client/Client.js +110 -0
- package/api/resources/workspaceSecrets/client/index.d.ts +1 -0
- package/api/resources/workspaceSecrets/client/index.js +2 -0
- package/api/resources/workspaceSecrets/index.d.ts +1 -0
- package/api/resources/workspaceSecrets/index.js +17 -0
- package/api/types/ApiNodeResultData.d.ts +1 -1
- package/api/types/PromptSettingsRequest.d.ts +6 -0
- package/api/types/PromptSettingsRequest.js +5 -0
- package/api/types/SecretTypeEnum.d.ts +14 -0
- package/api/types/SecretTypeEnum.js +11 -0
- package/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/api/types/VellumErrorCodeEnum.js +1 -0
- package/api/types/WorkspaceSecretRead.d.ts +11 -0
- package/api/types/WorkspaceSecretRead.js +5 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +15 -10
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +4 -0
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +37 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +110 -0
- package/dist/api/resources/workspaceSecrets/client/index.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/client/index.js +2 -0
- package/dist/api/resources/workspaceSecrets/index.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/index.js +17 -0
- package/dist/api/types/ApiNodeResultData.d.ts +1 -1
- package/dist/api/types/PromptSettingsRequest.d.ts +6 -0
- package/dist/api/types/PromptSettingsRequest.js +5 -0
- package/dist/api/types/SecretTypeEnum.d.ts +14 -0
- package/dist/api/types/SecretTypeEnum.js +11 -0
- package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
- package/dist/api/types/VellumErrorCodeEnum.js +1 -0
- package/dist/api/types/WorkspaceSecretRead.d.ts +11 -0
- package/dist/api/types/WorkspaceSecretRead.js +5 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +2 -0
- package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +2 -0
- package/dist/serialization/types/ApiNodeResultData.d.ts +1 -1
- package/dist/serialization/types/ApiNodeResultData.js +1 -1
- package/dist/serialization/types/PromptSettingsRequest.d.ts +12 -0
- package/dist/serialization/types/PromptSettingsRequest.js +33 -0
- package/dist/serialization/types/SecretTypeEnum.d.ts +10 -0
- package/dist/serialization/types/SecretTypeEnum.js +31 -0
- package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/dist/serialization/types/VellumErrorCodeEnum.js +7 -1
- package/dist/serialization/types/WorkspaceSecretRead.d.ts +17 -0
- package/dist/serialization/types/WorkspaceSecretRead.js +38 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +68 -0
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +2 -0
- package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +2 -0
- package/serialization/types/ApiNodeResultData.d.ts +1 -1
- package/serialization/types/ApiNodeResultData.js +1 -1
- package/serialization/types/PromptSettingsRequest.d.ts +12 -0
- package/serialization/types/PromptSettingsRequest.js +33 -0
- package/serialization/types/SecretTypeEnum.d.ts +10 -0
- package/serialization/types/SecretTypeEnum.js +31 -0
- package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/serialization/types/VellumErrorCodeEnum.js +7 -1
- package/serialization/types/WorkspaceSecretRead.d.ts +17 -0
- package/serialization/types/WorkspaceSecretRead.js +38 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -755,10 +755,10 @@ types:
|
|
|
755
755
|
openapi: openapi/openapi.yml
|
|
756
756
|
ApiNodeResultData:
|
|
757
757
|
properties:
|
|
758
|
+
json: optional<map<string, unknown>>
|
|
758
759
|
text_output_id: string
|
|
759
760
|
text: optional<string>
|
|
760
761
|
json_output_id: string
|
|
761
|
-
json: optional<map<string, unknown>>
|
|
762
762
|
status_code_output_id: string
|
|
763
763
|
status_code: integer
|
|
764
764
|
source:
|
|
@@ -3470,6 +3470,11 @@ types:
|
|
|
3470
3470
|
value: string
|
|
3471
3471
|
source:
|
|
3472
3472
|
openapi: openapi/openapi.yml
|
|
3473
|
+
PromptSettingsRequest:
|
|
3474
|
+
properties:
|
|
3475
|
+
timeout: optional<double>
|
|
3476
|
+
source:
|
|
3477
|
+
openapi: openapi/openapi.yml
|
|
3473
3478
|
RawPromptExecutionOverridesRequest:
|
|
3474
3479
|
properties:
|
|
3475
3480
|
body: optional<map<string, unknown>>
|
|
@@ -3918,6 +3923,17 @@ types:
|
|
|
3918
3923
|
max: 1
|
|
3919
3924
|
source:
|
|
3920
3925
|
openapi: openapi/openapi.yml
|
|
3926
|
+
SecretTypeEnum:
|
|
3927
|
+
enum:
|
|
3928
|
+
- USER_DEFINED
|
|
3929
|
+
- HMAC
|
|
3930
|
+
- INTERNAL_API_KEY
|
|
3931
|
+
docs: |-
|
|
3932
|
+
* `USER_DEFINED` - User Defined
|
|
3933
|
+
* `HMAC` - Hmac
|
|
3934
|
+
* `INTERNAL_API_KEY` - Internal Api Key
|
|
3935
|
+
source:
|
|
3936
|
+
openapi: openapi/openapi.yml
|
|
3921
3937
|
SentenceChunkerConfig:
|
|
3922
3938
|
docs: Configuration for sentence chunking
|
|
3923
3939
|
properties:
|
|
@@ -5324,11 +5340,13 @@ types:
|
|
|
5324
5340
|
enum:
|
|
5325
5341
|
- INVALID_REQUEST
|
|
5326
5342
|
- PROVIDER_ERROR
|
|
5343
|
+
- REQUEST_TIMEOUT
|
|
5327
5344
|
- INTERNAL_SERVER_ERROR
|
|
5328
5345
|
- USER_DEFINED_ERROR
|
|
5329
5346
|
docs: |-
|
|
5330
5347
|
* `INVALID_REQUEST` - INVALID_REQUEST
|
|
5331
5348
|
* `PROVIDER_ERROR` - PROVIDER_ERROR
|
|
5349
|
+
* `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
|
|
5332
5350
|
* `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
|
|
5333
5351
|
* `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
|
|
5334
5352
|
source:
|
|
@@ -6168,6 +6186,21 @@ types:
|
|
|
6168
6186
|
- WorkflowExecutionNodeResultEvent
|
|
6169
6187
|
source:
|
|
6170
6188
|
openapi: openapi/openapi.yml
|
|
6189
|
+
WorkspaceSecretRead:
|
|
6190
|
+
properties:
|
|
6191
|
+
id:
|
|
6192
|
+
type: string
|
|
6193
|
+
validation:
|
|
6194
|
+
format: uuid
|
|
6195
|
+
modified: datetime
|
|
6196
|
+
name:
|
|
6197
|
+
type: string
|
|
6198
|
+
validation:
|
|
6199
|
+
maxLength: 250
|
|
6200
|
+
label: string
|
|
6201
|
+
secret_type: SecretTypeEnum
|
|
6202
|
+
source:
|
|
6203
|
+
openapi: openapi/openapi.yml
|
|
6171
6204
|
HkunlpInstructorXlEnum: literal<"hkunlp/instructor-xl">
|
|
6172
6205
|
IntfloatMultilingualE5LargeEnum: literal<"intfloat/multilingual-e5-large">
|
|
6173
6206
|
ReductoChunkerEnum: literal<"reducto-chunker">
|
|
@@ -22,6 +22,7 @@ service:
|
|
|
22
22
|
input_values: list<root.PromptRequestInputRequest>
|
|
23
23
|
input_variables: list<root.VellumVariableRequest>
|
|
24
24
|
parameters: root.PromptParametersRequest
|
|
25
|
+
settings: optional<root.PromptSettingsRequest>
|
|
25
26
|
blocks: list<root.PromptBlockRequest>
|
|
26
27
|
expand_meta: optional<root.AdHocExpandMetaRequest>
|
|
27
28
|
response-stream:
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
retrieve:
|
|
8
|
+
path: /v1/workspace-secrets/{id}
|
|
9
|
+
method: GET
|
|
10
|
+
auth: false
|
|
11
|
+
docs: Used to retrieve a Workspace Secret given its ID or name.
|
|
12
|
+
path-parameters:
|
|
13
|
+
id:
|
|
14
|
+
type: string
|
|
15
|
+
docs: Either the Workspace Secret's ID or its unique name
|
|
16
|
+
response:
|
|
17
|
+
docs: ''
|
|
18
|
+
type: root.WorkspaceSecretRead
|
|
19
|
+
url: Default
|
|
20
|
+
availability: pre-release
|
|
21
|
+
examples:
|
|
22
|
+
- path-parameters:
|
|
23
|
+
id: id
|
|
24
|
+
response:
|
|
25
|
+
body:
|
|
26
|
+
id: id
|
|
27
|
+
modified: '2024-01-15T09:30:00Z'
|
|
28
|
+
name: name
|
|
29
|
+
label: label
|
|
30
|
+
secret_type: USER_DEFINED
|
|
31
|
+
audiences:
|
|
32
|
+
- internal
|
|
33
|
+
source:
|
|
34
|
+
openapi: openapi/openapi.yml
|
|
@@ -1927,6 +1927,29 @@ paths:
|
|
|
1927
1927
|
x-fern-availability: beta
|
|
1928
1928
|
x-fern-audiences:
|
|
1929
1929
|
- customers
|
|
1930
|
+
/v1/workspace-secrets/{id}:
|
|
1931
|
+
get:
|
|
1932
|
+
operationId: workspace_secrets_retrieve
|
|
1933
|
+
description: Used to retrieve a Workspace Secret given its ID or name.
|
|
1934
|
+
parameters:
|
|
1935
|
+
- in: path
|
|
1936
|
+
name: id
|
|
1937
|
+
schema:
|
|
1938
|
+
type: string
|
|
1939
|
+
description: Either the Workspace Secret's ID or its unique name
|
|
1940
|
+
required: true
|
|
1941
|
+
tags:
|
|
1942
|
+
- workspace-secrets
|
|
1943
|
+
responses:
|
|
1944
|
+
'200':
|
|
1945
|
+
content:
|
|
1946
|
+
application/json:
|
|
1947
|
+
schema:
|
|
1948
|
+
$ref: '#/components/schemas/WorkspaceSecretRead'
|
|
1949
|
+
description: ''
|
|
1950
|
+
x-fern-availability: beta
|
|
1951
|
+
x-fern-audiences:
|
|
1952
|
+
- internal
|
|
1930
1953
|
components:
|
|
1931
1954
|
schemas:
|
|
1932
1955
|
AdHocExecutePromptEvent:
|
|
@@ -1958,6 +1981,10 @@ components:
|
|
|
1958
1981
|
$ref: '#/components/schemas/VellumVariableRequest'
|
|
1959
1982
|
parameters:
|
|
1960
1983
|
$ref: '#/components/schemas/PromptParametersRequest'
|
|
1984
|
+
settings:
|
|
1985
|
+
allOf:
|
|
1986
|
+
- $ref: '#/components/schemas/PromptSettingsRequest'
|
|
1987
|
+
nullable: true
|
|
1961
1988
|
blocks:
|
|
1962
1989
|
type: array
|
|
1963
1990
|
items:
|
|
@@ -2070,6 +2097,10 @@ components:
|
|
|
2070
2097
|
ApiNodeResultData:
|
|
2071
2098
|
type: object
|
|
2072
2099
|
properties:
|
|
2100
|
+
json:
|
|
2101
|
+
type: object
|
|
2102
|
+
additionalProperties: {}
|
|
2103
|
+
nullable: true
|
|
2073
2104
|
text_output_id:
|
|
2074
2105
|
type: string
|
|
2075
2106
|
text:
|
|
@@ -2077,10 +2108,6 @@ components:
|
|
|
2077
2108
|
nullable: true
|
|
2078
2109
|
json_output_id:
|
|
2079
2110
|
type: string
|
|
2080
|
-
json:
|
|
2081
|
-
type: object
|
|
2082
|
-
additionalProperties: {}
|
|
2083
|
-
nullable: true
|
|
2084
2111
|
status_code_output_id:
|
|
2085
2112
|
type: string
|
|
2086
2113
|
status_code:
|
|
@@ -6901,6 +6928,13 @@ components:
|
|
|
6901
6928
|
- key
|
|
6902
6929
|
- type
|
|
6903
6930
|
- value
|
|
6931
|
+
PromptSettingsRequest:
|
|
6932
|
+
type: object
|
|
6933
|
+
properties:
|
|
6934
|
+
timeout:
|
|
6935
|
+
type: number
|
|
6936
|
+
format: double
|
|
6937
|
+
nullable: true
|
|
6904
6938
|
RawPromptExecutionOverridesRequest:
|
|
6905
6939
|
type: object
|
|
6906
6940
|
properties:
|
|
@@ -7595,6 +7629,16 @@ components:
|
|
|
7595
7629
|
minimum: 0.0
|
|
7596
7630
|
default: 0.2
|
|
7597
7631
|
description: The relative weight to give to keywords
|
|
7632
|
+
SecretTypeEnum:
|
|
7633
|
+
enum:
|
|
7634
|
+
- USER_DEFINED
|
|
7635
|
+
- HMAC
|
|
7636
|
+
- INTERNAL_API_KEY
|
|
7637
|
+
type: string
|
|
7638
|
+
description: |-
|
|
7639
|
+
* `USER_DEFINED` - User Defined
|
|
7640
|
+
* `HMAC` - Hmac
|
|
7641
|
+
* `INTERNAL_API_KEY` - Internal Api Key
|
|
7598
7642
|
SentenceChunkerConfig:
|
|
7599
7643
|
type: object
|
|
7600
7644
|
description: Configuration for sentence chunking
|
|
@@ -9758,12 +9802,14 @@ components:
|
|
|
9758
9802
|
enum:
|
|
9759
9803
|
- INVALID_REQUEST
|
|
9760
9804
|
- PROVIDER_ERROR
|
|
9805
|
+
- REQUEST_TIMEOUT
|
|
9761
9806
|
- INTERNAL_SERVER_ERROR
|
|
9762
9807
|
- USER_DEFINED_ERROR
|
|
9763
9808
|
type: string
|
|
9764
9809
|
description: |-
|
|
9765
9810
|
* `INVALID_REQUEST` - INVALID_REQUEST
|
|
9766
9811
|
* `PROVIDER_ERROR` - PROVIDER_ERROR
|
|
9812
|
+
* `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
|
|
9767
9813
|
* `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
|
|
9768
9814
|
* `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
|
|
9769
9815
|
VellumErrorRequest:
|
|
@@ -10980,6 +11026,30 @@ components:
|
|
|
10980
11026
|
mapping:
|
|
10981
11027
|
WORKFLOW: '#/components/schemas/WorkflowExecutionWorkflowResultEvent'
|
|
10982
11028
|
NODE: '#/components/schemas/WorkflowExecutionNodeResultEvent'
|
|
11029
|
+
WorkspaceSecretRead:
|
|
11030
|
+
type: object
|
|
11031
|
+
properties:
|
|
11032
|
+
id:
|
|
11033
|
+
type: string
|
|
11034
|
+
format: uuid
|
|
11035
|
+
readOnly: true
|
|
11036
|
+
modified:
|
|
11037
|
+
type: string
|
|
11038
|
+
format: date-time
|
|
11039
|
+
readOnly: true
|
|
11040
|
+
name:
|
|
11041
|
+
type: string
|
|
11042
|
+
maxLength: 250
|
|
11043
|
+
label:
|
|
11044
|
+
type: string
|
|
11045
|
+
secret_type:
|
|
11046
|
+
$ref: '#/components/schemas/SecretTypeEnum'
|
|
11047
|
+
required:
|
|
11048
|
+
- id
|
|
11049
|
+
- label
|
|
11050
|
+
- modified
|
|
11051
|
+
- name
|
|
11052
|
+
- secret_type
|
|
10983
11053
|
hkunlp-instructor-xlEnum:
|
|
10984
11054
|
type: string
|
|
10985
11055
|
enum:
|
package/Client.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
|
|
|
15
15
|
import { TestSuites } from "./api/resources/testSuites/client/Client";
|
|
16
16
|
import { WorkflowDeployments } from "./api/resources/workflowDeployments/client/Client";
|
|
17
17
|
import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Client";
|
|
18
|
+
import { WorkspaceSecrets } from "./api/resources/workspaceSecrets/client/Client";
|
|
18
19
|
export declare namespace VellumClient {
|
|
19
20
|
interface Options {
|
|
20
21
|
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
@@ -207,6 +208,8 @@ export declare class VellumClient {
|
|
|
207
208
|
get workflowDeployments(): WorkflowDeployments;
|
|
208
209
|
protected _workflowSandboxes: WorkflowSandboxes | undefined;
|
|
209
210
|
get workflowSandboxes(): WorkflowSandboxes;
|
|
211
|
+
protected _workspaceSecrets: WorkspaceSecrets | undefined;
|
|
212
|
+
get workspaceSecrets(): WorkspaceSecrets;
|
|
210
213
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
211
214
|
X_API_KEY: string | undefined;
|
|
212
215
|
}>;
|
package/Client.js
CHANGED
|
@@ -56,6 +56,7 @@ const Client_8 = require("./api/resources/testSuiteRuns/client/Client");
|
|
|
56
56
|
const Client_9 = require("./api/resources/testSuites/client/Client");
|
|
57
57
|
const Client_10 = require("./api/resources/workflowDeployments/client/Client");
|
|
58
58
|
const Client_11 = require("./api/resources/workflowSandboxes/client/Client");
|
|
59
|
+
const Client_12 = require("./api/resources/workspaceSecrets/client/Client");
|
|
59
60
|
class VellumClient {
|
|
60
61
|
constructor(_options = {}) {
|
|
61
62
|
this._options = _options;
|
|
@@ -91,7 +92,7 @@ class VellumClient {
|
|
|
91
92
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
92
93
|
.default, "v1/execute-code"),
|
|
93
94
|
method: "POST",
|
|
94
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
95
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
95
96
|
contentType: "application/json",
|
|
96
97
|
requestType: "json",
|
|
97
98
|
body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -160,7 +161,7 @@ class VellumClient {
|
|
|
160
161
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
161
162
|
.predict, "v1/execute-prompt"),
|
|
162
163
|
method: "POST",
|
|
163
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
164
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
164
165
|
contentType: "application/json",
|
|
165
166
|
requestType: "json",
|
|
166
167
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -218,7 +219,7 @@ class VellumClient {
|
|
|
218
219
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
219
220
|
.predict, "v1/execute-prompt-stream"),
|
|
220
221
|
method: "POST",
|
|
221
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
222
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
222
223
|
contentType: "application/json",
|
|
223
224
|
requestType: "json",
|
|
224
225
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -303,7 +304,7 @@ class VellumClient {
|
|
|
303
304
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
304
305
|
.predict, "v1/execute-workflow"),
|
|
305
306
|
method: "POST",
|
|
306
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
307
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
307
308
|
contentType: "application/json",
|
|
308
309
|
requestType: "json",
|
|
309
310
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -359,7 +360,7 @@ class VellumClient {
|
|
|
359
360
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
360
361
|
.predict, "v1/execute-workflow-stream"),
|
|
361
362
|
method: "POST",
|
|
362
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
363
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
363
364
|
contentType: "application/json",
|
|
364
365
|
requestType: "json",
|
|
365
366
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -446,7 +447,7 @@ class VellumClient {
|
|
|
446
447
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
447
448
|
.predict, "v1/generate"),
|
|
448
449
|
method: "POST",
|
|
449
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
450
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
450
451
|
contentType: "application/json",
|
|
451
452
|
requestType: "json",
|
|
452
453
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -507,7 +508,7 @@ class VellumClient {
|
|
|
507
508
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
508
509
|
.predict, "v1/generate-stream"),
|
|
509
510
|
method: "POST",
|
|
510
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
511
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
511
512
|
contentType: "application/json",
|
|
512
513
|
requestType: "json",
|
|
513
514
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -588,7 +589,7 @@ class VellumClient {
|
|
|
588
589
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
589
590
|
.predict, "v1/search"),
|
|
590
591
|
method: "POST",
|
|
591
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
592
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
592
593
|
contentType: "application/json",
|
|
593
594
|
requestType: "json",
|
|
594
595
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -656,7 +657,7 @@ class VellumClient {
|
|
|
656
657
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
657
658
|
.predict, "v1/submit-completion-actuals"),
|
|
658
659
|
method: "POST",
|
|
659
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
660
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
660
661
|
contentType: "application/json",
|
|
661
662
|
requestType: "json",
|
|
662
663
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -719,7 +720,7 @@ class VellumClient {
|
|
|
719
720
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
720
721
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
721
722
|
method: "POST",
|
|
722
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
723
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
723
724
|
contentType: "application/json",
|
|
724
725
|
requestType: "json",
|
|
725
726
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -797,6 +798,10 @@ class VellumClient {
|
|
|
797
798
|
var _a;
|
|
798
799
|
return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_11.WorkflowSandboxes(this._options)));
|
|
799
800
|
}
|
|
801
|
+
get workspaceSecrets() {
|
|
802
|
+
var _a;
|
|
803
|
+
return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_12.WorkspaceSecrets(this._options)));
|
|
804
|
+
}
|
|
800
805
|
_getCustomAuthorizationHeaders() {
|
|
801
806
|
return __awaiter(this, void 0, void 0, function* () {
|
|
802
807
|
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
@@ -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.8.
|
|
62
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
63
63
|
contentType: "application/json",
|
|
64
64
|
requestType: "json",
|
|
65
65
|
body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -43,6 +43,9 @@ import * as Vellum from "../../../../index";
|
|
|
43
43
|
* }
|
|
44
44
|
* }
|
|
45
45
|
* },
|
|
46
|
+
* settings: {
|
|
47
|
+
* timeout: 1.1
|
|
48
|
+
* },
|
|
46
49
|
* blocks: [{
|
|
47
50
|
* blockType: "JINJA",
|
|
48
51
|
* properties: {
|
|
@@ -70,6 +73,7 @@ export interface AdHocExecutePromptStreamRequest {
|
|
|
70
73
|
inputValues: Vellum.PromptRequestInputRequest[];
|
|
71
74
|
inputVariables: Vellum.VellumVariableRequest[];
|
|
72
75
|
parameters: Vellum.PromptParametersRequest;
|
|
76
|
+
settings?: Vellum.PromptSettingsRequest;
|
|
73
77
|
blocks: Vellum.PromptBlockRequest[];
|
|
74
78
|
expandMeta?: Vellum.AdHocExpandMetaRequest;
|
|
75
79
|
}
|
|
@@ -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.8.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -185,7 +185,7 @@ class Deployments {
|
|
|
185
185
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
186
186
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
187
187
|
method: "GET",
|
|
188
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
188
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
189
189
|
contentType: "application/json",
|
|
190
190
|
requestType: "json",
|
|
191
191
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -239,7 +239,7 @@ class Deployments {
|
|
|
239
239
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
240
240
|
.default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
241
241
|
method: "PATCH",
|
|
242
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
242
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
243
243
|
contentType: "application/json",
|
|
244
244
|
requestType: "json",
|
|
245
245
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -314,7 +314,7 @@ class Deployments {
|
|
|
314
314
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
315
315
|
.default, "v1/deployments/provider-payload"),
|
|
316
316
|
method: "POST",
|
|
317
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.
|
|
317
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
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.8.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
199
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
307
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
360
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
408
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
464
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
512
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
235
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
325
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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.8.
|
|
148
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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" }),
|
package/api/resources/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export * as sandboxes from "./sandboxes";
|
|
|
13
13
|
export * as testSuiteRuns from "./testSuiteRuns";
|
|
14
14
|
export * as testSuites from "./testSuites";
|
|
15
15
|
export * as workflowSandboxes from "./workflowSandboxes";
|
|
16
|
+
export * as workspaceSecrets from "./workspaceSecrets";
|
|
16
17
|
export * from "./adHoc/client/requests";
|
|
17
18
|
export * from "./deployments/client/requests";
|
|
18
19
|
export * from "./documentIndexes/client/requests";
|