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