vellum-ai 0.9.9 → 0.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/.mock/definition/__package__.yml +4 -3
  2. package/.mock/openapi/openapi.yml +9 -6
  3. package/Client.js +10 -10
  4. package/api/resources/adHoc/client/Client.js +1 -1
  5. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +1 -2
  6. package/api/resources/containerImages/client/Client.js +4 -4
  7. package/api/resources/deployments/client/Client.js +6 -6
  8. package/api/resources/documentIndexes/client/Client.js +8 -8
  9. package/api/resources/documents/client/Client.js +5 -5
  10. package/api/resources/folderEntities/client/Client.js +2 -2
  11. package/api/resources/metricDefinitions/client/Client.js +1 -1
  12. package/api/resources/sandboxes/client/Client.js +3 -3
  13. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  14. package/api/resources/testSuites/client/Client.js +4 -4
  15. package/api/resources/workflowDeployments/client/Client.js +5 -5
  16. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  17. package/api/resources/workflows/client/Client.js +2 -2
  18. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  19. package/api/types/FunctionDefinitionPromptBlock.d.ts +2 -0
  20. package/api/types/JinjaPromptBlock.d.ts +0 -1
  21. package/api/types/VariablePromptBlock.d.ts +1 -1
  22. package/dist/Client.js +10 -10
  23. package/dist/api/resources/adHoc/client/Client.js +1 -1
  24. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +1 -2
  25. package/dist/api/resources/containerImages/client/Client.js +4 -4
  26. package/dist/api/resources/deployments/client/Client.js +6 -6
  27. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  28. package/dist/api/resources/documents/client/Client.js +5 -5
  29. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  30. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  31. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  32. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  33. package/dist/api/resources/testSuites/client/Client.js +4 -4
  34. package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
  35. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  36. package/dist/api/resources/workflows/client/Client.js +2 -2
  37. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  38. package/dist/api/types/FunctionDefinitionPromptBlock.d.ts +2 -0
  39. package/dist/api/types/JinjaPromptBlock.d.ts +0 -1
  40. package/dist/api/types/VariablePromptBlock.d.ts +1 -1
  41. package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +2 -0
  42. package/dist/serialization/types/FunctionDefinitionPromptBlock.js +2 -0
  43. package/dist/serialization/types/JinjaPromptBlock.d.ts +0 -2
  44. package/dist/serialization/types/JinjaPromptBlock.js +0 -2
  45. package/dist/serialization/types/VariablePromptBlock.d.ts +1 -1
  46. package/dist/serialization/types/VariablePromptBlock.js +1 -1
  47. package/dist/version.d.ts +1 -1
  48. package/dist/version.js +1 -1
  49. package/package.json +1 -1
  50. package/reference.md +0 -1
  51. package/serialization/types/FunctionDefinitionPromptBlock.d.ts +2 -0
  52. package/serialization/types/FunctionDefinitionPromptBlock.js +2 -0
  53. package/serialization/types/JinjaPromptBlock.d.ts +0 -2
  54. package/serialization/types/JinjaPromptBlock.js +0 -2
  55. package/serialization/types/VariablePromptBlock.d.ts +1 -1
  56. package/serialization/types/VariablePromptBlock.js +1 -1
  57. package/version.d.ts +1 -1
  58. package/version.js +1 -1
@@ -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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
145
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
259
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
201
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.11", "User-Agent": "vellum-ai/0.9.11", "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, {
@@ -12,4 +12,6 @@ export interface FunctionDefinitionPromptBlock {
12
12
  functionName?: string;
13
13
  functionDescription?: string;
14
14
  functionParameters?: Record<string, unknown>;
15
+ functionForced?: boolean;
16
+ functionStrict?: boolean;
15
17
  }
@@ -10,5 +10,4 @@ export interface JinjaPromptBlock {
10
10
  cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
11
  blockType: "JINJA";
12
12
  template: string;
13
- templateType: Vellum.VellumVariableType;
14
13
  }
@@ -9,5 +9,5 @@ export interface VariablePromptBlock {
9
9
  state?: Vellum.PromptBlockState;
10
10
  cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
11
  blockType: "VARIABLE";
12
- inputVariableId: string;
12
+ inputVariable: string;
13
13
  }
@@ -15,5 +15,7 @@ export declare namespace FunctionDefinitionPromptBlock {
15
15
  function_name?: string | null;
16
16
  function_description?: string | null;
17
17
  function_parameters?: Record<string, unknown> | null;
18
+ function_forced?: boolean | null;
19
+ function_strict?: boolean | null;
18
20
  }
19
21
  }
@@ -37,4 +37,6 @@ exports.FunctionDefinitionPromptBlock = core.serialization.object({
37
37
  functionName: core.serialization.property("function_name", core.serialization.string().optional()),
38
38
  functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
39
39
  functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
40
+ functionForced: core.serialization.property("function_forced", core.serialization.boolean().optional()),
41
+ functionStrict: core.serialization.property("function_strict", core.serialization.boolean().optional()),
40
42
  });
@@ -6,7 +6,6 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { PromptBlockState } from "./PromptBlockState";
8
8
  import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
- import { VellumVariableType } from "./VellumVariableType";
10
9
  export declare const JinjaPromptBlock: core.serialization.ObjectSchema<serializers.JinjaPromptBlock.Raw, Vellum.JinjaPromptBlock>;
11
10
  export declare namespace JinjaPromptBlock {
12
11
  interface Raw {
@@ -14,6 +13,5 @@ export declare namespace JinjaPromptBlock {
14
13
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
15
14
  block_type: "JINJA";
16
15
  template: string;
17
- template_type: VellumVariableType.Raw;
18
16
  }
19
17
  }
@@ -30,11 +30,9 @@ exports.JinjaPromptBlock = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
33
- const VellumVariableType_1 = require("./VellumVariableType");
34
33
  exports.JinjaPromptBlock = core.serialization.object({
35
34
  state: PromptBlockState_1.PromptBlockState.optional(),
36
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
37
36
  blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
38
37
  template: core.serialization.string(),
39
- templateType: core.serialization.property("template_type", VellumVariableType_1.VellumVariableType),
40
38
  });
@@ -12,6 +12,6 @@ export declare namespace VariablePromptBlock {
12
12
  state?: PromptBlockState.Raw | null;
13
13
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
14
  block_type: "VARIABLE";
15
- input_variable_id: string;
15
+ input_variable: string;
16
16
  }
17
17
  }
@@ -34,5 +34,5 @@ exports.VariablePromptBlock = core.serialization.object({
34
34
  state: PromptBlockState_1.PromptBlockState.optional(),
35
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
36
36
  blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
37
- inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
37
+ inputVariable: core.serialization.property("input_variable", core.serialization.string()),
38
38
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.9";
1
+ export declare const SDK_VERSION = "0.9.11";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.9.9";
4
+ exports.SDK_VERSION = "0.9.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.9.9",
3
+ "version": "0.9.11",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -161,7 +161,6 @@ await client.adHoc.adhocExecutePromptStream({
161
161
  },
162
162
  blockType: "JINJA",
163
163
  template: "string",
164
- templateType: "STRING",
165
164
  },
166
165
  ],
167
166
  expandMeta: {
@@ -15,5 +15,7 @@ export declare namespace FunctionDefinitionPromptBlock {
15
15
  function_name?: string | null;
16
16
  function_description?: string | null;
17
17
  function_parameters?: Record<string, unknown> | null;
18
+ function_forced?: boolean | null;
19
+ function_strict?: boolean | null;
18
20
  }
19
21
  }
@@ -37,4 +37,6 @@ exports.FunctionDefinitionPromptBlock = core.serialization.object({
37
37
  functionName: core.serialization.property("function_name", core.serialization.string().optional()),
38
38
  functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
39
39
  functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
40
+ functionForced: core.serialization.property("function_forced", core.serialization.boolean().optional()),
41
+ functionStrict: core.serialization.property("function_strict", core.serialization.boolean().optional()),
40
42
  });
@@ -6,7 +6,6 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { PromptBlockState } from "./PromptBlockState";
8
8
  import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
- import { VellumVariableType } from "./VellumVariableType";
10
9
  export declare const JinjaPromptBlock: core.serialization.ObjectSchema<serializers.JinjaPromptBlock.Raw, Vellum.JinjaPromptBlock>;
11
10
  export declare namespace JinjaPromptBlock {
12
11
  interface Raw {
@@ -14,6 +13,5 @@ export declare namespace JinjaPromptBlock {
14
13
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
15
14
  block_type: "JINJA";
16
15
  template: string;
17
- template_type: VellumVariableType.Raw;
18
16
  }
19
17
  }
@@ -30,11 +30,9 @@ exports.JinjaPromptBlock = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
33
- const VellumVariableType_1 = require("./VellumVariableType");
34
33
  exports.JinjaPromptBlock = core.serialization.object({
35
34
  state: PromptBlockState_1.PromptBlockState.optional(),
36
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
37
36
  blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
38
37
  template: core.serialization.string(),
39
- templateType: core.serialization.property("template_type", VellumVariableType_1.VellumVariableType),
40
38
  });
@@ -12,6 +12,6 @@ export declare namespace VariablePromptBlock {
12
12
  state?: PromptBlockState.Raw | null;
13
13
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
14
  block_type: "VARIABLE";
15
- input_variable_id: string;
15
+ input_variable: string;
16
16
  }
17
17
  }
@@ -34,5 +34,5 @@ exports.VariablePromptBlock = core.serialization.object({
34
34
  state: PromptBlockState_1.PromptBlockState.optional(),
35
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
36
36
  blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
37
- inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
37
+ inputVariable: core.serialization.property("input_variable", core.serialization.string()),
38
38
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.9";
1
+ export declare const SDK_VERSION = "0.9.11";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.9.9";
4
+ exports.SDK_VERSION = "0.9.11";