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