vellum-ai 0.14.41 → 0.14.43

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 (168) hide show
  1. package/Client.d.ts +1 -1
  2. package/Client.js +12 -12
  3. package/api/resources/adHoc/client/Client.d.ts +1 -1
  4. package/api/resources/adHoc/client/Client.js +3 -3
  5. package/api/resources/containerImages/client/Client.d.ts +1 -1
  6. package/api/resources/containerImages/client/Client.js +5 -5
  7. package/api/resources/deployments/client/Client.d.ts +1 -1
  8. package/api/resources/deployments/client/Client.js +8 -8
  9. package/api/resources/documentIndexes/client/Client.d.ts +1 -1
  10. package/api/resources/documentIndexes/client/Client.js +9 -9
  11. package/api/resources/documents/client/Client.d.ts +4 -4
  12. package/api/resources/documents/client/Client.js +9 -9
  13. package/api/resources/folderEntities/client/Client.d.ts +1 -1
  14. package/api/resources/folderEntities/client/Client.js +3 -3
  15. package/api/resources/metricDefinitions/client/Client.d.ts +1 -1
  16. package/api/resources/metricDefinitions/client/Client.js +3 -3
  17. package/api/resources/mlModels/client/Client.d.ts +1 -1
  18. package/api/resources/mlModels/client/Client.js +2 -2
  19. package/api/resources/organizations/client/Client.d.ts +1 -1
  20. package/api/resources/organizations/client/Client.js +2 -2
  21. package/api/resources/prompts/client/Client.d.ts +28 -1
  22. package/api/resources/prompts/client/Client.js +79 -2
  23. package/api/resources/prompts/client/requests/PromptPush.d.ts +27 -0
  24. package/api/resources/prompts/client/requests/index.d.ts +1 -0
  25. package/api/resources/releaseReviews/client/Client.d.ts +1 -1
  26. package/api/resources/releaseReviews/client/Client.js +3 -3
  27. package/api/resources/sandboxes/client/Client.d.ts +1 -1
  28. package/api/resources/sandboxes/client/Client.js +4 -4
  29. package/api/resources/testSuiteRuns/client/Client.d.ts +1 -1
  30. package/api/resources/testSuiteRuns/client/Client.js +4 -4
  31. package/api/resources/testSuites/client/Client.d.ts +1 -1
  32. package/api/resources/testSuites/client/Client.js +5 -5
  33. package/api/resources/workflowDeployments/client/Client.d.ts +1 -1
  34. package/api/resources/workflowDeployments/client/Client.js +9 -9
  35. package/api/resources/workflowSandboxes/client/Client.d.ts +1 -1
  36. package/api/resources/workflowSandboxes/client/Client.js +3 -3
  37. package/api/resources/workflows/client/Client.d.ts +1 -1
  38. package/api/resources/workflows/client/Client.js +3 -3
  39. package/api/resources/workspaceSecrets/client/Client.d.ts +1 -1
  40. package/api/resources/workspaceSecrets/client/Client.js +3 -3
  41. package/api/resources/workspaces/client/Client.d.ts +1 -1
  42. package/api/resources/workspaces/client/Client.js +2 -2
  43. package/api/types/DeploymentRead.d.ts +2 -2
  44. package/api/types/ExecuteApiResponse.d.ts +2 -1
  45. package/api/types/ExecuteApiResponseJson.d.ts +4 -0
  46. package/api/types/PromptPushResponse.d.ts +7 -0
  47. package/api/types/PromptSettings.d.ts +1 -0
  48. package/api/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
  49. package/api/types/index.d.ts +2 -2
  50. package/api/types/index.js +2 -2
  51. package/dist/Client.d.ts +1 -1
  52. package/dist/Client.js +12 -12
  53. package/dist/api/resources/adHoc/client/Client.d.ts +1 -1
  54. package/dist/api/resources/adHoc/client/Client.js +3 -3
  55. package/dist/api/resources/containerImages/client/Client.d.ts +1 -1
  56. package/dist/api/resources/containerImages/client/Client.js +5 -5
  57. package/dist/api/resources/deployments/client/Client.d.ts +1 -1
  58. package/dist/api/resources/deployments/client/Client.js +8 -8
  59. package/dist/api/resources/documentIndexes/client/Client.d.ts +1 -1
  60. package/dist/api/resources/documentIndexes/client/Client.js +9 -9
  61. package/dist/api/resources/documents/client/Client.d.ts +4 -4
  62. package/dist/api/resources/documents/client/Client.js +9 -9
  63. package/dist/api/resources/folderEntities/client/Client.d.ts +1 -1
  64. package/dist/api/resources/folderEntities/client/Client.js +3 -3
  65. package/dist/api/resources/metricDefinitions/client/Client.d.ts +1 -1
  66. package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
  67. package/dist/api/resources/mlModels/client/Client.d.ts +1 -1
  68. package/dist/api/resources/mlModels/client/Client.js +2 -2
  69. package/dist/api/resources/organizations/client/Client.d.ts +1 -1
  70. package/dist/api/resources/organizations/client/Client.js +2 -2
  71. package/dist/api/resources/prompts/client/Client.d.ts +28 -1
  72. package/dist/api/resources/prompts/client/Client.js +79 -2
  73. package/dist/api/resources/prompts/client/requests/PromptPush.d.ts +27 -0
  74. package/dist/api/resources/prompts/client/requests/index.d.ts +1 -0
  75. package/dist/api/resources/releaseReviews/client/Client.d.ts +1 -1
  76. package/dist/api/resources/releaseReviews/client/Client.js +3 -3
  77. package/dist/api/resources/sandboxes/client/Client.d.ts +1 -1
  78. package/dist/api/resources/sandboxes/client/Client.js +4 -4
  79. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +1 -1
  80. package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
  81. package/dist/api/resources/testSuites/client/Client.d.ts +1 -1
  82. package/dist/api/resources/testSuites/client/Client.js +5 -5
  83. package/dist/api/resources/workflowDeployments/client/Client.d.ts +1 -1
  84. package/dist/api/resources/workflowDeployments/client/Client.js +9 -9
  85. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +1 -1
  86. package/dist/api/resources/workflowSandboxes/client/Client.js +3 -3
  87. package/dist/api/resources/workflows/client/Client.d.ts +1 -1
  88. package/dist/api/resources/workflows/client/Client.js +3 -3
  89. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +1 -1
  90. package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
  91. package/dist/api/resources/workspaces/client/Client.d.ts +1 -1
  92. package/dist/api/resources/workspaces/client/Client.js +2 -2
  93. package/dist/api/types/DeploymentRead.d.ts +2 -2
  94. package/dist/api/types/ExecuteApiResponse.d.ts +2 -1
  95. package/dist/api/types/ExecuteApiResponseJson.d.ts +4 -0
  96. package/dist/api/types/ExecuteApiResponseJson.js +5 -0
  97. package/dist/api/types/PromptPushResponse.d.ts +7 -0
  98. package/dist/api/types/PromptPushResponse.js +5 -0
  99. package/dist/api/types/PromptSettings.d.ts +1 -0
  100. package/dist/api/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
  101. package/dist/api/types/index.d.ts +2 -2
  102. package/dist/api/types/index.js +2 -2
  103. package/dist/serialization/resources/index.d.ts +2 -0
  104. package/dist/serialization/resources/index.js +3 -1
  105. package/dist/serialization/resources/prompts/client/index.d.ts +1 -0
  106. package/dist/serialization/resources/prompts/client/index.js +17 -0
  107. package/dist/serialization/resources/prompts/client/requests/PromptPush.d.ts +15 -0
  108. package/dist/serialization/resources/prompts/client/requests/PromptPush.js +46 -0
  109. package/dist/serialization/resources/prompts/client/requests/index.d.ts +1 -0
  110. package/dist/serialization/resources/prompts/client/requests/index.js +5 -0
  111. package/dist/serialization/resources/prompts/index.d.ts +1 -0
  112. package/dist/serialization/resources/prompts/index.js +17 -0
  113. package/dist/serialization/types/DeploymentRead.d.ts +1 -1
  114. package/dist/serialization/types/DeploymentRead.js +1 -1
  115. package/dist/serialization/types/ExecuteApiResponse.d.ts +2 -1
  116. package/dist/serialization/types/ExecuteApiResponse.js +2 -1
  117. package/dist/serialization/types/ExecuteApiResponseJson.d.ts +10 -0
  118. package/dist/serialization/types/{NodeEventDisplayContext.js → ExecuteApiResponseJson.js} +5 -8
  119. package/dist/serialization/types/PromptPushResponse.d.ts +13 -0
  120. package/dist/serialization/types/{WorkflowEventDisplayContext.js → PromptPushResponse.js} +4 -6
  121. package/dist/serialization/types/PromptSettings.d.ts +1 -0
  122. package/dist/serialization/types/PromptSettings.js +1 -0
  123. package/dist/serialization/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
  124. package/dist/serialization/types/WorkflowExecutionInitiatedBody.js +0 -2
  125. package/dist/serialization/types/index.d.ts +2 -2
  126. package/dist/serialization/types/index.js +2 -2
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +1 -1
  130. package/reference.md +84 -3
  131. package/serialization/resources/index.d.ts +2 -0
  132. package/serialization/resources/index.js +3 -1
  133. package/serialization/resources/prompts/client/index.d.ts +1 -0
  134. package/serialization/resources/prompts/client/index.js +17 -0
  135. package/serialization/resources/prompts/client/requests/PromptPush.d.ts +15 -0
  136. package/serialization/resources/prompts/client/requests/PromptPush.js +46 -0
  137. package/serialization/resources/prompts/client/requests/index.d.ts +1 -0
  138. package/serialization/resources/prompts/client/requests/index.js +5 -0
  139. package/serialization/resources/prompts/index.d.ts +1 -0
  140. package/serialization/resources/prompts/index.js +17 -0
  141. package/serialization/types/DeploymentRead.d.ts +1 -1
  142. package/serialization/types/DeploymentRead.js +1 -1
  143. package/serialization/types/ExecuteApiResponse.d.ts +2 -1
  144. package/serialization/types/ExecuteApiResponse.js +2 -1
  145. package/serialization/types/ExecuteApiResponseJson.d.ts +10 -0
  146. package/serialization/types/{NodeEventDisplayContext.js → ExecuteApiResponseJson.js} +5 -8
  147. package/serialization/types/PromptPushResponse.d.ts +13 -0
  148. package/serialization/types/{WorkflowEventDisplayContext.js → PromptPushResponse.js} +4 -6
  149. package/serialization/types/PromptSettings.d.ts +1 -0
  150. package/serialization/types/PromptSettings.js +1 -0
  151. package/serialization/types/WorkflowExecutionInitiatedBody.d.ts +0 -1
  152. package/serialization/types/WorkflowExecutionInitiatedBody.js +0 -2
  153. package/serialization/types/index.d.ts +2 -2
  154. package/serialization/types/index.js +2 -2
  155. package/version.d.ts +1 -1
  156. package/version.js +1 -1
  157. package/api/types/NodeEventDisplayContext.d.ts +0 -10
  158. package/api/types/WorkflowEventDisplayContext.d.ts +0 -9
  159. package/dist/api/types/NodeEventDisplayContext.d.ts +0 -10
  160. package/dist/api/types/WorkflowEventDisplayContext.d.ts +0 -9
  161. package/dist/serialization/types/NodeEventDisplayContext.d.ts +0 -15
  162. package/dist/serialization/types/WorkflowEventDisplayContext.d.ts +0 -14
  163. package/serialization/types/NodeEventDisplayContext.d.ts +0 -15
  164. package/serialization/types/WorkflowEventDisplayContext.d.ts +0 -14
  165. /package/api/{types/NodeEventDisplayContext.js → resources/prompts/client/requests/PromptPush.js} +0 -0
  166. /package/api/types/{WorkflowEventDisplayContext.js → ExecuteApiResponseJson.js} +0 -0
  167. /package/{dist/api/types/NodeEventDisplayContext.js → api/types/PromptPushResponse.js} +0 -0
  168. /package/dist/api/{types/WorkflowEventDisplayContext.js → resources/prompts/client/requests/PromptPush.js} +0 -0
@@ -0,0 +1,46 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.PromptPush = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ const PromptExecConfig_1 = require("../../../../types/PromptExecConfig");
42
+ exports.PromptPush = core.serialization.object({
43
+ execConfig: core.serialization.property("exec_config", PromptExecConfig_1.PromptExecConfig),
44
+ promptVariantId: core.serialization.property("prompt_variant_id", core.serialization.string().optional()),
45
+ promptSandboxId: core.serialization.property("prompt_sandbox_id", core.serialization.string().optional()),
46
+ });
@@ -0,0 +1 @@
1
+ export { PromptPush } from "./PromptPush";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PromptPush = void 0;
4
+ var PromptPush_1 = require("./PromptPush");
5
+ Object.defineProperty(exports, "PromptPush", { enumerable: true, get: function () { return PromptPush_1.PromptPush; } });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -19,7 +19,7 @@ export declare namespace DeploymentRead {
19
19
  last_deployed_on: string;
20
20
  input_variables: VellumVariable.Raw[];
21
21
  description?: string | null;
22
- active_model_version_ids: string[];
22
+ active_model_version_ids?: string[] | null;
23
23
  last_deployed_history_item_id: string;
24
24
  }
25
25
  }
@@ -51,6 +51,6 @@ exports.DeploymentRead = core.serialization.object({
51
51
  lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.date()),
52
52
  inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
53
53
  description: core.serialization.string().optional(),
54
- activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string())),
54
+ activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string()).optional()),
55
55
  lastDeployedHistoryItemId: core.serialization.property("last_deployed_history_item_id", core.serialization.string()),
56
56
  });
@@ -4,12 +4,13 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ExecuteApiResponseJson } from "./ExecuteApiResponseJson";
7
8
  export declare const ExecuteApiResponse: core.serialization.ObjectSchema<serializers.ExecuteApiResponse.Raw, Vellum.ExecuteApiResponse>;
8
9
  export declare namespace ExecuteApiResponse {
9
10
  interface Raw {
10
11
  status_code: number;
11
12
  text: string;
12
- json?: Record<string, unknown> | null;
13
+ json: ExecuteApiResponseJson.Raw;
13
14
  headers: Record<string, string>;
14
15
  }
15
16
  }
@@ -38,9 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ExecuteApiResponse = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ExecuteApiResponseJson_1 = require("./ExecuteApiResponseJson");
41
42
  exports.ExecuteApiResponse = core.serialization.object({
42
43
  statusCode: core.serialization.property("status_code", core.serialization.number()),
43
44
  text: core.serialization.string(),
44
- json: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
45
+ json: ExecuteApiResponseJson_1.ExecuteApiResponseJson,
45
46
  headers: core.serialization.record(core.serialization.string(), core.serialization.string()),
46
47
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ExecuteApiResponseJson: core.serialization.Schema<serializers.ExecuteApiResponseJson.Raw, Vellum.ExecuteApiResponseJson>;
8
+ export declare namespace ExecuteApiResponseJson {
9
+ type Raw = Record<string, unknown> | unknown[];
10
+ }
@@ -36,12 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.NodeEventDisplayContext = void 0;
40
- const serializers = __importStar(require("../index"));
39
+ exports.ExecuteApiResponseJson = void 0;
41
40
  const core = __importStar(require("../../core"));
42
- exports.NodeEventDisplayContext = core.serialization.object({
43
- inputDisplay: core.serialization.property("input_display", core.serialization.record(core.serialization.string(), core.serialization.string())),
44
- outputDisplay: core.serialization.property("output_display", core.serialization.record(core.serialization.string(), core.serialization.string())),
45
- portDisplay: core.serialization.property("port_display", core.serialization.record(core.serialization.string(), core.serialization.string())),
46
- subworkflowDisplay: core.serialization.property("subworkflow_display", core.serialization.lazyObject(() => serializers.WorkflowEventDisplayContext).optional()),
47
- });
41
+ exports.ExecuteApiResponseJson = core.serialization.undiscriminatedUnion([
42
+ core.serialization.record(core.serialization.string(), core.serialization.unknown()),
43
+ core.serialization.list(core.serialization.unknown()),
44
+ ]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const PromptPushResponse: core.serialization.ObjectSchema<serializers.PromptPushResponse.Raw, Vellum.PromptPushResponse>;
8
+ export declare namespace PromptPushResponse {
9
+ interface Raw {
10
+ prompt_variant_id: string;
11
+ prompt_sandbox_id: string;
12
+ }
13
+ }
@@ -36,11 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.WorkflowEventDisplayContext = void 0;
40
- const serializers = __importStar(require("../index"));
39
+ exports.PromptPushResponse = void 0;
41
40
  const core = __importStar(require("../../core"));
42
- exports.WorkflowEventDisplayContext = core.serialization.object({
43
- nodeDisplays: core.serialization.property("node_displays", core.serialization.record(core.serialization.string(), core.serialization.lazyObject(() => serializers.NodeEventDisplayContext))),
44
- workflowInputs: core.serialization.property("workflow_inputs", core.serialization.record(core.serialization.string(), core.serialization.string())),
45
- workflowOutputs: core.serialization.property("workflow_outputs", core.serialization.record(core.serialization.string(), core.serialization.string())),
41
+ exports.PromptPushResponse = core.serialization.object({
42
+ promptVariantId: core.serialization.property("prompt_variant_id", core.serialization.string()),
43
+ promptSandboxId: core.serialization.property("prompt_sandbox_id", core.serialization.string()),
46
44
  });
@@ -8,5 +8,6 @@ export declare const PromptSettings: core.serialization.ObjectSchema<serializers
8
8
  export declare namespace PromptSettings {
9
9
  interface Raw {
10
10
  timeout?: number | null;
11
+ stream_enabled?: boolean | null;
11
12
  }
12
13
  }
@@ -40,4 +40,5 @@ exports.PromptSettings = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.PromptSettings = core.serialization.object({
42
42
  timeout: core.serialization.number().optional(),
43
+ streamEnabled: core.serialization.property("stream_enabled", core.serialization.boolean().optional()),
43
44
  });
@@ -9,7 +9,6 @@ export declare const WorkflowExecutionInitiatedBody: core.serialization.ObjectSc
9
9
  export declare namespace WorkflowExecutionInitiatedBody {
10
10
  interface Raw {
11
11
  workflow_definition: VellumCodeResourceDefinition.Raw;
12
- display_context?: serializers.WorkflowEventDisplayContext.Raw | null;
13
12
  inputs: Record<string, unknown>;
14
13
  }
15
14
  }
@@ -37,11 +37,9 @@ var __importStar = (this && this.__importStar) || (function () {
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.WorkflowExecutionInitiatedBody = void 0;
40
- const serializers = __importStar(require("../index"));
41
40
  const core = __importStar(require("../../core"));
42
41
  const VellumCodeResourceDefinition_1 = require("./VellumCodeResourceDefinition");
43
42
  exports.WorkflowExecutionInitiatedBody = core.serialization.object({
44
43
  workflowDefinition: core.serialization.property("workflow_definition", VellumCodeResourceDefinition_1.VellumCodeResourceDefinition),
45
- displayContext: core.serialization.property("display_context", core.serialization.lazyObject(() => serializers.WorkflowEventDisplayContext).optional()),
46
44
  inputs: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
47
45
  });
@@ -96,6 +96,7 @@ export * from "./EphemeralPromptCacheConfigTypeEnum";
96
96
  export * from "./ErrorInput";
97
97
  export * from "./ErrorVellumValue";
98
98
  export * from "./ErrorVellumValueRequest";
99
+ export * from "./ExecuteApiResponseJson";
99
100
  export * from "./ExecuteApiResponse";
100
101
  export * from "./ExecutePromptEvent";
101
102
  export * from "./ExecutePromptResponse";
@@ -221,7 +222,6 @@ export * from "./NamedTestCaseStringVariableValueRequest";
221
222
  export * from "./NamedTestCaseVariableValue";
222
223
  export * from "./NamedTestCaseVariableValueRequest";
223
224
  export * from "./NewMemberJoinBehaviorEnum";
224
- export * from "./NodeEventDisplayContext";
225
225
  export * from "./NodeExecutionFulfilledBody";
226
226
  export * from "./NodeExecutionFulfilledEvent";
227
227
  export * from "./NodeExecutionInitiatedBody";
@@ -302,6 +302,7 @@ export * from "./PromptNodeResult";
302
302
  export * from "./PromptNodeResultData";
303
303
  export * from "./PromptOutput";
304
304
  export * from "./PromptParameters";
305
+ export * from "./PromptPushResponse";
305
306
  export * from "./PromptRequestChatHistoryInput";
306
307
  export * from "./PromptRequestInput";
307
308
  export * from "./PromptRequestJsonInput";
@@ -512,7 +513,6 @@ export * from "./WorkflowDeploymentRelease";
512
513
  export * from "./WorkflowDeploymentReleaseWorkflowDeployment";
513
514
  export * from "./WorkflowDeploymentReleaseWorkflowVersion";
514
515
  export * from "./WorkflowError";
515
- export * from "./WorkflowEventDisplayContext";
516
516
  export * from "./WorkflowEventError";
517
517
  export * from "./WorkflowEventExecutionRead";
518
518
  export * from "./WorkflowExecutionActual";
@@ -112,6 +112,7 @@ __exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
112
112
  __exportStar(require("./ErrorInput"), exports);
113
113
  __exportStar(require("./ErrorVellumValue"), exports);
114
114
  __exportStar(require("./ErrorVellumValueRequest"), exports);
115
+ __exportStar(require("./ExecuteApiResponseJson"), exports);
115
116
  __exportStar(require("./ExecuteApiResponse"), exports);
116
117
  __exportStar(require("./ExecutePromptEvent"), exports);
117
118
  __exportStar(require("./ExecutePromptResponse"), exports);
@@ -237,7 +238,6 @@ __exportStar(require("./NamedTestCaseStringVariableValueRequest"), exports);
237
238
  __exportStar(require("./NamedTestCaseVariableValue"), exports);
238
239
  __exportStar(require("./NamedTestCaseVariableValueRequest"), exports);
239
240
  __exportStar(require("./NewMemberJoinBehaviorEnum"), exports);
240
- __exportStar(require("./NodeEventDisplayContext"), exports);
241
241
  __exportStar(require("./NodeExecutionFulfilledBody"), exports);
242
242
  __exportStar(require("./NodeExecutionFulfilledEvent"), exports);
243
243
  __exportStar(require("./NodeExecutionInitiatedBody"), exports);
@@ -318,6 +318,7 @@ __exportStar(require("./PromptNodeResult"), exports);
318
318
  __exportStar(require("./PromptNodeResultData"), exports);
319
319
  __exportStar(require("./PromptOutput"), exports);
320
320
  __exportStar(require("./PromptParameters"), exports);
321
+ __exportStar(require("./PromptPushResponse"), exports);
321
322
  __exportStar(require("./PromptRequestChatHistoryInput"), exports);
322
323
  __exportStar(require("./PromptRequestInput"), exports);
323
324
  __exportStar(require("./PromptRequestJsonInput"), exports);
@@ -528,7 +529,6 @@ __exportStar(require("./WorkflowDeploymentRelease"), exports);
528
529
  __exportStar(require("./WorkflowDeploymentReleaseWorkflowDeployment"), exports);
529
530
  __exportStar(require("./WorkflowDeploymentReleaseWorkflowVersion"), exports);
530
531
  __exportStar(require("./WorkflowError"), exports);
531
- __exportStar(require("./WorkflowEventDisplayContext"), exports);
532
532
  __exportStar(require("./WorkflowEventError"), exports);
533
533
  __exportStar(require("./WorkflowEventExecutionRead"), exports);
534
534
  __exportStar(require("./WorkflowExecutionActual"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.41";
1
+ export declare const SDK_VERSION = "0.14.43";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.14.41";
4
+ exports.SDK_VERSION = "0.14.43";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.14.41",
3
+ "version": "0.14.43",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -1753,7 +1753,7 @@ await client.documents.retrieve("id");
1753
1753
  <dl>
1754
1754
  <dd>
1755
1755
 
1756
- **id:** `string` — A UUID string identifying this document.
1756
+ **id:** `string`
1757
1757
 
1758
1758
  </dd>
1759
1759
  </dl>
@@ -1816,7 +1816,7 @@ await client.documents.destroy("id");
1816
1816
  <dl>
1817
1817
  <dd>
1818
1818
 
1819
- **id:** `string` — A UUID string identifying this document.
1819
+ **id:** `string`
1820
1820
 
1821
1821
  </dd>
1822
1822
  </dl>
@@ -1879,7 +1879,7 @@ await client.documents.partialUpdate("id");
1879
1879
  <dl>
1880
1880
  <dd>
1881
1881
 
1882
- **id:** `string` — A UUID string identifying this document.
1882
+ **id:** `string`
1883
1883
 
1884
1884
  </dd>
1885
1885
  </dl>
@@ -2448,6 +2448,87 @@ await client.prompts.pull("id");
2448
2448
  </dl>
2449
2449
  </details>
2450
2450
 
2451
+ <details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">push</a>({ ...params }) -> Vellum.PromptPushResponse</code></summary>
2452
+ <dl>
2453
+ <dd>
2454
+
2455
+ #### 📝 Description
2456
+
2457
+ <dl>
2458
+ <dd>
2459
+
2460
+ <dl>
2461
+ <dd>
2462
+
2463
+ Used to push updates to a Prompt in Vellum.
2464
+
2465
+ </dd>
2466
+ </dl>
2467
+ </dd>
2468
+ </dl>
2469
+
2470
+ #### 🔌 Usage
2471
+
2472
+ <dl>
2473
+ <dd>
2474
+
2475
+ <dl>
2476
+ <dd>
2477
+
2478
+ ```typescript
2479
+ await client.prompts.push({
2480
+ execConfig: {
2481
+ mlModel: "ml_model",
2482
+ inputVariables: [
2483
+ {
2484
+ id: "id",
2485
+ key: "key",
2486
+ type: "STRING",
2487
+ },
2488
+ ],
2489
+ parameters: {},
2490
+ blocks: [
2491
+ {
2492
+ blockType: "JINJA",
2493
+ template: "template",
2494
+ },
2495
+ ],
2496
+ },
2497
+ });
2498
+ ```
2499
+
2500
+ </dd>
2501
+ </dl>
2502
+ </dd>
2503
+ </dl>
2504
+
2505
+ #### ⚙️ Parameters
2506
+
2507
+ <dl>
2508
+ <dd>
2509
+
2510
+ <dl>
2511
+ <dd>
2512
+
2513
+ **request:** `Vellum.PromptPush`
2514
+
2515
+ </dd>
2516
+ </dl>
2517
+
2518
+ <dl>
2519
+ <dd>
2520
+
2521
+ **requestOptions:** `Prompts.RequestOptions`
2522
+
2523
+ </dd>
2524
+ </dl>
2525
+ </dd>
2526
+ </dl>
2527
+
2528
+ </dd>
2529
+ </dl>
2530
+ </details>
2531
+
2451
2532
  ## Sandboxes
2452
2533
 
2453
2534
  <details><summary><code>client.sandboxes.<a href="/src/api/resources/sandboxes/client/Client.ts">deployPrompt</a>(id, promptVariantId, { ...params }) -> Vellum.DeploymentRead</code></summary>
@@ -20,6 +20,8 @@ export * from "./documents/client/requests";
20
20
  export * from "./folderEntities/client/requests";
21
21
  export * as metricDefinitions from "./metricDefinitions";
22
22
  export * from "./metricDefinitions/client/requests";
23
+ export * as prompts from "./prompts";
24
+ export * from "./prompts/client/requests";
23
25
  export * as sandboxes from "./sandboxes";
24
26
  export * from "./sandboxes/client/requests";
25
27
  export * as testSuiteRuns from "./testSuiteRuns";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.testSuites = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
39
+ exports.workspaceSecrets = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.testSuites = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
40
40
  exports.deployments = __importStar(require("./deployments"));
41
41
  __exportStar(require("./deployments/types"), exports);
42
42
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -59,6 +59,8 @@ __exportStar(require("./documents/client/requests"), exports);
59
59
  __exportStar(require("./folderEntities/client/requests"), exports);
60
60
  exports.metricDefinitions = __importStar(require("./metricDefinitions"));
61
61
  __exportStar(require("./metricDefinitions/client/requests"), exports);
62
+ exports.prompts = __importStar(require("./prompts"));
63
+ __exportStar(require("./prompts/client/requests"), exports);
62
64
  exports.sandboxes = __importStar(require("./sandboxes"));
63
65
  __exportStar(require("./sandboxes/client/requests"), exports);
64
66
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Vellum from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { PromptExecConfig } from "../../../../types/PromptExecConfig";
8
+ export declare const PromptPush: core.serialization.Schema<serializers.PromptPush.Raw, Vellum.PromptPush>;
9
+ export declare namespace PromptPush {
10
+ interface Raw {
11
+ exec_config: PromptExecConfig.Raw;
12
+ prompt_variant_id?: string | null;
13
+ prompt_sandbox_id?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.PromptPush = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ const PromptExecConfig_1 = require("../../../../types/PromptExecConfig");
42
+ exports.PromptPush = core.serialization.object({
43
+ execConfig: core.serialization.property("exec_config", PromptExecConfig_1.PromptExecConfig),
44
+ promptVariantId: core.serialization.property("prompt_variant_id", core.serialization.string().optional()),
45
+ promptSandboxId: core.serialization.property("prompt_sandbox_id", core.serialization.string().optional()),
46
+ });
@@ -0,0 +1 @@
1
+ export { PromptPush } from "./PromptPush";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PromptPush = void 0;
4
+ var PromptPush_1 = require("./PromptPush");
5
+ Object.defineProperty(exports, "PromptPush", { enumerable: true, get: function () { return PromptPush_1.PromptPush; } });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -19,7 +19,7 @@ export declare namespace DeploymentRead {
19
19
  last_deployed_on: string;
20
20
  input_variables: VellumVariable.Raw[];
21
21
  description?: string | null;
22
- active_model_version_ids: string[];
22
+ active_model_version_ids?: string[] | null;
23
23
  last_deployed_history_item_id: string;
24
24
  }
25
25
  }
@@ -51,6 +51,6 @@ exports.DeploymentRead = core.serialization.object({
51
51
  lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.date()),
52
52
  inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
53
53
  description: core.serialization.string().optional(),
54
- activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string())),
54
+ activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string()).optional()),
55
55
  lastDeployedHistoryItemId: core.serialization.property("last_deployed_history_item_id", core.serialization.string()),
56
56
  });
@@ -4,12 +4,13 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ExecuteApiResponseJson } from "./ExecuteApiResponseJson";
7
8
  export declare const ExecuteApiResponse: core.serialization.ObjectSchema<serializers.ExecuteApiResponse.Raw, Vellum.ExecuteApiResponse>;
8
9
  export declare namespace ExecuteApiResponse {
9
10
  interface Raw {
10
11
  status_code: number;
11
12
  text: string;
12
- json?: Record<string, unknown> | null;
13
+ json: ExecuteApiResponseJson.Raw;
13
14
  headers: Record<string, string>;
14
15
  }
15
16
  }
@@ -38,9 +38,10 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ExecuteApiResponse = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ExecuteApiResponseJson_1 = require("./ExecuteApiResponseJson");
41
42
  exports.ExecuteApiResponse = core.serialization.object({
42
43
  statusCode: core.serialization.property("status_code", core.serialization.number()),
43
44
  text: core.serialization.string(),
44
- json: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
45
+ json: ExecuteApiResponseJson_1.ExecuteApiResponseJson,
45
46
  headers: core.serialization.record(core.serialization.string(), core.serialization.string()),
46
47
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ExecuteApiResponseJson: core.serialization.Schema<serializers.ExecuteApiResponseJson.Raw, Vellum.ExecuteApiResponseJson>;
8
+ export declare namespace ExecuteApiResponseJson {
9
+ type Raw = Record<string, unknown> | unknown[];
10
+ }