vellum-ai 0.8.26 → 0.8.28

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 (150) hide show
  1. package/.mock/definition/__package__.yml +16 -7
  2. package/.mock/definition/workflows.yml +39 -0
  3. package/.mock/definition/workspaceSecrets.yml +37 -1
  4. package/.mock/openapi/openapi.yml +123 -38
  5. package/Client.d.ts +3 -0
  6. package/Client.js +17 -12
  7. package/api/resources/adHoc/client/Client.js +1 -1
  8. package/api/resources/deployments/client/Client.js +5 -5
  9. package/api/resources/documentIndexes/client/Client.js +8 -8
  10. package/api/resources/documents/client/Client.js +5 -5
  11. package/api/resources/folderEntities/client/Client.js +2 -2
  12. package/api/resources/index.d.ts +2 -0
  13. package/api/resources/index.js +3 -1
  14. package/api/resources/metricDefinitions/client/Client.js +1 -1
  15. package/api/resources/sandboxes/client/Client.js +3 -3
  16. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  17. package/api/resources/testSuites/client/Client.js +4 -4
  18. package/api/resources/workflowDeployments/client/Client.js +4 -4
  19. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  20. package/api/resources/workflows/client/Client.d.ts +42 -0
  21. package/api/resources/workflows/client/Client.js +116 -0
  22. package/api/resources/workflows/client/index.d.ts +1 -0
  23. package/api/resources/workflows/client/index.js +17 -0
  24. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +17 -0
  25. package/api/resources/workflows/client/requests/index.d.ts +1 -0
  26. package/api/resources/workflows/client/requests/index.js +2 -0
  27. package/api/resources/workflows/index.d.ts +1 -0
  28. package/api/resources/workflows/index.js +17 -0
  29. package/api/resources/workspaceSecrets/client/Client.js +1 -1
  30. package/api/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  31. package/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
  32. package/api/types/{NodeInputCompiledFunctionCall.d.ts → NodeInputCompiledFunctionCallValue.d.ts} +1 -1
  33. package/api/types/NodeInputVariableCompiledValue.d.ts +1 -1
  34. package/api/types/TemplatingNodeArrayResult.d.ts +1 -1
  35. package/api/types/TerminalNodeArrayResult.d.ts +1 -1
  36. package/api/types/TerminalNodeResultOutput.d.ts +1 -1
  37. package/api/types/WorkflowPushExecConfig.d.ts +4 -0
  38. package/api/types/WorkflowPushExecConfig.js +5 -0
  39. package/api/types/WorkflowPushResponse.d.ts +6 -0
  40. package/api/types/WorkflowPushResponse.js +5 -0
  41. package/api/types/index.d.ts +3 -1
  42. package/api/types/index.js +3 -1
  43. package/dist/Client.d.ts +3 -0
  44. package/dist/Client.js +17 -12
  45. package/dist/api/resources/adHoc/client/Client.js +1 -1
  46. package/dist/api/resources/deployments/client/Client.js +5 -5
  47. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  48. package/dist/api/resources/documents/client/Client.js +5 -5
  49. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  50. package/dist/api/resources/index.d.ts +2 -0
  51. package/dist/api/resources/index.js +3 -1
  52. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  53. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  54. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  55. package/dist/api/resources/testSuites/client/Client.js +4 -4
  56. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  57. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  58. package/dist/api/resources/workflows/client/Client.d.ts +42 -0
  59. package/dist/api/resources/workflows/client/Client.js +116 -0
  60. package/dist/api/resources/workflows/client/index.d.ts +1 -0
  61. package/dist/api/resources/workflows/client/index.js +17 -0
  62. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +17 -0
  63. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.js +5 -0
  64. package/dist/api/resources/workflows/client/requests/index.d.ts +1 -0
  65. package/dist/api/resources/workflows/client/requests/index.js +2 -0
  66. package/dist/api/resources/workflows/index.d.ts +1 -0
  67. package/dist/api/resources/workflows/index.js +17 -0
  68. package/dist/api/resources/workspaceSecrets/client/Client.js +1 -1
  69. package/dist/api/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  70. package/dist/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
  71. package/dist/api/types/{NodeInputCompiledFunctionCall.d.ts → NodeInputCompiledFunctionCallValue.d.ts} +1 -1
  72. package/dist/api/types/NodeInputCompiledFunctionCallValue.js +5 -0
  73. package/dist/api/types/NodeInputVariableCompiledValue.d.ts +1 -1
  74. package/dist/api/types/TemplatingNodeArrayResult.d.ts +1 -1
  75. package/dist/api/types/TerminalNodeArrayResult.d.ts +1 -1
  76. package/dist/api/types/TerminalNodeResultOutput.d.ts +1 -1
  77. package/dist/api/types/WorkflowPushExecConfig.d.ts +4 -0
  78. package/dist/api/types/WorkflowPushExecConfig.js +5 -0
  79. package/dist/api/types/WorkflowPushResponse.d.ts +6 -0
  80. package/dist/api/types/WorkflowPushResponse.js +5 -0
  81. package/dist/api/types/index.d.ts +3 -1
  82. package/dist/api/types/index.js +3 -1
  83. package/dist/serialization/resources/index.d.ts +2 -0
  84. package/dist/serialization/resources/index.js +3 -1
  85. package/dist/serialization/resources/workflows/client/index.d.ts +1 -0
  86. package/dist/serialization/resources/workflows/client/index.js +17 -0
  87. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +14 -0
  88. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +35 -0
  89. package/dist/serialization/resources/workflows/client/requests/index.d.ts +1 -0
  90. package/dist/serialization/resources/workflows/client/requests/index.js +5 -0
  91. package/dist/serialization/resources/workflows/index.d.ts +1 -0
  92. package/dist/serialization/resources/workflows/index.js +17 -0
  93. package/dist/serialization/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  94. package/dist/serialization/types/CodeExecutionNodeArrayResult.js +1 -1
  95. package/dist/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
  96. package/dist/serialization/types/NodeInputCompiledArrayValue.js +1 -1
  97. package/dist/serialization/types/{NodeInputCompiledFunctionCall.d.ts → NodeInputCompiledFunctionCallValue.d.ts} +2 -2
  98. package/dist/serialization/types/{NodeInputCompiledFunctionCall.js → NodeInputCompiledFunctionCallValue.js} +2 -2
  99. package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +2 -2
  100. package/dist/serialization/types/NodeInputVariableCompiledValue.js +2 -2
  101. package/dist/serialization/types/TemplatingNodeArrayResult.d.ts +1 -1
  102. package/dist/serialization/types/TemplatingNodeArrayResult.js +1 -1
  103. package/dist/serialization/types/TerminalNodeArrayResult.d.ts +1 -1
  104. package/dist/serialization/types/TerminalNodeArrayResult.js +1 -1
  105. package/dist/serialization/types/TerminalNodeResultOutput.d.ts +2 -2
  106. package/dist/serialization/types/TerminalNodeResultOutput.js +2 -2
  107. package/dist/serialization/types/WorkflowPushExecConfig.d.ts +10 -0
  108. package/dist/serialization/types/WorkflowPushExecConfig.js +31 -0
  109. package/dist/serialization/types/WorkflowPushResponse.d.ts +12 -0
  110. package/dist/serialization/types/WorkflowPushResponse.js +33 -0
  111. package/dist/serialization/types/index.d.ts +3 -1
  112. package/dist/serialization/types/index.js +3 -1
  113. package/dist/version.d.ts +1 -1
  114. package/dist/version.js +1 -1
  115. package/package.json +1 -1
  116. package/reference.md +70 -0
  117. package/serialization/resources/index.d.ts +2 -0
  118. package/serialization/resources/index.js +3 -1
  119. package/serialization/resources/workflows/client/index.d.ts +1 -0
  120. package/serialization/resources/workflows/client/index.js +17 -0
  121. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +14 -0
  122. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +35 -0
  123. package/serialization/resources/workflows/client/requests/index.d.ts +1 -0
  124. package/serialization/resources/workflows/client/requests/index.js +5 -0
  125. package/serialization/resources/workflows/index.d.ts +1 -0
  126. package/serialization/resources/workflows/index.js +17 -0
  127. package/serialization/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  128. package/serialization/types/CodeExecutionNodeArrayResult.js +1 -1
  129. package/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
  130. package/serialization/types/NodeInputCompiledArrayValue.js +1 -1
  131. package/serialization/types/{NodeInputCompiledFunctionCall.d.ts → NodeInputCompiledFunctionCallValue.d.ts} +2 -2
  132. package/serialization/types/{NodeInputCompiledFunctionCall.js → NodeInputCompiledFunctionCallValue.js} +2 -2
  133. package/serialization/types/NodeInputVariableCompiledValue.d.ts +2 -2
  134. package/serialization/types/NodeInputVariableCompiledValue.js +2 -2
  135. package/serialization/types/TemplatingNodeArrayResult.d.ts +1 -1
  136. package/serialization/types/TemplatingNodeArrayResult.js +1 -1
  137. package/serialization/types/TerminalNodeArrayResult.d.ts +1 -1
  138. package/serialization/types/TerminalNodeArrayResult.js +1 -1
  139. package/serialization/types/TerminalNodeResultOutput.d.ts +2 -2
  140. package/serialization/types/TerminalNodeResultOutput.js +2 -2
  141. package/serialization/types/WorkflowPushExecConfig.d.ts +10 -0
  142. package/serialization/types/WorkflowPushExecConfig.js +31 -0
  143. package/serialization/types/WorkflowPushResponse.d.ts +12 -0
  144. package/serialization/types/WorkflowPushResponse.js +33 -0
  145. package/serialization/types/index.d.ts +3 -1
  146. package/serialization/types/index.js +3 -1
  147. package/version.d.ts +1 -1
  148. package/version.js +1 -1
  149. /package/api/{types/NodeInputCompiledFunctionCall.js → resources/workflows/client/requests/WorkflowPushRequest.js} +0 -0
  150. /package/{dist/api/types/NodeInputCompiledFunctionCall.js → api/types/NodeInputCompiledFunctionCallValue.js} +0 -0
@@ -0,0 +1,116 @@
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.Workflows = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const serializers = __importStar(require("../../../../serialization/index"));
45
+ const url_join_1 = __importDefault(require("url-join"));
46
+ const errors = __importStar(require("../../../../errors/index"));
47
+ class Workflows {
48
+ constructor(_options = {}) {
49
+ this._options = _options;
50
+ }
51
+ /**
52
+ * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
53
+ *
54
+ * @param {Vellum.WorkflowPushRequest} request
55
+ * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @example
58
+ * await client.workflows.push({
59
+ * execConfig: {
60
+ * "key": "value"
61
+ * },
62
+ * label: "label"
63
+ * })
64
+ */
65
+ push(request, requestOptions) {
66
+ var _a;
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const _response = yield core.fetcher({
69
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
+ .default, "v1/workflows/push"),
71
+ method: "POST",
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
+ contentType: "application/json",
74
+ requestType: "json",
75
+ body: serializers.WorkflowPushRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
76
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
77
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
79
+ });
80
+ if (_response.ok) {
81
+ return serializers.WorkflowPushResponse.parseOrThrow(_response.body, {
82
+ unrecognizedObjectKeys: "passthrough",
83
+ allowUnrecognizedUnionMembers: true,
84
+ allowUnrecognizedEnumValues: true,
85
+ breadcrumbsPrefix: ["response"],
86
+ });
87
+ }
88
+ if (_response.error.reason === "status-code") {
89
+ throw new errors.VellumError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ });
93
+ }
94
+ switch (_response.error.reason) {
95
+ case "non-json":
96
+ throw new errors.VellumError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.rawBody,
99
+ });
100
+ case "timeout":
101
+ throw new errors.VellumTimeoutError();
102
+ case "unknown":
103
+ throw new errors.VellumError({
104
+ message: _response.error.errorMessage,
105
+ });
106
+ }
107
+ });
108
+ }
109
+ _getCustomAuthorizationHeaders() {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
112
+ return { X_API_KEY: apiKeyValue };
113
+ });
114
+ }
115
+ }
116
+ exports.Workflows = Workflows;
@@ -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,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * execConfig: {
9
+ * "key": "value"
10
+ * },
11
+ * label: "label"
12
+ * }
13
+ */
14
+ export interface WorkflowPushRequest {
15
+ execConfig: Vellum.WorkflowPushExecConfig;
16
+ label: string;
17
+ }
@@ -0,0 +1 @@
1
+ export { type WorkflowPushRequest } from "./WorkflowPushRequest";
@@ -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);
@@ -64,7 +64,7 @@ class WorkspaceSecrets {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
66
66
  method: "GET",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -5,5 +5,5 @@ import * as Vellum from "../index";
5
5
  export interface CodeExecutionNodeArrayResult {
6
6
  id: string;
7
7
  type: "ARRAY";
8
- value?: Vellum.ArrayVariableValueItem[];
8
+ value?: Vellum.ArrayVellumValueItem[];
9
9
  }
@@ -6,5 +6,5 @@ export interface NodeInputCompiledArrayValue {
6
6
  nodeInputId: string;
7
7
  key: string;
8
8
  type: "ARRAY";
9
- value?: Vellum.ArrayVariableValueItem[];
9
+ value?: Vellum.ArrayVellumValueItem[];
10
10
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export interface NodeInputCompiledFunctionCall {
5
+ export interface NodeInputCompiledFunctionCallValue {
6
6
  nodeInputId: string;
7
7
  key: string;
8
8
  type: "FUNCTION_CALL";
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export declare type NodeInputVariableCompiledValue = Vellum.NodeInputCompiledStringValue | Vellum.NodeInputCompiledNumberValue | Vellum.NodeInputCompiledJsonValue | Vellum.NodeInputCompiledChatHistoryValue | Vellum.NodeInputCompiledSearchResultsValue | Vellum.NodeInputCompiledErrorValue | Vellum.NodeInputCompiledArrayValue | Vellum.NodeInputCompiledFunctionCall;
5
+ export declare type NodeInputVariableCompiledValue = Vellum.NodeInputCompiledStringValue | Vellum.NodeInputCompiledNumberValue | Vellum.NodeInputCompiledJsonValue | Vellum.NodeInputCompiledChatHistoryValue | Vellum.NodeInputCompiledSearchResultsValue | Vellum.NodeInputCompiledErrorValue | Vellum.NodeInputCompiledArrayValue | Vellum.NodeInputCompiledFunctionCallValue;
@@ -5,5 +5,5 @@ import * as Vellum from "../index";
5
5
  export interface TemplatingNodeArrayResult {
6
6
  id: string;
7
7
  type: "ARRAY";
8
- value?: Vellum.ArrayVariableValueItem[];
8
+ value?: Vellum.ArrayVellumValueItem[];
9
9
  }
@@ -7,5 +7,5 @@ export interface TerminalNodeArrayResult {
7
7
  /** The unique name given to the terminal node that produced this output. */
8
8
  name: string;
9
9
  type: "ARRAY";
10
- value?: Vellum.ArrayVariableValueItem[];
10
+ value?: Vellum.ArrayVellumValueItem[];
11
11
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export declare type TerminalNodeResultOutput = Vellum.TerminalNodeStringResult | Vellum.TerminalNodeNumberResult | Vellum.TerminalNodeJsonResult | Vellum.TerminalNodeChatHistoryResult | Vellum.TerminalNodeSearchResultsResult | Vellum.TerminalNodeArrayResult | Vellum.TerminalNodeFunctionCallResult | Vellum.TerminalNodeErrorResult;
5
+ export declare type TerminalNodeResultOutput = Vellum.TerminalNodeStringResult | Vellum.TerminalNodeNumberResult | Vellum.TerminalNodeJsonResult | Vellum.TerminalNodeChatHistoryResult | Vellum.TerminalNodeSearchResultsResult | Vellum.TerminalNodeErrorResult | Vellum.TerminalNodeArrayResult | Vellum.TerminalNodeFunctionCallResult;
@@ -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 });
@@ -201,7 +201,7 @@ export * from "./NamedTestCaseVariableValueRequest";
201
201
  export * from "./NodeInputCompiledArrayValue";
202
202
  export * from "./NodeInputCompiledChatHistoryValue";
203
203
  export * from "./NodeInputCompiledErrorValue";
204
- export * from "./NodeInputCompiledFunctionCall";
204
+ export * from "./NodeInputCompiledFunctionCallValue";
205
205
  export * from "./NodeInputCompiledJsonValue";
206
206
  export * from "./NodeInputCompiledNumberValue";
207
207
  export * from "./NodeInputCompiledSearchResultsValue";
@@ -445,6 +445,8 @@ export * from "./WorkflowOutputJson";
445
445
  export * from "./WorkflowOutputNumber";
446
446
  export * from "./WorkflowOutputSearchResults";
447
447
  export * from "./WorkflowOutputString";
448
+ export * from "./WorkflowPushExecConfig";
449
+ export * from "./WorkflowPushResponse";
448
450
  export * from "./WorkflowReleaseTagRead";
449
451
  export * from "./WorkflowReleaseTagWorkflowDeploymentHistoryItem";
450
452
  export * from "./WorkflowRequestChatHistoryInputRequest";
@@ -217,7 +217,7 @@ __exportStar(require("./NamedTestCaseVariableValueRequest"), exports);
217
217
  __exportStar(require("./NodeInputCompiledArrayValue"), exports);
218
218
  __exportStar(require("./NodeInputCompiledChatHistoryValue"), exports);
219
219
  __exportStar(require("./NodeInputCompiledErrorValue"), exports);
220
- __exportStar(require("./NodeInputCompiledFunctionCall"), exports);
220
+ __exportStar(require("./NodeInputCompiledFunctionCallValue"), exports);
221
221
  __exportStar(require("./NodeInputCompiledJsonValue"), exports);
222
222
  __exportStar(require("./NodeInputCompiledNumberValue"), exports);
223
223
  __exportStar(require("./NodeInputCompiledSearchResultsValue"), exports);
@@ -461,6 +461,8 @@ __exportStar(require("./WorkflowOutputJson"), exports);
461
461
  __exportStar(require("./WorkflowOutputNumber"), exports);
462
462
  __exportStar(require("./WorkflowOutputSearchResults"), exports);
463
463
  __exportStar(require("./WorkflowOutputString"), exports);
464
+ __exportStar(require("./WorkflowPushExecConfig"), exports);
465
+ __exportStar(require("./WorkflowPushResponse"), exports);
464
466
  __exportStar(require("./WorkflowReleaseTagRead"), exports);
465
467
  __exportStar(require("./WorkflowReleaseTagWorkflowDeploymentHistoryItem"), exports);
466
468
  __exportStar(require("./WorkflowRequestChatHistoryInputRequest"), exports);
package/dist/Client.d.ts CHANGED
@@ -15,6 +15,7 @@ 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";
18
19
  import { WorkspaceSecrets } from "./api/resources/workspaceSecrets/client/Client";
19
20
  export declare namespace VellumClient {
20
21
  interface Options {
@@ -208,6 +209,8 @@ export declare class VellumClient {
208
209
  get workflowDeployments(): WorkflowDeployments;
209
210
  protected _workflowSandboxes: WorkflowSandboxes | undefined;
210
211
  get workflowSandboxes(): WorkflowSandboxes;
212
+ protected _workflows: Workflows | undefined;
213
+ get workflows(): Workflows;
211
214
  protected _workspaceSecrets: WorkspaceSecrets | undefined;
212
215
  get workspaceSecrets(): WorkspaceSecrets;
213
216
  protected _getCustomAuthorizationHeaders(): Promise<{
package/dist/Client.js CHANGED
@@ -56,7 +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/workspaceSecrets/client/Client");
59
+ const Client_12 = require("./api/resources/workflows/client/Client");
60
+ const Client_13 = require("./api/resources/workspaceSecrets/client/Client");
60
61
  class VellumClient {
61
62
  constructor(_options = {}) {
62
63
  this._options = _options;
@@ -92,7 +93,7 @@ class VellumClient {
92
93
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
93
94
  .default, "v1/execute-code"),
94
95
  method: "POST",
95
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
96
97
  contentType: "application/json",
97
98
  requestType: "json",
98
99
  body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -161,7 +162,7 @@ class VellumClient {
161
162
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
162
163
  .predict, "v1/execute-prompt"),
163
164
  method: "POST",
164
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
165
166
  contentType: "application/json",
166
167
  requestType: "json",
167
168
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -219,7 +220,7 @@ class VellumClient {
219
220
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
220
221
  .predict, "v1/execute-prompt-stream"),
221
222
  method: "POST",
222
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
223
224
  contentType: "application/json",
224
225
  requestType: "json",
225
226
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -304,7 +305,7 @@ class VellumClient {
304
305
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
305
306
  .predict, "v1/execute-workflow"),
306
307
  method: "POST",
307
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
308
309
  contentType: "application/json",
309
310
  requestType: "json",
310
311
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -360,7 +361,7 @@ class VellumClient {
360
361
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
361
362
  .predict, "v1/execute-workflow-stream"),
362
363
  method: "POST",
363
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
364
365
  contentType: "application/json",
365
366
  requestType: "json",
366
367
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -447,7 +448,7 @@ class VellumClient {
447
448
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
448
449
  .predict, "v1/generate"),
449
450
  method: "POST",
450
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
451
452
  contentType: "application/json",
452
453
  requestType: "json",
453
454
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -508,7 +509,7 @@ class VellumClient {
508
509
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
509
510
  .predict, "v1/generate-stream"),
510
511
  method: "POST",
511
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
513
  contentType: "application/json",
513
514
  requestType: "json",
514
515
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -589,7 +590,7 @@ class VellumClient {
589
590
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
590
591
  .predict, "v1/search"),
591
592
  method: "POST",
592
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
593
594
  contentType: "application/json",
594
595
  requestType: "json",
595
596
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -657,7 +658,7 @@ class VellumClient {
657
658
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
658
659
  .predict, "v1/submit-completion-actuals"),
659
660
  method: "POST",
660
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
661
662
  contentType: "application/json",
662
663
  requestType: "json",
663
664
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -720,7 +721,7 @@ class VellumClient {
720
721
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
721
722
  .predict, "v1/submit-workflow-execution-actuals"),
722
723
  method: "POST",
723
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
724
725
  contentType: "application/json",
725
726
  requestType: "json",
726
727
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -798,9 +799,13 @@ class VellumClient {
798
799
  var _a;
799
800
  return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_11.WorkflowSandboxes(this._options)));
800
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
+ }
801
806
  get workspaceSecrets() {
802
807
  var _a;
803
- return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_12.WorkspaceSecrets(this._options)));
808
+ return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_13.WorkspaceSecrets(this._options)));
804
809
  }
805
810
  _getCustomAuthorizationHeaders() {
806
811
  return __awaiter(this, void 0, void 0, function* () {
@@ -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.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "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" }),
@@ -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.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "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.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "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.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "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.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "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.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "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, {
@@ -81,7 +81,7 @@ class DocumentIndexes {
81
81
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
82
82
  .default, "v1/document-indexes"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -196,7 +196,7 @@ class DocumentIndexes {
196
196
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
197
197
  .default, "v1/document-indexes"),
198
198
  method: "POST",
199
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
199
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -249,7 +249,7 @@ class DocumentIndexes {
249
249
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
250
250
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
251
251
  method: "GET",
252
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -304,7 +304,7 @@ class DocumentIndexes {
304
304
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
305
305
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
306
306
  method: "PUT",
307
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
308
308
  contentType: "application/json",
309
309
  requestType: "json",
310
310
  body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -357,7 +357,7 @@ class DocumentIndexes {
357
357
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
358
358
  .documents, `v1/document-indexes/${encodeURIComponent(id)}`),
359
359
  method: "DELETE",
360
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
361
361
  contentType: "application/json",
362
362
  requestType: "json",
363
363
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -405,7 +405,7 @@ class DocumentIndexes {
405
405
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
406
406
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
407
407
  method: "PATCH",
408
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
408
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
409
409
  contentType: "application/json",
410
410
  requestType: "json",
411
411
  body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
@@ -461,7 +461,7 @@ class DocumentIndexes {
461
461
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
462
462
  .default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
463
463
  method: "POST",
464
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
464
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
465
465
  contentType: "application/json",
466
466
  requestType: "json",
467
467
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -509,7 +509,7 @@ class DocumentIndexes {
509
509
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
510
510
  .documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
511
511
  method: "DELETE",
512
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.26", "User-Agent": "vellum-ai/0.8.26", "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": "v0.8.28", "User-Agent": "vellum-ai/v0.8.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
513
  contentType: "application/json",
514
514
  requestType: "json",
515
515
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,