@cloudfleet/sdk 0.0.1-c144916 → 0.0.1-c3098ca
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 +410 -386
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +419 -383
- package/dist/@tanstack/react-query.gen.js.map +1 -1
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +1 -4
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +1 -1
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +2 -2
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +3 -3
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/core/params.gen.js +4 -4
- package/dist/core/params.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +405 -76
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +528 -140
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +228 -216
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +328 -312
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1045 -717
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1585 -1436
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +429 -313
- package/dist/zod.gen.js.map +1 -1
- package/package.json +8 -11
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,61 +277,55 @@ 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.
|
|
283
|
+
* MCP endpoint
|
|
278
284
|
*
|
|
285
|
+
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
279
286
|
*/
|
|
280
|
-
static
|
|
281
|
-
return (options.client ?? client).
|
|
287
|
+
static postMcp(options) {
|
|
288
|
+
return (options.client ?? client).post({
|
|
289
|
+
url: '/mcp',
|
|
290
|
+
...options,
|
|
291
|
+
headers: {
|
|
292
|
+
'Content-Type': 'application/json',
|
|
293
|
+
...options.headers
|
|
294
|
+
}
|
|
295
|
+
});
|
|
282
296
|
}
|
|
297
|
+
}
|
|
298
|
+
export class ChartsMarketplaceService {
|
|
283
299
|
/**
|
|
284
|
-
*
|
|
300
|
+
* List chart listings available in the marketplace.
|
|
285
301
|
*
|
|
286
|
-
* Returns
|
|
302
|
+
* Returns a list of available charts in the marketplace.
|
|
287
303
|
*
|
|
288
304
|
* This endpoint is available to all users in the organization.
|
|
289
305
|
*
|
|
290
306
|
*/
|
|
291
|
-
static
|
|
292
|
-
return (options
|
|
307
|
+
static listMarketplaceCharts(options) {
|
|
308
|
+
return (options?.client ?? client).get({ url: '/marketplace', ...options });
|
|
293
309
|
}
|
|
294
310
|
/**
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
* This endpoint allows you to update cluster details, including quota and cluster status. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentaiton.
|
|
311
|
+
* Get chart files for a specific version channel.
|
|
298
312
|
*
|
|
299
|
-
*
|
|
313
|
+
* Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
|
|
300
314
|
*
|
|
301
|
-
|
|
302
|
-
static updateCluster(options) {
|
|
303
|
-
return (options.client ?? client).put({
|
|
304
|
-
url: '/clusters/{cluster_id}',
|
|
305
|
-
...options,
|
|
306
|
-
headers: {
|
|
307
|
-
'Content-Type': 'application/json',
|
|
308
|
-
...options.headers
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* Node join information for the cluster
|
|
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.
|
|
314
316
|
*
|
|
315
|
-
*
|
|
317
|
+
* This endpoint is available to all users in the organization.
|
|
316
318
|
*
|
|
317
319
|
*/
|
|
318
|
-
static
|
|
319
|
-
return (options.client ?? client).
|
|
320
|
+
static getMarketplaceChartFiles(options) {
|
|
321
|
+
return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
|
|
320
322
|
}
|
|
321
323
|
}
|
|
322
324
|
export class InvitesService {
|
|
323
325
|
/**
|
|
324
326
|
* List invites.
|
|
325
327
|
*
|
|
326
|
-
* 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.
|
|
327
329
|
*
|
|
328
330
|
*/
|
|
329
331
|
static listInvites(options) {
|
|
@@ -348,7 +350,7 @@ export class InvitesService {
|
|
|
348
350
|
/**
|
|
349
351
|
* Get invite information.
|
|
350
352
|
*
|
|
351
|
-
*
|
|
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.
|
|
352
354
|
*
|
|
353
355
|
*/
|
|
354
356
|
static getInvite(options) {
|
|
@@ -364,41 +366,37 @@ export class InvitesService {
|
|
|
364
366
|
return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
|
|
365
367
|
}
|
|
366
368
|
}
|
|
367
|
-
export class
|
|
369
|
+
export class ClustersService {
|
|
368
370
|
/**
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
* Returns a list of available charts in the marketplace.
|
|
372
|
-
*
|
|
373
|
-
* This endpoint is available to all users in the organization.
|
|
371
|
+
* Query Kubernetes cluster API
|
|
374
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.
|
|
375
374
|
*/
|
|
376
|
-
static
|
|
377
|
-
return (options
|
|
375
|
+
static queryCluster(options) {
|
|
376
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
|
|
378
377
|
}
|
|
379
378
|
/**
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
* Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
|
|
379
|
+
* List fleets.
|
|
383
380
|
*
|
|
384
|
-
*
|
|
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.
|
|
385
382
|
*
|
|
386
383
|
* This endpoint is available to all users in the organization.
|
|
387
384
|
*
|
|
388
385
|
*/
|
|
389
|
-
static
|
|
390
|
-
return (options.client ?? client).get({ url: '/
|
|
386
|
+
static listFleets(options) {
|
|
387
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
|
|
391
388
|
}
|
|
392
|
-
}
|
|
393
|
-
export class McpService {
|
|
394
389
|
/**
|
|
395
|
-
*
|
|
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.
|
|
396
395
|
*
|
|
397
|
-
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
398
396
|
*/
|
|
399
|
-
static
|
|
397
|
+
static createFleet(options) {
|
|
400
398
|
return (options.client ?? client).post({
|
|
401
|
-
url: '/
|
|
399
|
+
url: '/clusters/{cluster_id}/fleets',
|
|
402
400
|
...options,
|
|
403
401
|
headers: {
|
|
404
402
|
'Content-Type': 'application/json',
|
|
@@ -406,28 +404,41 @@ export class McpService {
|
|
|
406
404
|
}
|
|
407
405
|
});
|
|
408
406
|
}
|
|
409
|
-
}
|
|
410
|
-
export class OrganizationService {
|
|
411
407
|
/**
|
|
412
|
-
*
|
|
408
|
+
* Permanently delete fleet.
|
|
413
409
|
*
|
|
414
|
-
*
|
|
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.
|
|
415
422
|
*
|
|
416
423
|
* This endpoint is available to all users in the organization.
|
|
417
424
|
*
|
|
418
425
|
*/
|
|
419
|
-
static
|
|
420
|
-
return (options
|
|
426
|
+
static getFleet(options) {
|
|
427
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
421
428
|
}
|
|
422
429
|
/**
|
|
423
|
-
*
|
|
430
|
+
* Update fleet information.
|
|
424
431
|
*
|
|
425
|
-
* 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.
|
|
426
437
|
*
|
|
427
438
|
*/
|
|
428
|
-
static
|
|
429
|
-
return (options.client ?? client).
|
|
430
|
-
url: '/
|
|
439
|
+
static updateFleet(options) {
|
|
440
|
+
return (options.client ?? client).put({
|
|
441
|
+
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
431
442
|
...options,
|
|
432
443
|
headers: {
|
|
433
444
|
'Content-Type': 'application/json',
|
|
@@ -435,132 +446,137 @@ export class OrganizationService {
|
|
|
435
446
|
}
|
|
436
447
|
});
|
|
437
448
|
}
|
|
438
|
-
}
|
|
439
|
-
export class RegistryService {
|
|
440
449
|
/**
|
|
441
|
-
* List
|
|
442
|
-
*
|
|
443
|
-
* Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
|
|
450
|
+
* List charts.
|
|
444
451
|
*
|
|
445
|
-
|
|
446
|
-
static listRepositories(options) {
|
|
447
|
-
return (options?.client ?? client).get({ url: '/registry', ...options });
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* List tags for a repository
|
|
452
|
+
* Returns a list of charts in the cluster.
|
|
451
453
|
*
|
|
452
|
-
*
|
|
454
|
+
* This endpoint is available to all users in the organization.
|
|
453
455
|
*
|
|
454
456
|
*/
|
|
455
|
-
static
|
|
456
|
-
return (options.client ?? client).get({ url: '/
|
|
457
|
+
static listCharts(options) {
|
|
458
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
|
|
457
459
|
}
|
|
458
460
|
/**
|
|
459
|
-
*
|
|
461
|
+
* Create a new chart.
|
|
460
462
|
*
|
|
461
|
-
*
|
|
463
|
+
* Create a new chart deployment.
|
|
464
|
+
*
|
|
465
|
+
* This endpoint is available to administrators of the organization only.
|
|
462
466
|
*
|
|
463
467
|
*/
|
|
464
|
-
static
|
|
465
|
-
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
|
+
});
|
|
466
477
|
}
|
|
467
478
|
/**
|
|
468
|
-
*
|
|
479
|
+
* Permanently delete the chart deployment from the cluster.
|
|
469
480
|
*
|
|
470
|
-
*
|
|
481
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
482
|
+
*
|
|
483
|
+
* This endpoint is available to administrators of the organization only.
|
|
471
484
|
*
|
|
472
485
|
*/
|
|
473
|
-
static
|
|
474
|
-
return (options.client ?? client).
|
|
486
|
+
static deleteChart(options) {
|
|
487
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
475
488
|
}
|
|
476
|
-
}
|
|
477
|
-
export class TicketsService {
|
|
478
489
|
/**
|
|
479
|
-
*
|
|
490
|
+
* Get chart information.
|
|
480
491
|
*
|
|
481
|
-
* Returns
|
|
492
|
+
* Returns the details of the chart deployment.
|
|
493
|
+
*
|
|
494
|
+
* This endpoint is available to all users in the organization.
|
|
482
495
|
*
|
|
483
496
|
*/
|
|
484
|
-
static
|
|
485
|
-
return (options
|
|
497
|
+
static getChart(options) {
|
|
498
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
486
499
|
}
|
|
487
500
|
/**
|
|
488
|
-
*
|
|
501
|
+
* Update chart information.
|
|
489
502
|
*
|
|
490
|
-
*
|
|
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.
|
|
491
506
|
*
|
|
492
507
|
*/
|
|
493
|
-
static
|
|
494
|
-
return (options.client ?? client).
|
|
495
|
-
|
|
496
|
-
url: '/tickets',
|
|
508
|
+
static updateChart(options) {
|
|
509
|
+
return (options.client ?? client).put({
|
|
510
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
497
511
|
...options,
|
|
498
512
|
headers: {
|
|
499
|
-
'Content-Type':
|
|
513
|
+
'Content-Type': 'application/json',
|
|
500
514
|
...options.headers
|
|
501
515
|
}
|
|
502
516
|
});
|
|
503
517
|
}
|
|
504
518
|
/**
|
|
505
|
-
*
|
|
519
|
+
* List clusters.
|
|
506
520
|
*
|
|
507
|
-
*
|
|
521
|
+
* Returns a list of clusters under the current organization.
|
|
522
|
+
*
|
|
523
|
+
* This endpoint is available to all users in the organization.
|
|
508
524
|
*
|
|
509
525
|
*/
|
|
510
|
-
static
|
|
511
|
-
return (options
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* Get a ticket and its messages.
|
|
515
|
-
*/
|
|
516
|
-
static getTicket(options) {
|
|
517
|
-
return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
|
|
526
|
+
static listClusters(options) {
|
|
527
|
+
return (options?.client ?? client).get({ url: '/clusters', ...options });
|
|
518
528
|
}
|
|
519
529
|
/**
|
|
520
|
-
*
|
|
530
|
+
* Create a new cluster.
|
|
521
531
|
*
|
|
522
|
-
*
|
|
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.
|
|
523
535
|
*
|
|
524
536
|
*/
|
|
525
|
-
static
|
|
537
|
+
static createCluster(options) {
|
|
526
538
|
return (options.client ?? client).post({
|
|
527
|
-
|
|
528
|
-
url: '/tickets/{ticket_id}/messages',
|
|
539
|
+
url: '/clusters',
|
|
529
540
|
...options,
|
|
530
541
|
headers: {
|
|
531
|
-
'Content-Type':
|
|
542
|
+
'Content-Type': 'application/json',
|
|
532
543
|
...options.headers
|
|
533
544
|
}
|
|
534
545
|
});
|
|
535
546
|
}
|
|
536
547
|
/**
|
|
537
|
-
*
|
|
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
|
+
*
|
|
538
554
|
*/
|
|
539
|
-
static
|
|
540
|
-
return (options.client ?? client).
|
|
555
|
+
static deleteCluster(options) {
|
|
556
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
|
|
541
557
|
}
|
|
542
|
-
}
|
|
543
|
-
export class TokensService {
|
|
544
558
|
/**
|
|
545
|
-
*
|
|
559
|
+
* Get cluster information.
|
|
546
560
|
*
|
|
547
|
-
*
|
|
561
|
+
* Returns cluster details.
|
|
562
|
+
*
|
|
563
|
+
* This endpoint is available to all users in the organization.
|
|
548
564
|
*
|
|
549
565
|
*/
|
|
550
|
-
static
|
|
551
|
-
return (options
|
|
566
|
+
static getCluster(options) {
|
|
567
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
|
|
552
568
|
}
|
|
553
569
|
/**
|
|
554
|
-
*
|
|
570
|
+
* Update cluster information.
|
|
555
571
|
*
|
|
556
|
-
* This endpoint allows you to
|
|
572
|
+
* 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.
|
|
557
573
|
*
|
|
558
574
|
* This endpoint is available to administrators of the organization only.
|
|
559
575
|
*
|
|
560
576
|
*/
|
|
561
|
-
static
|
|
562
|
-
return (options.client ?? client).
|
|
563
|
-
url: '/
|
|
577
|
+
static updateCluster(options) {
|
|
578
|
+
return (options.client ?? client).put({
|
|
579
|
+
url: '/clusters/{cluster_id}',
|
|
564
580
|
...options,
|
|
565
581
|
headers: {
|
|
566
582
|
'Content-Type': 'application/json',
|
|
@@ -569,77 +585,88 @@ export class TokensService {
|
|
|
569
585
|
});
|
|
570
586
|
}
|
|
571
587
|
/**
|
|
572
|
-
*
|
|
588
|
+
* Node join information for the cluster
|
|
573
589
|
*
|
|
574
|
-
*
|
|
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.
|
|
575
591
|
*
|
|
576
592
|
*/
|
|
577
|
-
static
|
|
578
|
-
return (options.client ?? client).
|
|
593
|
+
static getJoinInformation(options) {
|
|
594
|
+
return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
|
|
579
595
|
}
|
|
596
|
+
}
|
|
597
|
+
export class BillingService {
|
|
580
598
|
/**
|
|
581
|
-
* Get
|
|
599
|
+
* Get billing usage information.
|
|
582
600
|
*
|
|
583
|
-
*
|
|
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.
|
|
584
602
|
*
|
|
585
603
|
*/
|
|
586
|
-
static
|
|
587
|
-
return (options
|
|
604
|
+
static getUsage(options) {
|
|
605
|
+
return (options?.client ?? client).get({ url: '/billing/usage', ...options });
|
|
588
606
|
}
|
|
589
607
|
/**
|
|
590
|
-
*
|
|
608
|
+
* Get Stripe client secret.
|
|
591
609
|
*
|
|
592
|
-
*
|
|
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.
|
|
593
611
|
*
|
|
594
|
-
|
|
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.
|
|
595
620
|
*
|
|
596
621
|
*/
|
|
597
|
-
static
|
|
598
|
-
return (options
|
|
599
|
-
url: '/tokens/{token_id}',
|
|
600
|
-
...options,
|
|
601
|
-
headers: {
|
|
602
|
-
'Content-Type': 'application/json',
|
|
603
|
-
...options.headers
|
|
604
|
-
}
|
|
605
|
-
});
|
|
622
|
+
static listPaymentMethods(options) {
|
|
623
|
+
return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
|
|
606
624
|
}
|
|
607
625
|
/**
|
|
608
|
-
*
|
|
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.
|
|
609
629
|
*
|
|
610
|
-
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
611
630
|
*/
|
|
612
|
-
static
|
|
613
|
-
return (options.client ?? client).put({ url: '/
|
|
631
|
+
static setDefaultPaymentMethod(options) {
|
|
632
|
+
return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
|
|
614
633
|
}
|
|
615
|
-
}
|
|
616
|
-
export class UsersService {
|
|
617
634
|
/**
|
|
618
|
-
*
|
|
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
|
+
*
|
|
619
639
|
*/
|
|
620
|
-
static
|
|
621
|
-
return (options.client ?? client).
|
|
640
|
+
static deletePaymentMethod(options) {
|
|
641
|
+
return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
|
|
622
642
|
}
|
|
623
643
|
/**
|
|
624
|
-
* List
|
|
644
|
+
* List issued invoices.
|
|
625
645
|
*
|
|
626
|
-
* 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.
|
|
627
647
|
*
|
|
628
|
-
|
|
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.
|
|
629
656
|
*
|
|
630
657
|
*/
|
|
631
|
-
static
|
|
632
|
-
return (options?.client ?? client).get({ url: '/
|
|
658
|
+
static getContact(options) {
|
|
659
|
+
return (options?.client ?? client).get({ url: '/billing/contact', ...options });
|
|
633
660
|
}
|
|
634
661
|
/**
|
|
635
|
-
*
|
|
662
|
+
* Update organization contact information and billing address.
|
|
636
663
|
*
|
|
637
|
-
*
|
|
664
|
+
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
638
665
|
*
|
|
639
666
|
*/
|
|
640
|
-
static
|
|
641
|
-
return (options.client ?? client).
|
|
642
|
-
url: '/
|
|
667
|
+
static updateContact(options) {
|
|
668
|
+
return (options.client ?? client).put({
|
|
669
|
+
url: '/billing/contact',
|
|
643
670
|
...options,
|
|
644
671
|
headers: {
|
|
645
672
|
'Content-Type': 'application/json',
|
|
@@ -648,34 +675,23 @@ export class UsersService {
|
|
|
648
675
|
});
|
|
649
676
|
}
|
|
650
677
|
/**
|
|
651
|
-
*
|
|
652
|
-
*
|
|
653
|
-
* Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
|
|
654
|
-
*
|
|
655
|
-
*/
|
|
656
|
-
static deleteUser(options) {
|
|
657
|
-
return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
|
|
658
|
-
}
|
|
659
|
-
/**
|
|
660
|
-
* Get user profile information by id.
|
|
661
|
-
*
|
|
662
|
-
* 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
|
|
663
679
|
*
|
|
664
|
-
* 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.
|
|
665
681
|
*
|
|
666
682
|
*/
|
|
667
|
-
static
|
|
668
|
-
return (options
|
|
683
|
+
static getCredits(options) {
|
|
684
|
+
return (options?.client ?? client).get({ url: '/billing/credits', ...options });
|
|
669
685
|
}
|
|
670
686
|
/**
|
|
671
|
-
*
|
|
687
|
+
* Redeem promotional credits code.
|
|
672
688
|
*
|
|
673
|
-
*
|
|
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.
|
|
674
690
|
*
|
|
675
691
|
*/
|
|
676
|
-
static
|
|
677
|
-
return (options.client ?? client).
|
|
678
|
-
url: '/
|
|
692
|
+
static redeemCredits(options) {
|
|
693
|
+
return (options.client ?? client).post({
|
|
694
|
+
url: '/billing/credits',
|
|
679
695
|
...options,
|
|
680
696
|
headers: {
|
|
681
697
|
'Content-Type': 'application/json',
|