@gpuai/sdk 0.3.18 → 0.4.1

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 (187) hide show
  1. package/.openapi-generator/FILES +48 -0
  2. package/README.md +41 -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/InstancesApi.d.ts +18 -0
  8. package/dist/apis/InstancesApi.js +49 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/BillingApi.d.ts +70 -0
  12. package/dist/esm/apis/BillingApi.js +197 -0
  13. package/dist/esm/apis/FunctionsApi.d.ts +228 -0
  14. package/dist/esm/apis/FunctionsApi.js +623 -0
  15. package/dist/esm/apis/InstancesApi.d.ts +18 -0
  16. package/dist/esm/apis/InstancesApi.js +49 -0
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/AutolaunchRule.d.ts +2 -1
  20. package/dist/esm/models/BillingDetails.d.ts +98 -0
  21. package/dist/esm/models/BillingDetails.js +85 -0
  22. package/dist/esm/models/CreateFunctionRequest.d.ts +32 -0
  23. package/dist/esm/models/CreateFunctionRequest.js +43 -0
  24. package/dist/esm/models/CreateFunctionRunRequest.d.ts +38 -0
  25. package/dist/esm/models/CreateFunctionRunRequest.js +45 -0
  26. package/dist/esm/models/CreateFunctionVersionRequest.d.ts +110 -0
  27. package/dist/esm/models/CreateFunctionVersionRequest.js +79 -0
  28. package/dist/esm/models/Function.d.ts +163 -0
  29. package/dist/esm/models/Function.js +109 -0
  30. package/dist/esm/models/FunctionList.d.ts +33 -0
  31. package/dist/esm/models/FunctionList.js +44 -0
  32. package/dist/esm/models/FunctionReplicaCounts.d.ts +44 -0
  33. package/dist/esm/models/FunctionReplicaCounts.js +51 -0
  34. package/dist/esm/models/FunctionRun.d.ts +130 -0
  35. package/dist/esm/models/FunctionRun.js +94 -0
  36. package/dist/esm/models/FunctionRunError.d.ts +44 -0
  37. package/dist/esm/models/FunctionRunError.js +49 -0
  38. package/dist/esm/models/FunctionRunList.d.ts +39 -0
  39. package/dist/esm/models/FunctionRunList.js +48 -0
  40. package/dist/esm/models/FunctionRunLogChunk.d.ts +59 -0
  41. package/dist/esm/models/FunctionRunLogChunk.js +63 -0
  42. package/dist/esm/models/FunctionRunLogs.d.ts +45 -0
  43. package/dist/esm/models/FunctionRunLogs.js +52 -0
  44. package/dist/esm/models/FunctionUpload.d.ts +51 -0
  45. package/dist/esm/models/FunctionUpload.js +59 -0
  46. package/dist/esm/models/FunctionVersion.d.ts +137 -0
  47. package/dist/esm/models/FunctionVersion.js +109 -0
  48. package/dist/esm/models/GpuSuggestion.d.ts +82 -0
  49. package/dist/esm/models/GpuSuggestion.js +77 -0
  50. package/dist/esm/models/GpuSuggestionCheaper.d.ts +62 -0
  51. package/dist/esm/models/GpuSuggestionCheaper.js +63 -0
  52. package/dist/esm/models/GpuSuggestionGpu.d.ts +50 -0
  53. package/dist/esm/models/GpuSuggestionGpu.js +55 -0
  54. package/dist/esm/models/Instance.d.ts +7 -0
  55. package/dist/esm/models/Instance.js +3 -0
  56. package/dist/esm/models/InstanceGpuMemory.d.ts +51 -0
  57. package/dist/esm/models/InstanceGpuMemory.js +55 -0
  58. package/dist/esm/models/Invoice.d.ts +68 -0
  59. package/dist/esm/models/Invoice.js +67 -0
  60. package/dist/esm/models/InvoiceList.d.ts +45 -0
  61. package/dist/esm/models/InvoiceList.js +50 -0
  62. package/dist/esm/models/ModelPricing.d.ts +46 -0
  63. package/dist/esm/models/ModelPricing.js +21 -0
  64. package/dist/esm/models/ModelRate.d.ts +62 -0
  65. package/dist/esm/models/ModelRate.js +51 -0
  66. package/dist/esm/models/PeakWindow.d.ts +38 -0
  67. package/dist/esm/models/PeakWindow.js +47 -0
  68. package/dist/esm/models/UpdateBillingDetailsRequest.d.ts +80 -0
  69. package/dist/esm/models/UpdateBillingDetailsRequest.js +57 -0
  70. package/dist/esm/models/index.d.ts +23 -0
  71. package/dist/esm/models/index.js +23 -0
  72. package/dist/esm/runtime.js +1 -1
  73. package/dist/models/AutolaunchRule.d.ts +2 -1
  74. package/dist/models/BillingDetails.d.ts +98 -0
  75. package/dist/models/BillingDetails.js +92 -0
  76. package/dist/models/CreateFunctionRequest.d.ts +32 -0
  77. package/dist/models/CreateFunctionRequest.js +50 -0
  78. package/dist/models/CreateFunctionRunRequest.d.ts +38 -0
  79. package/dist/models/CreateFunctionRunRequest.js +52 -0
  80. package/dist/models/CreateFunctionVersionRequest.d.ts +110 -0
  81. package/dist/models/CreateFunctionVersionRequest.js +86 -0
  82. package/dist/models/Function.d.ts +163 -0
  83. package/dist/models/Function.js +117 -0
  84. package/dist/models/FunctionList.d.ts +33 -0
  85. package/dist/models/FunctionList.js +51 -0
  86. package/dist/models/FunctionReplicaCounts.d.ts +44 -0
  87. package/dist/models/FunctionReplicaCounts.js +58 -0
  88. package/dist/models/FunctionRun.d.ts +130 -0
  89. package/dist/models/FunctionRun.js +102 -0
  90. package/dist/models/FunctionRunError.d.ts +44 -0
  91. package/dist/models/FunctionRunError.js +56 -0
  92. package/dist/models/FunctionRunList.d.ts +39 -0
  93. package/dist/models/FunctionRunList.js +55 -0
  94. package/dist/models/FunctionRunLogChunk.d.ts +59 -0
  95. package/dist/models/FunctionRunLogChunk.js +71 -0
  96. package/dist/models/FunctionRunLogs.d.ts +45 -0
  97. package/dist/models/FunctionRunLogs.js +59 -0
  98. package/dist/models/FunctionUpload.d.ts +51 -0
  99. package/dist/models/FunctionUpload.js +67 -0
  100. package/dist/models/FunctionVersion.d.ts +137 -0
  101. package/dist/models/FunctionVersion.js +117 -0
  102. package/dist/models/GpuSuggestion.d.ts +82 -0
  103. package/dist/models/GpuSuggestion.js +85 -0
  104. package/dist/models/GpuSuggestionCheaper.d.ts +62 -0
  105. package/dist/models/GpuSuggestionCheaper.js +70 -0
  106. package/dist/models/GpuSuggestionGpu.d.ts +50 -0
  107. package/dist/models/GpuSuggestionGpu.js +62 -0
  108. package/dist/models/Instance.d.ts +7 -0
  109. package/dist/models/Instance.js +3 -0
  110. package/dist/models/InstanceGpuMemory.d.ts +51 -0
  111. package/dist/models/InstanceGpuMemory.js +62 -0
  112. package/dist/models/Invoice.d.ts +68 -0
  113. package/dist/models/Invoice.js +74 -0
  114. package/dist/models/InvoiceList.d.ts +45 -0
  115. package/dist/models/InvoiceList.js +57 -0
  116. package/dist/models/ModelPricing.d.ts +46 -0
  117. package/dist/models/ModelPricing.js +22 -0
  118. package/dist/models/ModelRate.d.ts +62 -0
  119. package/dist/models/ModelRate.js +58 -0
  120. package/dist/models/PeakWindow.d.ts +38 -0
  121. package/dist/models/PeakWindow.js +54 -0
  122. package/dist/models/UpdateBillingDetailsRequest.d.ts +80 -0
  123. package/dist/models/UpdateBillingDetailsRequest.js +64 -0
  124. package/dist/models/index.d.ts +23 -0
  125. package/dist/models/index.js +23 -0
  126. package/dist/runtime.js +1 -1
  127. package/docs/BillingApi.md +299 -0
  128. package/docs/BillingDetails.md +56 -0
  129. package/docs/CreateFunctionRequest.md +34 -0
  130. package/docs/CreateFunctionRunRequest.md +36 -0
  131. package/docs/CreateFunctionVersionRequest.md +60 -0
  132. package/docs/Function.md +75 -0
  133. package/docs/FunctionList.md +34 -0
  134. package/docs/FunctionReplicaCounts.md +39 -0
  135. package/docs/FunctionRun.md +63 -0
  136. package/docs/FunctionRunError.md +38 -0
  137. package/docs/FunctionRunList.md +36 -0
  138. package/docs/FunctionRunLogChunk.md +40 -0
  139. package/docs/FunctionRunLogs.md +38 -0
  140. package/docs/FunctionUpload.md +38 -0
  141. package/docs/FunctionVersion.md +66 -0
  142. package/docs/FunctionsApi.md +880 -0
  143. package/docs/GpuSuggestion.md +47 -0
  144. package/docs/GpuSuggestionCheaper.md +45 -0
  145. package/docs/GpuSuggestionGpu.md +41 -0
  146. package/docs/Instance.md +2 -0
  147. package/docs/InstanceGpuMemory.md +41 -0
  148. package/docs/InstancesApi.md +75 -0
  149. package/docs/Invoice.md +46 -0
  150. package/docs/InvoiceList.md +38 -0
  151. package/docs/ModelPricing.md +12 -0
  152. package/docs/ModelRate.md +45 -0
  153. package/docs/PeakWindow.md +37 -0
  154. package/docs/UpdateBillingDetailsRequest.md +50 -0
  155. package/package.json +1 -1
  156. package/src/apis/BillingApi.ts +247 -0
  157. package/src/apis/FunctionsApi.ts +828 -0
  158. package/src/apis/InstancesApi.ts +64 -0
  159. package/src/apis/index.ts +1 -0
  160. package/src/models/AutolaunchRule.ts +2 -1
  161. package/src/models/BillingDetails.ts +164 -0
  162. package/src/models/CreateFunctionRequest.ts +66 -0
  163. package/src/models/CreateFunctionRunRequest.ts +74 -0
  164. package/src/models/CreateFunctionVersionRequest.ts +175 -0
  165. package/src/models/Function.ts +255 -0
  166. package/src/models/FunctionList.ts +74 -0
  167. package/src/models/FunctionReplicaCounts.ts +84 -0
  168. package/src/models/FunctionRun.ts +207 -0
  169. package/src/models/FunctionRunError.ts +83 -0
  170. package/src/models/FunctionRunList.ts +83 -0
  171. package/src/models/FunctionRunLogChunk.ts +105 -0
  172. package/src/models/FunctionRunLogs.ts +92 -0
  173. package/src/models/FunctionUpload.ts +96 -0
  174. package/src/models/FunctionVersion.ts +226 -0
  175. package/src/models/GpuSuggestion.ts +150 -0
  176. package/src/models/GpuSuggestionCheaper.ts +111 -0
  177. package/src/models/GpuSuggestionGpu.ts +93 -0
  178. package/src/models/Instance.ts +15 -0
  179. package/src/models/InstanceGpuMemory.ts +94 -0
  180. package/src/models/Invoice.ts +120 -0
  181. package/src/models/InvoiceList.ts +91 -0
  182. package/src/models/ModelPricing.ts +74 -0
  183. package/src/models/ModelRate.ts +105 -0
  184. package/src/models/PeakWindow.ts +75 -0
  185. package/src/models/UpdateBillingDetailsRequest.ts +129 -0
  186. package/src/models/index.ts +23 -0
  187. package/src/runtime.ts +1 -1
@@ -25,6 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ListInstancesStatusEnum = exports.GetInstanceIncludeEnum = exports.InstancesApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const CreateInstanceRequest_1 = require("../models/CreateInstanceRequest");
28
+ const GpuSuggestion_1 = require("../models/GpuSuggestion");
28
29
  const Instance_1 = require("../models/Instance");
29
30
  const InstancePage_1 = require("../models/InstancePage");
30
31
  const Operation_1 = require("../models/Operation");
@@ -183,6 +184,54 @@ class InstancesApi extends runtime.BaseAPI {
183
184
  return yield response.value();
184
185
  });
185
186
  }
187
+ /**
188
+ * Creates request options for getInstanceGpuSuggestion without sending the request
189
+ */
190
+ getInstanceGpuSuggestionRequestOpts(requestParameters) {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ if (requestParameters['id'] == null) {
193
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getInstanceGpuSuggestion().');
194
+ }
195
+ const queryParameters = {};
196
+ const headerParameters = {};
197
+ if (this.configuration && this.configuration.accessToken) {
198
+ const token = this.configuration.accessToken;
199
+ const tokenString = yield token("bearerAuth", []);
200
+ if (tokenString) {
201
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
202
+ }
203
+ }
204
+ let urlPath = `/instances/{id}/gpu-suggestion`;
205
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
206
+ return {
207
+ path: urlPath,
208
+ method: 'GET',
209
+ headers: headerParameters,
210
+ query: queryParameters,
211
+ };
212
+ });
213
+ }
214
+ /**
215
+ * Compares the highest GPU memory this instance has used (its `gpu_memory` peak, plus headroom) with the GPU models currently listed, and names the cheapest model that would have fit when the saving is worth a look. It never changes anything: it reports what the telemetry shows. Memory use can grow later, so treat it as a starting point. `status` is `insufficient_data` until the instance has about an hour of telemetry, `no_cheaper_fit` when no cheaper listed model covers the peak, and `suggestion` when one does. Requires the `instances:read` scope. An instance owned by another organization returns 404.
216
+ * Suggest a lower-priced GPU for an instance
217
+ */
218
+ getInstanceGpuSuggestionRaw(requestParameters, initOverrides) {
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ const requestOptions = yield this.getInstanceGpuSuggestionRequestOpts(requestParameters);
221
+ const response = yield this.request(requestOptions, initOverrides);
222
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GpuSuggestion_1.GpuSuggestionFromJSON)(jsonValue));
223
+ });
224
+ }
225
+ /**
226
+ * Compares the highest GPU memory this instance has used (its `gpu_memory` peak, plus headroom) with the GPU models currently listed, and names the cheapest model that would have fit when the saving is worth a look. It never changes anything: it reports what the telemetry shows. Memory use can grow later, so treat it as a starting point. `status` is `insufficient_data` until the instance has about an hour of telemetry, `no_cheaper_fit` when no cheaper listed model covers the peak, and `suggestion` when one does. Requires the `instances:read` scope. An instance owned by another organization returns 404.
227
+ * Suggest a lower-priced GPU for an instance
228
+ */
229
+ getInstanceGpuSuggestion(requestParameters, initOverrides) {
230
+ return __awaiter(this, void 0, void 0, function* () {
231
+ const response = yield this.getInstanceGpuSuggestionRaw(requestParameters, initOverrides);
232
+ return yield response.value();
233
+ });
234
+ }
186
235
  /**
187
236
  * Creates request options for listInstances without sending the request
188
237
  */
@@ -3,6 +3,7 @@ export * from './BillingApi';
3
3
  export * from './CommunityApi';
4
4
  export * from './EnvironmentsApi';
5
5
  export * from './FineTuningApi';
6
+ export * from './FunctionsApi';
6
7
  export * from './GpuTypesApi';
7
8
  export * from './InferenceApi';
8
9
  export * from './InstancesApi';
@@ -21,6 +21,7 @@ __exportStar(require("./BillingApi"), exports);
21
21
  __exportStar(require("./CommunityApi"), exports);
22
22
  __exportStar(require("./EnvironmentsApi"), exports);
23
23
  __exportStar(require("./FineTuningApi"), exports);
24
+ __exportStar(require("./FunctionsApi"), exports);
24
25
  __exportStar(require("./GpuTypesApi"), exports);
25
26
  __exportStar(require("./InferenceApi"), exports);
26
27
  __exportStar(require("./InstancesApi"), exports);
@@ -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
  */
@@ -22,10 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  };
23
23
  import * as runtime from '../runtime';
24
24
  import { BalanceFromJSON, } from '../models/Balance';
25
+ import { BillingDetailsFromJSON, } from '../models/BillingDetails';
25
26
  import { CreateCryptoDepositRequestToJSON, } from '../models/CreateCryptoDepositRequest';
26
27
  import { CryptoDepositFromJSON, } from '../models/CryptoDeposit';
28
+ import { InvoiceListFromJSON, } from '../models/InvoiceList';
27
29
  import { ListDeposits200ResponseFromJSON, } from '../models/ListDeposits200Response';
28
30
  import { SpendingLimitFromJSON, } from '../models/SpendingLimit';
31
+ import { UpdateBillingDetailsRequestToJSON, } from '../models/UpdateBillingDetailsRequest';
29
32
  import { UpdateSpendingLimitRequestToJSON, } from '../models/UpdateSpendingLimitRequest';
30
33
  /**
31
34
  *
@@ -80,6 +83,54 @@ export class BillingApi extends runtime.BaseAPI {
80
83
  return yield response.value();
81
84
  });
82
85
  }
86
+ /**
87
+ * Creates request options for downloadInvoicePdf without sending the request
88
+ */
89
+ downloadInvoicePdfRequestOpts(requestParameters) {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ if (requestParameters['id'] == null) {
92
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling downloadInvoicePdf().');
93
+ }
94
+ const queryParameters = {};
95
+ const headerParameters = {};
96
+ if (this.configuration && this.configuration.accessToken) {
97
+ const token = this.configuration.accessToken;
98
+ const tokenString = yield token("bearerAuth", []);
99
+ if (tokenString) {
100
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
101
+ }
102
+ }
103
+ let urlPath = `/billing/invoices/{id}/pdf`;
104
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
105
+ return {
106
+ path: urlPath,
107
+ method: 'GET',
108
+ headers: headerParameters,
109
+ query: queryParameters,
110
+ };
111
+ });
112
+ }
113
+ /**
114
+ * 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.
115
+ * Download an invoice PDF
116
+ */
117
+ downloadInvoicePdfRaw(requestParameters, initOverrides) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ const requestOptions = yield this.downloadInvoicePdfRequestOpts(requestParameters);
120
+ const response = yield this.request(requestOptions, initOverrides);
121
+ return new runtime.BlobApiResponse(response);
122
+ });
123
+ }
124
+ /**
125
+ * 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.
126
+ * Download an invoice PDF
127
+ */
128
+ downloadInvoicePdf(requestParameters, initOverrides) {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ const response = yield this.downloadInvoicePdfRaw(requestParameters, initOverrides);
131
+ return yield response.value();
132
+ });
133
+ }
83
134
  /**
84
135
  * Creates request options for getBalance without sending the request
85
136
  */
@@ -124,6 +175,50 @@ export class BillingApi extends runtime.BaseAPI {
124
175
  return yield response.value();
125
176
  });
126
177
  }
178
+ /**
179
+ * Creates request options for getBillingDetails without sending the request
180
+ */
181
+ getBillingDetailsRequestOpts() {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const queryParameters = {};
184
+ const headerParameters = {};
185
+ if (this.configuration && this.configuration.accessToken) {
186
+ const token = this.configuration.accessToken;
187
+ const tokenString = yield token("bearerAuth", []);
188
+ if (tokenString) {
189
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
190
+ }
191
+ }
192
+ let urlPath = `/billing/details`;
193
+ return {
194
+ path: urlPath,
195
+ method: 'GET',
196
+ headers: headerParameters,
197
+ query: queryParameters,
198
+ };
199
+ });
200
+ }
201
+ /**
202
+ * 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.
203
+ * Get billing details
204
+ */
205
+ getBillingDetailsRaw(initOverrides) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ const requestOptions = yield this.getBillingDetailsRequestOpts();
208
+ const response = yield this.request(requestOptions, initOverrides);
209
+ return new runtime.JSONApiResponse(response, (jsonValue) => BillingDetailsFromJSON(jsonValue));
210
+ });
211
+ }
212
+ /**
213
+ * 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.
214
+ * Get billing details
215
+ */
216
+ getBillingDetails(initOverrides) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ const response = yield this.getBillingDetailsRaw(initOverrides);
219
+ return yield response.value();
220
+ });
221
+ }
127
222
  /**
128
223
  * Creates request options for getDeposit without sending the request
129
224
  */
@@ -260,6 +355,108 @@ export class BillingApi extends runtime.BaseAPI {
260
355
  return yield response.value();
261
356
  });
262
357
  }
358
+ /**
359
+ * Creates request options for listInvoices without sending the request
360
+ */
361
+ listInvoicesRequestOpts(requestParameters) {
362
+ return __awaiter(this, void 0, void 0, function* () {
363
+ const queryParameters = {};
364
+ if (requestParameters['limit'] != null) {
365
+ queryParameters['limit'] = requestParameters['limit'];
366
+ }
367
+ if (requestParameters['cursor'] != null) {
368
+ queryParameters['cursor'] = requestParameters['cursor'];
369
+ }
370
+ const headerParameters = {};
371
+ if (this.configuration && this.configuration.accessToken) {
372
+ const token = this.configuration.accessToken;
373
+ const tokenString = yield token("bearerAuth", []);
374
+ if (tokenString) {
375
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
376
+ }
377
+ }
378
+ let urlPath = `/billing/invoices`;
379
+ return {
380
+ path: urlPath,
381
+ method: 'GET',
382
+ headers: headerParameters,
383
+ query: queryParameters,
384
+ };
385
+ });
386
+ }
387
+ /**
388
+ * 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.
389
+ * List invoices
390
+ */
391
+ listInvoicesRaw(requestParameters, initOverrides) {
392
+ return __awaiter(this, void 0, void 0, function* () {
393
+ const requestOptions = yield this.listInvoicesRequestOpts(requestParameters);
394
+ const response = yield this.request(requestOptions, initOverrides);
395
+ return new runtime.JSONApiResponse(response, (jsonValue) => InvoiceListFromJSON(jsonValue));
396
+ });
397
+ }
398
+ /**
399
+ * 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.
400
+ * List invoices
401
+ */
402
+ listInvoices() {
403
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
404
+ const response = yield this.listInvoicesRaw(requestParameters, initOverrides);
405
+ return yield response.value();
406
+ });
407
+ }
408
+ /**
409
+ * Creates request options for updateBillingDetails without sending the request
410
+ */
411
+ updateBillingDetailsRequestOpts(requestParameters) {
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ if (requestParameters['updateBillingDetailsRequest'] == null) {
414
+ throw new runtime.RequiredError('updateBillingDetailsRequest', 'Required parameter "updateBillingDetailsRequest" was null or undefined when calling updateBillingDetails().');
415
+ }
416
+ const queryParameters = {};
417
+ const headerParameters = {};
418
+ headerParameters['Content-Type'] = 'application/json';
419
+ if (requestParameters['idempotencyKey'] != null) {
420
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
421
+ }
422
+ if (this.configuration && this.configuration.accessToken) {
423
+ const token = this.configuration.accessToken;
424
+ const tokenString = yield token("bearerAuth", []);
425
+ if (tokenString) {
426
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
427
+ }
428
+ }
429
+ let urlPath = `/billing/details`;
430
+ return {
431
+ path: urlPath,
432
+ method: 'PATCH',
433
+ headers: headerParameters,
434
+ query: queryParameters,
435
+ body: UpdateBillingDetailsRequestToJSON(requestParameters['updateBillingDetailsRequest']),
436
+ };
437
+ });
438
+ }
439
+ /**
440
+ * 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.
441
+ * Update billing details
442
+ */
443
+ updateBillingDetailsRaw(requestParameters, initOverrides) {
444
+ return __awaiter(this, void 0, void 0, function* () {
445
+ const requestOptions = yield this.updateBillingDetailsRequestOpts(requestParameters);
446
+ const response = yield this.request(requestOptions, initOverrides);
447
+ return new runtime.JSONApiResponse(response, (jsonValue) => BillingDetailsFromJSON(jsonValue));
448
+ });
449
+ }
450
+ /**
451
+ * 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.
452
+ * Update billing details
453
+ */
454
+ updateBillingDetails(requestParameters, initOverrides) {
455
+ return __awaiter(this, void 0, void 0, function* () {
456
+ const response = yield this.updateBillingDetailsRaw(requestParameters, initOverrides);
457
+ return yield response.value();
458
+ });
459
+ }
263
460
  /**
264
461
  * Creates request options for updateSpendingLimit without sending the request
265
462
  */
@@ -0,0 +1,228 @@
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 CreateFunctionRequest } from '../models/CreateFunctionRequest';
14
+ import { type CreateFunctionRunRequest } from '../models/CreateFunctionRunRequest';
15
+ import { type CreateFunctionVersionRequest } from '../models/CreateFunctionVersionRequest';
16
+ import { type Function } from '../models/Function';
17
+ import { type FunctionList } from '../models/FunctionList';
18
+ import { type FunctionRun } from '../models/FunctionRun';
19
+ import { type FunctionRunList } from '../models/FunctionRunList';
20
+ import { type FunctionRunLogs } from '../models/FunctionRunLogs';
21
+ import { type FunctionVersion } from '../models/FunctionVersion';
22
+ export interface ActivateFunctionVersionRequest {
23
+ id: string;
24
+ versionId: string;
25
+ idempotencyKey?: string;
26
+ }
27
+ export interface CancelFunctionRunRequest {
28
+ id: string;
29
+ runId: string;
30
+ idempotencyKey?: string;
31
+ }
32
+ export interface CreateFunctionOperationRequest {
33
+ createFunctionRequest: CreateFunctionRequest;
34
+ idempotencyKey?: string;
35
+ }
36
+ export interface CreateFunctionRunOperationRequest {
37
+ id: string;
38
+ createFunctionRunRequest: CreateFunctionRunRequest;
39
+ idempotencyKey?: string;
40
+ }
41
+ export interface CreateFunctionVersionOperationRequest {
42
+ id: string;
43
+ createFunctionVersionRequest: CreateFunctionVersionRequest;
44
+ idempotencyKey?: string;
45
+ }
46
+ export interface DeleteFunctionRequest {
47
+ id: string;
48
+ }
49
+ export interface GetFunctionRequest {
50
+ id: string;
51
+ }
52
+ export interface GetFunctionRunRequest {
53
+ id: string;
54
+ runId: string;
55
+ wait?: number;
56
+ includeResult?: boolean;
57
+ }
58
+ export interface GetFunctionRunLogsRequest {
59
+ id: string;
60
+ runId: string;
61
+ after?: number;
62
+ limit?: number;
63
+ wait?: number;
64
+ }
65
+ export interface ListFunctionRunsRequest {
66
+ id: string;
67
+ cursor?: string;
68
+ limit?: number;
69
+ }
70
+ /**
71
+ *
72
+ */
73
+ export declare class FunctionsApi extends runtime.BaseAPI {
74
+ /**
75
+ * Creates request options for activateFunctionVersion without sending the request
76
+ */
77
+ activateFunctionVersionRequestOpts(requestParameters: ActivateFunctionVersionRequest): Promise<runtime.RequestOpts>;
78
+ /**
79
+ * Reads the uploaded bundle back, checks it against the declared size and SHA-256 (422 on a mismatch or a missing upload), and makes the version the one the function\'s next call runs. Safe to repeat. Requires the `functions:write` scope.
80
+ * Confirm a version\'s upload and make it current
81
+ */
82
+ activateFunctionVersionRaw(requestParameters: ActivateFunctionVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FunctionVersion>>;
83
+ /**
84
+ * Reads the uploaded bundle back, checks it against the declared size and SHA-256 (422 on a mismatch or a missing upload), and makes the version the one the function\'s next call runs. Safe to repeat. Requires the `functions:write` scope.
85
+ * Confirm a version\'s upload and make it current
86
+ */
87
+ activateFunctionVersion(requestParameters: ActivateFunctionVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FunctionVersion>;
88
+ /**
89
+ * Creates request options for cancelFunctionRun without sending the request
90
+ */
91
+ cancelFunctionRunRequestOpts(requestParameters: CancelFunctionRunRequest): Promise<runtime.RequestOpts>;
92
+ /**
93
+ * A queued run is cancelled at once; a running one is stopped on its machine within seconds, and the machine stays ready for the next call. Cancelling a finished run changes nothing and returns it, so the request is safe to repeat. Requires the `functions:write` scope.
94
+ * Cancel a run
95
+ */
96
+ cancelFunctionRunRaw(requestParameters: CancelFunctionRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FunctionRun>>;
97
+ /**
98
+ * A queued run is cancelled at once; a running one is stopped on its machine within seconds, and the machine stays ready for the next call. Cancelling a finished run changes nothing and returns it, so the request is safe to repeat. Requires the `functions:write` scope.
99
+ * Cancel a run
100
+ */
101
+ cancelFunctionRun(requestParameters: CancelFunctionRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FunctionRun>;
102
+ /**
103
+ * Creates request options for createFunction without sending the request
104
+ */
105
+ createFunctionRequestOpts(requestParameters: CreateFunctionOperationRequest): Promise<runtime.RequestOpts>;
106
+ /**
107
+ * Returns the organization\'s function with this name, creating it on first use (201) or returning the existing one (200). Creating a function starts no machine and costs nothing. Requires the `functions:write` scope. The key must belong to a user, because the function\'s machines are launched as that user.
108
+ * Get or create a function by name
109
+ */
110
+ createFunctionRaw(requestParameters: CreateFunctionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Function>>;
111
+ /**
112
+ * Returns the organization\'s function with this name, creating it on first use (201) or returning the existing one (200). Creating a function starts no machine and costs nothing. Requires the `functions:write` scope. The key must belong to a user, because the function\'s machines are launched as that user.
113
+ * Get or create a function by name
114
+ */
115
+ createFunction(requestParameters: CreateFunctionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Function>;
116
+ /**
117
+ * Creates request options for createFunctionRun without sending the request
118
+ */
119
+ createFunctionRunRequestOpts(requestParameters: CreateFunctionRunOperationRequest): Promise<runtime.RequestOpts>;
120
+ /**
121
+ * Queues one call and returns at once (202). A warm machine takes it within moments; otherwise a machine is started for it, up to the function\'s `max_concurrency`, beyond which calls wait in the queue. Read the run with `wait` for the outcome. Send an `Idempotency-Key` so a retried request does not run the function twice. Calling a function can start a billed machine: an organization with no balance is refused with 402, and the organization\'s spending limits apply when the machine is requested. Requires the `functions:write` scope.
122
+ * Call a function
123
+ */
124
+ createFunctionRunRaw(requestParameters: CreateFunctionRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FunctionRun>>;
125
+ /**
126
+ * Queues one call and returns at once (202). A warm machine takes it within moments; otherwise a machine is started for it, up to the function\'s `max_concurrency`, beyond which calls wait in the queue. Read the run with `wait` for the outcome. Send an `Idempotency-Key` so a retried request does not run the function twice. Calling a function can start a billed machine: an organization with no balance is refused with 402, and the organization\'s spending limits apply when the machine is requested. Requires the `functions:write` scope.
127
+ * Call a function
128
+ */
129
+ createFunctionRun(requestParameters: CreateFunctionRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FunctionRun>;
130
+ /**
131
+ * Creates request options for createFunctionVersion without sending the request
132
+ */
133
+ createFunctionVersionRequestOpts(requestParameters: CreateFunctionVersionOperationRequest): Promise<runtime.RequestOpts>;
134
+ /**
135
+ * Declares one version of the function: the digest of its pickled code, its Python dependencies and its settings. Idempotent on `content_hash`: the same hash returns the existing version (200) instead of a new one (201). A version whose code is not uploaded yet carries an `upload` URL; PUT the bundle there, then activate the version. Requires the `functions:write` scope.
136
+ * Register a version of a function
137
+ */
138
+ createFunctionVersionRaw(requestParameters: CreateFunctionVersionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FunctionVersion>>;
139
+ /**
140
+ * Declares one version of the function: the digest of its pickled code, its Python dependencies and its settings. Idempotent on `content_hash`: the same hash returns the existing version (200) instead of a new one (201). A version whose code is not uploaded yet carries an `upload` URL; PUT the bundle there, then activate the version. Requires the `functions:write` scope.
141
+ * Register a version of a function
142
+ */
143
+ createFunctionVersion(requestParameters: CreateFunctionVersionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FunctionVersion>;
144
+ /**
145
+ * Creates request options for deleteFunction without sending the request
146
+ */
147
+ deleteFunctionRequestOpts(requestParameters: DeleteFunctionRequest): Promise<runtime.RequestOpts>;
148
+ /**
149
+ * The function stops taking calls, its queued calls are cancelled, a call that is executing is stopped, and its machines are released, which ends their billing. The name can be reused afterwards. Requires the `functions:write` scope.
150
+ * Delete a function
151
+ */
152
+ deleteFunctionRaw(requestParameters: DeleteFunctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
153
+ /**
154
+ * The function stops taking calls, its queued calls are cancelled, a call that is executing is stopped, and its machines are released, which ends their billing. The name can be reused afterwards. Requires the `functions:write` scope.
155
+ * Delete a function
156
+ */
157
+ deleteFunction(requestParameters: DeleteFunctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
158
+ /**
159
+ * Creates request options for getFunction without sending the request
160
+ */
161
+ getFunctionRequestOpts(requestParameters: GetFunctionRequest): Promise<runtime.RequestOpts>;
162
+ /**
163
+ * Requires the `functions:read` scope.
164
+ * Get a function
165
+ */
166
+ getFunctionRaw(requestParameters: GetFunctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Function>>;
167
+ /**
168
+ * Requires the `functions:read` scope.
169
+ * Get a function
170
+ */
171
+ getFunction(requestParameters: GetFunctionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Function>;
172
+ /**
173
+ * Creates request options for getFunctionRun without sending the request
174
+ */
175
+ getFunctionRunRequestOpts(requestParameters: GetFunctionRunRequest): Promise<runtime.RequestOpts>;
176
+ /**
177
+ * Returns one call. With `wait`, the request is held until the run finishes or the wait elapses, so a caller blocks on one request instead of polling. Requires the `functions:read` scope.
178
+ * Get a run
179
+ */
180
+ getFunctionRunRaw(requestParameters: GetFunctionRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FunctionRun>>;
181
+ /**
182
+ * Returns one call. With `wait`, the request is held until the run finishes or the wait elapses, so a caller blocks on one request instead of polling. Requires the `functions:read` scope.
183
+ * Get a run
184
+ */
185
+ getFunctionRun(requestParameters: GetFunctionRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FunctionRun>;
186
+ /**
187
+ * Creates request options for getFunctionRunLogs without sending the request
188
+ */
189
+ getFunctionRunLogsRequestOpts(requestParameters: GetFunctionRunLogsRequest): Promise<runtime.RequestOpts>;
190
+ /**
191
+ * Returns the run\'s stdout and stderr after `after`, oldest first. With `wait`, the request is held until there is new output or the run finishes, which is how a client follows a live run. Up to 4 MB of output is kept per run. Requires the `functions:read` scope.
192
+ * Read a run\'s output
193
+ */
194
+ getFunctionRunLogsRaw(requestParameters: GetFunctionRunLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FunctionRunLogs>>;
195
+ /**
196
+ * Returns the run\'s stdout and stderr after `after`, oldest first. With `wait`, the request is held until there is new output or the run finishes, which is how a client follows a live run. Up to 4 MB of output is kept per run. Requires the `functions:read` scope.
197
+ * Read a run\'s output
198
+ */
199
+ getFunctionRunLogs(requestParameters: GetFunctionRunLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FunctionRunLogs>;
200
+ /**
201
+ * Creates request options for listFunctionRuns without sending the request
202
+ */
203
+ listFunctionRunsRequestOpts(requestParameters: ListFunctionRunsRequest): Promise<runtime.RequestOpts>;
204
+ /**
205
+ * Newest first. Requires the `functions:read` scope.
206
+ * List a function\'s runs
207
+ */
208
+ listFunctionRunsRaw(requestParameters: ListFunctionRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FunctionRunList>>;
209
+ /**
210
+ * Newest first. Requires the `functions:read` scope.
211
+ * List a function\'s runs
212
+ */
213
+ listFunctionRuns(requestParameters: ListFunctionRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FunctionRunList>;
214
+ /**
215
+ * Creates request options for listFunctions without sending the request
216
+ */
217
+ listFunctionsRequestOpts(): Promise<runtime.RequestOpts>;
218
+ /**
219
+ * Returns the organization\'s functions, newest first, each with the settings of its current version, what its machines are doing and what it cost in the last 24 hours. Requires the `functions:read` scope.
220
+ * List functions
221
+ */
222
+ listFunctionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FunctionList>>;
223
+ /**
224
+ * Returns the organization\'s functions, newest first, each with the settings of its current version, what its machines are doing and what it cost in the last 24 hours. Requires the `functions:read` scope.
225
+ * List functions
226
+ */
227
+ listFunctions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FunctionList>;
228
+ }