vellum-ai 0.12.17 → 0.13.0

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 (218) hide show
  1. package/.mock/definition/__package__.yml +44 -78
  2. package/.mock/definition/organizations.yml +29 -0
  3. package/.mock/definition/workspaces.yml +29 -0
  4. package/.mock/openapi/openapi.yml +84 -148
  5. package/Client.d.ts +9 -3
  6. package/Client.js +35 -25
  7. package/api/resources/adHoc/client/Client.d.ts +3 -3
  8. package/api/resources/adHoc/client/Client.js +2 -2
  9. package/api/resources/containerImages/client/Client.d.ts +3 -3
  10. package/api/resources/containerImages/client/Client.js +5 -5
  11. package/api/resources/deployments/client/Client.d.ts +3 -3
  12. package/api/resources/deployments/client/Client.js +8 -8
  13. package/api/resources/documentIndexes/client/Client.d.ts +3 -3
  14. package/api/resources/documentIndexes/client/Client.js +9 -9
  15. package/api/resources/documents/client/Client.d.ts +3 -3
  16. package/api/resources/documents/client/Client.js +6 -6
  17. package/api/resources/folderEntities/client/Client.d.ts +3 -3
  18. package/api/resources/folderEntities/client/Client.js +3 -3
  19. package/api/resources/index.d.ts +2 -0
  20. package/api/resources/index.js +3 -1
  21. package/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  22. package/api/resources/metricDefinitions/client/Client.js +3 -3
  23. package/api/resources/mlModels/client/Client.d.ts +3 -3
  24. package/api/resources/mlModels/client/Client.js +2 -2
  25. package/api/resources/organizations/client/Client.d.ts +36 -0
  26. package/api/resources/organizations/client/Client.js +109 -0
  27. package/api/resources/organizations/client/index.d.ts +1 -0
  28. package/api/resources/organizations/client/index.js +2 -0
  29. package/api/resources/organizations/index.d.ts +1 -0
  30. package/api/resources/organizations/index.js +17 -0
  31. package/api/resources/sandboxes/client/Client.d.ts +3 -3
  32. package/api/resources/sandboxes/client/Client.js +4 -4
  33. package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  34. package/api/resources/testSuiteRuns/client/Client.js +4 -4
  35. package/api/resources/testSuites/client/Client.d.ts +3 -3
  36. package/api/resources/testSuites/client/Client.js +5 -5
  37. package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  38. package/api/resources/workflowDeployments/client/Client.js +7 -7
  39. package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  40. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  41. package/api/resources/workflows/client/Client.d.ts +3 -3
  42. package/api/resources/workflows/client/Client.js +3 -3
  43. package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  44. package/api/resources/workspaceSecrets/client/Client.js +3 -3
  45. package/api/resources/workspaces/client/Client.d.ts +36 -0
  46. package/api/resources/workspaces/client/Client.js +109 -0
  47. package/api/resources/workspaces/client/index.d.ts +1 -0
  48. package/api/resources/workspaces/client/index.js +2 -0
  49. package/api/resources/workspaces/index.d.ts +1 -0
  50. package/api/resources/workspaces/index.js +17 -0
  51. package/api/types/NewMemberJoinBehaviorEnum.d.ts +14 -0
  52. package/api/types/NewMemberJoinBehaviorEnum.js +11 -0
  53. package/api/types/OrganizationRead.d.ts +10 -0
  54. package/api/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
  55. package/api/types/WorkspaceRead.d.ts +10 -0
  56. package/api/types/index.d.ts +3 -11
  57. package/api/types/index.js +3 -11
  58. package/dist/Client.d.ts +9 -3
  59. package/dist/Client.js +35 -25
  60. package/dist/api/resources/adHoc/client/Client.d.ts +3 -3
  61. package/dist/api/resources/adHoc/client/Client.js +2 -2
  62. package/dist/api/resources/containerImages/client/Client.d.ts +3 -3
  63. package/dist/api/resources/containerImages/client/Client.js +5 -5
  64. package/dist/api/resources/deployments/client/Client.d.ts +3 -3
  65. package/dist/api/resources/deployments/client/Client.js +8 -8
  66. package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
  67. package/dist/api/resources/documentIndexes/client/Client.js +9 -9
  68. package/dist/api/resources/documents/client/Client.d.ts +3 -3
  69. package/dist/api/resources/documents/client/Client.js +6 -6
  70. package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
  71. package/dist/api/resources/folderEntities/client/Client.js +3 -3
  72. package/dist/api/resources/index.d.ts +2 -0
  73. package/dist/api/resources/index.js +3 -1
  74. package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  75. package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
  76. package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
  77. package/dist/api/resources/mlModels/client/Client.js +2 -2
  78. package/dist/api/resources/organizations/client/Client.d.ts +36 -0
  79. package/dist/api/resources/organizations/client/Client.js +109 -0
  80. package/dist/api/resources/organizations/client/index.d.ts +1 -0
  81. package/dist/api/resources/organizations/client/index.js +2 -0
  82. package/dist/api/resources/organizations/index.d.ts +1 -0
  83. package/dist/api/resources/organizations/index.js +17 -0
  84. package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
  85. package/dist/api/resources/sandboxes/client/Client.js +4 -4
  86. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  87. package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
  88. package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
  89. package/dist/api/resources/testSuites/client/Client.js +5 -5
  90. package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  91. package/dist/api/resources/workflowDeployments/client/Client.js +7 -7
  92. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  93. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  94. package/dist/api/resources/workflows/client/Client.d.ts +3 -3
  95. package/dist/api/resources/workflows/client/Client.js +3 -3
  96. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  97. package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
  98. package/dist/api/resources/workspaces/client/Client.d.ts +36 -0
  99. package/dist/api/resources/workspaces/client/Client.js +109 -0
  100. package/dist/api/resources/workspaces/client/index.d.ts +1 -0
  101. package/dist/api/resources/workspaces/client/index.js +2 -0
  102. package/dist/api/resources/workspaces/index.d.ts +1 -0
  103. package/dist/api/resources/workspaces/index.js +17 -0
  104. package/dist/api/types/NewMemberJoinBehaviorEnum.d.ts +14 -0
  105. package/dist/api/types/NewMemberJoinBehaviorEnum.js +11 -0
  106. package/dist/api/types/OrganizationRead.d.ts +10 -0
  107. package/dist/api/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
  108. package/dist/api/types/WorkspaceRead.d.ts +10 -0
  109. package/dist/api/types/index.d.ts +3 -11
  110. package/dist/api/types/index.js +3 -11
  111. package/dist/serialization/types/NewMemberJoinBehaviorEnum.d.ts +10 -0
  112. package/dist/serialization/types/{JsonVariableValue.js → NewMemberJoinBehaviorEnum.js} +6 -5
  113. package/dist/serialization/types/OrganizationRead.d.ts +16 -0
  114. package/dist/serialization/types/{ArrayVariableValue.js → OrganizationRead.js} +7 -5
  115. package/dist/serialization/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
  116. package/dist/serialization/types/WorkflowResultEventOutputDataArray.js +1 -1
  117. package/dist/serialization/types/WorkspaceRead.d.ts +15 -0
  118. package/dist/serialization/types/{StringVariableValue.js → WorkspaceRead.js} +6 -4
  119. package/dist/serialization/types/index.d.ts +3 -11
  120. package/dist/serialization/types/index.js +3 -11
  121. package/dist/version.d.ts +1 -1
  122. package/dist/version.js +1 -1
  123. package/package.json +1 -1
  124. package/reference.md +114 -0
  125. package/serialization/types/NewMemberJoinBehaviorEnum.d.ts +10 -0
  126. package/{dist/serialization/types/NumberVariableValue.js → serialization/types/NewMemberJoinBehaviorEnum.js} +6 -5
  127. package/serialization/types/OrganizationRead.d.ts +16 -0
  128. package/{dist/serialization/types/ChatHistoryVariableValue.js → serialization/types/OrganizationRead.js} +7 -5
  129. package/serialization/types/WorkflowResultEventOutputDataArray.d.ts +1 -1
  130. package/serialization/types/WorkflowResultEventOutputDataArray.js +1 -1
  131. package/serialization/types/WorkspaceRead.d.ts +15 -0
  132. package/serialization/types/{JsonVariableValue.js → WorkspaceRead.js} +6 -4
  133. package/serialization/types/index.d.ts +3 -11
  134. package/serialization/types/index.js +3 -11
  135. package/version.d.ts +1 -1
  136. package/version.js +1 -1
  137. package/api/types/ArrayVariableValue.d.ts +0 -8
  138. package/api/types/ArrayVariableValueItem.d.ts +0 -5
  139. package/api/types/AudioVariableValue.d.ts +0 -11
  140. package/api/types/ChatHistoryVariableValue.d.ts +0 -8
  141. package/api/types/ErrorVariableValue.d.ts +0 -8
  142. package/api/types/ErrorVariableValue.js +0 -5
  143. package/api/types/FunctionCallVariableValue.d.ts +0 -8
  144. package/api/types/FunctionCallVariableValue.js +0 -5
  145. package/api/types/ImageVariableValue.d.ts +0 -11
  146. package/api/types/ImageVariableValue.js +0 -5
  147. package/api/types/JsonVariableValue.d.ts +0 -7
  148. package/api/types/JsonVariableValue.js +0 -5
  149. package/api/types/NumberVariableValue.d.ts +0 -7
  150. package/api/types/NumberVariableValue.js +0 -5
  151. package/api/types/SearchResultsVariableValue.d.ts +0 -8
  152. package/api/types/SearchResultsVariableValue.js +0 -5
  153. package/api/types/StringVariableValue.d.ts +0 -7
  154. package/api/types/StringVariableValue.js +0 -5
  155. package/dist/api/types/ArrayVariableValue.d.ts +0 -8
  156. package/dist/api/types/ArrayVariableValue.js +0 -5
  157. package/dist/api/types/ArrayVariableValueItem.d.ts +0 -5
  158. package/dist/api/types/ArrayVariableValueItem.js +0 -5
  159. package/dist/api/types/AudioVariableValue.d.ts +0 -11
  160. package/dist/api/types/AudioVariableValue.js +0 -5
  161. package/dist/api/types/ChatHistoryVariableValue.d.ts +0 -8
  162. package/dist/api/types/ChatHistoryVariableValue.js +0 -5
  163. package/dist/api/types/ErrorVariableValue.d.ts +0 -8
  164. package/dist/api/types/ErrorVariableValue.js +0 -5
  165. package/dist/api/types/FunctionCallVariableValue.d.ts +0 -8
  166. package/dist/api/types/FunctionCallVariableValue.js +0 -5
  167. package/dist/api/types/ImageVariableValue.d.ts +0 -11
  168. package/dist/api/types/ImageVariableValue.js +0 -5
  169. package/dist/api/types/JsonVariableValue.d.ts +0 -7
  170. package/dist/api/types/JsonVariableValue.js +0 -5
  171. package/dist/api/types/NumberVariableValue.d.ts +0 -7
  172. package/dist/api/types/NumberVariableValue.js +0 -5
  173. package/dist/api/types/SearchResultsVariableValue.d.ts +0 -8
  174. package/dist/api/types/SearchResultsVariableValue.js +0 -5
  175. package/dist/api/types/StringVariableValue.d.ts +0 -7
  176. package/dist/api/types/StringVariableValue.js +0 -5
  177. package/dist/serialization/types/ArrayVariableValue.d.ts +0 -13
  178. package/dist/serialization/types/ArrayVariableValueItem.d.ts +0 -19
  179. package/dist/serialization/types/ArrayVariableValueItem.js +0 -52
  180. package/dist/serialization/types/AudioVariableValue.d.ts +0 -14
  181. package/dist/serialization/types/AudioVariableValue.js +0 -35
  182. package/dist/serialization/types/ChatHistoryVariableValue.d.ts +0 -14
  183. package/dist/serialization/types/ErrorVariableValue.d.ts +0 -14
  184. package/dist/serialization/types/ErrorVariableValue.js +0 -35
  185. package/dist/serialization/types/FunctionCallVariableValue.d.ts +0 -14
  186. package/dist/serialization/types/FunctionCallVariableValue.js +0 -35
  187. package/dist/serialization/types/ImageVariableValue.d.ts +0 -14
  188. package/dist/serialization/types/ImageVariableValue.js +0 -35
  189. package/dist/serialization/types/JsonVariableValue.d.ts +0 -13
  190. package/dist/serialization/types/NumberVariableValue.d.ts +0 -13
  191. package/dist/serialization/types/SearchResultsVariableValue.d.ts +0 -14
  192. package/dist/serialization/types/SearchResultsVariableValue.js +0 -35
  193. package/dist/serialization/types/StringVariableValue.d.ts +0 -13
  194. package/serialization/types/ArrayVariableValue.d.ts +0 -13
  195. package/serialization/types/ArrayVariableValue.js +0 -35
  196. package/serialization/types/ArrayVariableValueItem.d.ts +0 -19
  197. package/serialization/types/ArrayVariableValueItem.js +0 -52
  198. package/serialization/types/AudioVariableValue.d.ts +0 -14
  199. package/serialization/types/AudioVariableValue.js +0 -35
  200. package/serialization/types/ChatHistoryVariableValue.d.ts +0 -14
  201. package/serialization/types/ChatHistoryVariableValue.js +0 -35
  202. package/serialization/types/ErrorVariableValue.d.ts +0 -14
  203. package/serialization/types/ErrorVariableValue.js +0 -35
  204. package/serialization/types/FunctionCallVariableValue.d.ts +0 -14
  205. package/serialization/types/FunctionCallVariableValue.js +0 -35
  206. package/serialization/types/ImageVariableValue.d.ts +0 -14
  207. package/serialization/types/ImageVariableValue.js +0 -35
  208. package/serialization/types/JsonVariableValue.d.ts +0 -13
  209. package/serialization/types/NumberVariableValue.d.ts +0 -13
  210. package/serialization/types/NumberVariableValue.js +0 -34
  211. package/serialization/types/SearchResultsVariableValue.d.ts +0 -14
  212. package/serialization/types/SearchResultsVariableValue.js +0 -35
  213. package/serialization/types/StringVariableValue.d.ts +0 -13
  214. package/serialization/types/StringVariableValue.js +0 -34
  215. /package/api/types/{ArrayVariableValue.js → OrganizationRead.js} +0 -0
  216. /package/api/types/{ArrayVariableValueItem.js → WorkspaceRead.js} +0 -0
  217. /package/{api/types/AudioVariableValue.js → dist/api/types/OrganizationRead.js} +0 -0
  218. /package/{api/types/ChatHistoryVariableValue.js → dist/api/types/WorkspaceRead.js} +0 -0
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace TestSuiteRuns {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
10
+ apiKey?: core.Supplier<string | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace TestSuiteRuns {
20
20
  }
21
21
  export declare class TestSuiteRuns {
22
22
  protected readonly _options: TestSuiteRuns.Options;
23
- constructor(_options: TestSuiteRuns.Options);
23
+ constructor(_options?: TestSuiteRuns.Options);
24
24
  /**
25
25
  * Trigger a Test Suite and create a new Test Suite Run
26
26
  *
@@ -58,6 +58,6 @@ export declare class TestSuiteRuns {
58
58
  */
59
59
  listExecutions(id: string, request?: Vellum.TestSuiteRunsListExecutionsRequest, requestOptions?: TestSuiteRuns.RequestOptions): Promise<Vellum.PaginatedTestSuiteRunExecutionList>;
60
60
  protected _getCustomAuthorizationHeaders(): Promise<{
61
- X_API_KEY: string;
61
+ X_API_KEY: string | undefined;
62
62
  }>;
63
63
  }
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class TestSuiteRuns {
48
- constructor(_options) {
48
+ constructor(_options = {}) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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",
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace TestSuites {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
10
+ apiKey?: core.Supplier<string | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace TestSuites {
20
20
  }
21
21
  export declare class TestSuites {
22
22
  protected readonly _options: TestSuites.Options;
23
- constructor(_options: TestSuites.Options);
23
+ constructor(_options?: TestSuites.Options);
24
24
  /**
25
25
  * List the Test Cases associated with a Test Suite
26
26
  *
@@ -74,6 +74,6 @@ export declare class TestSuites {
74
74
  */
75
75
  deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
76
76
  protected _getCustomAuthorizationHeaders(): Promise<{
77
- X_API_KEY: string;
77
+ X_API_KEY: string | undefined;
78
78
  }>;
79
79
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class TestSuites {
48
- constructor(_options) {
48
+ constructor(_options = {}) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
193
193
  contentType: "application/x-ndjson",
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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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,
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace WorkflowDeployments {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
10
+ apiKey?: core.Supplier<string | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace WorkflowDeployments {
20
20
  }
21
21
  export declare class WorkflowDeployments {
22
22
  protected readonly _options: WorkflowDeployments.Options;
23
- constructor(_options: WorkflowDeployments.Options);
23
+ constructor(_options?: WorkflowDeployments.Options);
24
24
  /**
25
25
  * Used to list all Workflow Deployments.
26
26
  *
@@ -87,6 +87,6 @@ export declare class WorkflowDeployments {
87
87
  */
88
88
  updateWorkflowReleaseTag(id: string, name: string, request?: Vellum.PatchedWorkflowReleaseTagUpdateRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
89
89
  protected _getCustomAuthorizationHeaders(): Promise<{
90
- X_API_KEY: string;
90
+ X_API_KEY: string | undefined;
91
91
  }>;
92
92
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class WorkflowDeployments {
48
- constructor(_options) {
48
+ constructor(_options = {}) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
186
186
  method: "GET",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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,
@@ -251,7 +251,7 @@ class WorkflowDeployments {
251
251
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
252
252
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
253
253
  method: "GET",
254
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.17", "User-Agent": "vellum-ai/0.12.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
255
  contentType: "application/json",
256
256
  queryParameters: _queryParams,
257
257
  requestType: "json",
@@ -305,7 +305,7 @@ class WorkflowDeployments {
305
305
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
306
306
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
307
307
  method: "GET",
308
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.17", "User-Agent": "vellum-ai/0.12.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
308
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
309
  contentType: "application/json",
310
310
  requestType: "json",
311
311
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -359,7 +359,7 @@ class WorkflowDeployments {
359
359
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
360
360
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
361
361
  method: "PATCH",
362
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.17", "User-Agent": "vellum-ai/0.12.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
362
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
363
363
  contentType: "application/json",
364
364
  requestType: "json",
365
365
  body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace WorkflowSandboxes {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
10
+ apiKey?: core.Supplier<string | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace WorkflowSandboxes {
20
20
  }
21
21
  export declare class WorkflowSandboxes {
22
22
  protected readonly _options: WorkflowSandboxes.Options;
23
- constructor(_options: WorkflowSandboxes.Options);
23
+ constructor(_options?: WorkflowSandboxes.Options);
24
24
  /**
25
25
  * @param {string} id - A UUID string identifying this workflow sandbox.
26
26
  * @param {string} workflowId - An ID identifying the Workflow you'd like to deploy.
@@ -32,6 +32,6 @@ export declare class WorkflowSandboxes {
32
32
  */
33
33
  deployWorkflow(id: string, workflowId: string, request?: Vellum.DeploySandboxWorkflowRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
34
34
  protected _getCustomAuthorizationHeaders(): Promise<{
35
- X_API_KEY: string;
35
+ X_API_KEY: string | undefined;
36
36
  }>;
37
37
  }
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class WorkflowSandboxes {
48
- constructor(_options) {
48
+ constructor(_options = {}) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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" }),
@@ -11,7 +11,7 @@ import { Blob } from "buffer";
11
11
  export declare namespace Workflows {
12
12
  interface Options {
13
13
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
14
- apiKey: core.Supplier<string>;
14
+ apiKey?: core.Supplier<string | undefined>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace Workflows {
24
24
  }
25
25
  export declare class Workflows {
26
26
  protected readonly _options: Workflows.Options;
27
- constructor(_options: Workflows.Options);
27
+ constructor(_options?: Workflows.Options);
28
28
  /**
29
29
  * @throws {@link Vellum.BadRequestError}
30
30
  */
@@ -42,6 +42,6 @@ export declare class Workflows {
42
42
  */
43
43
  push(artifact: File | fs.ReadStream | Blob | undefined, request: Vellum.WorkflowPushRequest, requestOptions?: Workflows.RequestOptions): Promise<Vellum.WorkflowPushResponse>;
44
44
  protected _getCustomAuthorizationHeaders(): Promise<{
45
- X_API_KEY: string;
45
+ X_API_KEY: string | undefined;
46
46
  }>;
47
47
  }
@@ -46,7 +46,7 @@ const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  const serializers = __importStar(require("../../../../serialization/index"));
48
48
  class Workflows {
49
- constructor(_options) {
49
+ constructor(_options = {}) {
50
50
  this._options = _options;
51
51
  }
52
52
  /**
@@ -76,7 +76,7 @@ class Workflows {
76
76
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
77
77
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
78
78
  method: "GET",
79
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.17", "User-Agent": "vellum-ai/0.12.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
80
  contentType: "application/json",
81
81
  queryParameters: _queryParams,
82
82
  requestType: "json",
@@ -148,7 +148,7 @@ class Workflows {
148
148
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
149
149
  .default, "v1/workflows/push"),
150
150
  method: "POST",
151
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.17", "User-Agent": "vellum-ai/0.12.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
151
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
152
152
  requestType: "file",
153
153
  duplex: _maybeEncodedRequest.duplex,
154
154
  body: _maybeEncodedRequest.body,
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace WorkspaceSecrets {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey: core.Supplier<string>;
10
+ apiKey?: core.Supplier<string | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace WorkspaceSecrets {
20
20
  }
21
21
  export declare class WorkspaceSecrets {
22
22
  protected readonly _options: WorkspaceSecrets.Options;
23
- constructor(_options: WorkspaceSecrets.Options);
23
+ constructor(_options?: WorkspaceSecrets.Options);
24
24
  /**
25
25
  * Used to retrieve a Workspace Secret given its ID or name.
26
26
  *
@@ -43,6 +43,6 @@ export declare class WorkspaceSecrets {
43
43
  */
44
44
  partialUpdate(id: string, request?: Vellum.PatchedWorkspaceSecretUpdateRequest, requestOptions?: WorkspaceSecrets.RequestOptions): Promise<Vellum.WorkspaceSecretRead>;
45
45
  protected _getCustomAuthorizationHeaders(): Promise<{
46
- X_API_KEY: string;
46
+ X_API_KEY: string | undefined;
47
47
  }>;
48
48
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class WorkspaceSecrets {
48
- constructor(_options) {
48
+ constructor(_options = {}) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -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.12.17", "User-Agent": "vellum-ai/0.12.17", "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": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "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,
@@ -117,7 +117,7 @@ class WorkspaceSecrets {
117
117
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
118
118
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
119
119
  method: "PATCH",
120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.17", "User-Agent": "vellum-ai/0.12.17", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
121
  contentType: "application/json",
122
122
  requestType: "json",
123
123
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -0,0 +1,36 @@
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 Workspaces {
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 Workspaces {
22
+ protected readonly _options: Workspaces.Options;
23
+ constructor(_options?: Workspaces.Options);
24
+ /**
25
+ * Retrieves information about the active Workspace
26
+ *
27
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @example
30
+ * await client.workspaces.workspaceIdentity()
31
+ */
32
+ workspaceIdentity(requestOptions?: Workspaces.RequestOptions): Promise<Vellum.WorkspaceRead>;
33
+ protected _getCustomAuthorizationHeaders(): Promise<{
34
+ X_API_KEY: string | undefined;
35
+ }>;
36
+ }
@@ -0,0 +1,109 @@
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.Workspaces = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const url_join_1 = __importDefault(require("url-join"));
45
+ const serializers = __importStar(require("../../../../serialization/index"));
46
+ const errors = __importStar(require("../../../../errors/index"));
47
+ class Workspaces {
48
+ constructor(_options = {}) {
49
+ this._options = _options;
50
+ }
51
+ /**
52
+ * Retrieves information about the active Workspace
53
+ *
54
+ * @param {Workspaces.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @example
57
+ * await client.workspaces.workspaceIdentity()
58
+ */
59
+ workspaceIdentity(requestOptions) {
60
+ var _a;
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const _response = yield core.fetcher({
63
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
64
+ .default, "v1/workspaces/identity"),
65
+ method: "GET",
66
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.13.0", "User-Agent": "vellum-ai/0.13.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ contentType: "application/json",
68
+ requestType: "json",
69
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
70
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
71
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
72
+ });
73
+ if (_response.ok) {
74
+ return serializers.WorkspaceRead.parseOrThrow(_response.body, {
75
+ unrecognizedObjectKeys: "passthrough",
76
+ allowUnrecognizedUnionMembers: true,
77
+ allowUnrecognizedEnumValues: true,
78
+ breadcrumbsPrefix: ["response"],
79
+ });
80
+ }
81
+ if (_response.error.reason === "status-code") {
82
+ throw new errors.VellumError({
83
+ statusCode: _response.error.statusCode,
84
+ body: _response.error.body,
85
+ });
86
+ }
87
+ switch (_response.error.reason) {
88
+ case "non-json":
89
+ throw new errors.VellumError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.rawBody,
92
+ });
93
+ case "timeout":
94
+ throw new errors.VellumTimeoutError();
95
+ case "unknown":
96
+ throw new errors.VellumError({
97
+ message: _response.error.errorMessage,
98
+ });
99
+ }
100
+ });
101
+ }
102
+ _getCustomAuthorizationHeaders() {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
105
+ return { X_API_KEY: apiKeyValue };
106
+ });
107
+ }
108
+ }
109
+ exports.Workspaces = Workspaces;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * - `AUTO_ACCEPT_FROM_SHARED_DOMAIN` - Auto-Accept from Shared Domain
6
+ * - `ALLOW_REQUESTS_FROM_SHARED_DOMAIN` - Allows Requests from Shared Domains
7
+ * - `REQUIRE_EXPLICIT_INVITE` - Require Explicit Invite
8
+ */
9
+ export declare type NewMemberJoinBehaviorEnum = "AUTO_ACCEPT_FROM_SHARED_DOMAIN" | "ALLOW_REQUESTS_FROM_SHARED_DOMAIN" | "REQUIRE_EXPLICIT_INVITE";
10
+ export declare const NewMemberJoinBehaviorEnum: {
11
+ readonly AutoAcceptFromSharedDomain: "AUTO_ACCEPT_FROM_SHARED_DOMAIN";
12
+ readonly AllowRequestsFromSharedDomain: "ALLOW_REQUESTS_FROM_SHARED_DOMAIN";
13
+ readonly RequireExplicitInvite: "REQUIRE_EXPLICIT_INVITE";
14
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.NewMemberJoinBehaviorEnum = void 0;
7
+ exports.NewMemberJoinBehaviorEnum = {
8
+ AutoAcceptFromSharedDomain: "AUTO_ACCEPT_FROM_SHARED_DOMAIN",
9
+ AllowRequestsFromSharedDomain: "ALLOW_REQUESTS_FROM_SHARED_DOMAIN",
10
+ RequireExplicitInvite: "REQUIRE_EXPLICIT_INVITE",
11
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface OrganizationRead {
6
+ id: string;
7
+ name: string;
8
+ allowStaffAccess?: boolean;
9
+ newMemberJoinBehavior: Vellum.NewMemberJoinBehaviorEnum;
10
+ }
@@ -13,5 +13,5 @@ export interface WorkflowResultEventOutputDataArray {
13
13
  /** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
14
14
  delta?: string;
15
15
  type: "ARRAY";
16
- value?: Vellum.ArrayVariableValueItem[];
16
+ value?: Vellum.VellumValue[];
17
17
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface WorkspaceRead {
5
+ id: string;
6
+ /** The name of the Workspace. */
7
+ name: string;
8
+ label: string;
9
+ created: Date;
10
+ }