vellum-ai 0.5.0 → 0.5.2
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/Client.js +9 -9
- package/api/resources/deployments/client/Client.js +3 -3
- package/api/resources/documentIndexes/client/Client.js +6 -6
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +3 -3
- package/api/resources/workflowDeployments/client/Client.js +2 -2
- package/api/types/ErrorVellumValue.d.ts +10 -0
- package/api/types/FunctionCallVariableValue.d.ts +1 -1
- package/api/types/FunctionCallVellumValue.d.ts +10 -0
- package/api/types/JsonVellumValue.d.ts +9 -0
- package/api/types/JsonVellumValue.js +5 -0
- package/api/types/NodeOutputCompiledArrayValue.d.ts +5 -1
- package/api/types/NodeOutputCompiledChatHistoryValue.d.ts +5 -1
- package/api/types/NodeOutputCompiledErrorValue.d.ts +5 -1
- package/api/types/NodeOutputCompiledFunctionCallValue.d.ts +12 -0
- package/api/types/NodeOutputCompiledFunctionCallValue.js +5 -0
- package/api/types/NodeOutputCompiledJsonValue.d.ts +6 -1
- package/api/types/NodeOutputCompiledNumberValue.d.ts +6 -1
- package/api/types/NodeOutputCompiledSearchResultsValue.d.ts +5 -1
- package/api/types/NodeOutputCompiledStringValue.d.ts +6 -1
- package/api/types/NodeOutputCompiledValue.d.ts +1 -1
- package/api/types/PromptOutput.d.ts +4 -4
- package/api/types/StringVellumValue.d.ts +9 -0
- package/api/types/StringVellumValue.js +5 -0
- package/api/types/index.d.ts +5 -1
- package/api/types/index.js +5 -1
- package/dist/Client.js +9 -9
- package/dist/api/resources/deployments/client/Client.js +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +6 -6
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
- package/dist/api/types/ErrorVellumValue.d.ts +10 -0
- package/dist/api/types/ErrorVellumValue.js +5 -0
- package/dist/api/types/FunctionCallVariableValue.d.ts +1 -1
- package/dist/api/types/FunctionCallVellumValue.d.ts +10 -0
- package/dist/api/types/FunctionCallVellumValue.js +5 -0
- package/dist/api/types/JsonVellumValue.d.ts +9 -0
- package/dist/api/types/JsonVellumValue.js +5 -0
- package/dist/api/types/NodeOutputCompiledArrayValue.d.ts +5 -1
- package/dist/api/types/NodeOutputCompiledChatHistoryValue.d.ts +5 -1
- package/dist/api/types/NodeOutputCompiledErrorValue.d.ts +5 -1
- package/dist/api/types/NodeOutputCompiledFunctionCallValue.d.ts +12 -0
- package/dist/api/types/NodeOutputCompiledFunctionCallValue.js +5 -0
- package/dist/api/types/NodeOutputCompiledJsonValue.d.ts +6 -1
- package/dist/api/types/NodeOutputCompiledNumberValue.d.ts +6 -1
- package/dist/api/types/NodeOutputCompiledSearchResultsValue.d.ts +5 -1
- package/dist/api/types/NodeOutputCompiledStringValue.d.ts +6 -1
- package/dist/api/types/NodeOutputCompiledValue.d.ts +1 -1
- package/dist/api/types/PromptOutput.d.ts +4 -4
- package/dist/api/types/StringVellumValue.d.ts +9 -0
- package/dist/api/types/StringVellumValue.js +5 -0
- package/dist/api/types/index.d.ts +5 -1
- package/dist/api/types/index.js +5 -1
- package/dist/serialization/types/ErrorVellumValue.d.ts +13 -0
- package/dist/serialization/types/ErrorVellumValue.js +34 -0
- package/dist/serialization/types/FunctionCallVariableValue.d.ts +1 -1
- package/dist/serialization/types/FunctionCallVariableValue.js +1 -1
- package/dist/serialization/types/FunctionCallVellumValue.d.ts +13 -0
- package/dist/serialization/types/FunctionCallVellumValue.js +34 -0
- package/dist/serialization/types/JsonVellumValue.d.ts +12 -0
- package/dist/serialization/types/JsonVellumValue.js +33 -0
- package/dist/serialization/types/NodeOutputCompiledArrayValue.d.ts +3 -1
- package/dist/serialization/types/NodeOutputCompiledArrayValue.js +3 -1
- package/dist/serialization/types/NodeOutputCompiledChatHistoryValue.d.ts +3 -1
- package/dist/serialization/types/NodeOutputCompiledChatHistoryValue.js +3 -1
- package/dist/serialization/types/NodeOutputCompiledErrorValue.d.ts +3 -1
- package/dist/serialization/types/NodeOutputCompiledErrorValue.js +3 -1
- package/dist/serialization/types/NodeOutputCompiledFunctionCallValue.d.ts +16 -0
- package/dist/serialization/types/{NodeOutputCompiledFunctionValue.js → NodeOutputCompiledFunctionCallValue.js} +5 -3
- package/dist/serialization/types/NodeOutputCompiledJsonValue.d.ts +3 -1
- package/dist/serialization/types/NodeOutputCompiledJsonValue.js +3 -1
- package/dist/serialization/types/NodeOutputCompiledNumberValue.d.ts +3 -1
- package/dist/serialization/types/NodeOutputCompiledNumberValue.js +3 -1
- package/dist/serialization/types/NodeOutputCompiledSearchResultsValue.d.ts +3 -1
- package/dist/serialization/types/NodeOutputCompiledSearchResultsValue.js +3 -1
- package/dist/serialization/types/NodeOutputCompiledStringValue.d.ts +3 -1
- package/dist/serialization/types/NodeOutputCompiledStringValue.js +3 -1
- package/dist/serialization/types/NodeOutputCompiledValue.d.ts +2 -2
- package/dist/serialization/types/NodeOutputCompiledValue.js +2 -2
- package/dist/serialization/types/PromptOutput.d.ts +8 -8
- package/dist/serialization/types/PromptOutput.js +8 -8
- package/dist/serialization/types/StringVellumValue.d.ts +12 -0
- package/dist/serialization/types/StringVellumValue.js +33 -0
- package/dist/serialization/types/index.d.ts +5 -1
- package/dist/serialization/types/index.js +5 -1
- package/package.json +1 -1
- package/serialization/types/ErrorVellumValue.d.ts +13 -0
- package/serialization/types/ErrorVellumValue.js +34 -0
- package/serialization/types/FunctionCallVariableValue.d.ts +1 -1
- package/serialization/types/FunctionCallVariableValue.js +1 -1
- package/serialization/types/FunctionCallVellumValue.d.ts +13 -0
- package/serialization/types/FunctionCallVellumValue.js +34 -0
- package/serialization/types/JsonVellumValue.d.ts +12 -0
- package/serialization/types/JsonVellumValue.js +33 -0
- package/serialization/types/NodeOutputCompiledArrayValue.d.ts +3 -1
- package/serialization/types/NodeOutputCompiledArrayValue.js +3 -1
- package/serialization/types/NodeOutputCompiledChatHistoryValue.d.ts +3 -1
- package/serialization/types/NodeOutputCompiledChatHistoryValue.js +3 -1
- package/serialization/types/NodeOutputCompiledErrorValue.d.ts +3 -1
- package/serialization/types/NodeOutputCompiledErrorValue.js +3 -1
- package/serialization/types/NodeOutputCompiledFunctionCallValue.d.ts +16 -0
- package/serialization/types/{NodeOutputCompiledFunctionValue.js → NodeOutputCompiledFunctionCallValue.js} +5 -3
- package/serialization/types/NodeOutputCompiledJsonValue.d.ts +3 -1
- package/serialization/types/NodeOutputCompiledJsonValue.js +3 -1
- package/serialization/types/NodeOutputCompiledNumberValue.d.ts +3 -1
- package/serialization/types/NodeOutputCompiledNumberValue.js +3 -1
- package/serialization/types/NodeOutputCompiledSearchResultsValue.d.ts +3 -1
- package/serialization/types/NodeOutputCompiledSearchResultsValue.js +3 -1
- package/serialization/types/NodeOutputCompiledStringValue.d.ts +3 -1
- package/serialization/types/NodeOutputCompiledStringValue.js +3 -1
- package/serialization/types/NodeOutputCompiledValue.d.ts +2 -2
- package/serialization/types/NodeOutputCompiledValue.js +2 -2
- package/serialization/types/PromptOutput.d.ts +8 -8
- package/serialization/types/PromptOutput.js +8 -8
- package/serialization/types/StringVellumValue.d.ts +12 -0
- package/serialization/types/StringVellumValue.js +33 -0
- package/serialization/types/index.d.ts +5 -1
- package/serialization/types/index.js +5 -1
- package/api/types/NodeOutputCompiledFunctionValue.d.ts +0 -8
- package/dist/api/types/NodeOutputCompiledFunctionValue.d.ts +0 -8
- package/dist/serialization/types/NodeOutputCompiledFunctionValue.d.ts +0 -14
- package/serialization/types/NodeOutputCompiledFunctionValue.d.ts +0 -14
- /package/api/types/{NodeOutputCompiledFunctionValue.js → ErrorVellumValue.js} +0 -0
- /package/{dist/api/types/NodeOutputCompiledFunctionValue.js → api/types/FunctionCallVellumValue.js} +0 -0
package/Client.js
CHANGED
|
@@ -71,7 +71,7 @@ class VellumClient {
|
|
|
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
|
.predict, "v1/execute-prompt"),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
77
77
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -127,7 +127,7 @@ class VellumClient {
|
|
|
127
127
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
128
128
|
.predict, "v1/execute-prompt-stream"),
|
|
129
129
|
method: "POST",
|
|
130
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
130
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
|
|
133
133
|
unrecognizedObjectKeys: "strip",
|
|
@@ -195,7 +195,7 @@ class VellumClient {
|
|
|
195
195
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
196
196
|
.predict, "v1/execute-workflow"),
|
|
197
197
|
method: "POST",
|
|
198
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
198
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
199
199
|
contentType: "application/json",
|
|
200
200
|
body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
201
201
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -249,7 +249,7 @@ class VellumClient {
|
|
|
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
|
.predict, "v1/execute-workflow-stream"),
|
|
251
251
|
method: "POST",
|
|
252
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
252
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
253
253
|
contentType: "application/json",
|
|
254
254
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
255
255
|
unrecognizedObjectKeys: "strip",
|
|
@@ -325,7 +325,7 @@ class VellumClient {
|
|
|
325
325
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
326
326
|
.predict, "v1/generate"),
|
|
327
327
|
method: "POST",
|
|
328
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
328
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
329
329
|
contentType: "application/json",
|
|
330
330
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
331
331
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -383,7 +383,7 @@ class VellumClient {
|
|
|
383
383
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
384
384
|
.predict, "v1/generate-stream"),
|
|
385
385
|
method: "POST",
|
|
386
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
386
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
387
387
|
contentType: "application/json",
|
|
388
388
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
389
389
|
responseType: "streaming",
|
|
@@ -456,7 +456,7 @@ class VellumClient {
|
|
|
456
456
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
457
457
|
.predict, "v1/search"),
|
|
458
458
|
method: "POST",
|
|
459
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
459
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
460
460
|
contentType: "application/json",
|
|
461
461
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
462
462
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -520,7 +520,7 @@ class VellumClient {
|
|
|
520
520
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
521
521
|
.predict, "v1/submit-completion-actuals"),
|
|
522
522
|
method: "POST",
|
|
523
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
523
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
524
524
|
contentType: "application/json",
|
|
525
525
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
526
526
|
unrecognizedObjectKeys: "strip",
|
|
@@ -578,7 +578,7 @@ class VellumClient {
|
|
|
578
578
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
579
579
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
580
580
|
method: "POST",
|
|
581
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
581
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
582
582
|
contentType: "application/json",
|
|
583
583
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
584
584
|
unrecognizedObjectKeys: "strip",
|
|
@@ -70,7 +70,7 @@ class Deployments {
|
|
|
70
70
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
71
71
|
.default, "v1/deployments"),
|
|
72
72
|
method: "GET",
|
|
73
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
73
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
queryParameters: _queryParams,
|
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -118,7 +118,7 @@ class Deployments {
|
|
|
118
118
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
119
119
|
.default, `v1/deployments/${id}`),
|
|
120
120
|
method: "GET",
|
|
121
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
121
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
122
122
|
contentType: "application/json",
|
|
123
123
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
124
124
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -170,7 +170,7 @@ class Deployments {
|
|
|
170
170
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
171
171
|
.default, "v1/deployments/provider-payload"),
|
|
172
172
|
method: "POST",
|
|
173
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
173
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
176
176
|
unrecognizedObjectKeys: "strip",
|
|
@@ -75,7 +75,7 @@ class DocumentIndexes {
|
|
|
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/document-indexes"),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "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
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -183,7 +183,7 @@ class DocumentIndexes {
|
|
|
183
183
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
184
184
|
.default, "v1/document-indexes"),
|
|
185
185
|
method: "POST",
|
|
186
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
186
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
187
187
|
contentType: "application/json",
|
|
188
188
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
189
189
|
unrecognizedObjectKeys: "strip",
|
|
@@ -233,7 +233,7 @@ class DocumentIndexes {
|
|
|
233
233
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
234
234
|
.default, `v1/document-indexes/${id}`),
|
|
235
235
|
method: "GET",
|
|
236
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
236
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
237
237
|
contentType: "application/json",
|
|
238
238
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
239
239
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -282,7 +282,7 @@ class DocumentIndexes {
|
|
|
282
282
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
283
283
|
.default, `v1/document-indexes/${id}`),
|
|
284
284
|
method: "PUT",
|
|
285
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
285
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
286
286
|
contentType: "application/json",
|
|
287
287
|
body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
288
288
|
unrecognizedObjectKeys: "strip",
|
|
@@ -332,7 +332,7 @@ class DocumentIndexes {
|
|
|
332
332
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
333
333
|
.default, `v1/document-indexes/${id}`),
|
|
334
334
|
method: "DELETE",
|
|
335
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
335
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
336
336
|
contentType: "application/json",
|
|
337
337
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
338
338
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -374,7 +374,7 @@ class DocumentIndexes {
|
|
|
374
374
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
375
375
|
.default, `v1/document-indexes/${id}`),
|
|
376
376
|
method: "PATCH",
|
|
377
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
377
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
378
378
|
contentType: "application/json",
|
|
379
379
|
body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
|
|
380
380
|
unrecognizedObjectKeys: "strip",
|
|
@@ -77,7 +77,7 @@ class Documents {
|
|
|
77
77
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
78
78
|
.default, "v1/documents"),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
80
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
queryParameters: _queryParams,
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -125,7 +125,7 @@ class Documents {
|
|
|
125
125
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
126
126
|
.default, `v1/documents/${id}`),
|
|
127
127
|
method: "GET",
|
|
128
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
128
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
129
129
|
contentType: "application/json",
|
|
130
130
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
131
131
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -166,7 +166,7 @@ class Documents {
|
|
|
166
166
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
167
167
|
.default, `v1/documents/${id}`),
|
|
168
168
|
method: "DELETE",
|
|
169
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
169
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
170
170
|
contentType: "application/json",
|
|
171
171
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
172
172
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -208,7 +208,7 @@ class Documents {
|
|
|
208
208
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
209
209
|
.default, `v1/documents/${id}`),
|
|
210
210
|
method: "PATCH",
|
|
211
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
211
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
212
212
|
contentType: "application/json",
|
|
213
213
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
214
214
|
unrecognizedObjectKeys: "strip",
|
|
@@ -287,7 +287,7 @@ class Documents {
|
|
|
287
287
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
288
288
|
.documents, "v1/upload-document"),
|
|
289
289
|
method: "POST",
|
|
290
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
290
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
291
291
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
292
292
|
body: _request,
|
|
293
293
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -65,7 +65,7 @@ class FolderEntities {
|
|
|
65
65
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
66
66
|
.default, `v1/folders/${folderId}/add-entity`),
|
|
67
67
|
method: "POST",
|
|
68
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
68
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
69
69
|
contentType: "application/json",
|
|
70
70
|
body: yield serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
71
71
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -76,7 +76,7 @@ class Sandboxes {
|
|
|
76
76
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
77
77
|
.default, `v1/sandboxes/${id}/scenarios`),
|
|
78
78
|
method: "POST",
|
|
79
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
79
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
82
82
|
unrecognizedObjectKeys: "strip",
|
|
@@ -126,7 +126,7 @@ class Sandboxes {
|
|
|
126
126
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
127
127
|
.default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
|
|
128
128
|
method: "DELETE",
|
|
129
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
129
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
132
132
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -58,7 +58,7 @@ class TestSuiteRuns {
|
|
|
58
58
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
59
59
|
.default, "v1/test-suite-runs"),
|
|
60
60
|
method: "POST",
|
|
61
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
61
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
62
62
|
contentType: "application/json",
|
|
63
63
|
body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
64
64
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -106,7 +106,7 @@ class TestSuiteRuns {
|
|
|
106
106
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
107
107
|
.default, `v1/test-suite-runs/${id}`),
|
|
108
108
|
method: "GET",
|
|
109
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
109
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
110
110
|
contentType: "application/json",
|
|
111
111
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
112
112
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -163,7 +163,7 @@ class TestSuiteRuns {
|
|
|
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
|
.default, `v1/test-suite-runs/${id}/executions`),
|
|
165
165
|
method: "GET",
|
|
166
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
166
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
queryParameters: _queryParams,
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -69,7 +69,7 @@ class TestSuites {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -126,7 +126,7 @@ class TestSuites {
|
|
|
126
126
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
127
127
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
128
128
|
method: "POST",
|
|
129
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
129
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
130
130
|
contentType: "application/json",
|
|
131
131
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
132
132
|
unrecognizedObjectKeys: "strip",
|
|
@@ -176,7 +176,7 @@ class TestSuites {
|
|
|
176
176
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
177
177
|
.default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
|
|
178
178
|
method: "DELETE",
|
|
179
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
179
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
180
180
|
contentType: "application/json",
|
|
181
181
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
182
182
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -69,7 +69,7 @@ class WorkflowDeployments {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, "v1/workflow-deployments"),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -117,7 +117,7 @@ class WorkflowDeployments {
|
|
|
117
117
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
118
118
|
.default, `v1/workflow-deployments/${id}`),
|
|
119
119
|
method: "GET",
|
|
120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.5.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
121
121
|
contentType: "application/json",
|
|
122
122
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
123
123
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An output returned by a node that is of type ARRAY.
|
|
7
|
+
*/
|
|
5
8
|
export interface NodeOutputCompiledArrayValue {
|
|
6
|
-
nodeOutputId: string;
|
|
7
9
|
value?: Vellum.ArrayVariableValueItem[];
|
|
10
|
+
nodeOutputId: string;
|
|
11
|
+
state?: Vellum.WorkflowNodeResultEventState;
|
|
8
12
|
}
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An output returned by a node that is of type CHAT_HISTORY.
|
|
7
|
+
*/
|
|
5
8
|
export interface NodeOutputCompiledChatHistoryValue {
|
|
6
|
-
nodeOutputId: string;
|
|
7
9
|
value?: Vellum.ChatMessage[];
|
|
10
|
+
nodeOutputId: string;
|
|
11
|
+
state?: Vellum.WorkflowNodeResultEventState;
|
|
8
12
|
}
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An output returned by a node that is of type ERROR.
|
|
7
|
+
*/
|
|
5
8
|
export interface NodeOutputCompiledErrorValue {
|
|
6
|
-
nodeOutputId: string;
|
|
7
9
|
value?: Vellum.VellumError;
|
|
10
|
+
nodeOutputId: string;
|
|
11
|
+
state?: Vellum.WorkflowNodeResultEventState;
|
|
8
12
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An output returned by a node that is of type FUNCTION_CALL.
|
|
7
|
+
*/
|
|
8
|
+
export interface NodeOutputCompiledFunctionCallValue {
|
|
9
|
+
value?: Vellum.FunctionCall;
|
|
10
|
+
nodeOutputId: string;
|
|
11
|
+
state?: Vellum.WorkflowNodeResultEventState;
|
|
12
|
+
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An output returned by a node that is of type JSON.
|
|
7
|
+
*/
|
|
4
8
|
export interface NodeOutputCompiledJsonValue {
|
|
5
|
-
nodeOutputId: string;
|
|
6
9
|
value?: Record<string, unknown>;
|
|
10
|
+
nodeOutputId: string;
|
|
11
|
+
state?: Vellum.WorkflowNodeResultEventState;
|
|
7
12
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An output returned by a node that is of type NUMBER.
|
|
7
|
+
*/
|
|
4
8
|
export interface NodeOutputCompiledNumberValue {
|
|
5
|
-
nodeOutputId: string;
|
|
6
9
|
value?: number;
|
|
10
|
+
nodeOutputId: string;
|
|
11
|
+
state?: Vellum.WorkflowNodeResultEventState;
|
|
7
12
|
}
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An output returned by a node that is of type SEARCH_RESULTS.
|
|
7
|
+
*/
|
|
5
8
|
export interface NodeOutputCompiledSearchResultsValue {
|
|
6
|
-
nodeOutputId: string;
|
|
7
9
|
value?: Vellum.SearchResult[];
|
|
10
|
+
nodeOutputId: string;
|
|
11
|
+
state?: Vellum.WorkflowNodeResultEventState;
|
|
8
12
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An output returned by a node that is of type STRING.
|
|
7
|
+
*/
|
|
4
8
|
export interface NodeOutputCompiledStringValue {
|
|
5
|
-
nodeOutputId: string;
|
|
6
9
|
value?: string;
|
|
10
|
+
nodeOutputId: string;
|
|
11
|
+
state?: Vellum.WorkflowNodeResultEventState;
|
|
7
12
|
}
|
|
@@ -25,7 +25,7 @@ export declare namespace NodeOutputCompiledValue {
|
|
|
25
25
|
interface Array extends Vellum.NodeOutputCompiledArrayValue {
|
|
26
26
|
type: "ARRAY";
|
|
27
27
|
}
|
|
28
|
-
interface FunctionCall extends Vellum.
|
|
28
|
+
interface FunctionCall extends Vellum.NodeOutputCompiledFunctionCallValue {
|
|
29
29
|
type: "FUNCTION_CALL";
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
import * as Vellum from "..";
|
|
5
5
|
export declare type PromptOutput = Vellum.PromptOutput.String | Vellum.PromptOutput.Json | Vellum.PromptOutput.Error_ | Vellum.PromptOutput.FunctionCall;
|
|
6
6
|
export declare namespace PromptOutput {
|
|
7
|
-
interface String extends Vellum.
|
|
7
|
+
interface String extends Vellum.StringVellumValue {
|
|
8
8
|
type: "STRING";
|
|
9
9
|
}
|
|
10
|
-
interface Json extends Vellum.
|
|
10
|
+
interface Json extends Vellum.JsonVellumValue {
|
|
11
11
|
type: "JSON";
|
|
12
12
|
}
|
|
13
|
-
interface Error_ extends Vellum.
|
|
13
|
+
interface Error_ extends Vellum.ErrorVellumValue {
|
|
14
14
|
type: "ERROR";
|
|
15
15
|
}
|
|
16
|
-
interface FunctionCall extends Vellum.
|
|
16
|
+
interface FunctionCall extends Vellum.FunctionCallVellumValue {
|
|
17
17
|
type: "FUNCTION_CALL";
|
|
18
18
|
}
|
|
19
19
|
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from "./EntityStatus";
|
|
|
38
38
|
export * from "./EnvironmentEnum";
|
|
39
39
|
export * from "./ErrorEnum";
|
|
40
40
|
export * from "./ErrorVariableValue";
|
|
41
|
+
export * from "./ErrorVellumValue";
|
|
41
42
|
export * from "./ExecutePromptApiErrorResponse";
|
|
42
43
|
export * from "./ExecutePromptEvent";
|
|
43
44
|
export * from "./ExecutePromptResponse";
|
|
@@ -72,6 +73,7 @@ export * from "./FunctionCallChatMessageContentValue";
|
|
|
72
73
|
export * from "./FunctionCallChatMessageContentValueRequest";
|
|
73
74
|
export * from "./FunctionCallEnum";
|
|
74
75
|
export * from "./FunctionCallVariableValue";
|
|
76
|
+
export * from "./FunctionCallVellumValue";
|
|
75
77
|
export * from "./GenerateErrorResponse";
|
|
76
78
|
export * from "./GenerateOptionsRequest";
|
|
77
79
|
export * from "./GenerateRequest";
|
|
@@ -94,6 +96,7 @@ export * from "./InitiatedWorkflowNodeResultEvent";
|
|
|
94
96
|
export * from "./JsonInputRequest";
|
|
95
97
|
export * from "./JsonEnum";
|
|
96
98
|
export * from "./JsonVariableValue";
|
|
99
|
+
export * from "./JsonVellumValue";
|
|
97
100
|
export * from "./LogicalOperator";
|
|
98
101
|
export * from "./LogprobsEnum";
|
|
99
102
|
export * from "./MlModelUsage";
|
|
@@ -131,7 +134,7 @@ export * from "./NodeInputVariableCompiledValue";
|
|
|
131
134
|
export * from "./NodeOutputCompiledArrayValue";
|
|
132
135
|
export * from "./NodeOutputCompiledChatHistoryValue";
|
|
133
136
|
export * from "./NodeOutputCompiledErrorValue";
|
|
134
|
-
export * from "./
|
|
137
|
+
export * from "./NodeOutputCompiledFunctionCallValue";
|
|
135
138
|
export * from "./NodeOutputCompiledJsonValue";
|
|
136
139
|
export * from "./NodeOutputCompiledNumberValue";
|
|
137
140
|
export * from "./NodeOutputCompiledSearchResultsValue";
|
|
@@ -193,6 +196,7 @@ export * from "./StringChatMessageContentRequest";
|
|
|
193
196
|
export * from "./StringEnum";
|
|
194
197
|
export * from "./StringInputRequest";
|
|
195
198
|
export * from "./StringVariableValue";
|
|
199
|
+
export * from "./StringVellumValue";
|
|
196
200
|
export * from "./SubmitCompletionActualRequest";
|
|
197
201
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
198
202
|
export * from "./SubmitWorkflowExecutionActualRequest";
|