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