vellum-ai 1.11.15 → 1.13.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.
- package/Client.js +12 -12
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/containerImages/client/Client.d.ts +42 -0
- package/api/resources/containerImages/client/Client.js +156 -4
- package/api/resources/containerImages/client/requests/CreateContainerImageRequest.d.ts +26 -0
- package/api/resources/containerImages/client/requests/CreateContainerImageRequest.js +5 -0
- package/api/resources/containerImages/client/requests/UpdateContainerImageRequest.d.ts +24 -0
- package/api/resources/containerImages/client/requests/UpdateContainerImageRequest.js +5 -0
- package/api/resources/containerImages/client/requests/index.d.ts +2 -0
- package/api/resources/deployments/client/Client.js +8 -8
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/environments/client/Client.js +1 -1
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/integrationAuthConfigs/client/Client.js +1 -1
- package/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.d.ts +1 -0
- package/api/resources/integrationProviders/client/Client.d.ts +2 -1
- package/api/resources/integrationProviders/client/Client.js +17 -7
- package/api/resources/integrationProviders/client/requests/ListIntegrationToolsRequest.d.ts +4 -0
- package/api/resources/integrationProviders/client/requests/RetrieveIntegrationProviderToolDefinitionRequest.d.ts +13 -0
- package/api/resources/integrationProviders/client/requests/RetrieveIntegrationProviderToolDefinitionRequest.js +5 -0
- package/api/resources/integrationProviders/client/requests/index.d.ts +1 -0
- package/api/resources/integrations/client/Client.d.ts +2 -1
- package/api/resources/integrations/client/Client.js +15 -8
- package/api/resources/integrations/client/requests/RetrieveIntegrationToolDefinitionRequest.d.ts +13 -0
- package/api/resources/integrations/client/requests/RetrieveIntegrationToolDefinitionRequest.js +5 -0
- package/api/resources/integrations/client/requests/index.d.ts +1 -0
- package/api/resources/metricDefinitions/client/Client.js +2 -2
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/organizations/client/Client.js +1 -1
- package/api/resources/prompts/client/Client.js +2 -2
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/uploadedFiles/client/Client.js +3 -3
- package/api/resources/workflowDeployments/client/Client.d.ts +5 -0
- package/api/resources/workflowDeployments/client/Client.js +92 -10
- package/api/resources/workflowDeployments/client/requests/ExecuteWorkflowDeploymentStreamRequest.d.ts +21 -0
- package/api/resources/workflowDeployments/client/requests/ExecuteWorkflowDeploymentStreamRequest.js +5 -0
- package/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/api/resources/workflowExecutions/client/Client.js +1 -1
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.d.ts +33 -0
- package/api/resources/workflows/client/Client.js +165 -5
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -2
- package/api/resources/workflows/client/requests/WorkflowRunNodeRequest.d.ts +17 -0
- package/api/resources/workflows/client/requests/WorkflowRunNodeRequest.js +5 -0
- package/api/resources/workflows/client/requests/index.d.ts +1 -0
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/ApiActorTypeEnum.d.ts +3 -1
- package/api/types/ApiActorTypeEnum.js +1 -0
- package/api/types/CheckWorkflowExecutionStatusError.d.ts +8 -0
- package/api/types/CheckWorkflowExecutionStatusError.js +5 -0
- package/api/types/CheckWorkflowExecutionStatusResponse.d.ts +14 -0
- package/api/types/CheckWorkflowExecutionStatusResponse.js +5 -0
- package/api/types/CodeExecutionPackageRequest.d.ts +8 -0
- package/api/types/CodeExecutionPackageRequest.js +5 -0
- package/api/types/ComposioExecuteToolRequest.d.ts +1 -0
- package/api/types/ComposioToolDefinition.d.ts +1 -0
- package/api/types/ContainerImageContainerImageTag.d.ts +1 -0
- package/api/types/DatasetRowPushRequest.d.ts +2 -0
- package/api/types/IntegrationName.d.ts +13 -1
- package/api/types/IntegrationName.js +6 -0
- package/api/types/NodeExecutionFulfilledBody.d.ts +1 -0
- package/api/types/NodeExecutionLogBody.d.ts +10 -0
- package/api/types/NodeExecutionLogBody.js +5 -0
- package/api/types/NodeExecutionLogEvent.d.ts +15 -0
- package/api/types/NodeExecutionLogEvent.js +5 -0
- package/api/types/PromptDeploymentReleasePromptDeployment.d.ts +1 -0
- package/api/types/SeverityEnum.d.ts +16 -0
- package/api/types/SeverityEnum.js +12 -0
- package/api/types/SlimComposioToolDefinition.d.ts +1 -0
- package/api/types/VellumNodeExecutionEvent.d.ts +1 -1
- package/api/types/VellumVariableExtensions.d.ts +1 -0
- package/api/types/WorkflowDeploymentReleaseWorkflowDeployment.d.ts +1 -0
- package/api/types/WorkflowEvent.d.ts +1 -1
- package/api/types/WorkflowExecutionFulfilledBody.d.ts +1 -0
- package/api/types/WorkflowSandboxExecuteNodeResponse.d.ts +5 -0
- package/api/types/WorkflowSandboxExecuteNodeResponse.js +5 -0
- package/api/types/index.d.ts +7 -0
- package/api/types/index.js +7 -0
- package/dist/Client.js +12 -12
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/containerImages/client/Client.d.ts +42 -0
- package/dist/api/resources/containerImages/client/Client.js +156 -4
- package/dist/api/resources/containerImages/client/requests/CreateContainerImageRequest.d.ts +26 -0
- package/dist/api/resources/containerImages/client/requests/CreateContainerImageRequest.js +5 -0
- package/dist/api/resources/containerImages/client/requests/UpdateContainerImageRequest.d.ts +24 -0
- package/dist/api/resources/containerImages/client/requests/UpdateContainerImageRequest.js +5 -0
- package/dist/api/resources/containerImages/client/requests/index.d.ts +2 -0
- package/dist/api/resources/deployments/client/Client.js +8 -8
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/environments/client/Client.js +1 -1
- package/dist/api/resources/events/client/Client.js +1 -1
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/integrationAuthConfigs/client/Client.js +1 -1
- package/dist/api/resources/integrationAuthConfigs/client/requests/ListIntegrationAuthConfigsRequest.d.ts +1 -0
- package/dist/api/resources/integrationProviders/client/Client.d.ts +2 -1
- package/dist/api/resources/integrationProviders/client/Client.js +17 -7
- package/dist/api/resources/integrationProviders/client/requests/ListIntegrationToolsRequest.d.ts +4 -0
- package/dist/api/resources/integrationProviders/client/requests/RetrieveIntegrationProviderToolDefinitionRequest.d.ts +13 -0
- package/dist/api/resources/integrationProviders/client/requests/RetrieveIntegrationProviderToolDefinitionRequest.js +5 -0
- package/dist/api/resources/integrationProviders/client/requests/index.d.ts +1 -0
- package/dist/api/resources/integrations/client/Client.d.ts +2 -1
- package/dist/api/resources/integrations/client/Client.js +15 -8
- package/dist/api/resources/integrations/client/requests/RetrieveIntegrationToolDefinitionRequest.d.ts +13 -0
- package/dist/api/resources/integrations/client/requests/RetrieveIntegrationToolDefinitionRequest.js +5 -0
- package/dist/api/resources/integrations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/organizations/client/Client.js +1 -1
- package/dist/api/resources/prompts/client/Client.js +2 -2
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/uploadedFiles/client/Client.js +3 -3
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +5 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +92 -10
- package/dist/api/resources/workflowDeployments/client/requests/ExecuteWorkflowDeploymentStreamRequest.d.ts +21 -0
- package/dist/api/resources/workflowDeployments/client/requests/ExecuteWorkflowDeploymentStreamRequest.js +5 -0
- package/dist/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workflowExecutions/client/Client.js +1 -1
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.d.ts +33 -0
- package/dist/api/resources/workflows/client/Client.js +165 -5
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -2
- package/dist/api/resources/workflows/client/requests/WorkflowRunNodeRequest.d.ts +17 -0
- package/dist/api/resources/workflows/client/requests/WorkflowRunNodeRequest.js +5 -0
- package/dist/api/resources/workflows/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/ApiActorTypeEnum.d.ts +3 -1
- package/dist/api/types/ApiActorTypeEnum.js +1 -0
- package/dist/api/types/CheckWorkflowExecutionStatusError.d.ts +8 -0
- package/dist/api/types/CheckWorkflowExecutionStatusError.js +5 -0
- package/dist/api/types/CheckWorkflowExecutionStatusResponse.d.ts +14 -0
- package/dist/api/types/CheckWorkflowExecutionStatusResponse.js +5 -0
- package/dist/api/types/CodeExecutionPackageRequest.d.ts +8 -0
- package/dist/api/types/CodeExecutionPackageRequest.js +5 -0
- package/dist/api/types/ComposioExecuteToolRequest.d.ts +1 -0
- package/dist/api/types/ComposioToolDefinition.d.ts +1 -0
- package/dist/api/types/ContainerImageContainerImageTag.d.ts +1 -0
- package/dist/api/types/DatasetRowPushRequest.d.ts +2 -0
- package/dist/api/types/IntegrationName.d.ts +13 -1
- package/dist/api/types/IntegrationName.js +6 -0
- package/dist/api/types/NodeExecutionFulfilledBody.d.ts +1 -0
- package/dist/api/types/NodeExecutionLogBody.d.ts +10 -0
- package/dist/api/types/NodeExecutionLogBody.js +5 -0
- package/dist/api/types/NodeExecutionLogEvent.d.ts +15 -0
- package/dist/api/types/NodeExecutionLogEvent.js +5 -0
- package/dist/api/types/PromptDeploymentReleasePromptDeployment.d.ts +1 -0
- package/dist/api/types/SeverityEnum.d.ts +16 -0
- package/dist/api/types/SeverityEnum.js +12 -0
- package/dist/api/types/SlimComposioToolDefinition.d.ts +1 -0
- package/dist/api/types/VellumNodeExecutionEvent.d.ts +1 -1
- package/dist/api/types/VellumVariableExtensions.d.ts +1 -0
- package/dist/api/types/WorkflowDeploymentReleaseWorkflowDeployment.d.ts +1 -0
- package/dist/api/types/WorkflowEvent.d.ts +1 -1
- package/dist/api/types/WorkflowExecutionFulfilledBody.d.ts +1 -0
- package/dist/api/types/WorkflowSandboxExecuteNodeResponse.d.ts +5 -0
- package/dist/api/types/WorkflowSandboxExecuteNodeResponse.js +5 -0
- package/dist/api/types/index.d.ts +7 -0
- package/dist/api/types/index.js +7 -0
- package/dist/serialization/resources/containerImages/client/requests/CreateContainerImageRequest.d.ts +18 -0
- package/dist/serialization/resources/containerImages/client/requests/CreateContainerImageRequest.js +49 -0
- package/dist/serialization/resources/containerImages/client/requests/UpdateContainerImageRequest.d.ts +17 -0
- package/dist/serialization/resources/containerImages/client/requests/UpdateContainerImageRequest.js +48 -0
- package/dist/serialization/resources/containerImages/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/containerImages/client/requests/index.js +5 -1
- package/dist/serialization/resources/workflowDeployments/client/requests/ExecuteWorkflowDeploymentStreamRequest.d.ts +17 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/ExecuteWorkflowDeploymentStreamRequest.js +48 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workflowDeployments/client/requests/index.js +3 -1
- package/dist/serialization/resources/workflows/client/requests/WorkflowRunNodeRequest.d.ts +14 -0
- package/dist/serialization/resources/workflows/client/requests/WorkflowRunNodeRequest.js +45 -0
- package/dist/serialization/resources/workflows/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/workflows/client/requests/index.js +3 -1
- package/dist/serialization/types/ApiActorTypeEnum.d.ts +1 -1
- package/dist/serialization/types/ApiActorTypeEnum.js +1 -1
- package/dist/serialization/types/CheckWorkflowExecutionStatusError.d.ts +14 -0
- package/dist/serialization/types/CheckWorkflowExecutionStatusError.js +45 -0
- package/dist/serialization/types/CheckWorkflowExecutionStatusResponse.d.ts +18 -0
- package/dist/serialization/types/CheckWorkflowExecutionStatusResponse.js +49 -0
- package/dist/serialization/types/CodeExecutionPackageRequest.d.ts +14 -0
- package/dist/serialization/types/CodeExecutionPackageRequest.js +45 -0
- package/dist/serialization/types/ComposioExecuteToolRequest.d.ts +1 -0
- package/dist/serialization/types/ComposioExecuteToolRequest.js +1 -0
- package/dist/serialization/types/ComposioToolDefinition.d.ts +1 -0
- package/dist/serialization/types/ComposioToolDefinition.js +1 -0
- package/dist/serialization/types/ContainerImageContainerImageTag.d.ts +1 -0
- package/dist/serialization/types/ContainerImageContainerImageTag.js +1 -0
- package/dist/serialization/types/DatasetRowPushRequest.d.ts +2 -0
- package/dist/serialization/types/DatasetRowPushRequest.js +4 -0
- package/dist/serialization/types/IntegrationName.d.ts +1 -1
- package/dist/serialization/types/IntegrationName.js +6 -0
- package/dist/serialization/types/NodeExecutionFulfilledBody.d.ts +1 -0
- package/dist/serialization/types/NodeExecutionFulfilledBody.js +1 -0
- package/dist/serialization/types/NodeExecutionLogBody.d.ts +17 -0
- package/dist/serialization/types/NodeExecutionLogBody.js +48 -0
- package/dist/serialization/types/NodeExecutionLogEvent.d.ts +22 -0
- package/dist/serialization/types/NodeExecutionLogEvent.js +54 -0
- package/dist/serialization/types/PromptDeploymentReleasePromptDeployment.d.ts +1 -0
- package/dist/serialization/types/PromptDeploymentReleasePromptDeployment.js +1 -0
- package/dist/serialization/types/SeverityEnum.d.ts +10 -0
- package/dist/serialization/types/SeverityEnum.js +41 -0
- package/dist/serialization/types/SlimComposioToolDefinition.d.ts +1 -0
- package/dist/serialization/types/SlimComposioToolDefinition.js +1 -0
- package/dist/serialization/types/VellumNodeExecutionEvent.d.ts +2 -1
- package/dist/serialization/types/VellumNodeExecutionEvent.js +2 -0
- package/dist/serialization/types/VellumVariableExtensions.d.ts +1 -0
- package/dist/serialization/types/VellumVariableExtensions.js +1 -0
- package/dist/serialization/types/WorkflowDeploymentReleaseWorkflowDeployment.d.ts +1 -0
- package/dist/serialization/types/WorkflowDeploymentReleaseWorkflowDeployment.js +1 -0
- package/dist/serialization/types/WorkflowEvent.d.ts +2 -1
- package/dist/serialization/types/WorkflowEvent.js +2 -0
- package/dist/serialization/types/WorkflowExecutionFulfilledBody.d.ts +1 -0
- package/dist/serialization/types/WorkflowExecutionFulfilledBody.js +1 -0
- package/dist/serialization/types/WorkflowSandboxExecuteNodeResponse.d.ts +12 -0
- package/dist/serialization/types/WorkflowSandboxExecuteNodeResponse.js +43 -0
- package/dist/serialization/types/index.d.ts +7 -0
- package/dist/serialization/types/index.js +7 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +371 -5
- package/serialization/resources/containerImages/client/requests/CreateContainerImageRequest.d.ts +18 -0
- package/serialization/resources/containerImages/client/requests/CreateContainerImageRequest.js +49 -0
- package/serialization/resources/containerImages/client/requests/UpdateContainerImageRequest.d.ts +17 -0
- package/serialization/resources/containerImages/client/requests/UpdateContainerImageRequest.js +48 -0
- package/serialization/resources/containerImages/client/requests/index.d.ts +2 -0
- package/serialization/resources/containerImages/client/requests/index.js +5 -1
- package/serialization/resources/workflowDeployments/client/requests/ExecuteWorkflowDeploymentStreamRequest.d.ts +17 -0
- package/serialization/resources/workflowDeployments/client/requests/ExecuteWorkflowDeploymentStreamRequest.js +48 -0
- package/serialization/resources/workflowDeployments/client/requests/index.d.ts +1 -0
- package/serialization/resources/workflowDeployments/client/requests/index.js +3 -1
- package/serialization/resources/workflows/client/requests/WorkflowRunNodeRequest.d.ts +14 -0
- package/serialization/resources/workflows/client/requests/WorkflowRunNodeRequest.js +45 -0
- package/serialization/resources/workflows/client/requests/index.d.ts +1 -0
- package/serialization/resources/workflows/client/requests/index.js +3 -1
- package/serialization/types/ApiActorTypeEnum.d.ts +1 -1
- package/serialization/types/ApiActorTypeEnum.js +1 -1
- package/serialization/types/CheckWorkflowExecutionStatusError.d.ts +14 -0
- package/serialization/types/CheckWorkflowExecutionStatusError.js +45 -0
- package/serialization/types/CheckWorkflowExecutionStatusResponse.d.ts +18 -0
- package/serialization/types/CheckWorkflowExecutionStatusResponse.js +49 -0
- package/serialization/types/CodeExecutionPackageRequest.d.ts +14 -0
- package/serialization/types/CodeExecutionPackageRequest.js +45 -0
- package/serialization/types/ComposioExecuteToolRequest.d.ts +1 -0
- package/serialization/types/ComposioExecuteToolRequest.js +1 -0
- package/serialization/types/ComposioToolDefinition.d.ts +1 -0
- package/serialization/types/ComposioToolDefinition.js +1 -0
- package/serialization/types/ContainerImageContainerImageTag.d.ts +1 -0
- package/serialization/types/ContainerImageContainerImageTag.js +1 -0
- package/serialization/types/DatasetRowPushRequest.d.ts +2 -0
- package/serialization/types/DatasetRowPushRequest.js +4 -0
- package/serialization/types/IntegrationName.d.ts +1 -1
- package/serialization/types/IntegrationName.js +6 -0
- package/serialization/types/NodeExecutionFulfilledBody.d.ts +1 -0
- package/serialization/types/NodeExecutionFulfilledBody.js +1 -0
- package/serialization/types/NodeExecutionLogBody.d.ts +17 -0
- package/serialization/types/NodeExecutionLogBody.js +48 -0
- package/serialization/types/NodeExecutionLogEvent.d.ts +22 -0
- package/serialization/types/NodeExecutionLogEvent.js +54 -0
- package/serialization/types/PromptDeploymentReleasePromptDeployment.d.ts +1 -0
- package/serialization/types/PromptDeploymentReleasePromptDeployment.js +1 -0
- package/serialization/types/SeverityEnum.d.ts +10 -0
- package/serialization/types/SeverityEnum.js +41 -0
- package/serialization/types/SlimComposioToolDefinition.d.ts +1 -0
- package/serialization/types/SlimComposioToolDefinition.js +1 -0
- package/serialization/types/VellumNodeExecutionEvent.d.ts +2 -1
- package/serialization/types/VellumNodeExecutionEvent.js +2 -0
- package/serialization/types/VellumVariableExtensions.d.ts +1 -0
- package/serialization/types/VellumVariableExtensions.js +1 -0
- package/serialization/types/WorkflowDeploymentReleaseWorkflowDeployment.d.ts +1 -0
- package/serialization/types/WorkflowDeploymentReleaseWorkflowDeployment.js +1 -0
- package/serialization/types/WorkflowEvent.d.ts +2 -1
- package/serialization/types/WorkflowEvent.js +2 -0
- package/serialization/types/WorkflowExecutionFulfilledBody.d.ts +1 -0
- package/serialization/types/WorkflowExecutionFulfilledBody.js +1 -0
- package/serialization/types/WorkflowSandboxExecuteNodeResponse.d.ts +12 -0
- package/serialization/types/WorkflowSandboxExecuteNodeResponse.js +43 -0
- package/serialization/types/index.d.ts +7 -0
- package/serialization/types/index.js +7 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/Client.js
CHANGED
|
@@ -207,7 +207,7 @@ class VellumClient {
|
|
|
207
207
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
208
208
|
unrecognizedObjectKeys: "strip",
|
|
209
209
|
})
|
|
210
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
210
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
211
211
|
contentType: "application/json",
|
|
212
212
|
requestType: "json",
|
|
213
213
|
body: serializers.ExecuteApiRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -293,7 +293,7 @@ class VellumClient {
|
|
|
293
293
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
294
294
|
unrecognizedObjectKeys: "strip",
|
|
295
295
|
})
|
|
296
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
296
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
297
297
|
contentType: "application/json",
|
|
298
298
|
requestType: "json",
|
|
299
299
|
body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -379,7 +379,7 @@ class VellumClient {
|
|
|
379
379
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
380
380
|
unrecognizedObjectKeys: "strip",
|
|
381
381
|
})
|
|
382
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
382
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
383
383
|
contentType: "application/json",
|
|
384
384
|
requestType: "json",
|
|
385
385
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -450,7 +450,7 @@ class VellumClient {
|
|
|
450
450
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
451
451
|
unrecognizedObjectKeys: "strip",
|
|
452
452
|
})
|
|
453
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
453
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
454
454
|
contentType: "application/json",
|
|
455
455
|
requestType: "json",
|
|
456
456
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -552,7 +552,7 @@ class VellumClient {
|
|
|
552
552
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
553
553
|
unrecognizedObjectKeys: "strip",
|
|
554
554
|
})
|
|
555
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
555
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
556
556
|
contentType: "application/json",
|
|
557
557
|
requestType: "json",
|
|
558
558
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -641,7 +641,7 @@ class VellumClient {
|
|
|
641
641
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
642
642
|
unrecognizedObjectKeys: "strip",
|
|
643
643
|
})
|
|
644
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
644
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
645
645
|
contentType: "application/json",
|
|
646
646
|
requestType: "json",
|
|
647
647
|
body: serializers.ExecuteWorkflowAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -710,7 +710,7 @@ class VellumClient {
|
|
|
710
710
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
711
711
|
unrecognizedObjectKeys: "strip",
|
|
712
712
|
})
|
|
713
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
713
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
714
714
|
contentType: "application/json",
|
|
715
715
|
requestType: "json",
|
|
716
716
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -818,7 +818,7 @@ class VellumClient {
|
|
|
818
818
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
819
819
|
unrecognizedObjectKeys: "strip",
|
|
820
820
|
})
|
|
821
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
821
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
822
822
|
contentType: "application/json",
|
|
823
823
|
requestType: "json",
|
|
824
824
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -892,7 +892,7 @@ class VellumClient {
|
|
|
892
892
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
893
893
|
unrecognizedObjectKeys: "strip",
|
|
894
894
|
})
|
|
895
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
895
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
896
896
|
contentType: "application/json",
|
|
897
897
|
requestType: "json",
|
|
898
898
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -986,7 +986,7 @@ class VellumClient {
|
|
|
986
986
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
987
987
|
unrecognizedObjectKeys: "strip",
|
|
988
988
|
})
|
|
989
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
989
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
990
990
|
contentType: "application/json",
|
|
991
991
|
requestType: "json",
|
|
992
992
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1067,7 +1067,7 @@ class VellumClient {
|
|
|
1067
1067
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
1068
1068
|
unrecognizedObjectKeys: "strip",
|
|
1069
1069
|
})
|
|
1070
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
1070
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1071
1071
|
contentType: "application/json",
|
|
1072
1072
|
requestType: "json",
|
|
1073
1073
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1142,7 +1142,7 @@ class VellumClient {
|
|
|
1142
1142
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
1143
1143
|
unrecognizedObjectKeys: "strip",
|
|
1144
1144
|
})
|
|
1145
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
1145
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1146
1146
|
contentType: "application/json",
|
|
1147
1147
|
requestType: "json",
|
|
1148
1148
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -112,7 +112,7 @@ class AdHoc {
|
|
|
112
112
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
113
113
|
unrecognizedObjectKeys: "strip",
|
|
114
114
|
})
|
|
115
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
115
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
116
116
|
contentType: "application/json",
|
|
117
117
|
requestType: "json",
|
|
118
118
|
body: serializers.AdHocExecutePrompt.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -178,7 +178,7 @@ class AdHoc {
|
|
|
178
178
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
179
179
|
unrecognizedObjectKeys: "strip",
|
|
180
180
|
})
|
|
181
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
181
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
requestType: "json",
|
|
184
184
|
body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -40,6 +40,27 @@ export declare class ContainerImages {
|
|
|
40
40
|
*/
|
|
41
41
|
list(request?: Vellum.ContainerImagesListRequest, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise<Vellum.PaginatedContainerImageReadList>;
|
|
42
42
|
private __list;
|
|
43
|
+
/**
|
|
44
|
+
* Create a new Container Image.
|
|
45
|
+
*
|
|
46
|
+
* @param {Vellum.CreateContainerImageRequest} request
|
|
47
|
+
* @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await client.containerImages.createContainerImage({
|
|
51
|
+
* name: "x",
|
|
52
|
+
* packages: [{
|
|
53
|
+
* version: "x",
|
|
54
|
+
* name: "x"
|
|
55
|
+
* }, {
|
|
56
|
+
* version: "x",
|
|
57
|
+
* name: "x"
|
|
58
|
+
* }],
|
|
59
|
+
* tag: "x"
|
|
60
|
+
* })
|
|
61
|
+
*/
|
|
62
|
+
createContainerImage(request: Vellum.CreateContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise<Vellum.ContainerImageRead>;
|
|
63
|
+
private __createContainerImage;
|
|
43
64
|
/**
|
|
44
65
|
* Retrieve a Container Image by its ID or name.
|
|
45
66
|
*
|
|
@@ -51,6 +72,27 @@ export declare class ContainerImages {
|
|
|
51
72
|
*/
|
|
52
73
|
retrieve(id: string, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise<Vellum.ContainerImageRead>;
|
|
53
74
|
private __retrieve;
|
|
75
|
+
/**
|
|
76
|
+
* Update an existing Container Image.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} id - A UUID string identifying this container image.
|
|
79
|
+
* @param {Vellum.UpdateContainerImageRequest} request
|
|
80
|
+
* @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.containerImages.updateContainerImage("id", {
|
|
84
|
+
* packages: [{
|
|
85
|
+
* version: "x",
|
|
86
|
+
* name: "x"
|
|
87
|
+
* }, {
|
|
88
|
+
* version: "x",
|
|
89
|
+
* name: "x"
|
|
90
|
+
* }],
|
|
91
|
+
* tag: "x"
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
updateContainerImage(id: string, request: Vellum.UpdateContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): core.HttpResponsePromise<Vellum.ContainerImageRead>;
|
|
95
|
+
private __updateContainerImage;
|
|
54
96
|
/**
|
|
55
97
|
* @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
98
|
*
|
|
@@ -92,7 +92,7 @@ class ContainerImages {
|
|
|
92
92
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
93
93
|
unrecognizedObjectKeys: "strip",
|
|
94
94
|
})
|
|
95
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
95
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
queryParameters: _queryParams,
|
|
98
98
|
requestType: "json",
|
|
@@ -135,6 +135,82 @@ class ContainerImages {
|
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Create a new Container Image.
|
|
140
|
+
*
|
|
141
|
+
* @param {Vellum.CreateContainerImageRequest} request
|
|
142
|
+
* @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* await client.containerImages.createContainerImage({
|
|
146
|
+
* name: "x",
|
|
147
|
+
* packages: [{
|
|
148
|
+
* version: "x",
|
|
149
|
+
* name: "x"
|
|
150
|
+
* }, {
|
|
151
|
+
* version: "x",
|
|
152
|
+
* name: "x"
|
|
153
|
+
* }],
|
|
154
|
+
* tag: "x"
|
|
155
|
+
* })
|
|
156
|
+
*/
|
|
157
|
+
createContainerImage(request, requestOptions) {
|
|
158
|
+
return core.HttpResponsePromise.fromPromise(this.__createContainerImage(request, requestOptions));
|
|
159
|
+
}
|
|
160
|
+
__createContainerImage(request, requestOptions) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
var _a, _b;
|
|
163
|
+
const _response = yield core.fetcher({
|
|
164
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
165
|
+
.default, "v1/container-images"),
|
|
166
|
+
method: "POST",
|
|
167
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
168
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
169
|
+
unrecognizedObjectKeys: "strip",
|
|
170
|
+
})
|
|
171
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
172
|
+
contentType: "application/json",
|
|
173
|
+
requestType: "json",
|
|
174
|
+
body: serializers.CreateContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
175
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
176
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
177
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
178
|
+
});
|
|
179
|
+
if (_response.ok) {
|
|
180
|
+
return {
|
|
181
|
+
data: serializers.ContainerImageRead.parseOrThrow(_response.body, {
|
|
182
|
+
unrecognizedObjectKeys: "passthrough",
|
|
183
|
+
allowUnrecognizedUnionMembers: true,
|
|
184
|
+
allowUnrecognizedEnumValues: true,
|
|
185
|
+
breadcrumbsPrefix: ["response"],
|
|
186
|
+
}),
|
|
187
|
+
rawResponse: _response.rawResponse,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
if (_response.error.reason === "status-code") {
|
|
191
|
+
throw new errors.VellumError({
|
|
192
|
+
statusCode: _response.error.statusCode,
|
|
193
|
+
body: _response.error.body,
|
|
194
|
+
rawResponse: _response.rawResponse,
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
switch (_response.error.reason) {
|
|
198
|
+
case "non-json":
|
|
199
|
+
throw new errors.VellumError({
|
|
200
|
+
statusCode: _response.error.statusCode,
|
|
201
|
+
body: _response.error.rawBody,
|
|
202
|
+
rawResponse: _response.rawResponse,
|
|
203
|
+
});
|
|
204
|
+
case "timeout":
|
|
205
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling POST /v1/container-images.");
|
|
206
|
+
case "unknown":
|
|
207
|
+
throw new errors.VellumError({
|
|
208
|
+
message: _response.error.errorMessage,
|
|
209
|
+
rawResponse: _response.rawResponse,
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
138
214
|
/**
|
|
139
215
|
* Retrieve a Container Image by its ID or name.
|
|
140
216
|
*
|
|
@@ -158,7 +234,7 @@ class ContainerImages {
|
|
|
158
234
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
159
235
|
unrecognizedObjectKeys: "strip",
|
|
160
236
|
})
|
|
161
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
237
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
162
238
|
contentType: "application/json",
|
|
163
239
|
requestType: "json",
|
|
164
240
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -200,6 +276,82 @@ class ContainerImages {
|
|
|
200
276
|
}
|
|
201
277
|
});
|
|
202
278
|
}
|
|
279
|
+
/**
|
|
280
|
+
* Update an existing Container Image.
|
|
281
|
+
*
|
|
282
|
+
* @param {string} id - A UUID string identifying this container image.
|
|
283
|
+
* @param {Vellum.UpdateContainerImageRequest} request
|
|
284
|
+
* @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
|
|
285
|
+
*
|
|
286
|
+
* @example
|
|
287
|
+
* await client.containerImages.updateContainerImage("id", {
|
|
288
|
+
* packages: [{
|
|
289
|
+
* version: "x",
|
|
290
|
+
* name: "x"
|
|
291
|
+
* }, {
|
|
292
|
+
* version: "x",
|
|
293
|
+
* name: "x"
|
|
294
|
+
* }],
|
|
295
|
+
* tag: "x"
|
|
296
|
+
* })
|
|
297
|
+
*/
|
|
298
|
+
updateContainerImage(id, request, requestOptions) {
|
|
299
|
+
return core.HttpResponsePromise.fromPromise(this.__updateContainerImage(id, request, requestOptions));
|
|
300
|
+
}
|
|
301
|
+
__updateContainerImage(id, request, requestOptions) {
|
|
302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
var _a, _b;
|
|
304
|
+
const _response = yield core.fetcher({
|
|
305
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
306
|
+
.default, `v1/container-images/${encodeURIComponent(id)}`),
|
|
307
|
+
method: "PUT",
|
|
308
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
309
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
310
|
+
unrecognizedObjectKeys: "strip",
|
|
311
|
+
})
|
|
312
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
313
|
+
contentType: "application/json",
|
|
314
|
+
requestType: "json",
|
|
315
|
+
body: serializers.UpdateContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
316
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
317
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
318
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
319
|
+
});
|
|
320
|
+
if (_response.ok) {
|
|
321
|
+
return {
|
|
322
|
+
data: serializers.ContainerImageRead.parseOrThrow(_response.body, {
|
|
323
|
+
unrecognizedObjectKeys: "passthrough",
|
|
324
|
+
allowUnrecognizedUnionMembers: true,
|
|
325
|
+
allowUnrecognizedEnumValues: true,
|
|
326
|
+
breadcrumbsPrefix: ["response"],
|
|
327
|
+
}),
|
|
328
|
+
rawResponse: _response.rawResponse,
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
if (_response.error.reason === "status-code") {
|
|
332
|
+
throw new errors.VellumError({
|
|
333
|
+
statusCode: _response.error.statusCode,
|
|
334
|
+
body: _response.error.body,
|
|
335
|
+
rawResponse: _response.rawResponse,
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
switch (_response.error.reason) {
|
|
339
|
+
case "non-json":
|
|
340
|
+
throw new errors.VellumError({
|
|
341
|
+
statusCode: _response.error.statusCode,
|
|
342
|
+
body: _response.error.rawBody,
|
|
343
|
+
rawResponse: _response.rawResponse,
|
|
344
|
+
});
|
|
345
|
+
case "timeout":
|
|
346
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling PUT /v1/container-images/{id}.");
|
|
347
|
+
case "unknown":
|
|
348
|
+
throw new errors.VellumError({
|
|
349
|
+
message: _response.error.errorMessage,
|
|
350
|
+
rawResponse: _response.rawResponse,
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
}
|
|
203
355
|
/**
|
|
204
356
|
* @param {ContainerImages.RequestOptions} requestOptions - Request-specific configuration.
|
|
205
357
|
*
|
|
@@ -220,7 +372,7 @@ class ContainerImages {
|
|
|
220
372
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
221
373
|
unrecognizedObjectKeys: "strip",
|
|
222
374
|
})
|
|
223
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
375
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
224
376
|
contentType: "application/json",
|
|
225
377
|
requestType: "json",
|
|
226
378
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -287,7 +439,7 @@ class ContainerImages {
|
|
|
287
439
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
288
440
|
unrecognizedObjectKeys: "strip",
|
|
289
441
|
})
|
|
290
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
442
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
291
443
|
contentType: "application/json",
|
|
292
444
|
requestType: "json",
|
|
293
445
|
body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* name: "x",
|
|
9
|
+
* packages: [{
|
|
10
|
+
* version: "x",
|
|
11
|
+
* name: "x"
|
|
12
|
+
* }, {
|
|
13
|
+
* version: "x",
|
|
14
|
+
* name: "x"
|
|
15
|
+
* }],
|
|
16
|
+
* tag: "x"
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateContainerImageRequest {
|
|
20
|
+
name: string;
|
|
21
|
+
packages: Vellum.CodeExecutionPackageRequest[];
|
|
22
|
+
tag: string;
|
|
23
|
+
userScript?: string | null;
|
|
24
|
+
isHotswappable?: boolean;
|
|
25
|
+
serverVersion?: string | null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* packages: [{
|
|
9
|
+
* version: "x",
|
|
10
|
+
* name: "x"
|
|
11
|
+
* }, {
|
|
12
|
+
* version: "x",
|
|
13
|
+
* name: "x"
|
|
14
|
+
* }],
|
|
15
|
+
* tag: "x"
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateContainerImageRequest {
|
|
19
|
+
packages: Vellum.CodeExecutionPackageRequest[];
|
|
20
|
+
tag: string;
|
|
21
|
+
userScript?: string | null;
|
|
22
|
+
isHotswappable?: boolean;
|
|
23
|
+
serverVersion?: string | null;
|
|
24
|
+
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { type ContainerImagesListRequest } from "./ContainerImagesListRequest";
|
|
2
|
+
export { type CreateContainerImageRequest } from "./CreateContainerImageRequest";
|
|
3
|
+
export { type UpdateContainerImageRequest } from "./UpdateContainerImageRequest";
|
|
2
4
|
export { type PushContainerImageRequest } from "./PushContainerImageRequest";
|
|
@@ -98,7 +98,7 @@ class Deployments {
|
|
|
98
98
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
99
99
|
unrecognizedObjectKeys: "strip",
|
|
100
100
|
})
|
|
101
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
101
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
102
102
|
contentType: "application/json",
|
|
103
103
|
queryParameters: _queryParams,
|
|
104
104
|
requestType: "json",
|
|
@@ -164,7 +164,7 @@ class Deployments {
|
|
|
164
164
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
165
165
|
unrecognizedObjectKeys: "strip",
|
|
166
166
|
})
|
|
167
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
167
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
requestType: "json",
|
|
170
170
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -231,7 +231,7 @@ class Deployments {
|
|
|
231
231
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
232
232
|
unrecognizedObjectKeys: "strip",
|
|
233
233
|
})
|
|
234
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
234
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
235
235
|
contentType: "application/json",
|
|
236
236
|
requestType: "json",
|
|
237
237
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -313,7 +313,7 @@ class Deployments {
|
|
|
313
313
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
314
314
|
unrecognizedObjectKeys: "strip",
|
|
315
315
|
})
|
|
316
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
316
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
317
317
|
contentType: "application/json",
|
|
318
318
|
queryParameters: _queryParams,
|
|
319
319
|
requestType: "json",
|
|
@@ -380,7 +380,7 @@ class Deployments {
|
|
|
380
380
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
381
381
|
unrecognizedObjectKeys: "strip",
|
|
382
382
|
})
|
|
383
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
383
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
384
384
|
contentType: "application/json",
|
|
385
385
|
requestType: "json",
|
|
386
386
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -447,7 +447,7 @@ class Deployments {
|
|
|
447
447
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
448
448
|
unrecognizedObjectKeys: "strip",
|
|
449
449
|
})
|
|
450
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
450
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
451
451
|
contentType: "application/json",
|
|
452
452
|
requestType: "json",
|
|
453
453
|
body: serializers.PatchedDeploymentReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -516,7 +516,7 @@ class Deployments {
|
|
|
516
516
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
517
517
|
unrecognizedObjectKeys: "strip",
|
|
518
518
|
})
|
|
519
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
519
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
520
520
|
contentType: "application/json",
|
|
521
521
|
requestType: "json",
|
|
522
522
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -605,7 +605,7 @@ class Deployments {
|
|
|
605
605
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
606
606
|
unrecognizedObjectKeys: "strip",
|
|
607
607
|
})
|
|
608
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
608
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.13.2", "User-Agent": "vellum-ai/1.13.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
609
609
|
contentType: "application/json",
|
|
610
610
|
requestType: "json",
|
|
611
611
|
body: serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|