@cloudfleet/sdk 0.0.1-c4175a2 → 0.0.1-c4563f6
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/README.md +26 -2
- package/dist/@tanstack/react-query.gen.d.ts +521 -576
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +520 -382
- package/dist/@tanstack/react-query.gen.js.map +1 -1
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +1 -4
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +1 -1
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +2 -2
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +3 -3
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/core/params.gen.js +4 -4
- package/dist/core/params.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +774 -252
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1045 -362
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +265 -209
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +396 -312
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1359 -838
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1919 -1542
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +618 -366
- package/dist/zod.gen.js.map +1 -1
- package/package.json +10 -13
package/dist/sdk.gen.js
CHANGED
|
@@ -1,61 +1,33 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { formDataBodySerializer } from './client';
|
|
3
3
|
import { client } from './client.gen';
|
|
4
|
-
export class
|
|
5
|
-
/**
|
|
6
|
-
* Get billing usage information.
|
|
7
|
-
*
|
|
8
|
-
* Returns aggregated usage information for the organization with facets for filtering. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
static getUsage(options) {
|
|
12
|
-
return (options?.client ?? client).get({ url: '/billing/usage', ...options });
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Get organization payment method information.
|
|
16
|
-
*
|
|
17
|
-
* Returns the information about the payment card associated with the organization with sensitive information redacted. Payment details can be updated in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to all users in the organization.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
static getPaymentMethod(options) {
|
|
21
|
-
return (options?.client ?? client).get({ url: '/billing/payment-method', ...options });
|
|
22
|
-
}
|
|
4
|
+
export class UsersService {
|
|
23
5
|
/**
|
|
24
|
-
* Get
|
|
25
|
-
*
|
|
26
|
-
* Endpoint returns the Stripe secret key for the organization. This key is used to securely update the payment method in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to administrators of the organization only.
|
|
27
|
-
*
|
|
6
|
+
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
28
7
|
*/
|
|
29
|
-
static
|
|
30
|
-
return (options
|
|
8
|
+
static listUserOrganizations(options) {
|
|
9
|
+
return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
|
|
31
10
|
}
|
|
32
11
|
/**
|
|
33
|
-
* List
|
|
34
|
-
*
|
|
35
|
-
* Returns a list of invoices for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
12
|
+
* List users in organization.
|
|
36
13
|
*
|
|
37
|
-
|
|
38
|
-
static listInvoices(options) {
|
|
39
|
-
return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Get organization contact and billing address information.
|
|
14
|
+
* Returns a list of user details and their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
|
|
43
15
|
*
|
|
44
|
-
*
|
|
16
|
+
* This endpoint is available to all users in the organization.
|
|
45
17
|
*
|
|
46
18
|
*/
|
|
47
|
-
static
|
|
48
|
-
return (options?.client ?? client).get({ url: '/
|
|
19
|
+
static listUsers(options) {
|
|
20
|
+
return (options?.client ?? client).get({ url: '/users', ...options });
|
|
49
21
|
}
|
|
50
22
|
/**
|
|
51
|
-
*
|
|
23
|
+
* Create a new user.
|
|
52
24
|
*
|
|
53
|
-
*
|
|
25
|
+
* Create a new user in your Cloudfleet organization. Requires a valid invite code generated by the `invites create` command. The invite code is a unique string that can be used only once to create a new user. The invite code is generated by the `POST /invites` endpoint.
|
|
54
26
|
*
|
|
55
27
|
*/
|
|
56
|
-
static
|
|
57
|
-
return (options.client ?? client).
|
|
58
|
-
url: '/
|
|
28
|
+
static createUser(options) {
|
|
29
|
+
return (options.client ?? client).post({
|
|
30
|
+
url: '/users',
|
|
59
31
|
...options,
|
|
60
32
|
headers: {
|
|
61
33
|
'Content-Type': 'application/json',
|
|
@@ -64,23 +36,34 @@ export class BillingService {
|
|
|
64
36
|
});
|
|
65
37
|
}
|
|
66
38
|
/**
|
|
67
|
-
*
|
|
39
|
+
* Delete user by id.
|
|
68
40
|
*
|
|
69
|
-
*
|
|
41
|
+
* Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
|
|
70
42
|
*
|
|
71
43
|
*/
|
|
72
|
-
static
|
|
73
|
-
return (options
|
|
44
|
+
static deleteUser(options) {
|
|
45
|
+
return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
|
|
74
46
|
}
|
|
75
47
|
/**
|
|
76
|
-
*
|
|
48
|
+
* Get user profile information by id.
|
|
77
49
|
*
|
|
78
|
-
*
|
|
50
|
+
* Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
|
|
51
|
+
*
|
|
52
|
+
* This endpoint is available to all users in the organization.
|
|
79
53
|
*
|
|
80
54
|
*/
|
|
81
|
-
static
|
|
82
|
-
return (options.client ?? client).
|
|
83
|
-
|
|
55
|
+
static getUser(options) {
|
|
56
|
+
return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Update user profile information.
|
|
60
|
+
*
|
|
61
|
+
* Update user profile information: email, first name, last name, role. This endpoint can be accessed by administrators and the user itself. Role and status can be changed by administrators only.
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
static updateUser(options) {
|
|
65
|
+
return (options.client ?? client).put({
|
|
66
|
+
url: '/users/{user_id}',
|
|
84
67
|
...options,
|
|
85
68
|
headers: {
|
|
86
69
|
'Content-Type': 'application/json',
|
|
@@ -89,29 +72,27 @@ export class BillingService {
|
|
|
89
72
|
});
|
|
90
73
|
}
|
|
91
74
|
}
|
|
92
|
-
export class
|
|
75
|
+
export class TokensService {
|
|
93
76
|
/**
|
|
94
|
-
* List
|
|
95
|
-
*
|
|
96
|
-
* Returns a list of charts in the cluster.
|
|
77
|
+
* List access tokens in organization.
|
|
97
78
|
*
|
|
98
|
-
* This endpoint is available to all users in the organization.
|
|
79
|
+
* This endpoint allows you to get a list of all access tokens details in organization. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
99
80
|
*
|
|
100
81
|
*/
|
|
101
|
-
static
|
|
102
|
-
return (options
|
|
82
|
+
static listTokens(options) {
|
|
83
|
+
return (options?.client ?? client).get({ url: '/tokens', ...options });
|
|
103
84
|
}
|
|
104
85
|
/**
|
|
105
|
-
* Create a new
|
|
86
|
+
* Create a new access token.
|
|
106
87
|
*
|
|
107
|
-
*
|
|
88
|
+
* This endpoint allows you to create a new access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
|
|
108
89
|
*
|
|
109
90
|
* This endpoint is available to administrators of the organization only.
|
|
110
91
|
*
|
|
111
92
|
*/
|
|
112
|
-
static
|
|
93
|
+
static createToken(options) {
|
|
113
94
|
return (options.client ?? client).post({
|
|
114
|
-
url: '/
|
|
95
|
+
url: '/tokens',
|
|
115
96
|
...options,
|
|
116
97
|
headers: {
|
|
117
98
|
'Content-Type': 'application/json',
|
|
@@ -120,38 +101,34 @@ export class ClustersService {
|
|
|
120
101
|
});
|
|
121
102
|
}
|
|
122
103
|
/**
|
|
123
|
-
* Permanently delete
|
|
124
|
-
*
|
|
125
|
-
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
104
|
+
* Permanently delete access token.
|
|
126
105
|
*
|
|
127
|
-
* This endpoint is available to administrators of the organization only.
|
|
106
|
+
* This endpoint allows you to delete an access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to administrators of the organization only.
|
|
128
107
|
*
|
|
129
108
|
*/
|
|
130
|
-
static
|
|
131
|
-
return (options.client ?? client).delete({ url: '/
|
|
109
|
+
static deleteToken(options) {
|
|
110
|
+
return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
|
|
132
111
|
}
|
|
133
112
|
/**
|
|
134
|
-
* Get
|
|
135
|
-
*
|
|
136
|
-
* Returns the details of the chart deployment.
|
|
113
|
+
* Get access token information.
|
|
137
114
|
*
|
|
138
|
-
* This endpoint is available to all users in the organization.
|
|
115
|
+
* This endpoint allows you to get access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
139
116
|
*
|
|
140
117
|
*/
|
|
141
|
-
static
|
|
142
|
-
return (options.client ?? client).get({ url: '/
|
|
118
|
+
static getToken(options) {
|
|
119
|
+
return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
|
|
143
120
|
}
|
|
144
121
|
/**
|
|
145
|
-
* Update
|
|
122
|
+
* Update access token information.
|
|
146
123
|
*
|
|
147
|
-
* This endpoint allows you to update
|
|
124
|
+
* This endpoint allows you to update access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
|
|
148
125
|
*
|
|
149
126
|
* This endpoint is available to administrators of the organization only.
|
|
150
127
|
*
|
|
151
128
|
*/
|
|
152
|
-
static
|
|
129
|
+
static updateToken(options) {
|
|
153
130
|
return (options.client ?? client).put({
|
|
154
|
-
url: '/
|
|
131
|
+
url: '/tokens/{token_id}',
|
|
155
132
|
...options,
|
|
156
133
|
headers: {
|
|
157
134
|
'Content-Type': 'application/json',
|
|
@@ -160,108 +137,99 @@ export class ClustersService {
|
|
|
160
137
|
});
|
|
161
138
|
}
|
|
162
139
|
/**
|
|
163
|
-
*
|
|
140
|
+
* Regenerate access token secret key.
|
|
164
141
|
*
|
|
165
|
-
*
|
|
142
|
+
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
143
|
+
*/
|
|
144
|
+
static regenerateToken(options) {
|
|
145
|
+
return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export class TicketsService {
|
|
149
|
+
/**
|
|
150
|
+
* List tickets for the current organization.
|
|
166
151
|
*
|
|
167
|
-
*
|
|
152
|
+
* Returns all tickets belonging to the caller's organization, newest first.
|
|
168
153
|
*
|
|
169
154
|
*/
|
|
170
|
-
static
|
|
171
|
-
return (options
|
|
155
|
+
static listTickets(options) {
|
|
156
|
+
return (options?.client ?? client).get({ url: '/tickets', ...options });
|
|
172
157
|
}
|
|
173
158
|
/**
|
|
174
|
-
* Create a new
|
|
175
|
-
*
|
|
176
|
-
* Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
159
|
+
* Create a new support ticket.
|
|
177
160
|
*
|
|
178
|
-
*
|
|
161
|
+
* Creates a new support ticket with an initial customer message. The request is `multipart/form-data` with a JSON-encoded `payload` field carrying `category`, `body`, and optional `properties`, plus up to 3 `attachments` files (10 MB max each).
|
|
179
162
|
*
|
|
180
163
|
*/
|
|
181
|
-
static
|
|
164
|
+
static createTicket(options) {
|
|
182
165
|
return (options.client ?? client).post({
|
|
183
|
-
|
|
166
|
+
...formDataBodySerializer,
|
|
167
|
+
url: '/tickets',
|
|
184
168
|
...options,
|
|
185
169
|
headers: {
|
|
186
|
-
'Content-Type':
|
|
170
|
+
'Content-Type': null,
|
|
187
171
|
...options.headers
|
|
188
172
|
}
|
|
189
173
|
});
|
|
190
174
|
}
|
|
191
175
|
/**
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
176
|
+
* Close a ticket (soft close).
|
|
195
177
|
*
|
|
196
|
-
*
|
|
178
|
+
* Marks the ticket as closed. Closed is a terminal state — users cannot reply to a closed ticket; a new ticket must be opened instead.
|
|
197
179
|
*
|
|
198
180
|
*/
|
|
199
|
-
static
|
|
200
|
-
return (options.client ?? client).delete({ url: '/
|
|
181
|
+
static closeTicket(options) {
|
|
182
|
+
return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
|
|
201
183
|
}
|
|
202
184
|
/**
|
|
203
|
-
* Get
|
|
204
|
-
*
|
|
205
|
-
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
206
|
-
*
|
|
207
|
-
* This endpoint is available to all users in the organization.
|
|
208
|
-
*
|
|
185
|
+
* Get a ticket and its messages.
|
|
209
186
|
*/
|
|
210
|
-
static
|
|
211
|
-
return (options.client ?? client).get({ url: '/
|
|
187
|
+
static getTicket(options) {
|
|
188
|
+
return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
|
|
212
189
|
}
|
|
213
190
|
/**
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
* This endpoint allows you to update fleet details.
|
|
217
|
-
*
|
|
218
|
-
* Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`.
|
|
219
|
-
*
|
|
220
|
-
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
191
|
+
* Append a customer reply to a ticket.
|
|
221
192
|
*
|
|
222
|
-
*
|
|
193
|
+
* Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
|
|
223
194
|
*
|
|
224
195
|
*/
|
|
225
|
-
static
|
|
226
|
-
return (options.client ?? client).
|
|
227
|
-
|
|
196
|
+
static replyTicket(options) {
|
|
197
|
+
return (options.client ?? client).post({
|
|
198
|
+
...formDataBodySerializer,
|
|
199
|
+
url: '/tickets/{ticket_id}/messages',
|
|
228
200
|
...options,
|
|
229
201
|
headers: {
|
|
230
|
-
'Content-Type':
|
|
202
|
+
'Content-Type': null,
|
|
231
203
|
...options.headers
|
|
232
204
|
}
|
|
233
205
|
});
|
|
234
206
|
}
|
|
235
207
|
/**
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
* An API endpoint for directly querying a Kubernetes cluster API without requiring kubectl or other tools. This endpoint is ideal for automation and scripting, as well as for internal use in fetching data for the Cloudfleet Console. It acts as a passthrough to the Kubernetes API, allowing access to any valid Kubernetes API endpoint, including those not exposed in the Cloudfleet Console. The endpoint is strictly read-only, ensuring no modifications to the cluster state. It is accessible to all users within the organization and uses the same authentication mechanisms as other Cloudfleet API endpoints.
|
|
208
|
+
* Download a ticket attachment.
|
|
239
209
|
*/
|
|
240
|
-
static
|
|
241
|
-
return (options.client ?? client).get({ url: '/
|
|
210
|
+
static getTicketAttachment(options) {
|
|
211
|
+
return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
|
|
242
212
|
}
|
|
213
|
+
}
|
|
214
|
+
export class RoadmapService {
|
|
243
215
|
/**
|
|
244
|
-
* List
|
|
216
|
+
* List roadmap items.
|
|
245
217
|
*
|
|
246
|
-
* Returns
|
|
247
|
-
*
|
|
248
|
-
* This endpoint is available to all users in the organization.
|
|
218
|
+
* Returns the published roadmap items, newest first, each with your own vote. Votes of other users are not returned.
|
|
249
219
|
*
|
|
250
220
|
*/
|
|
251
|
-
static
|
|
252
|
-
return (options?.client ?? client).get({ url: '/
|
|
221
|
+
static listRoadmap(options) {
|
|
222
|
+
return (options?.client ?? client).get({ url: '/roadmap', ...options });
|
|
253
223
|
}
|
|
254
224
|
/**
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
* Create a new cluster under the current organization. Clusters allow you to group resources and you can create multiple clusters under the same organization, with billing delegated to the parent organization.
|
|
225
|
+
* Suggest a new roadmap item.
|
|
258
226
|
*
|
|
259
|
-
*
|
|
227
|
+
* Submits a suggestion in one or two sentences, with your up vote on it. Suggestions are reviewed by the Cloudfleet team before they appear on the roadmap.
|
|
260
228
|
*
|
|
261
229
|
*/
|
|
262
|
-
static
|
|
230
|
+
static suggestRoadmap(options) {
|
|
263
231
|
return (options.client ?? client).post({
|
|
264
|
-
url: '/
|
|
232
|
+
url: '/roadmap',
|
|
265
233
|
...options,
|
|
266
234
|
headers: {
|
|
267
235
|
'Content-Type': 'application/json',
|
|
@@ -270,38 +238,20 @@ export class ClustersService {
|
|
|
270
238
|
});
|
|
271
239
|
}
|
|
272
240
|
/**
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
276
|
-
*
|
|
277
|
-
* This endpoint is available to administrators of the organization only.
|
|
278
|
-
*
|
|
279
|
-
*/
|
|
280
|
-
static deleteCluster(options) {
|
|
281
|
-
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Get cluster information.
|
|
285
|
-
*
|
|
286
|
-
* Returns cluster details including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
287
|
-
*
|
|
288
|
-
* This endpoint is available to all users in the organization.
|
|
289
|
-
*
|
|
241
|
+
* Remove your vote from a roadmap item.
|
|
290
242
|
*/
|
|
291
|
-
static
|
|
292
|
-
return (options.client ?? client).
|
|
243
|
+
static unvoteRoadmap(options) {
|
|
244
|
+
return (options.client ?? client).delete({ url: '/roadmap/{item_id}/vote', ...options });
|
|
293
245
|
}
|
|
294
246
|
/**
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
* This endpoint allows you to update cluster details, including quota and cluster status. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentaiton.
|
|
247
|
+
* Vote on a roadmap item.
|
|
298
248
|
*
|
|
299
|
-
*
|
|
249
|
+
* Sets your vote on a roadmap item: -1 (down), 1 (up), or 2 (double up). Replaces any previous vote you cast on the item.
|
|
300
250
|
*
|
|
301
251
|
*/
|
|
302
|
-
static
|
|
252
|
+
static voteRoadmap(options) {
|
|
303
253
|
return (options.client ?? client).put({
|
|
304
|
-
url: '/
|
|
254
|
+
url: '/roadmap/{item_id}/vote',
|
|
305
255
|
...options,
|
|
306
256
|
headers: {
|
|
307
257
|
'Content-Type': 'application/json',
|
|
@@ -309,35 +259,66 @@ export class ClustersService {
|
|
|
309
259
|
}
|
|
310
260
|
});
|
|
311
261
|
}
|
|
262
|
+
}
|
|
263
|
+
export class RegistryService {
|
|
312
264
|
/**
|
|
313
|
-
*
|
|
265
|
+
* List repositories
|
|
314
266
|
*
|
|
315
|
-
* Returns
|
|
267
|
+
* Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
|
|
316
268
|
*
|
|
317
269
|
*/
|
|
318
|
-
static
|
|
319
|
-
return (options
|
|
270
|
+
static listRepositories(options) {
|
|
271
|
+
return (options?.client ?? client).get({ url: '/registry', ...options });
|
|
320
272
|
}
|
|
321
|
-
}
|
|
322
|
-
export class InvitesService {
|
|
323
273
|
/**
|
|
324
|
-
* List
|
|
274
|
+
* List tags for a repository
|
|
325
275
|
*
|
|
326
|
-
* Returns a list of
|
|
276
|
+
* Returns a list of tags for a specific repository, including size and metadata for each tag. This endpoint is available to all users in the organization.
|
|
327
277
|
*
|
|
328
278
|
*/
|
|
329
|
-
static
|
|
330
|
-
return (options
|
|
279
|
+
static listTags(options) {
|
|
280
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
|
|
331
281
|
}
|
|
332
282
|
/**
|
|
333
|
-
*
|
|
283
|
+
* Delete tag
|
|
334
284
|
*
|
|
335
|
-
*
|
|
285
|
+
* Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
|
|
336
286
|
*
|
|
337
287
|
*/
|
|
338
|
-
static
|
|
288
|
+
static deleteTag(options) {
|
|
289
|
+
return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Get tag details
|
|
293
|
+
*
|
|
294
|
+
* Returns detailed information for a specific tag in a repository, including manifest details, size, and URI. This endpoint is available to all users in the organization.
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
297
|
+
static getTag(options) {
|
|
298
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
export class OrganizationService {
|
|
302
|
+
/**
|
|
303
|
+
* Get organization information.
|
|
304
|
+
*
|
|
305
|
+
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
306
|
+
*
|
|
307
|
+
* This endpoint is available to all users in the organization.
|
|
308
|
+
*
|
|
309
|
+
*/
|
|
310
|
+
static getOrganization(options) {
|
|
311
|
+
return (options?.client ?? client).get({ url: '/organization', ...options });
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Create a new organization / Cloudfleet account signup.
|
|
315
|
+
*
|
|
316
|
+
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
317
|
+
*
|
|
318
|
+
*/
|
|
319
|
+
static createOrganization(options) {
|
|
339
320
|
return (options.client ?? client).post({
|
|
340
|
-
url: '/
|
|
321
|
+
url: '/organization',
|
|
341
322
|
...options,
|
|
342
323
|
headers: {
|
|
343
324
|
'Content-Type': 'application/json',
|
|
@@ -345,23 +326,22 @@ export class InvitesService {
|
|
|
345
326
|
}
|
|
346
327
|
});
|
|
347
328
|
}
|
|
329
|
+
}
|
|
330
|
+
export class McpService {
|
|
348
331
|
/**
|
|
349
|
-
*
|
|
350
|
-
*
|
|
351
|
-
* Returns invite details.
|
|
352
|
-
*
|
|
353
|
-
*/
|
|
354
|
-
static getInvite(options) {
|
|
355
|
-
return (options.client ?? client).get({ url: '/invites/{code}', ...options });
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* Permanently delete invite.
|
|
359
|
-
*
|
|
360
|
-
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
332
|
+
* MCP endpoint
|
|
361
333
|
*
|
|
334
|
+
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
362
335
|
*/
|
|
363
|
-
static
|
|
364
|
-
return (options.client ?? client).
|
|
336
|
+
static postMcp(options) {
|
|
337
|
+
return (options.client ?? client).post({
|
|
338
|
+
url: '/mcp',
|
|
339
|
+
...options,
|
|
340
|
+
headers: {
|
|
341
|
+
'Content-Type': 'application/json',
|
|
342
|
+
...options.headers
|
|
343
|
+
}
|
|
344
|
+
});
|
|
365
345
|
}
|
|
366
346
|
}
|
|
367
347
|
export class ChartsMarketplaceService {
|
|
@@ -390,15 +370,25 @@ export class ChartsMarketplaceService {
|
|
|
390
370
|
return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
|
|
391
371
|
}
|
|
392
372
|
}
|
|
393
|
-
export class
|
|
373
|
+
export class InvitesService {
|
|
394
374
|
/**
|
|
395
|
-
*
|
|
375
|
+
* List invites.
|
|
376
|
+
*
|
|
377
|
+
* Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
|
|
396
378
|
*
|
|
397
|
-
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
398
379
|
*/
|
|
399
|
-
static
|
|
380
|
+
static listInvites(options) {
|
|
381
|
+
return (options?.client ?? client).get({ url: '/invites', ...options });
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Create a new invite.
|
|
385
|
+
*
|
|
386
|
+
* Invite a new user to your Cloudfleet organization. The user will receive an email with a link to create a new account. This endpoint is available to administrators of the organization only.
|
|
387
|
+
*
|
|
388
|
+
*/
|
|
389
|
+
static createInvite(options) {
|
|
400
390
|
return (options.client ?? client).post({
|
|
401
|
-
url: '/
|
|
391
|
+
url: '/invites',
|
|
402
392
|
...options,
|
|
403
393
|
headers: {
|
|
404
394
|
'Content-Type': 'application/json',
|
|
@@ -406,28 +396,58 @@ export class McpService {
|
|
|
406
396
|
}
|
|
407
397
|
});
|
|
408
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
* Get invite information.
|
|
401
|
+
*
|
|
402
|
+
* Validates an invitation code and returns the email address it was issued to (to pre-fill the signup form) and the organization it grants access to. This endpoint is unauthenticated, so no other invite details (such as the invited role) are disclosed.
|
|
403
|
+
*
|
|
404
|
+
*/
|
|
405
|
+
static getInvite(options) {
|
|
406
|
+
return (options.client ?? client).get({ url: '/invites/{code}', ...options });
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Permanently delete invite.
|
|
410
|
+
*
|
|
411
|
+
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
412
|
+
*
|
|
413
|
+
*/
|
|
414
|
+
static deleteInvite(options) {
|
|
415
|
+
return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
|
|
416
|
+
}
|
|
409
417
|
}
|
|
410
|
-
export class
|
|
418
|
+
export class ClustersService {
|
|
411
419
|
/**
|
|
412
|
-
*
|
|
420
|
+
* Query Kubernetes cluster API
|
|
413
421
|
*
|
|
414
|
-
*
|
|
422
|
+
* An API endpoint for directly querying a Kubernetes cluster API without requiring kubectl or other tools. This endpoint is ideal for automation and scripting, as well as for internal use in fetching data for the Cloudfleet Console. It acts as a passthrough to the Kubernetes API, allowing access to any valid Kubernetes API endpoint, including those not exposed in the Cloudfleet Console. The endpoint is strictly read-only, ensuring no modifications to the cluster state. It is accessible to all users within the organization and uses the same authentication mechanisms as other Cloudfleet API endpoints.
|
|
423
|
+
*/
|
|
424
|
+
static queryCluster(options) {
|
|
425
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* List fleets.
|
|
429
|
+
*
|
|
430
|
+
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
415
431
|
*
|
|
416
432
|
* This endpoint is available to all users in the organization.
|
|
417
433
|
*
|
|
418
434
|
*/
|
|
419
|
-
static
|
|
420
|
-
return (options
|
|
435
|
+
static listFleets(options) {
|
|
436
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
|
|
421
437
|
}
|
|
422
438
|
/**
|
|
423
|
-
* Create a new
|
|
439
|
+
* Create a new fleet.
|
|
424
440
|
*
|
|
425
|
-
*
|
|
441
|
+
* Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
442
|
+
*
|
|
443
|
+
* The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
|
|
444
|
+
*
|
|
445
|
+
* This endpoint is available to administrators of the organization only.
|
|
426
446
|
*
|
|
427
447
|
*/
|
|
428
|
-
static
|
|
448
|
+
static createFleet(options) {
|
|
429
449
|
return (options.client ?? client).post({
|
|
430
|
-
url: '/
|
|
450
|
+
url: '/clusters/{cluster_id}/fleets',
|
|
431
451
|
...options,
|
|
432
452
|
headers: {
|
|
433
453
|
'Content-Type': 'application/json',
|
|
@@ -435,132 +455,143 @@ export class OrganizationService {
|
|
|
435
455
|
}
|
|
436
456
|
});
|
|
437
457
|
}
|
|
438
|
-
}
|
|
439
|
-
export class RegistryService {
|
|
440
458
|
/**
|
|
441
|
-
*
|
|
459
|
+
* Permanently delete fleet.
|
|
442
460
|
*
|
|
443
|
-
*
|
|
461
|
+
* This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
444
462
|
*
|
|
445
|
-
|
|
446
|
-
static listRepositories(options) {
|
|
447
|
-
return (options?.client ?? client).get({ url: '/registry', ...options });
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* List tags for a repository
|
|
463
|
+
* Deleting a fleet does not deprovision the cloud infrastructure it provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
|
|
451
464
|
*
|
|
452
|
-
*
|
|
465
|
+
* This endpoint is available to administrators of the organization only.
|
|
453
466
|
*
|
|
454
467
|
*/
|
|
455
|
-
static
|
|
456
|
-
return (options.client ?? client).
|
|
468
|
+
static deleteFleet(options) {
|
|
469
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
457
470
|
}
|
|
458
471
|
/**
|
|
459
|
-
*
|
|
472
|
+
* Get fleet information.
|
|
460
473
|
*
|
|
461
|
-
*
|
|
474
|
+
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
475
|
+
*
|
|
476
|
+
* This endpoint is available to all users in the organization.
|
|
462
477
|
*
|
|
463
478
|
*/
|
|
464
|
-
static
|
|
465
|
-
return (options.client ?? client).
|
|
479
|
+
static getFleet(options) {
|
|
480
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
466
481
|
}
|
|
467
482
|
/**
|
|
468
|
-
*
|
|
483
|
+
* Update fleet information.
|
|
469
484
|
*
|
|
470
|
-
*
|
|
485
|
+
* This endpoint allows you to update fleet details.
|
|
486
|
+
*
|
|
487
|
+
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
488
|
+
*
|
|
489
|
+
* This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged. The Hetzner API key is the exception: it is kept when omitted (send a new value to rotate it).
|
|
490
|
+
*
|
|
491
|
+
* This endpoint is available to administrators of the organization only.
|
|
471
492
|
*
|
|
472
493
|
*/
|
|
473
|
-
static
|
|
474
|
-
return (options.client ?? client).
|
|
494
|
+
static updateFleet(options) {
|
|
495
|
+
return (options.client ?? client).put({
|
|
496
|
+
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
497
|
+
...options,
|
|
498
|
+
headers: {
|
|
499
|
+
'Content-Type': 'application/json',
|
|
500
|
+
...options.headers
|
|
501
|
+
}
|
|
502
|
+
});
|
|
475
503
|
}
|
|
476
|
-
}
|
|
477
|
-
export class TicketsService {
|
|
478
504
|
/**
|
|
479
|
-
* List
|
|
505
|
+
* List charts.
|
|
480
506
|
*
|
|
481
|
-
* Returns
|
|
507
|
+
* Returns a list of charts in the cluster.
|
|
508
|
+
*
|
|
509
|
+
* This endpoint is available to all users in the organization.
|
|
482
510
|
*
|
|
483
511
|
*/
|
|
484
|
-
static
|
|
485
|
-
return (options
|
|
512
|
+
static listCharts(options) {
|
|
513
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
|
|
486
514
|
}
|
|
487
515
|
/**
|
|
488
|
-
* Create a new
|
|
516
|
+
* Create a new chart.
|
|
489
517
|
*
|
|
490
|
-
*
|
|
518
|
+
* Create a new chart deployment.
|
|
519
|
+
*
|
|
520
|
+
* This endpoint is available to administrators of the organization only.
|
|
491
521
|
*
|
|
492
522
|
*/
|
|
493
|
-
static
|
|
523
|
+
static createChart(options) {
|
|
494
524
|
return (options.client ?? client).post({
|
|
495
|
-
|
|
496
|
-
url: '/tickets',
|
|
525
|
+
url: '/clusters/{cluster_id}/charts',
|
|
497
526
|
...options,
|
|
498
527
|
headers: {
|
|
499
|
-
'Content-Type':
|
|
528
|
+
'Content-Type': 'application/json',
|
|
500
529
|
...options.headers
|
|
501
530
|
}
|
|
502
531
|
});
|
|
503
532
|
}
|
|
504
533
|
/**
|
|
505
|
-
*
|
|
534
|
+
* Permanently delete the chart deployment from the cluster.
|
|
506
535
|
*
|
|
507
|
-
*
|
|
536
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
537
|
+
*
|
|
538
|
+
* This endpoint is available to administrators of the organization only.
|
|
508
539
|
*
|
|
509
540
|
*/
|
|
510
|
-
static
|
|
511
|
-
return (options.client ?? client).delete({ url: '/
|
|
541
|
+
static deleteChart(options) {
|
|
542
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
512
543
|
}
|
|
513
544
|
/**
|
|
514
|
-
* Get
|
|
545
|
+
* Get chart information.
|
|
546
|
+
*
|
|
547
|
+
* Returns the details of the chart deployment.
|
|
548
|
+
*
|
|
549
|
+
* This endpoint is available to all users in the organization.
|
|
550
|
+
*
|
|
515
551
|
*/
|
|
516
|
-
static
|
|
517
|
-
return (options.client ?? client).get({ url: '/
|
|
552
|
+
static getChart(options) {
|
|
553
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
518
554
|
}
|
|
519
555
|
/**
|
|
520
|
-
*
|
|
556
|
+
* Update chart information.
|
|
521
557
|
*
|
|
522
|
-
*
|
|
558
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
559
|
+
*
|
|
560
|
+
* This endpoint is available to administrators of the organization only.
|
|
523
561
|
*
|
|
524
562
|
*/
|
|
525
|
-
static
|
|
526
|
-
return (options.client ?? client).
|
|
527
|
-
|
|
528
|
-
url: '/tickets/{ticket_id}/messages',
|
|
563
|
+
static updateChart(options) {
|
|
564
|
+
return (options.client ?? client).put({
|
|
565
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
529
566
|
...options,
|
|
530
567
|
headers: {
|
|
531
|
-
'Content-Type':
|
|
568
|
+
'Content-Type': 'application/json',
|
|
532
569
|
...options.headers
|
|
533
570
|
}
|
|
534
571
|
});
|
|
535
572
|
}
|
|
536
573
|
/**
|
|
537
|
-
*
|
|
538
|
-
*/
|
|
539
|
-
static getTicketAttachment(options) {
|
|
540
|
-
return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
export class TokensService {
|
|
544
|
-
/**
|
|
545
|
-
* List access tokens in organization.
|
|
574
|
+
* List clusters.
|
|
546
575
|
*
|
|
547
|
-
*
|
|
576
|
+
* Returns a list of clusters under the current organization.
|
|
577
|
+
*
|
|
578
|
+
* This endpoint is available to all users in the organization.
|
|
548
579
|
*
|
|
549
580
|
*/
|
|
550
|
-
static
|
|
551
|
-
return (options?.client ?? client).get({ url: '/
|
|
581
|
+
static listClusters(options) {
|
|
582
|
+
return (options?.client ?? client).get({ url: '/clusters', ...options });
|
|
552
583
|
}
|
|
553
584
|
/**
|
|
554
|
-
* Create a new
|
|
585
|
+
* Create a new cluster.
|
|
555
586
|
*
|
|
556
|
-
*
|
|
587
|
+
* Create a new cluster under the current organization. Clusters allow you to group resources and you can create multiple clusters under the same organization, with billing delegated to the parent organization.
|
|
557
588
|
*
|
|
558
589
|
* This endpoint is available to administrators of the organization only.
|
|
559
590
|
*
|
|
560
591
|
*/
|
|
561
|
-
static
|
|
592
|
+
static createCluster(options) {
|
|
562
593
|
return (options.client ?? client).post({
|
|
563
|
-
url: '/
|
|
594
|
+
url: '/clusters',
|
|
564
595
|
...options,
|
|
565
596
|
headers: {
|
|
566
597
|
'Content-Type': 'application/json',
|
|
@@ -569,34 +600,42 @@ export class TokensService {
|
|
|
569
600
|
});
|
|
570
601
|
}
|
|
571
602
|
/**
|
|
572
|
-
* Permanently delete
|
|
603
|
+
* Permanently delete cluster.
|
|
573
604
|
*
|
|
574
|
-
* This endpoint
|
|
605
|
+
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
606
|
+
*
|
|
607
|
+
* Deleting a cluster also deletes its fleets. This does not deprovision the cloud infrastructure those fleets provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
|
|
608
|
+
*
|
|
609
|
+
* This endpoint is available to administrators of the organization only.
|
|
575
610
|
*
|
|
576
611
|
*/
|
|
577
|
-
static
|
|
578
|
-
return (options.client ?? client).delete({ url: '/
|
|
612
|
+
static deleteCluster(options) {
|
|
613
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
|
|
579
614
|
}
|
|
580
615
|
/**
|
|
581
|
-
* Get
|
|
616
|
+
* Get cluster information.
|
|
582
617
|
*
|
|
583
|
-
*
|
|
618
|
+
* Returns cluster details.
|
|
619
|
+
*
|
|
620
|
+
* This endpoint is available to all users in the organization.
|
|
584
621
|
*
|
|
585
622
|
*/
|
|
586
|
-
static
|
|
587
|
-
return (options.client ?? client).get({ url: '/
|
|
623
|
+
static getCluster(options) {
|
|
624
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
|
|
588
625
|
}
|
|
589
626
|
/**
|
|
590
|
-
* Update
|
|
627
|
+
* Update cluster information.
|
|
591
628
|
*
|
|
592
|
-
* This endpoint allows you to update
|
|
629
|
+
* This endpoint allows you to update cluster details. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentation.
|
|
630
|
+
*
|
|
631
|
+
* This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
|
|
593
632
|
*
|
|
594
633
|
* This endpoint is available to administrators of the organization only.
|
|
595
634
|
*
|
|
596
635
|
*/
|
|
597
|
-
static
|
|
636
|
+
static updateCluster(options) {
|
|
598
637
|
return (options.client ?? client).put({
|
|
599
|
-
url: '/
|
|
638
|
+
url: '/clusters/{cluster_id}',
|
|
600
639
|
...options,
|
|
601
640
|
headers: {
|
|
602
641
|
'Content-Type': 'application/json',
|
|
@@ -605,77 +644,122 @@ export class TokensService {
|
|
|
605
644
|
});
|
|
606
645
|
}
|
|
607
646
|
/**
|
|
608
|
-
*
|
|
647
|
+
* Node join information for the cluster
|
|
648
|
+
*
|
|
649
|
+
* Returns the join information for the cluster. This information is used to add a self-managed nodes to the CFKE cluster. This endpoint is available to only admins of the organization.
|
|
609
650
|
*
|
|
610
|
-
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
611
651
|
*/
|
|
612
|
-
static
|
|
613
|
-
return (options.client ?? client).
|
|
652
|
+
static getJoinInformation(options) {
|
|
653
|
+
return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
|
|
614
654
|
}
|
|
615
655
|
}
|
|
616
|
-
export class
|
|
656
|
+
export class BillingService {
|
|
617
657
|
/**
|
|
618
|
-
* Get
|
|
658
|
+
* Get billing usage information.
|
|
659
|
+
*
|
|
660
|
+
* Returns aggregated usage information for the organization with facets for filtering. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
661
|
+
*
|
|
619
662
|
*/
|
|
620
|
-
static
|
|
621
|
-
return (options
|
|
663
|
+
static getUsage(options) {
|
|
664
|
+
return (options?.client ?? client).get({ url: '/billing/usage', ...options });
|
|
622
665
|
}
|
|
623
666
|
/**
|
|
624
|
-
*
|
|
667
|
+
* Get Stripe client secret.
|
|
625
668
|
*
|
|
626
|
-
*
|
|
669
|
+
* Endpoint returns the Stripe secret key for the organization. This key is used to securely update the payment method in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to administrators of the organization only.
|
|
627
670
|
*
|
|
628
|
-
|
|
671
|
+
*/
|
|
672
|
+
static getPaymentMethodSecret(options) {
|
|
673
|
+
return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* List organization payment methods.
|
|
677
|
+
*
|
|
678
|
+
* Returns all payment methods (cards and SEPA Direct Debit) attached to the organization, most recently added first, with the default flagged. This endpoint is available to all users in the organization.
|
|
629
679
|
*
|
|
630
680
|
*/
|
|
631
|
-
static
|
|
632
|
-
return (options?.client ?? client).get({ url: '/
|
|
681
|
+
static listPaymentMethods(options) {
|
|
682
|
+
return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
|
|
633
683
|
}
|
|
634
684
|
/**
|
|
635
|
-
*
|
|
685
|
+
* Set the default payment method.
|
|
636
686
|
*
|
|
637
|
-
*
|
|
687
|
+
* Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
|
|
638
688
|
*
|
|
639
689
|
*/
|
|
640
|
-
static
|
|
641
|
-
return (options.client ?? client).
|
|
642
|
-
url: '/users',
|
|
643
|
-
...options,
|
|
644
|
-
headers: {
|
|
645
|
-
'Content-Type': 'application/json',
|
|
646
|
-
...options.headers
|
|
647
|
-
}
|
|
648
|
-
});
|
|
690
|
+
static setDefaultPaymentMethod(options) {
|
|
691
|
+
return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
|
|
649
692
|
}
|
|
650
693
|
/**
|
|
651
|
-
* Delete
|
|
694
|
+
* Delete a payment method.
|
|
652
695
|
*
|
|
653
|
-
*
|
|
696
|
+
* Detaches the given payment method from the organization. Requires the Administrator role. An organization must keep at least one payment method, so deleting the only remaining method is rejected.
|
|
654
697
|
*
|
|
655
698
|
*/
|
|
656
|
-
static
|
|
657
|
-
return (options.client ?? client).delete({ url: '/
|
|
699
|
+
static deletePaymentMethod(options) {
|
|
700
|
+
return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
|
|
658
701
|
}
|
|
659
702
|
/**
|
|
660
|
-
*
|
|
703
|
+
* List issued invoices.
|
|
661
704
|
*
|
|
662
|
-
* Returns
|
|
705
|
+
* Returns a list of invoices for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
663
706
|
*
|
|
664
|
-
|
|
707
|
+
*/
|
|
708
|
+
static listInvoices(options) {
|
|
709
|
+
return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Pay the organization's open invoices.
|
|
713
|
+
*
|
|
714
|
+
* Charges all open invoices of the organization against its default payment method. This endpoint is available to administrators of the organization only.
|
|
665
715
|
*
|
|
666
716
|
*/
|
|
667
|
-
static
|
|
668
|
-
return (options
|
|
717
|
+
static payOpenInvoices(options) {
|
|
718
|
+
return (options?.client ?? client).post({ url: '/billing/invoices/pay', ...options });
|
|
669
719
|
}
|
|
670
720
|
/**
|
|
671
|
-
*
|
|
721
|
+
* Get organization contact and billing address information.
|
|
672
722
|
*
|
|
673
|
-
*
|
|
723
|
+
* Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
|
|
674
724
|
*
|
|
675
725
|
*/
|
|
676
|
-
static
|
|
726
|
+
static getContact(options) {
|
|
727
|
+
return (options?.client ?? client).get({ url: '/billing/contact', ...options });
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* Update organization contact information and billing address.
|
|
731
|
+
*
|
|
732
|
+
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
733
|
+
*
|
|
734
|
+
*/
|
|
735
|
+
static updateContact(options) {
|
|
677
736
|
return (options.client ?? client).put({
|
|
678
|
-
url: '/
|
|
737
|
+
url: '/billing/contact',
|
|
738
|
+
...options,
|
|
739
|
+
headers: {
|
|
740
|
+
'Content-Type': 'application/json',
|
|
741
|
+
...options.headers
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Get applied promotional credits
|
|
747
|
+
*
|
|
748
|
+
* Returns applied promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
749
|
+
*
|
|
750
|
+
*/
|
|
751
|
+
static getCredits(options) {
|
|
752
|
+
return (options?.client ?? client).get({ url: '/billing/credits', ...options });
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Redeem promotional credits code.
|
|
756
|
+
*
|
|
757
|
+
* Applies promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
758
|
+
*
|
|
759
|
+
*/
|
|
760
|
+
static redeemCredits(options) {
|
|
761
|
+
return (options.client ?? client).post({
|
|
762
|
+
url: '/billing/credits',
|
|
679
763
|
...options,
|
|
680
764
|
headers: {
|
|
681
765
|
'Content-Type': 'application/json',
|