@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,109 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ListUsageGroupByEnum = exports.ListUsageBucketEnum = exports.UsageApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const UsagePage_1 = require("../models/UsagePage");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class UsageApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for listUsage without sending the request
|
|
34
|
+
*/
|
|
35
|
+
listUsageRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
if (requestParameters['bucket'] != null) {
|
|
39
|
+
queryParameters['bucket'] = requestParameters['bucket'];
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['groupBy'] != null) {
|
|
42
|
+
queryParameters['group_by'] = requestParameters['groupBy'];
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters['start'] != null) {
|
|
45
|
+
queryParameters['start'] = requestParameters['start'].toISOString();
|
|
46
|
+
}
|
|
47
|
+
if (requestParameters['end'] != null) {
|
|
48
|
+
queryParameters['end'] = requestParameters['end'].toISOString();
|
|
49
|
+
}
|
|
50
|
+
if (requestParameters['cursor'] != null) {
|
|
51
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters['limit'] != null) {
|
|
54
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
55
|
+
}
|
|
56
|
+
const headerParameters = {};
|
|
57
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
58
|
+
const token = this.configuration.accessToken;
|
|
59
|
+
const tokenString = yield token("bearerAuth", []);
|
|
60
|
+
if (tokenString) {
|
|
61
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
let urlPath = `/usage`;
|
|
65
|
+
return {
|
|
66
|
+
path: urlPath,
|
|
67
|
+
method: 'GET',
|
|
68
|
+
headers: headerParameters,
|
|
69
|
+
query: queryParameters,
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Time-bucketed usage
|
|
75
|
+
*/
|
|
76
|
+
listUsageRaw(requestParameters, initOverrides) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
const requestOptions = yield this.listUsageRequestOpts(requestParameters);
|
|
79
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, UsagePage_1.UsagePageFromJSON)(jsonValue));
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Time-bucketed usage
|
|
85
|
+
*/
|
|
86
|
+
listUsage() {
|
|
87
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
88
|
+
const response = yield this.listUsageRaw(requestParameters, initOverrides);
|
|
89
|
+
return yield response.value();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.UsageApi = UsageApi;
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
exports.ListUsageBucketEnum = {
|
|
98
|
+
Hour: 'hour',
|
|
99
|
+
Day: 'day',
|
|
100
|
+
Week: 'week',
|
|
101
|
+
Month: 'month'
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
exports.ListUsageGroupByEnum = {
|
|
107
|
+
InstanceId: 'instance_id',
|
|
108
|
+
GpuType: 'gpu_type'
|
|
109
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import { type CreateWebhookEndpointRequest } from '../models/CreateWebhookEndpointRequest';
|
|
14
|
+
import { type WebhookEndpoint } from '../models/WebhookEndpoint';
|
|
15
|
+
import { type WebhookEndpointPage } from '../models/WebhookEndpointPage';
|
|
16
|
+
export interface CreateWebhookEndpointOperationRequest {
|
|
17
|
+
createWebhookEndpointRequest: CreateWebhookEndpointRequest;
|
|
18
|
+
idempotencyKey?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface DeleteWebhookEndpointRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
23
|
+
export interface GetWebhookEndpointRequest {
|
|
24
|
+
id: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ListWebhookEndpointsRequest {
|
|
27
|
+
cursor?: string;
|
|
28
|
+
limit?: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export declare class WebhooksApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
* Creates request options for createWebhookEndpoint without sending the request
|
|
36
|
+
*/
|
|
37
|
+
createWebhookEndpointRequestOpts(requestParameters: CreateWebhookEndpointOperationRequest): Promise<runtime.RequestOpts>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a webhook endpoint
|
|
40
|
+
*/
|
|
41
|
+
createWebhookEndpointRaw(requestParameters: CreateWebhookEndpointOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
|
|
42
|
+
/**
|
|
43
|
+
* Create a webhook endpoint
|
|
44
|
+
*/
|
|
45
|
+
createWebhookEndpoint(requestParameters: CreateWebhookEndpointOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
|
|
46
|
+
/**
|
|
47
|
+
* Creates request options for deleteWebhookEndpoint without sending the request
|
|
48
|
+
*/
|
|
49
|
+
deleteWebhookEndpointRequestOpts(requestParameters: DeleteWebhookEndpointRequest): Promise<runtime.RequestOpts>;
|
|
50
|
+
/**
|
|
51
|
+
* Delete a webhook endpoint
|
|
52
|
+
*/
|
|
53
|
+
deleteWebhookEndpointRaw(requestParameters: DeleteWebhookEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
54
|
+
/**
|
|
55
|
+
* Delete a webhook endpoint
|
|
56
|
+
*/
|
|
57
|
+
deleteWebhookEndpoint(requestParameters: DeleteWebhookEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for getWebhookEndpoint without sending the request
|
|
60
|
+
*/
|
|
61
|
+
getWebhookEndpointRequestOpts(requestParameters: GetWebhookEndpointRequest): Promise<runtime.RequestOpts>;
|
|
62
|
+
/**
|
|
63
|
+
* Get a webhook endpoint
|
|
64
|
+
*/
|
|
65
|
+
getWebhookEndpointRaw(requestParameters: GetWebhookEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
|
|
66
|
+
/**
|
|
67
|
+
* Get a webhook endpoint
|
|
68
|
+
*/
|
|
69
|
+
getWebhookEndpoint(requestParameters: GetWebhookEndpointRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for listWebhookEndpoints without sending the request
|
|
72
|
+
*/
|
|
73
|
+
listWebhookEndpointsRequestOpts(requestParameters: ListWebhookEndpointsRequest): Promise<runtime.RequestOpts>;
|
|
74
|
+
/**
|
|
75
|
+
* List webhook endpoints
|
|
76
|
+
*/
|
|
77
|
+
listWebhookEndpointsRaw(requestParameters: ListWebhookEndpointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpointPage>>;
|
|
78
|
+
/**
|
|
79
|
+
* List webhook endpoints
|
|
80
|
+
*/
|
|
81
|
+
listWebhookEndpoints(requestParameters?: ListWebhookEndpointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpointPage>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.WebhooksApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const CreateWebhookEndpointRequest_1 = require("../models/CreateWebhookEndpointRequest");
|
|
28
|
+
const WebhookEndpoint_1 = require("../models/WebhookEndpoint");
|
|
29
|
+
const WebhookEndpointPage_1 = require("../models/WebhookEndpointPage");
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
class WebhooksApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
* Creates request options for createWebhookEndpoint without sending the request
|
|
36
|
+
*/
|
|
37
|
+
createWebhookEndpointRequestOpts(requestParameters) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (requestParameters['createWebhookEndpointRequest'] == null) {
|
|
40
|
+
throw new runtime.RequiredError('createWebhookEndpointRequest', 'Required parameter "createWebhookEndpointRequest" was null or undefined when calling createWebhookEndpoint().');
|
|
41
|
+
}
|
|
42
|
+
const queryParameters = {};
|
|
43
|
+
const headerParameters = {};
|
|
44
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
45
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
46
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
47
|
+
}
|
|
48
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
49
|
+
const token = this.configuration.accessToken;
|
|
50
|
+
const tokenString = yield token("bearerAuth", []);
|
|
51
|
+
if (tokenString) {
|
|
52
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
let urlPath = `/webhook-endpoints`;
|
|
56
|
+
return {
|
|
57
|
+
path: urlPath,
|
|
58
|
+
method: 'POST',
|
|
59
|
+
headers: headerParameters,
|
|
60
|
+
query: queryParameters,
|
|
61
|
+
body: (0, CreateWebhookEndpointRequest_1.CreateWebhookEndpointRequestToJSON)(requestParameters['createWebhookEndpointRequest']),
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Create a webhook endpoint
|
|
67
|
+
*/
|
|
68
|
+
createWebhookEndpointRaw(requestParameters, initOverrides) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const requestOptions = yield this.createWebhookEndpointRequestOpts(requestParameters);
|
|
71
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
72
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebhookEndpoint_1.WebhookEndpointFromJSON)(jsonValue));
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Create a webhook endpoint
|
|
77
|
+
*/
|
|
78
|
+
createWebhookEndpoint(requestParameters, initOverrides) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
const response = yield this.createWebhookEndpointRaw(requestParameters, initOverrides);
|
|
81
|
+
return yield response.value();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Creates request options for deleteWebhookEndpoint without sending the request
|
|
86
|
+
*/
|
|
87
|
+
deleteWebhookEndpointRequestOpts(requestParameters) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
if (requestParameters['id'] == null) {
|
|
90
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteWebhookEndpoint().');
|
|
91
|
+
}
|
|
92
|
+
const queryParameters = {};
|
|
93
|
+
const headerParameters = {};
|
|
94
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
95
|
+
const token = this.configuration.accessToken;
|
|
96
|
+
const tokenString = yield token("bearerAuth", []);
|
|
97
|
+
if (tokenString) {
|
|
98
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
let urlPath = `/webhook-endpoints/{id}`;
|
|
102
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
103
|
+
return {
|
|
104
|
+
path: urlPath,
|
|
105
|
+
method: 'DELETE',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Delete a webhook endpoint
|
|
113
|
+
*/
|
|
114
|
+
deleteWebhookEndpointRaw(requestParameters, initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
const requestOptions = yield this.deleteWebhookEndpointRequestOpts(requestParameters);
|
|
117
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
118
|
+
return new runtime.VoidApiResponse(response);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Delete a webhook endpoint
|
|
123
|
+
*/
|
|
124
|
+
deleteWebhookEndpoint(requestParameters, initOverrides) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
yield this.deleteWebhookEndpointRaw(requestParameters, initOverrides);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Creates request options for getWebhookEndpoint without sending the request
|
|
131
|
+
*/
|
|
132
|
+
getWebhookEndpointRequestOpts(requestParameters) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
+
if (requestParameters['id'] == null) {
|
|
135
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getWebhookEndpoint().');
|
|
136
|
+
}
|
|
137
|
+
const queryParameters = {};
|
|
138
|
+
const headerParameters = {};
|
|
139
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
140
|
+
const token = this.configuration.accessToken;
|
|
141
|
+
const tokenString = yield token("bearerAuth", []);
|
|
142
|
+
if (tokenString) {
|
|
143
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
let urlPath = `/webhook-endpoints/{id}`;
|
|
147
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
148
|
+
return {
|
|
149
|
+
path: urlPath,
|
|
150
|
+
method: 'GET',
|
|
151
|
+
headers: headerParameters,
|
|
152
|
+
query: queryParameters,
|
|
153
|
+
};
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Get a webhook endpoint
|
|
158
|
+
*/
|
|
159
|
+
getWebhookEndpointRaw(requestParameters, initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const requestOptions = yield this.getWebhookEndpointRequestOpts(requestParameters);
|
|
162
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
163
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebhookEndpoint_1.WebhookEndpointFromJSON)(jsonValue));
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Get a webhook endpoint
|
|
168
|
+
*/
|
|
169
|
+
getWebhookEndpoint(requestParameters, initOverrides) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const response = yield this.getWebhookEndpointRaw(requestParameters, initOverrides);
|
|
172
|
+
return yield response.value();
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Creates request options for listWebhookEndpoints without sending the request
|
|
177
|
+
*/
|
|
178
|
+
listWebhookEndpointsRequestOpts(requestParameters) {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
const queryParameters = {};
|
|
181
|
+
if (requestParameters['cursor'] != null) {
|
|
182
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
183
|
+
}
|
|
184
|
+
if (requestParameters['limit'] != null) {
|
|
185
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
186
|
+
}
|
|
187
|
+
const headerParameters = {};
|
|
188
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
189
|
+
const token = this.configuration.accessToken;
|
|
190
|
+
const tokenString = yield token("bearerAuth", []);
|
|
191
|
+
if (tokenString) {
|
|
192
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
let urlPath = `/webhook-endpoints`;
|
|
196
|
+
return {
|
|
197
|
+
path: urlPath,
|
|
198
|
+
method: 'GET',
|
|
199
|
+
headers: headerParameters,
|
|
200
|
+
query: queryParameters,
|
|
201
|
+
};
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* List webhook endpoints
|
|
206
|
+
*/
|
|
207
|
+
listWebhookEndpointsRaw(requestParameters, initOverrides) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
const requestOptions = yield this.listWebhookEndpointsRequestOpts(requestParameters);
|
|
210
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
211
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, WebhookEndpointPage_1.WebhookEndpointPageFromJSON)(jsonValue));
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* List webhook endpoints
|
|
216
|
+
*/
|
|
217
|
+
listWebhookEndpoints() {
|
|
218
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
219
|
+
const response = yield this.listWebhookEndpointsRaw(requestParameters, initOverrides);
|
|
220
|
+
return yield response.value();
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
exports.WebhooksApi = WebhooksApi;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './BillingApi';
|
|
2
|
+
export * from './CommunityApi';
|
|
3
|
+
export * from './EnvironmentsApi';
|
|
4
|
+
export * from './FineTuningApi';
|
|
5
|
+
export * from './GpuTypesApi';
|
|
6
|
+
export * from './InferenceApi';
|
|
7
|
+
export * from './InstancesApi';
|
|
8
|
+
export * from './MetaApi';
|
|
9
|
+
export * from './OperationsApi';
|
|
10
|
+
export * from './PricingApi';
|
|
11
|
+
export * from './SshKeysApi';
|
|
12
|
+
export * from './TemplatesApi';
|
|
13
|
+
export * from './UsageApi';
|
|
14
|
+
export * from './WebhooksApi';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./BillingApi"), exports);
|
|
20
|
+
__exportStar(require("./CommunityApi"), exports);
|
|
21
|
+
__exportStar(require("./EnvironmentsApi"), exports);
|
|
22
|
+
__exportStar(require("./FineTuningApi"), exports);
|
|
23
|
+
__exportStar(require("./GpuTypesApi"), exports);
|
|
24
|
+
__exportStar(require("./InferenceApi"), exports);
|
|
25
|
+
__exportStar(require("./InstancesApi"), exports);
|
|
26
|
+
__exportStar(require("./MetaApi"), exports);
|
|
27
|
+
__exportStar(require("./OperationsApi"), exports);
|
|
28
|
+
__exportStar(require("./PricingApi"), exports);
|
|
29
|
+
__exportStar(require("./SshKeysApi"), exports);
|
|
30
|
+
__exportStar(require("./TemplatesApi"), exports);
|
|
31
|
+
__exportStar(require("./UsageApi"), exports);
|
|
32
|
+
__exportStar(require("./WebhooksApi"), exports);
|
|
@@ -0,0 +1,101 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import { type CreateCryptoDepositRequest } from '../models/CreateCryptoDepositRequest';
|
|
14
|
+
import { type CryptoDeposit } from '../models/CryptoDeposit';
|
|
15
|
+
import { type ListDeposits200Response } from '../models/ListDeposits200Response';
|
|
16
|
+
import { type SpendingLimit } from '../models/SpendingLimit';
|
|
17
|
+
import { type UpdateSpendingLimitRequest } from '../models/UpdateSpendingLimitRequest';
|
|
18
|
+
export interface CreateCryptoDepositOperationRequest {
|
|
19
|
+
createCryptoDepositRequest: CreateCryptoDepositRequest;
|
|
20
|
+
}
|
|
21
|
+
export interface GetDepositRequest {
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
export interface UpdateSpendingLimitOperationRequest {
|
|
25
|
+
updateSpendingLimitRequest: UpdateSpendingLimitRequest;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class BillingApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for createCryptoDeposit without sending the request
|
|
33
|
+
*/
|
|
34
|
+
createCryptoDepositRequestOpts(requestParameters: CreateCryptoDepositOperationRequest): Promise<runtime.RequestOpts>;
|
|
35
|
+
/**
|
|
36
|
+
* Creates a deposit intent and returns the payment address and the exact token amount to send. Requires the `billing:write` scope; any member of the organization may add funds. Send the exact `pay_amount` of `asset` on `chain` and no other network — funds sent on a different network are not detected automatically. Returns 404 when stablecoin deposits are not enabled for this deployment.
|
|
37
|
+
* Create a stablecoin deposit
|
|
38
|
+
*/
|
|
39
|
+
createCryptoDepositRaw(requestParameters: CreateCryptoDepositOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CryptoDeposit>>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a deposit intent and returns the payment address and the exact token amount to send. Requires the `billing:write` scope; any member of the organization may add funds. Send the exact `pay_amount` of `asset` on `chain` and no other network — funds sent on a different network are not detected automatically. Returns 404 when stablecoin deposits are not enabled for this deployment.
|
|
42
|
+
* Create a stablecoin deposit
|
|
43
|
+
*/
|
|
44
|
+
createCryptoDeposit(requestParameters: CreateCryptoDepositOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CryptoDeposit>;
|
|
45
|
+
/**
|
|
46
|
+
* Creates request options for getDeposit without sending the request
|
|
47
|
+
*/
|
|
48
|
+
getDepositRequestOpts(requestParameters: GetDepositRequest): Promise<runtime.RequestOpts>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns a single deposit belonging to the caller\'s organization. Requires the `billing:read` scope. A deposit belonging to another organization returns the same `404 deposit-not-found` as one that does not exist — deliberately, so this endpoint cannot be used to test whether a deposit id is real. Also 404 when stablecoin deposits are not enabled for this deployment.
|
|
51
|
+
* Get one stablecoin deposit
|
|
52
|
+
*/
|
|
53
|
+
getDepositRaw(requestParameters: GetDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CryptoDeposit>>;
|
|
54
|
+
/**
|
|
55
|
+
* Returns a single deposit belonging to the caller\'s organization. Requires the `billing:read` scope. A deposit belonging to another organization returns the same `404 deposit-not-found` as one that does not exist — deliberately, so this endpoint cannot be used to test whether a deposit id is real. Also 404 when stablecoin deposits are not enabled for this deployment.
|
|
56
|
+
* Get one stablecoin deposit
|
|
57
|
+
*/
|
|
58
|
+
getDeposit(requestParameters: GetDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CryptoDeposit>;
|
|
59
|
+
/**
|
|
60
|
+
* Creates request options for getSpendingLimit without sending the request
|
|
61
|
+
*/
|
|
62
|
+
getSpendingLimitRequestOpts(): Promise<runtime.RequestOpts>;
|
|
63
|
+
/**
|
|
64
|
+
* Returns the organization\'s monthly spending limit and opt-in daily spend cap, with the current month and day spend. Requires the `billing:read` scope. Returns 404 when no limit is configured.
|
|
65
|
+
* Get the org spending limit
|
|
66
|
+
*/
|
|
67
|
+
getSpendingLimitRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SpendingLimit>>;
|
|
68
|
+
/**
|
|
69
|
+
* Returns the organization\'s monthly spending limit and opt-in daily spend cap, with the current month and day spend. Requires the `billing:read` scope. Returns 404 when no limit is configured.
|
|
70
|
+
* Get the org spending limit
|
|
71
|
+
*/
|
|
72
|
+
getSpendingLimit(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SpendingLimit>;
|
|
73
|
+
/**
|
|
74
|
+
* Creates request options for listDeposits without sending the request
|
|
75
|
+
*/
|
|
76
|
+
listDepositsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
77
|
+
/**
|
|
78
|
+
* Returns the organization\'s stablecoin deposits, newest first, capped at 50. Requires the `billing:read` scope. The organization is taken from the authenticated API key, never from a parameter. Returns 404 when stablecoin deposits are not enabled for this deployment.
|
|
79
|
+
* List stablecoin deposits
|
|
80
|
+
*/
|
|
81
|
+
listDepositsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListDeposits200Response>>;
|
|
82
|
+
/**
|
|
83
|
+
* Returns the organization\'s stablecoin deposits, newest first, capped at 50. Requires the `billing:read` scope. The organization is taken from the authenticated API key, never from a parameter. Returns 404 when stablecoin deposits are not enabled for this deployment.
|
|
84
|
+
* List stablecoin deposits
|
|
85
|
+
*/
|
|
86
|
+
listDeposits(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDeposits200Response>;
|
|
87
|
+
/**
|
|
88
|
+
* Creates request options for updateSpendingLimit without sending the request
|
|
89
|
+
*/
|
|
90
|
+
updateSpendingLimitRequestOpts(requestParameters: UpdateSpendingLimitOperationRequest): Promise<runtime.RequestOpts>;
|
|
91
|
+
/**
|
|
92
|
+
* Sets the monthly spending limit and optionally sets or clears the opt-in daily spend cap. Requires the `billing:write` scope AND org-admin privileges (a non-admin member gets 403). `daily_limit_dollars` uses pointer semantics: omit to leave the cap unchanged, 0 to clear it, a positive value to set it.
|
|
93
|
+
* Set the org spending limit
|
|
94
|
+
*/
|
|
95
|
+
updateSpendingLimitRaw(requestParameters: UpdateSpendingLimitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SpendingLimit>>;
|
|
96
|
+
/**
|
|
97
|
+
* Sets the monthly spending limit and optionally sets or clears the opt-in daily spend cap. Requires the `billing:write` scope AND org-admin privileges (a non-admin member gets 403). `daily_limit_dollars` uses pointer semantics: omit to leave the cap unchanged, 0 to clear it, a positive value to set it.
|
|
98
|
+
* Set the org spending limit
|
|
99
|
+
*/
|
|
100
|
+
updateSpendingLimit(requestParameters: UpdateSpendingLimitOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SpendingLimit>;
|
|
101
|
+
}
|