vellum-ai 0.9.8 → 0.9.9

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 (90) hide show
  1. package/.mock/definition/__package__.yml +9 -37
  2. package/.mock/openapi/openapi.yml +15 -49
  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 +2 -4
  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/ChatMessagePromptBlock.d.ts +4 -1
  20. package/api/types/FunctionDefinitionPromptBlock.d.ts +3 -1
  21. package/api/types/JinjaPromptBlock.d.ts +2 -1
  22. package/api/types/index.d.ts +0 -3
  23. package/api/types/index.js +0 -3
  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 +2 -4
  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/ChatMessagePromptBlock.d.ts +4 -1
  41. package/dist/api/types/FunctionDefinitionPromptBlock.d.ts +3 -1
  42. package/dist/api/types/JinjaPromptBlock.d.ts +2 -1
  43. package/dist/api/types/index.d.ts +0 -3
  44. package/dist/api/types/index.js +0 -3
  45. package/dist/serialization/types/ChatMessagePromptBlock.d.ts +5 -1
  46. package/dist/serialization/types/ChatMessagePromptBlock.js +5 -1
  47. package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +3 -2
  48. package/dist/serialization/types/FunctionDefinitionPromptBlock.js +3 -2
  49. package/dist/serialization/types/JinjaPromptBlock.d.ts +3 -2
  50. package/dist/serialization/types/JinjaPromptBlock.js +3 -2
  51. package/dist/serialization/types/index.d.ts +0 -3
  52. package/dist/serialization/types/index.js +0 -3
  53. package/dist/version.d.ts +1 -1
  54. package/dist/version.js +1 -1
  55. package/package.json +1 -1
  56. package/reference.md +2 -4
  57. package/serialization/types/ChatMessagePromptBlock.d.ts +5 -1
  58. package/serialization/types/ChatMessagePromptBlock.js +5 -1
  59. package/serialization/types/FunctionDefinitionPromptBlock.d.ts +3 -2
  60. package/serialization/types/FunctionDefinitionPromptBlock.js +3 -2
  61. package/serialization/types/JinjaPromptBlock.d.ts +3 -2
  62. package/serialization/types/JinjaPromptBlock.js +3 -2
  63. package/serialization/types/index.d.ts +0 -3
  64. package/serialization/types/index.js +0 -3
  65. package/version.d.ts +1 -1
  66. package/version.js +1 -1
  67. package/api/types/ChatMessagePromptBlockProperties.d.ts +0 -13
  68. package/api/types/ChatMessagePromptBlockProperties.js +0 -5
  69. package/api/types/FunctionDefinitionPromptBlockProperties.d.ts +0 -15
  70. package/api/types/FunctionDefinitionPromptBlockProperties.js +0 -5
  71. package/api/types/JinjaPromptBlockProperties.d.ts +0 -8
  72. package/api/types/JinjaPromptBlockProperties.js +0 -5
  73. package/dist/api/types/ChatMessagePromptBlockProperties.d.ts +0 -13
  74. package/dist/api/types/ChatMessagePromptBlockProperties.js +0 -5
  75. package/dist/api/types/FunctionDefinitionPromptBlockProperties.d.ts +0 -15
  76. package/dist/api/types/FunctionDefinitionPromptBlockProperties.js +0 -5
  77. package/dist/api/types/JinjaPromptBlockProperties.d.ts +0 -8
  78. package/dist/api/types/JinjaPromptBlockProperties.js +0 -5
  79. package/dist/serialization/types/ChatMessagePromptBlockProperties.d.ts +0 -16
  80. package/dist/serialization/types/ChatMessagePromptBlockProperties.js +0 -38
  81. package/dist/serialization/types/FunctionDefinitionPromptBlockProperties.d.ts +0 -16
  82. package/dist/serialization/types/FunctionDefinitionPromptBlockProperties.js +0 -37
  83. package/dist/serialization/types/JinjaPromptBlockProperties.d.ts +0 -14
  84. package/dist/serialization/types/JinjaPromptBlockProperties.js +0 -35
  85. package/serialization/types/ChatMessagePromptBlockProperties.d.ts +0 -16
  86. package/serialization/types/ChatMessagePromptBlockProperties.js +0 -38
  87. package/serialization/types/FunctionDefinitionPromptBlockProperties.d.ts +0 -16
  88. package/serialization/types/FunctionDefinitionPromptBlockProperties.js +0 -37
  89. package/serialization/types/JinjaPromptBlockProperties.d.ts +0 -14
  90. package/serialization/types/JinjaPromptBlockProperties.js +0 -35
@@ -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.8", "User-Agent": "vellum-ai/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ 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())),
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.8", "User-Agent": "vellum-ai/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ 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())),
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.8", "User-Agent": "vellum-ai/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ 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())),
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.8", "User-Agent": "vellum-ai/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
235
+ 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())),
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.8", "User-Agent": "vellum-ai/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
325
+ headers: Object.assign(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())), _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.8", "User-Agent": "vellum-ai/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ 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())),
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.8", "User-Agent": "vellum-ai/0.9.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
148
+ 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())),
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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.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
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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.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
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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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.8", "User-Agent": "vellum-ai/0.9.8", "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.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
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.8", "User-Agent": "vellum-ai/0.9.8", "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.9", "User-Agent": "vellum-ai/0.9.9", "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, {
@@ -9,5 +9,8 @@ export interface ChatMessagePromptBlock {
9
9
  state?: Vellum.PromptBlockState;
10
10
  cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
11
  blockType: "CHAT_MESSAGE";
12
- properties: Vellum.ChatMessagePromptBlockProperties;
12
+ chatRole: Vellum.ChatMessageRole;
13
+ chatSource?: string;
14
+ chatMessageUnterminated?: boolean;
15
+ blocks: Vellum.PromptBlock[];
13
16
  }
@@ -9,5 +9,7 @@ export interface FunctionDefinitionPromptBlock {
9
9
  state?: Vellum.PromptBlockState;
10
10
  cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
11
  blockType: "FUNCTION_DEFINITION";
12
- properties: Vellum.FunctionDefinitionPromptBlockProperties;
12
+ functionName?: string;
13
+ functionDescription?: string;
14
+ functionParameters?: Record<string, unknown>;
13
15
  }
@@ -9,5 +9,6 @@ export interface JinjaPromptBlock {
9
9
  state?: Vellum.PromptBlockState;
10
10
  cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
11
  blockType: "JINJA";
12
- properties: Vellum.JinjaPromptBlockProperties;
12
+ template: string;
13
+ templateType: Vellum.VellumVariableType;
13
14
  }
@@ -35,7 +35,6 @@ export * from "./ChatMessage";
35
35
  export * from "./ChatMessageContent";
36
36
  export * from "./ChatMessageContentRequest";
37
37
  export * from "./ChatMessagePromptBlock";
38
- export * from "./ChatMessagePromptBlockProperties";
39
38
  export * from "./ChatMessageRequest";
40
39
  export * from "./ChatMessageRole";
41
40
  export * from "./CodeExecutionNodeArrayResult";
@@ -130,7 +129,6 @@ export * from "./FunctionCallVariableValue";
130
129
  export * from "./FunctionCallVellumValue";
131
130
  export * from "./FunctionCallVellumValueRequest";
132
131
  export * from "./FunctionDefinitionPromptBlock";
133
- export * from "./FunctionDefinitionPromptBlockProperties";
134
132
  export * from "./GenerateOptionsRequest";
135
133
  export * from "./GenerateRequest";
136
134
  export * from "./GenerateResponse";
@@ -165,7 +163,6 @@ export * from "./InstructorVectorizerConfigRequest";
165
163
  export * from "./IterationStateEnum";
166
164
  export * from "./JsonInputRequest";
167
165
  export * from "./JinjaPromptBlock";
168
- export * from "./JinjaPromptBlockProperties";
169
166
  export * from "./JsonVariableValue";
170
167
  export * from "./JsonVellumValue";
171
168
  export * from "./JsonVellumValueRequest";
@@ -51,7 +51,6 @@ __exportStar(require("./ChatMessage"), exports);
51
51
  __exportStar(require("./ChatMessageContent"), exports);
52
52
  __exportStar(require("./ChatMessageContentRequest"), exports);
53
53
  __exportStar(require("./ChatMessagePromptBlock"), exports);
54
- __exportStar(require("./ChatMessagePromptBlockProperties"), exports);
55
54
  __exportStar(require("./ChatMessageRequest"), exports);
56
55
  __exportStar(require("./ChatMessageRole"), exports);
57
56
  __exportStar(require("./CodeExecutionNodeArrayResult"), exports);
@@ -146,7 +145,6 @@ __exportStar(require("./FunctionCallVariableValue"), exports);
146
145
  __exportStar(require("./FunctionCallVellumValue"), exports);
147
146
  __exportStar(require("./FunctionCallVellumValueRequest"), exports);
148
147
  __exportStar(require("./FunctionDefinitionPromptBlock"), exports);
149
- __exportStar(require("./FunctionDefinitionPromptBlockProperties"), exports);
150
148
  __exportStar(require("./GenerateOptionsRequest"), exports);
151
149
  __exportStar(require("./GenerateRequest"), exports);
152
150
  __exportStar(require("./GenerateResponse"), exports);
@@ -181,7 +179,6 @@ __exportStar(require("./InstructorVectorizerConfigRequest"), exports);
181
179
  __exportStar(require("./IterationStateEnum"), exports);
182
180
  __exportStar(require("./JsonInputRequest"), exports);
183
181
  __exportStar(require("./JinjaPromptBlock"), exports);
184
- __exportStar(require("./JinjaPromptBlockProperties"), exports);
185
182
  __exportStar(require("./JsonVariableValue"), exports);
186
183
  __exportStar(require("./JsonVellumValue"), exports);
187
184
  __exportStar(require("./JsonVellumValueRequest"), exports);
@@ -6,12 +6,16 @@ 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 { ChatMessageRole } from "./ChatMessageRole";
9
10
  export declare const ChatMessagePromptBlock: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlock.Raw, Vellum.ChatMessagePromptBlock>;
10
11
  export declare namespace ChatMessagePromptBlock {
11
12
  interface Raw {
12
13
  state?: PromptBlockState.Raw | null;
13
14
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
15
  block_type: "CHAT_MESSAGE";
15
- properties: serializers.ChatMessagePromptBlockProperties.Raw;
16
+ chat_role: ChatMessageRole.Raw;
17
+ chat_source?: string | null;
18
+ chat_message_unterminated?: boolean | null;
19
+ blocks: serializers.PromptBlock.Raw[];
16
20
  }
17
21
  }
@@ -31,9 +31,13 @@ const serializers = __importStar(require("../index"));
31
31
  const core = __importStar(require("../../core"));
32
32
  const PromptBlockState_1 = require("./PromptBlockState");
33
33
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
34
+ const ChatMessageRole_1 = require("./ChatMessageRole");
34
35
  exports.ChatMessagePromptBlock = core.serialization.object({
35
36
  state: PromptBlockState_1.PromptBlockState.optional(),
36
37
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
37
38
  blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
38
- properties: core.serialization.lazyObject(() => serializers.ChatMessagePromptBlockProperties),
39
+ chatRole: core.serialization.property("chat_role", ChatMessageRole_1.ChatMessageRole),
40
+ chatSource: core.serialization.property("chat_source", core.serialization.string().optional()),
41
+ chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
42
+ blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
39
43
  });
@@ -6,13 +6,14 @@ 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 { FunctionDefinitionPromptBlockProperties } from "./FunctionDefinitionPromptBlockProperties";
10
9
  export declare const FunctionDefinitionPromptBlock: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlock.Raw, Vellum.FunctionDefinitionPromptBlock>;
11
10
  export declare namespace FunctionDefinitionPromptBlock {
12
11
  interface Raw {
13
12
  state?: PromptBlockState.Raw | null;
14
13
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
15
14
  block_type: "FUNCTION_DEFINITION";
16
- properties: FunctionDefinitionPromptBlockProperties.Raw;
15
+ function_name?: string | null;
16
+ function_description?: string | null;
17
+ function_parameters?: Record<string, unknown> | null;
17
18
  }
18
19
  }
@@ -30,10 +30,11 @@ exports.FunctionDefinitionPromptBlock = 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 FunctionDefinitionPromptBlockProperties_1 = require("./FunctionDefinitionPromptBlockProperties");
34
33
  exports.FunctionDefinitionPromptBlock = 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("FUNCTION_DEFINITION")),
38
- properties: FunctionDefinitionPromptBlockProperties_1.FunctionDefinitionPromptBlockProperties,
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()),
39
40
  });
@@ -6,13 +6,14 @@ 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 { JinjaPromptBlockProperties } from "./JinjaPromptBlockProperties";
9
+ import { VellumVariableType } from "./VellumVariableType";
10
10
  export declare const JinjaPromptBlock: core.serialization.ObjectSchema<serializers.JinjaPromptBlock.Raw, Vellum.JinjaPromptBlock>;
11
11
  export declare namespace JinjaPromptBlock {
12
12
  interface Raw {
13
13
  state?: PromptBlockState.Raw | null;
14
14
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
15
15
  block_type: "JINJA";
16
- properties: JinjaPromptBlockProperties.Raw;
16
+ template: string;
17
+ template_type: VellumVariableType.Raw;
17
18
  }
18
19
  }
@@ -30,10 +30,11 @@ 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 JinjaPromptBlockProperties_1 = require("./JinjaPromptBlockProperties");
33
+ const VellumVariableType_1 = require("./VellumVariableType");
34
34
  exports.JinjaPromptBlock = core.serialization.object({
35
35
  state: PromptBlockState_1.PromptBlockState.optional(),
36
36
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
37
37
  blockType: core.serialization.property("block_type", core.serialization.stringLiteral("JINJA")),
38
- properties: JinjaPromptBlockProperties_1.JinjaPromptBlockProperties,
38
+ template: core.serialization.string(),
39
+ templateType: core.serialization.property("template_type", VellumVariableType_1.VellumVariableType),
39
40
  });
@@ -35,7 +35,6 @@ export * from "./ChatMessage";
35
35
  export * from "./ChatMessageContent";
36
36
  export * from "./ChatMessageContentRequest";
37
37
  export * from "./ChatMessagePromptBlock";
38
- export * from "./ChatMessagePromptBlockProperties";
39
38
  export * from "./ChatMessageRequest";
40
39
  export * from "./ChatMessageRole";
41
40
  export * from "./CodeExecutionNodeArrayResult";
@@ -130,7 +129,6 @@ export * from "./FunctionCallVariableValue";
130
129
  export * from "./FunctionCallVellumValue";
131
130
  export * from "./FunctionCallVellumValueRequest";
132
131
  export * from "./FunctionDefinitionPromptBlock";
133
- export * from "./FunctionDefinitionPromptBlockProperties";
134
132
  export * from "./GenerateOptionsRequest";
135
133
  export * from "./GenerateRequest";
136
134
  export * from "./GenerateResponse";
@@ -165,7 +163,6 @@ export * from "./InstructorVectorizerConfigRequest";
165
163
  export * from "./IterationStateEnum";
166
164
  export * from "./JsonInputRequest";
167
165
  export * from "./JinjaPromptBlock";
168
- export * from "./JinjaPromptBlockProperties";
169
166
  export * from "./JsonVariableValue";
170
167
  export * from "./JsonVellumValue";
171
168
  export * from "./JsonVellumValueRequest";
@@ -51,7 +51,6 @@ __exportStar(require("./ChatMessage"), exports);
51
51
  __exportStar(require("./ChatMessageContent"), exports);
52
52
  __exportStar(require("./ChatMessageContentRequest"), exports);
53
53
  __exportStar(require("./ChatMessagePromptBlock"), exports);
54
- __exportStar(require("./ChatMessagePromptBlockProperties"), exports);
55
54
  __exportStar(require("./ChatMessageRequest"), exports);
56
55
  __exportStar(require("./ChatMessageRole"), exports);
57
56
  __exportStar(require("./CodeExecutionNodeArrayResult"), exports);
@@ -146,7 +145,6 @@ __exportStar(require("./FunctionCallVariableValue"), exports);
146
145
  __exportStar(require("./FunctionCallVellumValue"), exports);
147
146
  __exportStar(require("./FunctionCallVellumValueRequest"), exports);
148
147
  __exportStar(require("./FunctionDefinitionPromptBlock"), exports);
149
- __exportStar(require("./FunctionDefinitionPromptBlockProperties"), exports);
150
148
  __exportStar(require("./GenerateOptionsRequest"), exports);
151
149
  __exportStar(require("./GenerateRequest"), exports);
152
150
  __exportStar(require("./GenerateResponse"), exports);
@@ -181,7 +179,6 @@ __exportStar(require("./InstructorVectorizerConfigRequest"), exports);
181
179
  __exportStar(require("./IterationStateEnum"), exports);
182
180
  __exportStar(require("./JsonInputRequest"), exports);
183
181
  __exportStar(require("./JinjaPromptBlock"), exports);
184
- __exportStar(require("./JinjaPromptBlockProperties"), exports);
185
182
  __exportStar(require("./JsonVariableValue"), exports);
186
183
  __exportStar(require("./JsonVellumValue"), exports);
187
184
  __exportStar(require("./JsonVellumValueRequest"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.8";
1
+ export declare const SDK_VERSION = "0.9.9";
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.8";
4
+ exports.SDK_VERSION = "0.9.9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -160,10 +160,8 @@ await client.adHoc.adhocExecutePromptStream({
160
160
  type: "EPHEMERAL",
161
161
  },
162
162
  blockType: "JINJA",
163
- properties: {
164
- template: "string",
165
- templateType: "STRING",
166
- },
163
+ template: "string",
164
+ templateType: "STRING",
167
165
  },
168
166
  ],
169
167
  expandMeta: {
@@ -6,12 +6,16 @@ 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 { ChatMessageRole } from "./ChatMessageRole";
9
10
  export declare const ChatMessagePromptBlock: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlock.Raw, Vellum.ChatMessagePromptBlock>;
10
11
  export declare namespace ChatMessagePromptBlock {
11
12
  interface Raw {
12
13
  state?: PromptBlockState.Raw | null;
13
14
  cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
15
  block_type: "CHAT_MESSAGE";
15
- properties: serializers.ChatMessagePromptBlockProperties.Raw;
16
+ chat_role: ChatMessageRole.Raw;
17
+ chat_source?: string | null;
18
+ chat_message_unterminated?: boolean | null;
19
+ blocks: serializers.PromptBlock.Raw[];
16
20
  }
17
21
  }
@@ -31,9 +31,13 @@ const serializers = __importStar(require("../index"));
31
31
  const core = __importStar(require("../../core"));
32
32
  const PromptBlockState_1 = require("./PromptBlockState");
33
33
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
34
+ const ChatMessageRole_1 = require("./ChatMessageRole");
34
35
  exports.ChatMessagePromptBlock = core.serialization.object({
35
36
  state: PromptBlockState_1.PromptBlockState.optional(),
36
37
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
37
38
  blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
38
- properties: core.serialization.lazyObject(() => serializers.ChatMessagePromptBlockProperties),
39
+ chatRole: core.serialization.property("chat_role", ChatMessageRole_1.ChatMessageRole),
40
+ chatSource: core.serialization.property("chat_source", core.serialization.string().optional()),
41
+ chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
42
+ blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
39
43
  });