@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.
- package/.openapi-generator/FILES +40 -0
- package/README.md +36 -2
- package/dist/apis/BillingApi.d.ts +70 -0
- package/dist/apis/BillingApi.js +197 -0
- package/dist/apis/FunctionsApi.d.ts +228 -0
- package/dist/apis/FunctionsApi.js +627 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/BillingApi.d.ts +70 -0
- package/dist/esm/apis/BillingApi.js +197 -0
- package/dist/esm/apis/FunctionsApi.d.ts +228 -0
- package/dist/esm/apis/FunctionsApi.js +623 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AutolaunchRule.d.ts +4 -2
- package/dist/esm/models/BillingDetails.d.ts +98 -0
- package/dist/esm/models/BillingDetails.js +85 -0
- package/dist/esm/models/CreateFunctionRequest.d.ts +32 -0
- package/dist/esm/models/CreateFunctionRequest.js +43 -0
- package/dist/esm/models/CreateFunctionRunRequest.d.ts +38 -0
- package/dist/esm/models/CreateFunctionRunRequest.js +45 -0
- package/dist/esm/models/CreateFunctionVersionRequest.d.ts +110 -0
- package/dist/esm/models/CreateFunctionVersionRequest.js +79 -0
- package/dist/esm/models/Function.d.ts +163 -0
- package/dist/esm/models/Function.js +109 -0
- package/dist/esm/models/FunctionList.d.ts +33 -0
- package/dist/esm/models/FunctionList.js +44 -0
- package/dist/esm/models/FunctionReplicaCounts.d.ts +44 -0
- package/dist/esm/models/FunctionReplicaCounts.js +51 -0
- package/dist/esm/models/FunctionRun.d.ts +130 -0
- package/dist/esm/models/FunctionRun.js +94 -0
- package/dist/esm/models/FunctionRunError.d.ts +44 -0
- package/dist/esm/models/FunctionRunError.js +49 -0
- package/dist/esm/models/FunctionRunList.d.ts +39 -0
- package/dist/esm/models/FunctionRunList.js +48 -0
- package/dist/esm/models/FunctionRunLogChunk.d.ts +59 -0
- package/dist/esm/models/FunctionRunLogChunk.js +63 -0
- package/dist/esm/models/FunctionRunLogs.d.ts +45 -0
- package/dist/esm/models/FunctionRunLogs.js +52 -0
- package/dist/esm/models/FunctionUpload.d.ts +51 -0
- package/dist/esm/models/FunctionUpload.js +59 -0
- package/dist/esm/models/FunctionVersion.d.ts +137 -0
- package/dist/esm/models/FunctionVersion.js +109 -0
- package/dist/esm/models/Invoice.d.ts +68 -0
- package/dist/esm/models/Invoice.js +67 -0
- package/dist/esm/models/InvoiceList.d.ts +45 -0
- package/dist/esm/models/InvoiceList.js +50 -0
- package/dist/esm/models/ModelPricing.d.ts +46 -0
- package/dist/esm/models/ModelPricing.js +21 -0
- package/dist/esm/models/ModelRate.d.ts +62 -0
- package/dist/esm/models/ModelRate.js +51 -0
- package/dist/esm/models/PeakWindow.d.ts +38 -0
- package/dist/esm/models/PeakWindow.js +47 -0
- package/dist/esm/models/UpdateBillingDetailsRequest.d.ts +80 -0
- package/dist/esm/models/UpdateBillingDetailsRequest.js +57 -0
- package/dist/esm/models/index.d.ts +19 -0
- package/dist/esm/models/index.js +19 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AutolaunchRule.d.ts +4 -2
- package/dist/models/BillingDetails.d.ts +98 -0
- package/dist/models/BillingDetails.js +92 -0
- package/dist/models/CreateFunctionRequest.d.ts +32 -0
- package/dist/models/CreateFunctionRequest.js +50 -0
- package/dist/models/CreateFunctionRunRequest.d.ts +38 -0
- package/dist/models/CreateFunctionRunRequest.js +52 -0
- package/dist/models/CreateFunctionVersionRequest.d.ts +110 -0
- package/dist/models/CreateFunctionVersionRequest.js +86 -0
- package/dist/models/Function.d.ts +163 -0
- package/dist/models/Function.js +117 -0
- package/dist/models/FunctionList.d.ts +33 -0
- package/dist/models/FunctionList.js +51 -0
- package/dist/models/FunctionReplicaCounts.d.ts +44 -0
- package/dist/models/FunctionReplicaCounts.js +58 -0
- package/dist/models/FunctionRun.d.ts +130 -0
- package/dist/models/FunctionRun.js +102 -0
- package/dist/models/FunctionRunError.d.ts +44 -0
- package/dist/models/FunctionRunError.js +56 -0
- package/dist/models/FunctionRunList.d.ts +39 -0
- package/dist/models/FunctionRunList.js +55 -0
- package/dist/models/FunctionRunLogChunk.d.ts +59 -0
- package/dist/models/FunctionRunLogChunk.js +71 -0
- package/dist/models/FunctionRunLogs.d.ts +45 -0
- package/dist/models/FunctionRunLogs.js +59 -0
- package/dist/models/FunctionUpload.d.ts +51 -0
- package/dist/models/FunctionUpload.js +67 -0
- package/dist/models/FunctionVersion.d.ts +137 -0
- package/dist/models/FunctionVersion.js +117 -0
- package/dist/models/Invoice.d.ts +68 -0
- package/dist/models/Invoice.js +74 -0
- package/dist/models/InvoiceList.d.ts +45 -0
- package/dist/models/InvoiceList.js +57 -0
- package/dist/models/ModelPricing.d.ts +46 -0
- package/dist/models/ModelPricing.js +22 -0
- package/dist/models/ModelRate.d.ts +62 -0
- package/dist/models/ModelRate.js +58 -0
- package/dist/models/PeakWindow.d.ts +38 -0
- package/dist/models/PeakWindow.js +54 -0
- package/dist/models/UpdateBillingDetailsRequest.d.ts +80 -0
- package/dist/models/UpdateBillingDetailsRequest.js +64 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +19 -0
- package/dist/runtime.js +1 -1
- package/docs/AutolaunchApi.md +1 -1
- package/docs/BillingApi.md +299 -0
- package/docs/BillingDetails.md +56 -0
- package/docs/CreateFunctionRequest.md +34 -0
- package/docs/CreateFunctionRunRequest.md +36 -0
- package/docs/CreateFunctionVersionRequest.md +60 -0
- package/docs/Function.md +75 -0
- package/docs/FunctionList.md +34 -0
- package/docs/FunctionReplicaCounts.md +39 -0
- package/docs/FunctionRun.md +63 -0
- package/docs/FunctionRunError.md +38 -0
- package/docs/FunctionRunList.md +36 -0
- package/docs/FunctionRunLogChunk.md +40 -0
- package/docs/FunctionRunLogs.md +38 -0
- package/docs/FunctionUpload.md +38 -0
- package/docs/FunctionVersion.md +66 -0
- package/docs/FunctionsApi.md +880 -0
- package/docs/Invoice.md +46 -0
- package/docs/InvoiceList.md +38 -0
- package/docs/ModelPricing.md +12 -0
- package/docs/ModelRate.md +45 -0
- package/docs/PeakWindow.md +37 -0
- package/docs/UpdateBillingDetailsRequest.md +50 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +247 -0
- package/src/apis/FunctionsApi.ts +828 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AutolaunchRule.ts +4 -2
- package/src/models/BillingDetails.ts +164 -0
- package/src/models/CreateFunctionRequest.ts +66 -0
- package/src/models/CreateFunctionRunRequest.ts +74 -0
- package/src/models/CreateFunctionVersionRequest.ts +175 -0
- package/src/models/Function.ts +255 -0
- package/src/models/FunctionList.ts +74 -0
- package/src/models/FunctionReplicaCounts.ts +84 -0
- package/src/models/FunctionRun.ts +207 -0
- package/src/models/FunctionRunError.ts +83 -0
- package/src/models/FunctionRunList.ts +83 -0
- package/src/models/FunctionRunLogChunk.ts +105 -0
- package/src/models/FunctionRunLogs.ts +92 -0
- package/src/models/FunctionUpload.ts +96 -0
- package/src/models/FunctionVersion.ts +226 -0
- package/src/models/Invoice.ts +120 -0
- package/src/models/InvoiceList.ts +91 -0
- package/src/models/ModelPricing.ts +74 -0
- package/src/models/ModelRate.ts +105 -0
- package/src/models/PeakWindow.ts +75 -0
- package/src/models/UpdateBillingDetailsRequest.ts +129 -0
- package/src/models/index.ts +19 -0
- package/src/runtime.ts +1 -1
|
@@ -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
|
+
}
|