vellum-ai 0.9.5 → 0.9.6
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 +9 -29
- package/.mock/openapi/openapi.yml +18 -38
- package/Client.js +10 -10
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +5 -6
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +6 -6
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/metricDefinitions/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +5 -5
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/ChatMessagePromptBlockRequest.d.ts +2 -3
- package/api/types/FunctionDefinitionPromptBlockRequest.d.ts +2 -3
- package/api/types/JinjaPromptBlockRequest.d.ts +2 -3
- package/api/types/PlainTextPromptBlockRequest.d.ts +2 -3
- package/api/types/VariablePromptBlockRequest.d.ts +1 -2
- package/dist/Client.js +10 -10
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +5 -6
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +6 -6
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/ChatMessagePromptBlockRequest.d.ts +2 -3
- package/dist/api/types/FunctionDefinitionPromptBlockRequest.d.ts +2 -3
- package/dist/api/types/JinjaPromptBlockRequest.d.ts +2 -3
- package/dist/api/types/PlainTextPromptBlockRequest.d.ts +2 -3
- package/dist/api/types/VariablePromptBlockRequest.d.ts +1 -2
- package/dist/serialization/types/ChatMessagePromptBlockRequest.d.ts +2 -3
- package/dist/serialization/types/ChatMessagePromptBlockRequest.js +2 -3
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +3 -4
- package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.js +3 -4
- package/dist/serialization/types/JinjaPromptBlockRequest.d.ts +3 -4
- package/dist/serialization/types/JinjaPromptBlockRequest.js +3 -4
- package/dist/serialization/types/PlainTextPromptBlockRequest.d.ts +2 -3
- package/dist/serialization/types/PlainTextPromptBlockRequest.js +2 -3
- package/dist/serialization/types/VariablePromptBlockRequest.d.ts +1 -2
- package/dist/serialization/types/VariablePromptBlockRequest.js +1 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +5 -6
- package/serialization/types/ChatMessagePromptBlockRequest.d.ts +2 -3
- package/serialization/types/ChatMessagePromptBlockRequest.js +2 -3
- package/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +3 -4
- package/serialization/types/FunctionDefinitionPromptBlockRequest.js +3 -4
- package/serialization/types/JinjaPromptBlockRequest.d.ts +3 -4
- package/serialization/types/JinjaPromptBlockRequest.js +3 -4
- package/serialization/types/PlainTextPromptBlockRequest.d.ts +2 -3
- package/serialization/types/PlainTextPromptBlockRequest.js +2 -3
- package/serialization/types/VariablePromptBlockRequest.d.ts +1 -2
- package/serialization/types/VariablePromptBlockRequest.js +1 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -79,7 +79,7 @@ class Documents {
|
|
|
79
79
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
80
80
|
.default, "v1/documents"),
|
|
81
81
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
82
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
83
83
|
contentType: "application/json",
|
|
84
84
|
queryParameters: _queryParams,
|
|
85
85
|
requestType: "json",
|
|
@@ -132,7 +132,7 @@ class Documents {
|
|
|
132
132
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
133
133
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
134
134
|
method: "GET",
|
|
135
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
135
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
136
136
|
contentType: "application/json",
|
|
137
137
|
requestType: "json",
|
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -184,7 +184,7 @@ class Documents {
|
|
|
184
184
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
185
185
|
.documents, `v1/documents/${encodeURIComponent(id)}`),
|
|
186
186
|
method: "DELETE",
|
|
187
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
187
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -232,7 +232,7 @@ class Documents {
|
|
|
232
232
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
233
233
|
.default, `v1/documents/${encodeURIComponent(id)}`),
|
|
234
234
|
method: "PATCH",
|
|
235
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
235
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
236
236
|
contentType: "application/json",
|
|
237
237
|
requestType: "json",
|
|
238
238
|
body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -322,7 +322,7 @@ class Documents {
|
|
|
322
322
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
323
323
|
.documents, "v1/upload-document"),
|
|
324
324
|
method: "POST",
|
|
325
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
325
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
|
|
326
326
|
requestType: "file",
|
|
327
327
|
duplex: _maybeEncodedRequest.duplex,
|
|
328
328
|
body: _maybeEncodedRequest.body,
|
|
@@ -81,7 +81,7 @@ class FolderEntities {
|
|
|
81
81
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
82
82
|
.default, "v1/folder-entities"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
queryParameters: _queryParams,
|
|
87
87
|
requestType: "json",
|
|
@@ -145,7 +145,7 @@ class FolderEntities {
|
|
|
145
145
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
146
146
|
.default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
|
|
147
147
|
method: "POST",
|
|
148
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
148
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
149
149
|
contentType: "application/json",
|
|
150
150
|
requestType: "json",
|
|
151
151
|
body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -71,7 +71,7 @@ class MetricDefinitions {
|
|
|
71
71
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
72
72
|
.default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
body: serializers.ExecuteMetricDefinitionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -64,7 +64,7 @@ class Sandboxes {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
|
|
66
66
|
method: "POST",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -151,7 +151,7 @@ class Sandboxes {
|
|
|
151
151
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
152
152
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
|
|
153
153
|
method: "POST",
|
|
154
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
154
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
requestType: "json",
|
|
157
157
|
body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -205,7 +205,7 @@ class Sandboxes {
|
|
|
205
205
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
206
206
|
.default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
|
|
207
207
|
method: "DELETE",
|
|
208
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
208
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
209
209
|
contentType: "application/json",
|
|
210
210
|
requestType: "json",
|
|
211
211
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -71,7 +71,7 @@ class TestSuiteRuns {
|
|
|
71
71
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
72
72
|
.default, "v1/test-suite-runs"),
|
|
73
73
|
method: "POST",
|
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
75
75
|
contentType: "application/json",
|
|
76
76
|
requestType: "json",
|
|
77
77
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -124,7 +124,7 @@ class TestSuiteRuns {
|
|
|
124
124
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
125
125
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
|
|
126
126
|
method: "GET",
|
|
127
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
127
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
requestType: "json",
|
|
130
130
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -191,7 +191,7 @@ class TestSuiteRuns {
|
|
|
191
191
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
192
192
|
.default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
|
|
193
193
|
method: "GET",
|
|
194
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
194
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
queryParameters: _queryParams,
|
|
197
197
|
requestType: "json",
|
|
@@ -73,7 +73,7 @@ class TestSuites {
|
|
|
73
73
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
74
74
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
75
75
|
method: "GET",
|
|
76
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
76
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
77
77
|
contentType: "application/json",
|
|
78
78
|
queryParameters: _queryParams,
|
|
79
79
|
requestType: "json",
|
|
@@ -142,7 +142,7 @@ class TestSuites {
|
|
|
142
142
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
143
143
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
|
|
144
144
|
method: "POST",
|
|
145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
requestType: "json",
|
|
148
148
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -189,7 +189,7 @@ class TestSuites {
|
|
|
189
189
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
190
190
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
|
|
191
191
|
method: "POST",
|
|
192
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
192
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
193
193
|
contentType: "application/json",
|
|
194
194
|
requestType: "json",
|
|
195
195
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -256,7 +256,7 @@ class TestSuites {
|
|
|
256
256
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
257
257
|
.default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
|
|
258
258
|
method: "DELETE",
|
|
259
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
259
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
260
260
|
contentType: "application/json",
|
|
261
261
|
requestType: "json",
|
|
262
262
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -78,7 +78,7 @@ class WorkflowDeployments {
|
|
|
78
78
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
79
79
|
.default, "v1/workflow-deployments"),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
queryParameters: _queryParams,
|
|
84
84
|
requestType: "json",
|
|
@@ -131,7 +131,7 @@ class WorkflowDeployments {
|
|
|
131
131
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
132
132
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
|
|
133
133
|
method: "GET",
|
|
134
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
134
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
135
135
|
contentType: "application/json",
|
|
136
136
|
requestType: "json",
|
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -198,7 +198,7 @@ class WorkflowDeployments {
|
|
|
198
198
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
199
199
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
|
|
200
200
|
method: "GET",
|
|
201
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
201
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
202
202
|
contentType: "application/json",
|
|
203
203
|
queryParameters: _queryParams,
|
|
204
204
|
requestType: "json",
|
|
@@ -252,7 +252,7 @@ class WorkflowDeployments {
|
|
|
252
252
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
253
253
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
254
254
|
method: "GET",
|
|
255
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
255
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
256
256
|
contentType: "application/json",
|
|
257
257
|
requestType: "json",
|
|
258
258
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -306,7 +306,7 @@ class WorkflowDeployments {
|
|
|
306
306
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
307
307
|
.default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
|
|
308
308
|
method: "PATCH",
|
|
309
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
309
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
310
310
|
contentType: "application/json",
|
|
311
311
|
requestType: "json",
|
|
312
312
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
|
|
66
66
|
method: "POST",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -65,7 +65,7 @@ class Workflows {
|
|
|
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/workflows/${encodeURIComponent(id)}/pull`),
|
|
67
67
|
method: "GET",
|
|
68
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
68
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
69
69
|
contentType: "application/json",
|
|
70
70
|
queryParameters: _queryParams,
|
|
71
71
|
requestType: "json",
|
|
@@ -124,7 +124,7 @@ class Workflows {
|
|
|
124
124
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
125
125
|
.default, "v1/workflows/push"),
|
|
126
126
|
method: "POST",
|
|
127
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
127
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
requestType: "json",
|
|
130
130
|
body: serializers.WorkflowPushRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -64,7 +64,7 @@ class WorkspaceSecrets {
|
|
|
64
64
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
65
65
|
.default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
|
|
66
66
|
method: "GET",
|
|
67
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
67
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
requestType: "json",
|
|
70
70
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -117,7 +117,7 @@ class WorkspaceSecrets {
|
|
|
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/workspace-secrets/${encodeURIComponent(id)}`),
|
|
119
119
|
method: "PATCH",
|
|
120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.6", "User-Agent": "vellum-ai/0.9.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
121
121
|
contentType: "application/json",
|
|
122
122
|
requestType: "json",
|
|
123
123
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -6,9 +6,8 @@ import * as Vellum from "../index";
|
|
|
6
6
|
* A block that represents a chat message in a prompt template.
|
|
7
7
|
*/
|
|
8
8
|
export interface ChatMessagePromptBlockRequest {
|
|
9
|
-
blockType: "CHAT_MESSAGE";
|
|
10
|
-
properties: Vellum.ChatMessagePromptBlockPropertiesRequest;
|
|
11
|
-
id: string;
|
|
12
9
|
state?: Vellum.PromptBlockState;
|
|
13
10
|
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
11
|
+
blockType: "CHAT_MESSAGE";
|
|
12
|
+
properties: Vellum.ChatMessagePromptBlockPropertiesRequest;
|
|
14
13
|
}
|
|
@@ -6,9 +6,8 @@ import * as Vellum from "../index";
|
|
|
6
6
|
* A block that represents a function definition in a prompt template.
|
|
7
7
|
*/
|
|
8
8
|
export interface FunctionDefinitionPromptBlockRequest {
|
|
9
|
-
blockType: "FUNCTION_DEFINITION";
|
|
10
|
-
properties: Vellum.FunctionDefinitionPromptBlockPropertiesRequest;
|
|
11
|
-
id: string;
|
|
12
9
|
state?: Vellum.PromptBlockState;
|
|
13
10
|
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
11
|
+
blockType: "FUNCTION_DEFINITION";
|
|
12
|
+
properties: Vellum.FunctionDefinitionPromptBlockPropertiesRequest;
|
|
14
13
|
}
|
|
@@ -6,9 +6,8 @@ import * as Vellum from "../index";
|
|
|
6
6
|
* A block of Jinja template code that is used to generate a prompt
|
|
7
7
|
*/
|
|
8
8
|
export interface JinjaPromptBlockRequest {
|
|
9
|
-
blockType: "JINJA";
|
|
10
|
-
properties: Vellum.JinjaPromptBlockPropertiesRequest;
|
|
11
|
-
id: string;
|
|
12
9
|
state?: Vellum.PromptBlockState;
|
|
13
10
|
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
11
|
+
blockType: "JINJA";
|
|
12
|
+
properties: Vellum.JinjaPromptBlockPropertiesRequest;
|
|
14
13
|
}
|
|
@@ -6,9 +6,8 @@ import * as Vellum from "../index";
|
|
|
6
6
|
* A block that holds a plain text string value.
|
|
7
7
|
*/
|
|
8
8
|
export interface PlainTextPromptBlockRequest {
|
|
9
|
-
blockType: "PLAIN_TEXT";
|
|
10
|
-
text: string;
|
|
11
|
-
id: string;
|
|
12
9
|
state?: Vellum.PromptBlockState;
|
|
13
10
|
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
11
|
+
blockType: "PLAIN_TEXT";
|
|
12
|
+
text: string;
|
|
14
13
|
}
|
|
@@ -6,9 +6,8 @@ import * as Vellum from "../index";
|
|
|
6
6
|
* A block that represents a variable in a prompt template.
|
|
7
7
|
*/
|
|
8
8
|
export interface VariablePromptBlockRequest {
|
|
9
|
-
blockType: "VARIABLE";
|
|
10
|
-
id: string;
|
|
11
9
|
state?: Vellum.PromptBlockState;
|
|
12
10
|
cacheConfig?: Vellum.EphemeralPromptCacheConfigRequest;
|
|
11
|
+
blockType: "VARIABLE";
|
|
13
12
|
inputVariableId: string;
|
|
14
13
|
}
|
|
@@ -9,10 +9,9 @@ import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigR
|
|
|
9
9
|
export declare const ChatMessagePromptBlockRequest: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlockRequest.Raw, Vellum.ChatMessagePromptBlockRequest>;
|
|
10
10
|
export declare namespace ChatMessagePromptBlockRequest {
|
|
11
11
|
interface Raw {
|
|
12
|
-
block_type: "CHAT_MESSAGE";
|
|
13
|
-
properties: serializers.ChatMessagePromptBlockPropertiesRequest.Raw;
|
|
14
|
-
id: string;
|
|
15
12
|
state?: PromptBlockState.Raw | null;
|
|
16
13
|
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
14
|
+
block_type: "CHAT_MESSAGE";
|
|
15
|
+
properties: serializers.ChatMessagePromptBlockPropertiesRequest.Raw;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -32,9 +32,8 @@ const core = __importStar(require("../../core"));
|
|
|
32
32
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
33
33
|
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
34
34
|
exports.ChatMessagePromptBlockRequest = core.serialization.object({
|
|
35
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
|
|
36
|
-
properties: core.serialization.lazyObject(() => serializers.ChatMessagePromptBlockPropertiesRequest),
|
|
37
|
-
id: core.serialization.string(),
|
|
38
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
39
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
37
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
|
|
38
|
+
properties: core.serialization.lazyObject(() => serializers.ChatMessagePromptBlockPropertiesRequest),
|
|
40
39
|
});
|
|
@@ -4,16 +4,15 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import { FunctionDefinitionPromptBlockPropertiesRequest } from "./FunctionDefinitionPromptBlockPropertiesRequest";
|
|
8
7
|
import { PromptBlockState } from "./PromptBlockState";
|
|
9
8
|
import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigRequest";
|
|
9
|
+
import { FunctionDefinitionPromptBlockPropertiesRequest } from "./FunctionDefinitionPromptBlockPropertiesRequest";
|
|
10
10
|
export declare const FunctionDefinitionPromptBlockRequest: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlockRequest.Raw, Vellum.FunctionDefinitionPromptBlockRequest>;
|
|
11
11
|
export declare namespace FunctionDefinitionPromptBlockRequest {
|
|
12
12
|
interface Raw {
|
|
13
|
-
block_type: "FUNCTION_DEFINITION";
|
|
14
|
-
properties: FunctionDefinitionPromptBlockPropertiesRequest.Raw;
|
|
15
|
-
id: string;
|
|
16
13
|
state?: PromptBlockState.Raw | null;
|
|
17
14
|
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
15
|
+
block_type: "FUNCTION_DEFINITION";
|
|
16
|
+
properties: FunctionDefinitionPromptBlockPropertiesRequest.Raw;
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -28,13 +28,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.FunctionDefinitionPromptBlockRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const FunctionDefinitionPromptBlockPropertiesRequest_1 = require("./FunctionDefinitionPromptBlockPropertiesRequest");
|
|
32
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
33
32
|
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
33
|
+
const FunctionDefinitionPromptBlockPropertiesRequest_1 = require("./FunctionDefinitionPromptBlockPropertiesRequest");
|
|
34
34
|
exports.FunctionDefinitionPromptBlockRequest = core.serialization.object({
|
|
35
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_DEFINITION")),
|
|
36
|
-
properties: FunctionDefinitionPromptBlockPropertiesRequest_1.FunctionDefinitionPromptBlockPropertiesRequest,
|
|
37
|
-
id: core.serialization.string(),
|
|
38
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
39
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
37
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_DEFINITION")),
|
|
38
|
+
properties: FunctionDefinitionPromptBlockPropertiesRequest_1.FunctionDefinitionPromptBlockPropertiesRequest,
|
|
40
39
|
});
|
|
@@ -4,16 +4,15 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import { JinjaPromptBlockPropertiesRequest } from "./JinjaPromptBlockPropertiesRequest";
|
|
8
7
|
import { PromptBlockState } from "./PromptBlockState";
|
|
9
8
|
import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigRequest";
|
|
9
|
+
import { JinjaPromptBlockPropertiesRequest } from "./JinjaPromptBlockPropertiesRequest";
|
|
10
10
|
export declare const JinjaPromptBlockRequest: core.serialization.ObjectSchema<serializers.JinjaPromptBlockRequest.Raw, Vellum.JinjaPromptBlockRequest>;
|
|
11
11
|
export declare namespace JinjaPromptBlockRequest {
|
|
12
12
|
interface Raw {
|
|
13
|
-
block_type: "JINJA";
|
|
14
|
-
properties: JinjaPromptBlockPropertiesRequest.Raw;
|
|
15
|
-
id: string;
|
|
16
13
|
state?: PromptBlockState.Raw | null;
|
|
17
14
|
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
15
|
+
block_type: "JINJA";
|
|
16
|
+
properties: JinjaPromptBlockPropertiesRequest.Raw;
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -28,13 +28,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.JinjaPromptBlockRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const JinjaPromptBlockPropertiesRequest_1 = require("./JinjaPromptBlockPropertiesRequest");
|
|
32
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
33
32
|
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
33
|
+
const JinjaPromptBlockPropertiesRequest_1 = require("./JinjaPromptBlockPropertiesRequest");
|
|
34
34
|
exports.JinjaPromptBlockRequest = core.serialization.object({
|
|
35
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
|
|
36
|
-
properties: JinjaPromptBlockPropertiesRequest_1.JinjaPromptBlockPropertiesRequest,
|
|
37
|
-
id: core.serialization.string(),
|
|
38
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
39
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
37
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
|
|
38
|
+
properties: JinjaPromptBlockPropertiesRequest_1.JinjaPromptBlockPropertiesRequest,
|
|
40
39
|
});
|
|
@@ -9,10 +9,9 @@ import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigR
|
|
|
9
9
|
export declare const PlainTextPromptBlockRequest: core.serialization.ObjectSchema<serializers.PlainTextPromptBlockRequest.Raw, Vellum.PlainTextPromptBlockRequest>;
|
|
10
10
|
export declare namespace PlainTextPromptBlockRequest {
|
|
11
11
|
interface Raw {
|
|
12
|
-
block_type: "PLAIN_TEXT";
|
|
13
|
-
text: string;
|
|
14
|
-
id: string;
|
|
15
12
|
state?: PromptBlockState.Raw | null;
|
|
16
13
|
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
14
|
+
block_type: "PLAIN_TEXT";
|
|
15
|
+
text: string;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -31,9 +31,8 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
32
|
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
33
33
|
exports.PlainTextPromptBlockRequest = core.serialization.object({
|
|
34
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
|
|
35
|
-
text: core.serialization.string(),
|
|
36
|
-
id: core.serialization.string(),
|
|
37
34
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
38
35
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
36
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
|
|
37
|
+
text: core.serialization.string(),
|
|
39
38
|
});
|
|
@@ -9,10 +9,9 @@ import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigR
|
|
|
9
9
|
export declare const VariablePromptBlockRequest: core.serialization.ObjectSchema<serializers.VariablePromptBlockRequest.Raw, Vellum.VariablePromptBlockRequest>;
|
|
10
10
|
export declare namespace VariablePromptBlockRequest {
|
|
11
11
|
interface Raw {
|
|
12
|
-
block_type: "VARIABLE";
|
|
13
|
-
id: string;
|
|
14
12
|
state?: PromptBlockState.Raw | null;
|
|
15
13
|
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
14
|
+
block_type: "VARIABLE";
|
|
16
15
|
input_variable_id: string;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -31,9 +31,8 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
32
32
|
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
33
33
|
exports.VariablePromptBlockRequest = core.serialization.object({
|
|
34
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
|
|
35
|
-
id: core.serialization.string(),
|
|
36
34
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
37
35
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
36
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
|
|
38
37
|
inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
|
|
39
38
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.9.
|
|
1
|
+
export declare const SDK_VERSION = "0.9.6";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -151,18 +151,17 @@ await client.adHoc.adhocExecutePromptStream({
|
|
|
151
151
|
},
|
|
152
152
|
blocks: [
|
|
153
153
|
{
|
|
154
|
-
blockType: "JINJA",
|
|
155
|
-
properties: {
|
|
156
|
-
template: "string",
|
|
157
|
-
templateType: "STRING",
|
|
158
|
-
},
|
|
159
|
-
id: "string",
|
|
160
154
|
state: "ENABLED",
|
|
161
155
|
cacheConfig: {
|
|
162
156
|
type: {
|
|
163
157
|
key: "value",
|
|
164
158
|
},
|
|
165
159
|
},
|
|
160
|
+
blockType: "JINJA",
|
|
161
|
+
properties: {
|
|
162
|
+
template: "string",
|
|
163
|
+
templateType: "STRING",
|
|
164
|
+
},
|
|
166
165
|
},
|
|
167
166
|
],
|
|
168
167
|
expandMeta: {
|
|
@@ -9,10 +9,9 @@ import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigR
|
|
|
9
9
|
export declare const ChatMessagePromptBlockRequest: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlockRequest.Raw, Vellum.ChatMessagePromptBlockRequest>;
|
|
10
10
|
export declare namespace ChatMessagePromptBlockRequest {
|
|
11
11
|
interface Raw {
|
|
12
|
-
block_type: "CHAT_MESSAGE";
|
|
13
|
-
properties: serializers.ChatMessagePromptBlockPropertiesRequest.Raw;
|
|
14
|
-
id: string;
|
|
15
12
|
state?: PromptBlockState.Raw | null;
|
|
16
13
|
cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
|
|
14
|
+
block_type: "CHAT_MESSAGE";
|
|
15
|
+
properties: serializers.ChatMessagePromptBlockPropertiesRequest.Raw;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -32,9 +32,8 @@ const core = __importStar(require("../../core"));
|
|
|
32
32
|
const PromptBlockState_1 = require("./PromptBlockState");
|
|
33
33
|
const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
|
|
34
34
|
exports.ChatMessagePromptBlockRequest = core.serialization.object({
|
|
35
|
-
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
|
|
36
|
-
properties: core.serialization.lazyObject(() => serializers.ChatMessagePromptBlockPropertiesRequest),
|
|
37
|
-
id: core.serialization.string(),
|
|
38
35
|
state: PromptBlockState_1.PromptBlockState.optional(),
|
|
39
36
|
cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
|
|
37
|
+
blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
|
|
38
|
+
properties: core.serialization.lazyObject(() => serializers.ChatMessagePromptBlockPropertiesRequest),
|
|
40
39
|
});
|