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