@cloudfleet/sdk 0.0.1-1fc3e29 → 0.0.1-1ffe7d4
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 +1084 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1305 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +217 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.gen.d.ts +121 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/utils.gen.d.ts +38 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +229 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +4 -4
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +2 -4
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts +19 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.js +15 -0
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/bodySerializer.gen.js +58 -0
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/params.gen.d.ts +44 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +101 -0
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts +34 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.js +107 -0
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/types.gen.d.ts +79 -0
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +1953 -704
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +3321 -682
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +347 -165
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +495 -331
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +2115 -839
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +4130 -2745
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1567 -994
- package/dist/zod.gen.js.map +1 -1
- package/package.json +28 -9
package/dist/sdk.gen.js
CHANGED
|
@@ -1,91 +1,266 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { formDataBodySerializer } from './client';
|
|
3
|
+
import { client } from './client.gen';
|
|
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 ??
|
|
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.
|
|
18
42
|
*
|
|
19
43
|
*/
|
|
20
|
-
static
|
|
21
|
-
return (options
|
|
22
|
-
|
|
23
|
-
|
|
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.
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
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 ??
|
|
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` and `grant_support_access`, 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.
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
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
|
+
* Grant Cloudfleet support access for a ticket.
|
|
192
|
+
*
|
|
193
|
+
* Grants Cloudfleet support staff access to the organization's resources while the ticket is open. Access cannot be revoked; it ends when the ticket is closed. Idempotent: granting again keeps the original grant. Returns 409 if the ticket is closed.
|
|
62
194
|
*
|
|
63
195
|
*/
|
|
64
|
-
static
|
|
65
|
-
return (options.client ??
|
|
66
|
-
|
|
67
|
-
|
|
196
|
+
static grantTicketSupportAccess(options) {
|
|
197
|
+
return (options.client ?? client).put({ url: '/tickets/{ticket_id}/support-access', ...options });
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Append a customer reply to a ticket.
|
|
201
|
+
*
|
|
202
|
+
* Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
|
|
203
|
+
*
|
|
204
|
+
*/
|
|
205
|
+
static replyTicket(options) {
|
|
206
|
+
return (options.client ?? client).post({
|
|
207
|
+
...formDataBodySerializer,
|
|
208
|
+
url: '/tickets/{ticket_id}/messages',
|
|
209
|
+
...options,
|
|
210
|
+
headers: {
|
|
211
|
+
'Content-Type': null,
|
|
212
|
+
...options.headers
|
|
213
|
+
}
|
|
68
214
|
});
|
|
69
215
|
}
|
|
70
216
|
/**
|
|
71
|
-
*
|
|
72
|
-
|
|
217
|
+
* Download a ticket attachment.
|
|
218
|
+
*/
|
|
219
|
+
static getTicketAttachment(options) {
|
|
220
|
+
return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export class RoadmapService {
|
|
224
|
+
/**
|
|
225
|
+
* List roadmap items.
|
|
226
|
+
*
|
|
227
|
+
* Returns the published roadmap items, newest first, each with your own vote. Votes of other users are not returned.
|
|
73
228
|
*
|
|
74
229
|
*/
|
|
75
|
-
static
|
|
76
|
-
return (options?.client ??
|
|
77
|
-
|
|
78
|
-
|
|
230
|
+
static listRoadmap(options) {
|
|
231
|
+
return (options?.client ?? client).get({ url: '/roadmap', ...options });
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Suggest a new roadmap item.
|
|
235
|
+
*
|
|
236
|
+
* 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.
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
static suggestRoadmap(options) {
|
|
240
|
+
return (options.client ?? client).post({
|
|
241
|
+
url: '/roadmap',
|
|
242
|
+
...options,
|
|
243
|
+
headers: {
|
|
244
|
+
'Content-Type': 'application/json',
|
|
245
|
+
...options.headers
|
|
246
|
+
}
|
|
79
247
|
});
|
|
80
248
|
}
|
|
81
249
|
/**
|
|
82
|
-
*
|
|
83
|
-
|
|
250
|
+
* Remove your vote from a roadmap item.
|
|
251
|
+
*/
|
|
252
|
+
static unvoteRoadmap(options) {
|
|
253
|
+
return (options.client ?? client).delete({ url: '/roadmap/{item_id}/vote', ...options });
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Vote on a roadmap item.
|
|
257
|
+
*
|
|
258
|
+
* Sets your vote on a roadmap item: -1 (down), 1 (up), or 2 (double up). Replaces any previous vote you cast on the item.
|
|
84
259
|
*
|
|
85
260
|
*/
|
|
86
|
-
static
|
|
87
|
-
return (options.client ??
|
|
88
|
-
url: '/
|
|
261
|
+
static voteRoadmap(options) {
|
|
262
|
+
return (options.client ?? client).put({
|
|
263
|
+
url: '/roadmap/{item_id}/vote',
|
|
89
264
|
...options,
|
|
90
265
|
headers: {
|
|
91
266
|
'Content-Type': 'application/json',
|
|
@@ -93,25 +268,83 @@ export class BillingService {
|
|
|
93
268
|
}
|
|
94
269
|
});
|
|
95
270
|
}
|
|
271
|
+
}
|
|
272
|
+
export class RegistryService {
|
|
96
273
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
274
|
+
* List repositories
|
|
275
|
+
*
|
|
276
|
+
* Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
|
|
99
277
|
*
|
|
100
278
|
*/
|
|
101
|
-
static
|
|
102
|
-
return (options?.client ??
|
|
103
|
-
|
|
104
|
-
|
|
279
|
+
static listRepositories(options) {
|
|
280
|
+
return (options?.client ?? client).get({ url: '/registry', ...options });
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* List tags for a repository
|
|
284
|
+
*
|
|
285
|
+
* 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.
|
|
286
|
+
*
|
|
287
|
+
*/
|
|
288
|
+
static listTags(options) {
|
|
289
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Delete tag
|
|
293
|
+
*
|
|
294
|
+
* Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
|
|
295
|
+
*
|
|
296
|
+
*/
|
|
297
|
+
static deleteTag(options) {
|
|
298
|
+
return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Get tag details
|
|
302
|
+
*
|
|
303
|
+
* 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.
|
|
304
|
+
*
|
|
305
|
+
*/
|
|
306
|
+
static getTag(options) {
|
|
307
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
export class OrganizationService {
|
|
311
|
+
/**
|
|
312
|
+
* Get organization information.
|
|
313
|
+
*
|
|
314
|
+
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
315
|
+
*
|
|
316
|
+
* This endpoint is available to all users in the organization.
|
|
317
|
+
*
|
|
318
|
+
*/
|
|
319
|
+
static getOrganization(options) {
|
|
320
|
+
return (options?.client ?? client).get({ url: '/organization', ...options });
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Create a new organization / Cloudfleet account signup.
|
|
324
|
+
*
|
|
325
|
+
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
326
|
+
*
|
|
327
|
+
*/
|
|
328
|
+
static createOrganization(options) {
|
|
329
|
+
return (options.client ?? client).post({
|
|
330
|
+
url: '/organization',
|
|
331
|
+
...options,
|
|
332
|
+
headers: {
|
|
333
|
+
'Content-Type': 'application/json',
|
|
334
|
+
...options.headers
|
|
335
|
+
}
|
|
105
336
|
});
|
|
106
337
|
}
|
|
338
|
+
}
|
|
339
|
+
export class McpService {
|
|
107
340
|
/**
|
|
108
|
-
*
|
|
109
|
-
* 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.
|
|
341
|
+
* MCP endpoint
|
|
110
342
|
*
|
|
343
|
+
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
111
344
|
*/
|
|
112
|
-
static
|
|
113
|
-
return (options.client ??
|
|
114
|
-
url: '/
|
|
345
|
+
static postMcp(options) {
|
|
346
|
+
return (options.client ?? client).post({
|
|
347
|
+
url: '/mcp',
|
|
115
348
|
...options,
|
|
116
349
|
headers: {
|
|
117
350
|
'Content-Type': 'application/json',
|
|
@@ -120,30 +353,51 @@ export class BillingService {
|
|
|
120
353
|
});
|
|
121
354
|
}
|
|
122
355
|
}
|
|
123
|
-
export class
|
|
356
|
+
export class ChartsMarketplaceService {
|
|
124
357
|
/**
|
|
125
|
-
* List
|
|
126
|
-
*
|
|
358
|
+
* List chart listings available in the marketplace.
|
|
359
|
+
*
|
|
360
|
+
* Returns a list of available charts in the marketplace.
|
|
127
361
|
*
|
|
128
362
|
* This endpoint is available to all users in the organization.
|
|
129
363
|
*
|
|
130
364
|
*/
|
|
131
|
-
static
|
|
132
|
-
return (options
|
|
133
|
-
url: '/clusters/{cluster_id}/charts',
|
|
134
|
-
...options
|
|
135
|
-
});
|
|
365
|
+
static listMarketplaceCharts(options) {
|
|
366
|
+
return (options?.client ?? client).get({ url: '/marketplace', ...options });
|
|
136
367
|
}
|
|
137
368
|
/**
|
|
138
|
-
*
|
|
139
|
-
* Create a new chart deployment.
|
|
369
|
+
* Get chart files for a specific version channel.
|
|
140
370
|
*
|
|
141
|
-
*
|
|
371
|
+
* Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
|
|
372
|
+
*
|
|
373
|
+
* 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.
|
|
374
|
+
*
|
|
375
|
+
* This endpoint is available to all users in the organization.
|
|
142
376
|
*
|
|
143
377
|
*/
|
|
144
|
-
static
|
|
145
|
-
return (options.client ??
|
|
146
|
-
|
|
378
|
+
static getMarketplaceChartFiles(options) {
|
|
379
|
+
return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
export class InvitesService {
|
|
383
|
+
/**
|
|
384
|
+
* List invites.
|
|
385
|
+
*
|
|
386
|
+
* Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
|
|
387
|
+
*
|
|
388
|
+
*/
|
|
389
|
+
static listInvites(options) {
|
|
390
|
+
return (options?.client ?? client).get({ url: '/invites', ...options });
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Create a new invite.
|
|
394
|
+
*
|
|
395
|
+
* 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.
|
|
396
|
+
*
|
|
397
|
+
*/
|
|
398
|
+
static createInvite(options) {
|
|
399
|
+
return (options.client ?? client).post({
|
|
400
|
+
url: '/invites',
|
|
147
401
|
...options,
|
|
148
402
|
headers: {
|
|
149
403
|
'Content-Type': 'application/json',
|
|
@@ -152,41 +406,34 @@ export class ClustersService {
|
|
|
152
406
|
});
|
|
153
407
|
}
|
|
154
408
|
/**
|
|
155
|
-
*
|
|
156
|
-
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
409
|
+
* Get invite information.
|
|
157
410
|
*
|
|
158
|
-
* This endpoint is
|
|
411
|
+
* 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.
|
|
159
412
|
*
|
|
160
413
|
*/
|
|
161
|
-
static
|
|
162
|
-
return (options.client ??
|
|
163
|
-
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
164
|
-
...options
|
|
165
|
-
});
|
|
414
|
+
static getInvite(options) {
|
|
415
|
+
return (options.client ?? client).get({ url: '/invites/{code}', ...options });
|
|
166
416
|
}
|
|
167
417
|
/**
|
|
168
|
-
*
|
|
169
|
-
* Returns the details of the chart deployment.
|
|
418
|
+
* Permanently delete invite.
|
|
170
419
|
*
|
|
171
|
-
* This endpoint is available to
|
|
420
|
+
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
172
421
|
*
|
|
173
422
|
*/
|
|
174
|
-
static
|
|
175
|
-
return (options.client ??
|
|
176
|
-
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
177
|
-
...options
|
|
178
|
-
});
|
|
423
|
+
static deleteInvite(options) {
|
|
424
|
+
return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
|
|
179
425
|
}
|
|
426
|
+
}
|
|
427
|
+
export class FeedbackService {
|
|
180
428
|
/**
|
|
181
|
-
*
|
|
182
|
-
* This endpoint allows you to update the values of a chart deployment.
|
|
429
|
+
* Send feedback to the Cloudfleet team
|
|
183
430
|
*
|
|
184
|
-
*
|
|
431
|
+
* Sends feedback straight to the Cloudfleet team: papercuts the team can act on from the note alone, such as what was useful, confusing, wrong or missing. This is not a support channel: for a problem that needs back-and-forth or debugging, open a support ticket with `POST /tickets` instead.
|
|
185
432
|
*
|
|
186
433
|
*/
|
|
187
|
-
static
|
|
188
|
-
return (options.client ??
|
|
189
|
-
url: '/
|
|
434
|
+
static sendFeedback(options) {
|
|
435
|
+
return (options.client ?? client).post({
|
|
436
|
+
url: '/feedback',
|
|
190
437
|
...options,
|
|
191
438
|
headers: {
|
|
192
439
|
'Content-Type': 'application/json',
|
|
@@ -194,28 +441,39 @@ export class ClustersService {
|
|
|
194
441
|
}
|
|
195
442
|
});
|
|
196
443
|
}
|
|
444
|
+
}
|
|
445
|
+
export class ClustersService {
|
|
446
|
+
/**
|
|
447
|
+
* Query Kubernetes cluster API
|
|
448
|
+
*
|
|
449
|
+
* 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.
|
|
450
|
+
*/
|
|
451
|
+
static queryCluster(options) {
|
|
452
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
|
|
453
|
+
}
|
|
197
454
|
/**
|
|
198
455
|
* List fleets.
|
|
456
|
+
*
|
|
199
457
|
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
200
458
|
*
|
|
201
459
|
* This endpoint is available to all users in the organization.
|
|
202
460
|
*
|
|
203
461
|
*/
|
|
204
462
|
static listFleets(options) {
|
|
205
|
-
return (options.client ??
|
|
206
|
-
url: '/clusters/{cluster_id}/fleets',
|
|
207
|
-
...options
|
|
208
|
-
});
|
|
463
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
|
|
209
464
|
}
|
|
210
465
|
/**
|
|
211
466
|
* Create a new fleet.
|
|
467
|
+
*
|
|
212
468
|
* 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.
|
|
213
469
|
*
|
|
470
|
+
* The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
|
|
471
|
+
*
|
|
214
472
|
* This endpoint is available to administrators of the organization only.
|
|
215
473
|
*
|
|
216
474
|
*/
|
|
217
475
|
static createFleet(options) {
|
|
218
|
-
return (options.client ??
|
|
476
|
+
return (options.client ?? client).post({
|
|
219
477
|
url: '/clusters/{cluster_id}/fleets',
|
|
220
478
|
...options,
|
|
221
479
|
headers: {
|
|
@@ -226,43 +484,42 @@ export class ClustersService {
|
|
|
226
484
|
}
|
|
227
485
|
/**
|
|
228
486
|
* Permanently delete fleet.
|
|
229
|
-
*
|
|
487
|
+
*
|
|
488
|
+
* 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.
|
|
489
|
+
*
|
|
490
|
+
* 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.
|
|
230
491
|
*
|
|
231
492
|
* This endpoint is available to administrators of the organization only.
|
|
232
493
|
*
|
|
233
494
|
*/
|
|
234
495
|
static deleteFleet(options) {
|
|
235
|
-
return (options.client ??
|
|
236
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
237
|
-
...options
|
|
238
|
-
});
|
|
496
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
239
497
|
}
|
|
240
498
|
/**
|
|
241
499
|
* Get fleet information.
|
|
500
|
+
*
|
|
242
501
|
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
243
502
|
*
|
|
244
503
|
* This endpoint is available to all users in the organization.
|
|
245
504
|
*
|
|
246
505
|
*/
|
|
247
506
|
static getFleet(options) {
|
|
248
|
-
return (options.client ??
|
|
249
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
250
|
-
...options
|
|
251
|
-
});
|
|
507
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
252
508
|
}
|
|
253
509
|
/**
|
|
254
510
|
* Update fleet information.
|
|
255
|
-
* This endpoint allows you to update fleet details.
|
|
256
511
|
*
|
|
257
|
-
*
|
|
512
|
+
* This endpoint allows you to update fleet details.
|
|
258
513
|
*
|
|
259
514
|
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
260
515
|
*
|
|
516
|
+
* 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).
|
|
517
|
+
*
|
|
261
518
|
* This endpoint is available to administrators of the organization only.
|
|
262
519
|
*
|
|
263
520
|
*/
|
|
264
521
|
static updateFleet(options) {
|
|
265
|
-
return (options.client ??
|
|
522
|
+
return (options.client ?? client).put({
|
|
266
523
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
267
524
|
...options,
|
|
268
525
|
headers: {
|
|
@@ -272,38 +529,27 @@ export class ClustersService {
|
|
|
272
529
|
});
|
|
273
530
|
}
|
|
274
531
|
/**
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
|
|
278
|
-
static queryCluster(options) {
|
|
279
|
-
return (options.client ?? _heyApiClient).get({
|
|
280
|
-
url: '/clusters/{cluster_id}/query',
|
|
281
|
-
...options
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* List clusters.
|
|
286
|
-
* Returns a list of clusters under the current organization, 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.
|
|
532
|
+
* List charts.
|
|
533
|
+
*
|
|
534
|
+
* Returns a list of charts in the cluster.
|
|
287
535
|
*
|
|
288
536
|
* This endpoint is available to all users in the organization.
|
|
289
537
|
*
|
|
290
538
|
*/
|
|
291
|
-
static
|
|
292
|
-
return (options
|
|
293
|
-
url: '/clusters',
|
|
294
|
-
...options
|
|
295
|
-
});
|
|
539
|
+
static listCharts(options) {
|
|
540
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
|
|
296
541
|
}
|
|
297
542
|
/**
|
|
298
|
-
* Create a new
|
|
299
|
-
*
|
|
543
|
+
* Create a new chart.
|
|
544
|
+
*
|
|
545
|
+
* Create a new chart deployment.
|
|
300
546
|
*
|
|
301
547
|
* This endpoint is available to administrators of the organization only.
|
|
302
548
|
*
|
|
303
549
|
*/
|
|
304
|
-
static
|
|
305
|
-
return (options.client ??
|
|
306
|
-
url: '/clusters',
|
|
550
|
+
static createChart(options) {
|
|
551
|
+
return (options.client ?? client).post({
|
|
552
|
+
url: '/clusters/{cluster_id}/charts',
|
|
307
553
|
...options,
|
|
308
554
|
headers: {
|
|
309
555
|
'Content-Type': 'application/json',
|
|
@@ -312,41 +558,38 @@ export class ClustersService {
|
|
|
312
558
|
});
|
|
313
559
|
}
|
|
314
560
|
/**
|
|
315
|
-
* Permanently delete cluster.
|
|
316
|
-
*
|
|
561
|
+
* Permanently delete the chart deployment from the cluster.
|
|
562
|
+
*
|
|
563
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
317
564
|
*
|
|
318
565
|
* This endpoint is available to administrators of the organization only.
|
|
319
566
|
*
|
|
320
567
|
*/
|
|
321
|
-
static
|
|
322
|
-
return (options.client ??
|
|
323
|
-
url: '/clusters/{cluster_id}',
|
|
324
|
-
...options
|
|
325
|
-
});
|
|
568
|
+
static deleteChart(options) {
|
|
569
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
326
570
|
}
|
|
327
571
|
/**
|
|
328
|
-
* Get
|
|
329
|
-
*
|
|
572
|
+
* Get chart information.
|
|
573
|
+
*
|
|
574
|
+
* Returns the details of the chart deployment.
|
|
330
575
|
*
|
|
331
576
|
* This endpoint is available to all users in the organization.
|
|
332
577
|
*
|
|
333
578
|
*/
|
|
334
|
-
static
|
|
335
|
-
return (options.client ??
|
|
336
|
-
url: '/clusters/{cluster_id}',
|
|
337
|
-
...options
|
|
338
|
-
});
|
|
579
|
+
static getChart(options) {
|
|
580
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
339
581
|
}
|
|
340
582
|
/**
|
|
341
|
-
* Update
|
|
342
|
-
*
|
|
583
|
+
* Update chart information.
|
|
584
|
+
*
|
|
585
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
343
586
|
*
|
|
344
587
|
* This endpoint is available to administrators of the organization only.
|
|
345
588
|
*
|
|
346
589
|
*/
|
|
347
|
-
static
|
|
348
|
-
return (options.client ??
|
|
349
|
-
url: '/clusters/{cluster_id}',
|
|
590
|
+
static updateChart(options) {
|
|
591
|
+
return (options.client ?? client).put({
|
|
592
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
350
593
|
...options,
|
|
351
594
|
headers: {
|
|
352
595
|
'Content-Type': 'application/json',
|
|
@@ -355,37 +598,27 @@ export class ClustersService {
|
|
|
355
598
|
});
|
|
356
599
|
}
|
|
357
600
|
/**
|
|
358
|
-
*
|
|
359
|
-
* 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.
|
|
601
|
+
* List clusters.
|
|
360
602
|
*
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
url: '/clusters/{cluster_id}/join_information',
|
|
365
|
-
...options
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
export class InvitesService {
|
|
370
|
-
/**
|
|
371
|
-
* List invites.
|
|
372
|
-
* Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
|
|
603
|
+
* Returns a list of clusters under the current organization.
|
|
604
|
+
*
|
|
605
|
+
* This endpoint is available to all users in the organization.
|
|
373
606
|
*
|
|
374
607
|
*/
|
|
375
|
-
static
|
|
376
|
-
return (options?.client ??
|
|
377
|
-
url: '/invites',
|
|
378
|
-
...options
|
|
379
|
-
});
|
|
608
|
+
static listClusters(options) {
|
|
609
|
+
return (options?.client ?? client).get({ url: '/clusters', ...options });
|
|
380
610
|
}
|
|
381
611
|
/**
|
|
382
|
-
* Create a new
|
|
383
|
-
*
|
|
612
|
+
* Create a new cluster.
|
|
613
|
+
*
|
|
614
|
+
* 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.
|
|
615
|
+
*
|
|
616
|
+
* This endpoint is available to administrators of the organization only.
|
|
384
617
|
*
|
|
385
618
|
*/
|
|
386
|
-
static
|
|
387
|
-
return (options.client ??
|
|
388
|
-
url: '/
|
|
619
|
+
static createCluster(options) {
|
|
620
|
+
return (options.client ?? client).post({
|
|
621
|
+
url: '/clusters',
|
|
389
622
|
...options,
|
|
390
623
|
headers: {
|
|
391
624
|
'Content-Type': 'application/json',
|
|
@@ -394,78 +627,42 @@ export class InvitesService {
|
|
|
394
627
|
});
|
|
395
628
|
}
|
|
396
629
|
/**
|
|
397
|
-
*
|
|
398
|
-
* Returns invite details.
|
|
630
|
+
* Permanently delete cluster.
|
|
399
631
|
*
|
|
400
|
-
|
|
401
|
-
static getInvite(options) {
|
|
402
|
-
return (options.client ?? _heyApiClient).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.
|
|
632
|
+
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
410
633
|
*
|
|
411
|
-
|
|
412
|
-
static deleteInvite(options) {
|
|
413
|
-
return (options.client ?? _heyApiClient).delete({
|
|
414
|
-
url: '/invites/{email}',
|
|
415
|
-
...options
|
|
416
|
-
});
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
export class ChartsMarketplaceService {
|
|
420
|
-
/**
|
|
421
|
-
* List chart listings available in the marketplace.
|
|
422
|
-
* Returns a list of available charts in the marketplace.
|
|
634
|
+
* 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.
|
|
423
635
|
*
|
|
424
|
-
* This endpoint is available to
|
|
636
|
+
* This endpoint is available to administrators of the organization only.
|
|
425
637
|
*
|
|
426
638
|
*/
|
|
427
|
-
static
|
|
428
|
-
return (options
|
|
429
|
-
url: '/marketplace',
|
|
430
|
-
...options
|
|
431
|
-
});
|
|
639
|
+
static deleteCluster(options) {
|
|
640
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
|
|
432
641
|
}
|
|
433
642
|
/**
|
|
434
|
-
* Get
|
|
435
|
-
*
|
|
643
|
+
* Get cluster information.
|
|
644
|
+
*
|
|
645
|
+
* Returns cluster details.
|
|
436
646
|
*
|
|
437
647
|
* This endpoint is available to all users in the organization.
|
|
438
648
|
*
|
|
439
649
|
*/
|
|
440
|
-
static
|
|
441
|
-
return (options.client ??
|
|
442
|
-
url: '/marketplace/{listing_id}',
|
|
443
|
-
...options
|
|
444
|
-
});
|
|
650
|
+
static getCluster(options) {
|
|
651
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
|
|
445
652
|
}
|
|
446
|
-
}
|
|
447
|
-
export class OrganizationService {
|
|
448
653
|
/**
|
|
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.
|
|
654
|
+
* Update cluster information.
|
|
451
655
|
*
|
|
452
|
-
* This endpoint
|
|
656
|
+
* 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.
|
|
453
657
|
*
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
url: '/organization',
|
|
458
|
-
...options
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
/**
|
|
462
|
-
* Create a new organization / Cloudfleet account signup.
|
|
463
|
-
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
658
|
+
* This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
|
|
659
|
+
*
|
|
660
|
+
* This endpoint is available to administrators of the organization only.
|
|
464
661
|
*
|
|
465
662
|
*/
|
|
466
|
-
static
|
|
467
|
-
return (options.client ??
|
|
468
|
-
url: '/
|
|
663
|
+
static updateCluster(options) {
|
|
664
|
+
return (options.client ?? client).put({
|
|
665
|
+
url: '/clusters/{cluster_id}',
|
|
469
666
|
...options,
|
|
470
667
|
headers: {
|
|
471
668
|
'Content-Type': 'application/json',
|
|
@@ -473,117 +670,98 @@ export class OrganizationService {
|
|
|
473
670
|
}
|
|
474
671
|
});
|
|
475
672
|
}
|
|
673
|
+
/**
|
|
674
|
+
* Node join information for the cluster
|
|
675
|
+
*
|
|
676
|
+
* 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.
|
|
677
|
+
*
|
|
678
|
+
*/
|
|
679
|
+
static getJoinInformation(options) {
|
|
680
|
+
return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
|
|
681
|
+
}
|
|
476
682
|
}
|
|
477
|
-
export class
|
|
683
|
+
export class BillingService {
|
|
478
684
|
/**
|
|
479
|
-
*
|
|
480
|
-
*
|
|
685
|
+
* Get billing usage information.
|
|
686
|
+
*
|
|
687
|
+
* 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.
|
|
481
688
|
*
|
|
482
689
|
*/
|
|
483
|
-
static
|
|
484
|
-
return (options?.client ??
|
|
485
|
-
url: '/tokens',
|
|
486
|
-
...options
|
|
487
|
-
});
|
|
690
|
+
static getUsage(options) {
|
|
691
|
+
return (options?.client ?? client).get({ url: '/billing/usage', ...options });
|
|
488
692
|
}
|
|
489
693
|
/**
|
|
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.
|
|
694
|
+
* Get Stripe client secret.
|
|
492
695
|
*
|
|
493
|
-
* This endpoint is available to administrators of the organization only.
|
|
696
|
+
* 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.
|
|
494
697
|
*
|
|
495
698
|
*/
|
|
496
|
-
static
|
|
497
|
-
return (options
|
|
498
|
-
url: '/tokens',
|
|
499
|
-
...options,
|
|
500
|
-
headers: {
|
|
501
|
-
'Content-Type': 'application/json',
|
|
502
|
-
...options.headers
|
|
503
|
-
}
|
|
504
|
-
});
|
|
699
|
+
static getPaymentMethodSecret(options) {
|
|
700
|
+
return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
|
|
505
701
|
}
|
|
506
702
|
/**
|
|
507
|
-
*
|
|
508
|
-
*
|
|
703
|
+
* List organization payment methods.
|
|
704
|
+
*
|
|
705
|
+
* 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.
|
|
509
706
|
*
|
|
510
707
|
*/
|
|
511
|
-
static
|
|
512
|
-
return (options
|
|
513
|
-
url: '/tokens/{token_id}',
|
|
514
|
-
...options
|
|
515
|
-
});
|
|
708
|
+
static listPaymentMethods(options) {
|
|
709
|
+
return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
|
|
516
710
|
}
|
|
517
711
|
/**
|
|
518
|
-
*
|
|
519
|
-
*
|
|
712
|
+
* Set the default payment method.
|
|
713
|
+
*
|
|
714
|
+
* Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
|
|
520
715
|
*
|
|
521
716
|
*/
|
|
522
|
-
static
|
|
523
|
-
return (options.client ??
|
|
524
|
-
url: '/tokens/{token_id}',
|
|
525
|
-
...options
|
|
526
|
-
});
|
|
717
|
+
static setDefaultPaymentMethod(options) {
|
|
718
|
+
return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
|
|
527
719
|
}
|
|
528
720
|
/**
|
|
529
|
-
*
|
|
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.
|
|
721
|
+
* Delete a payment method.
|
|
531
722
|
*
|
|
532
|
-
*
|
|
723
|
+
* 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.
|
|
533
724
|
*
|
|
534
725
|
*/
|
|
535
|
-
static
|
|
536
|
-
return (options.client ??
|
|
537
|
-
url: '/tokens/{token_id}',
|
|
538
|
-
...options,
|
|
539
|
-
headers: {
|
|
540
|
-
'Content-Type': 'application/json',
|
|
541
|
-
...options.headers
|
|
542
|
-
}
|
|
543
|
-
});
|
|
726
|
+
static deletePaymentMethod(options) {
|
|
727
|
+
return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
|
|
544
728
|
}
|
|
545
729
|
/**
|
|
546
|
-
*
|
|
547
|
-
*
|
|
730
|
+
* List issued invoices.
|
|
731
|
+
*
|
|
732
|
+
* 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.
|
|
733
|
+
*
|
|
548
734
|
*/
|
|
549
|
-
static
|
|
550
|
-
return (options
|
|
551
|
-
url: '/tokens/{token_id}/secret',
|
|
552
|
-
...options
|
|
553
|
-
});
|
|
735
|
+
static listInvoices(options) {
|
|
736
|
+
return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
|
|
554
737
|
}
|
|
555
|
-
}
|
|
556
|
-
export class UsersService {
|
|
557
738
|
/**
|
|
558
|
-
*
|
|
739
|
+
* Pay the organization's open invoices.
|
|
740
|
+
*
|
|
741
|
+
* Charges all open invoices of the organization against its default payment method. This endpoint is available to administrators of the organization only.
|
|
742
|
+
*
|
|
559
743
|
*/
|
|
560
|
-
static
|
|
561
|
-
return (options
|
|
562
|
-
url: '/users/organizations/{email}',
|
|
563
|
-
...options
|
|
564
|
-
});
|
|
744
|
+
static payOpenInvoices(options) {
|
|
745
|
+
return (options?.client ?? client).post({ url: '/billing/invoices/pay', ...options });
|
|
565
746
|
}
|
|
566
747
|
/**
|
|
567
|
-
*
|
|
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.
|
|
748
|
+
* Get organization contact and billing address information.
|
|
569
749
|
*
|
|
570
|
-
* This endpoint is available to all users in the organization.
|
|
750
|
+
* Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
|
|
571
751
|
*
|
|
572
752
|
*/
|
|
573
|
-
static
|
|
574
|
-
return (options?.client ??
|
|
575
|
-
url: '/users',
|
|
576
|
-
...options
|
|
577
|
-
});
|
|
753
|
+
static getContact(options) {
|
|
754
|
+
return (options?.client ?? client).get({ url: '/billing/contact', ...options });
|
|
578
755
|
}
|
|
579
756
|
/**
|
|
580
|
-
*
|
|
581
|
-
*
|
|
757
|
+
* Update organization contact information and billing address.
|
|
758
|
+
*
|
|
759
|
+
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
582
760
|
*
|
|
583
761
|
*/
|
|
584
|
-
static
|
|
585
|
-
return (options.client ??
|
|
586
|
-
url: '/
|
|
762
|
+
static updateContact(options) {
|
|
763
|
+
return (options.client ?? client).put({
|
|
764
|
+
url: '/billing/contact',
|
|
587
765
|
...options,
|
|
588
766
|
headers: {
|
|
589
767
|
'Content-Type': 'application/json',
|
|
@@ -592,37 +770,23 @@ export class UsersService {
|
|
|
592
770
|
});
|
|
593
771
|
}
|
|
594
772
|
/**
|
|
595
|
-
*
|
|
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.
|
|
597
|
-
*
|
|
598
|
-
*/
|
|
599
|
-
static deleteUser(options) {
|
|
600
|
-
return (options.client ?? _heyApiClient).delete({
|
|
601
|
-
url: '/users/{user_id}',
|
|
602
|
-
...options
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
/**
|
|
606
|
-
* Get user profile information by id.
|
|
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.
|
|
773
|
+
* Get applied promotional credits
|
|
608
774
|
*
|
|
609
|
-
* This endpoint is available to all users in the organization.
|
|
775
|
+
* 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.
|
|
610
776
|
*
|
|
611
777
|
*/
|
|
612
|
-
static
|
|
613
|
-
return (options
|
|
614
|
-
url: '/users/{user_id}',
|
|
615
|
-
...options
|
|
616
|
-
});
|
|
778
|
+
static getCredits(options) {
|
|
779
|
+
return (options?.client ?? client).get({ url: '/billing/credits', ...options });
|
|
617
780
|
}
|
|
618
781
|
/**
|
|
619
|
-
*
|
|
620
|
-
*
|
|
782
|
+
* Redeem promotional credits code.
|
|
783
|
+
*
|
|
784
|
+
* 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
785
|
*
|
|
622
786
|
*/
|
|
623
|
-
static
|
|
624
|
-
return (options.client ??
|
|
625
|
-
url: '/
|
|
787
|
+
static redeemCredits(options) {
|
|
788
|
+
return (options.client ?? client).post({
|
|
789
|
+
url: '/billing/credits',
|
|
626
790
|
...options,
|
|
627
791
|
headers: {
|
|
628
792
|
'Content-Type': 'application/json',
|