vellum-ai 0.9.0 → 0.9.2

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 (182) hide show
  1. package/.mock/definition/__package__.yml +85 -0
  2. package/.mock/definition/containerImages.yml +122 -0
  3. package/.mock/definition/workflows.yml +4 -0
  4. package/.mock/openapi/openapi.yml +238 -0
  5. package/Client.d.ts +3 -0
  6. package/Client.js +39 -34
  7. package/api/resources/adHoc/client/Client.js +1 -1
  8. package/api/resources/containerImages/client/Client.d.ts +61 -0
  9. package/api/resources/containerImages/client/Client.js +231 -0
  10. package/api/resources/containerImages/client/index.d.ts +1 -0
  11. package/api/resources/containerImages/client/index.js +17 -0
  12. package/api/resources/containerImages/client/requests/ContainerImagesListRequest.d.ts +21 -0
  13. package/api/resources/containerImages/client/requests/ContainerImagesListRequest.js +5 -0
  14. package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +16 -0
  15. package/api/resources/containerImages/client/requests/PushContainerImageRequest.js +5 -0
  16. package/api/resources/containerImages/client/requests/index.d.ts +2 -0
  17. package/api/resources/containerImages/client/requests/index.js +2 -0
  18. package/api/resources/containerImages/index.d.ts +1 -0
  19. package/api/resources/containerImages/index.js +17 -0
  20. package/api/resources/deployments/client/Client.js +5 -5
  21. package/api/resources/documentIndexes/client/Client.js +8 -8
  22. package/api/resources/documents/client/Client.js +5 -5
  23. package/api/resources/folderEntities/client/Client.js +2 -2
  24. package/api/resources/index.d.ts +2 -0
  25. package/api/resources/index.js +3 -1
  26. package/api/resources/metricDefinitions/client/Client.js +1 -1
  27. package/api/resources/sandboxes/client/Client.js +3 -3
  28. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  29. package/api/resources/testSuites/client/Client.js +4 -4
  30. package/api/resources/workflowDeployments/client/Client.js +4 -4
  31. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  32. package/api/resources/workflows/client/Client.js +1 -1
  33. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  34. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  35. package/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  36. package/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  37. package/api/types/AudioChatMessageContent.d.ts +11 -0
  38. package/api/types/AudioChatMessageContent.js +5 -0
  39. package/api/types/AudioChatMessageContentRequest.d.ts +11 -0
  40. package/api/types/AudioChatMessageContentRequest.js +5 -0
  41. package/api/types/ChatMessageContent.d.ts +1 -1
  42. package/api/types/ChatMessageContentRequest.d.ts +1 -1
  43. package/api/types/ContainerImageRead.d.ts +14 -0
  44. package/api/types/ContainerImageRead.js +5 -0
  45. package/api/types/EntityVisibility.d.ts +16 -0
  46. package/api/types/EntityVisibility.js +12 -0
  47. package/api/types/PaginatedContainerImageReadList.d.ts +10 -0
  48. package/api/types/PaginatedContainerImageReadList.js +5 -0
  49. package/api/types/VellumAudio.d.ts +7 -0
  50. package/api/types/VellumAudio.js +5 -0
  51. package/api/types/VellumAudioRequest.d.ts +7 -0
  52. package/api/types/VellumAudioRequest.js +5 -0
  53. package/api/types/index.d.ts +7 -0
  54. package/api/types/index.js +7 -0
  55. package/dist/Client.d.ts +3 -0
  56. package/dist/Client.js +39 -34
  57. package/dist/api/resources/adHoc/client/Client.js +1 -1
  58. package/dist/api/resources/containerImages/client/Client.d.ts +61 -0
  59. package/dist/api/resources/containerImages/client/Client.js +231 -0
  60. package/dist/api/resources/containerImages/client/index.d.ts +1 -0
  61. package/dist/api/resources/containerImages/client/index.js +17 -0
  62. package/dist/api/resources/containerImages/client/requests/ContainerImagesListRequest.d.ts +21 -0
  63. package/dist/api/resources/containerImages/client/requests/ContainerImagesListRequest.js +5 -0
  64. package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +16 -0
  65. package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.js +5 -0
  66. package/dist/api/resources/containerImages/client/requests/index.d.ts +2 -0
  67. package/dist/api/resources/containerImages/client/requests/index.js +2 -0
  68. package/dist/api/resources/containerImages/index.d.ts +1 -0
  69. package/dist/api/resources/containerImages/index.js +17 -0
  70. package/dist/api/resources/deployments/client/Client.js +5 -5
  71. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  72. package/dist/api/resources/documents/client/Client.js +5 -5
  73. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  74. package/dist/api/resources/index.d.ts +2 -0
  75. package/dist/api/resources/index.js +3 -1
  76. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  77. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  78. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  79. package/dist/api/resources/testSuites/client/Client.js +4 -4
  80. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  81. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  82. package/dist/api/resources/workflows/client/Client.js +1 -1
  83. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  84. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  85. package/dist/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  86. package/dist/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  87. package/dist/api/types/AudioChatMessageContent.d.ts +11 -0
  88. package/dist/api/types/AudioChatMessageContent.js +5 -0
  89. package/dist/api/types/AudioChatMessageContentRequest.d.ts +11 -0
  90. package/dist/api/types/AudioChatMessageContentRequest.js +5 -0
  91. package/dist/api/types/ChatMessageContent.d.ts +1 -1
  92. package/dist/api/types/ChatMessageContentRequest.d.ts +1 -1
  93. package/dist/api/types/ContainerImageRead.d.ts +14 -0
  94. package/dist/api/types/ContainerImageRead.js +5 -0
  95. package/dist/api/types/EntityVisibility.d.ts +16 -0
  96. package/dist/api/types/EntityVisibility.js +12 -0
  97. package/dist/api/types/PaginatedContainerImageReadList.d.ts +10 -0
  98. package/dist/api/types/PaginatedContainerImageReadList.js +5 -0
  99. package/dist/api/types/VellumAudio.d.ts +7 -0
  100. package/dist/api/types/VellumAudio.js +5 -0
  101. package/dist/api/types/VellumAudioRequest.d.ts +7 -0
  102. package/dist/api/types/VellumAudioRequest.js +5 -0
  103. package/dist/api/types/index.d.ts +7 -0
  104. package/dist/api/types/index.js +7 -0
  105. package/dist/serialization/resources/containerImages/client/index.d.ts +1 -0
  106. package/dist/serialization/resources/containerImages/client/index.js +17 -0
  107. package/dist/serialization/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +14 -0
  108. package/dist/serialization/resources/containerImages/client/requests/PushContainerImageRequest.js +35 -0
  109. package/dist/serialization/resources/containerImages/client/requests/index.d.ts +1 -0
  110. package/dist/serialization/resources/containerImages/client/requests/index.js +5 -0
  111. package/dist/serialization/resources/containerImages/index.d.ts +1 -0
  112. package/dist/serialization/resources/containerImages/index.js +17 -0
  113. package/dist/serialization/resources/index.d.ts +2 -0
  114. package/dist/serialization/resources/index.js +3 -1
  115. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  116. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +1 -0
  117. package/dist/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
  118. package/dist/serialization/types/ArrayChatMessageContentItem.js +2 -0
  119. package/dist/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
  120. package/dist/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
  121. package/dist/serialization/types/AudioChatMessageContent.d.ts +14 -0
  122. package/dist/serialization/types/AudioChatMessageContent.js +35 -0
  123. package/dist/serialization/types/AudioChatMessageContentRequest.d.ts +14 -0
  124. package/dist/serialization/types/AudioChatMessageContentRequest.js +35 -0
  125. package/dist/serialization/types/ChatMessageContent.d.ts +2 -1
  126. package/dist/serialization/types/ChatMessageContent.js +2 -0
  127. package/dist/serialization/types/ChatMessageContentRequest.d.ts +2 -1
  128. package/dist/serialization/types/ChatMessageContentRequest.js +2 -0
  129. package/dist/serialization/types/ContainerImageRead.d.ts +20 -0
  130. package/dist/serialization/types/ContainerImageRead.js +41 -0
  131. package/dist/serialization/types/EntityVisibility.d.ts +10 -0
  132. package/dist/serialization/types/EntityVisibility.js +31 -0
  133. package/dist/serialization/types/PaginatedContainerImageReadList.d.ts +16 -0
  134. package/dist/serialization/types/PaginatedContainerImageReadList.js +37 -0
  135. package/dist/serialization/types/VellumAudio.d.ts +13 -0
  136. package/dist/serialization/types/VellumAudio.js +34 -0
  137. package/dist/serialization/types/VellumAudioRequest.d.ts +13 -0
  138. package/dist/serialization/types/VellumAudioRequest.js +34 -0
  139. package/dist/serialization/types/index.d.ts +7 -0
  140. package/dist/serialization/types/index.js +7 -0
  141. package/dist/version.d.ts +1 -1
  142. package/dist/version.js +1 -1
  143. package/package.json +1 -1
  144. package/reference.md +195 -0
  145. package/serialization/resources/containerImages/client/index.d.ts +1 -0
  146. package/serialization/resources/containerImages/client/index.js +17 -0
  147. package/serialization/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +14 -0
  148. package/serialization/resources/containerImages/client/requests/PushContainerImageRequest.js +35 -0
  149. package/serialization/resources/containerImages/client/requests/index.d.ts +1 -0
  150. package/serialization/resources/containerImages/client/requests/index.js +5 -0
  151. package/serialization/resources/containerImages/index.d.ts +1 -0
  152. package/serialization/resources/containerImages/index.js +17 -0
  153. package/serialization/resources/index.d.ts +2 -0
  154. package/serialization/resources/index.js +3 -1
  155. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  156. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +1 -0
  157. package/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
  158. package/serialization/types/ArrayChatMessageContentItem.js +2 -0
  159. package/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
  160. package/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
  161. package/serialization/types/AudioChatMessageContent.d.ts +14 -0
  162. package/serialization/types/AudioChatMessageContent.js +35 -0
  163. package/serialization/types/AudioChatMessageContentRequest.d.ts +14 -0
  164. package/serialization/types/AudioChatMessageContentRequest.js +35 -0
  165. package/serialization/types/ChatMessageContent.d.ts +2 -1
  166. package/serialization/types/ChatMessageContent.js +2 -0
  167. package/serialization/types/ChatMessageContentRequest.d.ts +2 -1
  168. package/serialization/types/ChatMessageContentRequest.js +2 -0
  169. package/serialization/types/ContainerImageRead.d.ts +20 -0
  170. package/serialization/types/ContainerImageRead.js +41 -0
  171. package/serialization/types/EntityVisibility.d.ts +10 -0
  172. package/serialization/types/EntityVisibility.js +31 -0
  173. package/serialization/types/PaginatedContainerImageReadList.d.ts +16 -0
  174. package/serialization/types/PaginatedContainerImageReadList.js +37 -0
  175. package/serialization/types/VellumAudio.d.ts +13 -0
  176. package/serialization/types/VellumAudio.js +34 -0
  177. package/serialization/types/VellumAudioRequest.d.ts +13 -0
  178. package/serialization/types/VellumAudioRequest.js +34 -0
  179. package/serialization/types/index.d.ts +7 -0
  180. package/serialization/types/index.js +7 -0
  181. package/version.d.ts +1 -1
  182. package/version.js +1 -1
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VellumAudio {
5
+ src: string;
6
+ metadata?: Record<string, unknown>;
7
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VellumAudioRequest {
5
+ src: string;
6
+ metadata?: Record<string, unknown>;
7
+ }
@@ -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 });
@@ -16,6 +16,8 @@ export * from "./ArrayVariableValue";
16
16
  export * from "./ArrayVariableValueItem";
17
17
  export * from "./ArrayVellumValue";
18
18
  export * from "./ArrayVellumValueRequest";
19
+ export * from "./AudioChatMessageContent";
20
+ export * from "./AudioChatMessageContentRequest";
19
21
  export * from "./BasicVectorizerIntfloatMultilingualE5Large";
20
22
  export * from "./BasicVectorizerIntfloatMultilingualE5LargeRequest";
21
23
  export * from "./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1";
@@ -54,6 +56,7 @@ export * from "./CompilePromptMeta";
54
56
  export * from "./ConditionCombinator";
55
57
  export * from "./ConditionalNodeResult";
56
58
  export * from "./ConditionalNodeResultData";
59
+ export * from "./ContainerImageRead";
57
60
  export * from "./CreateTestSuiteTestCaseRequest";
58
61
  export * from "./DeploymentProviderPayloadResponsePayload";
59
62
  export * from "./DeploymentProviderPayloadResponse";
@@ -70,6 +73,7 @@ export * from "./DocumentRead";
70
73
  export * from "./DocumentStatus";
71
74
  export * from "./EnrichedNormalizedCompletion";
72
75
  export * from "./EntityStatus";
76
+ export * from "./EntityVisibility";
73
77
  export * from "./EnvironmentEnum";
74
78
  export * from "./EphemeralPromptCacheConfigRequest";
75
79
  export * from "./EphemeralPromptCacheConfigTypeEnum";
@@ -229,6 +233,7 @@ export * from "./OpenAiVectorizerTextEmbedding3Small";
229
233
  export * from "./OpenAiVectorizerTextEmbedding3SmallRequest";
230
234
  export * from "./OpenAiVectorizerTextEmbeddingAda002";
231
235
  export * from "./OpenAiVectorizerTextEmbeddingAda002Request";
236
+ export * from "./PaginatedContainerImageReadList";
232
237
  export * from "./PaginatedDocumentIndexReadList";
233
238
  export * from "./PaginatedFolderEntityList";
234
239
  export * from "./PaginatedSlimDeploymentReadList";
@@ -406,6 +411,8 @@ export * from "./UnitEnum";
406
411
  export * from "./UploadDocumentResponse";
407
412
  export * from "./UpsertTestSuiteTestCaseRequest";
408
413
  export * from "./VariablePromptBlockRequest";
414
+ export * from "./VellumAudio";
415
+ export * from "./VellumAudioRequest";
409
416
  export * from "./VellumError";
410
417
  export * from "./VellumErrorCodeEnum";
411
418
  export * from "./VellumErrorRequest";
@@ -32,6 +32,8 @@ __exportStar(require("./ArrayVariableValue"), exports);
32
32
  __exportStar(require("./ArrayVariableValueItem"), exports);
33
33
  __exportStar(require("./ArrayVellumValue"), exports);
34
34
  __exportStar(require("./ArrayVellumValueRequest"), exports);
35
+ __exportStar(require("./AudioChatMessageContent"), exports);
36
+ __exportStar(require("./AudioChatMessageContentRequest"), exports);
35
37
  __exportStar(require("./BasicVectorizerIntfloatMultilingualE5Large"), exports);
36
38
  __exportStar(require("./BasicVectorizerIntfloatMultilingualE5LargeRequest"), exports);
37
39
  __exportStar(require("./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1"), exports);
@@ -70,6 +72,7 @@ __exportStar(require("./CompilePromptMeta"), exports);
70
72
  __exportStar(require("./ConditionCombinator"), exports);
71
73
  __exportStar(require("./ConditionalNodeResult"), exports);
72
74
  __exportStar(require("./ConditionalNodeResultData"), exports);
75
+ __exportStar(require("./ContainerImageRead"), exports);
73
76
  __exportStar(require("./CreateTestSuiteTestCaseRequest"), exports);
74
77
  __exportStar(require("./DeploymentProviderPayloadResponsePayload"), exports);
75
78
  __exportStar(require("./DeploymentProviderPayloadResponse"), exports);
@@ -86,6 +89,7 @@ __exportStar(require("./DocumentRead"), exports);
86
89
  __exportStar(require("./DocumentStatus"), exports);
87
90
  __exportStar(require("./EnrichedNormalizedCompletion"), exports);
88
91
  __exportStar(require("./EntityStatus"), exports);
92
+ __exportStar(require("./EntityVisibility"), exports);
89
93
  __exportStar(require("./EnvironmentEnum"), exports);
90
94
  __exportStar(require("./EphemeralPromptCacheConfigRequest"), exports);
91
95
  __exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
@@ -245,6 +249,7 @@ __exportStar(require("./OpenAiVectorizerTextEmbedding3Small"), exports);
245
249
  __exportStar(require("./OpenAiVectorizerTextEmbedding3SmallRequest"), exports);
246
250
  __exportStar(require("./OpenAiVectorizerTextEmbeddingAda002"), exports);
247
251
  __exportStar(require("./OpenAiVectorizerTextEmbeddingAda002Request"), exports);
252
+ __exportStar(require("./PaginatedContainerImageReadList"), exports);
248
253
  __exportStar(require("./PaginatedDocumentIndexReadList"), exports);
249
254
  __exportStar(require("./PaginatedFolderEntityList"), exports);
250
255
  __exportStar(require("./PaginatedSlimDeploymentReadList"), exports);
@@ -422,6 +427,8 @@ __exportStar(require("./UnitEnum"), exports);
422
427
  __exportStar(require("./UploadDocumentResponse"), exports);
423
428
  __exportStar(require("./UpsertTestSuiteTestCaseRequest"), exports);
424
429
  __exportStar(require("./VariablePromptBlockRequest"), exports);
430
+ __exportStar(require("./VellumAudio"), exports);
431
+ __exportStar(require("./VellumAudioRequest"), exports);
425
432
  __exportStar(require("./VellumError"), exports);
426
433
  __exportStar(require("./VellumErrorCodeEnum"), exports);
427
434
  __exportStar(require("./VellumErrorRequest"), exports);
package/dist/Client.d.ts CHANGED
@@ -5,6 +5,7 @@ import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import * as Vellum from "./api/index";
7
7
  import { AdHoc } from "./api/resources/adHoc/client/Client";
8
+ import { ContainerImages } from "./api/resources/containerImages/client/Client";
8
9
  import { Deployments } from "./api/resources/deployments/client/Client";
9
10
  import { DocumentIndexes } from "./api/resources/documentIndexes/client/Client";
10
11
  import { Documents } from "./api/resources/documents/client/Client";
@@ -189,6 +190,8 @@ export declare class VellumClient {
189
190
  submitWorkflowExecutionActuals(request: Vellum.SubmitWorkflowExecutionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
190
191
  protected _adHoc: AdHoc | undefined;
191
192
  get adHoc(): AdHoc;
193
+ protected _containerImages: ContainerImages | undefined;
194
+ get containerImages(): ContainerImages;
192
195
  protected _deployments: Deployments | undefined;
193
196
  get deployments(): Deployments;
194
197
  protected _documentIndexes: DocumentIndexes | undefined;
package/dist/Client.js CHANGED
@@ -46,18 +46,19 @@ const serializers = __importStar(require("./serialization/index"));
46
46
  const url_join_1 = __importDefault(require("url-join"));
47
47
  const errors = __importStar(require("./errors/index"));
48
48
  const Client_1 = require("./api/resources/adHoc/client/Client");
49
- const Client_2 = require("./api/resources/deployments/client/Client");
50
- const Client_3 = require("./api/resources/documentIndexes/client/Client");
51
- const Client_4 = require("./api/resources/documents/client/Client");
52
- const Client_5 = require("./api/resources/folderEntities/client/Client");
53
- const Client_6 = require("./api/resources/metricDefinitions/client/Client");
54
- const Client_7 = require("./api/resources/sandboxes/client/Client");
55
- const Client_8 = require("./api/resources/testSuiteRuns/client/Client");
56
- const Client_9 = require("./api/resources/testSuites/client/Client");
57
- const Client_10 = require("./api/resources/workflowDeployments/client/Client");
58
- const Client_11 = require("./api/resources/workflowSandboxes/client/Client");
59
- const Client_12 = require("./api/resources/workflows/client/Client");
60
- const Client_13 = require("./api/resources/workspaceSecrets/client/Client");
49
+ const Client_2 = require("./api/resources/containerImages/client/Client");
50
+ const Client_3 = require("./api/resources/deployments/client/Client");
51
+ const Client_4 = require("./api/resources/documentIndexes/client/Client");
52
+ const Client_5 = require("./api/resources/documents/client/Client");
53
+ const Client_6 = require("./api/resources/folderEntities/client/Client");
54
+ const Client_7 = require("./api/resources/metricDefinitions/client/Client");
55
+ const Client_8 = require("./api/resources/sandboxes/client/Client");
56
+ const Client_9 = require("./api/resources/testSuiteRuns/client/Client");
57
+ const Client_10 = require("./api/resources/testSuites/client/Client");
58
+ const Client_11 = require("./api/resources/workflowDeployments/client/Client");
59
+ const Client_12 = require("./api/resources/workflowSandboxes/client/Client");
60
+ const Client_13 = require("./api/resources/workflows/client/Client");
61
+ const Client_14 = require("./api/resources/workspaceSecrets/client/Client");
61
62
  class VellumClient {
62
63
  constructor(_options = {}) {
63
64
  this._options = _options;
@@ -93,7 +94,7 @@ class VellumClient {
93
94
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
94
95
  .default, "v1/execute-code"),
95
96
  method: "POST",
96
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
97
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
97
98
  contentType: "application/json",
98
99
  requestType: "json",
99
100
  body: serializers.CodeExecutorRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -162,7 +163,7 @@ class VellumClient {
162
163
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
163
164
  .predict, "v1/execute-prompt"),
164
165
  method: "POST",
165
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
166
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
166
167
  contentType: "application/json",
167
168
  requestType: "json",
168
169
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -220,7 +221,7 @@ class VellumClient {
220
221
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
221
222
  .predict, "v1/execute-prompt-stream"),
222
223
  method: "POST",
223
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
224
225
  contentType: "application/json",
225
226
  requestType: "json",
226
227
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -305,7 +306,7 @@ class VellumClient {
305
306
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
306
307
  .predict, "v1/execute-workflow"),
307
308
  method: "POST",
308
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
310
  contentType: "application/json",
310
311
  requestType: "json",
311
312
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -361,7 +362,7 @@ class VellumClient {
361
362
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
362
363
  .predict, "v1/execute-workflow-stream"),
363
364
  method: "POST",
364
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
365
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
365
366
  contentType: "application/json",
366
367
  requestType: "json",
367
368
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -448,7 +449,7 @@ class VellumClient {
448
449
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
449
450
  .predict, "v1/generate"),
450
451
  method: "POST",
451
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
452
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
452
453
  contentType: "application/json",
453
454
  requestType: "json",
454
455
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -509,7 +510,7 @@ class VellumClient {
509
510
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
510
511
  .predict, "v1/generate-stream"),
511
512
  method: "POST",
512
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
513
514
  contentType: "application/json",
514
515
  requestType: "json",
515
516
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -590,7 +591,7 @@ class VellumClient {
590
591
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
591
592
  .predict, "v1/search"),
592
593
  method: "POST",
593
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
594
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
594
595
  contentType: "application/json",
595
596
  requestType: "json",
596
597
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -658,7 +659,7 @@ class VellumClient {
658
659
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
659
660
  .predict, "v1/submit-completion-actuals"),
660
661
  method: "POST",
661
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
662
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
662
663
  contentType: "application/json",
663
664
  requestType: "json",
664
665
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -721,7 +722,7 @@ class VellumClient {
721
722
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
722
723
  .predict, "v1/submit-workflow-execution-actuals"),
723
724
  method: "POST",
724
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
725
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
725
726
  contentType: "application/json",
726
727
  requestType: "json",
727
728
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -759,53 +760,57 @@ class VellumClient {
759
760
  var _a;
760
761
  return ((_a = this._adHoc) !== null && _a !== void 0 ? _a : (this._adHoc = new Client_1.AdHoc(this._options)));
761
762
  }
763
+ get containerImages() {
764
+ var _a;
765
+ return ((_a = this._containerImages) !== null && _a !== void 0 ? _a : (this._containerImages = new Client_2.ContainerImages(this._options)));
766
+ }
762
767
  get deployments() {
763
768
  var _a;
764
- return ((_a = this._deployments) !== null && _a !== void 0 ? _a : (this._deployments = new Client_2.Deployments(this._options)));
769
+ return ((_a = this._deployments) !== null && _a !== void 0 ? _a : (this._deployments = new Client_3.Deployments(this._options)));
765
770
  }
766
771
  get documentIndexes() {
767
772
  var _a;
768
- return ((_a = this._documentIndexes) !== null && _a !== void 0 ? _a : (this._documentIndexes = new Client_3.DocumentIndexes(this._options)));
773
+ return ((_a = this._documentIndexes) !== null && _a !== void 0 ? _a : (this._documentIndexes = new Client_4.DocumentIndexes(this._options)));
769
774
  }
770
775
  get documents() {
771
776
  var _a;
772
- return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_4.Documents(this._options)));
777
+ return ((_a = this._documents) !== null && _a !== void 0 ? _a : (this._documents = new Client_5.Documents(this._options)));
773
778
  }
774
779
  get folderEntities() {
775
780
  var _a;
776
- return ((_a = this._folderEntities) !== null && _a !== void 0 ? _a : (this._folderEntities = new Client_5.FolderEntities(this._options)));
781
+ return ((_a = this._folderEntities) !== null && _a !== void 0 ? _a : (this._folderEntities = new Client_6.FolderEntities(this._options)));
777
782
  }
778
783
  get metricDefinitions() {
779
784
  var _a;
780
- return ((_a = this._metricDefinitions) !== null && _a !== void 0 ? _a : (this._metricDefinitions = new Client_6.MetricDefinitions(this._options)));
785
+ return ((_a = this._metricDefinitions) !== null && _a !== void 0 ? _a : (this._metricDefinitions = new Client_7.MetricDefinitions(this._options)));
781
786
  }
782
787
  get sandboxes() {
783
788
  var _a;
784
- return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_7.Sandboxes(this._options)));
789
+ return ((_a = this._sandboxes) !== null && _a !== void 0 ? _a : (this._sandboxes = new Client_8.Sandboxes(this._options)));
785
790
  }
786
791
  get testSuiteRuns() {
787
792
  var _a;
788
- return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_8.TestSuiteRuns(this._options)));
793
+ return ((_a = this._testSuiteRuns) !== null && _a !== void 0 ? _a : (this._testSuiteRuns = new Client_9.TestSuiteRuns(this._options)));
789
794
  }
790
795
  get testSuites() {
791
796
  var _a;
792
- return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_9.TestSuites(this._options)));
797
+ return ((_a = this._testSuites) !== null && _a !== void 0 ? _a : (this._testSuites = new Client_10.TestSuites(this._options)));
793
798
  }
794
799
  get workflowDeployments() {
795
800
  var _a;
796
- return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_10.WorkflowDeployments(this._options)));
801
+ return ((_a = this._workflowDeployments) !== null && _a !== void 0 ? _a : (this._workflowDeployments = new Client_11.WorkflowDeployments(this._options)));
797
802
  }
798
803
  get workflowSandboxes() {
799
804
  var _a;
800
- return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_11.WorkflowSandboxes(this._options)));
805
+ return ((_a = this._workflowSandboxes) !== null && _a !== void 0 ? _a : (this._workflowSandboxes = new Client_12.WorkflowSandboxes(this._options)));
801
806
  }
802
807
  get workflows() {
803
808
  var _a;
804
- return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_12.Workflows(this._options)));
809
+ return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_13.Workflows(this._options)));
805
810
  }
806
811
  get workspaceSecrets() {
807
812
  var _a;
808
- return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_13.WorkspaceSecrets(this._options)));
813
+ return ((_a = this._workspaceSecrets) !== null && _a !== void 0 ? _a : (this._workspaceSecrets = new Client_14.WorkspaceSecrets(this._options)));
809
814
  }
810
815
  _getCustomAuthorizationHeaders() {
811
816
  return __awaiter(this, void 0, void 0, function* () {
@@ -59,7 +59,7 @@ class AdHoc {
59
59
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
60
60
  .default, "v1/ad-hoc/execute-prompt-stream"),
61
61
  method: "POST",
62
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.0", "User-Agent": "vellum-ai/0.9.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
63
  contentType: "application/json",
64
64
  requestType: "json",
65
65
  body: serializers.AdHocExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,61 @@
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 ContainerImages {
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 ContainerImages {
22
+ protected readonly _options: ContainerImages.Options;
23
+ constructor(_options?: ContainerImages.Options);
24
+ /**
25
+ * Retrieve a list of container images for the organization.
26
+ *
27
+ * @param {Vellum.ContainerImagesListRequest} request
28
+ * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @example
31
+ * await client.containerImages.list()
32
+ */
33
+ list(request?: Vellum.ContainerImagesListRequest, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.PaginatedContainerImageReadList>;
34
+ /**
35
+ * Retrieve a Container Image by its ID or name.
36
+ *
37
+ * @param {string} id - Either the Container Image's ID or its unique name
38
+ * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @example
41
+ * await client.containerImages.retrieve("id")
42
+ */
43
+ retrieve(id: string, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.ContainerImageRead>;
44
+ /**
45
+ * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
46
+ *
47
+ * @param {Vellum.PushContainerImageRequest} request
48
+ * @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
49
+ *
50
+ * @example
51
+ * await client.containerImages.pushContainerImage({
52
+ * name: "name",
53
+ * sha: "sha",
54
+ * tags: ["tags"]
55
+ * })
56
+ */
57
+ pushContainerImage(request: Vellum.PushContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.ContainerImageRead>;
58
+ protected _getCustomAuthorizationHeaders(): Promise<{
59
+ X_API_KEY: string | undefined;
60
+ }>;
61
+ }
@@ -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": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "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": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "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": "0.9.2", "User-Agent": "vellum-ai/0.9.2", "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";