@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,679 @@
|
|
|
1
|
+
# CommunityApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.gpu.ai/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**delistCommunityMachine**](CommunityApi.md#delistcommunitymachine) | **POST** /community/machines/{id}/delist | Delist a Community Cloud machine |
|
|
8
|
+
| [**enableCommunitySupplier**](CommunityApi.md#enablecommunitysupplier) | **POST** /community/suppliers | Enable the Community Cloud supplier role |
|
|
9
|
+
| [**getCommunityEarnings**](CommunityApi.md#getcommunityearnings) | **GET** /community/earnings | Get your Community Cloud earnings |
|
|
10
|
+
| [**getCommunityMachine**](CommunityApi.md#getcommunitymachine) | **GET** /community/machines/{id} | Get one of your Community Cloud machines |
|
|
11
|
+
| [**getCommunitySupplierMe**](CommunityApi.md#getcommunitysupplierme) | **GET** /community/suppliers/me | Get the caller\'s Community Cloud supplier |
|
|
12
|
+
| [**listCommunityMachines**](CommunityApi.md#listcommunitymachines) | **GET** /community/machines | List your Community Cloud machines |
|
|
13
|
+
| [**reclaimCommunityMachine**](CommunityApi.md#reclaimcommunitymachine) | **POST** /community/machines/{id}/reclaim | Reclaim a spot-tier Community Cloud machine |
|
|
14
|
+
| [**registerCommunityMachine**](CommunityApi.md#registercommunitymachineoperation) | **POST** /community/machines | Register a Community Cloud machine |
|
|
15
|
+
| [**updateCommunityMachine**](CommunityApi.md#updatecommunitymachineoperation) | **PATCH** /community/machines/{id} | Update a Community Cloud machine\'s price |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## delistCommunityMachine
|
|
20
|
+
|
|
21
|
+
> CommunityMachineDelistResult delistCommunityMachine(id)
|
|
22
|
+
|
|
23
|
+
Delist a Community Cloud machine
|
|
24
|
+
|
|
25
|
+
Removes a machine the caller\'s org owns from supply (ONBD-04). Drain-not-kill: an occupied machine becomes `draining` (its customer rental keeps running until it ends naturally) and an idle machine becomes `delisted`. The endpoint never force-terminates a running rental. A missing or cross-org machine returns 404 with an indistinguishable body so existence never leaks across orgs. Requires the `community` scope (or `full_access`).
|
|
26
|
+
|
|
27
|
+
### Example
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import {
|
|
31
|
+
Configuration,
|
|
32
|
+
CommunityApi,
|
|
33
|
+
} from '@gpuai/sdk';
|
|
34
|
+
import type { DelistCommunityMachineRequest } from '@gpuai/sdk';
|
|
35
|
+
|
|
36
|
+
async function example() {
|
|
37
|
+
console.log("🚀 Testing @gpuai/sdk SDK...");
|
|
38
|
+
const config = new Configuration({
|
|
39
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
40
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
41
|
+
});
|
|
42
|
+
const api = new CommunityApi(config);
|
|
43
|
+
|
|
44
|
+
const body = {
|
|
45
|
+
// string | The machine id to delist.
|
|
46
|
+
id: id_example,
|
|
47
|
+
} satisfies DelistCommunityMachineRequest;
|
|
48
|
+
|
|
49
|
+
try {
|
|
50
|
+
const data = await api.delistCommunityMachine(body);
|
|
51
|
+
console.log(data);
|
|
52
|
+
} catch (error) {
|
|
53
|
+
console.error(error);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Run the test
|
|
58
|
+
example().catch(console.error);
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Parameters
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
| Name | Type | Description | Notes |
|
|
65
|
+
|------------- | ------------- | ------------- | -------------|
|
|
66
|
+
| **id** | `string` | The machine id to delist. | [Defaults to `undefined`] |
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
[**CommunityMachineDelistResult**](CommunityMachineDelistResult.md)
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: Not defined
|
|
79
|
+
- **Accept**: `application/json`, `application/problem+json`
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### HTTP response details
|
|
83
|
+
| Status code | Description | Response headers |
|
|
84
|
+
|-------------|-------------|------------------|
|
|
85
|
+
| **200** | The terminal status the machine reached. | - |
|
|
86
|
+
| **403** | The community supplier role is suspended. | - |
|
|
87
|
+
| **404** | The machine does not exist or is not owned by the caller\'s org. | - |
|
|
88
|
+
| **409** | The community supplier role has not been enabled yet. | - |
|
|
89
|
+
| **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
|
|
90
|
+
| **0** | Error response (RFC 7807) | - |
|
|
91
|
+
|
|
92
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## enableCommunitySupplier
|
|
96
|
+
|
|
97
|
+
> CommunitySupplier enableCommunitySupplier(idempotencyKey)
|
|
98
|
+
|
|
99
|
+
Enable the Community Cloud supplier role
|
|
100
|
+
|
|
101
|
+
Idempotently enables the Community Cloud supplier role for the organization the API key belongs to. A repeat call is a no-op that returns the same supplier record (200, not 201). Requires the `community` scope (or `full_access`).
|
|
102
|
+
|
|
103
|
+
### Example
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
import {
|
|
107
|
+
Configuration,
|
|
108
|
+
CommunityApi,
|
|
109
|
+
} from '@gpuai/sdk';
|
|
110
|
+
import type { EnableCommunitySupplierRequest } from '@gpuai/sdk';
|
|
111
|
+
|
|
112
|
+
async function example() {
|
|
113
|
+
console.log("🚀 Testing @gpuai/sdk SDK...");
|
|
114
|
+
const config = new Configuration({
|
|
115
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
116
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
117
|
+
});
|
|
118
|
+
const api = new CommunityApi(config);
|
|
119
|
+
|
|
120
|
+
const body = {
|
|
121
|
+
// string (optional)
|
|
122
|
+
idempotencyKey: idempotencyKey_example,
|
|
123
|
+
} satisfies EnableCommunitySupplierRequest;
|
|
124
|
+
|
|
125
|
+
try {
|
|
126
|
+
const data = await api.enableCommunitySupplier(body);
|
|
127
|
+
console.log(data);
|
|
128
|
+
} catch (error) {
|
|
129
|
+
console.error(error);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Run the test
|
|
134
|
+
example().catch(console.error);
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Parameters
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
| Name | Type | Description | Notes |
|
|
141
|
+
|------------- | ------------- | ------------- | -------------|
|
|
142
|
+
| **idempotencyKey** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
143
|
+
|
|
144
|
+
### Return type
|
|
145
|
+
|
|
146
|
+
[**CommunitySupplier**](CommunitySupplier.md)
|
|
147
|
+
|
|
148
|
+
### Authorization
|
|
149
|
+
|
|
150
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
151
|
+
|
|
152
|
+
### HTTP request headers
|
|
153
|
+
|
|
154
|
+
- **Content-Type**: Not defined
|
|
155
|
+
- **Accept**: `application/json`, `application/problem+json`
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
### HTTP response details
|
|
159
|
+
| Status code | Description | Response headers |
|
|
160
|
+
|-------------|-------------|------------------|
|
|
161
|
+
| **200** | The community supplier record (created or already-existing). | - |
|
|
162
|
+
| **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
|
|
163
|
+
| **0** | Error response (RFC 7807) | - |
|
|
164
|
+
|
|
165
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
## getCommunityEarnings
|
|
169
|
+
|
|
170
|
+
> CommunityEarnings getCommunityEarnings(limit)
|
|
171
|
+
|
|
172
|
+
Get your Community Cloud earnings
|
|
173
|
+
|
|
174
|
+
Returns the caller org\'s supplier earnings — lifetime accrued and unpaid totals in cents plus recent ledger entries, newest first. An optional `limit` caps the ledger rows (server-clamped). Requires the `community` scope (read).
|
|
175
|
+
|
|
176
|
+
### Example
|
|
177
|
+
|
|
178
|
+
```ts
|
|
179
|
+
import {
|
|
180
|
+
Configuration,
|
|
181
|
+
CommunityApi,
|
|
182
|
+
} from '@gpuai/sdk';
|
|
183
|
+
import type { GetCommunityEarningsRequest } from '@gpuai/sdk';
|
|
184
|
+
|
|
185
|
+
async function example() {
|
|
186
|
+
console.log("🚀 Testing @gpuai/sdk SDK...");
|
|
187
|
+
const config = new Configuration({
|
|
188
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
189
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
190
|
+
});
|
|
191
|
+
const api = new CommunityApi(config);
|
|
192
|
+
|
|
193
|
+
const body = {
|
|
194
|
+
// number | Maximum ledger entries to return (default 100, max 500). (optional)
|
|
195
|
+
limit: 56,
|
|
196
|
+
} satisfies GetCommunityEarningsRequest;
|
|
197
|
+
|
|
198
|
+
try {
|
|
199
|
+
const data = await api.getCommunityEarnings(body);
|
|
200
|
+
console.log(data);
|
|
201
|
+
} catch (error) {
|
|
202
|
+
console.error(error);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// Run the test
|
|
207
|
+
example().catch(console.error);
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Parameters
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
| Name | Type | Description | Notes |
|
|
214
|
+
|------------- | ------------- | ------------- | -------------|
|
|
215
|
+
| **limit** | `number` | Maximum ledger entries to return (default 100, max 500). | [Optional] [Defaults to `undefined`] |
|
|
216
|
+
|
|
217
|
+
### Return type
|
|
218
|
+
|
|
219
|
+
[**CommunityEarnings**](CommunityEarnings.md)
|
|
220
|
+
|
|
221
|
+
### Authorization
|
|
222
|
+
|
|
223
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
224
|
+
|
|
225
|
+
### HTTP request headers
|
|
226
|
+
|
|
227
|
+
- **Content-Type**: Not defined
|
|
228
|
+
- **Accept**: `application/json`, `application/problem+json`
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### HTTP response details
|
|
232
|
+
| Status code | Description | Response headers |
|
|
233
|
+
|-------------|-------------|------------------|
|
|
234
|
+
| **200** | The earnings view. | - |
|
|
235
|
+
| **404** | The organization has not enabled the community supplier role. | - |
|
|
236
|
+
| **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
|
|
237
|
+
| **0** | Error response (RFC 7807) | - |
|
|
238
|
+
|
|
239
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## getCommunityMachine
|
|
243
|
+
|
|
244
|
+
> SupplierMachineView getCommunityMachine(id)
|
|
245
|
+
|
|
246
|
+
Get one of your Community Cloud machines
|
|
247
|
+
|
|
248
|
+
Returns one machine the caller\'s org owns, as a supplier-facing view (`occupied`/`online` projections — the renting customer\'s instance id is never exposed). A missing or cross-org machine returns 404 with an indistinguishable body. Requires the `community` scope (read).
|
|
249
|
+
|
|
250
|
+
### Example
|
|
251
|
+
|
|
252
|
+
```ts
|
|
253
|
+
import {
|
|
254
|
+
Configuration,
|
|
255
|
+
CommunityApi,
|
|
256
|
+
} from '@gpuai/sdk';
|
|
257
|
+
import type { GetCommunityMachineRequest } from '@gpuai/sdk';
|
|
258
|
+
|
|
259
|
+
async function example() {
|
|
260
|
+
console.log("🚀 Testing @gpuai/sdk SDK...");
|
|
261
|
+
const config = new Configuration({
|
|
262
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
263
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
264
|
+
});
|
|
265
|
+
const api = new CommunityApi(config);
|
|
266
|
+
|
|
267
|
+
const body = {
|
|
268
|
+
// string | The machine id.
|
|
269
|
+
id: id_example,
|
|
270
|
+
} satisfies GetCommunityMachineRequest;
|
|
271
|
+
|
|
272
|
+
try {
|
|
273
|
+
const data = await api.getCommunityMachine(body);
|
|
274
|
+
console.log(data);
|
|
275
|
+
} catch (error) {
|
|
276
|
+
console.error(error);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// Run the test
|
|
281
|
+
example().catch(console.error);
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Parameters
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
| Name | Type | Description | Notes |
|
|
288
|
+
|------------- | ------------- | ------------- | -------------|
|
|
289
|
+
| **id** | `string` | The machine id. | [Defaults to `undefined`] |
|
|
290
|
+
|
|
291
|
+
### Return type
|
|
292
|
+
|
|
293
|
+
[**SupplierMachineView**](SupplierMachineView.md)
|
|
294
|
+
|
|
295
|
+
### Authorization
|
|
296
|
+
|
|
297
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
298
|
+
|
|
299
|
+
### HTTP request headers
|
|
300
|
+
|
|
301
|
+
- **Content-Type**: Not defined
|
|
302
|
+
- **Accept**: `application/json`, `application/problem+json`
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
### HTTP response details
|
|
306
|
+
| Status code | Description | Response headers |
|
|
307
|
+
|-------------|-------------|------------------|
|
|
308
|
+
| **200** | The supplier-facing machine view. | - |
|
|
309
|
+
| **404** | The machine does not exist or is not owned by the caller\'s org. | - |
|
|
310
|
+
| **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
|
|
311
|
+
| **0** | Error response (RFC 7807) | - |
|
|
312
|
+
|
|
313
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
## getCommunitySupplierMe
|
|
317
|
+
|
|
318
|
+
> CommunitySupplier getCommunitySupplierMe()
|
|
319
|
+
|
|
320
|
+
Get the caller\'s Community Cloud supplier
|
|
321
|
+
|
|
322
|
+
Returns the community supplier record for the organization the API key belongs to, or 404 `not-a-supplier` when the role has not been enabled. Requires the `community` scope (read).
|
|
323
|
+
|
|
324
|
+
### Example
|
|
325
|
+
|
|
326
|
+
```ts
|
|
327
|
+
import {
|
|
328
|
+
Configuration,
|
|
329
|
+
CommunityApi,
|
|
330
|
+
} from '@gpuai/sdk';
|
|
331
|
+
import type { GetCommunitySupplierMeRequest } from '@gpuai/sdk';
|
|
332
|
+
|
|
333
|
+
async function example() {
|
|
334
|
+
console.log("🚀 Testing @gpuai/sdk SDK...");
|
|
335
|
+
const config = new Configuration({
|
|
336
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
337
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
338
|
+
});
|
|
339
|
+
const api = new CommunityApi(config);
|
|
340
|
+
|
|
341
|
+
try {
|
|
342
|
+
const data = await api.getCommunitySupplierMe();
|
|
343
|
+
console.log(data);
|
|
344
|
+
} catch (error) {
|
|
345
|
+
console.error(error);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
// Run the test
|
|
350
|
+
example().catch(console.error);
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### Parameters
|
|
354
|
+
|
|
355
|
+
This endpoint does not need any parameter.
|
|
356
|
+
|
|
357
|
+
### Return type
|
|
358
|
+
|
|
359
|
+
[**CommunitySupplier**](CommunitySupplier.md)
|
|
360
|
+
|
|
361
|
+
### Authorization
|
|
362
|
+
|
|
363
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
364
|
+
|
|
365
|
+
### HTTP request headers
|
|
366
|
+
|
|
367
|
+
- **Content-Type**: Not defined
|
|
368
|
+
- **Accept**: `application/json`, `application/problem+json`
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
### HTTP response details
|
|
372
|
+
| Status code | Description | Response headers |
|
|
373
|
+
|-------------|-------------|------------------|
|
|
374
|
+
| **200** | The community supplier record. | - |
|
|
375
|
+
| **404** | The organization has not enabled the community supplier role. | - |
|
|
376
|
+
| **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
|
|
377
|
+
| **0** | Error response (RFC 7807) | - |
|
|
378
|
+
|
|
379
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
## listCommunityMachines
|
|
383
|
+
|
|
384
|
+
> ListCommunityMachines200Response listCommunityMachines()
|
|
385
|
+
|
|
386
|
+
List your Community Cloud machines
|
|
387
|
+
|
|
388
|
+
Returns every machine the caller\'s org has registered, newest first, as supplier-facing views (`occupied`/`online` projections — the renting customer\'s instance id is never exposed). Requires the `community` scope (read).
|
|
389
|
+
|
|
390
|
+
### Example
|
|
391
|
+
|
|
392
|
+
```ts
|
|
393
|
+
import {
|
|
394
|
+
Configuration,
|
|
395
|
+
CommunityApi,
|
|
396
|
+
} from '@gpuai/sdk';
|
|
397
|
+
import type { ListCommunityMachinesRequest } from '@gpuai/sdk';
|
|
398
|
+
|
|
399
|
+
async function example() {
|
|
400
|
+
console.log("🚀 Testing @gpuai/sdk SDK...");
|
|
401
|
+
const config = new Configuration({
|
|
402
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
403
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
404
|
+
});
|
|
405
|
+
const api = new CommunityApi(config);
|
|
406
|
+
|
|
407
|
+
try {
|
|
408
|
+
const data = await api.listCommunityMachines();
|
|
409
|
+
console.log(data);
|
|
410
|
+
} catch (error) {
|
|
411
|
+
console.error(error);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// Run the test
|
|
416
|
+
example().catch(console.error);
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
### Parameters
|
|
420
|
+
|
|
421
|
+
This endpoint does not need any parameter.
|
|
422
|
+
|
|
423
|
+
### Return type
|
|
424
|
+
|
|
425
|
+
[**ListCommunityMachines200Response**](ListCommunityMachines200Response.md)
|
|
426
|
+
|
|
427
|
+
### Authorization
|
|
428
|
+
|
|
429
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
430
|
+
|
|
431
|
+
### HTTP request headers
|
|
432
|
+
|
|
433
|
+
- **Content-Type**: Not defined
|
|
434
|
+
- **Accept**: `application/json`, `application/problem+json`
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
### HTTP response details
|
|
438
|
+
| Status code | Description | Response headers |
|
|
439
|
+
|-------------|-------------|------------------|
|
|
440
|
+
| **200** | The caller\'s machines. | - |
|
|
441
|
+
| **404** | The organization has not enabled the community supplier role. | - |
|
|
442
|
+
| **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
|
|
443
|
+
| **0** | Error response (RFC 7807) | - |
|
|
444
|
+
|
|
445
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
## reclaimCommunityMachine
|
|
449
|
+
|
|
450
|
+
> CommunityMachineDelistResult reclaimCommunityMachine(id)
|
|
451
|
+
|
|
452
|
+
Reclaim a spot-tier Community Cloud machine
|
|
453
|
+
|
|
454
|
+
The spot interruption mechanic — the supplier takes back a machine they listed as interruptible (tier=spot). Drain-not-kill: an occupied machine becomes `draining` (the renter gets the grace window, surfaced to the spot router as a preemption warning) and an idle machine becomes `delisted`. An on-demand machine cannot be reclaimed (409 `machine-not-spot`) — use delist instead. Requires the `community` scope (or `full_access`).
|
|
455
|
+
|
|
456
|
+
### Example
|
|
457
|
+
|
|
458
|
+
```ts
|
|
459
|
+
import {
|
|
460
|
+
Configuration,
|
|
461
|
+
CommunityApi,
|
|
462
|
+
} from '@gpuai/sdk';
|
|
463
|
+
import type { ReclaimCommunityMachineRequest } from '@gpuai/sdk';
|
|
464
|
+
|
|
465
|
+
async function example() {
|
|
466
|
+
console.log("🚀 Testing @gpuai/sdk SDK...");
|
|
467
|
+
const config = new Configuration({
|
|
468
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
469
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
470
|
+
});
|
|
471
|
+
const api = new CommunityApi(config);
|
|
472
|
+
|
|
473
|
+
const body = {
|
|
474
|
+
// string | The machine id to reclaim.
|
|
475
|
+
id: id_example,
|
|
476
|
+
} satisfies ReclaimCommunityMachineRequest;
|
|
477
|
+
|
|
478
|
+
try {
|
|
479
|
+
const data = await api.reclaimCommunityMachine(body);
|
|
480
|
+
console.log(data);
|
|
481
|
+
} catch (error) {
|
|
482
|
+
console.error(error);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
// Run the test
|
|
487
|
+
example().catch(console.error);
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
### Parameters
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
| Name | Type | Description | Notes |
|
|
494
|
+
|------------- | ------------- | ------------- | -------------|
|
|
495
|
+
| **id** | `string` | The machine id to reclaim. | [Defaults to `undefined`] |
|
|
496
|
+
|
|
497
|
+
### Return type
|
|
498
|
+
|
|
499
|
+
[**CommunityMachineDelistResult**](CommunityMachineDelistResult.md)
|
|
500
|
+
|
|
501
|
+
### Authorization
|
|
502
|
+
|
|
503
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
504
|
+
|
|
505
|
+
### HTTP request headers
|
|
506
|
+
|
|
507
|
+
- **Content-Type**: Not defined
|
|
508
|
+
- **Accept**: `application/json`, `application/problem+json`
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
### HTTP response details
|
|
512
|
+
| Status code | Description | Response headers |
|
|
513
|
+
|-------------|-------------|------------------|
|
|
514
|
+
| **200** | The status the machine reached. | - |
|
|
515
|
+
| **403** | The community supplier role is suspended. | - |
|
|
516
|
+
| **404** | The machine does not exist or is not owned by the caller\'s org. | - |
|
|
517
|
+
| **409** | The supplier role has not been enabled, or the machine is on-demand capacity (`machine-not-spot`). | - |
|
|
518
|
+
| **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
|
|
519
|
+
| **0** | Error response (RFC 7807) | - |
|
|
520
|
+
|
|
521
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
## registerCommunityMachine
|
|
525
|
+
|
|
526
|
+
> CommunityMachineRegistration registerCommunityMachine(idempotencyKey, registerCommunityMachineRequest)
|
|
527
|
+
|
|
528
|
+
Register a Community Cloud machine
|
|
529
|
+
|
|
530
|
+
Registers a self-declared machine under the caller\'s community supplier and mints a one-time enrollment token. All spec fields are optional — an empty body registers a placeholder in `pending_verification`. The `enrollment_token` is shown exactly once and never returned again. Requires the `community` scope (or `full_access`).
|
|
531
|
+
|
|
532
|
+
### Example
|
|
533
|
+
|
|
534
|
+
```ts
|
|
535
|
+
import {
|
|
536
|
+
Configuration,
|
|
537
|
+
CommunityApi,
|
|
538
|
+
} from '@gpuai/sdk';
|
|
539
|
+
import type { RegisterCommunityMachineOperationRequest } from '@gpuai/sdk';
|
|
540
|
+
|
|
541
|
+
async function example() {
|
|
542
|
+
console.log("🚀 Testing @gpuai/sdk SDK...");
|
|
543
|
+
const config = new Configuration({
|
|
544
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
545
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
546
|
+
});
|
|
547
|
+
const api = new CommunityApi(config);
|
|
548
|
+
|
|
549
|
+
const body = {
|
|
550
|
+
// string (optional)
|
|
551
|
+
idempotencyKey: idempotencyKey_example,
|
|
552
|
+
// RegisterCommunityMachineRequest (optional)
|
|
553
|
+
registerCommunityMachineRequest: ...,
|
|
554
|
+
} satisfies RegisterCommunityMachineOperationRequest;
|
|
555
|
+
|
|
556
|
+
try {
|
|
557
|
+
const data = await api.registerCommunityMachine(body);
|
|
558
|
+
console.log(data);
|
|
559
|
+
} catch (error) {
|
|
560
|
+
console.error(error);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
// Run the test
|
|
565
|
+
example().catch(console.error);
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
### Parameters
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
| Name | Type | Description | Notes |
|
|
572
|
+
|------------- | ------------- | ------------- | -------------|
|
|
573
|
+
| **idempotencyKey** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
574
|
+
| **registerCommunityMachineRequest** | [RegisterCommunityMachineRequest](RegisterCommunityMachineRequest.md) | | [Optional] |
|
|
575
|
+
|
|
576
|
+
### Return type
|
|
577
|
+
|
|
578
|
+
[**CommunityMachineRegistration**](CommunityMachineRegistration.md)
|
|
579
|
+
|
|
580
|
+
### Authorization
|
|
581
|
+
|
|
582
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
583
|
+
|
|
584
|
+
### HTTP request headers
|
|
585
|
+
|
|
586
|
+
- **Content-Type**: `application/json`
|
|
587
|
+
- **Accept**: `application/json`, `application/problem+json`
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
### HTTP response details
|
|
591
|
+
| Status code | Description | Response headers |
|
|
592
|
+
|-------------|-------------|------------------|
|
|
593
|
+
| **201** | The registered machine plus its one-time enrollment token. | - |
|
|
594
|
+
| **403** | The community supplier role is suspended. | - |
|
|
595
|
+
| **409** | The community supplier role has not been enabled yet. | - |
|
|
596
|
+
| **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
|
|
597
|
+
| **0** | Error response (RFC 7807) | - |
|
|
598
|
+
|
|
599
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
## updateCommunityMachine
|
|
603
|
+
|
|
604
|
+
> SupplierMachineView updateCommunityMachine(id, updateCommunityMachineRequest)
|
|
605
|
+
|
|
606
|
+
Update a Community Cloud machine\'s price
|
|
607
|
+
|
|
608
|
+
Sets the machine\'s hourly price. `price_per_hour` is the WHOLE-MACHINE rate (never per-GPU). Prices below the platform floor are rejected with a `price-below-floor` problem carrying the concrete `floor_per_hour` extension member. A price change never affects an in-flight rental (its rate was snapshotted at provision); the catalog reprices on the next poll. Requires the `community` scope (or `full_access`).
|
|
609
|
+
|
|
610
|
+
### Example
|
|
611
|
+
|
|
612
|
+
```ts
|
|
613
|
+
import {
|
|
614
|
+
Configuration,
|
|
615
|
+
CommunityApi,
|
|
616
|
+
} from '@gpuai/sdk';
|
|
617
|
+
import type { UpdateCommunityMachineOperationRequest } from '@gpuai/sdk';
|
|
618
|
+
|
|
619
|
+
async function example() {
|
|
620
|
+
console.log("🚀 Testing @gpuai/sdk SDK...");
|
|
621
|
+
const config = new Configuration({
|
|
622
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
623
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
624
|
+
});
|
|
625
|
+
const api = new CommunityApi(config);
|
|
626
|
+
|
|
627
|
+
const body = {
|
|
628
|
+
// string | The machine id.
|
|
629
|
+
id: id_example,
|
|
630
|
+
// UpdateCommunityMachineRequest
|
|
631
|
+
updateCommunityMachineRequest: ...,
|
|
632
|
+
} satisfies UpdateCommunityMachineOperationRequest;
|
|
633
|
+
|
|
634
|
+
try {
|
|
635
|
+
const data = await api.updateCommunityMachine(body);
|
|
636
|
+
console.log(data);
|
|
637
|
+
} catch (error) {
|
|
638
|
+
console.error(error);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
// Run the test
|
|
643
|
+
example().catch(console.error);
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
### Parameters
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
| Name | Type | Description | Notes |
|
|
650
|
+
|------------- | ------------- | ------------- | -------------|
|
|
651
|
+
| **id** | `string` | The machine id. | [Defaults to `undefined`] |
|
|
652
|
+
| **updateCommunityMachineRequest** | [UpdateCommunityMachineRequest](UpdateCommunityMachineRequest.md) | | |
|
|
653
|
+
|
|
654
|
+
### Return type
|
|
655
|
+
|
|
656
|
+
[**SupplierMachineView**](SupplierMachineView.md)
|
|
657
|
+
|
|
658
|
+
### Authorization
|
|
659
|
+
|
|
660
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
661
|
+
|
|
662
|
+
### HTTP request headers
|
|
663
|
+
|
|
664
|
+
- **Content-Type**: `application/json`
|
|
665
|
+
- **Accept**: `application/json`, `application/problem+json`
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
### HTTP response details
|
|
669
|
+
| Status code | Description | Response headers |
|
|
670
|
+
|-------------|-------------|------------------|
|
|
671
|
+
| **200** | The updated supplier-facing machine view. | - |
|
|
672
|
+
| **400** | Validation failure, including `price-below-floor` (the problem doc then carries `floor_per_hour`). | - |
|
|
673
|
+
| **403** | The community supplier role is suspended. | - |
|
|
674
|
+
| **404** | The machine does not exist or is not owned by the caller\'s org. | - |
|
|
675
|
+
| **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
|
|
676
|
+
| **0** | Error response (RFC 7807) | - |
|
|
677
|
+
|
|
678
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
679
|
+
|