vellum-ai 0.8.30 → 0.9.1

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 (237) hide show
  1. package/.mock/definition/__package__.yml +67 -42
  2. package/.mock/definition/containerImages.yml +122 -0
  3. package/.mock/openapi/openapi.yml +3627 -3761
  4. package/Client.d.ts +3 -0
  5. package/Client.js +39 -34
  6. package/api/resources/adHoc/client/Client.js +1 -1
  7. package/api/resources/containerImages/client/Client.d.ts +61 -0
  8. package/api/resources/containerImages/client/Client.js +231 -0
  9. package/api/resources/containerImages/client/index.d.ts +1 -0
  10. package/api/resources/containerImages/client/index.js +17 -0
  11. package/api/resources/containerImages/client/requests/ContainerImagesListRequest.d.ts +21 -0
  12. package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +16 -0
  13. package/api/resources/containerImages/client/requests/index.d.ts +2 -0
  14. package/api/resources/containerImages/client/requests/index.js +2 -0
  15. package/api/resources/containerImages/index.d.ts +1 -0
  16. package/api/resources/containerImages/index.js +17 -0
  17. package/api/resources/deployments/client/Client.js +5 -5
  18. package/api/resources/documentIndexes/client/Client.js +8 -8
  19. package/api/resources/documents/client/Client.js +5 -5
  20. package/api/resources/folderEntities/client/Client.js +2 -2
  21. package/api/resources/index.d.ts +2 -0
  22. package/api/resources/index.js +3 -1
  23. package/api/resources/metricDefinitions/client/Client.js +1 -1
  24. package/api/resources/sandboxes/client/Client.js +3 -3
  25. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  26. package/api/resources/testSuites/client/Client.js +4 -4
  27. package/api/resources/workflowDeployments/client/Client.js +4 -4
  28. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  29. package/api/resources/workflows/client/Client.js +1 -1
  30. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  31. package/api/types/ArrayInputRequest.d.ts +1 -1
  32. package/api/types/ArrayVellumValue.d.ts +1 -1
  33. package/api/types/ArrayVellumValueRequest.d.ts +1 -1
  34. package/api/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  35. package/api/types/ContainerImageRead.d.ts +14 -0
  36. package/api/types/EntityVisibility.d.ts +16 -0
  37. package/api/types/EntityVisibility.js +12 -0
  38. package/api/types/ExecutionArrayVellumValue.d.ts +1 -1
  39. package/api/types/NamedTestCaseArrayVariableValue.d.ts +1 -1
  40. package/api/types/NamedTestCaseArrayVariableValueRequest.d.ts +1 -1
  41. package/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
  42. package/api/types/NodeOutputCompiledArrayValue.d.ts +1 -1
  43. package/api/types/PaginatedContainerImageReadList.d.ts +10 -0
  44. package/api/types/TemplatingNodeArrayResult.d.ts +1 -1
  45. package/api/types/TerminalNodeArrayResult.d.ts +1 -1
  46. package/api/types/TestCaseArrayVariableValue.d.ts +1 -1
  47. package/api/types/TestSuiteRunExecutionArrayOutput.d.ts +1 -1
  48. package/api/types/VellumVariableType.d.ts +3 -1
  49. package/api/types/VellumVariableType.js +1 -0
  50. package/api/types/WorkflowOutputArray.d.ts +1 -1
  51. package/api/types/index.d.ts +3 -2
  52. package/api/types/index.js +3 -2
  53. package/dist/Client.d.ts +3 -0
  54. package/dist/Client.js +39 -34
  55. package/dist/api/resources/adHoc/client/Client.js +1 -1
  56. package/dist/api/resources/containerImages/client/Client.d.ts +61 -0
  57. package/dist/api/resources/containerImages/client/Client.js +231 -0
  58. package/dist/api/resources/containerImages/client/index.d.ts +1 -0
  59. package/dist/api/resources/containerImages/client/index.js +17 -0
  60. package/dist/api/resources/containerImages/client/requests/ContainerImagesListRequest.d.ts +21 -0
  61. package/dist/api/resources/containerImages/client/requests/ContainerImagesListRequest.js +5 -0
  62. package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +16 -0
  63. package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.js +5 -0
  64. package/dist/api/resources/containerImages/client/requests/index.d.ts +2 -0
  65. package/dist/api/resources/containerImages/client/requests/index.js +2 -0
  66. package/dist/api/resources/containerImages/index.d.ts +1 -0
  67. package/dist/api/resources/containerImages/index.js +17 -0
  68. package/dist/api/resources/deployments/client/Client.js +5 -5
  69. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  70. package/dist/api/resources/documents/client/Client.js +5 -5
  71. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  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.js +1 -1
  75. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  76. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  77. package/dist/api/resources/testSuites/client/Client.js +4 -4
  78. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  79. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  80. package/dist/api/resources/workflows/client/Client.js +1 -1
  81. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  82. package/dist/api/types/ArrayInputRequest.d.ts +1 -1
  83. package/dist/api/types/ArrayVellumValue.d.ts +1 -1
  84. package/dist/api/types/ArrayVellumValueRequest.d.ts +1 -1
  85. package/dist/api/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  86. package/dist/api/types/ContainerImageRead.d.ts +14 -0
  87. package/dist/api/types/ContainerImageRead.js +5 -0
  88. package/dist/api/types/EntityVisibility.d.ts +16 -0
  89. package/dist/api/types/EntityVisibility.js +12 -0
  90. package/dist/api/types/ExecutionArrayVellumValue.d.ts +1 -1
  91. package/dist/api/types/NamedTestCaseArrayVariableValue.d.ts +1 -1
  92. package/dist/api/types/NamedTestCaseArrayVariableValueRequest.d.ts +1 -1
  93. package/dist/api/types/NodeInputCompiledArrayValue.d.ts +1 -1
  94. package/dist/api/types/NodeOutputCompiledArrayValue.d.ts +1 -1
  95. package/dist/api/types/PaginatedContainerImageReadList.d.ts +10 -0
  96. package/dist/api/types/PaginatedContainerImageReadList.js +5 -0
  97. package/dist/api/types/TemplatingNodeArrayResult.d.ts +1 -1
  98. package/dist/api/types/TerminalNodeArrayResult.d.ts +1 -1
  99. package/dist/api/types/TestCaseArrayVariableValue.d.ts +1 -1
  100. package/dist/api/types/TestSuiteRunExecutionArrayOutput.d.ts +1 -1
  101. package/dist/api/types/VellumVariableType.d.ts +3 -1
  102. package/dist/api/types/VellumVariableType.js +1 -0
  103. package/dist/api/types/WorkflowOutputArray.d.ts +1 -1
  104. package/dist/api/types/index.d.ts +3 -2
  105. package/dist/api/types/index.js +3 -2
  106. package/dist/serialization/resources/containerImages/client/index.d.ts +1 -0
  107. package/dist/serialization/resources/containerImages/client/index.js +17 -0
  108. package/dist/serialization/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +14 -0
  109. package/dist/serialization/resources/containerImages/client/requests/PushContainerImageRequest.js +35 -0
  110. package/dist/serialization/resources/containerImages/client/requests/index.d.ts +1 -0
  111. package/dist/serialization/resources/containerImages/client/requests/index.js +5 -0
  112. package/dist/serialization/resources/containerImages/index.d.ts +1 -0
  113. package/dist/serialization/resources/containerImages/index.js +17 -0
  114. package/dist/serialization/resources/index.d.ts +2 -0
  115. package/dist/serialization/resources/index.js +3 -1
  116. package/dist/serialization/types/ArrayInputRequest.d.ts +1 -1
  117. package/dist/serialization/types/ArrayInputRequest.js +1 -1
  118. package/dist/serialization/types/ArrayVellumValue.d.ts +1 -1
  119. package/dist/serialization/types/ArrayVellumValue.js +1 -1
  120. package/dist/serialization/types/ArrayVellumValueRequest.d.ts +1 -1
  121. package/dist/serialization/types/ArrayVellumValueRequest.js +1 -1
  122. package/dist/serialization/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  123. package/dist/serialization/types/CodeExecutionNodeArrayResult.js +1 -1
  124. package/dist/serialization/types/CodeExecutorResponse.d.ts +1 -2
  125. package/dist/serialization/types/CodeExecutorResponse.js +2 -2
  126. package/dist/serialization/types/ContainerImageRead.d.ts +20 -0
  127. package/{serialization/types/ArrayVellumValueItem.js → dist/serialization/types/ContainerImageRead.js} +12 -21
  128. package/dist/serialization/types/EntityVisibility.d.ts +10 -0
  129. package/dist/serialization/types/{ArrayVellumValueItem.js → EntityVisibility.js} +2 -21
  130. package/dist/serialization/types/ExecutionArrayVellumValue.d.ts +1 -1
  131. package/dist/serialization/types/ExecutionArrayVellumValue.js +1 -1
  132. package/dist/serialization/types/NamedTestCaseArrayVariableValue.d.ts +1 -1
  133. package/dist/serialization/types/NamedTestCaseArrayVariableValue.js +1 -1
  134. package/dist/serialization/types/NamedTestCaseArrayVariableValueRequest.d.ts +1 -1
  135. package/dist/serialization/types/NamedTestCaseArrayVariableValueRequest.js +1 -1
  136. package/dist/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
  137. package/dist/serialization/types/NodeInputCompiledArrayValue.js +1 -1
  138. package/dist/serialization/types/NodeOutputCompiledArrayValue.d.ts +1 -1
  139. package/dist/serialization/types/NodeOutputCompiledArrayValue.js +1 -1
  140. package/dist/serialization/types/PaginatedContainerImageReadList.d.ts +16 -0
  141. package/dist/serialization/types/PaginatedContainerImageReadList.js +37 -0
  142. package/dist/serialization/types/TemplatingNodeArrayResult.d.ts +1 -1
  143. package/dist/serialization/types/TemplatingNodeArrayResult.js +1 -1
  144. package/dist/serialization/types/TerminalNodeArrayResult.d.ts +1 -1
  145. package/dist/serialization/types/TerminalNodeArrayResult.js +1 -1
  146. package/dist/serialization/types/TestCaseArrayVariableValue.d.ts +1 -1
  147. package/dist/serialization/types/TestCaseArrayVariableValue.js +1 -1
  148. package/dist/serialization/types/TestSuiteRunExecutionArrayOutput.d.ts +1 -1
  149. package/dist/serialization/types/TestSuiteRunExecutionArrayOutput.js +1 -1
  150. package/dist/serialization/types/VellumValueLogicalConditionRequest.d.ts +2 -3
  151. package/dist/serialization/types/VellumValueLogicalConditionRequest.js +3 -3
  152. package/dist/serialization/types/VellumVariable.d.ts +1 -2
  153. package/dist/serialization/types/VellumVariable.js +2 -2
  154. package/dist/serialization/types/VellumVariableRequest.d.ts +1 -2
  155. package/dist/serialization/types/VellumVariableRequest.js +2 -2
  156. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  157. package/dist/serialization/types/VellumVariableType.js +1 -0
  158. package/dist/serialization/types/WorkflowOutputArray.d.ts +1 -1
  159. package/dist/serialization/types/WorkflowOutputArray.js +1 -1
  160. package/dist/serialization/types/index.d.ts +3 -2
  161. package/dist/serialization/types/index.js +3 -2
  162. package/dist/version.d.ts +1 -1
  163. package/dist/version.js +1 -1
  164. package/package.json +1 -1
  165. package/reference.md +195 -0
  166. package/serialization/resources/containerImages/client/index.d.ts +1 -0
  167. package/serialization/resources/containerImages/client/index.js +17 -0
  168. package/serialization/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +14 -0
  169. package/serialization/resources/containerImages/client/requests/PushContainerImageRequest.js +35 -0
  170. package/serialization/resources/containerImages/client/requests/index.d.ts +1 -0
  171. package/serialization/resources/containerImages/client/requests/index.js +5 -0
  172. package/serialization/resources/containerImages/index.d.ts +1 -0
  173. package/serialization/resources/containerImages/index.js +17 -0
  174. package/serialization/resources/index.d.ts +2 -0
  175. package/serialization/resources/index.js +3 -1
  176. package/serialization/types/ArrayInputRequest.d.ts +1 -1
  177. package/serialization/types/ArrayInputRequest.js +1 -1
  178. package/serialization/types/ArrayVellumValue.d.ts +1 -1
  179. package/serialization/types/ArrayVellumValue.js +1 -1
  180. package/serialization/types/ArrayVellumValueRequest.d.ts +1 -1
  181. package/serialization/types/ArrayVellumValueRequest.js +1 -1
  182. package/serialization/types/CodeExecutionNodeArrayResult.d.ts +1 -1
  183. package/serialization/types/CodeExecutionNodeArrayResult.js +1 -1
  184. package/serialization/types/CodeExecutorResponse.d.ts +1 -2
  185. package/serialization/types/CodeExecutorResponse.js +2 -2
  186. package/serialization/types/ContainerImageRead.d.ts +20 -0
  187. package/serialization/types/ContainerImageRead.js +41 -0
  188. package/serialization/types/EntityVisibility.d.ts +10 -0
  189. package/serialization/types/EntityVisibility.js +31 -0
  190. package/serialization/types/ExecutionArrayVellumValue.d.ts +1 -1
  191. package/serialization/types/ExecutionArrayVellumValue.js +1 -1
  192. package/serialization/types/NamedTestCaseArrayVariableValue.d.ts +1 -1
  193. package/serialization/types/NamedTestCaseArrayVariableValue.js +1 -1
  194. package/serialization/types/NamedTestCaseArrayVariableValueRequest.d.ts +1 -1
  195. package/serialization/types/NamedTestCaseArrayVariableValueRequest.js +1 -1
  196. package/serialization/types/NodeInputCompiledArrayValue.d.ts +1 -1
  197. package/serialization/types/NodeInputCompiledArrayValue.js +1 -1
  198. package/serialization/types/NodeOutputCompiledArrayValue.d.ts +1 -1
  199. package/serialization/types/NodeOutputCompiledArrayValue.js +1 -1
  200. package/serialization/types/PaginatedContainerImageReadList.d.ts +16 -0
  201. package/serialization/types/PaginatedContainerImageReadList.js +37 -0
  202. package/serialization/types/TemplatingNodeArrayResult.d.ts +1 -1
  203. package/serialization/types/TemplatingNodeArrayResult.js +1 -1
  204. package/serialization/types/TerminalNodeArrayResult.d.ts +1 -1
  205. package/serialization/types/TerminalNodeArrayResult.js +1 -1
  206. package/serialization/types/TestCaseArrayVariableValue.d.ts +1 -1
  207. package/serialization/types/TestCaseArrayVariableValue.js +1 -1
  208. package/serialization/types/TestSuiteRunExecutionArrayOutput.d.ts +1 -1
  209. package/serialization/types/TestSuiteRunExecutionArrayOutput.js +1 -1
  210. package/serialization/types/VellumValueLogicalConditionRequest.d.ts +2 -3
  211. package/serialization/types/VellumValueLogicalConditionRequest.js +3 -3
  212. package/serialization/types/VellumVariable.d.ts +1 -2
  213. package/serialization/types/VellumVariable.js +2 -2
  214. package/serialization/types/VellumVariableRequest.d.ts +1 -2
  215. package/serialization/types/VellumVariableRequest.js +2 -2
  216. package/serialization/types/VellumVariableType.d.ts +1 -1
  217. package/serialization/types/VellumVariableType.js +1 -0
  218. package/serialization/types/WorkflowOutputArray.d.ts +1 -1
  219. package/serialization/types/WorkflowOutputArray.js +1 -1
  220. package/serialization/types/index.d.ts +3 -2
  221. package/serialization/types/index.js +3 -2
  222. package/version.d.ts +1 -1
  223. package/version.js +1 -1
  224. package/api/types/ArrayVellumValueItem.d.ts +0 -5
  225. package/api/types/ArrayVellumValueItemRequest.d.ts +0 -5
  226. package/dist/api/types/ArrayVellumValueItem.d.ts +0 -5
  227. package/dist/api/types/ArrayVellumValueItemRequest.d.ts +0 -5
  228. package/dist/serialization/types/ArrayVellumValueItem.d.ts +0 -18
  229. package/dist/serialization/types/ArrayVellumValueItemRequest.d.ts +0 -18
  230. package/dist/serialization/types/ArrayVellumValueItemRequest.js +0 -50
  231. package/serialization/types/ArrayVellumValueItem.d.ts +0 -18
  232. package/serialization/types/ArrayVellumValueItemRequest.d.ts +0 -18
  233. package/serialization/types/ArrayVellumValueItemRequest.js +0 -50
  234. /package/api/{types/ArrayVellumValueItem.js → resources/containerImages/client/requests/ContainerImagesListRequest.js} +0 -0
  235. /package/api/{types/ArrayVellumValueItemRequest.js → resources/containerImages/client/requests/PushContainerImageRequest.js} +0 -0
  236. /package/{dist/api/types/ArrayVellumValueItem.js → api/types/ContainerImageRead.js} +0 -0
  237. /package/{dist/api/types/ArrayVellumValueItemRequest.js → api/types/PaginatedContainerImageReadList.js} +0 -0
@@ -0,0 +1,231 @@
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.ContainerImages = 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 ContainerImages {
48
+ constructor(_options = {}) {
49
+ this._options = _options;
50
+ }
51
+ /**
52
+ * Retrieve a list of container images for the organization.
53
+ *
54
+ * @param {Vellum.ContainerImagesListRequest} request
55
+ * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
57
+ * @example
58
+ * await client.containerImages.list()
59
+ */
60
+ list(request = {}, requestOptions) {
61
+ var _a;
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const { limit, offset, ordering } = request;
64
+ const _queryParams = {};
65
+ if (limit != null) {
66
+ _queryParams["limit"] = limit.toString();
67
+ }
68
+ if (offset != null) {
69
+ _queryParams["offset"] = offset.toString();
70
+ }
71
+ if (ordering != null) {
72
+ _queryParams["ordering"] = ordering;
73
+ }
74
+ const _response = yield core.fetcher({
75
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
76
+ .default, "v1/container-images"),
77
+ method: "GET",
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
+ contentType: "application/json",
80
+ queryParameters: _queryParams,
81
+ requestType: "json",
82
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
83
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
+ });
86
+ if (_response.ok) {
87
+ return serializers.PaginatedContainerImageReadList.parseOrThrow(_response.body, {
88
+ unrecognizedObjectKeys: "passthrough",
89
+ allowUnrecognizedUnionMembers: true,
90
+ allowUnrecognizedEnumValues: true,
91
+ breadcrumbsPrefix: ["response"],
92
+ });
93
+ }
94
+ if (_response.error.reason === "status-code") {
95
+ throw new errors.VellumError({
96
+ statusCode: _response.error.statusCode,
97
+ body: _response.error.body,
98
+ });
99
+ }
100
+ switch (_response.error.reason) {
101
+ case "non-json":
102
+ throw new errors.VellumError({
103
+ statusCode: _response.error.statusCode,
104
+ body: _response.error.rawBody,
105
+ });
106
+ case "timeout":
107
+ throw new errors.VellumTimeoutError();
108
+ case "unknown":
109
+ throw new errors.VellumError({
110
+ message: _response.error.errorMessage,
111
+ });
112
+ }
113
+ });
114
+ }
115
+ /**
116
+ * Retrieve a Container Image by its ID or name.
117
+ *
118
+ * @param {string} id - Either the Container Image's ID or its unique name
119
+ * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
120
+ *
121
+ * @example
122
+ * await client.containerImages.retrieve("id")
123
+ */
124
+ retrieve(id, requestOptions) {
125
+ var _a;
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const _response = yield core.fetcher({
128
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
129
+ .default, `v1/container-images/${encodeURIComponent(id)}`),
130
+ method: "GET",
131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
+ contentType: "application/json",
133
+ requestType: "json",
134
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
135
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
136
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
137
+ });
138
+ if (_response.ok) {
139
+ return serializers.ContainerImageRead.parseOrThrow(_response.body, {
140
+ unrecognizedObjectKeys: "passthrough",
141
+ allowUnrecognizedUnionMembers: true,
142
+ allowUnrecognizedEnumValues: true,
143
+ breadcrumbsPrefix: ["response"],
144
+ });
145
+ }
146
+ if (_response.error.reason === "status-code") {
147
+ throw new errors.VellumError({
148
+ statusCode: _response.error.statusCode,
149
+ body: _response.error.body,
150
+ });
151
+ }
152
+ switch (_response.error.reason) {
153
+ case "non-json":
154
+ throw new errors.VellumError({
155
+ statusCode: _response.error.statusCode,
156
+ body: _response.error.rawBody,
157
+ });
158
+ case "timeout":
159
+ throw new errors.VellumTimeoutError();
160
+ case "unknown":
161
+ throw new errors.VellumError({
162
+ message: _response.error.errorMessage,
163
+ });
164
+ }
165
+ });
166
+ }
167
+ /**
168
+ * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
169
+ *
170
+ * @param {Vellum.PushContainerImageRequest} request
171
+ * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
172
+ *
173
+ * @example
174
+ * await client.containerImages.pushContainerImage({
175
+ * name: "name",
176
+ * sha: "sha",
177
+ * tags: ["tags"]
178
+ * })
179
+ */
180
+ pushContainerImage(request, requestOptions) {
181
+ var _a;
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const _response = yield core.fetcher({
184
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
+ .default, "v1/container-images/push"),
186
+ method: "POST",
187
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
+ contentType: "application/json",
189
+ requestType: "json",
190
+ body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
191
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
192
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
193
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
194
+ });
195
+ if (_response.ok) {
196
+ return serializers.ContainerImageRead.parseOrThrow(_response.body, {
197
+ unrecognizedObjectKeys: "passthrough",
198
+ allowUnrecognizedUnionMembers: true,
199
+ allowUnrecognizedEnumValues: true,
200
+ breadcrumbsPrefix: ["response"],
201
+ });
202
+ }
203
+ if (_response.error.reason === "status-code") {
204
+ throw new errors.VellumError({
205
+ statusCode: _response.error.statusCode,
206
+ body: _response.error.body,
207
+ });
208
+ }
209
+ switch (_response.error.reason) {
210
+ case "non-json":
211
+ throw new errors.VellumError({
212
+ statusCode: _response.error.statusCode,
213
+ body: _response.error.rawBody,
214
+ });
215
+ case "timeout":
216
+ throw new errors.VellumTimeoutError();
217
+ case "unknown":
218
+ throw new errors.VellumError({
219
+ message: _response.error.errorMessage,
220
+ });
221
+ }
222
+ });
223
+ }
224
+ _getCustomAuthorizationHeaders() {
225
+ return __awaiter(this, void 0, void 0, function* () {
226
+ const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
227
+ return { X_API_KEY: apiKeyValue };
228
+ });
229
+ }
230
+ }
231
+ exports.ContainerImages = ContainerImages;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ContainerImagesListRequest {
9
+ /**
10
+ * Number of results to return per page.
11
+ */
12
+ limit?: number;
13
+ /**
14
+ * The initial index from which to return the results.
15
+ */
16
+ offset?: number;
17
+ /**
18
+ * Which field to use when ordering the results.
19
+ */
20
+ ordering?: string;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * name: "name",
8
+ * sha: "sha",
9
+ * tags: ["tags"]
10
+ * }
11
+ */
12
+ export interface PushContainerImageRequest {
13
+ name: string;
14
+ sha: string;
15
+ tags: string[];
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { type ContainerImagesListRequest } from "./ContainerImagesListRequest";
2
+ export { type PushContainerImageRequest } from "./PushContainerImageRequest";
@@ -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);
@@ -79,7 +79,7 @@ class Deployments {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/deployments"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Deployments {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/deployments/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -185,7 +185,7 @@ class Deployments {
185
185
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
186
186
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
187
187
  method: "GET",
188
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
189
189
  contentType: "application/json",
190
190
  requestType: "json",
191
191
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -239,7 +239,7 @@ class Deployments {
239
239
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
240
240
  .default, `v1/deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
241
241
  method: "PATCH",
242
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
242
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -314,7 +314,7 @@ class Deployments {
314
314
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
315
315
  .default, "v1/deployments/provider-payload"),
316
316
  method: "POST",
317
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
317
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
@@ -81,7 +81,7 @@ class DocumentIndexes {
81
81
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
82
82
  .default, "v1/document-indexes"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -196,7 +196,7 @@ class DocumentIndexes {
196
196
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
197
197
  .default, "v1/document-indexes"),
198
198
  method: "POST",
199
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
199
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
200
200
  contentType: "application/json",
201
201
  requestType: "json",
202
202
  body: serializers.DocumentIndexCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -249,7 +249,7 @@ class DocumentIndexes {
249
249
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
250
250
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
251
251
  method: "GET",
252
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -304,7 +304,7 @@ class DocumentIndexes {
304
304
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
305
305
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
306
306
  method: "PUT",
307
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
307
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
308
308
  contentType: "application/json",
309
309
  requestType: "json",
310
310
  body: serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -357,7 +357,7 @@ class DocumentIndexes {
357
357
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
358
358
  .documents, `v1/document-indexes/${encodeURIComponent(id)}`),
359
359
  method: "DELETE",
360
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
360
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
361
361
  contentType: "application/json",
362
362
  requestType: "json",
363
363
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -405,7 +405,7 @@ class DocumentIndexes {
405
405
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
406
406
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
407
407
  method: "PATCH",
408
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
408
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
409
409
  contentType: "application/json",
410
410
  requestType: "json",
411
411
  body: serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
@@ -461,7 +461,7 @@ class DocumentIndexes {
461
461
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
462
462
  .default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
463
463
  method: "POST",
464
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
464
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
465
465
  contentType: "application/json",
466
466
  requestType: "json",
467
467
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -509,7 +509,7 @@ class DocumentIndexes {
509
509
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
510
510
  .documents, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
511
511
  method: "DELETE",
512
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
512
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
513
  contentType: "application/json",
514
514
  requestType: "json",
515
515
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -79,7 +79,7 @@ class Documents {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/documents"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  requestType: "json",
@@ -132,7 +132,7 @@ class Documents {
132
132
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
133
133
  .default, `v1/documents/${encodeURIComponent(id)}`),
134
134
  method: "GET",
135
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
136
  contentType: "application/json",
137
137
  requestType: "json",
138
138
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -184,7 +184,7 @@ class Documents {
184
184
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
185
  .documents, `v1/documents/${encodeURIComponent(id)}`),
186
186
  method: "DELETE",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -232,7 +232,7 @@ class Documents {
232
232
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
233
233
  .default, `v1/documents/${encodeURIComponent(id)}`),
234
234
  method: "PATCH",
235
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
235
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
236
236
  contentType: "application/json",
237
237
  requestType: "json",
238
238
  body: serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -322,7 +322,7 @@ class Documents {
322
322
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
323
323
  .documents, "v1/upload-document"),
324
324
  method: "POST",
325
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
325
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
326
326
  requestType: "file",
327
327
  duplex: _maybeEncodedRequest.duplex,
328
328
  body: _maybeEncodedRequest.body,
@@ -81,7 +81,7 @@ class FolderEntities {
81
81
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
82
82
  .default, "v1/folder-entities"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -145,7 +145,7 @@ class FolderEntities {
145
145
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
146
146
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
147
147
  method: "POST",
148
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
148
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -7,6 +7,7 @@ export * from "./folderEntities/types";
7
7
  export * as workflowDeployments from "./workflowDeployments";
8
8
  export * from "./workflowDeployments/types";
9
9
  export * as adHoc from "./adHoc";
10
+ export * as containerImages from "./containerImages";
10
11
  export * as documents from "./documents";
11
12
  export * as metricDefinitions from "./metricDefinitions";
12
13
  export * as sandboxes from "./sandboxes";
@@ -16,6 +17,7 @@ export * as workflowSandboxes from "./workflowSandboxes";
16
17
  export * as workflows from "./workflows";
17
18
  export * as workspaceSecrets from "./workspaceSecrets";
18
19
  export * from "./adHoc/client/requests";
20
+ export * from "./containerImages/client/requests";
19
21
  export * from "./deployments/client/requests";
20
22
  export * from "./documentIndexes/client/requests";
21
23
  export * from "./documents/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.workspaceSecrets = exports.workflows = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.adHoc = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
29
+ exports.workspaceSecrets = exports.workflows = exports.workflowSandboxes = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
32
  exports.documentIndexes = __importStar(require("./documentIndexes"));
@@ -36,6 +36,7 @@ __exportStar(require("./folderEntities/types"), exports);
36
36
  exports.workflowDeployments = __importStar(require("./workflowDeployments"));
37
37
  __exportStar(require("./workflowDeployments/types"), exports);
38
38
  exports.adHoc = __importStar(require("./adHoc"));
39
+ exports.containerImages = __importStar(require("./containerImages"));
39
40
  exports.documents = __importStar(require("./documents"));
40
41
  exports.metricDefinitions = __importStar(require("./metricDefinitions"));
41
42
  exports.sandboxes = __importStar(require("./sandboxes"));
@@ -45,6 +46,7 @@ exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
45
46
  exports.workflows = __importStar(require("./workflows"));
46
47
  exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
47
48
  __exportStar(require("./adHoc/client/requests"), exports);
49
+ __exportStar(require("./containerImages/client/requests"), exports);
48
50
  __exportStar(require("./deployments/client/requests"), exports);
49
51
  __exportStar(require("./documentIndexes/client/requests"), exports);
50
52
  __exportStar(require("./documents/client/requests"), exports);
@@ -71,7 +71,7 @@ class MetricDefinitions {
71
71
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
72
72
  .default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
73
73
  method: "POST",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.8.30", "User-Agent": "vellum-ai/0.8.30", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "v0.9.1", "User-Agent": "vellum-ai/v0.9.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  body: serializers.ExecuteMetricDefinitionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),