vellum-ai 0.8.19 → 0.8.22

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 (127) 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 +10 -1
  5. package/.mock/definition/workflowDeployments.yml +6 -0
  6. package/.mock/definition/workflowSandboxes.yml +6 -0
  7. package/.mock/openapi/openapi.yml +44 -1
  8. package/Client.d.ts +2 -2
  9. package/Client.js +12 -12
  10. package/api/client/requests/CodeExecutorRequest.d.ts +2 -2
  11. package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  12. package/api/client/requests/GenerateStreamBodyRequest.d.ts +2 -2
  13. package/api/resources/adHoc/client/Client.js +1 -1
  14. package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +11 -3
  15. package/api/resources/deployments/client/Client.js +5 -5
  16. package/api/resources/documentIndexes/client/Client.js +8 -8
  17. package/api/resources/documents/client/Client.js +5 -5
  18. package/api/resources/folderEntities/client/Client.js +1 -1
  19. package/api/resources/metricDefinitions/client/Client.js +1 -1
  20. package/api/resources/sandboxes/client/Client.d.ts +2 -2
  21. package/api/resources/sandboxes/client/Client.js +5 -5
  22. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -2
  23. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  24. package/api/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +3 -1
  25. package/api/resources/testSuites/client/Client.js +4 -4
  26. package/api/resources/workflowDeployments/client/Client.js +4 -4
  27. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  28. package/api/types/VellumVariable.d.ts +3 -0
  29. package/api/types/VellumVariableExtensions.d.ts +9 -0
  30. package/api/types/VellumVariableExtensions.js +5 -0
  31. package/api/types/VellumVariableExtensionsRequest.d.ts +9 -0
  32. package/api/types/VellumVariableExtensionsRequest.js +5 -0
  33. package/api/types/VellumVariableRequest.d.ts +3 -0
  34. package/api/types/index.d.ts +2 -0
  35. package/api/types/index.js +2 -0
  36. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
  37. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
  38. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -1
  39. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  40. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
  41. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  42. package/core/form-data-utils/FormDataWrapper.d.ts +2 -2
  43. package/core/form-data-utils/FormDataWrapper.js +7 -7
  44. package/core/schemas/Schema.d.ts +1 -0
  45. package/core/schemas/Schema.js +1 -0
  46. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  47. package/core/schemas/builders/bigint/bigint.js +50 -0
  48. package/core/schemas/builders/bigint/index.d.ts +1 -0
  49. package/core/schemas/builders/bigint/index.js +5 -0
  50. package/core/schemas/builders/index.d.ts +1 -0
  51. package/core/schemas/builders/index.js +1 -0
  52. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  53. package/dist/Client.d.ts +2 -2
  54. package/dist/Client.js +12 -12
  55. package/dist/api/client/requests/CodeExecutorRequest.d.ts +2 -2
  56. package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -1
  57. package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +2 -2
  58. package/dist/api/resources/adHoc/client/Client.js +1 -1
  59. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +11 -3
  60. package/dist/api/resources/deployments/client/Client.js +5 -5
  61. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  62. package/dist/api/resources/documents/client/Client.js +5 -5
  63. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  64. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  65. package/dist/api/resources/sandboxes/client/Client.d.ts +2 -2
  66. package/dist/api/resources/sandboxes/client/Client.js +5 -5
  67. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -2
  68. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  69. package/dist/api/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +3 -1
  70. package/dist/api/resources/testSuites/client/Client.js +4 -4
  71. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  72. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  73. package/dist/api/types/VellumVariable.d.ts +3 -0
  74. package/dist/api/types/VellumVariableExtensions.d.ts +9 -0
  75. package/dist/api/types/VellumVariableExtensions.js +5 -0
  76. package/dist/api/types/VellumVariableExtensionsRequest.d.ts +9 -0
  77. package/dist/api/types/VellumVariableExtensionsRequest.js +5 -0
  78. package/dist/api/types/VellumVariableRequest.d.ts +3 -0
  79. package/dist/api/types/index.d.ts +2 -0
  80. package/dist/api/types/index.js +2 -0
  81. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +1 -2
  82. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +4 -2
  83. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +1 -1
  84. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  85. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +4 -2
  86. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
  87. package/dist/core/form-data-utils/FormDataWrapper.d.ts +2 -2
  88. package/dist/core/form-data-utils/FormDataWrapper.js +7 -7
  89. package/dist/core/schemas/Schema.d.ts +1 -0
  90. package/dist/core/schemas/Schema.js +1 -0
  91. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  92. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  93. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  94. package/dist/core/schemas/builders/bigint/index.js +5 -0
  95. package/dist/core/schemas/builders/index.d.ts +1 -0
  96. package/dist/core/schemas/builders/index.js +1 -0
  97. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  98. package/dist/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +1 -0
  99. package/dist/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.js +1 -0
  100. package/dist/serialization/types/VellumVariable.d.ts +5 -0
  101. package/dist/serialization/types/VellumVariable.js +5 -0
  102. package/dist/serialization/types/VellumVariableExtensions.d.ts +12 -0
  103. package/dist/serialization/types/VellumVariableExtensions.js +33 -0
  104. package/dist/serialization/types/VellumVariableExtensionsRequest.d.ts +12 -0
  105. package/dist/serialization/types/VellumVariableExtensionsRequest.js +33 -0
  106. package/dist/serialization/types/VellumVariableRequest.d.ts +5 -0
  107. package/dist/serialization/types/VellumVariableRequest.js +5 -0
  108. package/dist/serialization/types/index.d.ts +2 -0
  109. package/dist/serialization/types/index.js +2 -0
  110. package/dist/version.d.ts +1 -0
  111. package/dist/version.js +4 -0
  112. package/package.json +6 -2
  113. package/reference.md +11 -3
  114. package/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.d.ts +1 -0
  115. package/serialization/resources/testSuiteRuns/client/requests/TestSuiteRunCreateRequest.js +1 -0
  116. package/serialization/types/VellumVariable.d.ts +5 -0
  117. package/serialization/types/VellumVariable.js +5 -0
  118. package/serialization/types/VellumVariableExtensions.d.ts +12 -0
  119. package/serialization/types/VellumVariableExtensions.js +33 -0
  120. package/serialization/types/VellumVariableExtensionsRequest.d.ts +12 -0
  121. package/serialization/types/VellumVariableExtensionsRequest.js +33 -0
  122. package/serialization/types/VellumVariableRequest.d.ts +5 -0
  123. package/serialization/types/VellumVariableRequest.js +5 -0
  124. package/serialization/types/index.d.ts +2 -0
  125. package/serialization/types/index.js +2 -0
  126. package/version.d.ts +1 -0
  127. package/version.js +4 -0
@@ -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.19", "User-Agent": "vellum-ai/0.8.19", "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.22", "User-Agent": "vellum-ai/0.8.22", "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.19", "User-Agent": "vellum-ai/0.8.19", "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.22", "User-Agent": "vellum-ai/0.8.22", "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.19", "User-Agent": "vellum-ai/0.8.19", "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.22", "User-Agent": "vellum-ai/0.8.22", "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.19", "User-Agent": "vellum-ai/0.8.19", "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.22", "User-Agent": "vellum-ai/0.8.22", "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.19", "User-Agent": "vellum-ai/0.8.19", "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.22", "User-Agent": "vellum-ai/0.8.22", "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);
@@ -1,5 +1,4 @@
1
- /// <reference types="node" />
2
- import type { Writable } from "stream";
1
+ import type { Writable } from "readable-stream";
3
2
  import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";
4
3
  export declare class Node18UniversalStreamWrapper<ReadFormat extends Uint8Array | Uint16Array | Uint32Array> implements StreamWrapper<Node18UniversalStreamWrapper<ReadFormat> | Writable | WritableStream<ReadFormat>, ReadFormat> {
5
4
  private readableStream;
@@ -165,10 +165,12 @@ class Node18UniversalStreamWrapper {
165
165
  const chunks = [];
166
166
  while (true) {
167
167
  const { done, value } = yield this.reader.read();
168
- if (done)
168
+ if (done) {
169
169
  break;
170
- if (value)
170
+ }
171
+ if (value) {
171
172
  chunks.push(value);
173
+ }
172
174
  }
173
175
  const decoder = new TextDecoder(this.encoding || "utf-8");
174
176
  return decoder.decode(yield new Blob(chunks).arrayBuffer());
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import type { Readable, Writable } from "stream";
2
+ import type { Readable, Writable } from "readable-stream";
3
3
  import { EventCallback, StreamWrapper } from "./chooseStreamWrapper";
4
4
  export declare class NodePre18StreamWrapper implements StreamWrapper<Writable, Buffer> {
5
5
  private readableStream;
@@ -12,7 +12,7 @@ export declare class UndiciStreamWrapper<ReadFormat extends Uint8Array | Uint16A
12
12
  off(event: string, callback: EventCallback): void;
13
13
  pipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
14
14
  pipeTo(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>): UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>;
15
- unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream<any>): void;
15
+ unpipe(dest: UndiciStreamWrapper<ReadFormat> | WritableStream): void;
16
16
  destroy(error?: Error): void;
17
17
  pause(): void;
18
18
  resume(): void;
@@ -147,10 +147,12 @@ class UndiciStreamWrapper {
147
147
  const chunks = [];
148
148
  while (true) {
149
149
  const { done, value } = yield this.reader.read();
150
- if (done)
150
+ if (done) {
151
151
  break;
152
- if (value)
152
+ }
153
+ if (value) {
153
154
  chunks.push(value);
155
+ }
154
156
  }
155
157
  const decoder = new TextDecoder(this.encoding || "utf-8");
156
158
  return decoder.decode(yield new Blob(chunks).arrayBuffer());
@@ -39,7 +39,7 @@ function chooseStreamWrapper(responseBody) {
39
39
  if (runtime_1.RUNTIME.type === "node" && runtime_1.RUNTIME.parsedVersion != null && runtime_1.RUNTIME.parsedVersion >= 18) {
40
40
  return new (yield Promise.resolve().then(() => __importStar(require("./Node18UniversalStreamWrapper")))).Node18UniversalStreamWrapper(responseBody);
41
41
  }
42
- else if (runtime_1.RUNTIME.type !== "node" && typeof fetch == "function") {
42
+ else if (runtime_1.RUNTIME.type !== "node" && typeof fetch === "function") {
43
43
  return new (yield Promise.resolve().then(() => __importStar(require("./UndiciStreamWrapper")))).UndiciStreamWrapper(responseBody);
44
44
  }
45
45
  else {
@@ -1,9 +1,9 @@
1
1
  export declare type MaybePromise<T> = Promise<T> | T;
2
- declare type FormDataRequest<Body> = {
2
+ interface FormDataRequest<Body> {
3
3
  body: Body;
4
4
  headers: Record<string, string>;
5
5
  duplex?: "half";
6
- };
6
+ }
7
7
  export interface CrossPlatformFormData {
8
8
  setup(): Promise<void>;
9
9
  append(key: string, value: unknown): void;
@@ -73,8 +73,11 @@ class Node18FormData {
73
73
  if (fileName == null && isNamedValue(value)) {
74
74
  fileName = value.name;
75
75
  }
76
- if (value instanceof (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable) {
77
- (_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, {
76
+ if (value instanceof Blob) {
77
+ (_a = this.fd) === null || _a === void 0 ? void 0 : _a.append(key, value, fileName);
78
+ }
79
+ else {
80
+ (_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, {
78
81
  type: undefined,
79
82
  name: fileName,
80
83
  [Symbol.toStringTag]: "File",
@@ -83,16 +86,13 @@ class Node18FormData {
83
86
  },
84
87
  });
85
88
  }
86
- else {
87
- (_b = this.fd) === null || _b === void 0 ? void 0 : _b.append(key, value, fileName);
88
- }
89
89
  });
90
90
  }
91
91
  getRequest() {
92
92
  return __awaiter(this, void 0, void 0, function* () {
93
93
  const encoder = new (yield Promise.resolve().then(() => __importStar(require("form-data-encoder")))).FormDataEncoder(this.fd);
94
94
  return {
95
- body: yield (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable.from(encoder),
95
+ body: (yield Promise.resolve().then(() => __importStar(require("readable-stream")))).Readable.from(encoder),
96
96
  headers: encoder.headers,
97
97
  duplex: "half",
98
98
  };
@@ -120,7 +120,7 @@ class Node16FormData {
120
120
  fileName = value.name;
121
121
  }
122
122
  let bufferedValue;
123
- if (!(value instanceof (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable)) {
123
+ if (value instanceof Blob) {
124
124
  bufferedValue = Buffer.from(yield value.arrayBuffer());
125
125
  }
126
126
  else {
@@ -8,6 +8,7 @@ export interface BaseSchema<Raw, Parsed> {
8
8
  getType: () => SchemaType | SchemaType;
9
9
  }
10
10
  export declare const SchemaType: {
11
+ readonly BIGINT: "bigint";
11
12
  readonly DATE: "date";
12
13
  readonly ENUM: "enum";
13
14
  readonly LIST: "list";
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SchemaType = void 0;
4
4
  exports.SchemaType = {
5
+ BIGINT: "bigint",
5
6
  DATE: "date",
6
7
  ENUM: "enum",
7
8
  LIST: "list",
@@ -0,0 +1,2 @@
1
+ import { Schema } from "../../Schema";
2
+ export declare function bigint(): Schema<string, bigint>;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bigint = void 0;
4
+ const Schema_1 = require("../../Schema");
5
+ const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
6
+ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
7
+ const schema_utils_1 = require("../schema-utils");
8
+ function bigint() {
9
+ const baseSchema = {
10
+ parse: (raw, { breadcrumbsPrefix = [] } = {}) => {
11
+ if (typeof raw !== "string") {
12
+ return {
13
+ ok: false,
14
+ errors: [
15
+ {
16
+ path: breadcrumbsPrefix,
17
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(raw, "string"),
18
+ },
19
+ ],
20
+ };
21
+ }
22
+ return {
23
+ ok: true,
24
+ value: BigInt(raw),
25
+ };
26
+ },
27
+ json: (bigint, { breadcrumbsPrefix = [] } = {}) => {
28
+ if (typeof bigint === "bigint") {
29
+ return {
30
+ ok: true,
31
+ value: bigint.toString(),
32
+ };
33
+ }
34
+ else {
35
+ return {
36
+ ok: false,
37
+ errors: [
38
+ {
39
+ path: breadcrumbsPrefix,
40
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(bigint, "bigint"),
41
+ },
42
+ ],
43
+ };
44
+ }
45
+ },
46
+ getType: () => Schema_1.SchemaType.BIGINT,
47
+ };
48
+ return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
49
+ }
50
+ exports.bigint = bigint;
@@ -0,0 +1 @@
1
+ export { bigint } from "./bigint";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bigint = void 0;
4
+ var bigint_1 = require("./bigint");
5
+ Object.defineProperty(exports, "bigint", { enumerable: true, get: function () { return bigint_1.bigint; } });
@@ -1,3 +1,4 @@
1
+ export * from "./bigint";
1
2
  export * from "./date";
2
3
  export * from "./enum";
3
4
  export * from "./lazy";
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./bigint"), exports);
17
18
  __exportStar(require("./date"), exports);
18
19
  __exportStar(require("./enum"), exports);
19
20
  __exportStar(require("./lazy"), exports);
@@ -12,9 +12,13 @@ function getTypeAsString(value) {
12
12
  if (value === null) {
13
13
  return "null";
14
14
  }
15
+ if (value instanceof BigInt) {
16
+ return "BigInt";
17
+ }
15
18
  switch (typeof value) {
16
19
  case "string":
17
20
  return `"${value}"`;
21
+ case "bigint":
18
22
  case "number":
19
23
  case "boolean":
20
24
  case "undefined":
@@ -9,6 +9,7 @@ export declare const TestSuiteRunCreateRequest: core.serialization.Schema<serial
9
9
  export declare namespace TestSuiteRunCreateRequest {
10
10
  interface Raw {
11
11
  test_suite_id: string;
12
+ test_suite_name?: string | null;
12
13
  exec_config: TestSuiteRunExecConfigRequest.Raw;
13
14
  }
14
15
  }
@@ -31,5 +31,6 @@ const core = __importStar(require("../../../../../core"));
31
31
  const TestSuiteRunExecConfigRequest_1 = require("../../../../types/TestSuiteRunExecConfigRequest");
32
32
  exports.TestSuiteRunCreateRequest = core.serialization.object({
33
33
  testSuiteId: core.serialization.property("test_suite_id", core.serialization.string()),
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);
@@ -0,0 +1 @@
1
+ export declare const SDK_VERSION = "0.8.22";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SDK_VERSION = void 0;
4
+ exports.SDK_VERSION = "0.8.22";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.8.19",
3
+ "version": "0.8.22",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
@@ -18,15 +18,19 @@
18
18
  "formdata-node": "^6.0.3",
19
19
  "node-fetch": "2.7.0",
20
20
  "qs": "6.11.2",
21
+ "readable-stream": "^4.5.2",
21
22
  "form-data-encoder": "^4.0.2",
22
23
  "cdktf": "^0.20.5",
23
- "constructs": "^10.3.0"
24
+ "constructs": "10.3.0"
24
25
  },
25
26
  "devDependencies": {
26
27
  "@types/url-join": "4.0.1",
27
28
  "@types/qs": "6.9.8",
28
29
  "@types/node-fetch": "2.6.9",
30
+ "@types/readable-stream": "^4.0.15",
29
31
  "fetch-mock-jest": "^1.5.1",
32
+ "webpack": "^5.94.0",
33
+ "ts-loader": "^9.3.1",
30
34
  "jest": "29.7.0",
31
35
  "@types/jest": "29.5.5",
32
36
  "ts-jest": "29.1.1",