vellum-ai 0.2.0 → 0.2.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.d.ts +7 -0
- package/Client.js +70 -8
- package/api/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
- package/api/client/requests/ExecuteWorkflowRequest.js +5 -0
- package/api/client/requests/index.d.ts +1 -0
- package/api/resources/deployments/client/Client.js +3 -3
- package/api/resources/documentIndexes/client/Client.js +2 -2
- package/api/resources/documents/client/Client.js +4 -4
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuites/client/Client.js +2 -2
- package/api/resources/workflowDeployments/client/Client.js +1 -1
- package/api/types/ArrayEnum.d.ts +4 -0
- package/api/types/ArrayEnum.js +5 -0
- package/api/types/ArrayVariableValue.d.ts +7 -0
- package/api/types/ArrayVariableValue.js +5 -0
- package/api/types/ChatHistoryEnum.d.ts +4 -0
- package/api/types/ChatHistoryEnum.js +5 -0
- package/api/types/ChatHistoryVariableValue.d.ts +7 -0
- package/api/types/ChatHistoryVariableValue.js +5 -0
- package/api/types/ErrorEnum.d.ts +4 -0
- package/api/types/ErrorEnum.js +5 -0
- package/api/types/ExecuteWorkflowErrorResponse.d.ts +7 -0
- package/api/types/ExecuteWorkflowErrorResponse.js +5 -0
- package/api/types/ExecuteWorkflowResponse.d.ts +10 -0
- package/api/types/ExecuteWorkflowResponse.js +5 -0
- package/api/types/ExecuteWorkflowWorkflowResultEvent.d.ts +13 -0
- package/api/types/ExecuteWorkflowWorkflowResultEvent.js +5 -0
- package/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
- package/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +5 -0
- package/api/types/JsonEnum.d.ts +4 -0
- package/api/types/JsonEnum.js +5 -0
- package/api/types/NumberEnum.d.ts +4 -0
- package/api/types/NumberEnum.js +5 -0
- package/api/types/NumberVariableValue.d.ts +6 -0
- package/api/types/NumberVariableValue.js +5 -0
- package/api/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
- package/api/types/RejectedExecuteWorkflowWorkflowResultEvent.js +5 -0
- package/api/types/ScenarioInputTypeEnum.d.ts +2 -2
- package/api/types/SearchResultsEnum.d.ts +4 -0
- package/api/types/SearchResultsEnum.js +5 -0
- package/api/types/SearchResultsVariableValue.d.ts +7 -0
- package/api/types/SearchResultsVariableValue.js +5 -0
- package/api/types/VariableValue.d.ts +31 -0
- package/api/types/VariableValue.js +5 -0
- package/api/types/WorkflowOutput.d.ts +34 -0
- package/api/types/WorkflowOutput.js +5 -0
- package/api/types/WorkflowOutputArray.d.ts +13 -0
- package/api/types/WorkflowOutputArray.js +5 -0
- package/api/types/WorkflowOutputChatHistory.d.ts +13 -0
- package/api/types/WorkflowOutputChatHistory.js +5 -0
- package/api/types/WorkflowOutputError.d.ts +13 -0
- package/api/types/WorkflowOutputError.js +5 -0
- package/api/types/WorkflowOutputFunctionCall.d.ts +13 -0
- package/api/types/WorkflowOutputFunctionCall.js +5 -0
- package/api/types/WorkflowOutputImage.d.ts +13 -0
- package/api/types/WorkflowOutputImage.js +5 -0
- package/api/types/WorkflowOutputJson.d.ts +12 -0
- package/api/types/WorkflowOutputJson.js +5 -0
- package/api/types/WorkflowOutputNumber.d.ts +12 -0
- package/api/types/WorkflowOutputNumber.js +5 -0
- package/api/types/WorkflowOutputSearchResults.d.ts +13 -0
- package/api/types/WorkflowOutputSearchResults.js +5 -0
- package/api/types/WorkflowOutputString.d.ts +12 -0
- package/api/types/WorkflowOutputString.js +5 -0
- package/api/types/WorkflowResultEvent.d.ts +1 -0
- package/api/types/index.d.ts +26 -0
- package/api/types/index.js +26 -0
- package/dist/Client.d.ts +7 -0
- package/dist/Client.js +70 -8
- package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
- package/dist/api/client/requests/ExecuteWorkflowRequest.js +5 -0
- package/dist/api/client/requests/index.d.ts +1 -0
- package/dist/api/resources/deployments/client/Client.js +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +2 -2
- package/dist/api/resources/documents/client/Client.js +4 -4
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuites/client/Client.js +2 -2
- package/dist/api/resources/workflowDeployments/client/Client.js +1 -1
- package/dist/api/types/ArrayEnum.d.ts +4 -0
- package/dist/api/types/ArrayEnum.js +5 -0
- package/dist/api/types/ArrayVariableValue.d.ts +7 -0
- package/dist/api/types/ArrayVariableValue.js +5 -0
- package/dist/api/types/ChatHistoryEnum.d.ts +4 -0
- package/dist/api/types/ChatHistoryEnum.js +5 -0
- package/dist/api/types/ChatHistoryVariableValue.d.ts +7 -0
- package/dist/api/types/ChatHistoryVariableValue.js +5 -0
- package/dist/api/types/ErrorEnum.d.ts +4 -0
- package/dist/api/types/ErrorEnum.js +5 -0
- package/dist/api/types/ExecuteWorkflowErrorResponse.d.ts +7 -0
- package/dist/api/types/ExecuteWorkflowErrorResponse.js +5 -0
- package/dist/api/types/ExecuteWorkflowResponse.d.ts +10 -0
- package/dist/api/types/ExecuteWorkflowResponse.js +5 -0
- package/dist/api/types/ExecuteWorkflowWorkflowResultEvent.d.ts +13 -0
- package/dist/api/types/ExecuteWorkflowWorkflowResultEvent.js +5 -0
- package/dist/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
- package/dist/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +5 -0
- package/dist/api/types/JsonEnum.d.ts +4 -0
- package/dist/api/types/JsonEnum.js +5 -0
- package/dist/api/types/NumberEnum.d.ts +4 -0
- package/dist/api/types/NumberEnum.js +5 -0
- package/dist/api/types/NumberVariableValue.d.ts +6 -0
- package/dist/api/types/NumberVariableValue.js +5 -0
- package/dist/api/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
- package/dist/api/types/RejectedExecuteWorkflowWorkflowResultEvent.js +5 -0
- package/dist/api/types/ScenarioInputTypeEnum.d.ts +2 -2
- package/dist/api/types/SearchResultsEnum.d.ts +4 -0
- package/dist/api/types/SearchResultsEnum.js +5 -0
- package/dist/api/types/SearchResultsVariableValue.d.ts +7 -0
- package/dist/api/types/SearchResultsVariableValue.js +5 -0
- package/dist/api/types/VariableValue.d.ts +31 -0
- package/dist/api/types/VariableValue.js +5 -0
- package/dist/api/types/WorkflowOutput.d.ts +34 -0
- package/dist/api/types/WorkflowOutput.js +5 -0
- package/dist/api/types/WorkflowOutputArray.d.ts +13 -0
- package/dist/api/types/WorkflowOutputArray.js +5 -0
- package/dist/api/types/WorkflowOutputChatHistory.d.ts +13 -0
- package/dist/api/types/WorkflowOutputChatHistory.js +5 -0
- package/dist/api/types/WorkflowOutputError.d.ts +13 -0
- package/dist/api/types/WorkflowOutputError.js +5 -0
- package/dist/api/types/WorkflowOutputFunctionCall.d.ts +13 -0
- package/dist/api/types/WorkflowOutputFunctionCall.js +5 -0
- package/dist/api/types/WorkflowOutputImage.d.ts +13 -0
- package/dist/api/types/WorkflowOutputImage.js +5 -0
- package/dist/api/types/WorkflowOutputJson.d.ts +12 -0
- package/dist/api/types/WorkflowOutputJson.js +5 -0
- package/dist/api/types/WorkflowOutputNumber.d.ts +12 -0
- package/dist/api/types/WorkflowOutputNumber.js +5 -0
- package/dist/api/types/WorkflowOutputSearchResults.d.ts +13 -0
- package/dist/api/types/WorkflowOutputSearchResults.js +5 -0
- package/dist/api/types/WorkflowOutputString.d.ts +12 -0
- package/dist/api/types/WorkflowOutputString.js +5 -0
- package/dist/api/types/WorkflowResultEvent.d.ts +1 -0
- package/dist/api/types/index.d.ts +26 -0
- package/dist/api/types/index.js +26 -0
- package/dist/serialization/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
- package/dist/serialization/client/requests/ExecuteWorkflowRequest.js +46 -0
- package/dist/serialization/client/requests/index.d.ts +1 -0
- package/dist/serialization/client/requests/index.js +3 -1
- package/dist/serialization/types/ArrayEnum.d.ts +10 -0
- package/dist/serialization/types/ArrayEnum.js +31 -0
- package/dist/serialization/types/ArrayVariableValue.d.ts +12 -0
- package/dist/serialization/types/ArrayVariableValue.js +42 -0
- package/dist/serialization/types/ChatHistoryEnum.d.ts +10 -0
- package/dist/serialization/types/ChatHistoryEnum.js +31 -0
- package/dist/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
- package/dist/serialization/types/ChatHistoryVariableValue.js +44 -0
- package/dist/serialization/types/ErrorEnum.d.ts +10 -0
- package/dist/serialization/types/ErrorEnum.js +31 -0
- package/dist/serialization/types/ExecuteWorkflowErrorResponse.d.ts +12 -0
- package/dist/serialization/types/ExecuteWorkflowErrorResponse.js +33 -0
- package/dist/serialization/types/ExecuteWorkflowResponse.d.ts +15 -0
- package/dist/serialization/types/ExecuteWorkflowResponse.js +45 -0
- package/dist/serialization/types/ExecuteWorkflowWorkflowResultEvent.d.ts +16 -0
- package/dist/serialization/types/ExecuteWorkflowWorkflowResultEvent.js +48 -0
- package/dist/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
- package/dist/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +44 -0
- package/dist/serialization/types/JsonEnum.d.ts +10 -0
- package/dist/serialization/types/JsonEnum.js +31 -0
- package/dist/serialization/types/NumberEnum.d.ts +10 -0
- package/dist/serialization/types/NumberEnum.js +31 -0
- package/dist/serialization/types/NumberVariableValue.d.ts +12 -0
- package/dist/serialization/types/NumberVariableValue.js +33 -0
- package/dist/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
- package/dist/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.js +44 -0
- package/dist/serialization/types/SearchResultsEnum.d.ts +10 -0
- package/dist/serialization/types/SearchResultsEnum.js +31 -0
- package/dist/serialization/types/SearchResultsVariableValue.d.ts +12 -0
- package/dist/serialization/types/SearchResultsVariableValue.js +44 -0
- package/dist/serialization/types/VariableValue.d.ts +34 -0
- package/dist/serialization/types/VariableValue.js +54 -0
- package/dist/serialization/types/WorkflowOutput.d.ts +37 -0
- package/dist/serialization/types/WorkflowOutput.js +55 -0
- package/dist/serialization/types/WorkflowOutputArray.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputArray.js +44 -0
- package/dist/serialization/types/WorkflowOutputChatHistory.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputChatHistory.js +44 -0
- package/dist/serialization/types/WorkflowOutputError.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputError.js +44 -0
- package/dist/serialization/types/WorkflowOutputFunctionCall.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputFunctionCall.js +44 -0
- package/dist/serialization/types/WorkflowOutputImage.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputImage.js +44 -0
- package/dist/serialization/types/WorkflowOutputJson.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputJson.js +35 -0
- package/dist/serialization/types/WorkflowOutputNumber.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputNumber.js +35 -0
- package/dist/serialization/types/WorkflowOutputSearchResults.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputSearchResults.js +44 -0
- package/dist/serialization/types/WorkflowOutputString.d.ts +14 -0
- package/dist/serialization/types/WorkflowOutputString.js +35 -0
- package/dist/serialization/types/WorkflowResultEvent.d.ts +1 -0
- package/dist/serialization/types/WorkflowResultEvent.js +3 -0
- package/dist/serialization/types/index.d.ts +26 -0
- package/dist/serialization/types/index.js +26 -0
- package/package.json +1 -1
- package/serialization/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
- package/serialization/client/requests/ExecuteWorkflowRequest.js +46 -0
- package/serialization/client/requests/index.d.ts +1 -0
- package/serialization/client/requests/index.js +3 -1
- package/serialization/types/ArrayEnum.d.ts +10 -0
- package/serialization/types/ArrayEnum.js +31 -0
- package/serialization/types/ArrayVariableValue.d.ts +12 -0
- package/serialization/types/ArrayVariableValue.js +42 -0
- package/serialization/types/ChatHistoryEnum.d.ts +10 -0
- package/serialization/types/ChatHistoryEnum.js +31 -0
- package/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
- package/serialization/types/ChatHistoryVariableValue.js +44 -0
- package/serialization/types/ErrorEnum.d.ts +10 -0
- package/serialization/types/ErrorEnum.js +31 -0
- package/serialization/types/ExecuteWorkflowErrorResponse.d.ts +12 -0
- package/serialization/types/ExecuteWorkflowErrorResponse.js +33 -0
- package/serialization/types/ExecuteWorkflowResponse.d.ts +15 -0
- package/serialization/types/ExecuteWorkflowResponse.js +45 -0
- package/serialization/types/ExecuteWorkflowWorkflowResultEvent.d.ts +16 -0
- package/serialization/types/ExecuteWorkflowWorkflowResultEvent.js +48 -0
- package/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
- package/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +44 -0
- package/serialization/types/JsonEnum.d.ts +10 -0
- package/serialization/types/JsonEnum.js +31 -0
- package/serialization/types/NumberEnum.d.ts +10 -0
- package/serialization/types/NumberEnum.js +31 -0
- package/serialization/types/NumberVariableValue.d.ts +12 -0
- package/serialization/types/NumberVariableValue.js +33 -0
- package/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
- package/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.js +44 -0
- package/serialization/types/SearchResultsEnum.d.ts +10 -0
- package/serialization/types/SearchResultsEnum.js +31 -0
- package/serialization/types/SearchResultsVariableValue.d.ts +12 -0
- package/serialization/types/SearchResultsVariableValue.js +44 -0
- package/serialization/types/VariableValue.d.ts +34 -0
- package/serialization/types/VariableValue.js +54 -0
- package/serialization/types/WorkflowOutput.d.ts +37 -0
- package/serialization/types/WorkflowOutput.js +55 -0
- package/serialization/types/WorkflowOutputArray.d.ts +14 -0
- package/serialization/types/WorkflowOutputArray.js +44 -0
- package/serialization/types/WorkflowOutputChatHistory.d.ts +14 -0
- package/serialization/types/WorkflowOutputChatHistory.js +44 -0
- package/serialization/types/WorkflowOutputError.d.ts +14 -0
- package/serialization/types/WorkflowOutputError.js +44 -0
- package/serialization/types/WorkflowOutputFunctionCall.d.ts +14 -0
- package/serialization/types/WorkflowOutputFunctionCall.js +44 -0
- package/serialization/types/WorkflowOutputImage.d.ts +14 -0
- package/serialization/types/WorkflowOutputImage.js +44 -0
- package/serialization/types/WorkflowOutputJson.d.ts +14 -0
- package/serialization/types/WorkflowOutputJson.js +35 -0
- package/serialization/types/WorkflowOutputNumber.d.ts +14 -0
- package/serialization/types/WorkflowOutputNumber.js +35 -0
- package/serialization/types/WorkflowOutputSearchResults.d.ts +14 -0
- package/serialization/types/WorkflowOutputSearchResults.js +44 -0
- package/serialization/types/WorkflowOutputString.d.ts +14 -0
- package/serialization/types/WorkflowOutputString.js +35 -0
- package/serialization/types/WorkflowResultEvent.d.ts +1 -0
- package/serialization/types/WorkflowResultEvent.js +3 -0
- package/serialization/types/index.d.ts +26 -0
- package/serialization/types/index.js +26 -0
|
@@ -73,7 +73,7 @@ class DocumentIndexes {
|
|
|
73
73
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
76
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
76
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
77
77
|
},
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
@@ -128,7 +128,7 @@ class DocumentIndexes {
|
|
|
128
128
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
129
129
|
"X-Fern-Language": "JavaScript",
|
|
130
130
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
131
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
131
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
132
132
|
},
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -81,7 +81,7 @@ class Documents {
|
|
|
81
81
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
82
82
|
"X-Fern-Language": "JavaScript",
|
|
83
83
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
84
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
84
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
85
85
|
},
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
queryParameters: _queryParams,
|
|
@@ -128,7 +128,7 @@ class Documents {
|
|
|
128
128
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
129
129
|
"X-Fern-Language": "JavaScript",
|
|
130
130
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
131
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
131
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
132
132
|
},
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -177,7 +177,7 @@ class Documents {
|
|
|
177
177
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
178
178
|
"X-Fern-Language": "JavaScript",
|
|
179
179
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
180
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
180
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
181
181
|
},
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
@@ -253,7 +253,7 @@ class Documents {
|
|
|
253
253
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
254
254
|
"X-Fern-Language": "JavaScript",
|
|
255
255
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
256
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
256
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
257
257
|
},
|
|
258
258
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
259
259
|
body: _request,
|
|
@@ -65,7 +65,7 @@ class ModelVersions {
|
|
|
65
65
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
68
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
68
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -101,7 +101,7 @@ class RegisteredPrompts {
|
|
|
101
101
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
102
102
|
"X-Fern-Language": "JavaScript",
|
|
103
103
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
104
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
104
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
105
105
|
},
|
|
106
106
|
contentType: "application/json",
|
|
107
107
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
@@ -82,7 +82,7 @@ class Sandboxes {
|
|
|
82
82
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
85
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
85
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
86
86
|
},
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
@@ -137,7 +137,7 @@ class Sandboxes {
|
|
|
137
137
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
138
138
|
"X-Fern-Language": "JavaScript",
|
|
139
139
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
140
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
140
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
141
141
|
},
|
|
142
142
|
contentType: "application/json",
|
|
143
143
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -74,7 +74,7 @@ class TestSuites {
|
|
|
74
74
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
77
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
77
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
78
78
|
},
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
@@ -129,7 +129,7 @@ class TestSuites {
|
|
|
129
129
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
130
130
|
"X-Fern-Language": "JavaScript",
|
|
131
131
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
132
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
132
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
133
133
|
},
|
|
134
134
|
contentType: "application/json",
|
|
135
135
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -73,7 +73,7 @@ class WorkflowDeployments {
|
|
|
73
73
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
76
|
-
"X-Fern-SDK-Version": "v0.2.
|
|
76
|
+
"X-Fern-SDK-Version": "v0.2.2",
|
|
77
77
|
},
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface ExecuteWorkflowResponse {
|
|
6
|
+
executionId: string;
|
|
7
|
+
runId?: string;
|
|
8
|
+
externalId?: string;
|
|
9
|
+
data: Vellum.ExecuteWorkflowWorkflowResultEvent;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type ExecuteWorkflowWorkflowResultEvent = Vellum.ExecuteWorkflowWorkflowResultEvent.Fulfilled | Vellum.ExecuteWorkflowWorkflowResultEvent.Rejected;
|
|
6
|
+
export declare namespace ExecuteWorkflowWorkflowResultEvent {
|
|
7
|
+
interface Fulfilled extends Vellum.FulfilledExecuteWorkflowWorkflowResultEvent {
|
|
8
|
+
state: "FULFILLED";
|
|
9
|
+
}
|
|
10
|
+
interface Rejected extends Vellum.RejectedExecuteWorkflowWorkflowResultEvent {
|
|
11
|
+
state: "REJECTED";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -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
|
+
* The successful response from the Workflow execution containing the produced outputs.
|
|
7
|
+
*/
|
|
8
|
+
export interface FulfilledExecuteWorkflowWorkflowResultEvent {
|
|
9
|
+
id: string;
|
|
10
|
+
ts: Date;
|
|
11
|
+
outputs: Vellum.WorkflowOutput[];
|
|
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
|
+
* The unsuccessful response from the Workflow execution containing an error specifying what went wrong.
|
|
7
|
+
*/
|
|
8
|
+
export interface RejectedExecuteWorkflowWorkflowResultEvent {
|
|
9
|
+
id: string;
|
|
10
|
+
ts: Date;
|
|
11
|
+
error: Vellum.WorkflowEventError;
|
|
12
|
+
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* - `TEXT` -
|
|
6
|
-
* - `CHAT_HISTORY` -
|
|
5
|
+
* - `TEXT` - TEXT
|
|
6
|
+
* - `CHAT_HISTORY` - CHAT_HISTORY
|
|
7
7
|
*/
|
|
8
8
|
export declare type ScenarioInputTypeEnum = "TEXT" | "CHAT_HISTORY";
|
|
9
9
|
export declare const ScenarioInputTypeEnum: {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type VariableValue = Vellum.VariableValue.String | Vellum.VariableValue.Number | Vellum.VariableValue.Json | Vellum.VariableValue.ChatHistory | Vellum.VariableValue.SearchResults | Vellum.VariableValue.Error_ | Vellum.VariableValue.Array | Vellum.VariableValue.FunctionCall;
|
|
6
|
+
export declare namespace VariableValue {
|
|
7
|
+
interface String extends Vellum.StringVariableValue {
|
|
8
|
+
type: "STRING";
|
|
9
|
+
}
|
|
10
|
+
interface Number extends Vellum.NumberVariableValue {
|
|
11
|
+
type: "NUMBER";
|
|
12
|
+
}
|
|
13
|
+
interface Json extends Vellum.JsonVariableValue {
|
|
14
|
+
type: "JSON";
|
|
15
|
+
}
|
|
16
|
+
interface ChatHistory extends Vellum.ChatHistoryVariableValue {
|
|
17
|
+
type: "CHAT_HISTORY";
|
|
18
|
+
}
|
|
19
|
+
interface SearchResults extends Vellum.SearchResultsVariableValue {
|
|
20
|
+
type: "SEARCH_RESULTS";
|
|
21
|
+
}
|
|
22
|
+
interface Error_ extends Vellum.ErrorVariableValue {
|
|
23
|
+
type: "ERROR";
|
|
24
|
+
}
|
|
25
|
+
interface Array extends Vellum.ArrayVariableValue {
|
|
26
|
+
type: "ARRAY";
|
|
27
|
+
}
|
|
28
|
+
interface FunctionCall extends Vellum.FunctionCallVariableValue {
|
|
29
|
+
type: "FUNCTION_CALL";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type WorkflowOutput = Vellum.WorkflowOutput.String | Vellum.WorkflowOutput.Number | Vellum.WorkflowOutput.Json | Vellum.WorkflowOutput.ChatHistory | Vellum.WorkflowOutput.SearchResults | Vellum.WorkflowOutput.Error_ | Vellum.WorkflowOutput.Array | Vellum.WorkflowOutput.FunctionCall | Vellum.WorkflowOutput.Image;
|
|
6
|
+
export declare namespace WorkflowOutput {
|
|
7
|
+
interface String extends Vellum.WorkflowOutputString {
|
|
8
|
+
type: "STRING";
|
|
9
|
+
}
|
|
10
|
+
interface Number extends Vellum.WorkflowOutputNumber {
|
|
11
|
+
type: "NUMBER";
|
|
12
|
+
}
|
|
13
|
+
interface Json extends Vellum.WorkflowOutputJson {
|
|
14
|
+
type: "JSON";
|
|
15
|
+
}
|
|
16
|
+
interface ChatHistory extends Vellum.WorkflowOutputChatHistory {
|
|
17
|
+
type: "CHAT_HISTORY";
|
|
18
|
+
}
|
|
19
|
+
interface SearchResults extends Vellum.WorkflowOutputSearchResults {
|
|
20
|
+
type: "SEARCH_RESULTS";
|
|
21
|
+
}
|
|
22
|
+
interface Error_ extends Vellum.WorkflowOutputError {
|
|
23
|
+
type: "ERROR";
|
|
24
|
+
}
|
|
25
|
+
interface Array extends Vellum.WorkflowOutputArray {
|
|
26
|
+
type: "ARRAY";
|
|
27
|
+
}
|
|
28
|
+
interface FunctionCall extends Vellum.WorkflowOutputFunctionCall {
|
|
29
|
+
type: "FUNCTION_CALL";
|
|
30
|
+
}
|
|
31
|
+
interface Image extends Vellum.WorkflowOutputImage {
|
|
32
|
+
type: "IMAGE";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An array of outputs from a Workflow execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowOutputArray {
|
|
9
|
+
id: string;
|
|
10
|
+
/** The output's name, as defined in the workflow */
|
|
11
|
+
name: string;
|
|
12
|
+
value: Vellum.VariableValue[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A chat history output from a Workflow execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowOutputChatHistory {
|
|
9
|
+
id: string;
|
|
10
|
+
/** The output's name, as defined in the workflow */
|
|
11
|
+
name: string;
|
|
12
|
+
value: Vellum.ChatMessage[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An error output from a Workflow execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowOutputError {
|
|
9
|
+
id: string;
|
|
10
|
+
/** The output's name, as defined in the workflow */
|
|
11
|
+
name: string;
|
|
12
|
+
value: Vellum.VellumError;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A function call output from a Workflow execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowOutputFunctionCall {
|
|
9
|
+
id: string;
|
|
10
|
+
/** The output's name, as defined in the workflow */
|
|
11
|
+
name: string;
|
|
12
|
+
value: Vellum.FunctionCall;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* An image output from a Workflow execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowOutputImage {
|
|
9
|
+
id: string;
|
|
10
|
+
/** The output's name, as defined in the workflow */
|
|
11
|
+
name: string;
|
|
12
|
+
value: Vellum.VellumImage;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A JSON output from a Workflow execution.
|
|
6
|
+
*/
|
|
7
|
+
export interface WorkflowOutputJson {
|
|
8
|
+
id: string;
|
|
9
|
+
/** The output's name, as defined in the workflow */
|
|
10
|
+
name: string;
|
|
11
|
+
value: Record<string, unknown>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A number output from a Workflow execution.
|
|
6
|
+
*/
|
|
7
|
+
export interface WorkflowOutputNumber {
|
|
8
|
+
id: string;
|
|
9
|
+
/** The output's name, as defined in the workflow */
|
|
10
|
+
name: string;
|
|
11
|
+
value: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* A search results output from a Workflow execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface WorkflowOutputSearchResults {
|
|
9
|
+
id: string;
|
|
10
|
+
/** The output's name, as defined in the workflow */
|
|
11
|
+
name: string;
|
|
12
|
+
value: Vellum.SearchResult[];
|
|
13
|
+
}
|