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,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Vellum from "../../../index";
7
+ export declare namespace WorkspaceSecrets {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
+ apiKey?: core.Supplier<string | undefined>;
11
+ }
12
+ interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
14
+ timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
16
+ maxRetries?: number;
17
+ /** A hook to abort the request. */
18
+ abortSignal?: AbortSignal;
19
+ }
20
+ }
21
+ export declare class WorkspaceSecrets {
22
+ protected readonly _options: WorkspaceSecrets.Options;
23
+ constructor(_options?: WorkspaceSecrets.Options);
24
+ /**
25
+ * Used to retrieve a Workspace Secret given its ID or name.
26
+ *
27
+ * @param {string} id - Either the Workspace Secret's ID or its unique name
28
+ * @param {WorkspaceSecrets.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @example
31
+ * await client.workspaceSecrets.retrieve("id")
32
+ */
33
+ retrieve(id: string, requestOptions?: WorkspaceSecrets.RequestOptions): Promise<Vellum.WorkspaceSecretRead>;
34
+ protected _getCustomAuthorizationHeaders(): Promise<{
35
+ X_API_KEY: string | undefined;
36
+ }>;
37
+ }
@@ -0,0 +1,110 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.WorkspaceSecrets = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const url_join_1 = __importDefault(require("url-join"));
45
+ const serializers = __importStar(require("../../../../serialization/index"));
46
+ const errors = __importStar(require("../../../../errors/index"));
47
+ class WorkspaceSecrets {
48
+ constructor(_options = {}) {
49
+ this._options = _options;
50
+ }
51
+ /**
52
+ * Used to retrieve a Workspace Secret given its ID or name.
53
+ *
54
+ * @param {string} id - Either the Workspace Secret's ID or its unique name
55
+ * @param {WorkspaceSecrets.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @example
58
+ * await client.workspaceSecrets.retrieve("id")
59
+ */
60
+ retrieve(id, requestOptions) {
61
+ var _a;
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const _response = yield core.fetcher({
64
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
+ .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
66
+ method: "GET",
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.27", "User-Agent": "vellum-ai/0.8.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
+ contentType: "application/json",
69
+ requestType: "json",
70
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
71
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
72
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
73
+ });
74
+ if (_response.ok) {
75
+ return serializers.WorkspaceSecretRead.parseOrThrow(_response.body, {
76
+ unrecognizedObjectKeys: "passthrough",
77
+ allowUnrecognizedUnionMembers: true,
78
+ allowUnrecognizedEnumValues: true,
79
+ breadcrumbsPrefix: ["response"],
80
+ });
81
+ }
82
+ if (_response.error.reason === "status-code") {
83
+ throw new errors.VellumError({
84
+ statusCode: _response.error.statusCode,
85
+ body: _response.error.body,
86
+ });
87
+ }
88
+ switch (_response.error.reason) {
89
+ case "non-json":
90
+ throw new errors.VellumError({
91
+ statusCode: _response.error.statusCode,
92
+ body: _response.error.rawBody,
93
+ });
94
+ case "timeout":
95
+ throw new errors.VellumTimeoutError();
96
+ case "unknown":
97
+ throw new errors.VellumError({
98
+ message: _response.error.errorMessage,
99
+ });
100
+ }
101
+ });
102
+ }
103
+ _getCustomAuthorizationHeaders() {
104
+ return __awaiter(this, void 0, void 0, function* () {
105
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
106
+ return { X_API_KEY: apiKeyValue };
107
+ });
108
+ }
109
+ }
110
+ exports.WorkspaceSecrets = WorkspaceSecrets;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -2,10 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ApiNodeResultData {
5
+ json?: Record<string, unknown>;
5
6
  textOutputId: string;
6
7
  text?: string;
7
8
  jsonOutputId: string;
8
- json?: Record<string, unknown>;
9
9
  statusCodeOutputId: string;
10
10
  statusCode: number;
11
11
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PromptSettingsRequest {
5
+ timeout?: number;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * - `USER_DEFINED` - User Defined
6
+ * - `HMAC` - Hmac
7
+ * - `INTERNAL_API_KEY` - Internal Api Key
8
+ */
9
+ export declare type SecretTypeEnum = "USER_DEFINED" | "HMAC" | "INTERNAL_API_KEY";
10
+ export declare const SecretTypeEnum: {
11
+ readonly UserDefined: "USER_DEFINED";
12
+ readonly Hmac: "HMAC";
13
+ readonly InternalApiKey: "INTERNAL_API_KEY";
14
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SecretTypeEnum = void 0;
7
+ exports.SecretTypeEnum = {
8
+ UserDefined: "USER_DEFINED",
9
+ Hmac: "HMAC",
10
+ InternalApiKey: "INTERNAL_API_KEY",
11
+ };
@@ -4,13 +4,15 @@
4
4
  /**
5
5
  * - `INVALID_REQUEST` - INVALID_REQUEST
6
6
  * - `PROVIDER_ERROR` - PROVIDER_ERROR
7
+ * - `REQUEST_TIMEOUT` - REQUEST_TIMEOUT
7
8
  * - `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
8
9
  * - `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
9
10
  */
10
- export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
11
+ export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "REQUEST_TIMEOUT" | "INTERNAL_SERVER_ERROR" | "USER_DEFINED_ERROR";
11
12
  export declare const VellumErrorCodeEnum: {
12
13
  readonly InvalidRequest: "INVALID_REQUEST";
13
14
  readonly ProviderError: "PROVIDER_ERROR";
15
+ readonly RequestTimeout: "REQUEST_TIMEOUT";
14
16
  readonly InternalServerError: "INTERNAL_SERVER_ERROR";
15
17
  readonly UserDefinedError: "USER_DEFINED_ERROR";
16
18
  };
@@ -7,6 +7,7 @@ exports.VellumErrorCodeEnum = void 0;
7
7
  exports.VellumErrorCodeEnum = {
8
8
  InvalidRequest: "INVALID_REQUEST",
9
9
  ProviderError: "PROVIDER_ERROR",
10
+ RequestTimeout: "REQUEST_TIMEOUT",
10
11
  InternalServerError: "INTERNAL_SERVER_ERROR",
11
12
  UserDefinedError: "USER_DEFINED_ERROR",
12
13
  };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type WorkflowPushExecConfig = Record<string, unknown>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface WorkflowPushResponse {
5
+ workflowSandboxId: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface WorkspaceSecretRead {
6
+ id: string;
7
+ modified: Date;
8
+ name: string;
9
+ label: string;
10
+ secretType: Vellum.SecretTypeEnum;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);
@@ -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
+ }
@@ -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.PromptSettingsRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.PromptSettingsRequest = core.serialization.object({
32
+ timeout: core.serialization.number().optional(),
33
+ });
@@ -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 SecretTypeEnum: core.serialization.Schema<serializers.SecretTypeEnum.Raw, Vellum.SecretTypeEnum>;
8
+ export declare namespace SecretTypeEnum {
9
+ type Raw = "USER_DEFINED" | "HMAC" | "INTERNAL_API_KEY";
10
+ }