vellum-ai 0.1.4 → 0.1.5

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 (115) hide show
  1. package/Client.d.ts +8 -0
  2. package/Client.js +72 -12
  3. package/api/client/requests/ExecutePromptRequest.d.ts +14 -0
  4. package/api/client/requests/ExecutePromptRequest.js +5 -0
  5. package/api/client/requests/index.d.ts +1 -0
  6. package/api/errors/ForbiddenError.d.ts +1 -2
  7. package/api/resources/deployments/client/Client.js +1 -1
  8. package/api/resources/documentIndexes/client/Client.js +2 -2
  9. package/api/resources/documents/client/Client.js +4 -4
  10. package/api/resources/modelVersions/client/Client.js +1 -1
  11. package/api/resources/registeredPrompts/client/Client.js +1 -1
  12. package/api/resources/sandboxes/client/Client.js +2 -2
  13. package/api/resources/testSuites/client/Client.js +2 -2
  14. package/api/types/ChatHistoryInputRequest.d.ts +9 -0
  15. package/api/types/ChatHistoryInputRequest.js +5 -0
  16. package/api/types/ErrorExecutePromptResponse.d.ts +8 -0
  17. package/api/types/ErrorExecutePromptResponse.js +5 -0
  18. package/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
  19. package/api/types/ExecutePromptApiErrorResponse.js +5 -0
  20. package/api/types/ExecutePromptResponse.d.ts +16 -0
  21. package/api/types/ExecutePromptResponse.js +5 -0
  22. package/api/types/JsonExecutePromptResponse.d.ts +7 -0
  23. package/api/types/JsonExecutePromptResponse.js +5 -0
  24. package/api/types/JsonInputRequest.d.ts +8 -0
  25. package/api/types/JsonInputRequest.js +5 -0
  26. package/api/types/PromptDeploymentInputRequest.d.ts +16 -0
  27. package/api/types/PromptDeploymentInputRequest.js +5 -0
  28. package/api/types/StringExecutePromptResponse.d.ts +7 -0
  29. package/api/types/StringExecutePromptResponse.js +5 -0
  30. package/api/types/StringInputRequest.d.ts +8 -0
  31. package/api/types/StringInputRequest.js +5 -0
  32. package/api/types/index.d.ts +9 -0
  33. package/api/types/index.js +9 -0
  34. package/dist/Client.d.ts +8 -0
  35. package/dist/Client.js +72 -12
  36. package/dist/api/client/requests/ExecutePromptRequest.d.ts +14 -0
  37. package/dist/api/client/requests/ExecutePromptRequest.js +5 -0
  38. package/dist/api/client/requests/index.d.ts +1 -0
  39. package/dist/api/errors/ForbiddenError.d.ts +1 -2
  40. package/dist/api/resources/deployments/client/Client.js +1 -1
  41. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  42. package/dist/api/resources/documents/client/Client.js +4 -4
  43. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  44. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  45. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  46. package/dist/api/resources/testSuites/client/Client.js +2 -2
  47. package/dist/api/types/ChatHistoryInputRequest.d.ts +9 -0
  48. package/dist/api/types/ChatHistoryInputRequest.js +5 -0
  49. package/dist/api/types/ErrorExecutePromptResponse.d.ts +8 -0
  50. package/dist/api/types/ErrorExecutePromptResponse.js +5 -0
  51. package/dist/api/types/ExecutePromptApiErrorResponse.d.ts +7 -0
  52. package/dist/api/types/ExecutePromptApiErrorResponse.js +5 -0
  53. package/dist/api/types/ExecutePromptResponse.d.ts +16 -0
  54. package/dist/api/types/ExecutePromptResponse.js +5 -0
  55. package/dist/api/types/JsonExecutePromptResponse.d.ts +7 -0
  56. package/dist/api/types/JsonExecutePromptResponse.js +5 -0
  57. package/dist/api/types/JsonInputRequest.d.ts +8 -0
  58. package/dist/api/types/JsonInputRequest.js +5 -0
  59. package/dist/api/types/PromptDeploymentInputRequest.d.ts +16 -0
  60. package/dist/api/types/PromptDeploymentInputRequest.js +5 -0
  61. package/dist/api/types/StringExecutePromptResponse.d.ts +7 -0
  62. package/dist/api/types/StringExecutePromptResponse.js +5 -0
  63. package/dist/api/types/StringInputRequest.d.ts +8 -0
  64. package/dist/api/types/StringInputRequest.js +5 -0
  65. package/dist/api/types/index.d.ts +9 -0
  66. package/dist/api/types/index.js +9 -0
  67. package/dist/serialization/client/requests/ExecutePromptRequest.d.ts +16 -0
  68. package/dist/serialization/client/requests/ExecutePromptRequest.js +46 -0
  69. package/dist/serialization/client/requests/index.d.ts +1 -0
  70. package/dist/serialization/client/requests/index.js +3 -1
  71. package/dist/serialization/types/ChatHistoryInputRequest.d.ts +13 -0
  72. package/dist/serialization/types/ChatHistoryInputRequest.js +43 -0
  73. package/dist/serialization/types/ErrorExecutePromptResponse.d.ts +13 -0
  74. package/dist/serialization/types/ErrorExecutePromptResponse.js +43 -0
  75. package/dist/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
  76. package/dist/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
  77. package/dist/serialization/types/ExecutePromptResponse.d.ts +19 -0
  78. package/dist/serialization/types/ExecutePromptResponse.js +49 -0
  79. package/dist/serialization/types/JsonExecutePromptResponse.d.ts +13 -0
  80. package/dist/serialization/types/JsonExecutePromptResponse.js +34 -0
  81. package/dist/serialization/types/JsonInputRequest.d.ts +13 -0
  82. package/dist/serialization/types/JsonInputRequest.js +34 -0
  83. package/dist/serialization/types/PromptDeploymentInputRequest.d.ts +19 -0
  84. package/dist/serialization/types/PromptDeploymentInputRequest.js +49 -0
  85. package/dist/serialization/types/StringExecutePromptResponse.d.ts +13 -0
  86. package/dist/serialization/types/StringExecutePromptResponse.js +34 -0
  87. package/dist/serialization/types/StringInputRequest.d.ts +13 -0
  88. package/dist/serialization/types/StringInputRequest.js +34 -0
  89. package/dist/serialization/types/index.d.ts +9 -0
  90. package/dist/serialization/types/index.js +9 -0
  91. package/package.json +1 -1
  92. package/serialization/client/requests/ExecutePromptRequest.d.ts +16 -0
  93. package/serialization/client/requests/ExecutePromptRequest.js +46 -0
  94. package/serialization/client/requests/index.d.ts +1 -0
  95. package/serialization/client/requests/index.js +3 -1
  96. package/serialization/types/ChatHistoryInputRequest.d.ts +13 -0
  97. package/serialization/types/ChatHistoryInputRequest.js +43 -0
  98. package/serialization/types/ErrorExecutePromptResponse.d.ts +13 -0
  99. package/serialization/types/ErrorExecutePromptResponse.js +43 -0
  100. package/serialization/types/ExecutePromptApiErrorResponse.d.ts +12 -0
  101. package/serialization/types/ExecutePromptApiErrorResponse.js +33 -0
  102. package/serialization/types/ExecutePromptResponse.d.ts +19 -0
  103. package/serialization/types/ExecutePromptResponse.js +49 -0
  104. package/serialization/types/JsonExecutePromptResponse.d.ts +13 -0
  105. package/serialization/types/JsonExecutePromptResponse.js +34 -0
  106. package/serialization/types/JsonInputRequest.d.ts +13 -0
  107. package/serialization/types/JsonInputRequest.js +34 -0
  108. package/serialization/types/PromptDeploymentInputRequest.d.ts +19 -0
  109. package/serialization/types/PromptDeploymentInputRequest.js +49 -0
  110. package/serialization/types/StringExecutePromptResponse.d.ts +13 -0
  111. package/serialization/types/StringExecutePromptResponse.js +34 -0
  112. package/serialization/types/StringInputRequest.d.ts +13 -0
  113. package/serialization/types/StringInputRequest.js +34 -0
  114. package/serialization/types/index.d.ts +9 -0
  115. package/serialization/types/index.js +9 -0
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubmitWorkflowExecutionActualsRequest = exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = void 0;
3
+ exports.SubmitWorkflowExecutionActualsRequest = exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = exports.ExecuteWorkflowStreamRequest = exports.ExecutePromptRequest = void 0;
4
+ var ExecutePromptRequest_1 = require("./ExecutePromptRequest");
5
+ Object.defineProperty(exports, "ExecutePromptRequest", { enumerable: true, get: function () { return ExecutePromptRequest_1.ExecutePromptRequest; } });
4
6
  var ExecuteWorkflowStreamRequest_1 = require("./ExecuteWorkflowStreamRequest");
5
7
  Object.defineProperty(exports, "ExecuteWorkflowStreamRequest", { enumerable: true, get: function () { return ExecuteWorkflowStreamRequest_1.ExecuteWorkflowStreamRequest; } });
6
8
  var GenerateBodyRequest_1 = require("./GenerateBodyRequest");
@@ -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 ChatHistoryInputRequest: core.serialization.ObjectSchema<serializers.ChatHistoryInputRequest.Raw, Vellum.ChatHistoryInputRequest>;
8
+ export declare namespace ChatHistoryInputRequest {
9
+ interface Raw {
10
+ name: string;
11
+ value: serializers.ChatMessageRequest.Raw[];
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.ChatHistoryInputRequest = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ChatHistoryInputRequest = core.serialization.object({
41
+ name: core.serialization.string(),
42
+ value: core.serialization.list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest; }))),
43
+ });
@@ -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 ErrorExecutePromptResponse: core.serialization.ObjectSchema<serializers.ErrorExecutePromptResponse.Raw, Vellum.ErrorExecutePromptResponse>;
8
+ export declare namespace ErrorExecutePromptResponse {
9
+ interface Raw {
10
+ value: serializers.VellumError.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.ErrorExecutePromptResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ErrorExecutePromptResponse = core.serialization.object({
41
+ value: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).VellumError; })),
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 ExecutePromptApiErrorResponse: core.serialization.ObjectSchema<serializers.ExecutePromptApiErrorResponse.Raw, Vellum.ExecutePromptApiErrorResponse>;
8
+ export declare namespace ExecutePromptApiErrorResponse {
9
+ interface Raw {
10
+ detail: string;
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.ExecutePromptApiErrorResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ExecutePromptApiErrorResponse = core.serialization.object({
32
+ detail: core.serialization.string(),
33
+ });
@@ -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 ExecutePromptResponse: core.serialization.Schema<serializers.ExecutePromptResponse.Raw, Vellum.ExecutePromptResponse>;
8
+ export declare namespace ExecutePromptResponse {
9
+ type Raw = ExecutePromptResponse.Error | ExecutePromptResponse.Json | ExecutePromptResponse.String;
10
+ interface Error extends serializers.ErrorExecutePromptResponse.Raw {
11
+ type: "ERROR";
12
+ }
13
+ interface Json extends serializers.JsonExecutePromptResponse.Raw {
14
+ type: "JSON";
15
+ }
16
+ interface String extends serializers.StringExecutePromptResponse.Raw {
17
+ type: "STRING";
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.ExecutePromptResponse = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.ExecutePromptResponse = core.serialization
41
+ .union("type", {
42
+ ERROR: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).ErrorExecutePromptResponse; })),
43
+ JSON: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).JsonExecutePromptResponse; })),
44
+ STRING: core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).StringExecutePromptResponse; })),
45
+ })
46
+ .transform({
47
+ transform: (value) => value,
48
+ untransform: (value) => value,
49
+ });
@@ -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
+ value: Record<string, unknown>;
11
+ execution_id: 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.JsonExecutePromptResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.JsonExecutePromptResponse = core.serialization.object({
32
+ value: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
33
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
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,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
+ value: string;
11
+ execution_id: 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
+ value: core.serialization.string(),
33
+ executionId: core.serialization.property("execution_id", core.serialization.string()),
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 StringInputRequest: core.serialization.ObjectSchema<serializers.StringInputRequest.Raw, Vellum.StringInputRequest>;
8
+ export declare namespace StringInputRequest {
9
+ interface Raw {
10
+ name: 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.StringInputRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.StringInputRequest = core.serialization.object({
32
+ name: core.serialization.string(),
33
+ value: core.serialization.string(),
34
+ });
@@ -1,6 +1,7 @@
1
1
  export * from "./ApiNodeResult";
2
2
  export * from "./ApiNodeResultData";
3
3
  export * from "./BlockTypeEnum";
4
+ export * from "./ChatHistoryInputRequest";
4
5
  export * from "./ChatMessage";
5
6
  export * from "./ChatMessageRequest";
6
7
  export * from "./ChatMessageRole";
@@ -15,8 +16,11 @@ export * from "./DocumentRead";
15
16
  export * from "./DocumentStatus";
16
17
  export * from "./EnrichedNormalizedCompletion";
17
18
  export * from "./EnvironmentEnum";
19
+ export * from "./ErrorExecutePromptResponse";
18
20
  export * from "./EvaluationParams";
19
21
  export * from "./EvaluationParamsRequest";
22
+ export * from "./ExecutePromptApiErrorResponse";
23
+ export * from "./ExecutePromptResponse";
20
24
  export * from "./ExecuteWorkflowStreamErrorResponse";
21
25
  export * from "./FinishReasonEnum";
22
26
  export * from "./GenerateErrorResponse";
@@ -30,6 +34,8 @@ export * from "./GenerateStreamResponse";
30
34
  export * from "./GenerateStreamResult";
31
35
  export * from "./GenerateStreamResultData";
32
36
  export * from "./IndexingStateEnum";
37
+ export * from "./JsonExecutePromptResponse";
38
+ export * from "./JsonInputRequest";
33
39
  export * from "./LogicalOperator";
34
40
  export * from "./LogprobsEnum";
35
41
  export * from "./MetadataFilterConfigRequest";
@@ -53,6 +59,7 @@ export * from "./NormalizedTokenLogProbs";
53
59
  export * from "./PaginatedSlimDocumentList";
54
60
  export * from "./ProcessingFailureReasonEnum";
55
61
  export * from "./ProcessingStateEnum";
62
+ export * from "./PromptDeploymentInputRequest";
56
63
  export * from "./PromptNodeResult";
57
64
  export * from "./PromptNodeResultData";
58
65
  export * from "./PromptTemplateBlock";
@@ -91,6 +98,8 @@ export * from "./SearchResultMergingRequest";
91
98
  export * from "./SearchResultRequest";
92
99
  export * from "./SearchWeightsRequest";
93
100
  export * from "./SlimDocument";
101
+ export * from "./StringExecutePromptResponse";
102
+ export * from "./StringInputRequest";
94
103
  export * from "./SubmitCompletionActualRequest";
95
104
  export * from "./SubmitCompletionActualsErrorResponse";
96
105
  export * from "./SubmitWorkflowExecutionActualRequest";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ApiNodeResult"), exports);
18
18
  __exportStar(require("./ApiNodeResultData"), exports);
19
19
  __exportStar(require("./BlockTypeEnum"), exports);
20
+ __exportStar(require("./ChatHistoryInputRequest"), exports);
20
21
  __exportStar(require("./ChatMessage"), exports);
21
22
  __exportStar(require("./ChatMessageRequest"), exports);
22
23
  __exportStar(require("./ChatMessageRole"), exports);
@@ -31,8 +32,11 @@ __exportStar(require("./DocumentRead"), exports);
31
32
  __exportStar(require("./DocumentStatus"), exports);
32
33
  __exportStar(require("./EnrichedNormalizedCompletion"), exports);
33
34
  __exportStar(require("./EnvironmentEnum"), exports);
35
+ __exportStar(require("./ErrorExecutePromptResponse"), exports);
34
36
  __exportStar(require("./EvaluationParams"), exports);
35
37
  __exportStar(require("./EvaluationParamsRequest"), exports);
38
+ __exportStar(require("./ExecutePromptApiErrorResponse"), exports);
39
+ __exportStar(require("./ExecutePromptResponse"), exports);
36
40
  __exportStar(require("./ExecuteWorkflowStreamErrorResponse"), exports);
37
41
  __exportStar(require("./FinishReasonEnum"), exports);
38
42
  __exportStar(require("./GenerateErrorResponse"), exports);
@@ -46,6 +50,8 @@ __exportStar(require("./GenerateStreamResponse"), exports);
46
50
  __exportStar(require("./GenerateStreamResult"), exports);
47
51
  __exportStar(require("./GenerateStreamResultData"), exports);
48
52
  __exportStar(require("./IndexingStateEnum"), exports);
53
+ __exportStar(require("./JsonExecutePromptResponse"), exports);
54
+ __exportStar(require("./JsonInputRequest"), exports);
49
55
  __exportStar(require("./LogicalOperator"), exports);
50
56
  __exportStar(require("./LogprobsEnum"), exports);
51
57
  __exportStar(require("./MetadataFilterConfigRequest"), exports);
@@ -69,6 +75,7 @@ __exportStar(require("./NormalizedTokenLogProbs"), exports);
69
75
  __exportStar(require("./PaginatedSlimDocumentList"), exports);
70
76
  __exportStar(require("./ProcessingFailureReasonEnum"), exports);
71
77
  __exportStar(require("./ProcessingStateEnum"), exports);
78
+ __exportStar(require("./PromptDeploymentInputRequest"), exports);
72
79
  __exportStar(require("./PromptNodeResult"), exports);
73
80
  __exportStar(require("./PromptNodeResultData"), exports);
74
81
  __exportStar(require("./PromptTemplateBlock"), exports);
@@ -107,6 +114,8 @@ __exportStar(require("./SearchResultMergingRequest"), exports);
107
114
  __exportStar(require("./SearchResultRequest"), exports);
108
115
  __exportStar(require("./SearchWeightsRequest"), exports);
109
116
  __exportStar(require("./SlimDocument"), exports);
117
+ __exportStar(require("./StringExecutePromptResponse"), exports);
118
+ __exportStar(require("./StringInputRequest"), exports);
110
119
  __exportStar(require("./SubmitCompletionActualRequest"), exports);
111
120
  __exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
112
121
  __exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.1.4",
3
+ "version": "v0.1.5",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",
@@ -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 ExecutePromptRequest: core.serialization.Schema<serializers.ExecutePromptRequest.Raw, Vellum.ExecutePromptRequest>;
8
+ export declare namespace ExecutePromptRequest {
9
+ interface Raw {
10
+ inputs: serializers.PromptDeploymentInputRequest.Raw[];
11
+ prompt_deployment_id?: string | null;
12
+ prompt_deployment_name?: string | null;
13
+ release_tag?: string | null;
14
+ external_id?: string | null;
15
+ }
16
+ }