vellum-ai 0.6.8 → 0.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/Client.d.ts +9 -6
  2. package/Client.js +40 -37
  3. package/api/client/requests/ExecutePromptRequest.d.ts +7 -5
  4. package/api/client/requests/ExecutePromptStreamRequest.d.ts +7 -5
  5. package/api/resources/deployments/client/Client.d.ts +8 -5
  6. package/api/resources/deployments/client/Client.js +22 -17
  7. package/api/resources/documentIndexes/client/Client.d.ts +21 -7
  8. package/api/resources/documentIndexes/client/Client.js +77 -26
  9. package/api/resources/documents/client/Client.d.ts +11 -7
  10. package/api/resources/documents/client/Client.js +25 -22
  11. package/api/resources/folderEntities/client/Client.d.ts +4 -1
  12. package/api/resources/folderEntities/client/Client.js +4 -3
  13. package/api/resources/sandboxes/client/Client.d.ts +7 -4
  14. package/api/resources/sandboxes/client/Client.js +14 -13
  15. package/api/resources/testSuiteRuns/client/Client.d.ts +6 -3
  16. package/api/resources/testSuiteRuns/client/Client.js +13 -10
  17. package/api/resources/testSuites/client/Client.d.ts +6 -3
  18. package/api/resources/testSuites/client/Client.js +16 -14
  19. package/api/resources/workflowDeployments/client/Client.d.ts +7 -4
  20. package/api/resources/workflowDeployments/client/Client.js +17 -13
  21. package/api/resources/workflowSandboxes/client/Client.d.ts +4 -1
  22. package/api/resources/workflowSandboxes/client/Client.js +5 -6
  23. package/api/types/IterationStateEnum.d.ts +12 -0
  24. package/api/types/IterationStateEnum.js +10 -0
  25. package/api/types/MapNodeResultData.d.ts +2 -0
  26. package/api/types/PromptNodeResultData.d.ts +1 -0
  27. package/api/types/TestSuiteRunMetricNumberOutput.d.ts +1 -1
  28. package/api/types/TestSuiteRunMetricStringOutput.d.ts +1 -1
  29. package/api/types/TestSuiteTestCaseRejectedBulkResult.d.ts +1 -1
  30. package/api/types/index.d.ts +1 -0
  31. package/api/types/index.js +1 -0
  32. package/core/fetcher/Fetcher.d.ts +2 -0
  33. package/core/fetcher/Fetcher.js +19 -185
  34. package/core/fetcher/createRequestUrl.d.ts +1 -0
  35. package/core/fetcher/createRequestUrl.js +13 -0
  36. package/core/fetcher/getFetchFn.d.ts +4 -0
  37. package/core/fetcher/getFetchFn.js +55 -0
  38. package/core/fetcher/getRequestBody.d.ts +7 -0
  39. package/core/fetcher/getRequestBody.js +23 -0
  40. package/core/fetcher/getResponseBody.d.ts +1 -0
  41. package/core/fetcher/getResponseBody.js +48 -0
  42. package/core/fetcher/makeRequest.d.ts +1 -0
  43. package/core/fetcher/makeRequest.js +40 -0
  44. package/core/fetcher/requestWithRetries.d.ts +1 -0
  45. package/core/fetcher/requestWithRetries.js +32 -0
  46. package/core/fetcher/signals.d.ts +12 -0
  47. package/core/fetcher/signals.js +37 -0
  48. package/core/form-data-utils/FormDataWrapper.d.ts +10 -21
  49. package/core/form-data-utils/FormDataWrapper.js +82 -49
  50. package/core/runtime/runtime.d.ts +1 -0
  51. package/core/runtime/runtime.js +1 -0
  52. package/core/schemas/Schema.d.ts +7 -4
  53. package/core/schemas/builders/lazy/lazy.d.ts +2 -2
  54. package/core/schemas/builders/lazy/lazy.js +8 -19
  55. package/core/schemas/builders/lazy/lazyObject.js +1 -10
  56. package/core/schemas/builders/list/list.js +31 -44
  57. package/core/schemas/builders/object/object.js +90 -111
  58. package/core/schemas/builders/object/types.d.ts +2 -2
  59. package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  60. package/core/schemas/builders/record/record.js +49 -60
  61. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  62. package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  63. package/core/schemas/builders/set/set.js +6 -15
  64. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  65. package/core/schemas/builders/union/union.js +51 -62
  66. package/core/schemas/utils/maybeSkipValidation.js +3 -12
  67. package/dist/Client.d.ts +9 -6
  68. package/dist/Client.js +40 -37
  69. package/dist/api/client/requests/ExecutePromptRequest.d.ts +7 -5
  70. package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +7 -5
  71. package/dist/api/resources/deployments/client/Client.d.ts +8 -5
  72. package/dist/api/resources/deployments/client/Client.js +22 -17
  73. package/dist/api/resources/documentIndexes/client/Client.d.ts +21 -7
  74. package/dist/api/resources/documentIndexes/client/Client.js +77 -26
  75. package/dist/api/resources/documents/client/Client.d.ts +11 -7
  76. package/dist/api/resources/documents/client/Client.js +25 -22
  77. package/dist/api/resources/folderEntities/client/Client.d.ts +4 -1
  78. package/dist/api/resources/folderEntities/client/Client.js +4 -3
  79. package/dist/api/resources/sandboxes/client/Client.d.ts +7 -4
  80. package/dist/api/resources/sandboxes/client/Client.js +14 -13
  81. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +6 -3
  82. package/dist/api/resources/testSuiteRuns/client/Client.js +13 -10
  83. package/dist/api/resources/testSuites/client/Client.d.ts +6 -3
  84. package/dist/api/resources/testSuites/client/Client.js +16 -14
  85. package/dist/api/resources/workflowDeployments/client/Client.d.ts +7 -4
  86. package/dist/api/resources/workflowDeployments/client/Client.js +17 -13
  87. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +4 -1
  88. package/dist/api/resources/workflowSandboxes/client/Client.js +5 -6
  89. package/dist/api/types/IterationStateEnum.d.ts +12 -0
  90. package/dist/api/types/IterationStateEnum.js +10 -0
  91. package/dist/api/types/MapNodeResultData.d.ts +2 -0
  92. package/dist/api/types/PromptNodeResultData.d.ts +1 -0
  93. package/dist/api/types/TestSuiteRunMetricNumberOutput.d.ts +1 -1
  94. package/dist/api/types/TestSuiteRunMetricStringOutput.d.ts +1 -1
  95. package/dist/api/types/TestSuiteTestCaseRejectedBulkResult.d.ts +1 -1
  96. package/dist/api/types/index.d.ts +1 -0
  97. package/dist/api/types/index.js +1 -0
  98. package/dist/core/fetcher/Fetcher.d.ts +2 -0
  99. package/dist/core/fetcher/Fetcher.js +19 -185
  100. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  101. package/dist/core/fetcher/createRequestUrl.js +13 -0
  102. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  103. package/dist/core/fetcher/getFetchFn.js +55 -0
  104. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  105. package/dist/core/fetcher/getRequestBody.js +23 -0
  106. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  107. package/dist/core/fetcher/getResponseBody.js +48 -0
  108. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  109. package/dist/core/fetcher/makeRequest.js +40 -0
  110. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  111. package/dist/core/fetcher/requestWithRetries.js +32 -0
  112. package/dist/core/fetcher/signals.d.ts +12 -0
  113. package/dist/core/fetcher/signals.js +37 -0
  114. package/dist/core/form-data-utils/FormDataWrapper.d.ts +10 -21
  115. package/dist/core/form-data-utils/FormDataWrapper.js +82 -49
  116. package/dist/core/runtime/runtime.d.ts +1 -0
  117. package/dist/core/runtime/runtime.js +1 -0
  118. package/dist/core/schemas/Schema.d.ts +7 -4
  119. package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
  120. package/dist/core/schemas/builders/lazy/lazy.js +8 -19
  121. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
  122. package/dist/core/schemas/builders/list/list.js +31 -44
  123. package/dist/core/schemas/builders/object/object.js +90 -111
  124. package/dist/core/schemas/builders/object/types.d.ts +2 -2
  125. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  126. package/dist/core/schemas/builders/record/record.js +49 -60
  127. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  128. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  129. package/dist/core/schemas/builders/set/set.js +6 -15
  130. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  131. package/dist/core/schemas/builders/union/union.js +51 -62
  132. package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
  133. package/dist/serialization/types/IterationStateEnum.d.ts +10 -0
  134. package/dist/serialization/types/IterationStateEnum.js +31 -0
  135. package/dist/serialization/types/MapNodeResultData.d.ts +2 -0
  136. package/dist/serialization/types/MapNodeResultData.js +2 -0
  137. package/dist/serialization/types/MetadataFilterConfigRequest.js +2 -10
  138. package/dist/serialization/types/MetadataFilterRuleRequest.js +2 -10
  139. package/dist/serialization/types/PromptNodeResultData.d.ts +1 -0
  140. package/dist/serialization/types/PromptNodeResultData.js +1 -0
  141. package/dist/serialization/types/TestSuiteRunMetricNumberOutput.d.ts +1 -1
  142. package/dist/serialization/types/TestSuiteRunMetricNumberOutput.js +1 -1
  143. package/dist/serialization/types/TestSuiteRunMetricStringOutput.d.ts +1 -1
  144. package/dist/serialization/types/TestSuiteRunMetricStringOutput.js +1 -1
  145. package/dist/serialization/types/TestSuiteTestCaseRejectedBulkResult.d.ts +1 -1
  146. package/dist/serialization/types/TestSuiteTestCaseRejectedBulkResult.js +1 -1
  147. package/dist/serialization/types/index.d.ts +1 -0
  148. package/dist/serialization/types/index.js +1 -0
  149. package/package.json +6 -1
  150. package/reference.md +2418 -0
  151. package/serialization/types/IterationStateEnum.d.ts +10 -0
  152. package/serialization/types/IterationStateEnum.js +31 -0
  153. package/serialization/types/MapNodeResultData.d.ts +2 -0
  154. package/serialization/types/MapNodeResultData.js +2 -0
  155. package/serialization/types/MetadataFilterConfigRequest.js +2 -10
  156. package/serialization/types/MetadataFilterRuleRequest.js +2 -10
  157. package/serialization/types/PromptNodeResultData.d.ts +1 -0
  158. package/serialization/types/PromptNodeResultData.js +1 -0
  159. package/serialization/types/TestSuiteRunMetricNumberOutput.d.ts +1 -1
  160. package/serialization/types/TestSuiteRunMetricNumberOutput.js +1 -1
  161. package/serialization/types/TestSuiteRunMetricStringOutput.d.ts +1 -1
  162. package/serialization/types/TestSuiteRunMetricStringOutput.js +1 -1
  163. package/serialization/types/TestSuiteTestCaseRejectedBulkResult.d.ts +1 -1
  164. package/serialization/types/TestSuiteTestCaseRejectedBulkResult.js +1 -1
  165. package/serialization/types/index.d.ts +1 -0
  166. package/serialization/types/index.js +1 -0
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.undiscriminatedUnion = void 0;
13
4
  const Schema_1 = require("../../Schema");
@@ -15,37 +6,35 @@ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
15
6
  const schema_utils_1 = require("../schema-utils");
16
7
  function undiscriminatedUnion(schemas) {
17
8
  const baseSchema = {
18
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
9
+ parse: (raw, opts) => {
19
10
  return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.parse(raw, opts), schemas, opts);
20
- }),
21
- json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
11
+ },
12
+ json: (parsed, opts) => {
22
13
  return validateAndTransformUndiscriminatedUnion((schema, opts) => schema.json(parsed, opts), schemas, opts);
23
- }),
14
+ },
24
15
  getType: () => Schema_1.SchemaType.UNDISCRIMINATED_UNION,
25
16
  };
26
17
  return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
27
18
  }
28
19
  exports.undiscriminatedUnion = undiscriminatedUnion;
29
20
  function validateAndTransformUndiscriminatedUnion(transform, schemas, opts) {
30
- return __awaiter(this, void 0, void 0, function* () {
31
- const errors = [];
32
- for (const [index, schema] of schemas.entries()) {
33
- const transformed = yield transform(schema, Object.assign(Object.assign({}, opts), { skipValidation: false }));
34
- if (transformed.ok) {
35
- return transformed;
36
- }
37
- else {
38
- for (const error of transformed.errors) {
39
- errors.push({
40
- path: error.path,
41
- message: `[Variant ${index}] ${error.message}`,
42
- });
43
- }
21
+ const errors = [];
22
+ for (const [index, schema] of schemas.entries()) {
23
+ const transformed = transform(schema, Object.assign(Object.assign({}, opts), { skipValidation: false }));
24
+ if (transformed.ok) {
25
+ return transformed;
26
+ }
27
+ else {
28
+ for (const error of transformed.errors) {
29
+ errors.push({
30
+ path: error.path,
31
+ message: `[Variant ${index}] ${error.message}`,
32
+ });
44
33
  }
45
34
  }
46
- return {
47
- ok: false,
48
- errors,
49
- };
50
- });
35
+ }
36
+ return {
37
+ ok: false,
38
+ errors,
39
+ };
51
40
  }
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  var __rest = (this && this.__rest) || function (s, e) {
12
3
  var t = {};
13
4
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -36,7 +27,7 @@ function union(discriminant, union) {
36
27
  : discriminant.parsedDiscriminant;
37
28
  const discriminantValueSchema = (0, enum_1.enum_)((0, keys_1.keys)(union));
38
29
  const baseSchema = {
39
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
30
+ parse: (raw, opts) => {
40
31
  return transformAndValidateUnion({
41
32
  value: raw,
42
33
  discriminant: rawDiscriminant,
@@ -53,8 +44,8 @@ function union(discriminant, union) {
53
44
  transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.parse(additionalProperties, opts),
54
45
  breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
55
46
  });
56
- }),
57
- json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () {
47
+ },
48
+ json: (parsed, opts) => {
58
49
  return transformAndValidateUnion({
59
50
  value: parsed,
60
51
  discriminant: parsedDiscriminant,
@@ -71,71 +62,69 @@ function union(discriminant, union) {
71
62
  transformAdditionalProperties: (additionalProperties, additionalPropertiesSchema) => additionalPropertiesSchema.json(additionalProperties, opts),
72
63
  breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
73
64
  });
74
- }),
65
+ },
75
66
  getType: () => Schema_1.SchemaType.UNION,
76
67
  };
77
68
  return Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema));
78
69
  }
79
70
  exports.union = union;
80
71
  function transformAndValidateUnion({ value, discriminant, transformedDiscriminant, transformDiscriminantValue, getAdditionalPropertiesSchema, allowUnrecognizedUnionMembers = false, transformAdditionalProperties, breadcrumbsPrefix = [], }) {
81
- return __awaiter(this, void 0, void 0, function* () {
82
- if (!(0, isPlainObject_1.isPlainObject)(value)) {
72
+ if (!(0, isPlainObject_1.isPlainObject)(value)) {
73
+ return {
74
+ ok: false,
75
+ errors: [
76
+ {
77
+ path: breadcrumbsPrefix,
78
+ message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
79
+ },
80
+ ],
81
+ };
82
+ }
83
+ const _a = value, _b = discriminant, discriminantValue = _a[_b], additionalProperties = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
84
+ if (discriminantValue == null) {
85
+ return {
86
+ ok: false,
87
+ errors: [
88
+ {
89
+ path: breadcrumbsPrefix,
90
+ message: `Missing discriminant ("${discriminant}")`,
91
+ },
92
+ ],
93
+ };
94
+ }
95
+ const transformedDiscriminantValue = transformDiscriminantValue(discriminantValue);
96
+ if (!transformedDiscriminantValue.ok) {
97
+ return {
98
+ ok: false,
99
+ errors: transformedDiscriminantValue.errors,
100
+ };
101
+ }
102
+ const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
103
+ if (additionalPropertiesSchema == null) {
104
+ if (allowUnrecognizedUnionMembers) {
83
105
  return {
84
- ok: false,
85
- errors: [
86
- {
87
- path: breadcrumbsPrefix,
88
- message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
89
- },
90
- ],
106
+ ok: true,
107
+ value: Object.assign({ [transformedDiscriminant]: transformedDiscriminantValue.value }, additionalProperties),
91
108
  };
92
109
  }
93
- const _a = value, _b = discriminant, discriminantValue = _a[_b], additionalProperties = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
94
- if (discriminantValue == null) {
110
+ else {
95
111
  return {
96
112
  ok: false,
97
113
  errors: [
98
114
  {
99
- path: breadcrumbsPrefix,
100
- message: `Missing discriminant ("${discriminant}")`,
115
+ path: [...breadcrumbsPrefix, discriminant],
116
+ message: "Unexpected discriminant value",
101
117
  },
102
118
  ],
103
119
  };
104
120
  }
105
- const transformedDiscriminantValue = yield transformDiscriminantValue(discriminantValue);
106
- if (!transformedDiscriminantValue.ok) {
107
- return {
108
- ok: false,
109
- errors: transformedDiscriminantValue.errors,
110
- };
111
- }
112
- const additionalPropertiesSchema = getAdditionalPropertiesSchema(transformedDiscriminantValue.value);
113
- if (additionalPropertiesSchema == null) {
114
- if (allowUnrecognizedUnionMembers) {
115
- return {
116
- ok: true,
117
- value: Object.assign({ [transformedDiscriminant]: transformedDiscriminantValue.value }, additionalProperties),
118
- };
119
- }
120
- else {
121
- return {
122
- ok: false,
123
- errors: [
124
- {
125
- path: [...breadcrumbsPrefix, discriminant],
126
- message: "Unexpected discriminant value",
127
- },
128
- ],
129
- };
130
- }
131
- }
132
- const transformedAdditionalProperties = yield transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
133
- if (!transformedAdditionalProperties.ok) {
134
- return transformedAdditionalProperties;
135
- }
136
- return {
137
- ok: true,
138
- value: Object.assign({ [transformedDiscriminant]: discriminantValue }, transformedAdditionalProperties.value),
139
- };
140
- });
121
+ }
122
+ const transformedAdditionalProperties = transformAdditionalProperties(additionalProperties, additionalPropertiesSchema);
123
+ if (!transformedAdditionalProperties.ok) {
124
+ return transformedAdditionalProperties;
125
+ }
126
+ return {
127
+ ok: true,
128
+ value: Object.assign({ [transformedDiscriminant]: discriminantValue }, transformedAdditionalProperties.value),
129
+ };
141
130
  }
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.maybeSkipValidation = void 0;
13
4
  function maybeSkipValidation(schema) {
@@ -15,8 +6,8 @@ function maybeSkipValidation(schema) {
15
6
  }
16
7
  exports.maybeSkipValidation = maybeSkipValidation;
17
8
  function transformAndMaybeSkipValidation(transform) {
18
- return (value, opts) => __awaiter(this, void 0, void 0, function* () {
19
- const transformed = yield transform(value, opts);
9
+ return (value, opts) => {
10
+ const transformed = transform(value, opts);
20
11
  const { skipValidation = false } = opts !== null && opts !== void 0 ? opts : {};
21
12
  if (!transformed.ok && skipValidation) {
22
13
  // eslint-disable-next-line no-console
@@ -33,5 +24,5 @@ function transformAndMaybeSkipValidation(transform) {
33
24
  else {
34
25
  return transformed;
35
26
  }
36
- });
27
+ };
37
28
  }
@@ -0,0 +1,10 @@
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 IterationStateEnum: core.serialization.Schema<serializers.IterationStateEnum.Raw, Vellum.IterationStateEnum>;
8
+ export declare namespace IterationStateEnum {
9
+ type Raw = "INITIATED" | "FULFILLED";
10
+ }
@@ -0,0 +1,31 @@
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.IterationStateEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.IterationStateEnum = core.serialization.enum_(["INITIATED", "FULFILLED"]);
@@ -4,9 +4,11 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { IterationStateEnum } from "./IterationStateEnum";
7
8
  export declare const MapNodeResultData: core.serialization.ObjectSchema<serializers.MapNodeResultData.Raw, Vellum.MapNodeResultData>;
8
9
  export declare namespace MapNodeResultData {
9
10
  interface Raw {
10
11
  execution_ids: string[];
12
+ iteration_state?: IterationStateEnum.Raw | null;
11
13
  }
12
14
  }
@@ -28,6 +28,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.MapNodeResultData = void 0;
30
30
  const core = __importStar(require("../../core"));
31
+ const IterationStateEnum_1 = require("./IterationStateEnum");
31
32
  exports.MapNodeResultData = core.serialization.object({
32
33
  executionIds: core.serialization.property("execution_ids", core.serialization.list(core.serialization.string())),
34
+ iterationState: core.serialization.property("iteration_state", IterationStateEnum_1.IterationStateEnum.optional()),
33
35
  });
@@ -25,17 +25,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
28
  Object.defineProperty(exports, "__esModule", { value: true });
38
29
  exports.MetadataFilterConfigRequest = void 0;
30
+ const serializers = __importStar(require("../index"));
39
31
  const core = __importStar(require("../../core"));
40
32
  const MetadataFilterRuleCombinator_1 = require("./MetadataFilterRuleCombinator");
41
33
  const LogicalOperator_1 = require("./LogicalOperator");
@@ -43,7 +35,7 @@ exports.MetadataFilterConfigRequest = core.serialization.object({
43
35
  combinator: MetadataFilterRuleCombinator_1.MetadataFilterRuleCombinator.optional(),
44
36
  negated: core.serialization.boolean().optional(),
45
37
  rules: core.serialization
46
- .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleRequest; })))
38
+ .list(core.serialization.lazyObject(() => serializers.MetadataFilterRuleRequest))
47
39
  .optional(),
48
40
  field: core.serialization.string().optional(),
49
41
  operator: LogicalOperator_1.LogicalOperator.optional(),
@@ -25,17 +25,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  __setModuleDefault(result, mod);
26
26
  return result;
27
27
  };
28
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
- return new (P || (P = Promise))(function (resolve, reject) {
31
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
- step((generator = generator.apply(thisArg, _arguments || [])).next());
35
- });
36
- };
37
28
  Object.defineProperty(exports, "__esModule", { value: true });
38
29
  exports.MetadataFilterRuleRequest = void 0;
30
+ const serializers = __importStar(require("../index"));
39
31
  const core = __importStar(require("../../core"));
40
32
  const MetadataFilterRuleCombinator_1 = require("./MetadataFilterRuleCombinator");
41
33
  const LogicalOperator_1 = require("./LogicalOperator");
@@ -43,7 +35,7 @@ exports.MetadataFilterRuleRequest = core.serialization.object({
43
35
  combinator: MetadataFilterRuleCombinator_1.MetadataFilterRuleCombinator.optional(),
44
36
  negated: core.serialization.boolean().optional(),
45
37
  rules: core.serialization
46
- .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleRequest; })))
38
+ .list(core.serialization.lazyObject(() => serializers.MetadataFilterRuleRequest))
47
39
  .optional(),
48
40
  field: core.serialization.string().optional(),
49
41
  operator: LogicalOperator_1.LogicalOperator.optional(),
@@ -9,6 +9,7 @@ export declare namespace PromptNodeResultData {
9
9
  interface Raw {
10
10
  output_id: string;
11
11
  array_output_id?: string | null;
12
+ execution_id?: string | null;
12
13
  text?: string | null;
13
14
  delta?: string | null;
14
15
  }
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  exports.PromptNodeResultData = core.serialization.object({
32
32
  outputId: core.serialization.property("output_id", core.serialization.string()),
33
33
  arrayOutputId: core.serialization.property("array_output_id", core.serialization.string().optional()),
34
+ executionId: core.serialization.property("execution_id", core.serialization.string().optional()),
34
35
  text: core.serialization.string().optional(),
35
36
  delta: core.serialization.string().optional(),
36
37
  });
@@ -7,7 +7,7 @@ import * as core from "../../core";
7
7
  export declare const TestSuiteRunMetricNumberOutput: core.serialization.ObjectSchema<serializers.TestSuiteRunMetricNumberOutput.Raw, Vellum.TestSuiteRunMetricNumberOutput>;
8
8
  export declare namespace TestSuiteRunMetricNumberOutput {
9
9
  interface Raw {
10
- value: number;
10
+ value?: number | null;
11
11
  name: string;
12
12
  }
13
13
  }
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.TestSuiteRunMetricNumberOutput = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.TestSuiteRunMetricNumberOutput = core.serialization.object({
32
- value: core.serialization.number(),
32
+ value: core.serialization.number().optional(),
33
33
  name: core.serialization.string(),
34
34
  });
@@ -7,7 +7,7 @@ import * as core from "../../core";
7
7
  export declare const TestSuiteRunMetricStringOutput: core.serialization.ObjectSchema<serializers.TestSuiteRunMetricStringOutput.Raw, Vellum.TestSuiteRunMetricStringOutput>;
8
8
  export declare namespace TestSuiteRunMetricStringOutput {
9
9
  interface Raw {
10
- value: string;
10
+ value?: string | null;
11
11
  name: string;
12
12
  }
13
13
  }
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.TestSuiteRunMetricStringOutput = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.TestSuiteRunMetricStringOutput = core.serialization.object({
32
- value: core.serialization.string(),
32
+ value: core.serialization.string().optional(),
33
33
  name: core.serialization.string(),
34
34
  });
@@ -7,7 +7,7 @@ import * as core from "../../core";
7
7
  export declare const TestSuiteTestCaseRejectedBulkResult: core.serialization.ObjectSchema<serializers.TestSuiteTestCaseRejectedBulkResult.Raw, Vellum.TestSuiteTestCaseRejectedBulkResult>;
8
8
  export declare namespace TestSuiteTestCaseRejectedBulkResult {
9
9
  interface Raw {
10
- id: string;
10
+ id?: string | null;
11
11
  data: Record<string, unknown>;
12
12
  }
13
13
  }
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.TestSuiteTestCaseRejectedBulkResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.TestSuiteTestCaseRejectedBulkResult = core.serialization.object({
32
- id: core.serialization.string(),
32
+ id: core.serialization.string().optional(),
33
33
  data: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
34
34
  });
@@ -118,6 +118,7 @@ export * from "./InitiatedPromptExecutionMeta";
118
118
  export * from "./InitiatedWorkflowNodeResultEvent";
119
119
  export * from "./InstructorVectorizerConfig";
120
120
  export * from "./InstructorVectorizerConfigRequest";
121
+ export * from "./IterationStateEnum";
121
122
  export * from "./JsonInputRequest";
122
123
  export * from "./JsonEnum";
123
124
  export * from "./JsonVariableValue";
@@ -134,6 +134,7 @@ __exportStar(require("./InitiatedPromptExecutionMeta"), exports);
134
134
  __exportStar(require("./InitiatedWorkflowNodeResultEvent"), exports);
135
135
  __exportStar(require("./InstructorVectorizerConfig"), exports);
136
136
  __exportStar(require("./InstructorVectorizerConfigRequest"), exports);
137
+ __exportStar(require("./IterationStateEnum"), exports);
137
138
  __exportStar(require("./JsonInputRequest"), exports);
138
139
  __exportStar(require("./JsonEnum"), exports);
139
140
  __exportStar(require("./JsonVariableValue"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.6.8",
3
+ "version": "0.6.11",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
@@ -33,5 +33,10 @@
33
33
  "@types/node": "17.0.33",
34
34
  "prettier": "2.7.1",
35
35
  "typescript": "4.6.4"
36
+ },
37
+ "browser": {
38
+ "fs": false,
39
+ "os": false,
40
+ "path": false
36
41
  }
37
42
  }