vellum-ai 0.14.25 → 0.14.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +32 -27
  3. package/api/resources/adHoc/client/Client.js +1 -1
  4. package/api/resources/containerImages/client/Client.js +4 -4
  5. package/api/resources/deployments/client/Client.js +7 -7
  6. package/api/resources/documentIndexes/client/Client.js +8 -8
  7. package/api/resources/documents/client/Client.js +5 -5
  8. package/api/resources/folderEntities/client/Client.js +2 -2
  9. package/api/resources/index.d.ts +3 -2
  10. package/api/resources/index.js +4 -3
  11. package/api/resources/metricDefinitions/client/Client.js +2 -2
  12. package/api/resources/mlModels/client/Client.js +1 -1
  13. package/api/resources/organizations/client/Client.js +1 -1
  14. package/api/resources/prompts/client/Client.d.ts +45 -0
  15. package/api/resources/prompts/client/Client.js +138 -0
  16. package/api/resources/prompts/client/index.d.ts +1 -0
  17. package/{dist/serialization/resources/workflows/types → api/resources/prompts/client}/index.js +1 -1
  18. package/api/resources/prompts/client/requests/PromptsPullRequest.d.ts +13 -0
  19. package/api/resources/prompts/client/requests/index.d.ts +1 -0
  20. package/api/resources/prompts/client/requests/index.js +2 -0
  21. package/api/resources/prompts/index.d.ts +1 -0
  22. package/{serialization/resources/workflows → api/resources/prompts}/index.js +1 -1
  23. package/api/resources/sandboxes/client/Client.js +3 -3
  24. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  25. package/api/resources/testSuites/client/Client.js +4 -4
  26. package/api/resources/workflowDeployments/client/Client.js +8 -8
  27. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  28. package/api/resources/workflows/client/Client.js +4 -9
  29. package/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +0 -2
  30. package/api/resources/workflows/index.d.ts +0 -1
  31. package/api/resources/workflows/index.js +0 -1
  32. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  33. package/api/resources/workspaces/client/Client.js +1 -1
  34. package/api/types/DeploymentReleaseTagRead.d.ts +3 -1
  35. package/api/types/PromptExecConfig.d.ts +12 -0
  36. package/{dist/api/types/Release.d.ts → api/types/ReleaseTagRelease.d.ts} +1 -1
  37. package/{dist/api/resources/workflows/types/WorkflowsPullRequestFormat.js → api/types/ReleaseTagRelease.js} +0 -5
  38. package/api/types/WorkflowReleaseTagRead.d.ts +1 -1
  39. package/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +0 -2
  40. package/api/types/index.d.ts +2 -1
  41. package/api/types/index.js +2 -1
  42. package/dist/Client.d.ts +3 -0
  43. package/dist/Client.js +32 -27
  44. package/dist/api/resources/adHoc/client/Client.js +1 -1
  45. package/dist/api/resources/containerImages/client/Client.js +4 -4
  46. package/dist/api/resources/deployments/client/Client.js +7 -7
  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 +3 -2
  51. package/dist/api/resources/index.js +4 -3
  52. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  53. package/dist/api/resources/mlModels/client/Client.js +1 -1
  54. package/dist/api/resources/organizations/client/Client.js +1 -1
  55. package/dist/api/resources/prompts/client/Client.d.ts +45 -0
  56. package/dist/api/resources/prompts/client/Client.js +138 -0
  57. package/dist/api/resources/prompts/client/index.d.ts +1 -0
  58. package/{api/resources/workflows/types → dist/api/resources/prompts/client}/index.js +1 -1
  59. package/dist/api/resources/prompts/client/requests/PromptsPullRequest.d.ts +13 -0
  60. package/{api/resources/workflows/types/WorkflowsPullRequestFormat.js → dist/api/resources/prompts/client/requests/PromptsPullRequest.js} +0 -5
  61. package/dist/api/resources/prompts/client/requests/index.d.ts +1 -0
  62. package/dist/api/resources/prompts/client/requests/index.js +2 -0
  63. package/dist/api/resources/prompts/index.d.ts +1 -0
  64. package/dist/{serialization/resources/workflows → api/resources/prompts}/index.js +1 -1
  65. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  66. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  67. package/dist/api/resources/testSuites/client/Client.js +4 -4
  68. package/dist/api/resources/workflowDeployments/client/Client.js +8 -8
  69. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  70. package/dist/api/resources/workflows/client/Client.js +4 -9
  71. package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +0 -2
  72. package/dist/api/resources/workflows/index.d.ts +0 -1
  73. package/dist/api/resources/workflows/index.js +0 -1
  74. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  75. package/dist/api/resources/workspaces/client/Client.js +1 -1
  76. package/dist/api/types/DeploymentReleaseTagRead.d.ts +3 -1
  77. package/dist/api/types/PromptExecConfig.d.ts +12 -0
  78. package/dist/api/types/PromptExecConfig.js +5 -0
  79. package/{api/types/Release.d.ts → dist/api/types/ReleaseTagRelease.d.ts} +1 -1
  80. package/dist/api/types/ReleaseTagRelease.js +5 -0
  81. package/dist/api/types/WorkflowReleaseTagRead.d.ts +1 -1
  82. package/dist/api/types/WorkflowReleaseTagWorkflowDeploymentHistoryItem.d.ts +0 -2
  83. package/dist/api/types/index.d.ts +2 -1
  84. package/dist/api/types/index.js +2 -1
  85. package/dist/serialization/resources/index.d.ts +0 -2
  86. package/dist/serialization/resources/index.js +1 -3
  87. package/dist/serialization/types/DeploymentReleaseTagRead.d.ts +2 -0
  88. package/dist/serialization/types/DeploymentReleaseTagRead.js +2 -0
  89. package/dist/serialization/types/PromptExecConfig.d.ts +21 -0
  90. package/dist/serialization/{resources/workflows/types/WorkflowsPullRequestFormat.js → types/PromptExecConfig.js} +15 -3
  91. package/dist/serialization/types/{Release.d.ts → ReleaseTagRelease.d.ts} +2 -2
  92. package/dist/serialization/types/{Release.js → ReleaseTagRelease.js} +2 -2
  93. package/dist/serialization/types/WorkflowReleaseTagRead.d.ts +2 -2
  94. package/dist/serialization/types/WorkflowReleaseTagRead.js +2 -2
  95. package/dist/serialization/types/index.d.ts +2 -1
  96. package/dist/serialization/types/index.js +2 -1
  97. package/dist/version.d.ts +1 -1
  98. package/dist/version.js +1 -1
  99. package/package.json +1 -1
  100. package/reference.md +73 -0
  101. package/serialization/resources/index.d.ts +0 -2
  102. package/serialization/resources/index.js +1 -3
  103. package/serialization/types/DeploymentReleaseTagRead.d.ts +2 -0
  104. package/serialization/types/DeploymentReleaseTagRead.js +2 -0
  105. package/serialization/types/PromptExecConfig.d.ts +21 -0
  106. package/serialization/{resources/workflows/types/WorkflowsPullRequestFormat.js → types/PromptExecConfig.js} +15 -3
  107. package/serialization/types/{Release.d.ts → ReleaseTagRelease.d.ts} +2 -2
  108. package/serialization/types/{Release.js → ReleaseTagRelease.js} +2 -2
  109. package/serialization/types/WorkflowReleaseTagRead.d.ts +2 -2
  110. package/serialization/types/WorkflowReleaseTagRead.js +2 -2
  111. package/serialization/types/index.d.ts +2 -1
  112. package/serialization/types/index.js +2 -1
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
  115. package/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +0 -8
  116. package/api/resources/workflows/types/index.d.ts +0 -1
  117. package/dist/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +0 -8
  118. package/dist/api/resources/workflows/types/index.d.ts +0 -1
  119. package/dist/api/resources/workflows/types/index.js +0 -17
  120. package/dist/serialization/resources/workflows/index.d.ts +0 -1
  121. package/dist/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +0 -10
  122. package/dist/serialization/resources/workflows/types/index.d.ts +0 -1
  123. package/serialization/resources/workflows/index.d.ts +0 -1
  124. package/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +0 -10
  125. package/serialization/resources/workflows/types/index.d.ts +0 -1
  126. package/serialization/resources/workflows/types/index.js +0 -17
  127. /package/api/{types/Release.js → resources/prompts/client/requests/PromptsPullRequest.js} +0 -0
  128. /package/{dist/api/types/Release.js → api/types/PromptExecConfig.js} +0 -0
@@ -91,7 +91,7 @@ class FolderEntities {
91
91
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
92
92
  .default, "v1/folder-entities"),
93
93
  method: "GET",
94
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
95
  contentType: "application/json",
96
96
  queryParameters: _queryParams,
97
97
  requestType: "json",
@@ -154,7 +154,7 @@ class FolderEntities {
154
154
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
155
155
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
156
156
  method: "POST",
157
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
158
  contentType: "application/json",
159
159
  requestType: "json",
160
160
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -8,17 +8,17 @@ export * as workflowDeployments from "./workflowDeployments";
8
8
  export * from "./workflowDeployments/types";
9
9
  export * as workflowSandboxes from "./workflowSandboxes";
10
10
  export * from "./workflowSandboxes/types";
11
- export * as workflows from "./workflows";
12
- export * from "./workflows/types";
13
11
  export * as adHoc from "./adHoc";
14
12
  export * as containerImages from "./containerImages";
15
13
  export * as documents from "./documents";
16
14
  export * as metricDefinitions from "./metricDefinitions";
17
15
  export * as mlModels from "./mlModels";
18
16
  export * as organizations from "./organizations";
17
+ export * as prompts from "./prompts";
19
18
  export * as sandboxes from "./sandboxes";
20
19
  export * as testSuiteRuns from "./testSuiteRuns";
21
20
  export * as testSuites from "./testSuites";
21
+ export * as workflows from "./workflows";
22
22
  export * as workspaceSecrets from "./workspaceSecrets";
23
23
  export * as workspaces from "./workspaces";
24
24
  export * from "./adHoc/client/requests";
@@ -28,6 +28,7 @@ export * from "./documentIndexes/client/requests";
28
28
  export * from "./documents/client/requests";
29
29
  export * from "./folderEntities/client/requests";
30
30
  export * from "./metricDefinitions/client/requests";
31
+ export * from "./prompts/client/requests";
31
32
  export * from "./sandboxes/client/requests";
32
33
  export * from "./testSuiteRuns/client/requests";
33
34
  export * from "./testSuites/client/requests";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.workspaces = exports.workspaceSecrets = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.organizations = exports.mlModels = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflows = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
39
+ exports.workspaces = exports.workspaceSecrets = exports.workflows = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.organizations = exports.mlModels = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
40
40
  exports.deployments = __importStar(require("./deployments"));
41
41
  __exportStar(require("./deployments/types"), exports);
42
42
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -47,17 +47,17 @@ exports.workflowDeployments = __importStar(require("./workflowDeployments"));
47
47
  __exportStar(require("./workflowDeployments/types"), exports);
48
48
  exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
49
49
  __exportStar(require("./workflowSandboxes/types"), exports);
50
- exports.workflows = __importStar(require("./workflows"));
51
- __exportStar(require("./workflows/types"), exports);
52
50
  exports.adHoc = __importStar(require("./adHoc"));
53
51
  exports.containerImages = __importStar(require("./containerImages"));
54
52
  exports.documents = __importStar(require("./documents"));
55
53
  exports.metricDefinitions = __importStar(require("./metricDefinitions"));
56
54
  exports.mlModels = __importStar(require("./mlModels"));
57
55
  exports.organizations = __importStar(require("./organizations"));
56
+ exports.prompts = __importStar(require("./prompts"));
58
57
  exports.sandboxes = __importStar(require("./sandboxes"));
59
58
  exports.testSuiteRuns = __importStar(require("./testSuiteRuns"));
60
59
  exports.testSuites = __importStar(require("./testSuites"));
60
+ exports.workflows = __importStar(require("./workflows"));
61
61
  exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
62
62
  exports.workspaces = __importStar(require("./workspaces"));
63
63
  __exportStar(require("./adHoc/client/requests"), exports);
@@ -67,6 +67,7 @@ __exportStar(require("./documentIndexes/client/requests"), exports);
67
67
  __exportStar(require("./documents/client/requests"), exports);
68
68
  __exportStar(require("./folderEntities/client/requests"), exports);
69
69
  __exportStar(require("./metricDefinitions/client/requests"), exports);
70
+ __exportStar(require("./prompts/client/requests"), exports);
70
71
  __exportStar(require("./sandboxes/client/requests"), exports);
71
72
  __exportStar(require("./testSuiteRuns/client/requests"), exports);
72
73
  __exportStar(require("./testSuites/client/requests"), exports);
@@ -79,7 +79,7 @@ class MetricDefinitions {
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
80
80
  .predict, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
81
81
  method: "POST",
82
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -131,7 +131,7 @@ class MetricDefinitions {
131
131
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
132
132
  .default, `v1/metric-definitions/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
133
133
  method: "GET",
134
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
134
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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,
@@ -74,7 +74,7 @@ class MlModels {
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
75
75
  .default, `v1/ml-models/${encodeURIComponent(id)}`),
76
76
  method: "GET",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -73,7 +73,7 @@ class Organizations {
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
74
74
  .default, "v1/organizations/identity"),
75
75
  method: "GET",
76
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -0,0 +1,45 @@
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 Prompts {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ apiKey: core.Supplier<string>;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Prompts {
26
+ protected readonly _options: Prompts.Options;
27
+ constructor(_options: Prompts.Options);
28
+ /**
29
+ * Used to pull the definition of a Prompt from Vellum.
30
+ *
31
+ * @param {string} id - The ID of the Prompt to pull from. Prompt Sandbox IDs are currently supported.
32
+ * @param {Vellum.PromptsPullRequest} request
33
+ * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @throws {@link Vellum.BadRequestError}
36
+ * @throws {@link Vellum.NotFoundError}
37
+ *
38
+ * @example
39
+ * await client.prompts.pull("id")
40
+ */
41
+ pull(id: string, request?: Vellum.PromptsPullRequest, requestOptions?: Prompts.RequestOptions): Promise<Vellum.PromptExecConfig>;
42
+ protected _getCustomAuthorizationHeaders(): Promise<{
43
+ X_API_KEY: string;
44
+ }>;
45
+ }
@@ -0,0 +1,138 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Prompts = void 0;
52
+ const environments = __importStar(require("../../../../environments"));
53
+ const core = __importStar(require("../../../../core"));
54
+ const Vellum = __importStar(require("../../../index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const serializers = __importStar(require("../../../../serialization/index"));
57
+ const errors = __importStar(require("../../../../errors/index"));
58
+ class Prompts {
59
+ constructor(_options) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * Used to pull the definition of a Prompt from Vellum.
64
+ *
65
+ * @param {string} id - The ID of the Prompt to pull from. Prompt Sandbox IDs are currently supported.
66
+ * @param {Vellum.PromptsPullRequest} request
67
+ * @param {Prompts.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
69
+ * @throws {@link Vellum.BadRequestError}
70
+ * @throws {@link Vellum.NotFoundError}
71
+ *
72
+ * @example
73
+ * await client.prompts.pull("id")
74
+ */
75
+ pull(id_1) {
76
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
77
+ var _a, _b;
78
+ const { promptVariantId } = request;
79
+ const _queryParams = {};
80
+ if (promptVariantId != null) {
81
+ _queryParams["prompt_variant_id"] = promptVariantId;
82
+ }
83
+ const _response = yield core.fetcher({
84
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
85
+ .default, `v1/prompts/${encodeURIComponent(id)}/pull`),
86
+ method: "GET",
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accept: "application/json" }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ contentType: "application/json",
89
+ queryParameters: _queryParams,
90
+ requestType: "json",
91
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
92
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
93
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
94
+ });
95
+ if (_response.ok) {
96
+ return serializers.PromptExecConfig.parseOrThrow(_response.body, {
97
+ unrecognizedObjectKeys: "passthrough",
98
+ allowUnrecognizedUnionMembers: true,
99
+ allowUnrecognizedEnumValues: true,
100
+ breadcrumbsPrefix: ["response"],
101
+ });
102
+ }
103
+ if (_response.error.reason === "status-code") {
104
+ switch (_response.error.statusCode) {
105
+ case 400:
106
+ throw new Vellum.BadRequestError(_response.error.body);
107
+ case 404:
108
+ throw new Vellum.NotFoundError(_response.error.body);
109
+ default:
110
+ throw new errors.VellumError({
111
+ statusCode: _response.error.statusCode,
112
+ body: _response.error.body,
113
+ });
114
+ }
115
+ }
116
+ switch (_response.error.reason) {
117
+ case "non-json":
118
+ throw new errors.VellumError({
119
+ statusCode: _response.error.statusCode,
120
+ body: _response.error.rawBody,
121
+ });
122
+ case "timeout":
123
+ throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /v1/prompts/{id}/pull.");
124
+ case "unknown":
125
+ throw new errors.VellumError({
126
+ message: _response.error.errorMessage,
127
+ });
128
+ }
129
+ });
130
+ }
131
+ _getCustomAuthorizationHeaders() {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
134
+ return { X_API_KEY: apiKeyValue };
135
+ });
136
+ }
137
+ }
138
+ exports.Prompts = Prompts;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./WorkflowsPullRequestFormat"), exports);
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface PromptsPullRequest {
9
+ /**
10
+ * The ID of the Prompt Variant within a Prompt Sandbox to pull. Must be included if providing the ID of a Prompt Sandbox.
11
+ */
12
+ promptVariantId?: string;
13
+ }
@@ -3,8 +3,3 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WorkflowsPullRequestFormat = void 0;
7
- exports.WorkflowsPullRequestFormat = {
8
- Json: "json",
9
- Zip: "zip",
10
- };
@@ -0,0 +1 @@
1
+ export { type PromptsPullRequest } from "./PromptsPullRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
17
+ __exportStar(require("./client"), exports);
@@ -74,7 +74,7 @@ class Sandboxes {
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
75
75
  .default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
76
76
  method: "POST",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -161,7 +161,7 @@ class Sandboxes {
161
161
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
162
162
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
163
163
  method: "POST",
164
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
165
165
  contentType: "application/json",
166
166
  requestType: "json",
167
167
  body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -215,7 +215,7 @@ class Sandboxes {
215
215
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
216
216
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
217
217
  method: "DELETE",
218
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
218
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
219
  contentType: "application/json",
220
220
  requestType: "json",
221
221
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -81,7 +81,7 @@ class TestSuiteRuns {
81
81
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
82
82
  .default, "v1/test-suite-runs"),
83
83
  method: "POST",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -134,7 +134,7 @@ class TestSuiteRuns {
134
134
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
135
135
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
136
136
  method: "GET",
137
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
138
  contentType: "application/json",
139
139
  requestType: "json",
140
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -201,7 +201,7 @@ class TestSuiteRuns {
201
201
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
202
202
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
203
203
  method: "GET",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
205
205
  contentType: "application/json",
206
206
  queryParameters: _queryParams,
207
207
  requestType: "json",
@@ -83,7 +83,7 @@ class TestSuites {
83
83
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
84
84
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
85
85
  method: "GET",
86
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  queryParameters: _queryParams,
89
89
  requestType: "json",
@@ -164,7 +164,7 @@ class TestSuites {
164
164
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
165
165
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
166
166
  method: "POST",
167
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -211,7 +211,7 @@ class TestSuites {
211
211
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
212
212
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
213
213
  method: "POST",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
215
  contentType: "application/x-ndjson",
216
216
  requestType: "json",
217
217
  body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
@@ -278,7 +278,7 @@ class TestSuites {
278
278
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
279
279
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
280
280
  method: "DELETE",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
282
  contentType: "application/json",
283
283
  requestType: "json",
284
284
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -90,7 +90,7 @@ class WorkflowDeployments {
90
90
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
91
91
  .default, "v1/workflow-deployments"),
92
92
  method: "GET",
93
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -143,7 +143,7 @@ class WorkflowDeployments {
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
144
144
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
145
145
  method: "GET",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -205,7 +205,7 @@ class WorkflowDeployments {
205
205
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
206
206
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/execution-events`),
207
207
  method: "GET",
208
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
208
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
209
  contentType: "application/json",
210
210
  queryParameters: _queryParams,
211
211
  requestType: "json",
@@ -257,7 +257,7 @@ class WorkflowDeployments {
257
257
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
258
258
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/execution-events/${encodeURIComponent(executionId)}`),
259
259
  method: "GET",
260
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
260
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
261
  contentType: "application/json",
262
262
  requestType: "json",
263
263
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -310,7 +310,7 @@ class WorkflowDeployments {
310
310
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
311
311
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
312
312
  method: "GET",
313
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -379,7 +379,7 @@ class WorkflowDeployments {
379
379
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
380
380
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
381
381
  method: "GET",
382
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
382
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
383
383
  contentType: "application/json",
384
384
  queryParameters: _queryParams,
385
385
  requestType: "json",
@@ -433,7 +433,7 @@ class WorkflowDeployments {
433
433
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
434
434
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
435
435
  method: "GET",
436
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
436
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
437
437
  contentType: "application/json",
438
438
  requestType: "json",
439
439
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -487,7 +487,7 @@ class WorkflowDeployments {
487
487
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
488
488
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
489
489
  method: "PATCH",
490
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
490
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
491
491
  contentType: "application/json",
492
492
  requestType: "json",
493
493
  body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -74,7 +74,7 @@ class WorkflowSandboxes {
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
75
75
  .default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
76
76
  method: "POST",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -143,7 +143,7 @@ class WorkflowSandboxes {
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
144
144
  .default, "v1/workflow-sandboxes/examples"),
145
145
  method: "GET",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.25", "User-Agent": "vellum-ai/0.14.25", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.27", "User-Agent": "vellum-ai/0.14.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  queryParameters: _queryParams,
149
149
  requestType: "json",