@gpuai/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +188 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +24 -0
- package/LICENSE +204 -0
- package/README.md +245 -0
- package/dist/apis/BillingApi.d.ts +101 -0
- package/dist/apis/BillingApi.js +271 -0
- package/dist/apis/CommunityApi.d.ts +174 -0
- package/dist/apis/CommunityApi.js +468 -0
- package/dist/apis/EnvironmentsApi.d.ts +32 -0
- package/dist/apis/EnvironmentsApi.js +70 -0
- package/dist/apis/FineTuningApi.d.ts +123 -0
- package/dist/apis/FineTuningApi.js +352 -0
- package/dist/apis/GpuTypesApi.d.ts +34 -0
- package/dist/apis/GpuTypesApi.js +74 -0
- package/dist/apis/InferenceApi.d.ts +179 -0
- package/dist/apis/InferenceApi.js +479 -0
- package/dist/apis/InstancesApi.d.ts +121 -0
- package/dist/apis/InstancesApi.js +304 -0
- package/dist/apis/MetaApi.d.ts +42 -0
- package/dist/apis/MetaApi.js +103 -0
- package/dist/apis/OperationsApi.d.ts +33 -0
- package/dist/apis/OperationsApi.js +79 -0
- package/dist/apis/PricingApi.d.ts +48 -0
- package/dist/apis/PricingApi.js +95 -0
- package/dist/apis/SshKeysApi.d.ts +84 -0
- package/dist/apis/SshKeysApi.js +226 -0
- package/dist/apis/TemplatesApi.d.ts +46 -0
- package/dist/apis/TemplatesApi.js +122 -0
- package/dist/apis/UsageApi.d.ts +56 -0
- package/dist/apis/UsageApi.js +109 -0
- package/dist/apis/WebhooksApi.d.ts +82 -0
- package/dist/apis/WebhooksApi.js +224 -0
- package/dist/apis/index.d.ts +14 -0
- package/dist/apis/index.js +32 -0
- package/dist/esm/apis/BillingApi.d.ts +101 -0
- package/dist/esm/apis/BillingApi.js +267 -0
- package/dist/esm/apis/CommunityApi.d.ts +174 -0
- package/dist/esm/apis/CommunityApi.js +464 -0
- package/dist/esm/apis/EnvironmentsApi.d.ts +32 -0
- package/dist/esm/apis/EnvironmentsApi.js +66 -0
- package/dist/esm/apis/FineTuningApi.d.ts +123 -0
- package/dist/esm/apis/FineTuningApi.js +348 -0
- package/dist/esm/apis/GpuTypesApi.d.ts +34 -0
- package/dist/esm/apis/GpuTypesApi.js +70 -0
- package/dist/esm/apis/InferenceApi.d.ts +179 -0
- package/dist/esm/apis/InferenceApi.js +475 -0
- package/dist/esm/apis/InstancesApi.d.ts +121 -0
- package/dist/esm/apis/InstancesApi.js +300 -0
- package/dist/esm/apis/MetaApi.d.ts +42 -0
- package/dist/esm/apis/MetaApi.js +99 -0
- package/dist/esm/apis/OperationsApi.d.ts +33 -0
- package/dist/esm/apis/OperationsApi.js +75 -0
- package/dist/esm/apis/PricingApi.d.ts +48 -0
- package/dist/esm/apis/PricingApi.js +91 -0
- package/dist/esm/apis/SshKeysApi.d.ts +84 -0
- package/dist/esm/apis/SshKeysApi.js +222 -0
- package/dist/esm/apis/TemplatesApi.d.ts +46 -0
- package/dist/esm/apis/TemplatesApi.js +118 -0
- package/dist/esm/apis/UsageApi.d.ts +56 -0
- package/dist/esm/apis/UsageApi.js +105 -0
- package/dist/esm/apis/WebhooksApi.d.ts +82 -0
- package/dist/esm/apis/WebhooksApi.js +220 -0
- package/dist/esm/apis/index.d.ts +14 -0
- package/dist/esm/apis/index.js +16 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ChatChoice.d.ts +55 -0
- package/dist/esm/models/ChatChoice.js +55 -0
- package/dist/esm/models/ChatCompletionRequest.d.ts +64 -0
- package/dist/esm/models/ChatCompletionRequest.js +57 -0
- package/dist/esm/models/ChatCompletionResponse.d.ts +71 -0
- package/dist/esm/models/ChatCompletionResponse.js +73 -0
- package/dist/esm/models/ChatMessage.d.ts +47 -0
- package/dist/esm/models/ChatMessage.js +55 -0
- package/dist/esm/models/CommunityEarnings.d.ts +45 -0
- package/dist/esm/models/CommunityEarnings.js +52 -0
- package/dist/esm/models/CommunityEarningsEntry.d.ts +62 -0
- package/dist/esm/models/CommunityEarningsEntry.js +63 -0
- package/dist/esm/models/CommunityMachine.d.ts +125 -0
- package/dist/esm/models/CommunityMachine.js +97 -0
- package/dist/esm/models/CommunityMachineDelistResult.d.ts +46 -0
- package/dist/esm/models/CommunityMachineDelistResult.js +54 -0
- package/dist/esm/models/CommunityMachineRegistration.d.ts +39 -0
- package/dist/esm/models/CommunityMachineRegistration.js +48 -0
- package/dist/esm/models/CommunitySupplier.d.ts +64 -0
- package/dist/esm/models/CommunitySupplier.js +66 -0
- package/dist/esm/models/CreateCryptoDepositRequest.d.ts +64 -0
- package/dist/esm/models/CreateCryptoDepositRequest.js +68 -0
- package/dist/esm/models/CreateFineTuningJobRequest.d.ts +64 -0
- package/dist/esm/models/CreateFineTuningJobRequest.js +59 -0
- package/dist/esm/models/CreateFineTuningJobRequestGpuai.d.ts +38 -0
- package/dist/esm/models/CreateFineTuningJobRequestGpuai.js +43 -0
- package/dist/esm/models/CreateFineTuningJobRequestMethod.d.ts +47 -0
- package/dist/esm/models/CreateFineTuningJobRequestMethod.js +53 -0
- package/dist/esm/models/CreateFineTuningJobRequestMethodLora.d.ts +44 -0
- package/dist/esm/models/CreateFineTuningJobRequestMethodLora.js +45 -0
- package/dist/esm/models/CreateInstanceRequest.d.ts +108 -0
- package/dist/esm/models/CreateInstanceRequest.js +76 -0
- package/dist/esm/models/CreateSshKeyRequest.d.ts +38 -0
- package/dist/esm/models/CreateSshKeyRequest.js +47 -0
- package/dist/esm/models/CreateWebhookEndpointRequest.d.ts +48 -0
- package/dist/esm/models/CreateWebhookEndpointRequest.js +56 -0
- package/dist/esm/models/CryptoDeposit.d.ts +114 -0
- package/dist/esm/models/CryptoDeposit.js +90 -0
- package/dist/esm/models/Environments.d.ts +61 -0
- package/dist/esm/models/Environments.js +57 -0
- package/dist/esm/models/FileObject.d.ts +76 -0
- package/dist/esm/models/FileObject.js +79 -0
- package/dist/esm/models/FineTuningJob.d.ts +133 -0
- package/dist/esm/models/FineTuningJob.js +102 -0
- package/dist/esm/models/FineTuningJobError.d.ts +44 -0
- package/dist/esm/models/FineTuningJobError.js +45 -0
- package/dist/esm/models/FineTuningJobEvent.d.ts +86 -0
- package/dist/esm/models/FineTuningJobEvent.js +79 -0
- package/dist/esm/models/FineTuningJobEventList.d.ts +52 -0
- package/dist/esm/models/FineTuningJobEventList.js +60 -0
- package/dist/esm/models/FineTuningJobList.d.ts +52 -0
- package/dist/esm/models/FineTuningJobList.js +60 -0
- package/dist/esm/models/FineTuningJobMethod.d.ts +47 -0
- package/dist/esm/models/FineTuningJobMethod.js +51 -0
- package/dist/esm/models/FrameworkVersion.d.ts +50 -0
- package/dist/esm/models/FrameworkVersion.js +53 -0
- package/dist/esm/models/GPUType.d.ts +74 -0
- package/dist/esm/models/GPUType.js +59 -0
- package/dist/esm/models/GPUTypePage.d.ts +39 -0
- package/dist/esm/models/GPUTypePage.js +48 -0
- package/dist/esm/models/GetHealth200Response.d.ts +39 -0
- package/dist/esm/models/GetHealth200Response.js +47 -0
- package/dist/esm/models/ImagesGenerationsRequest.d.ts +63 -0
- package/dist/esm/models/ImagesGenerationsRequest.js +59 -0
- package/dist/esm/models/ImagesResponse.d.ts +46 -0
- package/dist/esm/models/ImagesResponse.js +53 -0
- package/dist/esm/models/ImagesResponseDataInner.d.ts +32 -0
- package/dist/esm/models/ImagesResponseDataInner.js +43 -0
- package/dist/esm/models/ImagesResponseUsage.d.ts +32 -0
- package/dist/esm/models/ImagesResponseUsage.js +43 -0
- package/dist/esm/models/IncludeItem.d.ts +38 -0
- package/dist/esm/models/IncludeItem.js +45 -0
- package/dist/esm/models/Instance.d.ts +132 -0
- package/dist/esm/models/Instance.js +103 -0
- package/dist/esm/models/InstanceConnection.d.ts +68 -0
- package/dist/esm/models/InstanceConnection.js +53 -0
- package/dist/esm/models/InstancePage.d.ts +39 -0
- package/dist/esm/models/InstancePage.js +48 -0
- package/dist/esm/models/ListCommunityMachines200Response.d.ts +33 -0
- package/dist/esm/models/ListCommunityMachines200Response.js +44 -0
- package/dist/esm/models/ListDeposits200Response.d.ts +33 -0
- package/dist/esm/models/ListDeposits200Response.js +44 -0
- package/dist/esm/models/Model.d.ts +131 -0
- package/dist/esm/models/Model.js +103 -0
- package/dist/esm/models/ModelList.d.ts +46 -0
- package/dist/esm/models/ModelList.js +56 -0
- package/dist/esm/models/ModelParametersInner.d.ts +72 -0
- package/dist/esm/models/ModelParametersInner.js +64 -0
- package/dist/esm/models/ModelPricing.d.ts +80 -0
- package/dist/esm/models/ModelPricing.js +57 -0
- package/dist/esm/models/OpenAIErrorEnvelope.d.ts +33 -0
- package/dist/esm/models/OpenAIErrorEnvelope.js +44 -0
- package/dist/esm/models/OpenAIErrorEnvelopeError.d.ts +50 -0
- package/dist/esm/models/OpenAIErrorEnvelopeError.js +53 -0
- package/dist/esm/models/Operation.d.ts +107 -0
- package/dist/esm/models/Operation.js +86 -0
- package/dist/esm/models/OperationError.d.ts +38 -0
- package/dist/esm/models/OperationError.js +43 -0
- package/dist/esm/models/OperationResult.d.ts +50 -0
- package/dist/esm/models/OperationResult.js +47 -0
- package/dist/esm/models/Pricing.d.ts +133 -0
- package/dist/esm/models/Pricing.js +100 -0
- package/dist/esm/models/PricingPage.d.ts +39 -0
- package/dist/esm/models/PricingPage.js +48 -0
- package/dist/esm/models/Problem.d.ts +83 -0
- package/dist/esm/models/Problem.js +83 -0
- package/dist/esm/models/RegisterCommunityMachineRequest.d.ts +70 -0
- package/dist/esm/models/RegisterCommunityMachineRequest.js +58 -0
- package/dist/esm/models/SSHKey.d.ts +50 -0
- package/dist/esm/models/SSHKey.js +55 -0
- package/dist/esm/models/SSHKeyPage.d.ts +39 -0
- package/dist/esm/models/SSHKeyPage.js +48 -0
- package/dist/esm/models/SpendingLimit.d.ts +101 -0
- package/dist/esm/models/SpendingLimit.js +85 -0
- package/dist/esm/models/StreamOptions.d.ts +32 -0
- package/dist/esm/models/StreamOptions.js +41 -0
- package/dist/esm/models/SupplierMachineView.d.ts +162 -0
- package/dist/esm/models/SupplierMachineView.js +114 -0
- package/dist/esm/models/Template.d.ts +121 -0
- package/dist/esm/models/Template.js +90 -0
- package/dist/esm/models/TemplateEnvInner.d.ts +50 -0
- package/dist/esm/models/TemplateEnvInner.js +47 -0
- package/dist/esm/models/TemplateList.d.ts +46 -0
- package/dist/esm/models/TemplateList.js +56 -0
- package/dist/esm/models/TemplatePortsInner.d.ts +52 -0
- package/dist/esm/models/TemplatePortsInner.js +52 -0
- package/dist/esm/models/UpdateCommunityMachineRequest.d.ts +32 -0
- package/dist/esm/models/UpdateCommunityMachineRequest.js +43 -0
- package/dist/esm/models/UpdateInstanceRequest.d.ts +32 -0
- package/dist/esm/models/UpdateInstanceRequest.js +41 -0
- package/dist/esm/models/UpdateSpendingLimitRequest.d.ts +59 -0
- package/dist/esm/models/UpdateSpendingLimitRequest.js +57 -0
- package/dist/esm/models/Usage.d.ts +44 -0
- package/dist/esm/models/Usage.js +51 -0
- package/dist/esm/models/UsageBucket.d.ts +56 -0
- package/dist/esm/models/UsageBucket.js +55 -0
- package/dist/esm/models/UsagePage.d.ts +39 -0
- package/dist/esm/models/UsagePage.js +48 -0
- package/dist/esm/models/VMImage.d.ts +50 -0
- package/dist/esm/models/VMImage.js +53 -0
- package/dist/esm/models/VideoCreateRequest.d.ts +50 -0
- package/dist/esm/models/VideoCreateRequest.js +51 -0
- package/dist/esm/models/VideoJob.d.ts +117 -0
- package/dist/esm/models/VideoJob.js +94 -0
- package/dist/esm/models/VideoList.d.ts +52 -0
- package/dist/esm/models/VideoList.js +60 -0
- package/dist/esm/models/WebhookEndpoint.d.ts +72 -0
- package/dist/esm/models/WebhookEndpoint.js +70 -0
- package/dist/esm/models/WebhookEndpointPage.d.ts +39 -0
- package/dist/esm/models/WebhookEndpointPage.js +48 -0
- package/dist/esm/models/index.d.ts +75 -0
- package/dist/esm/models/index.js +77 -0
- package/dist/esm/runtime.d.ts +185 -0
- package/dist/esm/runtime.js +354 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ChatChoice.d.ts +55 -0
- package/dist/models/ChatChoice.js +63 -0
- package/dist/models/ChatCompletionRequest.d.ts +64 -0
- package/dist/models/ChatCompletionRequest.js +64 -0
- package/dist/models/ChatCompletionResponse.d.ts +71 -0
- package/dist/models/ChatCompletionResponse.js +81 -0
- package/dist/models/ChatMessage.d.ts +47 -0
- package/dist/models/ChatMessage.js +63 -0
- package/dist/models/CommunityEarnings.d.ts +45 -0
- package/dist/models/CommunityEarnings.js +59 -0
- package/dist/models/CommunityEarningsEntry.d.ts +62 -0
- package/dist/models/CommunityEarningsEntry.js +70 -0
- package/dist/models/CommunityMachine.d.ts +125 -0
- package/dist/models/CommunityMachine.js +105 -0
- package/dist/models/CommunityMachineDelistResult.d.ts +46 -0
- package/dist/models/CommunityMachineDelistResult.js +62 -0
- package/dist/models/CommunityMachineRegistration.d.ts +39 -0
- package/dist/models/CommunityMachineRegistration.js +55 -0
- package/dist/models/CommunitySupplier.d.ts +64 -0
- package/dist/models/CommunitySupplier.js +74 -0
- package/dist/models/CreateCryptoDepositRequest.d.ts +64 -0
- package/dist/models/CreateCryptoDepositRequest.js +76 -0
- package/dist/models/CreateFineTuningJobRequest.d.ts +64 -0
- package/dist/models/CreateFineTuningJobRequest.js +66 -0
- package/dist/models/CreateFineTuningJobRequestGpuai.d.ts +38 -0
- package/dist/models/CreateFineTuningJobRequestGpuai.js +50 -0
- package/dist/models/CreateFineTuningJobRequestMethod.d.ts +47 -0
- package/dist/models/CreateFineTuningJobRequestMethod.js +61 -0
- package/dist/models/CreateFineTuningJobRequestMethodLora.d.ts +44 -0
- package/dist/models/CreateFineTuningJobRequestMethodLora.js +52 -0
- package/dist/models/CreateInstanceRequest.d.ts +108 -0
- package/dist/models/CreateInstanceRequest.js +84 -0
- package/dist/models/CreateSshKeyRequest.d.ts +38 -0
- package/dist/models/CreateSshKeyRequest.js +54 -0
- package/dist/models/CreateWebhookEndpointRequest.d.ts +48 -0
- package/dist/models/CreateWebhookEndpointRequest.js +64 -0
- package/dist/models/CryptoDeposit.d.ts +114 -0
- package/dist/models/CryptoDeposit.js +98 -0
- package/dist/models/Environments.d.ts +61 -0
- package/dist/models/Environments.js +64 -0
- package/dist/models/FileObject.d.ts +76 -0
- package/dist/models/FileObject.js +87 -0
- package/dist/models/FineTuningJob.d.ts +133 -0
- package/dist/models/FineTuningJob.js +110 -0
- package/dist/models/FineTuningJobError.d.ts +44 -0
- package/dist/models/FineTuningJobError.js +52 -0
- package/dist/models/FineTuningJobEvent.d.ts +86 -0
- package/dist/models/FineTuningJobEvent.js +87 -0
- package/dist/models/FineTuningJobEventList.d.ts +52 -0
- package/dist/models/FineTuningJobEventList.js +68 -0
- package/dist/models/FineTuningJobList.d.ts +52 -0
- package/dist/models/FineTuningJobList.js +68 -0
- package/dist/models/FineTuningJobMethod.d.ts +47 -0
- package/dist/models/FineTuningJobMethod.js +59 -0
- package/dist/models/FrameworkVersion.d.ts +50 -0
- package/dist/models/FrameworkVersion.js +60 -0
- package/dist/models/GPUType.d.ts +74 -0
- package/dist/models/GPUType.js +66 -0
- package/dist/models/GPUTypePage.d.ts +39 -0
- package/dist/models/GPUTypePage.js +55 -0
- package/dist/models/GetHealth200Response.d.ts +39 -0
- package/dist/models/GetHealth200Response.js +55 -0
- package/dist/models/ImagesGenerationsRequest.d.ts +63 -0
- package/dist/models/ImagesGenerationsRequest.js +67 -0
- package/dist/models/ImagesResponse.d.ts +46 -0
- package/dist/models/ImagesResponse.js +60 -0
- package/dist/models/ImagesResponseDataInner.d.ts +32 -0
- package/dist/models/ImagesResponseDataInner.js +50 -0
- package/dist/models/ImagesResponseUsage.d.ts +32 -0
- package/dist/models/ImagesResponseUsage.js +50 -0
- package/dist/models/IncludeItem.d.ts +38 -0
- package/dist/models/IncludeItem.js +52 -0
- package/dist/models/Instance.d.ts +132 -0
- package/dist/models/Instance.js +111 -0
- package/dist/models/InstanceConnection.d.ts +68 -0
- package/dist/models/InstanceConnection.js +60 -0
- package/dist/models/InstancePage.d.ts +39 -0
- package/dist/models/InstancePage.js +55 -0
- package/dist/models/ListCommunityMachines200Response.d.ts +33 -0
- package/dist/models/ListCommunityMachines200Response.js +51 -0
- package/dist/models/ListDeposits200Response.d.ts +33 -0
- package/dist/models/ListDeposits200Response.js +51 -0
- package/dist/models/Model.d.ts +131 -0
- package/dist/models/Model.js +111 -0
- package/dist/models/ModelList.d.ts +46 -0
- package/dist/models/ModelList.js +64 -0
- package/dist/models/ModelParametersInner.d.ts +72 -0
- package/dist/models/ModelParametersInner.js +72 -0
- package/dist/models/ModelPricing.d.ts +80 -0
- package/dist/models/ModelPricing.js +64 -0
- package/dist/models/OpenAIErrorEnvelope.d.ts +33 -0
- package/dist/models/OpenAIErrorEnvelope.js +51 -0
- package/dist/models/OpenAIErrorEnvelopeError.d.ts +50 -0
- package/dist/models/OpenAIErrorEnvelopeError.js +60 -0
- package/dist/models/Operation.d.ts +107 -0
- package/dist/models/Operation.js +94 -0
- package/dist/models/OperationError.d.ts +38 -0
- package/dist/models/OperationError.js +50 -0
- package/dist/models/OperationResult.d.ts +50 -0
- package/dist/models/OperationResult.js +54 -0
- package/dist/models/Pricing.d.ts +133 -0
- package/dist/models/Pricing.js +108 -0
- package/dist/models/PricingPage.d.ts +39 -0
- package/dist/models/PricingPage.js +55 -0
- package/dist/models/Problem.d.ts +83 -0
- package/dist/models/Problem.js +91 -0
- package/dist/models/RegisterCommunityMachineRequest.d.ts +70 -0
- package/dist/models/RegisterCommunityMachineRequest.js +66 -0
- package/dist/models/SSHKey.d.ts +50 -0
- package/dist/models/SSHKey.js +62 -0
- package/dist/models/SSHKeyPage.d.ts +39 -0
- package/dist/models/SSHKeyPage.js +55 -0
- package/dist/models/SpendingLimit.d.ts +101 -0
- package/dist/models/SpendingLimit.js +93 -0
- package/dist/models/StreamOptions.d.ts +32 -0
- package/dist/models/StreamOptions.js +48 -0
- package/dist/models/SupplierMachineView.d.ts +162 -0
- package/dist/models/SupplierMachineView.js +122 -0
- package/dist/models/Template.d.ts +121 -0
- package/dist/models/Template.js +98 -0
- package/dist/models/TemplateEnvInner.d.ts +50 -0
- package/dist/models/TemplateEnvInner.js +54 -0
- package/dist/models/TemplateList.d.ts +46 -0
- package/dist/models/TemplateList.js +64 -0
- package/dist/models/TemplatePortsInner.d.ts +52 -0
- package/dist/models/TemplatePortsInner.js +60 -0
- package/dist/models/UpdateCommunityMachineRequest.d.ts +32 -0
- package/dist/models/UpdateCommunityMachineRequest.js +50 -0
- package/dist/models/UpdateInstanceRequest.d.ts +32 -0
- package/dist/models/UpdateInstanceRequest.js +48 -0
- package/dist/models/UpdateSpendingLimitRequest.d.ts +59 -0
- package/dist/models/UpdateSpendingLimitRequest.js +65 -0
- package/dist/models/Usage.d.ts +44 -0
- package/dist/models/Usage.js +58 -0
- package/dist/models/UsageBucket.d.ts +56 -0
- package/dist/models/UsageBucket.js +62 -0
- package/dist/models/UsagePage.d.ts +39 -0
- package/dist/models/UsagePage.js +55 -0
- package/dist/models/VMImage.d.ts +50 -0
- package/dist/models/VMImage.js +60 -0
- package/dist/models/VideoCreateRequest.d.ts +50 -0
- package/dist/models/VideoCreateRequest.js +58 -0
- package/dist/models/VideoJob.d.ts +117 -0
- package/dist/models/VideoJob.js +102 -0
- package/dist/models/VideoList.d.ts +52 -0
- package/dist/models/VideoList.js +68 -0
- package/dist/models/WebhookEndpoint.d.ts +72 -0
- package/dist/models/WebhookEndpoint.js +78 -0
- package/dist/models/WebhookEndpointPage.d.ts +39 -0
- package/dist/models/WebhookEndpointPage.js +55 -0
- package/dist/models/index.d.ts +75 -0
- package/dist/models/index.js +93 -0
- package/dist/runtime.d.ts +185 -0
- package/dist/runtime.js +371 -0
- package/docs/BillingApi.md +371 -0
- package/docs/ChatChoice.md +38 -0
- package/docs/ChatCompletionRequest.md +44 -0
- package/docs/ChatCompletionResponse.md +44 -0
- package/docs/ChatMessage.md +36 -0
- package/docs/CommunityApi.md +679 -0
- package/docs/CommunityEarnings.md +38 -0
- package/docs/CommunityEarningsEntry.md +44 -0
- package/docs/CommunityMachine.md +57 -0
- package/docs/CommunityMachineDelistResult.md +37 -0
- package/docs/CommunityMachineRegistration.md +36 -0
- package/docs/CommunitySupplier.md +43 -0
- package/docs/CreateCryptoDepositRequest.md +38 -0
- package/docs/CreateFineTuningJobRequest.md +45 -0
- package/docs/CreateFineTuningJobRequestGpuai.md +36 -0
- package/docs/CreateFineTuningJobRequestMethod.md +36 -0
- package/docs/CreateFineTuningJobRequestMethodLora.md +38 -0
- package/docs/CreateInstanceRequest.md +56 -0
- package/docs/CreateSshKeyRequest.md +36 -0
- package/docs/CreateWebhookEndpointRequest.md +36 -0
- package/docs/CryptoDeposit.md +55 -0
- package/docs/Environments.md +41 -0
- package/docs/EnvironmentsApi.md +69 -0
- package/docs/FileObject.md +45 -0
- package/docs/FineTuningApi.md +468 -0
- package/docs/FineTuningJob.md +61 -0
- package/docs/FineTuningJobError.md +38 -0
- package/docs/FineTuningJobEvent.md +46 -0
- package/docs/FineTuningJobEventList.md +38 -0
- package/docs/FineTuningJobList.md +38 -0
- package/docs/FineTuningJobMethod.md +36 -0
- package/docs/FrameworkVersion.md +40 -0
- package/docs/GPUType.md +48 -0
- package/docs/GPUTypePage.md +36 -0
- package/docs/GetHealth200Response.md +34 -0
- package/docs/GpuTypesApi.md +78 -0
- package/docs/ImagesGenerationsRequest.md +42 -0
- package/docs/ImagesResponse.md +38 -0
- package/docs/ImagesResponseDataInner.md +34 -0
- package/docs/ImagesResponseUsage.md +34 -0
- package/docs/IncludeItem.md +36 -0
- package/docs/InferenceApi.md +704 -0
- package/docs/Instance.md +60 -0
- package/docs/InstanceConnection.md +46 -0
- package/docs/InstancePage.md +36 -0
- package/docs/InstancesApi.md +392 -0
- package/docs/ListCommunityMachines200Response.md +34 -0
- package/docs/ListDeposits200Response.md +34 -0
- package/docs/MetaApi.md +124 -0
- package/docs/Model.md +58 -0
- package/docs/ModelList.md +36 -0
- package/docs/ModelParametersInner.md +44 -0
- package/docs/ModelPricing.md +50 -0
- package/docs/OpenAIErrorEnvelope.md +34 -0
- package/docs/OpenAIErrorEnvelopeError.md +40 -0
- package/docs/Operation.md +52 -0
- package/docs/OperationError.md +36 -0
- package/docs/OperationResult.md +41 -0
- package/docs/OperationsApi.md +80 -0
- package/docs/Pricing.md +62 -0
- package/docs/PricingApi.md +92 -0
- package/docs/PricingPage.md +36 -0
- package/docs/Problem.md +44 -0
- package/docs/RegisterCommunityMachineRequest.md +45 -0
- package/docs/SSHKey.md +40 -0
- package/docs/SSHKeyPage.md +36 -0
- package/docs/SpendingLimit.md +54 -0
- package/docs/SshKeysApi.md +305 -0
- package/docs/StreamOptions.md +34 -0
- package/docs/SupplierMachineView.md +69 -0
- package/docs/Template.md +59 -0
- package/docs/TemplateEnvInner.md +40 -0
- package/docs/TemplateList.md +36 -0
- package/docs/TemplatePortsInner.md +38 -0
- package/docs/TemplatesApi.md +145 -0
- package/docs/UpdateCommunityMachineRequest.md +34 -0
- package/docs/UpdateInstanceRequest.md +34 -0
- package/docs/UpdateSpendingLimitRequest.md +40 -0
- package/docs/Usage.md +38 -0
- package/docs/UsageApi.md +95 -0
- package/docs/UsageBucket.md +42 -0
- package/docs/UsagePage.md +36 -0
- package/docs/VMImage.md +40 -0
- package/docs/VideoCreateRequest.md +40 -0
- package/docs/VideoJob.md +56 -0
- package/docs/VideoList.md +38 -0
- package/docs/WebhookEndpoint.md +44 -0
- package/docs/WebhookEndpointPage.md +36 -0
- package/docs/WebhooksApi.md +302 -0
- package/package.json +22 -0
- package/src/apis/BillingApi.ts +327 -0
- package/src/apis/CommunityApi.ts +577 -0
- package/src/apis/EnvironmentsApi.ts +71 -0
- package/src/apis/FineTuningApi.ts +447 -0
- package/src/apis/GpuTypesApi.ts +82 -0
- package/src/apis/InferenceApi.ts +614 -0
- package/src/apis/InstancesApi.ts +390 -0
- package/src/apis/MetaApi.ts +101 -0
- package/src/apis/OperationsApi.ts +89 -0
- package/src/apis/PricingApi.ts +113 -0
- package/src/apis/SshKeysApi.ts +279 -0
- package/src/apis/TemplatesApi.ts +139 -0
- package/src/apis/UsageApi.ts +129 -0
- package/src/apis/WebhooksApi.ts +277 -0
- package/src/apis/index.ts +16 -0
- package/src/index.ts +5 -0
- package/src/models/ChatChoice.ts +102 -0
- package/src/models/ChatCompletionRequest.ts +122 -0
- package/src/models/ChatCompletionResponse.ts +138 -0
- package/src/models/ChatMessage.ts +87 -0
- package/src/models/CommunityEarnings.ts +92 -0
- package/src/models/CommunityEarningsEntry.ts +111 -0
- package/src/models/CommunityMachine.ts +190 -0
- package/src/models/CommunityMachineDelistResult.ts +86 -0
- package/src/models/CommunityMachineRegistration.ts +83 -0
- package/src/models/CommunitySupplier.ts +113 -0
- package/src/models/CreateCryptoDepositRequest.ts +108 -0
- package/src/models/CreateFineTuningJobRequest.ts +123 -0
- package/src/models/CreateFineTuningJobRequestGpuai.ts +73 -0
- package/src/models/CreateFineTuningJobRequestMethod.ts +93 -0
- package/src/models/CreateFineTuningJobRequestMethodLora.ts +81 -0
- package/src/models/CreateInstanceRequest.ts +167 -0
- package/src/models/CreateSshKeyRequest.ts +75 -0
- package/src/models/CreateWebhookEndpointRequest.ts +88 -0
- package/src/models/CryptoDeposit.ts +177 -0
- package/src/models/Environments.ts +115 -0
- package/src/models/FileObject.ts +133 -0
- package/src/models/FineTuningJob.ts +216 -0
- package/src/models/FineTuningJobError.ts +81 -0
- package/src/models/FineTuningJobEvent.ts +140 -0
- package/src/models/FineTuningJobEventList.ts +104 -0
- package/src/models/FineTuningJobList.ts +104 -0
- package/src/models/FineTuningJobMethod.ts +92 -0
- package/src/models/FrameworkVersion.ts +92 -0
- package/src/models/GPUType.ts +123 -0
- package/src/models/GPUTypePage.ts +83 -0
- package/src/models/GetHealth200Response.ts +75 -0
- package/src/models/ImagesGenerationsRequest.ts +109 -0
- package/src/models/ImagesResponse.ts +99 -0
- package/src/models/ImagesResponseDataInner.ts +66 -0
- package/src/models/ImagesResponseUsage.ts +66 -0
- package/src/models/IncludeItem.ts +74 -0
- package/src/models/Instance.ts +210 -0
- package/src/models/InstanceConnection.ts +113 -0
- package/src/models/InstancePage.ts +83 -0
- package/src/models/ListCommunityMachines200Response.ts +74 -0
- package/src/models/ListDeposits200Response.ts +74 -0
- package/src/models/Model.ts +214 -0
- package/src/models/ModelList.ts +95 -0
- package/src/models/ModelParametersInner.ts +120 -0
- package/src/models/ModelPricing.ts +129 -0
- package/src/models/OpenAIErrorEnvelope.ts +74 -0
- package/src/models/OpenAIErrorEnvelopeError.ts +92 -0
- package/src/models/Operation.ts +179 -0
- package/src/models/OperationError.ts +73 -0
- package/src/models/OperationResult.ts +89 -0
- package/src/models/Pricing.ts +206 -0
- package/src/models/PricingPage.ts +83 -0
- package/src/models/Problem.ts +135 -0
- package/src/models/RegisterCommunityMachineRequest.ts +116 -0
- package/src/models/SSHKey.ts +93 -0
- package/src/models/SSHKeyPage.ts +83 -0
- package/src/models/SpendingLimit.ts +165 -0
- package/src/models/StreamOptions.ts +65 -0
- package/src/models/SupplierMachineView.ts +241 -0
- package/src/models/Template.ts +200 -0
- package/src/models/TemplateEnvInner.ts +89 -0
- package/src/models/TemplateList.ts +95 -0
- package/src/models/TemplatePortsInner.ts +92 -0
- package/src/models/UpdateCommunityMachineRequest.ts +66 -0
- package/src/models/UpdateInstanceRequest.ts +65 -0
- package/src/models/UpdateSpendingLimitRequest.ts +102 -0
- package/src/models/Usage.ts +84 -0
- package/src/models/UsageBucket.ts +100 -0
- package/src/models/UsagePage.ts +83 -0
- package/src/models/VMImage.ts +92 -0
- package/src/models/VideoCreateRequest.ts +91 -0
- package/src/models/VideoJob.ts +184 -0
- package/src/models/VideoList.ts +104 -0
- package/src/models/WebhookEndpoint.ts +123 -0
- package/src/models/WebhookEndpointPage.ts +83 -0
- package/src/models/index.ts +77 -0
- package/src/runtime.ts +454 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateInstanceRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateInstanceRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateInstanceRequest
|
|
26
|
+
*/
|
|
27
|
+
gpuType: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CreateInstanceRequest
|
|
32
|
+
*/
|
|
33
|
+
gpuCount: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateInstanceRequest
|
|
38
|
+
*/
|
|
39
|
+
region?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {CreateInstanceRequestTierEnum}
|
|
43
|
+
* @memberof CreateInstanceRequest
|
|
44
|
+
*/
|
|
45
|
+
tier: CreateInstanceRequestTierEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof CreateInstanceRequest
|
|
50
|
+
*/
|
|
51
|
+
sshKeyIds?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateInstanceRequest
|
|
56
|
+
*/
|
|
57
|
+
name?: string;
|
|
58
|
+
/**
|
|
59
|
+
* maximum acceptable whole-instance hourly price (catalog price)
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof CreateInstanceRequest
|
|
62
|
+
*/
|
|
63
|
+
maxPricePerHour?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Deploy a curated application template (e.g. comfyui, vllm). When set, gpu_type may be omitted — the cheapest eligible GPU is auto-selected. For templates serving a Hugging Face model via env.MODEL (vllm, sglang), the model's published weights size is checked against the GPU's VRAM at submit time: an oversized model on an explicit gpu_type returns 422 `model_too_large` (auto-select instead raises its VRAM floor to the estimate, and 422s only when no available GPU fits). Gated/private/unknown repos are never blocked — the deploy proceeds and the 202 carries a `warnings` entry.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CreateInstanceRequest
|
|
68
|
+
*/
|
|
69
|
+
templateId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Launch environment. Omit for the provider default (the GPU.ai Certified Image where supported). Accepted values: `certified` (the GPU.ai Certified base image), `certified:<framework>` (a framework layer — see GET /v1/environments for the roster, e.g. `certified:pytorch`), `certified:<framework>@<version>` (a specific framework version, e.g. `certified:pytorch@2.13`), `raw_vm` (root VM, provider default OS), `raw_vm:<os>` (root VM with a chosen OS, e.g. `raw_vm:ubuntu-24.04`), or `provider_template` (the provider's own image). A well-formed value the placed machine can't serve returns 422 `environment_unavailable`.
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CreateInstanceRequest
|
|
74
|
+
*/
|
|
75
|
+
environment?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Pin the launch to one exact offering (from GET /v1/pricing) so the engine never substitutes a pricier one. If that offering is gone, the launch fails explicitly rather than silently placing elsewhere.
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof CreateInstanceRequest
|
|
80
|
+
*/
|
|
81
|
+
offeringId?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Requested instance filesystem size in GB. Omit for the platform default (100 GB), which never narrows placement. Setting it is a hard requirement: placement narrows to capacity that can honor it (see `disk_configurable` on GET /v1/pricing), and a request no offering of the gpu_type can honor returns 422 `disk_unavailable` rather than launching with a different size. Disk beyond the included allowance (100 GB) is billed at the offering's `disk_price_per_gb_hour` (GET /v1/pricing), folded into the instance's single hourly rate. Bounds: at least 10, at most the platform ceiling (currently 1000) — outside them returns 422 `validation_failed`.
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof CreateInstanceRequest
|
|
86
|
+
*/
|
|
87
|
+
diskGb?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Per-deploy env overrides; only keys the template marks user_overridable are accepted (others 422). Secret values are redacted from operation metadata.
|
|
90
|
+
* @type {{ [key: string]: string; }}
|
|
91
|
+
* @memberof CreateInstanceRequest
|
|
92
|
+
*/
|
|
93
|
+
env?: { [key: string]: string; };
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export const CreateInstanceRequestTierEnum = {
|
|
101
|
+
Spot: 'spot',
|
|
102
|
+
OnDemand: 'on_demand'
|
|
103
|
+
} as const;
|
|
104
|
+
export type CreateInstanceRequestTierEnum = typeof CreateInstanceRequestTierEnum[keyof typeof CreateInstanceRequestTierEnum];
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the CreateInstanceRequest interface.
|
|
109
|
+
*/
|
|
110
|
+
export function instanceOfCreateInstanceRequest(value: object): value is CreateInstanceRequest {
|
|
111
|
+
if ((!('gpuType' in (value as Record<string, any>)) && !('gpu_type' in (value as Record<string, any>))) || ((value as Record<string, any>)['gpuType'] === undefined && (value as Record<string, any>)['gpu_type'] === undefined)) return false;
|
|
112
|
+
if ((!('gpuCount' in (value as Record<string, any>)) && !('gpu_count' in (value as Record<string, any>))) || ((value as Record<string, any>)['gpuCount'] === undefined && (value as Record<string, any>)['gpu_count'] === undefined)) return false;
|
|
113
|
+
if (!('tier' in value) || value['tier'] === undefined) return false;
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function CreateInstanceRequestFromJSON(json: any): CreateInstanceRequest {
|
|
118
|
+
return CreateInstanceRequestFromJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function CreateInstanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateInstanceRequest {
|
|
122
|
+
if (json == null) {
|
|
123
|
+
return json;
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'gpuType': json['gpu_type'],
|
|
128
|
+
'gpuCount': json['gpu_count'],
|
|
129
|
+
'region': json['region'] == null ? undefined : json['region'],
|
|
130
|
+
'tier': json['tier'],
|
|
131
|
+
'sshKeyIds': json['ssh_key_ids'] == null ? undefined : json['ssh_key_ids'],
|
|
132
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
133
|
+
'maxPricePerHour': json['max_price_per_hour'] == null ? undefined : json['max_price_per_hour'],
|
|
134
|
+
'templateId': json['template_id'] == null ? undefined : json['template_id'],
|
|
135
|
+
'environment': json['environment'] == null ? undefined : json['environment'],
|
|
136
|
+
'offeringId': json['offering_id'] == null ? undefined : json['offering_id'],
|
|
137
|
+
'diskGb': json['disk_gb'] == null ? undefined : json['disk_gb'],
|
|
138
|
+
'env': json['env'] == null ? undefined : json['env'],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function CreateInstanceRequestToJSON(json: any): CreateInstanceRequest {
|
|
143
|
+
return CreateInstanceRequestToJSONTyped(json, false);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function CreateInstanceRequestToJSONTyped(value?: CreateInstanceRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
147
|
+
if (value == null) {
|
|
148
|
+
return value;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'gpu_type': value['gpuType'],
|
|
154
|
+
'gpu_count': value['gpuCount'],
|
|
155
|
+
'region': value['region'],
|
|
156
|
+
'tier': value['tier'],
|
|
157
|
+
'ssh_key_ids': value['sshKeyIds'],
|
|
158
|
+
'name': value['name'],
|
|
159
|
+
'max_price_per_hour': value['maxPricePerHour'],
|
|
160
|
+
'template_id': value['templateId'],
|
|
161
|
+
'environment': value['environment'],
|
|
162
|
+
'offering_id': value['offeringId'],
|
|
163
|
+
'disk_gb': value['diskGb'],
|
|
164
|
+
'env': value['env'],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateSshKeyRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateSshKeyRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateSshKeyRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateSshKeyRequest
|
|
32
|
+
*/
|
|
33
|
+
publicKey: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CreateSshKeyRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCreateSshKeyRequest(value: object): value is CreateSshKeyRequest {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if ((!('publicKey' in (value as Record<string, any>)) && !('public_key' in (value as Record<string, any>))) || ((value as Record<string, any>)['publicKey'] === undefined && (value as Record<string, any>)['public_key'] === undefined)) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CreateSshKeyRequestFromJSON(json: any): CreateSshKeyRequest {
|
|
46
|
+
return CreateSshKeyRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CreateSshKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSshKeyRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'publicKey': json['public_key'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CreateSshKeyRequestToJSON(json: any): CreateSshKeyRequest {
|
|
61
|
+
return CreateSshKeyRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CreateSshKeyRequestToJSONTyped(value?: CreateSshKeyRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'public_key': value['publicKey'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateWebhookEndpointRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateWebhookEndpointRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateWebhookEndpointRequest
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<CreateWebhookEndpointRequestEventTypesEnum>}
|
|
31
|
+
* @memberof CreateWebhookEndpointRequest
|
|
32
|
+
*/
|
|
33
|
+
eventTypes: Array<CreateWebhookEndpointRequestEventTypesEnum>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const CreateWebhookEndpointRequestEventTypesEnum = {
|
|
41
|
+
InstanceCreating: 'instance.creating',
|
|
42
|
+
InstanceRunning: 'instance.running',
|
|
43
|
+
InstanceTerminated: 'instance.terminated',
|
|
44
|
+
InstanceFailed: 'instance.failed'
|
|
45
|
+
} as const;
|
|
46
|
+
export type CreateWebhookEndpointRequestEventTypesEnum = typeof CreateWebhookEndpointRequestEventTypesEnum[keyof typeof CreateWebhookEndpointRequestEventTypesEnum];
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CreateWebhookEndpointRequest interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfCreateWebhookEndpointRequest(value: object): value is CreateWebhookEndpointRequest {
|
|
53
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
54
|
+
if ((!('eventTypes' in (value as Record<string, any>)) && !('event_types' in (value as Record<string, any>))) || ((value as Record<string, any>)['eventTypes'] === undefined && (value as Record<string, any>)['event_types'] === undefined)) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CreateWebhookEndpointRequestFromJSON(json: any): CreateWebhookEndpointRequest {
|
|
59
|
+
return CreateWebhookEndpointRequestFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CreateWebhookEndpointRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWebhookEndpointRequest {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'url': json['url'],
|
|
69
|
+
'eventTypes': json['event_types'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function CreateWebhookEndpointRequestToJSON(json: any): CreateWebhookEndpointRequest {
|
|
74
|
+
return CreateWebhookEndpointRequestToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function CreateWebhookEndpointRequestToJSONTyped(value?: CreateWebhookEndpointRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'url': value['url'],
|
|
85
|
+
'event_types': value['eventTypes'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* A stablecoin deposit. Mirrors the Go DTO field for field. Like that struct, this schema deliberately has NO payment-processor property — the processor is an implementation detail and is structurally absent from the customer contract, not merely filtered out.
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CryptoDeposit
|
|
21
|
+
*/
|
|
22
|
+
export interface CryptoDeposit {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CryptoDeposit
|
|
27
|
+
*/
|
|
28
|
+
depositId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Lifecycle state: created, detected, confirming, settled, screening, held_screening, credited, credited_underpaid, credited_overpaid, expired, expired_received, failed, failed_screening.
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CryptoDeposit
|
|
34
|
+
*/
|
|
35
|
+
status: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {CryptoDepositChainEnum}
|
|
39
|
+
* @memberof CryptoDeposit
|
|
40
|
+
*/
|
|
41
|
+
chain: CryptoDepositChainEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CryptoDepositAssetEnum}
|
|
45
|
+
* @memberof CryptoDeposit
|
|
46
|
+
*/
|
|
47
|
+
asset: CryptoDepositAssetEnum;
|
|
48
|
+
/**
|
|
49
|
+
* The address to send funds to. Unique to this deposit.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CryptoDeposit
|
|
52
|
+
*/
|
|
53
|
+
payAddress?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The exact token amount to send, as a decimal string (never a number — the value must not round-trip through a float).
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CryptoDeposit
|
|
59
|
+
*/
|
|
60
|
+
payAmount?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The amount requested, in USD cents. Never the settled or credited value.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof CryptoDeposit
|
|
65
|
+
*/
|
|
66
|
+
amountUsdCents: number;
|
|
67
|
+
/**
|
|
68
|
+
* USD cents actually credited to the balance. Absent until credited.
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof CryptoDeposit
|
|
71
|
+
*/
|
|
72
|
+
creditedCents?: number;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CryptoDeposit
|
|
77
|
+
*/
|
|
78
|
+
txHash?: string;
|
|
79
|
+
/**
|
|
80
|
+
* RFC3339 UTC. After this, send nothing to pay_address.
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof CryptoDeposit
|
|
83
|
+
*/
|
|
84
|
+
expiresAt?: Date;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof CryptoDeposit
|
|
89
|
+
*/
|
|
90
|
+
createdAt: Date;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export const CryptoDepositChainEnum = {
|
|
98
|
+
Ethereum: 'ethereum',
|
|
99
|
+
Base: 'base',
|
|
100
|
+
Arbitrum: 'arbitrum',
|
|
101
|
+
Polygon: 'polygon',
|
|
102
|
+
Solana: 'solana'
|
|
103
|
+
} as const;
|
|
104
|
+
export type CryptoDepositChainEnum = typeof CryptoDepositChainEnum[keyof typeof CryptoDepositChainEnum];
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const CryptoDepositAssetEnum = {
|
|
110
|
+
Usdc: 'usdc',
|
|
111
|
+
Usdt: 'usdt'
|
|
112
|
+
} as const;
|
|
113
|
+
export type CryptoDepositAssetEnum = typeof CryptoDepositAssetEnum[keyof typeof CryptoDepositAssetEnum];
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Check if a given object implements the CryptoDeposit interface.
|
|
118
|
+
*/
|
|
119
|
+
export function instanceOfCryptoDeposit(value: object): value is CryptoDeposit {
|
|
120
|
+
if ((!('depositId' in (value as Record<string, any>)) && !('deposit_id' in (value as Record<string, any>))) || ((value as Record<string, any>)['depositId'] === undefined && (value as Record<string, any>)['deposit_id'] === undefined)) return false;
|
|
121
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
122
|
+
if (!('chain' in value) || value['chain'] === undefined) return false;
|
|
123
|
+
if (!('asset' in value) || value['asset'] === undefined) return false;
|
|
124
|
+
if ((!('amountUsdCents' in (value as Record<string, any>)) && !('amount_usd_cents' in (value as Record<string, any>))) || ((value as Record<string, any>)['amountUsdCents'] === undefined && (value as Record<string, any>)['amount_usd_cents'] === undefined)) return false;
|
|
125
|
+
if ((!('createdAt' in (value as Record<string, any>)) && !('created_at' in (value as Record<string, any>))) || ((value as Record<string, any>)['createdAt'] === undefined && (value as Record<string, any>)['created_at'] === undefined)) return false;
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function CryptoDepositFromJSON(json: any): CryptoDeposit {
|
|
130
|
+
return CryptoDepositFromJSONTyped(json, false);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function CryptoDepositFromJSONTyped(json: any, ignoreDiscriminator: boolean): CryptoDeposit {
|
|
134
|
+
if (json == null) {
|
|
135
|
+
return json;
|
|
136
|
+
}
|
|
137
|
+
return {
|
|
138
|
+
|
|
139
|
+
'depositId': json['deposit_id'],
|
|
140
|
+
'status': json['status'],
|
|
141
|
+
'chain': json['chain'],
|
|
142
|
+
'asset': json['asset'],
|
|
143
|
+
'payAddress': json['pay_address'] == null ? undefined : json['pay_address'],
|
|
144
|
+
'payAmount': json['pay_amount'] == null ? undefined : json['pay_amount'],
|
|
145
|
+
'amountUsdCents': json['amount_usd_cents'],
|
|
146
|
+
'creditedCents': json['credited_cents'] == null ? undefined : json['credited_cents'],
|
|
147
|
+
'txHash': json['tx_hash'] == null ? undefined : json['tx_hash'],
|
|
148
|
+
'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
149
|
+
'createdAt': (new Date(json['created_at'])),
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function CryptoDepositToJSON(json: any): CryptoDeposit {
|
|
154
|
+
return CryptoDepositToJSONTyped(json, false);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function CryptoDepositToJSONTyped(value?: CryptoDeposit | null, ignoreDiscriminator: boolean = false): any {
|
|
158
|
+
if (value == null) {
|
|
159
|
+
return value;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return {
|
|
163
|
+
|
|
164
|
+
'deposit_id': value['depositId'],
|
|
165
|
+
'status': value['status'],
|
|
166
|
+
'chain': value['chain'],
|
|
167
|
+
'asset': value['asset'],
|
|
168
|
+
'pay_address': value['payAddress'],
|
|
169
|
+
'pay_amount': value['payAmount'],
|
|
170
|
+
'amount_usd_cents': value['amountUsdCents'],
|
|
171
|
+
'credited_cents': value['creditedCents'],
|
|
172
|
+
'tx_hash': value['txHash'],
|
|
173
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
174
|
+
'created_at': value['createdAt'].toISOString(),
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GPU.ai Public Developer API
|
|
5
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@gpu.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IncludeItem } from './IncludeItem';
|
|
17
|
+
import {
|
|
18
|
+
IncludeItemFromJSON,
|
|
19
|
+
IncludeItemFromJSONTyped,
|
|
20
|
+
IncludeItemToJSON,
|
|
21
|
+
IncludeItemToJSONTyped,
|
|
22
|
+
} from './IncludeItem';
|
|
23
|
+
import type { VMImage } from './VMImage';
|
|
24
|
+
import {
|
|
25
|
+
VMImageFromJSON,
|
|
26
|
+
VMImageFromJSONTyped,
|
|
27
|
+
VMImageToJSON,
|
|
28
|
+
VMImageToJSONTyped,
|
|
29
|
+
} from './VMImage';
|
|
30
|
+
import type { FrameworkVersion } from './FrameworkVersion';
|
|
31
|
+
import {
|
|
32
|
+
FrameworkVersionFromJSON,
|
|
33
|
+
FrameworkVersionFromJSONTyped,
|
|
34
|
+
FrameworkVersionToJSON,
|
|
35
|
+
FrameworkVersionToJSONTyped,
|
|
36
|
+
} from './FrameworkVersion';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The launch environment catalog (GET /v1/environments).
|
|
40
|
+
* @export
|
|
41
|
+
* @interface Environments
|
|
42
|
+
*/
|
|
43
|
+
export interface Environments {
|
|
44
|
+
/**
|
|
45
|
+
* Certified framework ids whose images are fully published — the `certified:<framework>` options.
|
|
46
|
+
* @type {Array<string>}
|
|
47
|
+
* @memberof Environments
|
|
48
|
+
*/
|
|
49
|
+
frameworks: Array<string>;
|
|
50
|
+
/**
|
|
51
|
+
* The version picker roster: framework id → selectable versions (the `certified:<framework>@<version>` grammar). A framework absent here has one build per CUDA variant. `variant` is the CUDA variant a version targets — only offerings whose GPU maps to it can run it.
|
|
52
|
+
* @type {{ [key: string]: Array<FrameworkVersion>; }}
|
|
53
|
+
* @memberof Environments
|
|
54
|
+
*/
|
|
55
|
+
versions: { [key: string]: Array<FrameworkVersion>; };
|
|
56
|
+
/**
|
|
57
|
+
* "What's included" software lists: framework id (roster ids plus "base") → CUDA variant ("cuda128"/"cuda124") → components.
|
|
58
|
+
* @type {{ [key: string]: { [key: string]: Array<IncludeItem>; }; }}
|
|
59
|
+
* @memberof Environments
|
|
60
|
+
*/
|
|
61
|
+
includes: { [key: string]: { [key: string]: Array<IncludeItem>; }; };
|
|
62
|
+
/**
|
|
63
|
+
* The raw-VM OS catalog (the `raw_vm:<os>` grammar), keyed by os id.
|
|
64
|
+
* @type {{ [key: string]: VMImage; }}
|
|
65
|
+
* @memberof Environments
|
|
66
|
+
*/
|
|
67
|
+
vmImages: { [key: string]: VMImage; };
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the Environments interface.
|
|
72
|
+
*/
|
|
73
|
+
export function instanceOfEnvironments(value: object): value is Environments {
|
|
74
|
+
if (!('frameworks' in value) || value['frameworks'] === undefined) return false;
|
|
75
|
+
if (!('versions' in value) || value['versions'] === undefined) return false;
|
|
76
|
+
if (!('includes' in value) || value['includes'] === undefined) return false;
|
|
77
|
+
if ((!('vmImages' in (value as Record<string, any>)) && !('vm_images' in (value as Record<string, any>))) || ((value as Record<string, any>)['vmImages'] === undefined && (value as Record<string, any>)['vm_images'] === undefined)) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function EnvironmentsFromJSON(json: any): Environments {
|
|
82
|
+
return EnvironmentsFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function EnvironmentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Environments {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'frameworks': json['frameworks'],
|
|
92
|
+
'versions': json['versions'],
|
|
93
|
+
'includes': json['includes'],
|
|
94
|
+
'vmImages': (mapValues(json['vm_images'], VMImageFromJSON)),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function EnvironmentsToJSON(json: any): Environments {
|
|
99
|
+
return EnvironmentsToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function EnvironmentsToJSONTyped(value?: Environments | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'frameworks': value['frameworks'],
|
|
110
|
+
'versions': value['versions'],
|
|
111
|
+
'includes': value['includes'],
|
|
112
|
+
'vm_images': (mapValues(value['vmImages'], VMImageToJSON)),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|