@cloudfleet/sdk 0.0.1-04dcf91 → 0.0.1-079832b
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 +1199 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1215 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +114 -102
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.gen.d.ts +9 -13
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +8 -4
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +13 -15
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +1 -3
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -1
- package/dist/core/auth.gen.js.map +1 -1
- package/dist/core/bodySerializer.gen.d.ts +16 -8
- package/dist/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/core/bodySerializer.gen.js +1 -1
- package/dist/core/bodySerializer.gen.js.map +1 -1
- package/dist/core/params.gen.d.ts +10 -0
- package/dist/core/params.gen.d.ts.map +1 -1
- package/dist/core/params.gen.js +22 -10
- package/dist/core/params.gen.js.map +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/core/pathSerializer.gen.js +3 -11
- package/dist/core/pathSerializer.gen.js.map +1 -1
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
- package/dist/core/queryKeySerializer.gen.js +4 -11
- package/dist/core/queryKeySerializer.gen.js.map +1 -1
- package/dist/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/core/serverSentEvents.gen.js +6 -9
- package/dist/core/serverSentEvents.gen.js.map +1 -1
- package/dist/core/types.gen.d.ts +1 -1
- package/dist/core/types.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.js +1 -1
- package/dist/core/utils.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +1610 -665
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2936 -695
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +312 -164
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +455 -349
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +8 -8
- package/dist/types.gen.d.ts +1794 -798
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3560 -2548
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1461 -1187
- package/dist/zod.gen.js.map +1 -1
- package/package.json +28 -8
package/dist/sdk.gen.js
CHANGED
|
@@ -1,91 +1,302 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { formDataBodySerializer } from './client';
|
|
2
3
|
import { client } from './client.gen';
|
|
3
|
-
export class
|
|
4
|
+
export class UsersService {
|
|
4
5
|
/**
|
|
5
|
-
* Get
|
|
6
|
-
|
|
6
|
+
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
7
|
+
*/
|
|
8
|
+
static listUserOrganizations(options) {
|
|
9
|
+
return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* List users in organization.
|
|
13
|
+
*
|
|
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.
|
|
15
|
+
*
|
|
16
|
+
* This endpoint is available to all users in the organization.
|
|
7
17
|
*
|
|
8
18
|
*/
|
|
9
|
-
static
|
|
10
|
-
return (options?.client ?? client).get({
|
|
11
|
-
|
|
12
|
-
|
|
19
|
+
static listUsers(options) {
|
|
20
|
+
return (options?.client ?? client).get({ url: '/users', ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Create a new user.
|
|
24
|
+
*
|
|
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.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
static createUser(options) {
|
|
29
|
+
return (options.client ?? client).post({
|
|
30
|
+
url: '/users',
|
|
31
|
+
...options,
|
|
32
|
+
headers: {
|
|
33
|
+
'Content-Type': 'application/json',
|
|
34
|
+
...options.headers
|
|
35
|
+
}
|
|
13
36
|
});
|
|
14
37
|
}
|
|
15
38
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
39
|
+
* Delete user by id.
|
|
40
|
+
*
|
|
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.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
static deleteUser(options) {
|
|
45
|
+
return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Get user profile information by id.
|
|
49
|
+
*
|
|
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.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
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.
|
|
18
62
|
*
|
|
19
63
|
*/
|
|
20
|
-
static
|
|
21
|
-
return (options
|
|
22
|
-
url: '/
|
|
23
|
-
...options
|
|
64
|
+
static updateUser(options) {
|
|
65
|
+
return (options.client ?? client).put({
|
|
66
|
+
url: '/users/{user_id}',
|
|
67
|
+
...options,
|
|
68
|
+
headers: {
|
|
69
|
+
'Content-Type': 'application/json',
|
|
70
|
+
...options.headers
|
|
71
|
+
}
|
|
24
72
|
});
|
|
25
73
|
}
|
|
74
|
+
}
|
|
75
|
+
export class TokensService {
|
|
76
|
+
/**
|
|
77
|
+
* List access tokens in organization.
|
|
78
|
+
*
|
|
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.
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
static listTokens(options) {
|
|
83
|
+
return (options?.client ?? client).get({ url: '/tokens', ...options });
|
|
84
|
+
}
|
|
26
85
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
86
|
+
* Create a new access token.
|
|
87
|
+
*
|
|
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.
|
|
89
|
+
*
|
|
90
|
+
* This endpoint is available to administrators of the organization only.
|
|
29
91
|
*
|
|
30
92
|
*/
|
|
31
|
-
static
|
|
32
|
-
return (options
|
|
33
|
-
url: '/
|
|
34
|
-
...options
|
|
93
|
+
static createToken(options) {
|
|
94
|
+
return (options.client ?? client).post({
|
|
95
|
+
url: '/tokens',
|
|
96
|
+
...options,
|
|
97
|
+
headers: {
|
|
98
|
+
'Content-Type': 'application/json',
|
|
99
|
+
...options.headers
|
|
100
|
+
}
|
|
35
101
|
});
|
|
36
102
|
}
|
|
37
103
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
104
|
+
* Permanently delete access token.
|
|
105
|
+
*
|
|
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.
|
|
40
107
|
*
|
|
41
108
|
*/
|
|
42
|
-
static
|
|
43
|
-
return (options
|
|
44
|
-
|
|
45
|
-
|
|
109
|
+
static deleteToken(options) {
|
|
110
|
+
return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Get access token information.
|
|
114
|
+
*
|
|
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.
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
static getToken(options) {
|
|
119
|
+
return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Update access token information.
|
|
123
|
+
*
|
|
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.
|
|
125
|
+
*
|
|
126
|
+
* This endpoint is available to administrators of the organization only.
|
|
127
|
+
*
|
|
128
|
+
*/
|
|
129
|
+
static updateToken(options) {
|
|
130
|
+
return (options.client ?? client).put({
|
|
131
|
+
url: '/tokens/{token_id}',
|
|
132
|
+
...options,
|
|
133
|
+
headers: {
|
|
134
|
+
'Content-Type': 'application/json',
|
|
135
|
+
...options.headers
|
|
136
|
+
}
|
|
46
137
|
});
|
|
47
138
|
}
|
|
48
139
|
/**
|
|
49
|
-
*
|
|
50
|
-
* 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.
|
|
140
|
+
* Regenerate access token secret key.
|
|
51
141
|
*
|
|
142
|
+
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
52
143
|
*/
|
|
53
|
-
static
|
|
54
|
-
return (options.client ?? client).
|
|
55
|
-
|
|
56
|
-
|
|
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.
|
|
151
|
+
*
|
|
152
|
+
* Returns all tickets belonging to the caller's organization, newest first.
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
static listTickets(options) {
|
|
156
|
+
return (options?.client ?? client).get({ url: '/tickets', ...options });
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Create a new support ticket.
|
|
160
|
+
*
|
|
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).
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
static createTicket(options) {
|
|
165
|
+
return (options.client ?? client).post({
|
|
166
|
+
...formDataBodySerializer,
|
|
167
|
+
url: '/tickets',
|
|
168
|
+
...options,
|
|
169
|
+
headers: {
|
|
170
|
+
'Content-Type': null,
|
|
171
|
+
...options.headers
|
|
172
|
+
}
|
|
57
173
|
});
|
|
58
174
|
}
|
|
59
175
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
176
|
+
* Close a ticket (soft close).
|
|
177
|
+
*
|
|
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.
|
|
62
179
|
*
|
|
63
180
|
*/
|
|
64
|
-
static
|
|
65
|
-
return (options.client ?? client).
|
|
66
|
-
|
|
67
|
-
|
|
181
|
+
static closeTicket(options) {
|
|
182
|
+
return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Get a ticket and its messages.
|
|
186
|
+
*/
|
|
187
|
+
static getTicket(options) {
|
|
188
|
+
return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Append a customer reply to a ticket.
|
|
192
|
+
*
|
|
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.
|
|
194
|
+
*
|
|
195
|
+
*/
|
|
196
|
+
static replyTicket(options) {
|
|
197
|
+
return (options.client ?? client).post({
|
|
198
|
+
...formDataBodySerializer,
|
|
199
|
+
url: '/tickets/{ticket_id}/messages',
|
|
200
|
+
...options,
|
|
201
|
+
headers: {
|
|
202
|
+
'Content-Type': null,
|
|
203
|
+
...options.headers
|
|
204
|
+
}
|
|
68
205
|
});
|
|
69
206
|
}
|
|
70
207
|
/**
|
|
71
|
-
*
|
|
72
|
-
|
|
208
|
+
* Download a ticket attachment.
|
|
209
|
+
*/
|
|
210
|
+
static getTicketAttachment(options) {
|
|
211
|
+
return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
export class RegistryService {
|
|
215
|
+
/**
|
|
216
|
+
* List repositories
|
|
217
|
+
*
|
|
218
|
+
* Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
|
|
73
219
|
*
|
|
74
220
|
*/
|
|
75
|
-
static
|
|
76
|
-
return (options?.client ?? client).get({
|
|
77
|
-
|
|
78
|
-
|
|
221
|
+
static listRepositories(options) {
|
|
222
|
+
return (options?.client ?? client).get({ url: '/registry', ...options });
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* List tags for a repository
|
|
226
|
+
*
|
|
227
|
+
* 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.
|
|
228
|
+
*
|
|
229
|
+
*/
|
|
230
|
+
static listTags(options) {
|
|
231
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Delete tag
|
|
235
|
+
*
|
|
236
|
+
* Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
static deleteTag(options) {
|
|
240
|
+
return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Get tag details
|
|
244
|
+
*
|
|
245
|
+
* 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.
|
|
246
|
+
*
|
|
247
|
+
*/
|
|
248
|
+
static getTag(options) {
|
|
249
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
export class OrganizationService {
|
|
253
|
+
/**
|
|
254
|
+
* Get organization information.
|
|
255
|
+
*
|
|
256
|
+
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
257
|
+
*
|
|
258
|
+
* This endpoint is available to all users in the organization.
|
|
259
|
+
*
|
|
260
|
+
*/
|
|
261
|
+
static getOrganization(options) {
|
|
262
|
+
return (options?.client ?? client).get({ url: '/organization', ...options });
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Create a new organization / Cloudfleet account signup.
|
|
266
|
+
*
|
|
267
|
+
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
268
|
+
*
|
|
269
|
+
*/
|
|
270
|
+
static createOrganization(options) {
|
|
271
|
+
return (options.client ?? client).post({
|
|
272
|
+
url: '/organization',
|
|
273
|
+
...options,
|
|
274
|
+
headers: {
|
|
275
|
+
'Content-Type': 'application/json',
|
|
276
|
+
...options.headers
|
|
277
|
+
}
|
|
79
278
|
});
|
|
80
279
|
}
|
|
81
280
|
/**
|
|
82
|
-
*
|
|
83
|
-
*
|
|
281
|
+
* Get the organization's consent status for the new Basic price.
|
|
282
|
+
*
|
|
283
|
+
* Returns the organization's consent status for the migration from the free tier to the paid Basic plan. `pending` means an administrator must opt in; `not_applicable` means the organization is not in scope for the migration; `accepted` / `rejected` reflect a recorded decision.
|
|
284
|
+
*
|
|
285
|
+
* This endpoint is available to all users in the organization and drives the consent dialog in the console.
|
|
84
286
|
*
|
|
85
287
|
*/
|
|
86
|
-
static
|
|
87
|
-
return (options
|
|
88
|
-
|
|
288
|
+
static getBasicPriceConsent(options) {
|
|
289
|
+
return (options?.client ?? client).get({ url: '/organization/basic-price-consent', ...options });
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Record an administrator's decision on the new Basic price.
|
|
293
|
+
*
|
|
294
|
+
* Records an affirmative decision to continue on the paid Basic plan (`accepted`) or to opt out (`rejected`). This is an organization-binding financial decision, so it is restricted to administrators. Each call appends an immutable audit entry (who and when) and sends a confirmation email to the acting administrator.
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
297
|
+
static setBasicPriceConsent(options) {
|
|
298
|
+
return (options.client ?? client).post({
|
|
299
|
+
url: '/organization/basic-price-consent',
|
|
89
300
|
...options,
|
|
90
301
|
headers: {
|
|
91
302
|
'Content-Type': 'application/json',
|
|
@@ -93,25 +304,69 @@ export class BillingService {
|
|
|
93
304
|
}
|
|
94
305
|
});
|
|
95
306
|
}
|
|
307
|
+
}
|
|
308
|
+
export class McpService {
|
|
96
309
|
/**
|
|
97
|
-
*
|
|
98
|
-
* 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.
|
|
310
|
+
* MCP endpoint
|
|
99
311
|
*
|
|
312
|
+
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
100
313
|
*/
|
|
101
|
-
static
|
|
102
|
-
return (options
|
|
103
|
-
url: '/
|
|
104
|
-
...options
|
|
314
|
+
static postMcp(options) {
|
|
315
|
+
return (options.client ?? client).post({
|
|
316
|
+
url: '/mcp',
|
|
317
|
+
...options,
|
|
318
|
+
headers: {
|
|
319
|
+
'Content-Type': 'application/json',
|
|
320
|
+
...options.headers
|
|
321
|
+
}
|
|
105
322
|
});
|
|
106
323
|
}
|
|
324
|
+
}
|
|
325
|
+
export class ChartsMarketplaceService {
|
|
107
326
|
/**
|
|
108
|
-
*
|
|
109
|
-
*
|
|
327
|
+
* List chart listings available in the marketplace.
|
|
328
|
+
*
|
|
329
|
+
* Returns a list of available charts in the marketplace.
|
|
330
|
+
*
|
|
331
|
+
* This endpoint is available to all users in the organization.
|
|
110
332
|
*
|
|
111
333
|
*/
|
|
112
|
-
static
|
|
334
|
+
static listMarketplaceCharts(options) {
|
|
335
|
+
return (options?.client ?? client).get({ url: '/marketplace', ...options });
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Get chart files for a specific version channel.
|
|
339
|
+
*
|
|
340
|
+
* Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
|
|
341
|
+
*
|
|
342
|
+
* Version channels use patterns like "1.31.x-cfke.x" to match the latest patch version, or "1.x.x-cfke.x" to match the latest minor version.
|
|
343
|
+
*
|
|
344
|
+
* This endpoint is available to all users in the organization.
|
|
345
|
+
*
|
|
346
|
+
*/
|
|
347
|
+
static getMarketplaceChartFiles(options) {
|
|
348
|
+
return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
export class InvitesService {
|
|
352
|
+
/**
|
|
353
|
+
* List invites.
|
|
354
|
+
*
|
|
355
|
+
* Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
|
|
356
|
+
*
|
|
357
|
+
*/
|
|
358
|
+
static listInvites(options) {
|
|
359
|
+
return (options?.client ?? client).get({ url: '/invites', ...options });
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Create a new invite.
|
|
363
|
+
*
|
|
364
|
+
* 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.
|
|
365
|
+
*
|
|
366
|
+
*/
|
|
367
|
+
static createInvite(options) {
|
|
113
368
|
return (options.client ?? client).post({
|
|
114
|
-
url: '/
|
|
369
|
+
url: '/invites',
|
|
115
370
|
...options,
|
|
116
371
|
headers: {
|
|
117
372
|
'Content-Type': 'application/json',
|
|
@@ -119,31 +374,58 @@ export class BillingService {
|
|
|
119
374
|
}
|
|
120
375
|
});
|
|
121
376
|
}
|
|
377
|
+
/**
|
|
378
|
+
* Get invite information.
|
|
379
|
+
*
|
|
380
|
+
* 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.
|
|
381
|
+
*
|
|
382
|
+
*/
|
|
383
|
+
static getInvite(options) {
|
|
384
|
+
return (options.client ?? client).get({ url: '/invites/{code}', ...options });
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Permanently delete invite.
|
|
388
|
+
*
|
|
389
|
+
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
390
|
+
*
|
|
391
|
+
*/
|
|
392
|
+
static deleteInvite(options) {
|
|
393
|
+
return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
|
|
394
|
+
}
|
|
122
395
|
}
|
|
123
396
|
export class ClustersService {
|
|
124
397
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
398
|
+
* Query Kubernetes cluster API
|
|
399
|
+
*
|
|
400
|
+
* 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.
|
|
401
|
+
*/
|
|
402
|
+
static queryCluster(options) {
|
|
403
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* List fleets.
|
|
407
|
+
*
|
|
408
|
+
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
127
409
|
*
|
|
128
410
|
* This endpoint is available to all users in the organization.
|
|
129
411
|
*
|
|
130
412
|
*/
|
|
131
|
-
static
|
|
132
|
-
return (options.client ?? client).get({
|
|
133
|
-
url: '/clusters/{cluster_id}/charts',
|
|
134
|
-
...options
|
|
135
|
-
});
|
|
413
|
+
static listFleets(options) {
|
|
414
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
|
|
136
415
|
}
|
|
137
416
|
/**
|
|
138
|
-
* Create a new
|
|
139
|
-
*
|
|
417
|
+
* Create a new fleet.
|
|
418
|
+
*
|
|
419
|
+
* 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.
|
|
420
|
+
*
|
|
421
|
+
* The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
|
|
140
422
|
*
|
|
141
423
|
* This endpoint is available to administrators of the organization only.
|
|
142
424
|
*
|
|
143
425
|
*/
|
|
144
|
-
static
|
|
426
|
+
static createFleet(options) {
|
|
145
427
|
return (options.client ?? client).post({
|
|
146
|
-
url: '/clusters/{cluster_id}/
|
|
428
|
+
url: '/clusters/{cluster_id}/fleets',
|
|
147
429
|
...options,
|
|
148
430
|
headers: {
|
|
149
431
|
'Content-Type': 'application/json',
|
|
@@ -152,41 +434,44 @@ export class ClustersService {
|
|
|
152
434
|
});
|
|
153
435
|
}
|
|
154
436
|
/**
|
|
155
|
-
* Permanently delete
|
|
156
|
-
*
|
|
437
|
+
* Permanently delete fleet.
|
|
438
|
+
*
|
|
439
|
+
* 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.
|
|
440
|
+
*
|
|
441
|
+
* 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.
|
|
157
442
|
*
|
|
158
443
|
* This endpoint is available to administrators of the organization only.
|
|
159
444
|
*
|
|
160
445
|
*/
|
|
161
|
-
static
|
|
162
|
-
return (options.client ?? client).delete({
|
|
163
|
-
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
164
|
-
...options
|
|
165
|
-
});
|
|
446
|
+
static deleteFleet(options) {
|
|
447
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
166
448
|
}
|
|
167
449
|
/**
|
|
168
|
-
* Get
|
|
169
|
-
*
|
|
450
|
+
* Get fleet information.
|
|
451
|
+
*
|
|
452
|
+
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
170
453
|
*
|
|
171
454
|
* This endpoint is available to all users in the organization.
|
|
172
455
|
*
|
|
173
456
|
*/
|
|
174
|
-
static
|
|
175
|
-
return (options.client ?? client).get({
|
|
176
|
-
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
177
|
-
...options
|
|
178
|
-
});
|
|
457
|
+
static getFleet(options) {
|
|
458
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
179
459
|
}
|
|
180
460
|
/**
|
|
181
|
-
* Update
|
|
182
|
-
*
|
|
461
|
+
* Update fleet information.
|
|
462
|
+
*
|
|
463
|
+
* This endpoint allows you to update fleet details.
|
|
464
|
+
*
|
|
465
|
+
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
466
|
+
*
|
|
467
|
+
* 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).
|
|
183
468
|
*
|
|
184
469
|
* This endpoint is available to administrators of the organization only.
|
|
185
470
|
*
|
|
186
471
|
*/
|
|
187
|
-
static
|
|
472
|
+
static updateFleet(options) {
|
|
188
473
|
return (options.client ?? client).put({
|
|
189
|
-
url: '/clusters/{cluster_id}/
|
|
474
|
+
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
190
475
|
...options,
|
|
191
476
|
headers: {
|
|
192
477
|
'Content-Type': 'application/json',
|
|
@@ -195,28 +480,27 @@ export class ClustersService {
|
|
|
195
480
|
});
|
|
196
481
|
}
|
|
197
482
|
/**
|
|
198
|
-
* List
|
|
199
|
-
*
|
|
483
|
+
* List charts.
|
|
484
|
+
*
|
|
485
|
+
* Returns a list of charts in the cluster.
|
|
200
486
|
*
|
|
201
487
|
* This endpoint is available to all users in the organization.
|
|
202
488
|
*
|
|
203
489
|
*/
|
|
204
|
-
static
|
|
205
|
-
return (options.client ?? client).get({
|
|
206
|
-
url: '/clusters/{cluster_id}/fleets',
|
|
207
|
-
...options
|
|
208
|
-
});
|
|
490
|
+
static listCharts(options) {
|
|
491
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
|
|
209
492
|
}
|
|
210
493
|
/**
|
|
211
|
-
* Create a new
|
|
212
|
-
*
|
|
494
|
+
* Create a new chart.
|
|
495
|
+
*
|
|
496
|
+
* Create a new chart deployment.
|
|
213
497
|
*
|
|
214
498
|
* This endpoint is available to administrators of the organization only.
|
|
215
499
|
*
|
|
216
500
|
*/
|
|
217
|
-
static
|
|
501
|
+
static createChart(options) {
|
|
218
502
|
return (options.client ?? client).post({
|
|
219
|
-
url: '/clusters/{cluster_id}/
|
|
503
|
+
url: '/clusters/{cluster_id}/charts',
|
|
220
504
|
...options,
|
|
221
505
|
headers: {
|
|
222
506
|
'Content-Type': 'application/json',
|
|
@@ -225,45 +509,38 @@ export class ClustersService {
|
|
|
225
509
|
});
|
|
226
510
|
}
|
|
227
511
|
/**
|
|
228
|
-
* Permanently delete
|
|
229
|
-
*
|
|
512
|
+
* Permanently delete the chart deployment from the cluster.
|
|
513
|
+
*
|
|
514
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
230
515
|
*
|
|
231
516
|
* This endpoint is available to administrators of the organization only.
|
|
232
517
|
*
|
|
233
518
|
*/
|
|
234
|
-
static
|
|
235
|
-
return (options.client ?? client).delete({
|
|
236
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
237
|
-
...options
|
|
238
|
-
});
|
|
519
|
+
static deleteChart(options) {
|
|
520
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
239
521
|
}
|
|
240
522
|
/**
|
|
241
|
-
* Get
|
|
242
|
-
*
|
|
523
|
+
* Get chart information.
|
|
524
|
+
*
|
|
525
|
+
* Returns the details of the chart deployment.
|
|
243
526
|
*
|
|
244
527
|
* This endpoint is available to all users in the organization.
|
|
245
528
|
*
|
|
246
529
|
*/
|
|
247
|
-
static
|
|
248
|
-
return (options.client ?? client).get({
|
|
249
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
250
|
-
...options
|
|
251
|
-
});
|
|
530
|
+
static getChart(options) {
|
|
531
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
252
532
|
}
|
|
253
533
|
/**
|
|
254
|
-
* Update
|
|
255
|
-
* This endpoint allows you to update fleet details.
|
|
256
|
-
*
|
|
257
|
-
* 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`.
|
|
534
|
+
* Update chart information.
|
|
258
535
|
*
|
|
259
|
-
*
|
|
536
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
260
537
|
*
|
|
261
538
|
* This endpoint is available to administrators of the organization only.
|
|
262
539
|
*
|
|
263
540
|
*/
|
|
264
|
-
static
|
|
541
|
+
static updateChart(options) {
|
|
265
542
|
return (options.client ?? client).put({
|
|
266
|
-
url: '/clusters/{cluster_id}/
|
|
543
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
267
544
|
...options,
|
|
268
545
|
headers: {
|
|
269
546
|
'Content-Type': 'application/json',
|
|
@@ -271,31 +548,20 @@ export class ClustersService {
|
|
|
271
548
|
}
|
|
272
549
|
});
|
|
273
550
|
}
|
|
274
|
-
/**
|
|
275
|
-
* Query Kubernetes cluster API
|
|
276
|
-
* 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.
|
|
277
|
-
*/
|
|
278
|
-
static queryCluster(options) {
|
|
279
|
-
return (options.client ?? client).get({
|
|
280
|
-
url: '/clusters/{cluster_id}/query',
|
|
281
|
-
...options
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
551
|
/**
|
|
285
552
|
* List clusters.
|
|
286
|
-
*
|
|
553
|
+
*
|
|
554
|
+
* Returns a list of clusters under the current organization.
|
|
287
555
|
*
|
|
288
556
|
* This endpoint is available to all users in the organization.
|
|
289
557
|
*
|
|
290
558
|
*/
|
|
291
559
|
static listClusters(options) {
|
|
292
|
-
return (options?.client ?? client).get({
|
|
293
|
-
url: '/clusters',
|
|
294
|
-
...options
|
|
295
|
-
});
|
|
560
|
+
return (options?.client ?? client).get({ url: '/clusters', ...options });
|
|
296
561
|
}
|
|
297
562
|
/**
|
|
298
563
|
* Create a new cluster.
|
|
564
|
+
*
|
|
299
565
|
* 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.
|
|
300
566
|
*
|
|
301
567
|
* This endpoint is available to administrators of the organization only.
|
|
@@ -313,33 +579,34 @@ export class ClustersService {
|
|
|
313
579
|
}
|
|
314
580
|
/**
|
|
315
581
|
* Permanently delete cluster.
|
|
582
|
+
*
|
|
316
583
|
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
317
584
|
*
|
|
585
|
+
* 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.
|
|
586
|
+
*
|
|
318
587
|
* This endpoint is available to administrators of the organization only.
|
|
319
588
|
*
|
|
320
589
|
*/
|
|
321
590
|
static deleteCluster(options) {
|
|
322
|
-
return (options.client ?? client).delete({
|
|
323
|
-
url: '/clusters/{cluster_id}',
|
|
324
|
-
...options
|
|
325
|
-
});
|
|
591
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
|
|
326
592
|
}
|
|
327
593
|
/**
|
|
328
594
|
* Get cluster information.
|
|
329
|
-
*
|
|
595
|
+
*
|
|
596
|
+
* Returns cluster details.
|
|
330
597
|
*
|
|
331
598
|
* This endpoint is available to all users in the organization.
|
|
332
599
|
*
|
|
333
600
|
*/
|
|
334
601
|
static getCluster(options) {
|
|
335
|
-
return (options.client ?? client).get({
|
|
336
|
-
url: '/clusters/{cluster_id}',
|
|
337
|
-
...options
|
|
338
|
-
});
|
|
602
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
|
|
339
603
|
}
|
|
340
604
|
/**
|
|
341
605
|
* Update cluster information.
|
|
342
|
-
*
|
|
606
|
+
*
|
|
607
|
+
* 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.
|
|
608
|
+
*
|
|
609
|
+
* This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
|
|
343
610
|
*
|
|
344
611
|
* This endpoint is available to administrators of the organization only.
|
|
345
612
|
*
|
|
@@ -356,185 +623,87 @@ export class ClustersService {
|
|
|
356
623
|
}
|
|
357
624
|
/**
|
|
358
625
|
* Node join information for the cluster
|
|
626
|
+
*
|
|
359
627
|
* 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.
|
|
360
628
|
*
|
|
361
629
|
*/
|
|
362
630
|
static getJoinInformation(options) {
|
|
363
|
-
return (options.client ?? client).post({
|
|
364
|
-
url: '/clusters/{cluster_id}/join_information',
|
|
365
|
-
...options
|
|
366
|
-
});
|
|
631
|
+
return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
|
|
367
632
|
}
|
|
368
633
|
}
|
|
369
|
-
export class
|
|
370
|
-
/**
|
|
371
|
-
* List invites.
|
|
372
|
-
* Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
|
|
373
|
-
*
|
|
374
|
-
*/
|
|
375
|
-
static listInvites(options) {
|
|
376
|
-
return (options?.client ?? client).get({
|
|
377
|
-
url: '/invites',
|
|
378
|
-
...options
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* Create a new invite.
|
|
383
|
-
* 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.
|
|
384
|
-
*
|
|
385
|
-
*/
|
|
386
|
-
static createInvite(options) {
|
|
387
|
-
return (options.client ?? client).post({
|
|
388
|
-
url: '/invites',
|
|
389
|
-
...options,
|
|
390
|
-
headers: {
|
|
391
|
-
'Content-Type': 'application/json',
|
|
392
|
-
...options.headers
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
}
|
|
634
|
+
export class BillingService {
|
|
396
635
|
/**
|
|
397
|
-
* Get
|
|
398
|
-
* Returns invite details.
|
|
636
|
+
* Get billing usage information.
|
|
399
637
|
*
|
|
400
|
-
|
|
401
|
-
static getInvite(options) {
|
|
402
|
-
return (options.client ?? client).get({
|
|
403
|
-
url: '/invites/{code}',
|
|
404
|
-
...options
|
|
405
|
-
});
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Permanently delete invite.
|
|
409
|
-
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
638
|
+
* 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.
|
|
410
639
|
*
|
|
411
640
|
*/
|
|
412
|
-
static
|
|
413
|
-
return (options
|
|
414
|
-
url: '/invites/{email}',
|
|
415
|
-
...options
|
|
416
|
-
});
|
|
641
|
+
static getUsage(options) {
|
|
642
|
+
return (options?.client ?? client).get({ url: '/billing/usage', ...options });
|
|
417
643
|
}
|
|
418
|
-
}
|
|
419
|
-
export class ChartsMarketplaceService {
|
|
420
644
|
/**
|
|
421
|
-
*
|
|
422
|
-
* Returns a list of available charts in the marketplace.
|
|
645
|
+
* Get Stripe client secret.
|
|
423
646
|
*
|
|
424
|
-
* This
|
|
647
|
+
* 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.
|
|
425
648
|
*
|
|
426
649
|
*/
|
|
427
|
-
static
|
|
428
|
-
return (options?.client ?? client).
|
|
429
|
-
url: '/marketplace',
|
|
430
|
-
...options
|
|
431
|
-
});
|
|
650
|
+
static getPaymentMethodSecret(options) {
|
|
651
|
+
return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
|
|
432
652
|
}
|
|
433
653
|
/**
|
|
434
|
-
*
|
|
435
|
-
* Returns details of the chart listing.
|
|
654
|
+
* List organization payment methods.
|
|
436
655
|
*
|
|
437
|
-
* This endpoint is available to all users in the organization.
|
|
656
|
+
* 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.
|
|
438
657
|
*
|
|
439
658
|
*/
|
|
440
|
-
static
|
|
441
|
-
return (options
|
|
442
|
-
url: '/marketplace/{listing_id}',
|
|
443
|
-
...options
|
|
444
|
-
});
|
|
659
|
+
static listPaymentMethods(options) {
|
|
660
|
+
return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
|
|
445
661
|
}
|
|
446
|
-
}
|
|
447
|
-
export class OrganizationService {
|
|
448
662
|
/**
|
|
449
|
-
*
|
|
450
|
-
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
663
|
+
* Set the default payment method.
|
|
451
664
|
*
|
|
452
|
-
*
|
|
665
|
+
* Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
|
|
453
666
|
*
|
|
454
667
|
*/
|
|
455
|
-
static
|
|
456
|
-
return (options
|
|
457
|
-
url: '/organization',
|
|
458
|
-
...options
|
|
459
|
-
});
|
|
668
|
+
static setDefaultPaymentMethod(options) {
|
|
669
|
+
return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
|
|
460
670
|
}
|
|
461
671
|
/**
|
|
462
|
-
*
|
|
463
|
-
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
672
|
+
* Delete a payment method.
|
|
464
673
|
*
|
|
465
|
-
|
|
466
|
-
static createOrganization(options) {
|
|
467
|
-
return (options.client ?? client).post({
|
|
468
|
-
url: '/organization',
|
|
469
|
-
...options,
|
|
470
|
-
headers: {
|
|
471
|
-
'Content-Type': 'application/json',
|
|
472
|
-
...options.headers
|
|
473
|
-
}
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
export class TokensService {
|
|
478
|
-
/**
|
|
479
|
-
* List access tokens in organization.
|
|
480
|
-
* 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.
|
|
674
|
+
* 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.
|
|
481
675
|
*
|
|
482
676
|
*/
|
|
483
|
-
static
|
|
484
|
-
return (options
|
|
485
|
-
url: '/tokens',
|
|
486
|
-
...options
|
|
487
|
-
});
|
|
677
|
+
static deletePaymentMethod(options) {
|
|
678
|
+
return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
|
|
488
679
|
}
|
|
489
680
|
/**
|
|
490
|
-
*
|
|
491
|
-
* 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.
|
|
681
|
+
* List issued invoices.
|
|
492
682
|
*
|
|
493
|
-
* This endpoint is available to
|
|
683
|
+
* 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.
|
|
494
684
|
*
|
|
495
685
|
*/
|
|
496
|
-
static
|
|
497
|
-
return (options
|
|
498
|
-
url: '/tokens',
|
|
499
|
-
...options,
|
|
500
|
-
headers: {
|
|
501
|
-
'Content-Type': 'application/json',
|
|
502
|
-
...options.headers
|
|
503
|
-
}
|
|
504
|
-
});
|
|
686
|
+
static listInvoices(options) {
|
|
687
|
+
return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
|
|
505
688
|
}
|
|
506
689
|
/**
|
|
507
|
-
*
|
|
508
|
-
* 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.
|
|
690
|
+
* Get organization contact and billing address information.
|
|
509
691
|
*
|
|
510
|
-
|
|
511
|
-
static deleteToken(options) {
|
|
512
|
-
return (options.client ?? client).delete({
|
|
513
|
-
url: '/tokens/{token_id}',
|
|
514
|
-
...options
|
|
515
|
-
});
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* Get access token information.
|
|
519
|
-
* 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.
|
|
692
|
+
* Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
|
|
520
693
|
*
|
|
521
694
|
*/
|
|
522
|
-
static
|
|
523
|
-
return (options
|
|
524
|
-
url: '/tokens/{token_id}',
|
|
525
|
-
...options
|
|
526
|
-
});
|
|
695
|
+
static getContact(options) {
|
|
696
|
+
return (options?.client ?? client).get({ url: '/billing/contact', ...options });
|
|
527
697
|
}
|
|
528
698
|
/**
|
|
529
|
-
* Update
|
|
530
|
-
* 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.
|
|
699
|
+
* Update organization contact information and billing address.
|
|
531
700
|
*
|
|
532
|
-
* This endpoint is available to administrators of the organization only.
|
|
701
|
+
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
533
702
|
*
|
|
534
703
|
*/
|
|
535
|
-
static
|
|
704
|
+
static updateContact(options) {
|
|
536
705
|
return (options.client ?? client).put({
|
|
537
|
-
url: '/
|
|
706
|
+
url: '/billing/contact',
|
|
538
707
|
...options,
|
|
539
708
|
headers: {
|
|
540
709
|
'Content-Type': 'application/json',
|
|
@@ -543,86 +712,23 @@ export class TokensService {
|
|
|
543
712
|
});
|
|
544
713
|
}
|
|
545
714
|
/**
|
|
546
|
-
*
|
|
547
|
-
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
548
|
-
*/
|
|
549
|
-
static regenerateToken(options) {
|
|
550
|
-
return (options.client ?? client).put({
|
|
551
|
-
url: '/tokens/{token_id}/secret',
|
|
552
|
-
...options
|
|
553
|
-
});
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
export class UsersService {
|
|
557
|
-
/**
|
|
558
|
-
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
559
|
-
*/
|
|
560
|
-
static listUserOrganizations(options) {
|
|
561
|
-
return (options.client ?? client).get({
|
|
562
|
-
url: '/users/organizations/{email}',
|
|
563
|
-
...options
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
/**
|
|
567
|
-
* List users in organization.
|
|
568
|
-
* 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.
|
|
569
|
-
*
|
|
570
|
-
* This endpoint is available to all users in the organization.
|
|
571
|
-
*
|
|
572
|
-
*/
|
|
573
|
-
static listUsers(options) {
|
|
574
|
-
return (options?.client ?? client).get({
|
|
575
|
-
url: '/users',
|
|
576
|
-
...options
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
* Create a new user.
|
|
581
|
-
* 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.
|
|
715
|
+
* Get applied promotional credits
|
|
582
716
|
*
|
|
583
|
-
|
|
584
|
-
static createUser(options) {
|
|
585
|
-
return (options.client ?? client).post({
|
|
586
|
-
url: '/users',
|
|
587
|
-
...options,
|
|
588
|
-
headers: {
|
|
589
|
-
'Content-Type': 'application/json',
|
|
590
|
-
...options.headers
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* Delete user by id.
|
|
596
|
-
* Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
|
|
717
|
+
* 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.
|
|
597
718
|
*
|
|
598
719
|
*/
|
|
599
|
-
static
|
|
600
|
-
return (options
|
|
601
|
-
url: '/users/{user_id}',
|
|
602
|
-
...options
|
|
603
|
-
});
|
|
720
|
+
static getCredits(options) {
|
|
721
|
+
return (options?.client ?? client).get({ url: '/billing/credits', ...options });
|
|
604
722
|
}
|
|
605
723
|
/**
|
|
606
|
-
*
|
|
607
|
-
* Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
|
|
608
|
-
*
|
|
609
|
-
* This endpoint is available to all users in the organization.
|
|
724
|
+
* Redeem promotional credits code.
|
|
610
725
|
*
|
|
611
|
-
|
|
612
|
-
static getUser(options) {
|
|
613
|
-
return (options.client ?? client).get({
|
|
614
|
-
url: '/users/{user_id}',
|
|
615
|
-
...options
|
|
616
|
-
});
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* Update user profile information.
|
|
620
|
-
* 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.
|
|
726
|
+
* 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.
|
|
621
727
|
*
|
|
622
728
|
*/
|
|
623
|
-
static
|
|
624
|
-
return (options.client ?? client).
|
|
625
|
-
url: '/
|
|
729
|
+
static redeemCredits(options) {
|
|
730
|
+
return (options.client ?? client).post({
|
|
731
|
+
url: '/billing/credits',
|
|
626
732
|
...options,
|
|
627
733
|
headers: {
|
|
628
734
|
'Content-Type': 'application/json',
|