vellum-ai 0.1.4 → 0.1.6

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 (215) hide show
  1. package/Client.d.ts +16 -0
  2. package/Client.js +137 -12
  3. package/api/errors/ForbiddenError.d.ts +1 -2
  4. package/api/resources/deployments/client/Client.d.ts +1 -0
  5. package/api/resources/deployments/client/Client.js +50 -1
  6. package/api/resources/deployments/client/index.d.ts +1 -1
  7. package/api/resources/deployments/client/index.js +15 -0
  8. package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +11 -0
  9. package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +5 -0
  10. package/api/resources/deployments/client/requests/index.d.ts +1 -0
  11. package/api/resources/deployments/client/requests/index.js +2 -0
  12. package/api/resources/documentIndexes/client/Client.js +2 -2
  13. package/api/resources/documents/client/Client.js +4 -4
  14. package/api/resources/index.d.ts +1 -0
  15. package/api/resources/index.js +1 -0
  16. package/api/resources/modelVersions/client/Client.d.ts +1 -1
  17. package/api/resources/modelVersions/client/Client.js +2 -2
  18. package/api/resources/registeredPrompts/client/Client.js +1 -1
  19. package/api/resources/sandboxes/client/Client.js +2 -2
  20. package/api/resources/testSuites/client/Client.js +2 -2
  21. package/api/types/ChatHistoryInputRequest.d.ts +9 -0
  22. package/api/types/ChatHistoryInputRequest.js +5 -0
  23. package/api/types/DeploymentProviderPayloadResponse.d.ts +6 -0
  24. package/api/types/DeploymentProviderPayloadResponse.js +5 -0
  25. package/api/types/DeploymentRead.d.ts +1 -0
  26. package/api/types/ErrorExecutePromptResponse.d.ts +8 -0
  27. package/api/types/ErrorExecutePromptResponse.js +5 -0
  28. package/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
  29. package/api/types/ExecutePromptApiErrorResponse.js +5 -0
  30. package/api/types/ExecutePromptRequest.d.ts +14 -0
  31. package/api/types/ExecutePromptRequest.js +5 -0
  32. package/api/types/ExecutePromptResponse.d.ts +16 -0
  33. package/api/types/ExecutePromptResponse.js +5 -0
  34. package/api/types/ExecutePromptStreamingResponse.d.ts +19 -0
  35. package/api/types/ExecutePromptStreamingResponse.js +5 -0
  36. package/api/types/FulfilledExecutePromptStreamingResponse.d.ts +7 -0
  37. package/api/types/FulfilledExecutePromptStreamingResponse.js +5 -0
  38. package/api/types/InitiatedExecutePromptResponse.d.ts +8 -0
  39. package/api/types/InitiatedExecutePromptResponse.js +5 -0
  40. package/api/types/InitiatedExecutePromptStreamingResponse.d.ts +7 -0
  41. package/api/types/InitiatedExecutePromptStreamingResponse.js +5 -0
  42. package/api/types/JsonExecutePromptResponse.d.ts +7 -0
  43. package/api/types/JsonExecutePromptResponse.js +5 -0
  44. package/api/types/JsonInputRequest.d.ts +8 -0
  45. package/api/types/JsonInputRequest.js +5 -0
  46. package/api/types/PromptDeploymentInputRequest.d.ts +16 -0
  47. package/api/types/PromptDeploymentInputRequest.js +5 -0
  48. package/api/types/RejectedExecutePromptResponse.d.ts +9 -0
  49. package/api/types/RejectedExecutePromptResponse.js +5 -0
  50. package/api/types/RejectedExecutePromptStreamingResponse.d.ts +7 -0
  51. package/api/types/RejectedExecutePromptStreamingResponse.js +5 -0
  52. package/api/types/StreamingExecutePromptStreamingResponse.d.ts +7 -0
  53. package/api/types/StreamingExecutePromptStreamingResponse.js +5 -0
  54. package/api/types/StringExecutePromptResponse.d.ts +7 -0
  55. package/api/types/StringExecutePromptResponse.js +5 -0
  56. package/api/types/StringInputRequest.d.ts +8 -0
  57. package/api/types/StringInputRequest.js +5 -0
  58. package/api/types/index.d.ts +18 -0
  59. package/api/types/index.js +18 -0
  60. package/dist/Client.d.ts +16 -0
  61. package/dist/Client.js +137 -12
  62. package/dist/api/errors/ForbiddenError.d.ts +1 -2
  63. package/dist/api/resources/deployments/client/Client.d.ts +1 -0
  64. package/dist/api/resources/deployments/client/Client.js +50 -1
  65. package/dist/api/resources/deployments/client/index.d.ts +1 -1
  66. package/dist/api/resources/deployments/client/index.js +15 -0
  67. package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +11 -0
  68. package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +5 -0
  69. package/dist/api/resources/deployments/client/requests/index.d.ts +1 -0
  70. package/dist/api/resources/deployments/client/requests/index.js +2 -0
  71. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  72. package/dist/api/resources/documents/client/Client.js +4 -4
  73. package/dist/api/resources/index.d.ts +1 -0
  74. package/dist/api/resources/index.js +1 -0
  75. package/dist/api/resources/modelVersions/client/Client.d.ts +1 -1
  76. package/dist/api/resources/modelVersions/client/Client.js +2 -2
  77. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  78. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  79. package/dist/api/resources/testSuites/client/Client.js +2 -2
  80. package/dist/api/types/ChatHistoryInputRequest.d.ts +9 -0
  81. package/dist/api/types/ChatHistoryInputRequest.js +5 -0
  82. package/dist/api/types/DeploymentProviderPayloadResponse.d.ts +6 -0
  83. package/dist/api/types/DeploymentProviderPayloadResponse.js +5 -0
  84. package/dist/api/types/DeploymentRead.d.ts +1 -0
  85. package/dist/api/types/ErrorExecutePromptResponse.d.ts +8 -0
  86. package/dist/api/types/ErrorExecutePromptResponse.js +5 -0
  87. package/dist/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
  88. package/dist/api/types/ExecutePromptApiErrorResponse.js +5 -0
  89. package/dist/api/types/ExecutePromptRequest.d.ts +14 -0
  90. package/dist/api/types/ExecutePromptRequest.js +5 -0
  91. package/dist/api/types/ExecutePromptResponse.d.ts +16 -0
  92. package/dist/api/types/ExecutePromptResponse.js +5 -0
  93. package/dist/api/types/ExecutePromptStreamingResponse.d.ts +19 -0
  94. package/dist/api/types/ExecutePromptStreamingResponse.js +5 -0
  95. package/dist/api/types/FulfilledExecutePromptStreamingResponse.d.ts +7 -0
  96. package/dist/api/types/FulfilledExecutePromptStreamingResponse.js +5 -0
  97. package/dist/api/types/InitiatedExecutePromptResponse.d.ts +8 -0
  98. package/dist/api/types/InitiatedExecutePromptResponse.js +5 -0
  99. package/dist/api/types/InitiatedExecutePromptStreamingResponse.d.ts +7 -0
  100. package/dist/api/types/InitiatedExecutePromptStreamingResponse.js +5 -0
  101. package/dist/api/types/JsonExecutePromptResponse.d.ts +7 -0
  102. package/dist/api/types/JsonExecutePromptResponse.js +5 -0
  103. package/dist/api/types/JsonInputRequest.d.ts +8 -0
  104. package/dist/api/types/JsonInputRequest.js +5 -0
  105. package/dist/api/types/PromptDeploymentInputRequest.d.ts +16 -0
  106. package/dist/api/types/PromptDeploymentInputRequest.js +5 -0
  107. package/dist/api/types/RejectedExecutePromptResponse.d.ts +9 -0
  108. package/dist/api/types/RejectedExecutePromptResponse.js +5 -0
  109. package/dist/api/types/RejectedExecutePromptStreamingResponse.d.ts +7 -0
  110. package/dist/api/types/RejectedExecutePromptStreamingResponse.js +5 -0
  111. package/dist/api/types/StreamingExecutePromptStreamingResponse.d.ts +7 -0
  112. package/dist/api/types/StreamingExecutePromptStreamingResponse.js +5 -0
  113. package/dist/api/types/StringExecutePromptResponse.d.ts +7 -0
  114. package/dist/api/types/StringExecutePromptResponse.js +5 -0
  115. package/dist/api/types/StringInputRequest.d.ts +8 -0
  116. package/dist/api/types/StringInputRequest.js +5 -0
  117. package/dist/api/types/index.d.ts +18 -0
  118. package/dist/api/types/index.js +18 -0
  119. package/dist/serialization/resources/deployments/client/index.d.ts +1 -0
  120. package/dist/serialization/resources/deployments/client/index.js +17 -0
  121. package/dist/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +14 -0
  122. package/dist/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +44 -0
  123. package/dist/serialization/resources/deployments/client/requests/index.d.ts +1 -0
  124. package/dist/serialization/resources/deployments/client/requests/index.js +5 -0
  125. package/dist/serialization/resources/deployments/index.d.ts +1 -0
  126. package/dist/serialization/resources/deployments/index.js +17 -0
  127. package/dist/serialization/resources/index.d.ts +2 -0
  128. package/dist/serialization/resources/index.js +3 -1
  129. package/dist/serialization/types/ChatHistoryInputRequest.d.ts +13 -0
  130. package/dist/serialization/types/ChatHistoryInputRequest.js +43 -0
  131. package/dist/serialization/types/DeploymentProviderPayloadResponse.d.ts +12 -0
  132. package/dist/serialization/types/DeploymentProviderPayloadResponse.js +33 -0
  133. package/dist/serialization/types/ErrorExecutePromptResponse.d.ts +13 -0
  134. package/dist/serialization/types/ErrorExecutePromptResponse.js +43 -0
  135. package/dist/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
  136. package/dist/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
  137. package/dist/serialization/types/ExecutePromptRequest.d.ts +16 -0
  138. package/dist/serialization/types/ExecutePromptRequest.js +46 -0
  139. package/dist/serialization/types/ExecutePromptResponse.d.ts +19 -0
  140. package/dist/serialization/types/ExecutePromptResponse.js +49 -0
  141. package/dist/serialization/types/ExecutePromptStreamingResponse.d.ts +22 -0
  142. package/dist/serialization/types/ExecutePromptStreamingResponse.js +50 -0
  143. package/dist/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +12 -0
  144. package/dist/serialization/types/FulfilledExecutePromptStreamingResponse.js +42 -0
  145. package/dist/serialization/types/InitiatedExecutePromptResponse.d.ts +13 -0
  146. package/dist/serialization/types/InitiatedExecutePromptResponse.js +43 -0
  147. package/dist/serialization/types/InitiatedExecutePromptStreamingResponse.d.ts +12 -0
  148. package/dist/serialization/types/InitiatedExecutePromptStreamingResponse.js +42 -0
  149. package/dist/serialization/types/JsonExecutePromptResponse.d.ts +13 -0
  150. package/dist/serialization/types/JsonExecutePromptResponse.js +34 -0
  151. package/dist/serialization/types/JsonInputRequest.d.ts +13 -0
  152. package/dist/serialization/types/JsonInputRequest.js +34 -0
  153. package/dist/serialization/types/PromptDeploymentInputRequest.d.ts +19 -0
  154. package/dist/serialization/types/PromptDeploymentInputRequest.js +49 -0
  155. package/dist/serialization/types/RejectedExecutePromptResponse.d.ts +14 -0
  156. package/dist/serialization/types/RejectedExecutePromptResponse.js +44 -0
  157. package/dist/serialization/types/RejectedExecutePromptStreamingResponse.d.ts +12 -0
  158. package/dist/serialization/types/RejectedExecutePromptStreamingResponse.js +42 -0
  159. package/dist/serialization/types/StreamingExecutePromptStreamingResponse.d.ts +12 -0
  160. package/dist/serialization/types/StreamingExecutePromptStreamingResponse.js +42 -0
  161. package/dist/serialization/types/StringExecutePromptResponse.d.ts +13 -0
  162. package/dist/serialization/types/StringExecutePromptResponse.js +34 -0
  163. package/dist/serialization/types/StringInputRequest.d.ts +13 -0
  164. package/dist/serialization/types/StringInputRequest.js +34 -0
  165. package/dist/serialization/types/index.d.ts +18 -0
  166. package/dist/serialization/types/index.js +18 -0
  167. package/package.json +1 -1
  168. package/serialization/resources/deployments/client/index.d.ts +1 -0
  169. package/serialization/resources/deployments/client/index.js +17 -0
  170. package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +14 -0
  171. package/serialization/resources/deployments/client/requests/DeploymentProviderPayloadRequest.js +44 -0
  172. package/serialization/resources/deployments/client/requests/index.d.ts +1 -0
  173. package/serialization/resources/deployments/client/requests/index.js +5 -0
  174. package/serialization/resources/deployments/index.d.ts +1 -0
  175. package/serialization/resources/deployments/index.js +17 -0
  176. package/serialization/resources/index.d.ts +2 -0
  177. package/serialization/resources/index.js +3 -1
  178. package/serialization/types/ChatHistoryInputRequest.d.ts +13 -0
  179. package/serialization/types/ChatHistoryInputRequest.js +43 -0
  180. package/serialization/types/DeploymentProviderPayloadResponse.d.ts +12 -0
  181. package/serialization/types/DeploymentProviderPayloadResponse.js +33 -0
  182. package/serialization/types/ErrorExecutePromptResponse.d.ts +13 -0
  183. package/serialization/types/ErrorExecutePromptResponse.js +43 -0
  184. package/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
  185. package/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
  186. package/serialization/types/ExecutePromptRequest.d.ts +16 -0
  187. package/serialization/types/ExecutePromptRequest.js +46 -0
  188. package/serialization/types/ExecutePromptResponse.d.ts +19 -0
  189. package/serialization/types/ExecutePromptResponse.js +49 -0
  190. package/serialization/types/ExecutePromptStreamingResponse.d.ts +22 -0
  191. package/serialization/types/ExecutePromptStreamingResponse.js +50 -0
  192. package/serialization/types/FulfilledExecutePromptStreamingResponse.d.ts +12 -0
  193. package/serialization/types/FulfilledExecutePromptStreamingResponse.js +42 -0
  194. package/serialization/types/InitiatedExecutePromptResponse.d.ts +13 -0
  195. package/serialization/types/InitiatedExecutePromptResponse.js +43 -0
  196. package/serialization/types/InitiatedExecutePromptStreamingResponse.d.ts +12 -0
  197. package/serialization/types/InitiatedExecutePromptStreamingResponse.js +42 -0
  198. package/serialization/types/JsonExecutePromptResponse.d.ts +13 -0
  199. package/serialization/types/JsonExecutePromptResponse.js +34 -0
  200. package/serialization/types/JsonInputRequest.d.ts +13 -0
  201. package/serialization/types/JsonInputRequest.js +34 -0
  202. package/serialization/types/PromptDeploymentInputRequest.d.ts +19 -0
  203. package/serialization/types/PromptDeploymentInputRequest.js +49 -0
  204. package/serialization/types/RejectedExecutePromptResponse.d.ts +14 -0
  205. package/serialization/types/RejectedExecutePromptResponse.js +44 -0
  206. package/serialization/types/RejectedExecutePromptStreamingResponse.d.ts +12 -0
  207. package/serialization/types/RejectedExecutePromptStreamingResponse.js +42 -0
  208. package/serialization/types/StreamingExecutePromptStreamingResponse.d.ts +12 -0
  209. package/serialization/types/StreamingExecutePromptStreamingResponse.js +42 -0
  210. package/serialization/types/StringExecutePromptResponse.d.ts +13 -0
  211. package/serialization/types/StringExecutePromptResponse.js +34 -0
  212. package/serialization/types/StringInputRequest.d.ts +13 -0
  213. package/serialization/types/StringInputRequest.js +34 -0
  214. package/serialization/types/index.d.ts +18 -0
  215. package/serialization/types/index.js +18 -0
@@ -0,0 +1,22 @@
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 ExecutePromptStreamingResponse: core.serialization.Schema<serializers.ExecutePromptStreamingResponse.Raw, Vellum.ExecutePromptStreamingResponse>;
8
+ export declare namespace ExecutePromptStreamingResponse {
9
+ type Raw = ExecutePromptStreamingResponse.Initiated | ExecutePromptStreamingResponse.Streaming | ExecutePromptStreamingResponse.Fulfilled | ExecutePromptStreamingResponse.Rejected;
10
+ interface Initiated extends serializers.InitiatedExecutePromptStreamingResponse.Raw {
11
+ state: "INITIATED";
12
+ }
13
+ interface Streaming extends serializers.StreamingExecutePromptStreamingResponse.Raw {
14
+ state: "STREAMING";
15
+ }
16
+ interface Fulfilled extends serializers.FulfilledExecutePromptStreamingResponse.Raw {
17
+ state: "FULFILLED";
18
+ }
19
+ interface Rejected extends serializers.RejectedExecutePromptStreamingResponse.Raw {
20
+ state: "REJECTED";
21
+ }
22
+ }
@@ -0,0 +1,50 @@
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.ExecutePromptStreamingResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ExecutePromptStreamingResponse = core.serialization
41
+ .union("state", {
42
+ INITIATED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).InitiatedExecutePromptStreamingResponse; })),
43
+ STREAMING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).StreamingExecutePromptStreamingResponse; })),
44
+ FULFILLED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).FulfilledExecutePromptStreamingResponse; })),
45
+ REJECTED: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).RejectedExecutePromptStreamingResponse; })),
46
+ })
47
+ .transform({
48
+ transform: (value) => value,
49
+ untransform: (value) => value,
50
+ });
@@ -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 FulfilledExecutePromptStreamingResponse: core.serialization.ObjectSchema<serializers.FulfilledExecutePromptStreamingResponse.Raw, Vellum.FulfilledExecutePromptStreamingResponse>;
8
+ export declare namespace FulfilledExecutePromptStreamingResponse {
9
+ interface Raw {
10
+ data: serializers.ExecutePromptResponse.Raw;
11
+ }
12
+ }
@@ -0,0 +1,42 @@
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.FulfilledExecutePromptStreamingResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.FulfilledExecutePromptStreamingResponse = core.serialization.object({
41
+ data: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ExecutePromptResponse; })),
42
+ });
@@ -0,0 +1,13 @@
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 InitiatedExecutePromptResponse: core.serialization.ObjectSchema<serializers.InitiatedExecutePromptResponse.Raw, Vellum.InitiatedExecutePromptResponse>;
8
+ export declare namespace InitiatedExecutePromptResponse {
9
+ interface Raw {
10
+ type: serializers.VellumVariableType.Raw;
11
+ execution_id: string;
12
+ }
13
+ }
@@ -0,0 +1,43 @@
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.InitiatedExecutePromptResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.InitiatedExecutePromptResponse = core.serialization.object({
41
+ type: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType; })),
42
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
43
+ });
@@ -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 InitiatedExecutePromptStreamingResponse: core.serialization.ObjectSchema<serializers.InitiatedExecutePromptStreamingResponse.Raw, Vellum.InitiatedExecutePromptStreamingResponse>;
8
+ export declare namespace InitiatedExecutePromptStreamingResponse {
9
+ interface Raw {
10
+ data: serializers.InitiatedExecutePromptResponse.Raw;
11
+ }
12
+ }
@@ -0,0 +1,42 @@
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.InitiatedExecutePromptStreamingResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.InitiatedExecutePromptStreamingResponse = core.serialization.object({
41
+ data: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).InitiatedExecutePromptResponse; })),
42
+ });
@@ -0,0 +1,13 @@
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 JsonExecutePromptResponse: core.serialization.ObjectSchema<serializers.JsonExecutePromptResponse.Raw, Vellum.JsonExecutePromptResponse>;
8
+ export declare namespace JsonExecutePromptResponse {
9
+ interface Raw {
10
+ execution_id: string;
11
+ value: Record<string, unknown>;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.JsonExecutePromptResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.JsonExecutePromptResponse = core.serialization.object({
32
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
33
+ value: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
34
+ });
@@ -0,0 +1,13 @@
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 JsonInputRequest: core.serialization.ObjectSchema<serializers.JsonInputRequest.Raw, Vellum.JsonInputRequest>;
8
+ export declare namespace JsonInputRequest {
9
+ interface Raw {
10
+ name: string;
11
+ value: Record<string, unknown>;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.JsonInputRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.JsonInputRequest = core.serialization.object({
32
+ name: core.serialization.string(),
33
+ value: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
34
+ });
@@ -0,0 +1,19 @@
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 PromptDeploymentInputRequest: core.serialization.Schema<serializers.PromptDeploymentInputRequest.Raw, Vellum.PromptDeploymentInputRequest>;
8
+ export declare namespace PromptDeploymentInputRequest {
9
+ type Raw = PromptDeploymentInputRequest.String | PromptDeploymentInputRequest.Json | PromptDeploymentInputRequest.ChatHistory;
10
+ interface String extends serializers.StringInputRequest.Raw {
11
+ type: "STRING";
12
+ }
13
+ interface Json extends serializers.JsonInputRequest.Raw {
14
+ type: "JSON";
15
+ }
16
+ interface ChatHistory extends serializers.ChatHistoryInputRequest.Raw {
17
+ type: "CHAT_HISTORY";
18
+ }
19
+ }
@@ -0,0 +1,49 @@
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.PromptDeploymentInputRequest = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.PromptDeploymentInputRequest = 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("..")))).StringInputRequest; })),
43
+ JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonInputRequest; })),
44
+ CHAT_HISTORY: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatHistoryInputRequest; })),
45
+ })
46
+ .transform({
47
+ transform: (value) => value,
48
+ untransform: (value) => value,
49
+ });
@@ -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 RejectedExecutePromptResponse: core.serialization.ObjectSchema<serializers.RejectedExecutePromptResponse.Raw, Vellum.RejectedExecutePromptResponse>;
8
+ export declare namespace RejectedExecutePromptResponse {
9
+ interface Raw {
10
+ type: string;
11
+ value: serializers.VellumError.Raw;
12
+ execution_id: string;
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.RejectedExecutePromptResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.RejectedExecutePromptResponse = core.serialization.object({
41
+ type: core.serialization.string(),
42
+ value: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumError; })),
43
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
44
+ });
@@ -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 RejectedExecutePromptStreamingResponse: core.serialization.ObjectSchema<serializers.RejectedExecutePromptStreamingResponse.Raw, Vellum.RejectedExecutePromptStreamingResponse>;
8
+ export declare namespace RejectedExecutePromptStreamingResponse {
9
+ interface Raw {
10
+ data: serializers.RejectedExecutePromptResponse.Raw;
11
+ }
12
+ }
@@ -0,0 +1,42 @@
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.RejectedExecutePromptStreamingResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.RejectedExecutePromptStreamingResponse = core.serialization.object({
41
+ data: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).RejectedExecutePromptResponse; })),
42
+ });
@@ -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 StreamingExecutePromptStreamingResponse: core.serialization.ObjectSchema<serializers.StreamingExecutePromptStreamingResponse.Raw, Vellum.StreamingExecutePromptStreamingResponse>;
8
+ export declare namespace StreamingExecutePromptStreamingResponse {
9
+ interface Raw {
10
+ data: serializers.ExecutePromptResponse.Raw;
11
+ }
12
+ }
@@ -0,0 +1,42 @@
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.StreamingExecutePromptStreamingResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.StreamingExecutePromptStreamingResponse = core.serialization.object({
41
+ data: core.serialization.lazy(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ExecutePromptResponse; })),
42
+ });
@@ -0,0 +1,13 @@
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 StringExecutePromptResponse: core.serialization.ObjectSchema<serializers.StringExecutePromptResponse.Raw, Vellum.StringExecutePromptResponse>;
8
+ export declare namespace StringExecutePromptResponse {
9
+ interface Raw {
10
+ execution_id: string;
11
+ value: string;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.StringExecutePromptResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.StringExecutePromptResponse = core.serialization.object({
32
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
33
+ value: core.serialization.string(),
34
+ });