@cloudfleet/sdk 0.0.1-a104fac → 0.0.1-a3d32c9
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 +470 -319
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +496 -321
- 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 +937 -116
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1880 -192
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +260 -191
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +372 -261
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1490 -757
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3413 -1205
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1281 -296
- package/dist/zod.gen.js.map +1 -1
- package/package.json +9 -12
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',
|
|
@@ -269,38 +278,42 @@ export class ClustersService {
|
|
|
269
278
|
});
|
|
270
279
|
}
|
|
271
280
|
/**
|
|
272
|
-
*
|
|
281
|
+
* Get the organization's consent status for the new Basic price.
|
|
273
282
|
*
|
|
274
|
-
*
|
|
283
|
+
* Returns the organization's consent status for the migration from the free tier to the paid Basic plan. `pending` means an administrator must opt in; `not_applicable` means the organization is not in scope for the migration; `accepted` / `rejected` reflect a recorded decision.
|
|
275
284
|
*
|
|
276
|
-
* This endpoint is available to
|
|
285
|
+
* This endpoint is available to all users in the organization and drives the consent dialog in the console.
|
|
277
286
|
*
|
|
278
287
|
*/
|
|
279
|
-
static
|
|
280
|
-
return (options
|
|
288
|
+
static getBasicPriceConsent(options) {
|
|
289
|
+
return (options?.client ?? client).get({ url: '/organization/basic-price-consent', ...options });
|
|
281
290
|
}
|
|
282
291
|
/**
|
|
283
|
-
*
|
|
292
|
+
* Record an administrator's decision on the new Basic price.
|
|
284
293
|
*
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
* This endpoint is available to all users in the organization.
|
|
294
|
+
* Records an affirmative decision to continue on the paid Basic plan (`accepted`) or to opt out (`rejected`). This is an organization-binding financial decision, so it is restricted to administrators. Each call appends an immutable audit entry (who and when) and sends a confirmation email to the acting administrator.
|
|
288
295
|
*
|
|
289
296
|
*/
|
|
290
|
-
static
|
|
291
|
-
return (options.client ?? client).
|
|
297
|
+
static setBasicPriceConsent(options) {
|
|
298
|
+
return (options.client ?? client).post({
|
|
299
|
+
url: '/organization/basic-price-consent',
|
|
300
|
+
...options,
|
|
301
|
+
headers: {
|
|
302
|
+
'Content-Type': 'application/json',
|
|
303
|
+
...options.headers
|
|
304
|
+
}
|
|
305
|
+
});
|
|
292
306
|
}
|
|
307
|
+
}
|
|
308
|
+
export class McpService {
|
|
293
309
|
/**
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
* 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.
|
|
297
|
-
*
|
|
298
|
-
* This endpoint is available to administrators of the organization only.
|
|
310
|
+
* MCP endpoint
|
|
299
311
|
*
|
|
312
|
+
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
300
313
|
*/
|
|
301
|
-
static
|
|
302
|
-
return (options.client ?? client).
|
|
303
|
-
url: '/
|
|
314
|
+
static postMcp(options) {
|
|
315
|
+
return (options.client ?? client).post({
|
|
316
|
+
url: '/mcp',
|
|
304
317
|
...options,
|
|
305
318
|
headers: {
|
|
306
319
|
'Content-Type': 'application/json',
|
|
@@ -308,30 +321,38 @@ export class ClustersService {
|
|
|
308
321
|
}
|
|
309
322
|
});
|
|
310
323
|
}
|
|
324
|
+
}
|
|
325
|
+
export class ChartsMarketplaceService {
|
|
311
326
|
/**
|
|
312
|
-
*
|
|
327
|
+
* List chart listings available in the marketplace.
|
|
313
328
|
*
|
|
314
|
-
* Returns
|
|
329
|
+
* Returns a list of available charts in the marketplace.
|
|
330
|
+
*
|
|
331
|
+
* This endpoint is available to all users in the organization.
|
|
315
332
|
*
|
|
316
333
|
*/
|
|
317
|
-
static
|
|
318
|
-
return (options
|
|
334
|
+
static listMarketplaceCharts(options) {
|
|
335
|
+
return (options?.client ?? client).get({ url: '/marketplace', ...options });
|
|
319
336
|
}
|
|
320
337
|
/**
|
|
321
|
-
*
|
|
338
|
+
* Get chart files for a specific version channel.
|
|
322
339
|
*
|
|
323
|
-
* Returns the
|
|
340
|
+
* Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
|
|
341
|
+
*
|
|
342
|
+
* Version channels use patterns like "1.31.x-cfke.x" to match the latest patch version, or "1.x.x-cfke.x" to match the latest minor version.
|
|
343
|
+
*
|
|
344
|
+
* This endpoint is available to all users in the organization.
|
|
324
345
|
*
|
|
325
346
|
*/
|
|
326
|
-
static
|
|
327
|
-
return (options.client ?? client).
|
|
347
|
+
static getMarketplaceChartFiles(options) {
|
|
348
|
+
return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
|
|
328
349
|
}
|
|
329
350
|
}
|
|
330
351
|
export class InvitesService {
|
|
331
352
|
/**
|
|
332
353
|
* List invites.
|
|
333
354
|
*
|
|
334
|
-
* Returns a list of invites under the current organization. This endpoint is available to
|
|
355
|
+
* Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
|
|
335
356
|
*
|
|
336
357
|
*/
|
|
337
358
|
static listInvites(options) {
|
|
@@ -356,7 +377,7 @@ export class InvitesService {
|
|
|
356
377
|
/**
|
|
357
378
|
* Get invite information.
|
|
358
379
|
*
|
|
359
|
-
*
|
|
380
|
+
* Validates an invitation code and returns the email address it was issued to (to pre-fill the signup form) and the organization it grants access to. This endpoint is unauthenticated, so no other invite details (such as the invited role) are disclosed.
|
|
360
381
|
*
|
|
361
382
|
*/
|
|
362
383
|
static getInvite(options) {
|
|
@@ -372,41 +393,39 @@ export class InvitesService {
|
|
|
372
393
|
return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
|
|
373
394
|
}
|
|
374
395
|
}
|
|
375
|
-
export class
|
|
396
|
+
export class ClustersService {
|
|
376
397
|
/**
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
* Returns a list of available charts in the marketplace.
|
|
380
|
-
*
|
|
381
|
-
* This endpoint is available to all users in the organization.
|
|
398
|
+
* Query Kubernetes cluster API
|
|
382
399
|
*
|
|
400
|
+
* An API endpoint for directly querying a Kubernetes cluster API without requiring kubectl or other tools. This endpoint is ideal for automation and scripting, as well as for internal use in fetching data for the Cloudfleet Console. It acts as a passthrough to the Kubernetes API, allowing access to any valid Kubernetes API endpoint, including those not exposed in the Cloudfleet Console. The endpoint is strictly read-only, ensuring no modifications to the cluster state. It is accessible to all users within the organization and uses the same authentication mechanisms as other Cloudfleet API endpoints.
|
|
383
401
|
*/
|
|
384
|
-
static
|
|
385
|
-
return (options
|
|
402
|
+
static queryCluster(options) {
|
|
403
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
|
|
386
404
|
}
|
|
387
405
|
/**
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
* Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
|
|
406
|
+
* List fleets.
|
|
391
407
|
*
|
|
392
|
-
*
|
|
408
|
+
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
393
409
|
*
|
|
394
410
|
* This endpoint is available to all users in the organization.
|
|
395
411
|
*
|
|
396
412
|
*/
|
|
397
|
-
static
|
|
398
|
-
return (options.client ?? client).get({ url: '/
|
|
413
|
+
static listFleets(options) {
|
|
414
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
|
|
399
415
|
}
|
|
400
|
-
}
|
|
401
|
-
export class McpService {
|
|
402
416
|
/**
|
|
403
|
-
*
|
|
417
|
+
* Create a new fleet.
|
|
418
|
+
*
|
|
419
|
+
* Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
420
|
+
*
|
|
421
|
+
* The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
|
|
422
|
+
*
|
|
423
|
+
* This endpoint is available to administrators of the organization only.
|
|
404
424
|
*
|
|
405
|
-
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
406
425
|
*/
|
|
407
|
-
static
|
|
426
|
+
static createFleet(options) {
|
|
408
427
|
return (options.client ?? client).post({
|
|
409
|
-
url: '/
|
|
428
|
+
url: '/clusters/{cluster_id}/fleets',
|
|
410
429
|
...options,
|
|
411
430
|
headers: {
|
|
412
431
|
'Content-Type': 'application/json',
|
|
@@ -414,28 +433,45 @@ export class McpService {
|
|
|
414
433
|
}
|
|
415
434
|
});
|
|
416
435
|
}
|
|
417
|
-
}
|
|
418
|
-
export class OrganizationService {
|
|
419
436
|
/**
|
|
420
|
-
*
|
|
437
|
+
* Permanently delete fleet.
|
|
421
438
|
*
|
|
422
|
-
*
|
|
439
|
+
* This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
440
|
+
*
|
|
441
|
+
* Deleting a fleet does not deprovision the cloud infrastructure it provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
|
|
442
|
+
*
|
|
443
|
+
* This endpoint is available to administrators of the organization only.
|
|
444
|
+
*
|
|
445
|
+
*/
|
|
446
|
+
static deleteFleet(options) {
|
|
447
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Get fleet information.
|
|
451
|
+
*
|
|
452
|
+
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
423
453
|
*
|
|
424
454
|
* This endpoint is available to all users in the organization.
|
|
425
455
|
*
|
|
426
456
|
*/
|
|
427
|
-
static
|
|
428
|
-
return (options
|
|
457
|
+
static getFleet(options) {
|
|
458
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
429
459
|
}
|
|
430
460
|
/**
|
|
431
|
-
*
|
|
461
|
+
* Update fleet information.
|
|
432
462
|
*
|
|
433
|
-
* This endpoint allows you to
|
|
463
|
+
* This endpoint allows you to update fleet details.
|
|
464
|
+
*
|
|
465
|
+
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
466
|
+
*
|
|
467
|
+
* This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged. The Hetzner API key is the exception: it is kept when omitted (send a new value to rotate it).
|
|
468
|
+
*
|
|
469
|
+
* This endpoint is available to administrators of the organization only.
|
|
434
470
|
*
|
|
435
471
|
*/
|
|
436
|
-
static
|
|
437
|
-
return (options.client ?? client).
|
|
438
|
-
url: '/
|
|
472
|
+
static updateFleet(options) {
|
|
473
|
+
return (options.client ?? client).put({
|
|
474
|
+
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
439
475
|
...options,
|
|
440
476
|
headers: {
|
|
441
477
|
'Content-Type': 'application/json',
|
|
@@ -443,66 +479,97 @@ export class OrganizationService {
|
|
|
443
479
|
}
|
|
444
480
|
});
|
|
445
481
|
}
|
|
446
|
-
}
|
|
447
|
-
export class RegistryService {
|
|
448
482
|
/**
|
|
449
|
-
* List
|
|
483
|
+
* List charts.
|
|
450
484
|
*
|
|
451
|
-
* Returns a list of
|
|
485
|
+
* Returns a list of charts in the cluster.
|
|
486
|
+
*
|
|
487
|
+
* This endpoint is available to all users in the organization.
|
|
452
488
|
*
|
|
453
489
|
*/
|
|
454
|
-
static
|
|
455
|
-
return (options
|
|
490
|
+
static listCharts(options) {
|
|
491
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
|
|
456
492
|
}
|
|
457
493
|
/**
|
|
458
|
-
*
|
|
494
|
+
* Create a new chart.
|
|
459
495
|
*
|
|
460
|
-
*
|
|
496
|
+
* Create a new chart deployment.
|
|
497
|
+
*
|
|
498
|
+
* This endpoint is available to administrators of the organization only.
|
|
461
499
|
*
|
|
462
500
|
*/
|
|
463
|
-
static
|
|
464
|
-
return (options.client ?? client).
|
|
501
|
+
static createChart(options) {
|
|
502
|
+
return (options.client ?? client).post({
|
|
503
|
+
url: '/clusters/{cluster_id}/charts',
|
|
504
|
+
...options,
|
|
505
|
+
headers: {
|
|
506
|
+
'Content-Type': 'application/json',
|
|
507
|
+
...options.headers
|
|
508
|
+
}
|
|
509
|
+
});
|
|
465
510
|
}
|
|
466
511
|
/**
|
|
467
|
-
*
|
|
512
|
+
* Permanently delete the chart deployment from the cluster.
|
|
468
513
|
*
|
|
469
|
-
*
|
|
514
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
515
|
+
*
|
|
516
|
+
* This endpoint is available to administrators of the organization only.
|
|
470
517
|
*
|
|
471
518
|
*/
|
|
472
|
-
static
|
|
473
|
-
return (options.client ?? client).delete({ url: '/
|
|
519
|
+
static deleteChart(options) {
|
|
520
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
474
521
|
}
|
|
475
522
|
/**
|
|
476
|
-
* Get
|
|
523
|
+
* Get chart information.
|
|
477
524
|
*
|
|
478
|
-
* Returns
|
|
525
|
+
* Returns the details of the chart deployment.
|
|
526
|
+
*
|
|
527
|
+
* This endpoint is available to all users in the organization.
|
|
479
528
|
*
|
|
480
529
|
*/
|
|
481
|
-
static
|
|
482
|
-
return (options.client ?? client).get({ url: '/
|
|
530
|
+
static getChart(options) {
|
|
531
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
483
532
|
}
|
|
484
|
-
}
|
|
485
|
-
export class TokensService {
|
|
486
533
|
/**
|
|
487
|
-
*
|
|
534
|
+
* Update chart information.
|
|
488
535
|
*
|
|
489
|
-
* This endpoint allows you to
|
|
536
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
537
|
+
*
|
|
538
|
+
* This endpoint is available to administrators of the organization only.
|
|
490
539
|
*
|
|
491
540
|
*/
|
|
492
|
-
static
|
|
493
|
-
return (options
|
|
541
|
+
static updateChart(options) {
|
|
542
|
+
return (options.client ?? client).put({
|
|
543
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
544
|
+
...options,
|
|
545
|
+
headers: {
|
|
546
|
+
'Content-Type': 'application/json',
|
|
547
|
+
...options.headers
|
|
548
|
+
}
|
|
549
|
+
});
|
|
494
550
|
}
|
|
495
551
|
/**
|
|
496
|
-
*
|
|
552
|
+
* List clusters.
|
|
497
553
|
*
|
|
498
|
-
*
|
|
554
|
+
* Returns a list of clusters under the current organization.
|
|
555
|
+
*
|
|
556
|
+
* This endpoint is available to all users in the organization.
|
|
557
|
+
*
|
|
558
|
+
*/
|
|
559
|
+
static listClusters(options) {
|
|
560
|
+
return (options?.client ?? client).get({ url: '/clusters', ...options });
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Create a new cluster.
|
|
564
|
+
*
|
|
565
|
+
* Create a new cluster under the current organization. Clusters allow you to group resources and you can create multiple clusters under the same organization, with billing delegated to the parent organization.
|
|
499
566
|
*
|
|
500
567
|
* This endpoint is available to administrators of the organization only.
|
|
501
568
|
*
|
|
502
569
|
*/
|
|
503
|
-
static
|
|
570
|
+
static createCluster(options) {
|
|
504
571
|
return (options.client ?? client).post({
|
|
505
|
-
url: '/
|
|
572
|
+
url: '/clusters',
|
|
506
573
|
...options,
|
|
507
574
|
headers: {
|
|
508
575
|
'Content-Type': 'application/json',
|
|
@@ -511,34 +578,42 @@ export class TokensService {
|
|
|
511
578
|
});
|
|
512
579
|
}
|
|
513
580
|
/**
|
|
514
|
-
* Permanently delete
|
|
581
|
+
* Permanently delete cluster.
|
|
515
582
|
*
|
|
516
|
-
* This endpoint
|
|
583
|
+
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
584
|
+
*
|
|
585
|
+
* Deleting a cluster also deletes its fleets. This does not deprovision the cloud infrastructure those fleets provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
|
|
586
|
+
*
|
|
587
|
+
* This endpoint is available to administrators of the organization only.
|
|
517
588
|
*
|
|
518
589
|
*/
|
|
519
|
-
static
|
|
520
|
-
return (options.client ?? client).delete({ url: '/
|
|
590
|
+
static deleteCluster(options) {
|
|
591
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
|
|
521
592
|
}
|
|
522
593
|
/**
|
|
523
|
-
* Get
|
|
594
|
+
* Get cluster information.
|
|
524
595
|
*
|
|
525
|
-
*
|
|
596
|
+
* Returns cluster details.
|
|
597
|
+
*
|
|
598
|
+
* This endpoint is available to all users in the organization.
|
|
526
599
|
*
|
|
527
600
|
*/
|
|
528
|
-
static
|
|
529
|
-
return (options.client ?? client).get({ url: '/
|
|
601
|
+
static getCluster(options) {
|
|
602
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
|
|
530
603
|
}
|
|
531
604
|
/**
|
|
532
|
-
* Update
|
|
605
|
+
* Update cluster information.
|
|
533
606
|
*
|
|
534
|
-
* This endpoint allows you to update
|
|
607
|
+
* This endpoint allows you to update cluster details. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentation.
|
|
608
|
+
*
|
|
609
|
+
* This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
|
|
535
610
|
*
|
|
536
611
|
* This endpoint is available to administrators of the organization only.
|
|
537
612
|
*
|
|
538
613
|
*/
|
|
539
|
-
static
|
|
614
|
+
static updateCluster(options) {
|
|
540
615
|
return (options.client ?? client).put({
|
|
541
|
-
url: '/
|
|
616
|
+
url: '/clusters/{cluster_id}',
|
|
542
617
|
...options,
|
|
543
618
|
headers: {
|
|
544
619
|
'Content-Type': 'application/json',
|
|
@@ -547,77 +622,113 @@ export class TokensService {
|
|
|
547
622
|
});
|
|
548
623
|
}
|
|
549
624
|
/**
|
|
550
|
-
*
|
|
625
|
+
* Node join information for the cluster
|
|
626
|
+
*
|
|
627
|
+
* Returns the join information for the cluster. This information is used to add a self-managed nodes to the CFKE cluster. This endpoint is available to only admins of the organization.
|
|
551
628
|
*
|
|
552
|
-
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
553
629
|
*/
|
|
554
|
-
static
|
|
555
|
-
return (options.client ?? client).
|
|
630
|
+
static getJoinInformation(options) {
|
|
631
|
+
return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
|
|
556
632
|
}
|
|
557
633
|
}
|
|
558
|
-
export class
|
|
634
|
+
export class BillingService {
|
|
559
635
|
/**
|
|
560
|
-
* Get
|
|
636
|
+
* Get billing usage information.
|
|
637
|
+
*
|
|
638
|
+
* Returns aggregated usage information for the organization with facets for filtering. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
639
|
+
*
|
|
561
640
|
*/
|
|
562
|
-
static
|
|
563
|
-
return (options
|
|
641
|
+
static getUsage(options) {
|
|
642
|
+
return (options?.client ?? client).get({ url: '/billing/usage', ...options });
|
|
564
643
|
}
|
|
565
644
|
/**
|
|
566
|
-
*
|
|
645
|
+
* Get Stripe client secret.
|
|
567
646
|
*
|
|
568
|
-
*
|
|
647
|
+
* Endpoint returns the Stripe secret key for the organization. This key is used to securely update the payment method in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to administrators of the organization only.
|
|
569
648
|
*
|
|
570
|
-
|
|
649
|
+
*/
|
|
650
|
+
static getPaymentMethodSecret(options) {
|
|
651
|
+
return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* List organization payment methods.
|
|
655
|
+
*
|
|
656
|
+
* Returns all payment methods (cards and SEPA Direct Debit) attached to the organization, most recently added first, with the default flagged. This endpoint is available to all users in the organization.
|
|
571
657
|
*
|
|
572
658
|
*/
|
|
573
|
-
static
|
|
574
|
-
return (options?.client ?? client).get({ url: '/
|
|
659
|
+
static listPaymentMethods(options) {
|
|
660
|
+
return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
|
|
575
661
|
}
|
|
576
662
|
/**
|
|
577
|
-
*
|
|
663
|
+
* Set the default payment method.
|
|
578
664
|
*
|
|
579
|
-
*
|
|
665
|
+
* Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
|
|
580
666
|
*
|
|
581
667
|
*/
|
|
582
|
-
static
|
|
583
|
-
return (options.client ?? client).
|
|
584
|
-
url: '/users',
|
|
585
|
-
...options,
|
|
586
|
-
headers: {
|
|
587
|
-
'Content-Type': 'application/json',
|
|
588
|
-
...options.headers
|
|
589
|
-
}
|
|
590
|
-
});
|
|
668
|
+
static setDefaultPaymentMethod(options) {
|
|
669
|
+
return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
|
|
591
670
|
}
|
|
592
671
|
/**
|
|
593
|
-
* Delete
|
|
672
|
+
* Delete a payment method.
|
|
594
673
|
*
|
|
595
|
-
*
|
|
674
|
+
* Detaches the given payment method from the organization. Requires the Administrator role. An organization must keep at least one payment method, so deleting the only remaining method is rejected.
|
|
596
675
|
*
|
|
597
676
|
*/
|
|
598
|
-
static
|
|
599
|
-
return (options.client ?? client).delete({ url: '/
|
|
677
|
+
static deletePaymentMethod(options) {
|
|
678
|
+
return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
|
|
600
679
|
}
|
|
601
680
|
/**
|
|
602
|
-
*
|
|
681
|
+
* List issued invoices.
|
|
603
682
|
*
|
|
604
|
-
* Returns
|
|
683
|
+
* Returns a list of invoices for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
605
684
|
*
|
|
606
|
-
|
|
685
|
+
*/
|
|
686
|
+
static listInvoices(options) {
|
|
687
|
+
return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Get organization contact and billing address information.
|
|
691
|
+
*
|
|
692
|
+
* Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
|
|
607
693
|
*
|
|
608
694
|
*/
|
|
609
|
-
static
|
|
610
|
-
return (options
|
|
695
|
+
static getContact(options) {
|
|
696
|
+
return (options?.client ?? client).get({ url: '/billing/contact', ...options });
|
|
611
697
|
}
|
|
612
698
|
/**
|
|
613
|
-
* Update
|
|
699
|
+
* Update organization contact information and billing address.
|
|
614
700
|
*
|
|
615
|
-
*
|
|
701
|
+
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
616
702
|
*
|
|
617
703
|
*/
|
|
618
|
-
static
|
|
704
|
+
static updateContact(options) {
|
|
619
705
|
return (options.client ?? client).put({
|
|
620
|
-
url: '/
|
|
706
|
+
url: '/billing/contact',
|
|
707
|
+
...options,
|
|
708
|
+
headers: {
|
|
709
|
+
'Content-Type': 'application/json',
|
|
710
|
+
...options.headers
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* Get applied promotional credits
|
|
716
|
+
*
|
|
717
|
+
* Returns applied promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
718
|
+
*
|
|
719
|
+
*/
|
|
720
|
+
static getCredits(options) {
|
|
721
|
+
return (options?.client ?? client).get({ url: '/billing/credits', ...options });
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* Redeem promotional credits code.
|
|
725
|
+
*
|
|
726
|
+
* Applies promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
727
|
+
*
|
|
728
|
+
*/
|
|
729
|
+
static redeemCredits(options) {
|
|
730
|
+
return (options.client ?? client).post({
|
|
731
|
+
url: '/billing/credits',
|
|
621
732
|
...options,
|
|
622
733
|
headers: {
|
|
623
734
|
'Content-Type': 'application/json',
|