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