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 @@
1
+ export {};
@@ -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);
package/dist/Client.d.ts CHANGED
@@ -15,6 +15,8 @@ import { TestSuiteRuns } from "./api/resources/testSuiteRuns/client/Client";
15
15
  import { TestSuites } from "./api/resources/testSuites/client/Client";
16
16
  import { WorkflowDeployments } from "./api/resources/workflowDeployments/client/Client";
17
17
  import { WorkflowSandboxes } from "./api/resources/workflowSandboxes/client/Client";
18
+ import { Workflows } from "./api/resources/workflows/client/Client";
19
+ import { WorkspaceSecrets } from "./api/resources/workspaceSecrets/client/Client";
18
20
  export declare namespace VellumClient {
19
21
  interface Options {
20
22
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
@@ -207,6 +209,10 @@ export declare class VellumClient {
207
209
  get workflowDeployments(): WorkflowDeployments;
208
210
  protected _workflowSandboxes: WorkflowSandboxes | undefined;
209
211
  get workflowSandboxes(): WorkflowSandboxes;
212
+ protected _workflows: Workflows | undefined;
213
+ get workflows(): Workflows;
214
+ protected _workspaceSecrets: WorkspaceSecrets | undefined;
215
+ get workspaceSecrets(): WorkspaceSecrets;
210
216
  protected _getCustomAuthorizationHeaders(): Promise<{
211
217
  X_API_KEY: string | undefined;
212
218
  }>;
package/dist/Client.js CHANGED
@@ -56,6 +56,8 @@ const Client_8 = require("./api/resources/testSuiteRuns/client/Client");
56
56
  const Client_9 = require("./api/resources/testSuites/client/Client");
57
57
  const Client_10 = require("./api/resources/workflowDeployments/client/Client");
58
58
  const Client_11 = require("./api/resources/workflowSandboxes/client/Client");
59
+ const Client_12 = require("./api/resources/workflows/client/Client");
60
+ const Client_13 = require("./api/resources/workspaceSecrets/client/Client");
59
61
  class VellumClient {
60
62
  constructor(_options = {}) {
61
63
  this._options = _options;
@@ -91,7 +93,7 @@ class VellumClient {
91
93
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
92
94
  .default, "v1/execute-code"),
93
95
  method: "POST",
94
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
96
+ 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())),
95
97
  contentType: "application/json",
96
98
  requestType: "json",
97
99
  body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -160,7 +162,7 @@ class VellumClient {
160
162
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
161
163
  .predict, "v1/execute-prompt"),
162
164
  method: "POST",
163
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
165
+ 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())),
164
166
  contentType: "application/json",
165
167
  requestType: "json",
166
168
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -218,7 +220,7 @@ class VellumClient {
218
220
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
219
221
  .predict, "v1/execute-prompt-stream"),
220
222
  method: "POST",
221
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
223
+ 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())),
222
224
  contentType: "application/json",
223
225
  requestType: "json",
224
226
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -303,7 +305,7 @@ class VellumClient {
303
305
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
304
306
  .predict, "v1/execute-workflow"),
305
307
  method: "POST",
306
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
308
+ 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())),
307
309
  contentType: "application/json",
308
310
  requestType: "json",
309
311
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -359,7 +361,7 @@ class VellumClient {
359
361
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
360
362
  .predict, "v1/execute-workflow-stream"),
361
363
  method: "POST",
362
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
364
+ 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())),
363
365
  contentType: "application/json",
364
366
  requestType: "json",
365
367
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -446,7 +448,7 @@ class VellumClient {
446
448
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
447
449
  .predict, "v1/generate"),
448
450
  method: "POST",
449
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
451
+ 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())),
450
452
  contentType: "application/json",
451
453
  requestType: "json",
452
454
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -507,7 +509,7 @@ class VellumClient {
507
509
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
508
510
  .predict, "v1/generate-stream"),
509
511
  method: "POST",
510
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
+ 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())),
511
513
  contentType: "application/json",
512
514
  requestType: "json",
513
515
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -588,7 +590,7 @@ class VellumClient {
588
590
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
589
591
  .predict, "v1/search"),
590
592
  method: "POST",
591
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
593
+ 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())),
592
594
  contentType: "application/json",
593
595
  requestType: "json",
594
596
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -656,7 +658,7 @@ class VellumClient {
656
658
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
657
659
  .predict, "v1/submit-completion-actuals"),
658
660
  method: "POST",
659
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
661
+ 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())),
660
662
  contentType: "application/json",
661
663
  requestType: "json",
662
664
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -719,7 +721,7 @@ class VellumClient {
719
721
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
720
722
  .predict, "v1/submit-workflow-execution-actuals"),
721
723
  method: "POST",
722
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
724
+ 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())),
723
725
  contentType: "application/json",
724
726
  requestType: "json",
725
727
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -797,6 +799,14 @@ class VellumClient {
797
799
  var _a;
798
800
  return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_11.WorkflowSandboxes(this._options)));
799
801
  }
802
+ get workflows() {
803
+ var _a;
804
+ return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_12.Workflows(this._options)));
805
+ }
806
+ get workspaceSecrets() {
807
+ var _a;
808
+ return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_13.WorkspaceSecrets(this._options)));
809
+ }
800
810
  _getCustomAuthorizationHeaders() {
801
811
  return __awaiter(this, void 0, void 0, function* () {
802
812
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -59,7 +59,7 @@ class AdHoc {
59
59
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
60
60
  .default, "v1/ad-hoc/execute-prompt-stream"),
61
61
  method: "POST",
62
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
+ 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())),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -43,6 +43,9 @@ import * as Vellum from "../../../../index";
43
43
  * }
44
44
  * }
45
45
  * },
46
+ * settings: {
47
+ * timeout: 1.1
48
+ * },
46
49
  * blocks: [{
47
50
  * blockType: "JINJA",
48
51
  * properties: {
@@ -70,6 +73,7 @@ export interface AdHocExecutePromptStreamRequest {
70
73
  inputValues: Vellum.PromptRequestInputRequest[];
71
74
  inputVariables: Vellum.VellumVariableRequest[];
72
75
  parameters: Vellum.PromptParametersRequest;
76
+ settings?: Vellum.PromptSettingsRequest;
73
77
  blocks: Vellum.PromptBlockRequest[];
74
78
  expandMeta?: Vellum.AdHocExpandMetaRequest;
75
79
  }
@@ -79,7 +79,7 @@ class Deployments {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/deployments"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ 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())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Deployments {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/deployments/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ 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())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -185,7 +185,7 @@ class Deployments {
185
185
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
186
186
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
187
187
  method: "GET",
188
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
+ 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())),
189
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -239,7 +239,7 @@ class Deployments {
239
239
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
240
240
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
241
241
  method: "PATCH",
242
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
+ 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())),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -314,7 +314,7 @@ class Deployments {
314
314
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
315
315
  .default, "v1/deployments/provider-payload"),
316
316
  method: "POST",
317
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.25", "User-Agent": "vellum-ai/0.8.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
317
+ 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())),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {