@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,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Pricing
|
|
16
|
+
*/
|
|
17
|
+
export interface Pricing {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Pricing
|
|
22
|
+
*/
|
|
23
|
+
gpuType: string;
|
|
24
|
+
/**
|
|
25
|
+
* number of GPUs in the listed configuration
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof Pricing
|
|
28
|
+
*/
|
|
29
|
+
gpuCount: number;
|
|
30
|
+
/**
|
|
31
|
+
* host vCPU count for this offering, tied to the shown (cheapest) price. 0 marks an unreported spec.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof Pricing
|
|
34
|
+
*/
|
|
35
|
+
cpuCores?: number;
|
|
36
|
+
/**
|
|
37
|
+
* host RAM (GB) for this offering, tied to the shown price. 0 marks an unreported spec.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof Pricing
|
|
40
|
+
*/
|
|
41
|
+
ramGb?: number;
|
|
42
|
+
/**
|
|
43
|
+
* host storage (GB) for this offering, tied to the shown price. 0 marks an unreported spec.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof Pricing
|
|
46
|
+
*/
|
|
47
|
+
storageGb?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Pricing
|
|
52
|
+
*/
|
|
53
|
+
region: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {PricingTierEnum}
|
|
57
|
+
* @memberof Pricing
|
|
58
|
+
*/
|
|
59
|
+
tier: PricingTierEnum;
|
|
60
|
+
/**
|
|
61
|
+
* hourly price for the whole listed configuration — covers all gpu_count GPUs
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof Pricing
|
|
64
|
+
*/
|
|
65
|
+
pricePerHour: number;
|
|
66
|
+
/**
|
|
67
|
+
* count of available units, summed across merged identical offers
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof Pricing
|
|
70
|
+
*/
|
|
71
|
+
available: number;
|
|
72
|
+
/**
|
|
73
|
+
* true when instances of this offering are typically reachable within about a minute of launch; false for capacity with longer provisioning times (~3-5 minutes)
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof Pricing
|
|
76
|
+
*/
|
|
77
|
+
instantBoot: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* true when this offering is community-supplied capacity
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof Pricing
|
|
82
|
+
*/
|
|
83
|
+
community: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Instance filesystem size (GB) a launch of THIS offering receives — the platform default where the upstream honors a configured size, otherwise the machine's own reported disk; tied to the shown (cheapest) price like cpu_cores. 0 marks an unreported disk (unknown, not zero).
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof Pricing
|
|
88
|
+
*/
|
|
89
|
+
instanceDiskGb?: number;
|
|
90
|
+
/**
|
|
91
|
+
* true when a launch of this offering may choose its own disk size via the create request's disk_gb. A distinguishing field in the offer merge — configurable and fixed-disk capacity for the same SKU stay separate rows.
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof Pricing
|
|
94
|
+
*/
|
|
95
|
+
diskConfigurable?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Retail price of one GB of instance disk beyond instance_disk_gb, per hour, for launches of this offering. A launch requesting disk_gb above instance_disk_gb is billed approximately price_per_hour + (disk_gb − instance_disk_gb) × disk_price_per_gb_hour (the exact billed rate folds disk into one cent-rounded hourly price). 0 when the offering is not disk-configurable, or when disk above the included allowance is currently free.
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof Pricing
|
|
100
|
+
*/
|
|
101
|
+
diskPricePerGbHour?: number;
|
|
102
|
+
/**
|
|
103
|
+
* per-offering capacity classification — "secure" for datacenter-operated hardware, "community" for supplier/peer-hosted hardware with a softer SLA. The string twin of `community`, classified per offering rather than per upstream. May transiently be empty for cache entries written before the field existed.
|
|
104
|
+
* @type {PricingCapacityClassEnum}
|
|
105
|
+
* @memberof Pricing
|
|
106
|
+
*/
|
|
107
|
+
capacityClass?: PricingCapacityClassEnum;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export declare const PricingTierEnum: {
|
|
113
|
+
readonly Spot: "spot";
|
|
114
|
+
readonly OnDemand: "on_demand";
|
|
115
|
+
};
|
|
116
|
+
export type PricingTierEnum = typeof PricingTierEnum[keyof typeof PricingTierEnum];
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export declare const PricingCapacityClassEnum: {
|
|
121
|
+
readonly Secure: "secure";
|
|
122
|
+
readonly Community: "community";
|
|
123
|
+
readonly Empty: "";
|
|
124
|
+
};
|
|
125
|
+
export type PricingCapacityClassEnum = typeof PricingCapacityClassEnum[keyof typeof PricingCapacityClassEnum];
|
|
126
|
+
/**
|
|
127
|
+
* Check if a given object implements the Pricing interface.
|
|
128
|
+
*/
|
|
129
|
+
export declare function instanceOfPricing(value: object): value is Pricing;
|
|
130
|
+
export declare function PricingFromJSON(json: any): Pricing;
|
|
131
|
+
export declare function PricingFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pricing;
|
|
132
|
+
export declare function PricingToJSON(json: any): Pricing;
|
|
133
|
+
export declare function PricingToJSONTyped(value?: Pricing | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PricingCapacityClassEnum = exports.PricingTierEnum = void 0;
|
|
17
|
+
exports.instanceOfPricing = instanceOfPricing;
|
|
18
|
+
exports.PricingFromJSON = PricingFromJSON;
|
|
19
|
+
exports.PricingFromJSONTyped = PricingFromJSONTyped;
|
|
20
|
+
exports.PricingToJSON = PricingToJSON;
|
|
21
|
+
exports.PricingToJSONTyped = PricingToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PricingTierEnum = {
|
|
26
|
+
Spot: 'spot',
|
|
27
|
+
OnDemand: 'on_demand'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.PricingCapacityClassEnum = {
|
|
33
|
+
Secure: 'secure',
|
|
34
|
+
Community: 'community',
|
|
35
|
+
Empty: ''
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Pricing interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfPricing(value) {
|
|
41
|
+
if ((!('gpuType' in value) && !('gpu_type' in value)) || (value['gpuType'] === undefined && value['gpu_type'] === undefined))
|
|
42
|
+
return false;
|
|
43
|
+
if ((!('gpuCount' in value) && !('gpu_count' in value)) || (value['gpuCount'] === undefined && value['gpu_count'] === undefined))
|
|
44
|
+
return false;
|
|
45
|
+
if (!('region' in value) || value['region'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('tier' in value) || value['tier'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if ((!('pricePerHour' in value) && !('price_per_hour' in value)) || (value['pricePerHour'] === undefined && value['price_per_hour'] === undefined))
|
|
50
|
+
return false;
|
|
51
|
+
if (!('available' in value) || value['available'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if ((!('instantBoot' in value) && !('instant_boot' in value)) || (value['instantBoot'] === undefined && value['instant_boot'] === undefined))
|
|
54
|
+
return false;
|
|
55
|
+
if (!('community' in value) || value['community'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
function PricingFromJSON(json) {
|
|
60
|
+
return PricingFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function PricingFromJSONTyped(json, ignoreDiscriminator) {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'gpuType': json['gpu_type'],
|
|
68
|
+
'gpuCount': json['gpu_count'],
|
|
69
|
+
'cpuCores': json['cpu_cores'] == null ? undefined : json['cpu_cores'],
|
|
70
|
+
'ramGb': json['ram_gb'] == null ? undefined : json['ram_gb'],
|
|
71
|
+
'storageGb': json['storage_gb'] == null ? undefined : json['storage_gb'],
|
|
72
|
+
'region': json['region'],
|
|
73
|
+
'tier': json['tier'],
|
|
74
|
+
'pricePerHour': json['price_per_hour'],
|
|
75
|
+
'available': json['available'],
|
|
76
|
+
'instantBoot': json['instant_boot'],
|
|
77
|
+
'community': json['community'],
|
|
78
|
+
'instanceDiskGb': json['instance_disk_gb'] == null ? undefined : json['instance_disk_gb'],
|
|
79
|
+
'diskConfigurable': json['disk_configurable'] == null ? undefined : json['disk_configurable'],
|
|
80
|
+
'diskPricePerGbHour': json['disk_price_per_gb_hour'] == null ? undefined : json['disk_price_per_gb_hour'],
|
|
81
|
+
'capacityClass': json['capacity_class'] == null ? undefined : json['capacity_class'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function PricingToJSON(json) {
|
|
85
|
+
return PricingToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
function PricingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
'gpu_type': value['gpuType'],
|
|
93
|
+
'gpu_count': value['gpuCount'],
|
|
94
|
+
'cpu_cores': value['cpuCores'],
|
|
95
|
+
'ram_gb': value['ramGb'],
|
|
96
|
+
'storage_gb': value['storageGb'],
|
|
97
|
+
'region': value['region'],
|
|
98
|
+
'tier': value['tier'],
|
|
99
|
+
'price_per_hour': value['pricePerHour'],
|
|
100
|
+
'available': value['available'],
|
|
101
|
+
'instant_boot': value['instantBoot'],
|
|
102
|
+
'community': value['community'],
|
|
103
|
+
'instance_disk_gb': value['instanceDiskGb'],
|
|
104
|
+
'disk_configurable': value['diskConfigurable'],
|
|
105
|
+
'disk_price_per_gb_hour': value['diskPricePerGbHour'],
|
|
106
|
+
'capacity_class': value['capacityClass'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Pricing } from './Pricing';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PricingPage
|
|
17
|
+
*/
|
|
18
|
+
export interface PricingPage {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Pricing>}
|
|
22
|
+
* @memberof PricingPage
|
|
23
|
+
*/
|
|
24
|
+
data: Array<Pricing>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PricingPage
|
|
29
|
+
*/
|
|
30
|
+
nextCursor: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PricingPage interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPricingPage(value: object): value is PricingPage;
|
|
36
|
+
export declare function PricingPageFromJSON(json: any): PricingPage;
|
|
37
|
+
export declare function PricingPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PricingPage;
|
|
38
|
+
export declare function PricingPageToJSON(json: any): PricingPage;
|
|
39
|
+
export declare function PricingPageToJSONTyped(value?: PricingPage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPricingPage = instanceOfPricingPage;
|
|
17
|
+
exports.PricingPageFromJSON = PricingPageFromJSON;
|
|
18
|
+
exports.PricingPageFromJSONTyped = PricingPageFromJSONTyped;
|
|
19
|
+
exports.PricingPageToJSON = PricingPageToJSON;
|
|
20
|
+
exports.PricingPageToJSONTyped = PricingPageToJSONTyped;
|
|
21
|
+
const Pricing_1 = require("./Pricing");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PricingPage interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPricingPage(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('nextCursor' in value) && !('next_cursor' in value)) || (value['nextCursor'] === undefined && value['next_cursor'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function PricingPageFromJSON(json) {
|
|
33
|
+
return PricingPageFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function PricingPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': (json['data'].map(Pricing_1.PricingFromJSON)),
|
|
41
|
+
'nextCursor': json['next_cursor'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function PricingPageToJSON(json) {
|
|
45
|
+
return PricingPageToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PricingPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (value['data'].map(Pricing_1.PricingToJSON)),
|
|
53
|
+
'next_cursor': value['nextCursor'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Problem
|
|
16
|
+
*/
|
|
17
|
+
export interface Problem {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Problem
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Problem
|
|
28
|
+
*/
|
|
29
|
+
title: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof Problem
|
|
34
|
+
*/
|
|
35
|
+
status: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Problem
|
|
40
|
+
*/
|
|
41
|
+
detail: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ProblemCodeEnum}
|
|
45
|
+
* @memberof Problem
|
|
46
|
+
*/
|
|
47
|
+
code: ProblemCodeEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Problem
|
|
52
|
+
*/
|
|
53
|
+
requestId: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const ProblemCodeEnum: {
|
|
59
|
+
readonly Unauthenticated: "unauthenticated";
|
|
60
|
+
readonly InvalidApiKey: "invalid_api_key";
|
|
61
|
+
readonly InsufficientScope: "insufficient_scope";
|
|
62
|
+
readonly NotFound: "not_found";
|
|
63
|
+
readonly IdempotencyConflict: "idempotency_conflict";
|
|
64
|
+
readonly IdempotencyMismatch: "idempotency_mismatch";
|
|
65
|
+
readonly ValidationFailed: "validation_failed";
|
|
66
|
+
readonly InvalidGpuType: "invalid_gpu_type";
|
|
67
|
+
readonly DiskUnavailable: "disk_unavailable";
|
|
68
|
+
readonly ModelTooLarge: "model_too_large";
|
|
69
|
+
readonly InsufficientBalance: "insufficient_balance";
|
|
70
|
+
readonly QuotaExceeded: "quota_exceeded";
|
|
71
|
+
readonly RateLimited: "rate_limited";
|
|
72
|
+
readonly InternalError: "internal_error";
|
|
73
|
+
readonly OperationFailed: "operation_failed";
|
|
74
|
+
};
|
|
75
|
+
export type ProblemCodeEnum = typeof ProblemCodeEnum[keyof typeof ProblemCodeEnum];
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the Problem interface.
|
|
78
|
+
*/
|
|
79
|
+
export declare function instanceOfProblem(value: object): value is Problem;
|
|
80
|
+
export declare function ProblemFromJSON(json: any): Problem;
|
|
81
|
+
export declare function ProblemFromJSONTyped(json: any, ignoreDiscriminator: boolean): Problem;
|
|
82
|
+
export declare function ProblemToJSON(json: any): Problem;
|
|
83
|
+
export declare function ProblemToJSONTyped(value?: Problem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ProblemCodeEnum = void 0;
|
|
17
|
+
exports.instanceOfProblem = instanceOfProblem;
|
|
18
|
+
exports.ProblemFromJSON = ProblemFromJSON;
|
|
19
|
+
exports.ProblemFromJSONTyped = ProblemFromJSONTyped;
|
|
20
|
+
exports.ProblemToJSON = ProblemToJSON;
|
|
21
|
+
exports.ProblemToJSONTyped = ProblemToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ProblemCodeEnum = {
|
|
26
|
+
Unauthenticated: 'unauthenticated',
|
|
27
|
+
InvalidApiKey: 'invalid_api_key',
|
|
28
|
+
InsufficientScope: 'insufficient_scope',
|
|
29
|
+
NotFound: 'not_found',
|
|
30
|
+
IdempotencyConflict: 'idempotency_conflict',
|
|
31
|
+
IdempotencyMismatch: 'idempotency_mismatch',
|
|
32
|
+
ValidationFailed: 'validation_failed',
|
|
33
|
+
InvalidGpuType: 'invalid_gpu_type',
|
|
34
|
+
DiskUnavailable: 'disk_unavailable',
|
|
35
|
+
ModelTooLarge: 'model_too_large',
|
|
36
|
+
InsufficientBalance: 'insufficient_balance',
|
|
37
|
+
QuotaExceeded: 'quota_exceeded',
|
|
38
|
+
RateLimited: 'rate_limited',
|
|
39
|
+
InternalError: 'internal_error',
|
|
40
|
+
OperationFailed: 'operation_failed'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the Problem interface.
|
|
44
|
+
*/
|
|
45
|
+
function instanceOfProblem(value) {
|
|
46
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('detail' in value) || value['detail'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if ((!('requestId' in value) && !('request_id' in value)) || (value['requestId'] === undefined && value['request_id'] === undefined))
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
function ProblemFromJSON(json) {
|
|
61
|
+
return ProblemFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ProblemFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'type': json['type'],
|
|
69
|
+
'title': json['title'],
|
|
70
|
+
'status': json['status'],
|
|
71
|
+
'detail': json['detail'],
|
|
72
|
+
'code': json['code'],
|
|
73
|
+
'requestId': json['request_id'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function ProblemToJSON(json) {
|
|
77
|
+
return ProblemToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function ProblemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'type': value['type'],
|
|
85
|
+
'title': value['title'],
|
|
86
|
+
'status': value['status'],
|
|
87
|
+
'detail': value['detail'],
|
|
88
|
+
'code': value['code'],
|
|
89
|
+
'request_id': value['requestId'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU.ai Public Developer API
|
|
3
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@gpu.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* All fields optional; an empty body registers a zero-spec placeholder in pending_verification.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RegisterCommunityMachineRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RegisterCommunityMachineRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RegisterCommunityMachineRequest
|
|
22
|
+
*/
|
|
23
|
+
gpuType?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RegisterCommunityMachineRequest
|
|
28
|
+
*/
|
|
29
|
+
gpuCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RegisterCommunityMachineRequest
|
|
34
|
+
*/
|
|
35
|
+
vramPerGpuGb?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RegisterCommunityMachineRequest
|
|
40
|
+
*/
|
|
41
|
+
pricePerHour?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RegisterCommunityMachineRequest
|
|
46
|
+
*/
|
|
47
|
+
region?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Supplier-chosen rental model. Optional; omitted resolves to on_demand. spot lists the machine as cheaper interruptible capacity.
|
|
50
|
+
* @type {RegisterCommunityMachineRequestTierEnum}
|
|
51
|
+
* @memberof RegisterCommunityMachineRequest
|
|
52
|
+
*/
|
|
53
|
+
tier?: RegisterCommunityMachineRequestTierEnum;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const RegisterCommunityMachineRequestTierEnum: {
|
|
59
|
+
readonly OnDemand: "on_demand";
|
|
60
|
+
readonly Spot: "spot";
|
|
61
|
+
};
|
|
62
|
+
export type RegisterCommunityMachineRequestTierEnum = typeof RegisterCommunityMachineRequestTierEnum[keyof typeof RegisterCommunityMachineRequestTierEnum];
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the RegisterCommunityMachineRequest interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfRegisterCommunityMachineRequest(value: object): value is RegisterCommunityMachineRequest;
|
|
67
|
+
export declare function RegisterCommunityMachineRequestFromJSON(json: any): RegisterCommunityMachineRequest;
|
|
68
|
+
export declare function RegisterCommunityMachineRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterCommunityMachineRequest;
|
|
69
|
+
export declare function RegisterCommunityMachineRequestToJSON(json: any): RegisterCommunityMachineRequest;
|
|
70
|
+
export declare function RegisterCommunityMachineRequestToJSONTyped(value?: RegisterCommunityMachineRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* GPU.ai Public Developer API
|
|
6
|
+
* Programmatic API for GPU.ai. Authenticate with API keys minted from the dashboard. See https://gpu.ai/docs for details.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@gpu.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RegisterCommunityMachineRequestTierEnum = void 0;
|
|
17
|
+
exports.instanceOfRegisterCommunityMachineRequest = instanceOfRegisterCommunityMachineRequest;
|
|
18
|
+
exports.RegisterCommunityMachineRequestFromJSON = RegisterCommunityMachineRequestFromJSON;
|
|
19
|
+
exports.RegisterCommunityMachineRequestFromJSONTyped = RegisterCommunityMachineRequestFromJSONTyped;
|
|
20
|
+
exports.RegisterCommunityMachineRequestToJSON = RegisterCommunityMachineRequestToJSON;
|
|
21
|
+
exports.RegisterCommunityMachineRequestToJSONTyped = RegisterCommunityMachineRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.RegisterCommunityMachineRequestTierEnum = {
|
|
26
|
+
OnDemand: 'on_demand',
|
|
27
|
+
Spot: 'spot'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the RegisterCommunityMachineRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfRegisterCommunityMachineRequest(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function RegisterCommunityMachineRequestFromJSON(json) {
|
|
36
|
+
return RegisterCommunityMachineRequestFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function RegisterCommunityMachineRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'gpuType': json['gpu_type'] == null ? undefined : json['gpu_type'],
|
|
44
|
+
'gpuCount': json['gpu_count'] == null ? undefined : json['gpu_count'],
|
|
45
|
+
'vramPerGpuGb': json['vram_per_gpu_gb'] == null ? undefined : json['vram_per_gpu_gb'],
|
|
46
|
+
'pricePerHour': json['price_per_hour'] == null ? undefined : json['price_per_hour'],
|
|
47
|
+
'region': json['region'] == null ? undefined : json['region'],
|
|
48
|
+
'tier': json['tier'] == null ? undefined : json['tier'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function RegisterCommunityMachineRequestToJSON(json) {
|
|
52
|
+
return RegisterCommunityMachineRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function RegisterCommunityMachineRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'gpu_type': value['gpuType'],
|
|
60
|
+
'gpu_count': value['gpuCount'],
|
|
61
|
+
'vram_per_gpu_gb': value['vramPerGpuGb'],
|
|
62
|
+
'price_per_hour': value['pricePerHour'],
|
|
63
|
+
'region': value['region'],
|
|
64
|
+
'tier': value['tier'],
|
|
65
|
+
};
|
|
66
|
+
}
|