vellum-ai 0.9.12 → 0.9.13

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 (69) hide show
  1. package/.mock/definition/__package__.yml +6 -9
  2. package/.mock/definition/adHoc.yml +1 -0
  3. package/.mock/openapi/openapi.yml +11 -16
  4. package/Client.js +10 -10
  5. package/api/resources/adHoc/client/Client.js +1 -1
  6. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +16 -0
  7. package/api/resources/containerImages/client/Client.js +4 -4
  8. package/api/resources/deployments/client/Client.js +6 -6
  9. package/api/resources/documentIndexes/client/Client.js +8 -8
  10. package/api/resources/documents/client/Client.js +5 -5
  11. package/api/resources/folderEntities/client/Client.js +2 -2
  12. package/api/resources/metricDefinitions/client/Client.js +1 -1
  13. package/api/resources/sandboxes/client/Client.js +3 -3
  14. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  15. package/api/resources/testSuites/client/Client.js +4 -4
  16. package/api/resources/workflowDeployments/client/Client.js +5 -5
  17. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  18. package/api/resources/workflows/client/Client.js +2 -2
  19. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  20. package/api/types/{FunctionDefinitionPromptBlock.d.ts → FunctionDefinition.d.ts} +6 -7
  21. package/api/types/PromptBlock.d.ts +1 -1
  22. package/api/types/index.d.ts +1 -1
  23. package/api/types/index.js +1 -1
  24. package/dist/Client.js +10 -10
  25. package/dist/api/resources/adHoc/client/Client.js +1 -1
  26. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +16 -0
  27. package/dist/api/resources/containerImages/client/Client.js +4 -4
  28. package/dist/api/resources/deployments/client/Client.js +6 -6
  29. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  30. package/dist/api/resources/documents/client/Client.js +5 -5
  31. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  32. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  33. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  34. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  35. package/dist/api/resources/testSuites/client/Client.js +4 -4
  36. package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
  37. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  38. package/dist/api/resources/workflows/client/Client.js +2 -2
  39. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  40. package/dist/api/types/{FunctionDefinitionPromptBlock.d.ts → FunctionDefinition.d.ts} +6 -7
  41. package/dist/api/types/PromptBlock.d.ts +1 -1
  42. package/dist/api/types/index.d.ts +1 -1
  43. package/dist/api/types/index.js +1 -1
  44. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
  45. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
  46. package/dist/serialization/types/FunctionDefinition.d.ts +20 -0
  47. package/dist/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
  48. package/dist/serialization/types/PromptBlock.d.ts +1 -2
  49. package/dist/serialization/types/PromptBlock.js +0 -2
  50. package/dist/serialization/types/index.d.ts +1 -1
  51. package/dist/serialization/types/index.js +1 -1
  52. package/dist/version.d.ts +1 -1
  53. package/dist/version.js +1 -1
  54. package/package.json +1 -1
  55. package/reference.md +17 -0
  56. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
  57. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
  58. package/serialization/types/FunctionDefinition.d.ts +20 -0
  59. package/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
  60. package/serialization/types/PromptBlock.d.ts +1 -2
  61. package/serialization/types/PromptBlock.js +0 -2
  62. package/serialization/types/index.d.ts +1 -1
  63. package/serialization/types/index.js +1 -1
  64. package/version.d.ts +1 -1
  65. package/version.js +1 -1
  66. package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
  67. package/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
  68. /package/api/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +0 -0
  69. /package/dist/api/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +0 -0
@@ -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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "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.ExecuteMetricDefinition.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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
154
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
194
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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.12", "User-Agent": "vellum-ai/0.9.12", "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.13", "User-Agent": "vellum-ai/0.9.13", "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, {
@@ -5,13 +5,12 @@ import * as Vellum from "../index";
5
5
  /**
6
6
  * A block that represents a function definition in a prompt template.
7
7
  */
8
- export interface FunctionDefinitionPromptBlock {
8
+ export interface FunctionDefinition {
9
9
  state?: Vellum.PromptBlockState;
10
10
  cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
- blockType: "FUNCTION_DEFINITION";
12
- functionName?: string;
13
- functionDescription?: string;
14
- functionParameters?: Record<string, unknown>;
15
- functionForced?: boolean;
16
- functionStrict?: boolean;
11
+ name?: string;
12
+ description?: string;
13
+ parameters?: Record<string, unknown>;
14
+ forced?: boolean;
15
+ strict?: boolean;
17
16
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export declare type PromptBlock = Vellum.JinjaPromptBlock | Vellum.ChatMessagePromptBlock | Vellum.FunctionDefinitionPromptBlock | Vellum.VariablePromptBlock | Vellum.RichTextPromptBlock;
5
+ export declare type PromptBlock = Vellum.JinjaPromptBlock | Vellum.ChatMessagePromptBlock | Vellum.VariablePromptBlock | Vellum.RichTextPromptBlock;
@@ -130,7 +130,7 @@ export * from "./FunctionCallRequest";
130
130
  export * from "./FunctionCallVariableValue";
131
131
  export * from "./FunctionCallVellumValue";
132
132
  export * from "./FunctionCallVellumValueRequest";
133
- export * from "./FunctionDefinitionPromptBlock";
133
+ export * from "./FunctionDefinition";
134
134
  export * from "./GenerateOptionsRequest";
135
135
  export * from "./GenerateRequest";
136
136
  export * from "./GenerateResponse";
@@ -146,7 +146,7 @@ __exportStar(require("./FunctionCallRequest"), exports);
146
146
  __exportStar(require("./FunctionCallVariableValue"), exports);
147
147
  __exportStar(require("./FunctionCallVellumValue"), exports);
148
148
  __exportStar(require("./FunctionCallVellumValueRequest"), exports);
149
- __exportStar(require("./FunctionDefinitionPromptBlock"), exports);
149
+ __exportStar(require("./FunctionDefinition"), exports);
150
150
  __exportStar(require("./GenerateOptionsRequest"), exports);
151
151
  __exportStar(require("./GenerateRequest"), exports);
152
152
  __exportStar(require("./GenerateResponse"), exports);
@@ -8,6 +8,7 @@ import { PromptRequestInput } from "../../../../types/PromptRequestInput";
8
8
  import { VellumVariable } from "../../../../types/VellumVariable";
9
9
  import { PromptParameters } from "../../../../types/PromptParameters";
10
10
  import { PromptSettings } from "../../../../types/PromptSettings";
11
+ import { FunctionDefinition } from "../../../../types/FunctionDefinition";
11
12
  import { AdHocExpandMeta } from "../../../../types/AdHocExpandMeta";
12
13
  export declare const AdHocExecutePromptStream: core.serialization.Schema<serializers.AdHocExecutePromptStream.Raw, Vellum.AdHocExecutePromptStream>;
13
14
  export declare namespace AdHocExecutePromptStream {
@@ -18,6 +19,7 @@ export declare namespace AdHocExecutePromptStream {
18
19
  parameters: PromptParameters.Raw;
19
20
  settings?: PromptSettings.Raw | null;
20
21
  blocks: serializers.PromptBlock.Raw[];
22
+ functions?: FunctionDefinition.Raw[] | null;
21
23
  expand_meta?: AdHocExpandMeta.Raw | null;
22
24
  }
23
25
  }
@@ -33,6 +33,7 @@ const PromptRequestInput_1 = require("../../../../types/PromptRequestInput");
33
33
  const VellumVariable_1 = require("../../../../types/VellumVariable");
34
34
  const PromptParameters_1 = require("../../../../types/PromptParameters");
35
35
  const PromptSettings_1 = require("../../../../types/PromptSettings");
36
+ const FunctionDefinition_1 = require("../../../../types/FunctionDefinition");
36
37
  const AdHocExpandMeta_1 = require("../../../../types/AdHocExpandMeta");
37
38
  exports.AdHocExecutePromptStream = core.serialization.object({
38
39
  mlModel: core.serialization.property("ml_model", core.serialization.string()),
@@ -41,5 +42,6 @@ exports.AdHocExecutePromptStream = core.serialization.object({
41
42
  parameters: PromptParameters_1.PromptParameters,
42
43
  settings: PromptSettings_1.PromptSettings.optional(),
43
44
  blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
45
+ functions: core.serialization.list(FunctionDefinition_1.FunctionDefinition).optional(),
44
46
  expandMeta: core.serialization.property("expand_meta", AdHocExpandMeta_1.AdHocExpandMeta.optional()),
45
47
  });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { PromptBlockState } from "./PromptBlockState";
8
+ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
+ export declare const FunctionDefinition: core.serialization.ObjectSchema<serializers.FunctionDefinition.Raw, Vellum.FunctionDefinition>;
10
+ export declare namespace FunctionDefinition {
11
+ interface Raw {
12
+ state?: PromptBlockState.Raw | null;
13
+ cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
+ name?: string | null;
15
+ description?: string | null;
16
+ parameters?: Record<string, unknown> | null;
17
+ forced?: boolean | null;
18
+ strict?: boolean | null;
19
+ }
20
+ }
@@ -26,17 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FunctionDefinitionPromptBlock = void 0;
29
+ exports.FunctionDefinition = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
33
- exports.FunctionDefinitionPromptBlock = core.serialization.object({
33
+ exports.FunctionDefinition = core.serialization.object({
34
34
  state: PromptBlockState_1.PromptBlockState.optional(),
35
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
36
- blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_DEFINITION")),
37
- functionName: core.serialization.property("function_name", core.serialization.string().optional()),
38
- functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
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()),
36
+ name: core.serialization.string().optional(),
37
+ description: core.serialization.string().optional(),
38
+ parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
39
+ forced: core.serialization.boolean().optional(),
40
+ strict: core.serialization.boolean().optional(),
42
41
  });
@@ -5,10 +5,9 @@ import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { JinjaPromptBlock } from "./JinjaPromptBlock";
8
- import { FunctionDefinitionPromptBlock } from "./FunctionDefinitionPromptBlock";
9
8
  import { VariablePromptBlock } from "./VariablePromptBlock";
10
9
  import { RichTextPromptBlock } from "./RichTextPromptBlock";
11
10
  export declare const PromptBlock: core.serialization.Schema<serializers.PromptBlock.Raw, Vellum.PromptBlock>;
12
11
  export declare namespace PromptBlock {
13
- type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | FunctionDefinitionPromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
12
+ type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
14
13
  }
@@ -30,13 +30,11 @@ exports.PromptBlock = void 0;
30
30
  const serializers = __importStar(require("../index"));
31
31
  const core = __importStar(require("../../core"));
32
32
  const JinjaPromptBlock_1 = require("./JinjaPromptBlock");
33
- const FunctionDefinitionPromptBlock_1 = require("./FunctionDefinitionPromptBlock");
34
33
  const VariablePromptBlock_1 = require("./VariablePromptBlock");
35
34
  const RichTextPromptBlock_1 = require("./RichTextPromptBlock");
36
35
  exports.PromptBlock = core.serialization.undiscriminatedUnion([
37
36
  JinjaPromptBlock_1.JinjaPromptBlock,
38
37
  core.serialization.lazyObject(() => serializers.ChatMessagePromptBlock),
39
- FunctionDefinitionPromptBlock_1.FunctionDefinitionPromptBlock,
40
38
  VariablePromptBlock_1.VariablePromptBlock,
41
39
  RichTextPromptBlock_1.RichTextPromptBlock,
42
40
  ]);
@@ -130,7 +130,7 @@ export * from "./FunctionCallRequest";
130
130
  export * from "./FunctionCallVariableValue";
131
131
  export * from "./FunctionCallVellumValue";
132
132
  export * from "./FunctionCallVellumValueRequest";
133
- export * from "./FunctionDefinitionPromptBlock";
133
+ export * from "./FunctionDefinition";
134
134
  export * from "./GenerateOptionsRequest";
135
135
  export * from "./GenerateRequest";
136
136
  export * from "./GenerateResponse";
@@ -146,7 +146,7 @@ __exportStar(require("./FunctionCallRequest"), exports);
146
146
  __exportStar(require("./FunctionCallVariableValue"), exports);
147
147
  __exportStar(require("./FunctionCallVellumValue"), exports);
148
148
  __exportStar(require("./FunctionCallVellumValueRequest"), exports);
149
- __exportStar(require("./FunctionDefinitionPromptBlock"), exports);
149
+ __exportStar(require("./FunctionDefinition"), exports);
150
150
  __exportStar(require("./GenerateOptionsRequest"), exports);
151
151
  __exportStar(require("./GenerateRequest"), exports);
152
152
  __exportStar(require("./GenerateResponse"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.12";
1
+ export declare const SDK_VERSION = "0.9.13";
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.12";
4
+ exports.SDK_VERSION = "0.9.13";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.9.12",
3
+ "version": "0.9.13",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -161,6 +161,23 @@ await client.adHoc.adhocExecutePromptStream({
161
161
  template: "string",
162
162
  },
163
163
  ],
164
+ functions: [
165
+ {
166
+ state: "ENABLED",
167
+ cacheConfig: {
168
+ type: "EPHEMERAL",
169
+ },
170
+ name: "string",
171
+ description: "string",
172
+ parameters: {
173
+ string: {
174
+ key: "value",
175
+ },
176
+ },
177
+ forced: true,
178
+ strict: true,
179
+ },
180
+ ],
164
181
  expandMeta: {
165
182
  cost: true,
166
183
  modelName: true,
@@ -8,6 +8,7 @@ import { PromptRequestInput } from "../../../../types/PromptRequestInput";
8
8
  import { VellumVariable } from "../../../../types/VellumVariable";
9
9
  import { PromptParameters } from "../../../../types/PromptParameters";
10
10
  import { PromptSettings } from "../../../../types/PromptSettings";
11
+ import { FunctionDefinition } from "../../../../types/FunctionDefinition";
11
12
  import { AdHocExpandMeta } from "../../../../types/AdHocExpandMeta";
12
13
  export declare const AdHocExecutePromptStream: core.serialization.Schema<serializers.AdHocExecutePromptStream.Raw, Vellum.AdHocExecutePromptStream>;
13
14
  export declare namespace AdHocExecutePromptStream {
@@ -18,6 +19,7 @@ export declare namespace AdHocExecutePromptStream {
18
19
  parameters: PromptParameters.Raw;
19
20
  settings?: PromptSettings.Raw | null;
20
21
  blocks: serializers.PromptBlock.Raw[];
22
+ functions?: FunctionDefinition.Raw[] | null;
21
23
  expand_meta?: AdHocExpandMeta.Raw | null;
22
24
  }
23
25
  }
@@ -33,6 +33,7 @@ const PromptRequestInput_1 = require("../../../../types/PromptRequestInput");
33
33
  const VellumVariable_1 = require("../../../../types/VellumVariable");
34
34
  const PromptParameters_1 = require("../../../../types/PromptParameters");
35
35
  const PromptSettings_1 = require("../../../../types/PromptSettings");
36
+ const FunctionDefinition_1 = require("../../../../types/FunctionDefinition");
36
37
  const AdHocExpandMeta_1 = require("../../../../types/AdHocExpandMeta");
37
38
  exports.AdHocExecutePromptStream = core.serialization.object({
38
39
  mlModel: core.serialization.property("ml_model", core.serialization.string()),
@@ -41,5 +42,6 @@ exports.AdHocExecutePromptStream = core.serialization.object({
41
42
  parameters: PromptParameters_1.PromptParameters,
42
43
  settings: PromptSettings_1.PromptSettings.optional(),
43
44
  blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
45
+ functions: core.serialization.list(FunctionDefinition_1.FunctionDefinition).optional(),
44
46
  expandMeta: core.serialization.property("expand_meta", AdHocExpandMeta_1.AdHocExpandMeta.optional()),
45
47
  });
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { PromptBlockState } from "./PromptBlockState";
8
+ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
+ export declare const FunctionDefinition: core.serialization.ObjectSchema<serializers.FunctionDefinition.Raw, Vellum.FunctionDefinition>;
10
+ export declare namespace FunctionDefinition {
11
+ interface Raw {
12
+ state?: PromptBlockState.Raw | null;
13
+ cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
+ name?: string | null;
15
+ description?: string | null;
16
+ parameters?: Record<string, unknown> | null;
17
+ forced?: boolean | null;
18
+ strict?: boolean | null;
19
+ }
20
+ }
@@ -26,17 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FunctionDefinitionPromptBlock = void 0;
29
+ exports.FunctionDefinition = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
33
- exports.FunctionDefinitionPromptBlock = core.serialization.object({
33
+ exports.FunctionDefinition = core.serialization.object({
34
34
  state: PromptBlockState_1.PromptBlockState.optional(),
35
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
36
- blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_DEFINITION")),
37
- functionName: core.serialization.property("function_name", core.serialization.string().optional()),
38
- functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
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()),
36
+ name: core.serialization.string().optional(),
37
+ description: core.serialization.string().optional(),
38
+ parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
39
+ forced: core.serialization.boolean().optional(),
40
+ strict: core.serialization.boolean().optional(),
42
41
  });
@@ -5,10 +5,9 @@ import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { JinjaPromptBlock } from "./JinjaPromptBlock";
8
- import { FunctionDefinitionPromptBlock } from "./FunctionDefinitionPromptBlock";
9
8
  import { VariablePromptBlock } from "./VariablePromptBlock";
10
9
  import { RichTextPromptBlock } from "./RichTextPromptBlock";
11
10
  export declare const PromptBlock: core.serialization.Schema<serializers.PromptBlock.Raw, Vellum.PromptBlock>;
12
11
  export declare namespace PromptBlock {
13
- type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | FunctionDefinitionPromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
12
+ type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
14
13
  }
@@ -30,13 +30,11 @@ exports.PromptBlock = void 0;
30
30
  const serializers = __importStar(require("../index"));
31
31
  const core = __importStar(require("../../core"));
32
32
  const JinjaPromptBlock_1 = require("./JinjaPromptBlock");
33
- const FunctionDefinitionPromptBlock_1 = require("./FunctionDefinitionPromptBlock");
34
33
  const VariablePromptBlock_1 = require("./VariablePromptBlock");
35
34
  const RichTextPromptBlock_1 = require("./RichTextPromptBlock");
36
35
  exports.PromptBlock = core.serialization.undiscriminatedUnion([
37
36
  JinjaPromptBlock_1.JinjaPromptBlock,
38
37
  core.serialization.lazyObject(() => serializers.ChatMessagePromptBlock),
39
- FunctionDefinitionPromptBlock_1.FunctionDefinitionPromptBlock,
40
38
  VariablePromptBlock_1.VariablePromptBlock,
41
39
  RichTextPromptBlock_1.RichTextPromptBlock,
42
40
  ]);
@@ -130,7 +130,7 @@ export * from "./FunctionCallRequest";
130
130
  export * from "./FunctionCallVariableValue";
131
131
  export * from "./FunctionCallVellumValue";
132
132
  export * from "./FunctionCallVellumValueRequest";
133
- export * from "./FunctionDefinitionPromptBlock";
133
+ export * from "./FunctionDefinition";
134
134
  export * from "./GenerateOptionsRequest";
135
135
  export * from "./GenerateRequest";
136
136
  export * from "./GenerateResponse";
@@ -146,7 +146,7 @@ __exportStar(require("./FunctionCallRequest"), exports);
146
146
  __exportStar(require("./FunctionCallVariableValue"), exports);
147
147
  __exportStar(require("./FunctionCallVellumValue"), exports);
148
148
  __exportStar(require("./FunctionCallVellumValueRequest"), exports);
149
- __exportStar(require("./FunctionDefinitionPromptBlock"), exports);
149
+ __exportStar(require("./FunctionDefinition"), exports);
150
150
  __exportStar(require("./GenerateOptionsRequest"), exports);
151
151
  __exportStar(require("./GenerateRequest"), exports);
152
152
  __exportStar(require("./GenerateResponse"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.12";
1
+ export declare const SDK_VERSION = "0.9.13";
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.12";
4
+ exports.SDK_VERSION = "0.9.13";