vellum-ai 0.8.25 → 0.8.27

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 (161) hide show
  1. package/.mock/definition/__package__.yml +43 -1
  2. package/.mock/definition/adHoc.yml +1 -0
  3. package/.mock/definition/workflows.yml +39 -0
  4. package/.mock/definition/workspaceSecrets.yml +34 -0
  5. package/.mock/openapi/openapi.yml +121 -4
  6. package/Client.d.ts +6 -0
  7. package/Client.js +20 -10
  8. package/api/resources/adHoc/client/Client.js +1 -1
  9. package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +4 -0
  10. package/api/resources/deployments/client/Client.js +5 -5
  11. package/api/resources/documentIndexes/client/Client.js +8 -8
  12. package/api/resources/documents/client/Client.js +5 -5
  13. package/api/resources/folderEntities/client/Client.js +2 -2
  14. package/api/resources/index.d.ts +3 -0
  15. package/api/resources/index.js +4 -1
  16. package/api/resources/metricDefinitions/client/Client.js +1 -1
  17. package/api/resources/sandboxes/client/Client.js +3 -3
  18. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  19. package/api/resources/testSuites/client/Client.js +4 -4
  20. package/api/resources/workflowDeployments/client/Client.js +4 -4
  21. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  22. package/api/resources/workflows/client/Client.d.ts +42 -0
  23. package/api/resources/workflows/client/Client.js +116 -0
  24. package/api/resources/workflows/client/index.d.ts +1 -0
  25. package/api/resources/workflows/client/index.js +17 -0
  26. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +17 -0
  27. package/api/resources/workflows/client/requests/WorkflowPushRequest.js +5 -0
  28. package/api/resources/workflows/client/requests/index.d.ts +1 -0
  29. package/api/resources/workflows/client/requests/index.js +2 -0
  30. package/api/resources/workflows/index.d.ts +1 -0
  31. package/api/resources/workflows/index.js +17 -0
  32. package/api/resources/workspaceSecrets/client/Client.d.ts +37 -0
  33. package/api/resources/workspaceSecrets/client/Client.js +110 -0
  34. package/api/resources/workspaceSecrets/client/index.d.ts +1 -0
  35. package/api/resources/workspaceSecrets/client/index.js +2 -0
  36. package/api/resources/workspaceSecrets/index.d.ts +1 -0
  37. package/api/resources/workspaceSecrets/index.js +17 -0
  38. package/api/types/ApiNodeResultData.d.ts +1 -1
  39. package/api/types/PromptSettingsRequest.d.ts +6 -0
  40. package/api/types/PromptSettingsRequest.js +5 -0
  41. package/api/types/SecretTypeEnum.d.ts +14 -0
  42. package/api/types/SecretTypeEnum.js +11 -0
  43. package/api/types/VellumErrorCodeEnum.d.ts +3 -1
  44. package/api/types/VellumErrorCodeEnum.js +1 -0
  45. package/api/types/WorkflowPushExecConfig.d.ts +4 -0
  46. package/api/types/WorkflowPushExecConfig.js +5 -0
  47. package/api/types/WorkflowPushResponse.d.ts +6 -0
  48. package/api/types/WorkflowPushResponse.js +5 -0
  49. package/api/types/WorkspaceSecretRead.d.ts +11 -0
  50. package/api/types/WorkspaceSecretRead.js +5 -0
  51. package/api/types/index.d.ts +5 -0
  52. package/api/types/index.js +5 -0
  53. package/dist/Client.d.ts +6 -0
  54. package/dist/Client.js +20 -10
  55. package/dist/api/resources/adHoc/client/Client.js +1 -1
  56. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +4 -0
  57. package/dist/api/resources/deployments/client/Client.js +5 -5
  58. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  59. package/dist/api/resources/documents/client/Client.js +5 -5
  60. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  61. package/dist/api/resources/index.d.ts +3 -0
  62. package/dist/api/resources/index.js +4 -1
  63. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  64. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  65. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  66. package/dist/api/resources/testSuites/client/Client.js +4 -4
  67. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  68. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  69. package/dist/api/resources/workflows/client/Client.d.ts +42 -0
  70. package/dist/api/resources/workflows/client/Client.js +116 -0
  71. package/dist/api/resources/workflows/client/index.d.ts +1 -0
  72. package/dist/api/resources/workflows/client/index.js +17 -0
  73. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +17 -0
  74. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.js +5 -0
  75. package/dist/api/resources/workflows/client/requests/index.d.ts +1 -0
  76. package/dist/api/resources/workflows/client/requests/index.js +2 -0
  77. package/dist/api/resources/workflows/index.d.ts +1 -0
  78. package/dist/api/resources/workflows/index.js +17 -0
  79. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +37 -0
  80. package/dist/api/resources/workspaceSecrets/client/Client.js +110 -0
  81. package/dist/api/resources/workspaceSecrets/client/index.d.ts +1 -0
  82. package/dist/api/resources/workspaceSecrets/client/index.js +2 -0
  83. package/dist/api/resources/workspaceSecrets/index.d.ts +1 -0
  84. package/dist/api/resources/workspaceSecrets/index.js +17 -0
  85. package/dist/api/types/ApiNodeResultData.d.ts +1 -1
  86. package/dist/api/types/PromptSettingsRequest.d.ts +6 -0
  87. package/dist/api/types/PromptSettingsRequest.js +5 -0
  88. package/dist/api/types/SecretTypeEnum.d.ts +14 -0
  89. package/dist/api/types/SecretTypeEnum.js +11 -0
  90. package/dist/api/types/VellumErrorCodeEnum.d.ts +3 -1
  91. package/dist/api/types/VellumErrorCodeEnum.js +1 -0
  92. package/dist/api/types/WorkflowPushExecConfig.d.ts +4 -0
  93. package/dist/api/types/WorkflowPushExecConfig.js +5 -0
  94. package/dist/api/types/WorkflowPushResponse.d.ts +6 -0
  95. package/dist/api/types/WorkflowPushResponse.js +5 -0
  96. package/dist/api/types/WorkspaceSecretRead.d.ts +11 -0
  97. package/dist/api/types/WorkspaceSecretRead.js +5 -0
  98. package/dist/api/types/index.d.ts +5 -0
  99. package/dist/api/types/index.js +5 -0
  100. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +2 -0
  101. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +2 -0
  102. package/dist/serialization/resources/index.d.ts +2 -0
  103. package/dist/serialization/resources/index.js +3 -1
  104. package/dist/serialization/resources/workflows/client/index.d.ts +1 -0
  105. package/dist/serialization/resources/workflows/client/index.js +17 -0
  106. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +14 -0
  107. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +35 -0
  108. package/dist/serialization/resources/workflows/client/requests/index.d.ts +1 -0
  109. package/dist/serialization/resources/workflows/client/requests/index.js +5 -0
  110. package/dist/serialization/resources/workflows/index.d.ts +1 -0
  111. package/dist/serialization/resources/workflows/index.js +17 -0
  112. package/dist/serialization/types/ApiNodeResultData.d.ts +1 -1
  113. package/dist/serialization/types/ApiNodeResultData.js +1 -1
  114. package/dist/serialization/types/PromptSettingsRequest.d.ts +12 -0
  115. package/dist/serialization/types/PromptSettingsRequest.js +33 -0
  116. package/dist/serialization/types/SecretTypeEnum.d.ts +10 -0
  117. package/dist/serialization/types/SecretTypeEnum.js +31 -0
  118. package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
  119. package/dist/serialization/types/VellumErrorCodeEnum.js +7 -1
  120. package/dist/serialization/types/WorkflowPushExecConfig.d.ts +10 -0
  121. package/dist/serialization/types/WorkflowPushExecConfig.js +31 -0
  122. package/dist/serialization/types/WorkflowPushResponse.d.ts +12 -0
  123. package/dist/serialization/types/WorkflowPushResponse.js +33 -0
  124. package/dist/serialization/types/WorkspaceSecretRead.d.ts +17 -0
  125. package/dist/serialization/types/WorkspaceSecretRead.js +38 -0
  126. package/dist/serialization/types/index.d.ts +5 -0
  127. package/dist/serialization/types/index.js +5 -0
  128. package/dist/version.d.ts +1 -1
  129. package/dist/version.js +1 -1
  130. package/package.json +1 -1
  131. package/reference.md +138 -0
  132. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +2 -0
  133. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.js +2 -0
  134. package/serialization/resources/index.d.ts +2 -0
  135. package/serialization/resources/index.js +3 -1
  136. package/serialization/resources/workflows/client/index.d.ts +1 -0
  137. package/serialization/resources/workflows/client/index.js +17 -0
  138. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +14 -0
  139. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +35 -0
  140. package/serialization/resources/workflows/client/requests/index.d.ts +1 -0
  141. package/serialization/resources/workflows/client/requests/index.js +5 -0
  142. package/serialization/resources/workflows/index.d.ts +1 -0
  143. package/serialization/resources/workflows/index.js +17 -0
  144. package/serialization/types/ApiNodeResultData.d.ts +1 -1
  145. package/serialization/types/ApiNodeResultData.js +1 -1
  146. package/serialization/types/PromptSettingsRequest.d.ts +12 -0
  147. package/serialization/types/PromptSettingsRequest.js +33 -0
  148. package/serialization/types/SecretTypeEnum.d.ts +10 -0
  149. package/serialization/types/SecretTypeEnum.js +31 -0
  150. package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
  151. package/serialization/types/VellumErrorCodeEnum.js +7 -1
  152. package/serialization/types/WorkflowPushExecConfig.d.ts +10 -0
  153. package/serialization/types/WorkflowPushExecConfig.js +31 -0
  154. package/serialization/types/WorkflowPushResponse.d.ts +12 -0
  155. package/serialization/types/WorkflowPushResponse.js +33 -0
  156. package/serialization/types/WorkspaceSecretRead.d.ts +17 -0
  157. package/serialization/types/WorkspaceSecretRead.js +38 -0
  158. package/serialization/types/index.d.ts +5 -0
  159. package/serialization/types/index.js +5 -0
  160. package/version.d.ts +1 -1
  161. package/version.js +1 -1
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SecretTypeEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SecretTypeEnum = core.serialization.enum_(["USER_DEFINED", "HMAC", "INTERNAL_API_KEY"]);
@@ -6,5 +6,5 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const VellumErrorCodeEnum: core.serialization.Schema<serializers.VellumErrorCodeEnum.Raw, Vellum.VellumErrorCodeEnum>;
8
8
  export declare namespace VellumErrorCodeEnum {
9
- type Raw = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
9
+ type Raw = "INVALID_REQUEST" | "PROVIDER_ERROR" | "REQUEST_TIMEOUT" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
10
10
  }
@@ -28,4 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.VellumErrorCodeEnum = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.VellumErrorCodeEnum = core.serialization.enum_(["INVALID_REQUEST", "PROVIDER_ERROR", "INTERNAL_SERVER_ERROR", "USER_DEFINED_ERROR"]);
31
+ exports.VellumErrorCodeEnum = core.serialization.enum_([
32
+ "INVALID_REQUEST",
33
+ "PROVIDER_ERROR",
34
+ "REQUEST_TIMEOUT",
35
+ "INTERNAL_SERVER_ERROR",
36
+ "USER_DEFINED_ERROR",
37
+ ]);
@@ -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 WorkflowPushExecConfig: core.serialization.Schema<serializers.WorkflowPushExecConfig.Raw, Vellum.WorkflowPushExecConfig>;
8
+ export declare namespace WorkflowPushExecConfig {
9
+ type Raw = Record<string, unknown>;
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WorkflowPushExecConfig = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.WorkflowPushExecConfig = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -0,0 +1,12 @@
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 WorkflowPushResponse: core.serialization.ObjectSchema<serializers.WorkflowPushResponse.Raw, Vellum.WorkflowPushResponse>;
8
+ export declare namespace WorkflowPushResponse {
9
+ interface Raw {
10
+ workflow_sandbox_id: 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.WorkflowPushResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.WorkflowPushResponse = core.serialization.object({
32
+ workflowSandboxId: core.serialization.property("workflow_sandbox_id", core.serialization.string()),
33
+ });
@@ -0,0 +1,17 @@
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 { SecretTypeEnum } from "./SecretTypeEnum";
8
+ export declare const WorkspaceSecretRead: core.serialization.ObjectSchema<serializers.WorkspaceSecretRead.Raw, Vellum.WorkspaceSecretRead>;
9
+ export declare namespace WorkspaceSecretRead {
10
+ interface Raw {
11
+ id: string;
12
+ modified: string;
13
+ name: string;
14
+ label: string;
15
+ secret_type: SecretTypeEnum.Raw;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
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.WorkspaceSecretRead = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const SecretTypeEnum_1 = require("./SecretTypeEnum");
32
+ exports.WorkspaceSecretRead = core.serialization.object({
33
+ id: core.serialization.string(),
34
+ modified: core.serialization.date(),
35
+ name: core.serialization.string(),
36
+ label: core.serialization.string(),
37
+ secretType: core.serialization.property("secret_type", SecretTypeEnum_1.SecretTypeEnum),
38
+ });
@@ -257,6 +257,7 @@ export * from "./PromptRequestChatHistoryInputRequest";
257
257
  export * from "./PromptRequestInputRequest";
258
258
  export * from "./PromptRequestJsonInputRequest";
259
259
  export * from "./PromptRequestStringInputRequest";
260
+ export * from "./PromptSettingsRequest";
260
261
  export * from "./RawPromptExecutionOverridesRequest";
261
262
  export * from "./ReductoChunkerConfig";
262
263
  export * from "./ReductoChunkerConfigRequest";
@@ -296,6 +297,7 @@ export * from "./SearchResultsVariableValue";
296
297
  export * from "./SearchResultsVellumValue";
297
298
  export * from "./SearchResultsVellumValueRequest";
298
299
  export * from "./SearchWeightsRequest";
300
+ export * from "./SecretTypeEnum";
299
301
  export * from "./SentenceChunkerConfig";
300
302
  export * from "./SentenceChunkerConfigRequest";
301
303
  export * from "./SentenceChunking";
@@ -443,6 +445,8 @@ export * from "./WorkflowOutputJson";
443
445
  export * from "./WorkflowOutputNumber";
444
446
  export * from "./WorkflowOutputSearchResults";
445
447
  export * from "./WorkflowOutputString";
448
+ export * from "./WorkflowPushExecConfig";
449
+ export * from "./WorkflowPushResponse";
446
450
  export * from "./WorkflowReleaseTagRead";
447
451
  export * from "./WorkflowReleaseTagWorkflowDeploymentHistoryItem";
448
452
  export * from "./WorkflowRequestChatHistoryInputRequest";
@@ -461,3 +465,4 @@ export * from "./WorkflowResultEventOutputDataNumber";
461
465
  export * from "./WorkflowResultEventOutputDataSearchResults";
462
466
  export * from "./WorkflowResultEventOutputDataString";
463
467
  export * from "./WorkflowStreamEvent";
468
+ export * from "./WorkspaceSecretRead";
@@ -273,6 +273,7 @@ __exportStar(require("./PromptRequestChatHistoryInputRequest"), exports);
273
273
  __exportStar(require("./PromptRequestInputRequest"), exports);
274
274
  __exportStar(require("./PromptRequestJsonInputRequest"), exports);
275
275
  __exportStar(require("./PromptRequestStringInputRequest"), exports);
276
+ __exportStar(require("./PromptSettingsRequest"), exports);
276
277
  __exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
277
278
  __exportStar(require("./ReductoChunkerConfig"), exports);
278
279
  __exportStar(require("./ReductoChunkerConfigRequest"), exports);
@@ -312,6 +313,7 @@ __exportStar(require("./SearchResultsVariableValue"), exports);
312
313
  __exportStar(require("./SearchResultsVellumValue"), exports);
313
314
  __exportStar(require("./SearchResultsVellumValueRequest"), exports);
314
315
  __exportStar(require("./SearchWeightsRequest"), exports);
316
+ __exportStar(require("./SecretTypeEnum"), exports);
315
317
  __exportStar(require("./SentenceChunkerConfig"), exports);
316
318
  __exportStar(require("./SentenceChunkerConfigRequest"), exports);
317
319
  __exportStar(require("./SentenceChunking"), exports);
@@ -459,6 +461,8 @@ __exportStar(require("./WorkflowOutputJson"), exports);
459
461
  __exportStar(require("./WorkflowOutputNumber"), exports);
460
462
  __exportStar(require("./WorkflowOutputSearchResults"), exports);
461
463
  __exportStar(require("./WorkflowOutputString"), exports);
464
+ __exportStar(require("./WorkflowPushExecConfig"), exports);
465
+ __exportStar(require("./WorkflowPushResponse"), exports);
462
466
  __exportStar(require("./WorkflowReleaseTagRead"), exports);
463
467
  __exportStar(require("./WorkflowReleaseTagWorkflowDeploymentHistoryItem"), exports);
464
468
  __exportStar(require("./WorkflowRequestChatHistoryInputRequest"), exports);
@@ -477,3 +481,4 @@ __exportStar(require("./WorkflowResultEventOutputDataNumber"), exports);
477
481
  __exportStar(require("./WorkflowResultEventOutputDataSearchResults"), exports);
478
482
  __exportStar(require("./WorkflowResultEventOutputDataString"), exports);
479
483
  __exportStar(require("./WorkflowStreamEvent"), exports);
484
+ __exportStar(require("./WorkspaceSecretRead"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.8.25";
1
+ export declare const SDK_VERSION = "0.8.27";
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.8.25";
4
+ exports.SDK_VERSION = "0.8.27";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.8.25",
3
+ "version": "0.8.27",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -146,6 +146,9 @@ await client.adHoc.adhocExecutePromptStream({
146
146
  },
147
147
  },
148
148
  },
149
+ settings: {
150
+ timeout: 1.1,
151
+ },
149
152
  blocks: [
150
153
  {
151
154
  blockType: "JINJA",
@@ -2786,3 +2789,138 @@ await client.workflowSandboxes.deployWorkflow("id", "workflow_id");
2786
2789
  </dd>
2787
2790
  </dl>
2788
2791
  </details>
2792
+
2793
+ ## Workflows
2794
+
2795
+ <details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">push</a>({ ...params }) -> Vellum.WorkflowPushResponse</code></summary>
2796
+ <dl>
2797
+ <dd>
2798
+
2799
+ #### 📝 Description
2800
+
2801
+ <dl>
2802
+ <dd>
2803
+
2804
+ <dl>
2805
+ <dd>
2806
+
2807
+ An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
2808
+
2809
+ </dd>
2810
+ </dl>
2811
+ </dd>
2812
+ </dl>
2813
+
2814
+ #### 🔌 Usage
2815
+
2816
+ <dl>
2817
+ <dd>
2818
+
2819
+ <dl>
2820
+ <dd>
2821
+
2822
+ ```typescript
2823
+ await client.workflows.push({
2824
+ execConfig: {
2825
+ key: "value",
2826
+ },
2827
+ label: "label",
2828
+ });
2829
+ ```
2830
+
2831
+ </dd>
2832
+ </dl>
2833
+ </dd>
2834
+ </dl>
2835
+
2836
+ #### ⚙️ Parameters
2837
+
2838
+ <dl>
2839
+ <dd>
2840
+
2841
+ <dl>
2842
+ <dd>
2843
+
2844
+ **request:** `Vellum.WorkflowPushRequest`
2845
+
2846
+ </dd>
2847
+ </dl>
2848
+
2849
+ <dl>
2850
+ <dd>
2851
+
2852
+ **requestOptions:** `Workflows.RequestOptions`
2853
+
2854
+ </dd>
2855
+ </dl>
2856
+ </dd>
2857
+ </dl>
2858
+
2859
+ </dd>
2860
+ </dl>
2861
+ </details>
2862
+
2863
+ ## WorkspaceSecrets
2864
+
2865
+ <details><summary><code>client.workspaceSecrets.<a href="/src/api/resources/workspaceSecrets/client/Client.ts">retrieve</a>(id) -> Vellum.WorkspaceSecretRead</code></summary>
2866
+ <dl>
2867
+ <dd>
2868
+
2869
+ #### 📝 Description
2870
+
2871
+ <dl>
2872
+ <dd>
2873
+
2874
+ <dl>
2875
+ <dd>
2876
+
2877
+ Used to retrieve a Workspace Secret given its ID or name.
2878
+
2879
+ </dd>
2880
+ </dl>
2881
+ </dd>
2882
+ </dl>
2883
+
2884
+ #### 🔌 Usage
2885
+
2886
+ <dl>
2887
+ <dd>
2888
+
2889
+ <dl>
2890
+ <dd>
2891
+
2892
+ ```typescript
2893
+ await client.workspaceSecrets.retrieve("id");
2894
+ ```
2895
+
2896
+ </dd>
2897
+ </dl>
2898
+ </dd>
2899
+ </dl>
2900
+
2901
+ #### ⚙️ Parameters
2902
+
2903
+ <dl>
2904
+ <dd>
2905
+
2906
+ <dl>
2907
+ <dd>
2908
+
2909
+ **id:** `string` — Either the Workspace Secret's ID or its unique name
2910
+
2911
+ </dd>
2912
+ </dl>
2913
+
2914
+ <dl>
2915
+ <dd>
2916
+
2917
+ **requestOptions:** `WorkspaceSecrets.RequestOptions`
2918
+
2919
+ </dd>
2920
+ </dl>
2921
+ </dd>
2922
+ </dl>
2923
+
2924
+ </dd>
2925
+ </dl>
2926
+ </details>
@@ -7,6 +7,7 @@ import * as core from "../../../../../core";
7
7
  import { PromptRequestInputRequest } from "../../../../types/PromptRequestInputRequest";
8
8
  import { VellumVariableRequest } from "../../../../types/VellumVariableRequest";
9
9
  import { PromptParametersRequest } from "../../../../types/PromptParametersRequest";
10
+ import { PromptSettingsRequest } from "../../../../types/PromptSettingsRequest";
10
11
  import { AdHocExpandMetaRequest } from "../../../../types/AdHocExpandMetaRequest";
11
12
  export declare const AdHocExecutePromptStreamRequest: core.serialization.Schema<serializers.AdHocExecutePromptStreamRequest.Raw, Vellum.AdHocExecutePromptStreamRequest>;
12
13
  export declare namespace AdHocExecutePromptStreamRequest {
@@ -15,6 +16,7 @@ export declare namespace AdHocExecutePromptStreamRequest {
15
16
  input_values: PromptRequestInputRequest.Raw[];
16
17
  input_variables: VellumVariableRequest.Raw[];
17
18
  parameters: PromptParametersRequest.Raw;
19
+ settings?: PromptSettingsRequest.Raw | null;
18
20
  blocks: serializers.PromptBlockRequest.Raw[];
19
21
  expand_meta?: AdHocExpandMetaRequest.Raw | null;
20
22
  }
@@ -32,12 +32,14 @@ const core = __importStar(require("../../../../../core"));
32
32
  const PromptRequestInputRequest_1 = require("../../../../types/PromptRequestInputRequest");
33
33
  const VellumVariableRequest_1 = require("../../../../types/VellumVariableRequest");
34
34
  const PromptParametersRequest_1 = require("../../../../types/PromptParametersRequest");
35
+ const PromptSettingsRequest_1 = require("../../../../types/PromptSettingsRequest");
35
36
  const AdHocExpandMetaRequest_1 = require("../../../../types/AdHocExpandMetaRequest");
36
37
  exports.AdHocExecutePromptStreamRequest = core.serialization.object({
37
38
  mlModel: core.serialization.property("ml_model", core.serialization.string()),
38
39
  inputValues: core.serialization.property("input_values", core.serialization.list(PromptRequestInputRequest_1.PromptRequestInputRequest)),
39
40
  inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariableRequest_1.VellumVariableRequest)),
40
41
  parameters: PromptParametersRequest_1.PromptParametersRequest,
42
+ settings: PromptSettingsRequest_1.PromptSettingsRequest.optional(),
41
43
  blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlockRequest)),
42
44
  expandMeta: core.serialization.property("expand_meta", AdHocExpandMetaRequest_1.AdHocExpandMetaRequest.optional()),
43
45
  });
@@ -23,3 +23,5 @@ export * from "./testSuiteRuns/client/requests";
23
23
  export * from "./workflowDeployments/client/requests";
24
24
  export * as workflowSandboxes from "./workflowSandboxes";
25
25
  export * from "./workflowSandboxes/client/requests";
26
+ export * as workflows from "./workflows";
27
+ export * from "./workflows/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.workflowSandboxes = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.adHoc = exports.testSuites = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.workflows = exports.workflowSandboxes = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.adHoc = exports.testSuites = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
32
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -52,3 +52,5 @@ __exportStar(require("./testSuiteRuns/client/requests"), exports);
52
52
  __exportStar(require("./workflowDeployments/client/requests"), exports);
53
53
  exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
54
54
  __exportStar(require("./workflowSandboxes/client/requests"), exports);
55
+ exports.workflows = __importStar(require("./workflows"));
56
+ __exportStar(require("./workflows/client/requests"), exports);
@@ -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,14 @@
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 { WorkflowPushExecConfig } from "../../../../types/WorkflowPushExecConfig";
8
+ export declare const WorkflowPushRequest: core.serialization.Schema<serializers.WorkflowPushRequest.Raw, Vellum.WorkflowPushRequest>;
9
+ export declare namespace WorkflowPushRequest {
10
+ interface Raw {
11
+ exec_config: WorkflowPushExecConfig.Raw;
12
+ label: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.WorkflowPushRequest = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const WorkflowPushExecConfig_1 = require("../../../../types/WorkflowPushExecConfig");
32
+ exports.WorkflowPushRequest = core.serialization.object({
33
+ execConfig: core.serialization.property("exec_config", WorkflowPushExecConfig_1.WorkflowPushExecConfig),
34
+ label: core.serialization.string(),
35
+ });
@@ -0,0 +1 @@
1
+ export { WorkflowPushRequest } from "./WorkflowPushRequest";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowPushRequest = void 0;
4
+ var WorkflowPushRequest_1 = require("./WorkflowPushRequest");
5
+ Object.defineProperty(exports, "WorkflowPushRequest", { enumerable: true, get: function () { return WorkflowPushRequest_1.WorkflowPushRequest; } });
@@ -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);
@@ -7,10 +7,10 @@ import * as core from "../../core";
7
7
  export declare const ApiNodeResultData: core.serialization.ObjectSchema<serializers.ApiNodeResultData.Raw, Vellum.ApiNodeResultData>;
8
8
  export declare namespace ApiNodeResultData {
9
9
  interface Raw {
10
+ json?: Record<string, unknown> | null;
10
11
  text_output_id: string;
11
12
  text?: string | null;
12
13
  json_output_id: string;
13
- json?: Record<string, unknown> | null;
14
14
  status_code_output_id: string;
15
15
  status_code: number;
16
16
  }
@@ -29,10 +29,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ApiNodeResultData = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.ApiNodeResultData = core.serialization.object({
32
+ json: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
32
33
  textOutputId: core.serialization.property("text_output_id", core.serialization.string()),
33
34
  text: core.serialization.string().optional(),
34
35
  jsonOutputId: core.serialization.property("json_output_id", core.serialization.string()),
35
- json: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
36
36
  statusCodeOutputId: core.serialization.property("status_code_output_id", core.serialization.string()),
37
37
  statusCode: core.serialization.property("status_code", core.serialization.number()),
38
38
  });
@@ -0,0 +1,12 @@
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 PromptSettingsRequest: core.serialization.ObjectSchema<serializers.PromptSettingsRequest.Raw, Vellum.PromptSettingsRequest>;
8
+ export declare namespace PromptSettingsRequest {
9
+ interface Raw {
10
+ timeout?: number | null;
11
+ }
12
+ }