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