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
@@ -79,7 +79,7 @@ class Documents {
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/documents"),
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 Documents {
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/documents/${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,
@@ -184,7 +184,7 @@ class Documents {
184
184
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
185
  .documents, `v1/documents/${encodeURIComponent(id)}`),
186
186
  method: "DELETE",
187
- 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())),
187
+ 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())),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -232,7 +232,7 @@ class Documents {
232
232
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
233
233
  .default, `v1/documents/${encodeURIComponent(id)}`),
234
234
  method: "PATCH",
235
- 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())),
235
+ 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())),
236
236
  contentType: "application/json",
237
237
  requestType: "json",
238
238
  body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -322,7 +322,7 @@ class Documents {
322
322
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
323
323
  .documents, "v1/upload-document"),
324
324
  method: "POST",
325
- headers: Object.assign(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())), _maybeEncodedRequest.headers),
325
+ headers: Object.assign(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())), _maybeEncodedRequest.headers),
326
326
  requestType: "file",
327
327
  duplex: _maybeEncodedRequest.duplex,
328
328
  body: _maybeEncodedRequest.body,
@@ -81,7 +81,7 @@ class FolderEntities {
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/folder-entities"),
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",
@@ -145,7 +145,7 @@ class FolderEntities {
145
145
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
146
146
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
147
147
  method: "POST",
148
- 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())),
148
+ 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())),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -13,6 +13,7 @@ export * as sandboxes from "./sandboxes";
13
13
  export * as testSuiteRuns from "./testSuiteRuns";
14
14
  export * as testSuites from "./testSuites";
15
15
  export * as workflowSandboxes from "./workflowSandboxes";
16
+ export * as workflows from "./workflows";
16
17
  export * as workspaceSecrets from "./workspaceSecrets";
17
18
  export * from "./adHoc/client/requests";
18
19
  export * from "./deployments/client/requests";
@@ -25,3 +26,4 @@ export * from "./testSuiteRuns/client/requests";
25
26
  export * from "./testSuites/client/requests";
26
27
  export * from "./workflowDeployments/client/requests";
27
28
  export * from "./workflowSandboxes/client/requests";
29
+ export * from "./workflows/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.workspaceSecrets = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.adHoc = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.workspaceSecrets = exports.workflows = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.adHoc = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
32
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -42,6 +42,7 @@ exports.sandboxes = __importStar(require("./sandboxes"));
42
42
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
43
43
  exports.testSuites = __importStar(require("./testSuites"));
44
44
  exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
45
+ exports.workflows = __importStar(require("./workflows"));
45
46
  exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
46
47
  __exportStar(require("./adHoc/client/requests"), exports);
47
48
  __exportStar(require("./deployments/client/requests"), exports);
@@ -54,3 +55,4 @@ __exportStar(require("./testSuiteRuns/client/requests"), exports);
54
55
  __exportStar(require("./testSuites/client/requests"), exports);
55
56
  __exportStar(require("./workflowDeployments/client/requests"), exports);
56
57
  __exportStar(require("./workflowSandboxes/client/requests"), exports);
58
+ __exportStar(require("./workflows/client/requests"), exports);
@@ -71,7 +71,7 @@ class MetricDefinitions {
71
71
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
72
72
  .default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
73
73
  method: "POST",
74
- 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())),
74
+ 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())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  body: serializers.ExecuteMetricDefinitionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -64,7 +64,7 @@ class Sandboxes {
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/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
66
66
  method: "POST",
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
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -151,7 +151,7 @@ class Sandboxes {
151
151
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
152
152
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
153
153
  method: "POST",
154
- 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())),
154
+ 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())),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -205,7 +205,7 @@ class Sandboxes {
205
205
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
206
206
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
207
207
  method: "DELETE",
208
- 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())),
208
+ 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())),
209
209
  contentType: "application/json",
210
210
  requestType: "json",
211
211
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -71,7 +71,7 @@ class TestSuiteRuns {
71
71
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
72
72
  .default, "v1/test-suite-runs"),
73
73
  method: "POST",
74
- 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())),
74
+ 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())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -124,7 +124,7 @@ class TestSuiteRuns {
124
124
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
125
125
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
126
126
  method: "GET",
127
- 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())),
127
+ 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())),
128
128
  contentType: "application/json",
129
129
  requestType: "json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -191,7 +191,7 @@ class TestSuiteRuns {
191
191
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
192
192
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
193
193
  method: "GET",
194
- 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())),
194
+ 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())),
195
195
  contentType: "application/json",
196
196
  queryParameters: _queryParams,
197
197
  requestType: "json",
@@ -73,7 +73,7 @@ class TestSuites {
73
73
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
74
74
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
75
75
  method: "GET",
76
- 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())),
76
+ 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())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  requestType: "json",
@@ -142,7 +142,7 @@ class TestSuites {
142
142
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
143
143
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
144
144
  method: "POST",
145
- 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())),
145
+ 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())),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -189,7 +189,7 @@ class TestSuites {
189
189
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
190
190
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
191
191
  method: "POST",
192
- 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())),
192
+ 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())),
193
193
  contentType: "application/json",
194
194
  requestType: "json",
195
195
  body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
@@ -256,7 +256,7 @@ class TestSuites {
256
256
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
257
257
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
258
258
  method: "DELETE",
259
- 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())),
259
+ 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())),
260
260
  contentType: "application/json",
261
261
  requestType: "json",
262
262
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -78,7 +78,7 @@ class WorkflowDeployments {
78
78
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
79
79
  .default, "v1/workflow-deployments"),
80
80
  method: "GET",
81
- 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())),
81
+ 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())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -131,7 +131,7 @@ class WorkflowDeployments {
131
131
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
132
132
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
133
133
  method: "GET",
134
- 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())),
134
+ 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())),
135
135
  contentType: "application/json",
136
136
  requestType: "json",
137
137
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -184,7 +184,7 @@ class WorkflowDeployments {
184
184
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
185
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
186
186
  method: "GET",
187
- 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())),
187
+ 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())),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -238,7 +238,7 @@ class WorkflowDeployments {
238
238
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
239
239
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
240
240
  method: "PATCH",
241
- 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())),
241
+ 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())),
242
242
  contentType: "application/json",
243
243
  requestType: "json",
244
244
  body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
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/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
66
66
  method: "POST",
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
  body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,42 @@
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 Workflows {
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 Workflows {
22
+ protected readonly _options: Workflows.Options;
23
+ constructor(_options?: Workflows.Options);
24
+ /**
25
+ * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
26
+ *
27
+ * @param {Vellum.WorkflowPushRequest} request
28
+ * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @example
31
+ * await client.workflows.push({
32
+ * execConfig: {
33
+ * "key": "value"
34
+ * },
35
+ * label: "label"
36
+ * })
37
+ */
38
+ push(request: Vellum.WorkflowPushRequest, requestOptions?: Workflows.RequestOptions): Promise<Vellum.WorkflowPushResponse>;
39
+ protected _getCustomAuthorizationHeaders(): Promise<{
40
+ X_API_KEY: string | undefined;
41
+ }>;
42
+ }
@@ -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,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 @@
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";
@@ -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 });
@@ -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
+ }