@gpuai/sdk 0.3.17 → 0.4.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.
Files changed (152) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +36 -2
  3. package/dist/apis/BillingApi.d.ts +70 -0
  4. package/dist/apis/BillingApi.js +197 -0
  5. package/dist/apis/FunctionsApi.d.ts +228 -0
  6. package/dist/apis/FunctionsApi.js +627 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/BillingApi.d.ts +70 -0
  10. package/dist/esm/apis/BillingApi.js +197 -0
  11. package/dist/esm/apis/FunctionsApi.d.ts +228 -0
  12. package/dist/esm/apis/FunctionsApi.js +623 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/AutolaunchRule.d.ts +4 -2
  16. package/dist/esm/models/BillingDetails.d.ts +98 -0
  17. package/dist/esm/models/BillingDetails.js +85 -0
  18. package/dist/esm/models/CreateFunctionRequest.d.ts +32 -0
  19. package/dist/esm/models/CreateFunctionRequest.js +43 -0
  20. package/dist/esm/models/CreateFunctionRunRequest.d.ts +38 -0
  21. package/dist/esm/models/CreateFunctionRunRequest.js +45 -0
  22. package/dist/esm/models/CreateFunctionVersionRequest.d.ts +110 -0
  23. package/dist/esm/models/CreateFunctionVersionRequest.js +79 -0
  24. package/dist/esm/models/Function.d.ts +163 -0
  25. package/dist/esm/models/Function.js +109 -0
  26. package/dist/esm/models/FunctionList.d.ts +33 -0
  27. package/dist/esm/models/FunctionList.js +44 -0
  28. package/dist/esm/models/FunctionReplicaCounts.d.ts +44 -0
  29. package/dist/esm/models/FunctionReplicaCounts.js +51 -0
  30. package/dist/esm/models/FunctionRun.d.ts +130 -0
  31. package/dist/esm/models/FunctionRun.js +94 -0
  32. package/dist/esm/models/FunctionRunError.d.ts +44 -0
  33. package/dist/esm/models/FunctionRunError.js +49 -0
  34. package/dist/esm/models/FunctionRunList.d.ts +39 -0
  35. package/dist/esm/models/FunctionRunList.js +48 -0
  36. package/dist/esm/models/FunctionRunLogChunk.d.ts +59 -0
  37. package/dist/esm/models/FunctionRunLogChunk.js +63 -0
  38. package/dist/esm/models/FunctionRunLogs.d.ts +45 -0
  39. package/dist/esm/models/FunctionRunLogs.js +52 -0
  40. package/dist/esm/models/FunctionUpload.d.ts +51 -0
  41. package/dist/esm/models/FunctionUpload.js +59 -0
  42. package/dist/esm/models/FunctionVersion.d.ts +137 -0
  43. package/dist/esm/models/FunctionVersion.js +109 -0
  44. package/dist/esm/models/Invoice.d.ts +68 -0
  45. package/dist/esm/models/Invoice.js +67 -0
  46. package/dist/esm/models/InvoiceList.d.ts +45 -0
  47. package/dist/esm/models/InvoiceList.js +50 -0
  48. package/dist/esm/models/ModelPricing.d.ts +46 -0
  49. package/dist/esm/models/ModelPricing.js +21 -0
  50. package/dist/esm/models/ModelRate.d.ts +62 -0
  51. package/dist/esm/models/ModelRate.js +51 -0
  52. package/dist/esm/models/PeakWindow.d.ts +38 -0
  53. package/dist/esm/models/PeakWindow.js +47 -0
  54. package/dist/esm/models/UpdateBillingDetailsRequest.d.ts +80 -0
  55. package/dist/esm/models/UpdateBillingDetailsRequest.js +57 -0
  56. package/dist/esm/models/index.d.ts +19 -0
  57. package/dist/esm/models/index.js +19 -0
  58. package/dist/esm/runtime.js +1 -1
  59. package/dist/models/AutolaunchRule.d.ts +4 -2
  60. package/dist/models/BillingDetails.d.ts +98 -0
  61. package/dist/models/BillingDetails.js +92 -0
  62. package/dist/models/CreateFunctionRequest.d.ts +32 -0
  63. package/dist/models/CreateFunctionRequest.js +50 -0
  64. package/dist/models/CreateFunctionRunRequest.d.ts +38 -0
  65. package/dist/models/CreateFunctionRunRequest.js +52 -0
  66. package/dist/models/CreateFunctionVersionRequest.d.ts +110 -0
  67. package/dist/models/CreateFunctionVersionRequest.js +86 -0
  68. package/dist/models/Function.d.ts +163 -0
  69. package/dist/models/Function.js +117 -0
  70. package/dist/models/FunctionList.d.ts +33 -0
  71. package/dist/models/FunctionList.js +51 -0
  72. package/dist/models/FunctionReplicaCounts.d.ts +44 -0
  73. package/dist/models/FunctionReplicaCounts.js +58 -0
  74. package/dist/models/FunctionRun.d.ts +130 -0
  75. package/dist/models/FunctionRun.js +102 -0
  76. package/dist/models/FunctionRunError.d.ts +44 -0
  77. package/dist/models/FunctionRunError.js +56 -0
  78. package/dist/models/FunctionRunList.d.ts +39 -0
  79. package/dist/models/FunctionRunList.js +55 -0
  80. package/dist/models/FunctionRunLogChunk.d.ts +59 -0
  81. package/dist/models/FunctionRunLogChunk.js +71 -0
  82. package/dist/models/FunctionRunLogs.d.ts +45 -0
  83. package/dist/models/FunctionRunLogs.js +59 -0
  84. package/dist/models/FunctionUpload.d.ts +51 -0
  85. package/dist/models/FunctionUpload.js +67 -0
  86. package/dist/models/FunctionVersion.d.ts +137 -0
  87. package/dist/models/FunctionVersion.js +117 -0
  88. package/dist/models/Invoice.d.ts +68 -0
  89. package/dist/models/Invoice.js +74 -0
  90. package/dist/models/InvoiceList.d.ts +45 -0
  91. package/dist/models/InvoiceList.js +57 -0
  92. package/dist/models/ModelPricing.d.ts +46 -0
  93. package/dist/models/ModelPricing.js +22 -0
  94. package/dist/models/ModelRate.d.ts +62 -0
  95. package/dist/models/ModelRate.js +58 -0
  96. package/dist/models/PeakWindow.d.ts +38 -0
  97. package/dist/models/PeakWindow.js +54 -0
  98. package/dist/models/UpdateBillingDetailsRequest.d.ts +80 -0
  99. package/dist/models/UpdateBillingDetailsRequest.js +64 -0
  100. package/dist/models/index.d.ts +19 -0
  101. package/dist/models/index.js +19 -0
  102. package/dist/runtime.js +1 -1
  103. package/docs/AutolaunchApi.md +1 -1
  104. package/docs/BillingApi.md +299 -0
  105. package/docs/BillingDetails.md +56 -0
  106. package/docs/CreateFunctionRequest.md +34 -0
  107. package/docs/CreateFunctionRunRequest.md +36 -0
  108. package/docs/CreateFunctionVersionRequest.md +60 -0
  109. package/docs/Function.md +75 -0
  110. package/docs/FunctionList.md +34 -0
  111. package/docs/FunctionReplicaCounts.md +39 -0
  112. package/docs/FunctionRun.md +63 -0
  113. package/docs/FunctionRunError.md +38 -0
  114. package/docs/FunctionRunList.md +36 -0
  115. package/docs/FunctionRunLogChunk.md +40 -0
  116. package/docs/FunctionRunLogs.md +38 -0
  117. package/docs/FunctionUpload.md +38 -0
  118. package/docs/FunctionVersion.md +66 -0
  119. package/docs/FunctionsApi.md +880 -0
  120. package/docs/Invoice.md +46 -0
  121. package/docs/InvoiceList.md +38 -0
  122. package/docs/ModelPricing.md +12 -0
  123. package/docs/ModelRate.md +45 -0
  124. package/docs/PeakWindow.md +37 -0
  125. package/docs/UpdateBillingDetailsRequest.md +50 -0
  126. package/package.json +1 -1
  127. package/src/apis/BillingApi.ts +247 -0
  128. package/src/apis/FunctionsApi.ts +828 -0
  129. package/src/apis/index.ts +1 -0
  130. package/src/models/AutolaunchRule.ts +4 -2
  131. package/src/models/BillingDetails.ts +164 -0
  132. package/src/models/CreateFunctionRequest.ts +66 -0
  133. package/src/models/CreateFunctionRunRequest.ts +74 -0
  134. package/src/models/CreateFunctionVersionRequest.ts +175 -0
  135. package/src/models/Function.ts +255 -0
  136. package/src/models/FunctionList.ts +74 -0
  137. package/src/models/FunctionReplicaCounts.ts +84 -0
  138. package/src/models/FunctionRun.ts +207 -0
  139. package/src/models/FunctionRunError.ts +83 -0
  140. package/src/models/FunctionRunList.ts +83 -0
  141. package/src/models/FunctionRunLogChunk.ts +105 -0
  142. package/src/models/FunctionRunLogs.ts +92 -0
  143. package/src/models/FunctionUpload.ts +96 -0
  144. package/src/models/FunctionVersion.ts +226 -0
  145. package/src/models/Invoice.ts +120 -0
  146. package/src/models/InvoiceList.ts +91 -0
  147. package/src/models/ModelPricing.ts +74 -0
  148. package/src/models/ModelRate.ts +105 -0
  149. package/src/models/PeakWindow.ts +75 -0
  150. package/src/models/UpdateBillingDetailsRequest.ts +129 -0
  151. package/src/models/index.ts +19 -0
  152. package/src/runtime.ts +1 -1
@@ -8,6 +8,7 @@ docs/AutolaunchRuleDisarm.md
8
8
  docs/AutolaunchRulePage.md
9
9
  docs/Balance.md
10
10
  docs/BillingApi.md
11
+ docs/BillingDetails.md
11
12
  docs/ChatChoice.md
12
13
  docs/ChatCompletionRequest.md
13
14
  docs/ChatCompletionResponse.md
@@ -22,6 +23,9 @@ docs/CreateFineTuningJobRequest.md
22
23
  docs/CreateFineTuningJobRequestGpuai.md
23
24
  docs/CreateFineTuningJobRequestMethod.md
24
25
  docs/CreateFineTuningJobRequestMethodLora.md
26
+ docs/CreateFunctionRequest.md
27
+ docs/CreateFunctionRunRequest.md
28
+ docs/CreateFunctionVersionRequest.md
25
29
  docs/CreateInstanceRequest.md
26
30
  docs/CreateInstanceRequestPortsInner.md
27
31
  docs/CreateRegistryCredentialRequest.md
@@ -44,6 +48,17 @@ docs/FineTuningJobEventList.md
44
48
  docs/FineTuningJobList.md
45
49
  docs/FineTuningJobMethod.md
46
50
  docs/FrameworkVersion.md
51
+ docs/Function.md
52
+ docs/FunctionList.md
53
+ docs/FunctionReplicaCounts.md
54
+ docs/FunctionRun.md
55
+ docs/FunctionRunError.md
56
+ docs/FunctionRunList.md
57
+ docs/FunctionRunLogChunk.md
58
+ docs/FunctionRunLogs.md
59
+ docs/FunctionUpload.md
60
+ docs/FunctionVersion.md
61
+ docs/FunctionsApi.md
47
62
  docs/GPUType.md
48
63
  docs/GPUTypePage.md
49
64
  docs/GetHealth200Response.md
@@ -58,6 +73,8 @@ docs/Instance.md
58
73
  docs/InstanceConnection.md
59
74
  docs/InstancePage.md
60
75
  docs/InstancesApi.md
76
+ docs/Invoice.md
77
+ docs/InvoiceList.md
61
78
  docs/ListCommunityMachines200Response.md
62
79
  docs/ListDeposits200Response.md
63
80
  docs/ListRegistryCredentials200Response.md
@@ -69,12 +86,14 @@ docs/Model.md
69
86
  docs/ModelList.md
70
87
  docs/ModelParametersInner.md
71
88
  docs/ModelPricing.md
89
+ docs/ModelRate.md
72
90
  docs/OpenAIErrorEnvelope.md
73
91
  docs/OpenAIErrorEnvelopeError.md
74
92
  docs/Operation.md
75
93
  docs/OperationError.md
76
94
  docs/OperationResult.md
77
95
  docs/OperationsApi.md
96
+ docs/PeakWindow.md
78
97
  docs/Pricing.md
79
98
  docs/PricingApi.md
80
99
  docs/PricingPage.md
@@ -93,6 +112,7 @@ docs/TemplateEnvInner.md
93
112
  docs/TemplateList.md
94
113
  docs/TemplatePortsInner.md
95
114
  docs/TemplatesApi.md
115
+ docs/UpdateBillingDetailsRequest.md
96
116
  docs/UpdateInstanceRequest.md
97
117
  docs/UpdateSpendingLimitRequest.md
98
118
  docs/Usage.md
@@ -117,6 +137,7 @@ src/apis/BillingApi.ts
117
137
  src/apis/CommunityApi.ts
118
138
  src/apis/EnvironmentsApi.ts
119
139
  src/apis/FineTuningApi.ts
140
+ src/apis/FunctionsApi.ts
120
141
  src/apis/GpuTypesApi.ts
121
142
  src/apis/InferenceApi.ts
122
143
  src/apis/InstancesApi.ts
@@ -137,6 +158,7 @@ src/models/AutolaunchRuleCreate.ts
137
158
  src/models/AutolaunchRuleDisarm.ts
138
159
  src/models/AutolaunchRulePage.ts
139
160
  src/models/Balance.ts
161
+ src/models/BillingDetails.ts
140
162
  src/models/ChatChoice.ts
141
163
  src/models/ChatCompletionRequest.ts
142
164
  src/models/ChatCompletionResponse.ts
@@ -150,6 +172,9 @@ src/models/CreateFineTuningJobRequest.ts
150
172
  src/models/CreateFineTuningJobRequestGpuai.ts
151
173
  src/models/CreateFineTuningJobRequestMethod.ts
152
174
  src/models/CreateFineTuningJobRequestMethodLora.ts
175
+ src/models/CreateFunctionRequest.ts
176
+ src/models/CreateFunctionRunRequest.ts
177
+ src/models/CreateFunctionVersionRequest.ts
153
178
  src/models/CreateInstanceRequest.ts
154
179
  src/models/CreateInstanceRequestPortsInner.ts
155
180
  src/models/CreateRegistryCredentialRequest.ts
@@ -170,6 +195,16 @@ src/models/FineTuningJobEventList.ts
170
195
  src/models/FineTuningJobList.ts
171
196
  src/models/FineTuningJobMethod.ts
172
197
  src/models/FrameworkVersion.ts
198
+ src/models/Function.ts
199
+ src/models/FunctionList.ts
200
+ src/models/FunctionReplicaCounts.ts
201
+ src/models/FunctionRun.ts
202
+ src/models/FunctionRunError.ts
203
+ src/models/FunctionRunList.ts
204
+ src/models/FunctionRunLogChunk.ts
205
+ src/models/FunctionRunLogs.ts
206
+ src/models/FunctionUpload.ts
207
+ src/models/FunctionVersion.ts
173
208
  src/models/GPUType.ts
174
209
  src/models/GPUTypePage.ts
175
210
  src/models/GetHealth200Response.ts
@@ -181,6 +216,8 @@ src/models/IncludeItem.ts
181
216
  src/models/Instance.ts
182
217
  src/models/InstanceConnection.ts
183
218
  src/models/InstancePage.ts
219
+ src/models/Invoice.ts
220
+ src/models/InvoiceList.ts
184
221
  src/models/ListCommunityMachines200Response.ts
185
222
  src/models/ListDeposits200Response.ts
186
223
  src/models/ListRegistryCredentials200Response.ts
@@ -190,11 +227,13 @@ src/models/Model.ts
190
227
  src/models/ModelList.ts
191
228
  src/models/ModelParametersInner.ts
192
229
  src/models/ModelPricing.ts
230
+ src/models/ModelRate.ts
193
231
  src/models/OpenAIErrorEnvelope.ts
194
232
  src/models/OpenAIErrorEnvelopeError.ts
195
233
  src/models/Operation.ts
196
234
  src/models/OperationError.ts
197
235
  src/models/OperationResult.ts
236
+ src/models/PeakWindow.ts
198
237
  src/models/Pricing.ts
199
238
  src/models/PricingPage.ts
200
239
  src/models/Problem.ts
@@ -209,6 +248,7 @@ src/models/Template.ts
209
248
  src/models/TemplateEnvInner.ts
210
249
  src/models/TemplateList.ts
211
250
  src/models/TemplatePortsInner.ts
251
+ src/models/UpdateBillingDetailsRequest.ts
212
252
  src/models/UpdateInstanceRequest.ts
213
253
  src/models/UpdateSpendingLimitRequest.ts
214
254
  src/models/Usage.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @gpuai/sdk@0.3.17
1
+ # @gpuai/sdk@0.4.0
2
2
 
3
3
  A TypeScript SDK client for the api.gpu.ai API.
4
4
 
@@ -62,10 +62,14 @@ All URIs are relative to *https://api.gpu.ai/v1*
62
62
  *AutolaunchApi* | [**getAutolaunchRule**](docs/AutolaunchApi.md#getautolaunchrule) | **GET** /autolaunch-rules/{id} | Get an auto-launch rule
63
63
  *AutolaunchApi* | [**listAutolaunchRules**](docs/AutolaunchApi.md#listautolaunchrules) | **GET** /autolaunch-rules | List auto-launch rules
64
64
  *BillingApi* | [**createCryptoDeposit**](docs/BillingApi.md#createcryptodepositoperation) | **POST** /billing/deposits/crypto | Create a stablecoin deposit
65
+ *BillingApi* | [**downloadInvoicePdf**](docs/BillingApi.md#downloadinvoicepdf) | **GET** /billing/invoices/{id}/pdf | Download an invoice PDF
65
66
  *BillingApi* | [**getBalance**](docs/BillingApi.md#getbalance) | **GET** /billing/balance | Get the org credit balance
67
+ *BillingApi* | [**getBillingDetails**](docs/BillingApi.md#getbillingdetails) | **GET** /billing/details | Get billing details
66
68
  *BillingApi* | [**getDeposit**](docs/BillingApi.md#getdeposit) | **GET** /billing/deposits/{id} | Get one stablecoin deposit
67
69
  *BillingApi* | [**getSpendingLimit**](docs/BillingApi.md#getspendinglimit) | **GET** /billing/spending-limit | Get the org spending limit
68
70
  *BillingApi* | [**listDeposits**](docs/BillingApi.md#listdeposits) | **GET** /billing/deposits | List stablecoin deposits
71
+ *BillingApi* | [**listInvoices**](docs/BillingApi.md#listinvoices) | **GET** /billing/invoices | List invoices
72
+ *BillingApi* | [**updateBillingDetails**](docs/BillingApi.md#updatebillingdetailsoperation) | **PATCH** /billing/details | Update billing details
69
73
  *BillingApi* | [**updateSpendingLimit**](docs/BillingApi.md#updatespendinglimitoperation) | **PUT** /billing/spending-limit | Set the org spending limit
70
74
  *CommunityApi* | [**delistCommunityMachine**](docs/CommunityApi.md#delistcommunitymachine) | **POST** /community/machines/{id}/delist | Delist a Community Cloud machine
71
75
  *CommunityApi* | [**enableCommunitySupplier**](docs/CommunityApi.md#enablecommunitysupplier) | **POST** /community/suppliers | Enable the Community Cloud supplier role
@@ -81,6 +85,17 @@ All URIs are relative to *https://api.gpu.ai/v1*
81
85
  *FineTuningApi* | [**listFineTuningJobEvents**](docs/FineTuningApi.md#listfinetuningjobevents) | **GET** /fine_tuning/jobs/{id}/events | List fine-tuning job events (OpenAI-compatible)
82
86
  *FineTuningApi* | [**listFineTuningJobs**](docs/FineTuningApi.md#listfinetuningjobs) | **GET** /fine_tuning/jobs | List fine-tuning jobs (OpenAI-compatible)
83
87
  *FineTuningApi* | [**retrieveFile**](docs/FineTuningApi.md#retrievefile) | **GET** /files/{id} | Retrieve a file (OpenAI-compatible)
88
+ *FunctionsApi* | [**activateFunctionVersion**](docs/FunctionsApi.md#activatefunctionversion) | **POST** /functions/{id}/versions/{version_id}/activate | Confirm a version\'s upload and make it current
89
+ *FunctionsApi* | [**cancelFunctionRun**](docs/FunctionsApi.md#cancelfunctionrun) | **POST** /functions/{id}/runs/{run_id}/cancel | Cancel a run
90
+ *FunctionsApi* | [**createFunction**](docs/FunctionsApi.md#createfunctionoperation) | **POST** /functions | Get or create a function by name
91
+ *FunctionsApi* | [**createFunctionRun**](docs/FunctionsApi.md#createfunctionrunoperation) | **POST** /functions/{id}/runs | Call a function
92
+ *FunctionsApi* | [**createFunctionVersion**](docs/FunctionsApi.md#createfunctionversionoperation) | **POST** /functions/{id}/versions | Register a version of a function
93
+ *FunctionsApi* | [**deleteFunction**](docs/FunctionsApi.md#deletefunction) | **DELETE** /functions/{id} | Delete a function
94
+ *FunctionsApi* | [**getFunction**](docs/FunctionsApi.md#getfunction) | **GET** /functions/{id} | Get a function
95
+ *FunctionsApi* | [**getFunctionRun**](docs/FunctionsApi.md#getfunctionrun) | **GET** /functions/{id}/runs/{run_id} | Get a run
96
+ *FunctionsApi* | [**getFunctionRunLogs**](docs/FunctionsApi.md#getfunctionrunlogs) | **GET** /functions/{id}/runs/{run_id}/logs | Read a run\'s output
97
+ *FunctionsApi* | [**listFunctionRuns**](docs/FunctionsApi.md#listfunctionruns) | **GET** /functions/{id}/runs | List a function\'s runs
98
+ *FunctionsApi* | [**listFunctions**](docs/FunctionsApi.md#listfunctions) | **GET** /functions | List functions
84
99
  *GpuTypesApi* | [**listGpuTypes**](docs/GpuTypesApi.md#listgputypes) | **GET** /gpu-types | List available GPU types (no auth required)
85
100
  *InferenceApi* | [**cancelVideo**](docs/InferenceApi.md#cancelvideo) | **POST** /videos/{id}/cancel | Cancel a video generation job
86
101
  *InferenceApi* | [**createChatCompletion**](docs/InferenceApi.md#createchatcompletion) | **POST** /chat/completions | Create a chat completion (OpenAI-compatible)
@@ -130,6 +145,7 @@ All URIs are relative to *https://api.gpu.ai/v1*
130
145
  - [AutolaunchRuleDisarm](docs/AutolaunchRuleDisarm.md)
131
146
  - [AutolaunchRulePage](docs/AutolaunchRulePage.md)
132
147
  - [Balance](docs/Balance.md)
148
+ - [BillingDetails](docs/BillingDetails.md)
133
149
  - [ChatChoice](docs/ChatChoice.md)
134
150
  - [ChatCompletionRequest](docs/ChatCompletionRequest.md)
135
151
  - [ChatCompletionResponse](docs/ChatCompletionResponse.md)
@@ -143,6 +159,9 @@ All URIs are relative to *https://api.gpu.ai/v1*
143
159
  - [CreateFineTuningJobRequestGpuai](docs/CreateFineTuningJobRequestGpuai.md)
144
160
  - [CreateFineTuningJobRequestMethod](docs/CreateFineTuningJobRequestMethod.md)
145
161
  - [CreateFineTuningJobRequestMethodLora](docs/CreateFineTuningJobRequestMethodLora.md)
162
+ - [CreateFunctionRequest](docs/CreateFunctionRequest.md)
163
+ - [CreateFunctionRunRequest](docs/CreateFunctionRunRequest.md)
164
+ - [CreateFunctionVersionRequest](docs/CreateFunctionVersionRequest.md)
146
165
  - [CreateInstanceRequest](docs/CreateInstanceRequest.md)
147
166
  - [CreateInstanceRequestPortsInner](docs/CreateInstanceRequestPortsInner.md)
148
167
  - [CreateRegistryCredentialRequest](docs/CreateRegistryCredentialRequest.md)
@@ -163,6 +182,16 @@ All URIs are relative to *https://api.gpu.ai/v1*
163
182
  - [FineTuningJobList](docs/FineTuningJobList.md)
164
183
  - [FineTuningJobMethod](docs/FineTuningJobMethod.md)
165
184
  - [FrameworkVersion](docs/FrameworkVersion.md)
185
+ - [Function](docs/Function.md)
186
+ - [FunctionList](docs/FunctionList.md)
187
+ - [FunctionReplicaCounts](docs/FunctionReplicaCounts.md)
188
+ - [FunctionRun](docs/FunctionRun.md)
189
+ - [FunctionRunError](docs/FunctionRunError.md)
190
+ - [FunctionRunList](docs/FunctionRunList.md)
191
+ - [FunctionRunLogChunk](docs/FunctionRunLogChunk.md)
192
+ - [FunctionRunLogs](docs/FunctionRunLogs.md)
193
+ - [FunctionUpload](docs/FunctionUpload.md)
194
+ - [FunctionVersion](docs/FunctionVersion.md)
166
195
  - [GPUType](docs/GPUType.md)
167
196
  - [GPUTypePage](docs/GPUTypePage.md)
168
197
  - [GetHealth200Response](docs/GetHealth200Response.md)
@@ -174,6 +203,8 @@ All URIs are relative to *https://api.gpu.ai/v1*
174
203
  - [Instance](docs/Instance.md)
175
204
  - [InstanceConnection](docs/InstanceConnection.md)
176
205
  - [InstancePage](docs/InstancePage.md)
206
+ - [Invoice](docs/Invoice.md)
207
+ - [InvoiceList](docs/InvoiceList.md)
177
208
  - [ListCommunityMachines200Response](docs/ListCommunityMachines200Response.md)
178
209
  - [ListDeposits200Response](docs/ListDeposits200Response.md)
179
210
  - [ListRegistryCredentials200Response](docs/ListRegistryCredentials200Response.md)
@@ -183,11 +214,13 @@ All URIs are relative to *https://api.gpu.ai/v1*
183
214
  - [ModelList](docs/ModelList.md)
184
215
  - [ModelParametersInner](docs/ModelParametersInner.md)
185
216
  - [ModelPricing](docs/ModelPricing.md)
217
+ - [ModelRate](docs/ModelRate.md)
186
218
  - [OpenAIErrorEnvelope](docs/OpenAIErrorEnvelope.md)
187
219
  - [OpenAIErrorEnvelopeError](docs/OpenAIErrorEnvelopeError.md)
188
220
  - [Operation](docs/Operation.md)
189
221
  - [OperationError](docs/OperationError.md)
190
222
  - [OperationResult](docs/OperationResult.md)
223
+ - [PeakWindow](docs/PeakWindow.md)
191
224
  - [Pricing](docs/Pricing.md)
192
225
  - [PricingPage](docs/PricingPage.md)
193
226
  - [Problem](docs/Problem.md)
@@ -202,6 +235,7 @@ All URIs are relative to *https://api.gpu.ai/v1*
202
235
  - [TemplateEnvInner](docs/TemplateEnvInner.md)
203
236
  - [TemplateList](docs/TemplateList.md)
204
237
  - [TemplatePortsInner](docs/TemplatePortsInner.md)
238
+ - [UpdateBillingDetailsRequest](docs/UpdateBillingDetailsRequest.md)
205
239
  - [UpdateInstanceRequest](docs/UpdateInstanceRequest.md)
206
240
  - [UpdateSpendingLimitRequest](docs/UpdateSpendingLimitRequest.md)
207
241
  - [Usage](docs/Usage.md)
@@ -235,7 +269,7 @@ and is automatically generated by the
235
269
  [OpenAPI Generator](https://openapi-generator.tech) project:
236
270
 
237
271
  - API version: `1.0.0`
238
- - Package version: `0.3.17`
272
+ - Package version: `0.4.0`
239
273
  - Generator version: `7.24.0`
240
274
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
241
275
 
@@ -11,17 +11,31 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import { type Balance } from '../models/Balance';
14
+ import { type BillingDetails } from '../models/BillingDetails';
14
15
  import { type CreateCryptoDepositRequest } from '../models/CreateCryptoDepositRequest';
15
16
  import { type CryptoDeposit } from '../models/CryptoDeposit';
17
+ import { type InvoiceList } from '../models/InvoiceList';
16
18
  import { type ListDeposits200Response } from '../models/ListDeposits200Response';
17
19
  import { type SpendingLimit } from '../models/SpendingLimit';
20
+ import { type UpdateBillingDetailsRequest } from '../models/UpdateBillingDetailsRequest';
18
21
  import { type UpdateSpendingLimitRequest } from '../models/UpdateSpendingLimitRequest';
19
22
  export interface CreateCryptoDepositOperationRequest {
20
23
  createCryptoDepositRequest: CreateCryptoDepositRequest;
21
24
  }
25
+ export interface DownloadInvoicePdfRequest {
26
+ id: string;
27
+ }
22
28
  export interface GetDepositRequest {
23
29
  id: string;
24
30
  }
31
+ export interface ListInvoicesRequest {
32
+ limit?: number;
33
+ cursor?: string;
34
+ }
35
+ export interface UpdateBillingDetailsOperationRequest {
36
+ updateBillingDetailsRequest: UpdateBillingDetailsRequest;
37
+ idempotencyKey?: string;
38
+ }
25
39
  export interface UpdateSpendingLimitOperationRequest {
26
40
  updateSpendingLimitRequest: UpdateSpendingLimitRequest;
27
41
  }
@@ -43,6 +57,20 @@ export declare class BillingApi extends runtime.BaseAPI {
43
57
  * Create a stablecoin deposit
44
58
  */
45
59
  createCryptoDeposit(requestParameters: CreateCryptoDepositOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CryptoDeposit>;
60
+ /**
61
+ * Creates request options for downloadInvoicePdf without sending the request
62
+ */
63
+ downloadInvoicePdfRequestOpts(requestParameters: DownloadInvoicePdfRequest): Promise<runtime.RequestOpts>;
64
+ /**
65
+ * Returns one invoice as a PDF, including the organization\'s billing details and full Tax ID. Requires the `billing:read` scope. An invoice belonging to another organization returns the same 404 as one that does not exist.
66
+ * Download an invoice PDF
67
+ */
68
+ downloadInvoicePdfRaw(requestParameters: DownloadInvoicePdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
69
+ /**
70
+ * Returns one invoice as a PDF, including the organization\'s billing details and full Tax ID. Requires the `billing:read` scope. An invoice belonging to another organization returns the same 404 as one that does not exist.
71
+ * Download an invoice PDF
72
+ */
73
+ downloadInvoicePdf(requestParameters: DownloadInvoicePdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
46
74
  /**
47
75
  * Creates request options for getBalance without sending the request
48
76
  */
@@ -57,6 +85,20 @@ export declare class BillingApi extends runtime.BaseAPI {
57
85
  * Get the org credit balance
58
86
  */
59
87
  getBalance(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Balance>;
88
+ /**
89
+ * Creates request options for getBillingDetails without sending the request
90
+ */
91
+ getBillingDetailsRequestOpts(): Promise<runtime.RequestOpts>;
92
+ /**
93
+ * Returns the company name, address and Tax ID printed on the organization\'s invoices. Requires the `billing:read` scope. The Tax ID is stored encrypted and is only ever returned masked (`tax_id_masked`); the full value is printed on the organization\'s own invoice PDFs and nowhere else.
94
+ * Get billing details
95
+ */
96
+ getBillingDetailsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingDetails>>;
97
+ /**
98
+ * Returns the company name, address and Tax ID printed on the organization\'s invoices. Requires the `billing:read` scope. The Tax ID is stored encrypted and is only ever returned masked (`tax_id_masked`); the full value is printed on the organization\'s own invoice PDFs and nowhere else.
99
+ * Get billing details
100
+ */
101
+ getBillingDetails(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingDetails>;
60
102
  /**
61
103
  * Creates request options for getDeposit without sending the request
62
104
  */
@@ -99,6 +141,34 @@ export declare class BillingApi extends runtime.BaseAPI {
99
141
  * List stablecoin deposits
100
142
  */
101
143
  listDeposits(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListDeposits200Response>;
144
+ /**
145
+ * Creates request options for listInvoices without sending the request
146
+ */
147
+ listInvoicesRequestOpts(requestParameters: ListInvoicesRequest): Promise<runtime.RequestOpts>;
148
+ /**
149
+ * Returns the organization\'s invoices, newest first. Every payment (card purchase, auto-pay top up, stablecoin deposit) has one; promotional credit does not. Requires the `billing:read` scope.
150
+ * List invoices
151
+ */
152
+ listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InvoiceList>>;
153
+ /**
154
+ * Returns the organization\'s invoices, newest first. Every payment (card purchase, auto-pay top up, stablecoin deposit) has one; promotional credit does not. Requires the `billing:read` scope.
155
+ * List invoices
156
+ */
157
+ listInvoices(requestParameters?: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InvoiceList>;
158
+ /**
159
+ * Creates request options for updateBillingDetails without sending the request
160
+ */
161
+ updateBillingDetailsRequestOpts(requestParameters: UpdateBillingDetailsOperationRequest): Promise<runtime.RequestOpts>;
162
+ /**
163
+ * Updates the billing details printed on invoices. Requires the `billing:write` scope and an org admin\'s key. Omitted fields keep their value. `tax_id` replaces the stored Tax ID (and needs `tax_id_type` unless one is already stored); an empty `tax_id` removes it. Returns 503 `tax-id-unavailable` when this deployment cannot store a Tax ID.
164
+ * Update billing details
165
+ */
166
+ updateBillingDetailsRaw(requestParameters: UpdateBillingDetailsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingDetails>>;
167
+ /**
168
+ * Updates the billing details printed on invoices. Requires the `billing:write` scope and an org admin\'s key. Omitted fields keep their value. `tax_id` replaces the stored Tax ID (and needs `tax_id_type` unless one is already stored); an empty `tax_id` removes it. Returns 503 `tax-id-unavailable` when this deployment cannot store a Tax ID.
169
+ * Update billing details
170
+ */
171
+ updateBillingDetails(requestParameters: UpdateBillingDetailsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingDetails>;
102
172
  /**
103
173
  * Creates request options for updateSpendingLimit without sending the request
104
174
  */
@@ -25,10 +25,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.BillingApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const Balance_1 = require("../models/Balance");
28
+ const BillingDetails_1 = require("../models/BillingDetails");
28
29
  const CreateCryptoDepositRequest_1 = require("../models/CreateCryptoDepositRequest");
29
30
  const CryptoDeposit_1 = require("../models/CryptoDeposit");
31
+ const InvoiceList_1 = require("../models/InvoiceList");
30
32
  const ListDeposits200Response_1 = require("../models/ListDeposits200Response");
31
33
  const SpendingLimit_1 = require("../models/SpendingLimit");
34
+ const UpdateBillingDetailsRequest_1 = require("../models/UpdateBillingDetailsRequest");
32
35
  const UpdateSpendingLimitRequest_1 = require("../models/UpdateSpendingLimitRequest");
33
36
  /**
34
37
  *
@@ -83,6 +86,54 @@ class BillingApi extends runtime.BaseAPI {
83
86
  return yield response.value();
84
87
  });
85
88
  }
89
+ /**
90
+ * Creates request options for downloadInvoicePdf without sending the request
91
+ */
92
+ downloadInvoicePdfRequestOpts(requestParameters) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ if (requestParameters['id'] == null) {
95
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling downloadInvoicePdf().');
96
+ }
97
+ const queryParameters = {};
98
+ const headerParameters = {};
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ const token = this.configuration.accessToken;
101
+ const tokenString = yield token("bearerAuth", []);
102
+ if (tokenString) {
103
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
104
+ }
105
+ }
106
+ let urlPath = `/billing/invoices/{id}/pdf`;
107
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
108
+ return {
109
+ path: urlPath,
110
+ method: 'GET',
111
+ headers: headerParameters,
112
+ query: queryParameters,
113
+ };
114
+ });
115
+ }
116
+ /**
117
+ * Returns one invoice as a PDF, including the organization\'s billing details and full Tax ID. Requires the `billing:read` scope. An invoice belonging to another organization returns the same 404 as one that does not exist.
118
+ * Download an invoice PDF
119
+ */
120
+ downloadInvoicePdfRaw(requestParameters, initOverrides) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ const requestOptions = yield this.downloadInvoicePdfRequestOpts(requestParameters);
123
+ const response = yield this.request(requestOptions, initOverrides);
124
+ return new runtime.BlobApiResponse(response);
125
+ });
126
+ }
127
+ /**
128
+ * Returns one invoice as a PDF, including the organization\'s billing details and full Tax ID. Requires the `billing:read` scope. An invoice belonging to another organization returns the same 404 as one that does not exist.
129
+ * Download an invoice PDF
130
+ */
131
+ downloadInvoicePdf(requestParameters, initOverrides) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ const response = yield this.downloadInvoicePdfRaw(requestParameters, initOverrides);
134
+ return yield response.value();
135
+ });
136
+ }
86
137
  /**
87
138
  * Creates request options for getBalance without sending the request
88
139
  */
@@ -127,6 +178,50 @@ class BillingApi extends runtime.BaseAPI {
127
178
  return yield response.value();
128
179
  });
129
180
  }
181
+ /**
182
+ * Creates request options for getBillingDetails without sending the request
183
+ */
184
+ getBillingDetailsRequestOpts() {
185
+ return __awaiter(this, void 0, void 0, function* () {
186
+ const queryParameters = {};
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 = `/billing/details`;
196
+ return {
197
+ path: urlPath,
198
+ method: 'GET',
199
+ headers: headerParameters,
200
+ query: queryParameters,
201
+ };
202
+ });
203
+ }
204
+ /**
205
+ * Returns the company name, address and Tax ID printed on the organization\'s invoices. Requires the `billing:read` scope. The Tax ID is stored encrypted and is only ever returned masked (`tax_id_masked`); the full value is printed on the organization\'s own invoice PDFs and nowhere else.
206
+ * Get billing details
207
+ */
208
+ getBillingDetailsRaw(initOverrides) {
209
+ return __awaiter(this, void 0, void 0, function* () {
210
+ const requestOptions = yield this.getBillingDetailsRequestOpts();
211
+ const response = yield this.request(requestOptions, initOverrides);
212
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, BillingDetails_1.BillingDetailsFromJSON)(jsonValue));
213
+ });
214
+ }
215
+ /**
216
+ * Returns the company name, address and Tax ID printed on the organization\'s invoices. Requires the `billing:read` scope. The Tax ID is stored encrypted and is only ever returned masked (`tax_id_masked`); the full value is printed on the organization\'s own invoice PDFs and nowhere else.
217
+ * Get billing details
218
+ */
219
+ getBillingDetails(initOverrides) {
220
+ return __awaiter(this, void 0, void 0, function* () {
221
+ const response = yield this.getBillingDetailsRaw(initOverrides);
222
+ return yield response.value();
223
+ });
224
+ }
130
225
  /**
131
226
  * Creates request options for getDeposit without sending the request
132
227
  */
@@ -263,6 +358,108 @@ class BillingApi extends runtime.BaseAPI {
263
358
  return yield response.value();
264
359
  });
265
360
  }
361
+ /**
362
+ * Creates request options for listInvoices without sending the request
363
+ */
364
+ listInvoicesRequestOpts(requestParameters) {
365
+ return __awaiter(this, void 0, void 0, function* () {
366
+ const queryParameters = {};
367
+ if (requestParameters['limit'] != null) {
368
+ queryParameters['limit'] = requestParameters['limit'];
369
+ }
370
+ if (requestParameters['cursor'] != null) {
371
+ queryParameters['cursor'] = requestParameters['cursor'];
372
+ }
373
+ const headerParameters = {};
374
+ if (this.configuration && this.configuration.accessToken) {
375
+ const token = this.configuration.accessToken;
376
+ const tokenString = yield token("bearerAuth", []);
377
+ if (tokenString) {
378
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
379
+ }
380
+ }
381
+ let urlPath = `/billing/invoices`;
382
+ return {
383
+ path: urlPath,
384
+ method: 'GET',
385
+ headers: headerParameters,
386
+ query: queryParameters,
387
+ };
388
+ });
389
+ }
390
+ /**
391
+ * Returns the organization\'s invoices, newest first. Every payment (card purchase, auto-pay top up, stablecoin deposit) has one; promotional credit does not. Requires the `billing:read` scope.
392
+ * List invoices
393
+ */
394
+ listInvoicesRaw(requestParameters, initOverrides) {
395
+ return __awaiter(this, void 0, void 0, function* () {
396
+ const requestOptions = yield this.listInvoicesRequestOpts(requestParameters);
397
+ const response = yield this.request(requestOptions, initOverrides);
398
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, InvoiceList_1.InvoiceListFromJSON)(jsonValue));
399
+ });
400
+ }
401
+ /**
402
+ * Returns the organization\'s invoices, newest first. Every payment (card purchase, auto-pay top up, stablecoin deposit) has one; promotional credit does not. Requires the `billing:read` scope.
403
+ * List invoices
404
+ */
405
+ listInvoices() {
406
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
407
+ const response = yield this.listInvoicesRaw(requestParameters, initOverrides);
408
+ return yield response.value();
409
+ });
410
+ }
411
+ /**
412
+ * Creates request options for updateBillingDetails without sending the request
413
+ */
414
+ updateBillingDetailsRequestOpts(requestParameters) {
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ if (requestParameters['updateBillingDetailsRequest'] == null) {
417
+ throw new runtime.RequiredError('updateBillingDetailsRequest', 'Required parameter "updateBillingDetailsRequest" was null or undefined when calling updateBillingDetails().');
418
+ }
419
+ const queryParameters = {};
420
+ const headerParameters = {};
421
+ headerParameters['Content-Type'] = 'application/json';
422
+ if (requestParameters['idempotencyKey'] != null) {
423
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
424
+ }
425
+ if (this.configuration && this.configuration.accessToken) {
426
+ const token = this.configuration.accessToken;
427
+ const tokenString = yield token("bearerAuth", []);
428
+ if (tokenString) {
429
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
430
+ }
431
+ }
432
+ let urlPath = `/billing/details`;
433
+ return {
434
+ path: urlPath,
435
+ method: 'PATCH',
436
+ headers: headerParameters,
437
+ query: queryParameters,
438
+ body: (0, UpdateBillingDetailsRequest_1.UpdateBillingDetailsRequestToJSON)(requestParameters['updateBillingDetailsRequest']),
439
+ };
440
+ });
441
+ }
442
+ /**
443
+ * Updates the billing details printed on invoices. Requires the `billing:write` scope and an org admin\'s key. Omitted fields keep their value. `tax_id` replaces the stored Tax ID (and needs `tax_id_type` unless one is already stored); an empty `tax_id` removes it. Returns 503 `tax-id-unavailable` when this deployment cannot store a Tax ID.
444
+ * Update billing details
445
+ */
446
+ updateBillingDetailsRaw(requestParameters, initOverrides) {
447
+ return __awaiter(this, void 0, void 0, function* () {
448
+ const requestOptions = yield this.updateBillingDetailsRequestOpts(requestParameters);
449
+ const response = yield this.request(requestOptions, initOverrides);
450
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, BillingDetails_1.BillingDetailsFromJSON)(jsonValue));
451
+ });
452
+ }
453
+ /**
454
+ * Updates the billing details printed on invoices. Requires the `billing:write` scope and an org admin\'s key. Omitted fields keep their value. `tax_id` replaces the stored Tax ID (and needs `tax_id_type` unless one is already stored); an empty `tax_id` removes it. Returns 503 `tax-id-unavailable` when this deployment cannot store a Tax ID.
455
+ * Update billing details
456
+ */
457
+ updateBillingDetails(requestParameters, initOverrides) {
458
+ return __awaiter(this, void 0, void 0, function* () {
459
+ const response = yield this.updateBillingDetailsRaw(requestParameters, initOverrides);
460
+ return yield response.value();
461
+ });
462
+ }
266
463
  /**
267
464
  * Creates request options for updateSpendingLimit without sending the request
268
465
  */