vellum-ai 0.2.0 → 0.2.1

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 (259) hide show
  1. package/Client.d.ts +7 -0
  2. package/Client.js +70 -8
  3. package/api/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
  4. package/api/client/requests/ExecuteWorkflowRequest.js +5 -0
  5. package/api/client/requests/index.d.ts +1 -0
  6. package/api/resources/deployments/client/Client.js +3 -3
  7. package/api/resources/documentIndexes/client/Client.js +2 -2
  8. package/api/resources/documents/client/Client.js +4 -4
  9. package/api/resources/modelVersions/client/Client.js +1 -1
  10. package/api/resources/registeredPrompts/client/Client.js +1 -1
  11. package/api/resources/sandboxes/client/Client.js +2 -2
  12. package/api/resources/testSuites/client/Client.js +2 -2
  13. package/api/resources/workflowDeployments/client/Client.js +1 -1
  14. package/api/types/ArrayEnum.d.ts +4 -0
  15. package/api/types/ArrayEnum.js +5 -0
  16. package/api/types/ArrayVariableValue.d.ts +7 -0
  17. package/api/types/ArrayVariableValue.js +5 -0
  18. package/api/types/ChatHistoryEnum.d.ts +4 -0
  19. package/api/types/ChatHistoryEnum.js +5 -0
  20. package/api/types/ChatHistoryVariableValue.d.ts +7 -0
  21. package/api/types/ChatHistoryVariableValue.js +5 -0
  22. package/api/types/ErrorEnum.d.ts +4 -0
  23. package/api/types/ErrorEnum.js +5 -0
  24. package/api/types/ExecuteWorkflowErrorResponse.d.ts +7 -0
  25. package/api/types/ExecuteWorkflowErrorResponse.js +5 -0
  26. package/api/types/ExecuteWorkflowResponse.d.ts +10 -0
  27. package/api/types/ExecuteWorkflowResponse.js +5 -0
  28. package/api/types/ExecuteWorkflowWorkflowResultEvent.d.ts +13 -0
  29. package/api/types/ExecuteWorkflowWorkflowResultEvent.js +5 -0
  30. package/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
  31. package/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +5 -0
  32. package/api/types/JsonEnum.d.ts +4 -0
  33. package/api/types/JsonEnum.js +5 -0
  34. package/api/types/NumberEnum.d.ts +4 -0
  35. package/api/types/NumberEnum.js +5 -0
  36. package/api/types/NumberVariableValue.d.ts +6 -0
  37. package/api/types/NumberVariableValue.js +5 -0
  38. package/api/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
  39. package/api/types/RejectedExecuteWorkflowWorkflowResultEvent.js +5 -0
  40. package/api/types/ScenarioInputTypeEnum.d.ts +2 -2
  41. package/api/types/SearchResultsEnum.d.ts +4 -0
  42. package/api/types/SearchResultsEnum.js +5 -0
  43. package/api/types/SearchResultsVariableValue.d.ts +7 -0
  44. package/api/types/SearchResultsVariableValue.js +5 -0
  45. package/api/types/VariableValue.d.ts +31 -0
  46. package/api/types/VariableValue.js +5 -0
  47. package/api/types/WorkflowOutput.d.ts +34 -0
  48. package/api/types/WorkflowOutput.js +5 -0
  49. package/api/types/WorkflowOutputArray.d.ts +13 -0
  50. package/api/types/WorkflowOutputArray.js +5 -0
  51. package/api/types/WorkflowOutputChatHistory.d.ts +13 -0
  52. package/api/types/WorkflowOutputChatHistory.js +5 -0
  53. package/api/types/WorkflowOutputError.d.ts +13 -0
  54. package/api/types/WorkflowOutputError.js +5 -0
  55. package/api/types/WorkflowOutputFunctionCall.d.ts +13 -0
  56. package/api/types/WorkflowOutputFunctionCall.js +5 -0
  57. package/api/types/WorkflowOutputImage.d.ts +13 -0
  58. package/api/types/WorkflowOutputImage.js +5 -0
  59. package/api/types/WorkflowOutputJson.d.ts +12 -0
  60. package/api/types/WorkflowOutputJson.js +5 -0
  61. package/api/types/WorkflowOutputNumber.d.ts +12 -0
  62. package/api/types/WorkflowOutputNumber.js +5 -0
  63. package/api/types/WorkflowOutputSearchResults.d.ts +13 -0
  64. package/api/types/WorkflowOutputSearchResults.js +5 -0
  65. package/api/types/WorkflowOutputString.d.ts +12 -0
  66. package/api/types/WorkflowOutputString.js +5 -0
  67. package/api/types/WorkflowResultEvent.d.ts +1 -0
  68. package/api/types/index.d.ts +26 -0
  69. package/api/types/index.js +26 -0
  70. package/dist/Client.d.ts +7 -0
  71. package/dist/Client.js +70 -8
  72. package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
  73. package/dist/api/client/requests/ExecuteWorkflowRequest.js +5 -0
  74. package/dist/api/client/requests/index.d.ts +1 -0
  75. package/dist/api/resources/deployments/client/Client.js +3 -3
  76. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  77. package/dist/api/resources/documents/client/Client.js +4 -4
  78. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  79. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  80. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  81. package/dist/api/resources/testSuites/client/Client.js +2 -2
  82. package/dist/api/resources/workflowDeployments/client/Client.js +1 -1
  83. package/dist/api/types/ArrayEnum.d.ts +4 -0
  84. package/dist/api/types/ArrayEnum.js +5 -0
  85. package/dist/api/types/ArrayVariableValue.d.ts +7 -0
  86. package/dist/api/types/ArrayVariableValue.js +5 -0
  87. package/dist/api/types/ChatHistoryEnum.d.ts +4 -0
  88. package/dist/api/types/ChatHistoryEnum.js +5 -0
  89. package/dist/api/types/ChatHistoryVariableValue.d.ts +7 -0
  90. package/dist/api/types/ChatHistoryVariableValue.js +5 -0
  91. package/dist/api/types/ErrorEnum.d.ts +4 -0
  92. package/dist/api/types/ErrorEnum.js +5 -0
  93. package/dist/api/types/ExecuteWorkflowErrorResponse.d.ts +7 -0
  94. package/dist/api/types/ExecuteWorkflowErrorResponse.js +5 -0
  95. package/dist/api/types/ExecuteWorkflowResponse.d.ts +10 -0
  96. package/dist/api/types/ExecuteWorkflowResponse.js +5 -0
  97. package/dist/api/types/ExecuteWorkflowWorkflowResultEvent.d.ts +13 -0
  98. package/dist/api/types/ExecuteWorkflowWorkflowResultEvent.js +5 -0
  99. package/dist/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
  100. package/dist/api/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +5 -0
  101. package/dist/api/types/JsonEnum.d.ts +4 -0
  102. package/dist/api/types/JsonEnum.js +5 -0
  103. package/dist/api/types/NumberEnum.d.ts +4 -0
  104. package/dist/api/types/NumberEnum.js +5 -0
  105. package/dist/api/types/NumberVariableValue.d.ts +6 -0
  106. package/dist/api/types/NumberVariableValue.js +5 -0
  107. package/dist/api/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +12 -0
  108. package/dist/api/types/RejectedExecuteWorkflowWorkflowResultEvent.js +5 -0
  109. package/dist/api/types/ScenarioInputTypeEnum.d.ts +2 -2
  110. package/dist/api/types/SearchResultsEnum.d.ts +4 -0
  111. package/dist/api/types/SearchResultsEnum.js +5 -0
  112. package/dist/api/types/SearchResultsVariableValue.d.ts +7 -0
  113. package/dist/api/types/SearchResultsVariableValue.js +5 -0
  114. package/dist/api/types/VariableValue.d.ts +31 -0
  115. package/dist/api/types/VariableValue.js +5 -0
  116. package/dist/api/types/WorkflowOutput.d.ts +34 -0
  117. package/dist/api/types/WorkflowOutput.js +5 -0
  118. package/dist/api/types/WorkflowOutputArray.d.ts +13 -0
  119. package/dist/api/types/WorkflowOutputArray.js +5 -0
  120. package/dist/api/types/WorkflowOutputChatHistory.d.ts +13 -0
  121. package/dist/api/types/WorkflowOutputChatHistory.js +5 -0
  122. package/dist/api/types/WorkflowOutputError.d.ts +13 -0
  123. package/dist/api/types/WorkflowOutputError.js +5 -0
  124. package/dist/api/types/WorkflowOutputFunctionCall.d.ts +13 -0
  125. package/dist/api/types/WorkflowOutputFunctionCall.js +5 -0
  126. package/dist/api/types/WorkflowOutputImage.d.ts +13 -0
  127. package/dist/api/types/WorkflowOutputImage.js +5 -0
  128. package/dist/api/types/WorkflowOutputJson.d.ts +12 -0
  129. package/dist/api/types/WorkflowOutputJson.js +5 -0
  130. package/dist/api/types/WorkflowOutputNumber.d.ts +12 -0
  131. package/dist/api/types/WorkflowOutputNumber.js +5 -0
  132. package/dist/api/types/WorkflowOutputSearchResults.d.ts +13 -0
  133. package/dist/api/types/WorkflowOutputSearchResults.js +5 -0
  134. package/dist/api/types/WorkflowOutputString.d.ts +12 -0
  135. package/dist/api/types/WorkflowOutputString.js +5 -0
  136. package/dist/api/types/WorkflowResultEvent.d.ts +1 -0
  137. package/dist/api/types/index.d.ts +26 -0
  138. package/dist/api/types/index.js +26 -0
  139. package/dist/serialization/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
  140. package/dist/serialization/client/requests/ExecuteWorkflowRequest.js +46 -0
  141. package/dist/serialization/client/requests/index.d.ts +1 -0
  142. package/dist/serialization/client/requests/index.js +3 -1
  143. package/dist/serialization/types/ArrayEnum.d.ts +10 -0
  144. package/dist/serialization/types/ArrayEnum.js +31 -0
  145. package/dist/serialization/types/ArrayVariableValue.d.ts +12 -0
  146. package/dist/serialization/types/ArrayVariableValue.js +42 -0
  147. package/dist/serialization/types/ChatHistoryEnum.d.ts +10 -0
  148. package/dist/serialization/types/ChatHistoryEnum.js +31 -0
  149. package/dist/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
  150. package/dist/serialization/types/ChatHistoryVariableValue.js +44 -0
  151. package/dist/serialization/types/ErrorEnum.d.ts +10 -0
  152. package/dist/serialization/types/ErrorEnum.js +31 -0
  153. package/dist/serialization/types/ExecuteWorkflowErrorResponse.d.ts +12 -0
  154. package/dist/serialization/types/ExecuteWorkflowErrorResponse.js +33 -0
  155. package/dist/serialization/types/ExecuteWorkflowResponse.d.ts +15 -0
  156. package/dist/serialization/types/ExecuteWorkflowResponse.js +45 -0
  157. package/dist/serialization/types/ExecuteWorkflowWorkflowResultEvent.d.ts +16 -0
  158. package/dist/serialization/types/ExecuteWorkflowWorkflowResultEvent.js +48 -0
  159. package/dist/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
  160. package/dist/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +44 -0
  161. package/dist/serialization/types/JsonEnum.d.ts +10 -0
  162. package/dist/serialization/types/JsonEnum.js +31 -0
  163. package/dist/serialization/types/NumberEnum.d.ts +10 -0
  164. package/dist/serialization/types/NumberEnum.js +31 -0
  165. package/dist/serialization/types/NumberVariableValue.d.ts +12 -0
  166. package/dist/serialization/types/NumberVariableValue.js +33 -0
  167. package/dist/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
  168. package/dist/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.js +44 -0
  169. package/dist/serialization/types/SearchResultsEnum.d.ts +10 -0
  170. package/dist/serialization/types/SearchResultsEnum.js +31 -0
  171. package/dist/serialization/types/SearchResultsVariableValue.d.ts +12 -0
  172. package/dist/serialization/types/SearchResultsVariableValue.js +44 -0
  173. package/dist/serialization/types/VariableValue.d.ts +34 -0
  174. package/dist/serialization/types/VariableValue.js +54 -0
  175. package/dist/serialization/types/WorkflowOutput.d.ts +37 -0
  176. package/dist/serialization/types/WorkflowOutput.js +55 -0
  177. package/dist/serialization/types/WorkflowOutputArray.d.ts +14 -0
  178. package/dist/serialization/types/WorkflowOutputArray.js +44 -0
  179. package/dist/serialization/types/WorkflowOutputChatHistory.d.ts +14 -0
  180. package/dist/serialization/types/WorkflowOutputChatHistory.js +44 -0
  181. package/dist/serialization/types/WorkflowOutputError.d.ts +14 -0
  182. package/dist/serialization/types/WorkflowOutputError.js +44 -0
  183. package/dist/serialization/types/WorkflowOutputFunctionCall.d.ts +14 -0
  184. package/dist/serialization/types/WorkflowOutputFunctionCall.js +44 -0
  185. package/dist/serialization/types/WorkflowOutputImage.d.ts +14 -0
  186. package/dist/serialization/types/WorkflowOutputImage.js +44 -0
  187. package/dist/serialization/types/WorkflowOutputJson.d.ts +14 -0
  188. package/dist/serialization/types/WorkflowOutputJson.js +35 -0
  189. package/dist/serialization/types/WorkflowOutputNumber.d.ts +14 -0
  190. package/dist/serialization/types/WorkflowOutputNumber.js +35 -0
  191. package/dist/serialization/types/WorkflowOutputSearchResults.d.ts +14 -0
  192. package/dist/serialization/types/WorkflowOutputSearchResults.js +44 -0
  193. package/dist/serialization/types/WorkflowOutputString.d.ts +14 -0
  194. package/dist/serialization/types/WorkflowOutputString.js +35 -0
  195. package/dist/serialization/types/WorkflowResultEvent.d.ts +1 -0
  196. package/dist/serialization/types/WorkflowResultEvent.js +3 -0
  197. package/dist/serialization/types/index.d.ts +26 -0
  198. package/dist/serialization/types/index.js +26 -0
  199. package/package.json +1 -1
  200. package/serialization/client/requests/ExecuteWorkflowRequest.d.ts +16 -0
  201. package/serialization/client/requests/ExecuteWorkflowRequest.js +46 -0
  202. package/serialization/client/requests/index.d.ts +1 -0
  203. package/serialization/client/requests/index.js +3 -1
  204. package/serialization/types/ArrayEnum.d.ts +10 -0
  205. package/serialization/types/ArrayEnum.js +31 -0
  206. package/serialization/types/ArrayVariableValue.d.ts +12 -0
  207. package/serialization/types/ArrayVariableValue.js +42 -0
  208. package/serialization/types/ChatHistoryEnum.d.ts +10 -0
  209. package/serialization/types/ChatHistoryEnum.js +31 -0
  210. package/serialization/types/ChatHistoryVariableValue.d.ts +12 -0
  211. package/serialization/types/ChatHistoryVariableValue.js +44 -0
  212. package/serialization/types/ErrorEnum.d.ts +10 -0
  213. package/serialization/types/ErrorEnum.js +31 -0
  214. package/serialization/types/ExecuteWorkflowErrorResponse.d.ts +12 -0
  215. package/serialization/types/ExecuteWorkflowErrorResponse.js +33 -0
  216. package/serialization/types/ExecuteWorkflowResponse.d.ts +15 -0
  217. package/serialization/types/ExecuteWorkflowResponse.js +45 -0
  218. package/serialization/types/ExecuteWorkflowWorkflowResultEvent.d.ts +16 -0
  219. package/serialization/types/ExecuteWorkflowWorkflowResultEvent.js +48 -0
  220. package/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
  221. package/serialization/types/FulfilledExecuteWorkflowWorkflowResultEvent.js +44 -0
  222. package/serialization/types/JsonEnum.d.ts +10 -0
  223. package/serialization/types/JsonEnum.js +31 -0
  224. package/serialization/types/NumberEnum.d.ts +10 -0
  225. package/serialization/types/NumberEnum.js +31 -0
  226. package/serialization/types/NumberVariableValue.d.ts +12 -0
  227. package/serialization/types/NumberVariableValue.js +33 -0
  228. package/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.d.ts +14 -0
  229. package/serialization/types/RejectedExecuteWorkflowWorkflowResultEvent.js +44 -0
  230. package/serialization/types/SearchResultsEnum.d.ts +10 -0
  231. package/serialization/types/SearchResultsEnum.js +31 -0
  232. package/serialization/types/SearchResultsVariableValue.d.ts +12 -0
  233. package/serialization/types/SearchResultsVariableValue.js +44 -0
  234. package/serialization/types/VariableValue.d.ts +34 -0
  235. package/serialization/types/VariableValue.js +54 -0
  236. package/serialization/types/WorkflowOutput.d.ts +37 -0
  237. package/serialization/types/WorkflowOutput.js +55 -0
  238. package/serialization/types/WorkflowOutputArray.d.ts +14 -0
  239. package/serialization/types/WorkflowOutputArray.js +44 -0
  240. package/serialization/types/WorkflowOutputChatHistory.d.ts +14 -0
  241. package/serialization/types/WorkflowOutputChatHistory.js +44 -0
  242. package/serialization/types/WorkflowOutputError.d.ts +14 -0
  243. package/serialization/types/WorkflowOutputError.js +44 -0
  244. package/serialization/types/WorkflowOutputFunctionCall.d.ts +14 -0
  245. package/serialization/types/WorkflowOutputFunctionCall.js +44 -0
  246. package/serialization/types/WorkflowOutputImage.d.ts +14 -0
  247. package/serialization/types/WorkflowOutputImage.js +44 -0
  248. package/serialization/types/WorkflowOutputJson.d.ts +14 -0
  249. package/serialization/types/WorkflowOutputJson.js +35 -0
  250. package/serialization/types/WorkflowOutputNumber.d.ts +14 -0
  251. package/serialization/types/WorkflowOutputNumber.js +35 -0
  252. package/serialization/types/WorkflowOutputSearchResults.d.ts +14 -0
  253. package/serialization/types/WorkflowOutputSearchResults.js +44 -0
  254. package/serialization/types/WorkflowOutputString.d.ts +14 -0
  255. package/serialization/types/WorkflowOutputString.js +35 -0
  256. package/serialization/types/WorkflowResultEvent.d.ts +1 -0
  257. package/serialization/types/WorkflowResultEvent.js +3 -0
  258. package/serialization/types/index.d.ts +26 -0
  259. package/serialization/types/index.js +26 -0
@@ -0,0 +1,45 @@
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
+ 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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.ExecuteWorkflowResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ExecuteWorkflowResponse = core.serialization.object({
41
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
42
+ runId: core.serialization.property("run_id", core.serialization.string().optional()),
43
+ externalId: core.serialization.property("external_id", core.serialization.string().optional()),
44
+ data: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ExecuteWorkflowWorkflowResultEvent; })),
45
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const ExecuteWorkflowWorkflowResultEvent: core.serialization.Schema<serializers.ExecuteWorkflowWorkflowResultEvent.Raw, Vellum.ExecuteWorkflowWorkflowResultEvent>;
8
+ export declare namespace ExecuteWorkflowWorkflowResultEvent {
9
+ type Raw = ExecuteWorkflowWorkflowResultEvent.Fulfilled | ExecuteWorkflowWorkflowResultEvent.Rejected;
10
+ interface Fulfilled extends serializers.FulfilledExecuteWorkflowWorkflowResultEvent.Raw {
11
+ state: "FULFILLED";
12
+ }
13
+ interface Rejected extends serializers.RejectedExecuteWorkflowWorkflowResultEvent.Raw {
14
+ state: "REJECTED";
15
+ }
16
+ }
@@ -0,0 +1,48 @@
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
+ 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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.ExecuteWorkflowWorkflowResultEvent = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ExecuteWorkflowWorkflowResultEvent = core.serialization
41
+ .union("state", {
42
+ FULFILLED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FulfilledExecuteWorkflowWorkflowResultEvent; })),
43
+ REJECTED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).RejectedExecuteWorkflowWorkflowResultEvent; })),
44
+ })
45
+ .transform({
46
+ transform: (value) => value,
47
+ untransform: (value) => value,
48
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const FulfilledExecuteWorkflowWorkflowResultEvent: core.serialization.ObjectSchema<serializers.FulfilledExecuteWorkflowWorkflowResultEvent.Raw, Vellum.FulfilledExecuteWorkflowWorkflowResultEvent>;
8
+ export declare namespace FulfilledExecuteWorkflowWorkflowResultEvent {
9
+ interface Raw {
10
+ id: string;
11
+ ts: string;
12
+ outputs: serializers.WorkflowOutput.Raw[];
13
+ }
14
+ }
@@ -0,0 +1,44 @@
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
+ 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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.FulfilledExecuteWorkflowWorkflowResultEvent = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.FulfilledExecuteWorkflowWorkflowResultEvent = core.serialization.object({
41
+ id: core.serialization.string(),
42
+ ts: core.serialization.date(),
43
+ outputs: core.serialization.list(core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowOutput; }))),
44
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const JsonEnum: core.serialization.Schema<serializers.JsonEnum.Raw, Vellum.JsonEnum>;
8
+ export declare namespace JsonEnum {
9
+ type Raw = "JSON";
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.JsonEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.JsonEnum = core.serialization.stringLiteral("JSON");
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const NumberEnum: core.serialization.Schema<serializers.NumberEnum.Raw, Vellum.NumberEnum>;
8
+ export declare namespace NumberEnum {
9
+ type Raw = "NUMBER";
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.NumberEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.NumberEnum = core.serialization.stringLiteral("NUMBER");
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const NumberVariableValue: core.serialization.ObjectSchema<serializers.NumberVariableValue.Raw, Vellum.NumberVariableValue>;
8
+ export declare namespace NumberVariableValue {
9
+ interface Raw {
10
+ value?: number | 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.NumberVariableValue = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.NumberVariableValue = core.serialization.object({
32
+ value: core.serialization.number().optional(),
33
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const RejectedExecuteWorkflowWorkflowResultEvent: core.serialization.ObjectSchema<serializers.RejectedExecuteWorkflowWorkflowResultEvent.Raw, Vellum.RejectedExecuteWorkflowWorkflowResultEvent>;
8
+ export declare namespace RejectedExecuteWorkflowWorkflowResultEvent {
9
+ interface Raw {
10
+ id: string;
11
+ ts: string;
12
+ error: serializers.WorkflowEventError.Raw;
13
+ }
14
+ }
@@ -0,0 +1,44 @@
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
+ 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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.RejectedExecuteWorkflowWorkflowResultEvent = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.RejectedExecuteWorkflowWorkflowResultEvent = core.serialization.object({
41
+ id: core.serialization.string(),
42
+ ts: core.serialization.date(),
43
+ error: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).WorkflowEventError; })),
44
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const SearchResultsEnum: core.serialization.Schema<serializers.SearchResultsEnum.Raw, Vellum.SearchResultsEnum>;
8
+ export declare namespace SearchResultsEnum {
9
+ type Raw = "SEARCH_RESULTS";
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.SearchResultsEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SearchResultsEnum = core.serialization.stringLiteral("SEARCH_RESULTS");
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const SearchResultsVariableValue: core.serialization.ObjectSchema<serializers.SearchResultsVariableValue.Raw, Vellum.SearchResultsVariableValue>;
8
+ export declare namespace SearchResultsVariableValue {
9
+ interface Raw {
10
+ value?: serializers.SearchResult.Raw[] | null;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
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
+ 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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.SearchResultsVariableValue = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.SearchResultsVariableValue = core.serialization.object({
41
+ value: core.serialization
42
+ .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResult; })))
43
+ .optional(),
44
+ });
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const VariableValue: core.serialization.Schema<serializers.VariableValue.Raw, Vellum.VariableValue>;
8
+ export declare namespace VariableValue {
9
+ type Raw = VariableValue.String | VariableValue.Number | VariableValue.Json | VariableValue.ChatHistory | VariableValue.SearchResults | VariableValue.Error | VariableValue.Array | VariableValue.FunctionCall;
10
+ interface String extends serializers.StringVariableValue.Raw {
11
+ type: "STRING";
12
+ }
13
+ interface Number extends serializers.NumberVariableValue.Raw {
14
+ type: "NUMBER";
15
+ }
16
+ interface Json extends serializers.JsonVariableValue.Raw {
17
+ type: "JSON";
18
+ }
19
+ interface ChatHistory extends serializers.ChatHistoryVariableValue.Raw {
20
+ type: "CHAT_HISTORY";
21
+ }
22
+ interface SearchResults extends serializers.SearchResultsVariableValue.Raw {
23
+ type: "SEARCH_RESULTS";
24
+ }
25
+ interface Error extends serializers.ErrorVariableValue.Raw {
26
+ type: "ERROR";
27
+ }
28
+ interface Array extends serializers.ArrayVariableValue.Raw {
29
+ type: "ARRAY";
30
+ }
31
+ interface FunctionCall extends serializers.FunctionCallVariableValue.Raw {
32
+ type: "FUNCTION_CALL";
33
+ }
34
+ }
@@ -0,0 +1,54 @@
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
+ 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
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.VariableValue = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.VariableValue = core.serialization
41
+ .union("type", {
42
+ STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).StringVariableValue; })),
43
+ NUMBER: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).NumberVariableValue; })),
44
+ JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonVariableValue; })),
45
+ CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatHistoryVariableValue; })),
46
+ SEARCH_RESULTS: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).SearchResultsVariableValue; })),
47
+ ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ErrorVariableValue; })),
48
+ ARRAY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ArrayVariableValue; })),
49
+ FUNCTION_CALL: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FunctionCallVariableValue; })),
50
+ })
51
+ .transform({
52
+ transform: (value) => value,
53
+ untransform: (value) => value,
54
+ });
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const WorkflowOutput: core.serialization.Schema<serializers.WorkflowOutput.Raw, Vellum.WorkflowOutput>;
8
+ export declare namespace WorkflowOutput {
9
+ type Raw = WorkflowOutput.String | WorkflowOutput.Number | WorkflowOutput.Json | WorkflowOutput.ChatHistory | WorkflowOutput.SearchResults | WorkflowOutput.Error | WorkflowOutput.Array | WorkflowOutput.FunctionCall | WorkflowOutput.Image;
10
+ interface String extends serializers.WorkflowOutputString.Raw {
11
+ type: "STRING";
12
+ }
13
+ interface Number extends serializers.WorkflowOutputNumber.Raw {
14
+ type: "NUMBER";
15
+ }
16
+ interface Json extends serializers.WorkflowOutputJson.Raw {
17
+ type: "JSON";
18
+ }
19
+ interface ChatHistory extends serializers.WorkflowOutputChatHistory.Raw {
20
+ type: "CHAT_HISTORY";
21
+ }
22
+ interface SearchResults extends serializers.WorkflowOutputSearchResults.Raw {
23
+ type: "SEARCH_RESULTS";
24
+ }
25
+ interface Error extends serializers.WorkflowOutputError.Raw {
26
+ type: "ERROR";
27
+ }
28
+ interface Array extends serializers.WorkflowOutputArray.Raw {
29
+ type: "ARRAY";
30
+ }
31
+ interface FunctionCall extends serializers.WorkflowOutputFunctionCall.Raw {
32
+ type: "FUNCTION_CALL";
33
+ }
34
+ interface Image extends serializers.WorkflowOutputImage.Raw {
35
+ type: "IMAGE";
36
+ }
37
+ }