vellum-ai 0.8.21 → 0.8.23

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 (83) hide show
  1. package/.mock/definition/__package__.yml +21 -0
  2. package/.mock/definition/deployments.yml +3 -0
  3. package/.mock/definition/sandboxes.yml +3 -0
  4. package/.mock/definition/testSuiteRuns.yml +11 -3
  5. package/.mock/definition/workflowDeployments.yml +6 -0
  6. package/.mock/definition/workflowSandboxes.yml +6 -0
  7. package/.mock/openapi/openapi.yml +44 -2
  8. package/Client.js +10 -10
  9. package/api/resources/adHoc/client/Client.js +1 -1
  10. package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +9 -1
  11. package/api/resources/deployments/client/Client.js +5 -5
  12. package/api/resources/documentIndexes/client/Client.js +8 -8
  13. package/api/resources/documents/client/Client.js +5 -5
  14. package/api/resources/folderEntities/client/Client.js +1 -1
  15. package/api/resources/metricDefinitions/client/Client.js +1 -1
  16. package/api/resources/sandboxes/client/Client.js +3 -3
  17. package/api/resources/testSuiteRuns/client/Client.d.ts +0 -1
  18. package/api/resources/testSuiteRuns/client/Client.js +3 -4
  19. package/api/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +4 -3
  20. package/api/resources/testSuites/client/Client.js +4 -4
  21. package/api/resources/workflowDeployments/client/Client.js +4 -4
  22. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  23. package/api/types/VellumVariable.d.ts +3 -0
  24. package/api/types/VellumVariableExtensions.d.ts +9 -0
  25. package/api/types/VellumVariableExtensions.js +5 -0
  26. package/api/types/VellumVariableExtensionsRequest.d.ts +9 -0
  27. package/api/types/VellumVariableExtensionsRequest.js +5 -0
  28. package/api/types/VellumVariableRequest.d.ts +3 -0
  29. package/api/types/index.d.ts +2 -0
  30. package/api/types/index.js +2 -0
  31. package/dist/Client.js +10 -10
  32. package/dist/api/resources/adHoc/client/Client.js +1 -1
  33. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +9 -1
  34. package/dist/api/resources/deployments/client/Client.js +5 -5
  35. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  36. package/dist/api/resources/documents/client/Client.js +5 -5
  37. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  38. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  39. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  40. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +0 -1
  41. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -4
  42. package/dist/api/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +4 -3
  43. package/dist/api/resources/testSuites/client/Client.js +4 -4
  44. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  45. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  46. package/dist/api/types/VellumVariable.d.ts +3 -0
  47. package/dist/api/types/VellumVariableExtensions.d.ts +9 -0
  48. package/dist/api/types/VellumVariableExtensions.js +5 -0
  49. package/dist/api/types/VellumVariableExtensionsRequest.d.ts +9 -0
  50. package/dist/api/types/VellumVariableExtensionsRequest.js +5 -0
  51. package/dist/api/types/VellumVariableRequest.d.ts +3 -0
  52. package/dist/api/types/index.d.ts +2 -0
  53. package/dist/api/types/index.js +2 -0
  54. package/dist/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +2 -1
  55. package/dist/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.js +2 -1
  56. package/dist/serialization/types/VellumVariable.d.ts +5 -0
  57. package/dist/serialization/types/VellumVariable.js +5 -0
  58. package/dist/serialization/types/VellumVariableExtensions.d.ts +12 -0
  59. package/dist/serialization/types/VellumVariableExtensions.js +33 -0
  60. package/dist/serialization/types/VellumVariableExtensionsRequest.d.ts +12 -0
  61. package/dist/serialization/types/VellumVariableExtensionsRequest.js +33 -0
  62. package/dist/serialization/types/VellumVariableRequest.d.ts +5 -0
  63. package/dist/serialization/types/VellumVariableRequest.js +5 -0
  64. package/dist/serialization/types/index.d.ts +2 -0
  65. package/dist/serialization/types/index.js +2 -0
  66. package/dist/version.d.ts +1 -1
  67. package/dist/version.js +1 -1
  68. package/package.json +2 -2
  69. package/reference.md +8 -1
  70. package/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +2 -1
  71. package/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.js +2 -1
  72. package/serialization/types/VellumVariable.d.ts +5 -0
  73. package/serialization/types/VellumVariable.js +5 -0
  74. package/serialization/types/VellumVariableExtensions.d.ts +12 -0
  75. package/serialization/types/VellumVariableExtensions.js +33 -0
  76. package/serialization/types/VellumVariableExtensionsRequest.d.ts +12 -0
  77. package/serialization/types/VellumVariableExtensionsRequest.js +33 -0
  78. package/serialization/types/VellumVariableRequest.d.ts +5 -0
  79. package/serialization/types/VellumVariableRequest.js +5 -0
  80. package/serialization/types/index.d.ts +2 -0
  81. package/serialization/types/index.js +2 -0
  82. package/version.d.ts +1 -1
  83. package/version.js +1 -1
@@ -56,7 +56,6 @@ class TestSuiteRuns {
56
56
  *
57
57
  * @example
58
58
  * await client.testSuiteRuns.create({
59
- * testSuiteId: "test_suite_id",
60
59
  * execConfig: {
61
60
  * type: "DEPLOYMENT_RELEASE_TAG",
62
61
  * data: {
@@ -72,7 +71,7 @@ class TestSuiteRuns {
72
71
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
73
72
  .default, "v1/test-suite-runs"),
74
73
  method: "POST",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
75
  contentType: "application/json",
77
76
  requestType: "json",
78
77
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -125,7 +124,7 @@ class TestSuiteRuns {
125
124
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
126
125
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
127
126
  method: "GET",
128
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
128
  contentType: "application/json",
130
129
  requestType: "json",
131
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -192,7 +191,7 @@ class TestSuiteRuns {
192
191
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
193
192
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
194
193
  method: "GET",
195
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
196
195
  contentType: "application/json",
197
196
  queryParameters: _queryParams,
198
197
  requestType: "json",
@@ -5,7 +5,6 @@ import * as Vellum from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * testSuiteId: "test_suite_id",
9
8
  * execConfig: {
10
9
  * type: "DEPLOYMENT_RELEASE_TAG",
11
10
  * data: {
@@ -15,8 +14,10 @@ import * as Vellum from "../../../../index";
15
14
  * }
16
15
  */
17
16
  export interface TestSuiteRunCreateRequest {
18
- /** The ID of the Test Suite to run */
19
- testSuiteId: string;
17
+ /** The ID of the Test Suite to run. Must provide either this or test_suite_id. */
18
+ testSuiteId?: string;
19
+ /** The name of the Test Suite to run. Must provide either this or test_suite_id. */
20
+ testSuiteName?: string;
20
21
  /** Configuration that defines how the Test Suite should be run */
21
22
  execConfig: Vellum.TestSuiteRunExecConfigRequest;
22
23
  }
@@ -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.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "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.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "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.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "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.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "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.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "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.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "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,
@@ -184,7 +184,7 @@ class WorkflowDeployments {
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
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
186
186
  method: "GET",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "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,
@@ -238,7 +238,7 @@ class WorkflowDeployments {
238
238
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
239
239
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
240
240
  method: "PATCH",
241
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.21", "User-Agent": "vellum-ai/0.8.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
241
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.23", "User-Agent": "vellum-ai/0.8.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
242
  contentType: "application/json",
243
243
  requestType: "json",
244
244
  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.8.21", "User-Agent": "vellum-ai/0.8.21", "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.8.23", "User-Agent": "vellum-ai/0.8.23", "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" }),
@@ -6,4 +6,7 @@ export interface VellumVariable {
6
6
  id: string;
7
7
  key: string;
8
8
  type: Vellum.VellumVariableType;
9
+ required?: boolean;
10
+ default?: Vellum.VellumValue;
11
+ extensions?: Vellum.VellumVariableExtensions;
9
12
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A set of fields with additional properties for use in Vellum Variables.
6
+ */
7
+ export interface VellumVariableExtensions {
8
+ color?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A set of fields with additional properties for use in Vellum Variables.
6
+ */
7
+ export interface VellumVariableExtensionsRequest {
8
+ color?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,4 +6,7 @@ export interface VellumVariableRequest {
6
6
  id: string;
7
7
  key: string;
8
8
  type: Vellum.VellumVariableType;
9
+ required?: boolean;
10
+ default?: Vellum.VellumValueRequest;
11
+ extensions?: Vellum.VellumVariableExtensionsRequest;
9
12
  }
@@ -404,6 +404,8 @@ export * from "./VellumValueLogicalConditionRequest";
404
404
  export * from "./VellumValueLogicalExpressionRequest";
405
405
  export * from "./VellumValueRequest";
406
406
  export * from "./VellumVariable";
407
+ export * from "./VellumVariableExtensions";
408
+ export * from "./VellumVariableExtensionsRequest";
407
409
  export * from "./VellumVariableRequest";
408
410
  export * from "./VellumVariableType";
409
411
  export * from "./WorkflowDeploymentRead";
@@ -420,6 +420,8 @@ __exportStar(require("./VellumValueLogicalConditionRequest"), exports);
420
420
  __exportStar(require("./VellumValueLogicalExpressionRequest"), exports);
421
421
  __exportStar(require("./VellumValueRequest"), exports);
422
422
  __exportStar(require("./VellumVariable"), exports);
423
+ __exportStar(require("./VellumVariableExtensions"), exports);
424
+ __exportStar(require("./VellumVariableExtensionsRequest"), exports);
423
425
  __exportStar(require("./VellumVariableRequest"), exports);
424
426
  __exportStar(require("./VellumVariableType"), exports);
425
427
  __exportStar(require("./WorkflowDeploymentRead"), exports);
@@ -8,7 +8,8 @@ import { TestSuiteRunExecConfigRequest } from "../../../../types/TestSuiteRunExe
8
8
  export declare const TestSuiteRunCreateRequest: core.serialization.Schema<serializers.TestSuiteRunCreateRequest.Raw, Vellum.TestSuiteRunCreateRequest>;
9
9
  export declare namespace TestSuiteRunCreateRequest {
10
10
  interface Raw {
11
- test_suite_id: string;
11
+ test_suite_id?: string | null;
12
+ test_suite_name?: string | null;
12
13
  exec_config: TestSuiteRunExecConfigRequest.Raw;
13
14
  }
14
15
  }
@@ -30,6 +30,7 @@ exports.TestSuiteRunCreateRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  const TestSuiteRunExecConfigRequest_1 = require("../../../../types/TestSuiteRunExecConfigRequest");
32
32
  exports.TestSuiteRunCreateRequest = core.serialization.object({
33
- testSuiteId: core.serialization.property("test_suite_id", core.serialization.string()),
33
+ testSuiteId: core.serialization.property("test_suite_id", core.serialization.string().optional()),
34
+ testSuiteName: core.serialization.property("test_suite_name", core.serialization.string().optional()),
34
35
  execConfig: core.serialization.property("exec_config", TestSuiteRunExecConfigRequest_1.TestSuiteRunExecConfigRequest),
35
36
  });
@@ -5,11 +5,16 @@ import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { VellumVariableType } from "./VellumVariableType";
8
+ import { VellumValue } from "./VellumValue";
9
+ import { VellumVariableExtensions } from "./VellumVariableExtensions";
8
10
  export declare const VellumVariable: core.serialization.ObjectSchema<serializers.VellumVariable.Raw, Vellum.VellumVariable>;
9
11
  export declare namespace VellumVariable {
10
12
  interface Raw {
11
13
  id: string;
12
14
  key: string;
13
15
  type: VellumVariableType.Raw;
16
+ required?: boolean | null;
17
+ default?: VellumValue.Raw | null;
18
+ extensions?: VellumVariableExtensions.Raw | null;
14
19
  }
15
20
  }
@@ -29,8 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.VellumVariable = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const VellumVariableType_1 = require("./VellumVariableType");
32
+ const VellumValue_1 = require("./VellumValue");
33
+ const VellumVariableExtensions_1 = require("./VellumVariableExtensions");
32
34
  exports.VellumVariable = core.serialization.object({
33
35
  id: core.serialization.string(),
34
36
  key: core.serialization.string(),
35
37
  type: VellumVariableType_1.VellumVariableType,
38
+ required: core.serialization.boolean().optional(),
39
+ default: VellumValue_1.VellumValue.optional(),
40
+ extensions: VellumVariableExtensions_1.VellumVariableExtensions.optional(),
36
41
  });
@@ -0,0 +1,12 @@
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
+ export declare const VellumVariableExtensions: core.serialization.ObjectSchema<serializers.VellumVariableExtensions.Raw, Vellum.VellumVariableExtensions>;
8
+ export declare namespace VellumVariableExtensions {
9
+ interface Raw {
10
+ color?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.VellumVariableExtensions = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.VellumVariableExtensions = core.serialization.object({
32
+ color: core.serialization.string().optional(),
33
+ });
@@ -0,0 +1,12 @@
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
+ export declare const VellumVariableExtensionsRequest: core.serialization.ObjectSchema<serializers.VellumVariableExtensionsRequest.Raw, Vellum.VellumVariableExtensionsRequest>;
8
+ export declare namespace VellumVariableExtensionsRequest {
9
+ interface Raw {
10
+ color?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.VellumVariableExtensionsRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.VellumVariableExtensionsRequest = core.serialization.object({
32
+ color: core.serialization.string().optional(),
33
+ });
@@ -5,11 +5,16 @@ import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { VellumVariableType } from "./VellumVariableType";
8
+ import { VellumValueRequest } from "./VellumValueRequest";
9
+ import { VellumVariableExtensionsRequest } from "./VellumVariableExtensionsRequest";
8
10
  export declare const VellumVariableRequest: core.serialization.ObjectSchema<serializers.VellumVariableRequest.Raw, Vellum.VellumVariableRequest>;
9
11
  export declare namespace VellumVariableRequest {
10
12
  interface Raw {
11
13
  id: string;
12
14
  key: string;
13
15
  type: VellumVariableType.Raw;
16
+ required?: boolean | null;
17
+ default?: VellumValueRequest.Raw | null;
18
+ extensions?: VellumVariableExtensionsRequest.Raw | null;
14
19
  }
15
20
  }
@@ -29,8 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.VellumVariableRequest = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const VellumVariableType_1 = require("./VellumVariableType");
32
+ const VellumValueRequest_1 = require("./VellumValueRequest");
33
+ const VellumVariableExtensionsRequest_1 = require("./VellumVariableExtensionsRequest");
32
34
  exports.VellumVariableRequest = core.serialization.object({
33
35
  id: core.serialization.string(),
34
36
  key: core.serialization.string(),
35
37
  type: VellumVariableType_1.VellumVariableType,
38
+ required: core.serialization.boolean().optional(),
39
+ default: VellumValueRequest_1.VellumValueRequest.optional(),
40
+ extensions: VellumVariableExtensionsRequest_1.VellumVariableExtensionsRequest.optional(),
36
41
  });
@@ -404,6 +404,8 @@ export * from "./VellumValueLogicalConditionRequest";
404
404
  export * from "./VellumValueLogicalExpressionRequest";
405
405
  export * from "./VellumValueRequest";
406
406
  export * from "./VellumVariable";
407
+ export * from "./VellumVariableExtensions";
408
+ export * from "./VellumVariableExtensionsRequest";
407
409
  export * from "./VellumVariableRequest";
408
410
  export * from "./VellumVariableType";
409
411
  export * from "./WorkflowDeploymentRead";
@@ -420,6 +420,8 @@ __exportStar(require("./VellumValueLogicalConditionRequest"), exports);
420
420
  __exportStar(require("./VellumValueLogicalExpressionRequest"), exports);
421
421
  __exportStar(require("./VellumValueRequest"), exports);
422
422
  __exportStar(require("./VellumVariable"), exports);
423
+ __exportStar(require("./VellumVariableExtensions"), exports);
424
+ __exportStar(require("./VellumVariableExtensionsRequest"), exports);
423
425
  __exportStar(require("./VellumVariableRequest"), exports);
424
426
  __exportStar(require("./VellumVariableType"), exports);
425
427
  __exportStar(require("./WorkflowDeploymentRead"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.8.21";
1
+ export declare const SDK_VERSION = "0.8.23";
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.8.21";
4
+ exports.SDK_VERSION = "0.8.23";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.8.21",
3
+ "version": "0.8.23",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "readable-stream": "^4.5.2",
22
22
  "form-data-encoder": "^4.0.2",
23
23
  "cdktf": "^0.20.5",
24
- "constructs": "^10.3.0"
24
+ "constructs": "10.3.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/url-join": "4.0.1",
package/reference.md CHANGED
@@ -117,6 +117,14 @@ await client.adHoc.adhocExecutePromptStream({
117
117
  id: "string",
118
118
  key: "string",
119
119
  type: "STRING",
120
+ required: true,
121
+ default: {
122
+ type: "STRING",
123
+ value: "string",
124
+ },
125
+ extensions: {
126
+ color: "string",
127
+ },
120
128
  },
121
129
  ],
122
130
  parameters: {
@@ -1874,7 +1882,6 @@ Trigger a Test Suite and create a new Test Suite Run
1874
1882
 
1875
1883
  ```typescript
1876
1884
  await client.testSuiteRuns.create({
1877
- testSuiteId: "test_suite_id",
1878
1885
  execConfig: {
1879
1886
  type: "DEPLOYMENT_RELEASE_TAG",
1880
1887
  data: {
@@ -8,7 +8,8 @@ import { TestSuiteRunExecConfigRequest } from "../../../../types/TestSuiteRunExe
8
8
  export declare const TestSuiteRunCreateRequest: core.serialization.Schema<serializers.TestSuiteRunCreateRequest.Raw, Vellum.TestSuiteRunCreateRequest>;
9
9
  export declare namespace TestSuiteRunCreateRequest {
10
10
  interface Raw {
11
- test_suite_id: string;
11
+ test_suite_id?: string | null;
12
+ test_suite_name?: string | null;
12
13
  exec_config: TestSuiteRunExecConfigRequest.Raw;
13
14
  }
14
15
  }
@@ -30,6 +30,7 @@ exports.TestSuiteRunCreateRequest = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
31
  const TestSuiteRunExecConfigRequest_1 = require("../../../../types/TestSuiteRunExecConfigRequest");
32
32
  exports.TestSuiteRunCreateRequest = core.serialization.object({
33
- testSuiteId: core.serialization.property("test_suite_id", core.serialization.string()),
33
+ testSuiteId: core.serialization.property("test_suite_id", core.serialization.string().optional()),
34
+ testSuiteName: core.serialization.property("test_suite_name", core.serialization.string().optional()),
34
35
  execConfig: core.serialization.property("exec_config", TestSuiteRunExecConfigRequest_1.TestSuiteRunExecConfigRequest),
35
36
  });
@@ -5,11 +5,16 @@ import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { VellumVariableType } from "./VellumVariableType";
8
+ import { VellumValue } from "./VellumValue";
9
+ import { VellumVariableExtensions } from "./VellumVariableExtensions";
8
10
  export declare const VellumVariable: core.serialization.ObjectSchema<serializers.VellumVariable.Raw, Vellum.VellumVariable>;
9
11
  export declare namespace VellumVariable {
10
12
  interface Raw {
11
13
  id: string;
12
14
  key: string;
13
15
  type: VellumVariableType.Raw;
16
+ required?: boolean | null;
17
+ default?: VellumValue.Raw | null;
18
+ extensions?: VellumVariableExtensions.Raw | null;
14
19
  }
15
20
  }
@@ -29,8 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.VellumVariable = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const VellumVariableType_1 = require("./VellumVariableType");
32
+ const VellumValue_1 = require("./VellumValue");
33
+ const VellumVariableExtensions_1 = require("./VellumVariableExtensions");
32
34
  exports.VellumVariable = core.serialization.object({
33
35
  id: core.serialization.string(),
34
36
  key: core.serialization.string(),
35
37
  type: VellumVariableType_1.VellumVariableType,
38
+ required: core.serialization.boolean().optional(),
39
+ default: VellumValue_1.VellumValue.optional(),
40
+ extensions: VellumVariableExtensions_1.VellumVariableExtensions.optional(),
36
41
  });
@@ -0,0 +1,12 @@
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
+ export declare const VellumVariableExtensions: core.serialization.ObjectSchema<serializers.VellumVariableExtensions.Raw, Vellum.VellumVariableExtensions>;
8
+ export declare namespace VellumVariableExtensions {
9
+ interface Raw {
10
+ color?: string | null;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.VellumVariableExtensions = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.VellumVariableExtensions = core.serialization.object({
32
+ color: core.serialization.string().optional(),
33
+ });
@@ -0,0 +1,12 @@
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
+ export declare const VellumVariableExtensionsRequest: core.serialization.ObjectSchema<serializers.VellumVariableExtensionsRequest.Raw, Vellum.VellumVariableExtensionsRequest>;
8
+ export declare namespace VellumVariableExtensionsRequest {
9
+ interface Raw {
10
+ color?: string | null;
11
+ }
12
+ }