@cloudfleet/sdk 0.0.1-96d5fec → 0.0.1-a0f38b2
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/dist/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +205 -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 +125 -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 +34 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +231 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +13 -0
- package/dist/client.gen.d.ts.map +1 -0
- package/dist/client.gen.js +6 -0
- package/dist/client.gen.js.map +1 -0
- 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 +18 -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 +34 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +89 -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 +115 -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 +100 -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 +136 -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/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.gen.d.ts +912 -988
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +934 -1025
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +220 -142
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +302 -145
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +196 -0
- package/dist/services/kubernetes/api.d.ts.map +1 -0
- package/dist/services/kubernetes/api.js +140 -0
- package/dist/services/kubernetes/api.js.map +1 -0
- package/dist/services/kubernetes/index.d.ts +44 -0
- package/dist/services/kubernetes/index.d.ts.map +1 -0
- package/dist/services/kubernetes/index.js +68 -0
- package/dist/services/kubernetes/index.js.map +1 -0
- package/dist/services/kubernetes/types.d.ts +1335 -0
- package/dist/services/kubernetes/types.d.ts.map +1 -0
- package/dist/services/kubernetes/types.js +2 -0
- package/dist/services/kubernetes/types.js.map +1 -0
- package/dist/types.gen.d.ts +944 -958
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1888 -2835
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +929 -869
- package/dist/zod.gen.js.map +1 -1
- package/package.json +8 -5
package/dist/sdk.gen.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import {
|
|
3
|
-
export const client = createClient(createConfig());
|
|
2
|
+
import { client } from './client.gen';
|
|
4
3
|
export class BillingService {
|
|
5
4
|
/**
|
|
6
5
|
* Get billing usage information.
|
|
7
|
-
*
|
|
6
|
+
*
|
|
7
|
+
* Returns aggregated usage information for the organization with facets for filtering. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
static getUsage(options) {
|
|
@@ -13,19 +13,9 @@ export class BillingService {
|
|
|
13
13
|
...options
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Get billing balance information.
|
|
18
|
-
* 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.
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
static getBalance(options) {
|
|
22
|
-
return (options?.client ?? client).get({
|
|
23
|
-
url: '/billing/balance',
|
|
24
|
-
...options
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
16
|
/**
|
|
28
17
|
* Get organization payment method information.
|
|
18
|
+
*
|
|
29
19
|
* 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.
|
|
30
20
|
*
|
|
31
21
|
*/
|
|
@@ -37,6 +27,7 @@ export class BillingService {
|
|
|
37
27
|
}
|
|
38
28
|
/**
|
|
39
29
|
* Get Stripe client secret.
|
|
30
|
+
*
|
|
40
31
|
* 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.
|
|
41
32
|
*
|
|
42
33
|
*/
|
|
@@ -48,6 +39,7 @@ export class BillingService {
|
|
|
48
39
|
}
|
|
49
40
|
/**
|
|
50
41
|
* List issued invoices.
|
|
42
|
+
*
|
|
51
43
|
* 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.
|
|
52
44
|
*
|
|
53
45
|
*/
|
|
@@ -58,107 +50,237 @@ export class BillingService {
|
|
|
58
50
|
});
|
|
59
51
|
}
|
|
60
52
|
/**
|
|
61
|
-
* Get
|
|
62
|
-
*
|
|
53
|
+
* Get organization contact and billing address information.
|
|
54
|
+
*
|
|
55
|
+
* Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
static getContact(options) {
|
|
59
|
+
return (options?.client ?? client).get({
|
|
60
|
+
url: '/billing/contact',
|
|
61
|
+
...options
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Update organization contact information and billing address.
|
|
66
|
+
*
|
|
67
|
+
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
static updateContact(options) {
|
|
71
|
+
return (options.client ?? client).put({
|
|
72
|
+
url: '/billing/contact',
|
|
73
|
+
...options,
|
|
74
|
+
headers: {
|
|
75
|
+
'Content-Type': 'application/json',
|
|
76
|
+
...options.headers
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Get applied promotional credits
|
|
82
|
+
*
|
|
83
|
+
* 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.
|
|
63
84
|
*
|
|
64
85
|
*/
|
|
65
|
-
static
|
|
86
|
+
static getCredits(options) {
|
|
66
87
|
return (options?.client ?? client).get({
|
|
67
|
-
url: '/billing/
|
|
88
|
+
url: '/billing/credits',
|
|
68
89
|
...options
|
|
69
90
|
});
|
|
70
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Redeem promotional credits code.
|
|
94
|
+
*
|
|
95
|
+
* 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.
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
static redeemCredits(options) {
|
|
99
|
+
return (options.client ?? client).post({
|
|
100
|
+
url: '/billing/credits',
|
|
101
|
+
...options,
|
|
102
|
+
headers: {
|
|
103
|
+
'Content-Type': 'application/json',
|
|
104
|
+
...options.headers
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
71
108
|
}
|
|
72
109
|
export class ClustersService {
|
|
110
|
+
/**
|
|
111
|
+
* List charts.
|
|
112
|
+
*
|
|
113
|
+
* Returns a list of charts in the cluster.
|
|
114
|
+
*
|
|
115
|
+
* This endpoint is available to all users in the organization.
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
static listCharts(options) {
|
|
119
|
+
return (options.client ?? client).get({
|
|
120
|
+
url: '/clusters/{cluster_id}/charts',
|
|
121
|
+
...options
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Create a new chart.
|
|
126
|
+
*
|
|
127
|
+
* Create a new chart deployment.
|
|
128
|
+
*
|
|
129
|
+
* This endpoint is available to administrators of the organization only.
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
static createChart(options) {
|
|
133
|
+
return (options.client ?? client).post({
|
|
134
|
+
url: '/clusters/{cluster_id}/charts',
|
|
135
|
+
...options,
|
|
136
|
+
headers: {
|
|
137
|
+
'Content-Type': 'application/json',
|
|
138
|
+
...options.headers
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Permanently delete the chart deployment from the cluster.
|
|
144
|
+
*
|
|
145
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
146
|
+
*
|
|
147
|
+
* This endpoint is available to administrators of the organization only.
|
|
148
|
+
*
|
|
149
|
+
*/
|
|
150
|
+
static deleteChart(options) {
|
|
151
|
+
return (options.client ?? client).delete({
|
|
152
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
153
|
+
...options
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Get chart information.
|
|
158
|
+
*
|
|
159
|
+
* Returns the details of the chart deployment.
|
|
160
|
+
*
|
|
161
|
+
* This endpoint is available to all users in the organization.
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
static getChart(options) {
|
|
165
|
+
return (options.client ?? client).get({
|
|
166
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
167
|
+
...options
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Update chart information.
|
|
172
|
+
*
|
|
173
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
174
|
+
*
|
|
175
|
+
* This endpoint is available to administrators of the organization only.
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
178
|
+
static updateChart(options) {
|
|
179
|
+
return (options.client ?? client).put({
|
|
180
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
181
|
+
...options,
|
|
182
|
+
headers: {
|
|
183
|
+
'Content-Type': 'application/json',
|
|
184
|
+
...options.headers
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
73
188
|
/**
|
|
74
189
|
* List fleets.
|
|
75
|
-
*
|
|
190
|
+
*
|
|
191
|
+
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
76
192
|
*
|
|
77
193
|
* This endpoint is available to all users in the organization.
|
|
78
194
|
*
|
|
79
195
|
*/
|
|
80
196
|
static listFleets(options) {
|
|
81
|
-
return (options
|
|
197
|
+
return (options.client ?? client).get({
|
|
82
198
|
url: '/clusters/{cluster_id}/fleets',
|
|
83
199
|
...options
|
|
84
200
|
});
|
|
85
201
|
}
|
|
86
202
|
/**
|
|
87
203
|
* Create a new fleet.
|
|
88
|
-
*
|
|
204
|
+
*
|
|
205
|
+
* 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.
|
|
89
206
|
*
|
|
90
207
|
* This endpoint is available to administrators of the organization only.
|
|
91
208
|
*
|
|
92
209
|
*/
|
|
93
210
|
static createFleet(options) {
|
|
94
|
-
return (options
|
|
211
|
+
return (options.client ?? client).post({
|
|
95
212
|
url: '/clusters/{cluster_id}/fleets',
|
|
96
213
|
...options,
|
|
97
214
|
headers: {
|
|
98
215
|
'Content-Type': 'application/json',
|
|
99
|
-
...options
|
|
216
|
+
...options.headers
|
|
100
217
|
}
|
|
101
218
|
});
|
|
102
219
|
}
|
|
103
220
|
/**
|
|
104
221
|
* Permanently delete fleet.
|
|
105
|
-
*
|
|
222
|
+
*
|
|
223
|
+
* This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
106
224
|
*
|
|
107
225
|
* This endpoint is available to administrators of the organization only.
|
|
108
226
|
*
|
|
109
227
|
*/
|
|
110
228
|
static deleteFleet(options) {
|
|
111
|
-
return (options
|
|
229
|
+
return (options.client ?? client).delete({
|
|
112
230
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
113
231
|
...options
|
|
114
232
|
});
|
|
115
233
|
}
|
|
116
234
|
/**
|
|
117
235
|
* Get fleet information.
|
|
118
|
-
*
|
|
236
|
+
*
|
|
237
|
+
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
119
238
|
*
|
|
120
239
|
* This endpoint is available to all users in the organization.
|
|
121
240
|
*
|
|
122
241
|
*/
|
|
123
242
|
static getFleet(options) {
|
|
124
|
-
return (options
|
|
243
|
+
return (options.client ?? client).get({
|
|
125
244
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
126
245
|
...options
|
|
127
246
|
});
|
|
128
247
|
}
|
|
129
248
|
/**
|
|
130
249
|
* Update fleet information.
|
|
250
|
+
*
|
|
131
251
|
* This endpoint allows you to update fleet details.
|
|
132
252
|
*
|
|
133
|
-
* Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the
|
|
253
|
+
* Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`.
|
|
134
254
|
*
|
|
135
|
-
* For more information, see [Fleets
|
|
255
|
+
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
136
256
|
*
|
|
137
257
|
* This endpoint is available to administrators of the organization only.
|
|
138
258
|
*
|
|
139
259
|
*/
|
|
140
260
|
static updateFleet(options) {
|
|
141
|
-
return (options
|
|
261
|
+
return (options.client ?? client).put({
|
|
142
262
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
143
263
|
...options,
|
|
144
264
|
headers: {
|
|
145
265
|
'Content-Type': 'application/json',
|
|
146
|
-
...options
|
|
266
|
+
...options.headers
|
|
147
267
|
}
|
|
148
268
|
});
|
|
149
269
|
}
|
|
150
270
|
/**
|
|
151
271
|
* Query Kubernetes cluster API
|
|
272
|
+
*
|
|
152
273
|
* An API endpoint for directly querying a Kubernetes cluster API without requiring kubectl or other tools. This endpoint is ideal for automation and scripting, as well as for internal use in fetching data for the Cloudfleet Console. It acts as a passthrough to the Kubernetes API, allowing access to any valid Kubernetes API endpoint, including those not exposed in the Cloudfleet Console. The endpoint is strictly read-only, ensuring no modifications to the cluster state. It is accessible to all users within the organization and uses the same authentication mechanisms as other Cloudfleet API endpoints.
|
|
153
274
|
*/
|
|
154
275
|
static queryCluster(options) {
|
|
155
|
-
return (options
|
|
276
|
+
return (options.client ?? client).get({
|
|
156
277
|
url: '/clusters/{cluster_id}/query',
|
|
157
278
|
...options
|
|
158
279
|
});
|
|
159
280
|
}
|
|
160
281
|
/**
|
|
161
282
|
* List clusters.
|
|
283
|
+
*
|
|
162
284
|
* 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.
|
|
163
285
|
*
|
|
164
286
|
* This endpoint is available to all users in the organization.
|
|
@@ -172,122 +294,85 @@ export class ClustersService {
|
|
|
172
294
|
}
|
|
173
295
|
/**
|
|
174
296
|
* Create a new cluster.
|
|
297
|
+
*
|
|
175
298
|
* Create a new cluster under the current organization. Clusters allow you to group resources and you can create multiple clusters under the same organization, with billing delegated to the parent organization.
|
|
176
299
|
*
|
|
177
300
|
* This endpoint is available to administrators of the organization only.
|
|
178
301
|
*
|
|
179
302
|
*/
|
|
180
303
|
static createCluster(options) {
|
|
181
|
-
return (options
|
|
304
|
+
return (options.client ?? client).post({
|
|
182
305
|
url: '/clusters',
|
|
183
306
|
...options,
|
|
184
307
|
headers: {
|
|
185
308
|
'Content-Type': 'application/json',
|
|
186
|
-
...options
|
|
309
|
+
...options.headers
|
|
187
310
|
}
|
|
188
311
|
});
|
|
189
312
|
}
|
|
190
313
|
/**
|
|
191
314
|
* Permanently delete cluster.
|
|
315
|
+
*
|
|
192
316
|
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
193
317
|
*
|
|
194
318
|
* This endpoint is available to administrators of the organization only.
|
|
195
319
|
*
|
|
196
320
|
*/
|
|
197
321
|
static deleteCluster(options) {
|
|
198
|
-
return (options
|
|
322
|
+
return (options.client ?? client).delete({
|
|
199
323
|
url: '/clusters/{cluster_id}',
|
|
200
324
|
...options
|
|
201
325
|
});
|
|
202
326
|
}
|
|
203
327
|
/**
|
|
204
328
|
* Get cluster information.
|
|
329
|
+
*
|
|
205
330
|
* Returns cluster details including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
206
331
|
*
|
|
207
332
|
* This endpoint is available to all users in the organization.
|
|
208
333
|
*
|
|
209
334
|
*/
|
|
210
335
|
static getCluster(options) {
|
|
211
|
-
return (options
|
|
336
|
+
return (options.client ?? client).get({
|
|
212
337
|
url: '/clusters/{cluster_id}',
|
|
213
338
|
...options
|
|
214
339
|
});
|
|
215
340
|
}
|
|
216
341
|
/**
|
|
217
342
|
* Update cluster information.
|
|
343
|
+
*
|
|
218
344
|
* 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.
|
|
219
345
|
*
|
|
220
346
|
* This endpoint is available to administrators of the organization only.
|
|
221
347
|
*
|
|
222
348
|
*/
|
|
223
349
|
static updateCluster(options) {
|
|
224
|
-
return (options
|
|
350
|
+
return (options.client ?? client).put({
|
|
225
351
|
url: '/clusters/{cluster_id}',
|
|
226
352
|
...options,
|
|
227
353
|
headers: {
|
|
228
354
|
'Content-Type': 'application/json',
|
|
229
|
-
...options
|
|
355
|
+
...options.headers
|
|
230
356
|
}
|
|
231
357
|
});
|
|
232
358
|
}
|
|
233
359
|
/**
|
|
234
360
|
* Node join information for the cluster
|
|
235
|
-
*
|
|
361
|
+
*
|
|
362
|
+
* Returns the join information for the cluster. This information is used to add a self-managed nodes to the CFKE cluster. This endpoint is available to only admins of the organization.
|
|
236
363
|
*
|
|
237
364
|
*/
|
|
238
365
|
static getJoinInformation(options) {
|
|
239
|
-
return (options
|
|
366
|
+
return (options.client ?? client).post({
|
|
240
367
|
url: '/clusters/{cluster_id}/join_information',
|
|
241
368
|
...options
|
|
242
369
|
});
|
|
243
370
|
}
|
|
244
371
|
}
|
|
245
|
-
export class InfrastructureService {
|
|
246
|
-
/**
|
|
247
|
-
* Search infrastructure catalog.
|
|
248
|
-
* This endpoint is used to search the infrastructure catalog for the right virtual machine / instance type when creating a new task. The search is performed by specifying a set of filters. The filters are combined using the logical AND operator. For example, if you want to find all available instances with Nvidia A100 GPUs in the US, you would use the following query:
|
|
249
|
-
*
|
|
250
|
-
* `GET /infrastructure?accelerator_name=A100®ion=northamerica`
|
|
251
|
-
*
|
|
252
|
-
* Catalog is dynamic and updated regularly to reflect the latest changes in the cloud providers' offerings. Although we try to keep the catalog up to date, it is possible that some instances are missing or that some information is outdated. It is possible that the final price you will see in the billing section will be different from the price shown in the catalog. Additionally, catalog does not account for any limitaitons and quotas set by the cloud providers, as well as current availability of specific instance types.
|
|
253
|
-
*
|
|
254
|
-
* **Note:** This endpoint is available for both authenticated and unauthenticated users. However, unauthenticated users will only see limited results and will be rate limited. To get full access to the catalog, please create a Cloudfleet account and log in.
|
|
255
|
-
*
|
|
256
|
-
* For full documentation of the infrastructure catalog, see [Cloud providers and instance types](https://cloudfleet.ai/docs/cloud-infrastructure/) section of the documentation.
|
|
257
|
-
*
|
|
258
|
-
*/
|
|
259
|
-
static getInfrastructure(options) {
|
|
260
|
-
return (options?.client ?? client).get({
|
|
261
|
-
url: '/infrastructure',
|
|
262
|
-
...options
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Infrastructure catalog facets.
|
|
267
|
-
* This endpoint returns calculated search facets from the infrastructure catalog.
|
|
268
|
-
*
|
|
269
|
-
*/
|
|
270
|
-
static getFacets(options) {
|
|
271
|
-
return (options?.client ?? client).get({
|
|
272
|
-
url: '/infrastructure/facets',
|
|
273
|
-
...options
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Available Cloudfleet regions and Kubernetes versions.
|
|
278
|
-
* Available Cloudfleet regions and Kubernetes versions.
|
|
279
|
-
*
|
|
280
|
-
*/
|
|
281
|
-
static getRegions(options) {
|
|
282
|
-
return (options?.client ?? client).get({
|
|
283
|
-
url: '/infrastructure/regions',
|
|
284
|
-
...options
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
372
|
export class InvitesService {
|
|
289
373
|
/**
|
|
290
374
|
* List invites.
|
|
375
|
+
*
|
|
291
376
|
* Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
|
|
292
377
|
*
|
|
293
378
|
*/
|
|
@@ -299,45 +384,98 @@ export class InvitesService {
|
|
|
299
384
|
}
|
|
300
385
|
/**
|
|
301
386
|
* Create a new invite.
|
|
302
|
-
*
|
|
387
|
+
*
|
|
388
|
+
* 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.
|
|
303
389
|
*
|
|
304
390
|
*/
|
|
305
391
|
static createInvite(options) {
|
|
306
|
-
return (options
|
|
392
|
+
return (options.client ?? client).post({
|
|
307
393
|
url: '/invites',
|
|
308
394
|
...options,
|
|
309
395
|
headers: {
|
|
310
396
|
'Content-Type': 'application/json',
|
|
311
|
-
...options
|
|
397
|
+
...options.headers
|
|
312
398
|
}
|
|
313
399
|
});
|
|
314
400
|
}
|
|
315
401
|
/**
|
|
316
402
|
* Get invite information.
|
|
403
|
+
*
|
|
317
404
|
* Returns invite details.
|
|
318
405
|
*
|
|
319
406
|
*/
|
|
320
407
|
static getInvite(options) {
|
|
321
|
-
return (options
|
|
408
|
+
return (options.client ?? client).get({
|
|
322
409
|
url: '/invites/{code}',
|
|
323
410
|
...options
|
|
324
411
|
});
|
|
325
412
|
}
|
|
326
413
|
/**
|
|
327
414
|
* Permanently delete invite.
|
|
415
|
+
*
|
|
328
416
|
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
329
417
|
*
|
|
330
418
|
*/
|
|
331
419
|
static deleteInvite(options) {
|
|
332
|
-
return (options
|
|
420
|
+
return (options.client ?? client).delete({
|
|
333
421
|
url: '/invites/{email}',
|
|
334
422
|
...options
|
|
335
423
|
});
|
|
336
424
|
}
|
|
337
425
|
}
|
|
426
|
+
export class ChartsMarketplaceService {
|
|
427
|
+
/**
|
|
428
|
+
* List chart listings available in the marketplace.
|
|
429
|
+
*
|
|
430
|
+
* Returns a list of available charts in the marketplace.
|
|
431
|
+
*
|
|
432
|
+
* This endpoint is available to all users in the organization.
|
|
433
|
+
*
|
|
434
|
+
*/
|
|
435
|
+
static listMarketplaceCharts(options) {
|
|
436
|
+
return (options?.client ?? client).get({
|
|
437
|
+
url: '/marketplace',
|
|
438
|
+
...options
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* Get chart files for a specific version channel.
|
|
443
|
+
*
|
|
444
|
+
* Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
|
|
445
|
+
*
|
|
446
|
+
* 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.
|
|
447
|
+
*
|
|
448
|
+
* This endpoint is available to all users in the organization.
|
|
449
|
+
*
|
|
450
|
+
*/
|
|
451
|
+
static getMarketplaceChartFiles(options) {
|
|
452
|
+
return (options.client ?? client).get({
|
|
453
|
+
url: '/marketplace/{chart_name}/files/{version_channel}',
|
|
454
|
+
...options
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
export class McpService {
|
|
459
|
+
/**
|
|
460
|
+
* MCP endpoint
|
|
461
|
+
*
|
|
462
|
+
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
463
|
+
*/
|
|
464
|
+
static postMcp(options) {
|
|
465
|
+
return (options.client ?? client).post({
|
|
466
|
+
url: '/mcp',
|
|
467
|
+
...options,
|
|
468
|
+
headers: {
|
|
469
|
+
'Content-Type': 'application/json',
|
|
470
|
+
...options.headers
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
}
|
|
338
475
|
export class OrganizationService {
|
|
339
476
|
/**
|
|
340
477
|
* Get organization information.
|
|
478
|
+
*
|
|
341
479
|
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
342
480
|
*
|
|
343
481
|
* This endpoint is available to all users in the organization.
|
|
@@ -351,40 +489,75 @@ export class OrganizationService {
|
|
|
351
489
|
}
|
|
352
490
|
/**
|
|
353
491
|
* Create a new organization / Cloudfleet account signup.
|
|
354
|
-
*
|
|
492
|
+
*
|
|
493
|
+
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
355
494
|
*
|
|
356
495
|
*/
|
|
357
496
|
static createOrganization(options) {
|
|
358
|
-
return (options
|
|
497
|
+
return (options.client ?? client).post({
|
|
359
498
|
url: '/organization',
|
|
360
499
|
...options,
|
|
361
500
|
headers: {
|
|
362
501
|
'Content-Type': 'application/json',
|
|
363
|
-
...options
|
|
502
|
+
...options.headers
|
|
364
503
|
}
|
|
365
504
|
});
|
|
366
505
|
}
|
|
506
|
+
}
|
|
507
|
+
export class RegistryService {
|
|
367
508
|
/**
|
|
368
|
-
*
|
|
369
|
-
* This endpoint allows you to update organization details with its contact information. For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota. For more information about organizations and quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
509
|
+
* List repositories
|
|
370
510
|
*
|
|
371
|
-
* This endpoint is available to
|
|
511
|
+
* Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
|
|
372
512
|
*
|
|
373
513
|
*/
|
|
374
|
-
static
|
|
375
|
-
return (options?.client ?? client).
|
|
376
|
-
url: '/
|
|
377
|
-
...options
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
514
|
+
static listRepositories(options) {
|
|
515
|
+
return (options?.client ?? client).get({
|
|
516
|
+
url: '/registry',
|
|
517
|
+
...options
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* List tags for a repository
|
|
522
|
+
*
|
|
523
|
+
* 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.
|
|
524
|
+
*
|
|
525
|
+
*/
|
|
526
|
+
static listTags(options) {
|
|
527
|
+
return (options.client ?? client).get({
|
|
528
|
+
url: '/registry/{region}/{repository}',
|
|
529
|
+
...options
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* Delete tag
|
|
534
|
+
*
|
|
535
|
+
* Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
|
|
536
|
+
*
|
|
537
|
+
*/
|
|
538
|
+
static deleteTag(options) {
|
|
539
|
+
return (options.client ?? client).delete({
|
|
540
|
+
url: '/registry/{region}/{repository}/{tag}',
|
|
541
|
+
...options
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Get tag details
|
|
546
|
+
*
|
|
547
|
+
* 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.
|
|
548
|
+
*
|
|
549
|
+
*/
|
|
550
|
+
static getTag(options) {
|
|
551
|
+
return (options.client ?? client).get({
|
|
552
|
+
url: '/registry/{region}/{repository}/{tag}',
|
|
553
|
+
...options
|
|
382
554
|
});
|
|
383
555
|
}
|
|
384
556
|
}
|
|
385
557
|
export class TokensService {
|
|
386
558
|
/**
|
|
387
559
|
* List access tokens in organization.
|
|
560
|
+
*
|
|
388
561
|
* 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.
|
|
389
562
|
*
|
|
390
563
|
*/
|
|
@@ -396,66 +569,71 @@ export class TokensService {
|
|
|
396
569
|
}
|
|
397
570
|
/**
|
|
398
571
|
* Create a new access token.
|
|
572
|
+
*
|
|
399
573
|
* 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.
|
|
400
574
|
*
|
|
401
575
|
* This endpoint is available to administrators of the organization only.
|
|
402
576
|
*
|
|
403
577
|
*/
|
|
404
578
|
static createToken(options) {
|
|
405
|
-
return (options
|
|
579
|
+
return (options.client ?? client).post({
|
|
406
580
|
url: '/tokens',
|
|
407
581
|
...options,
|
|
408
582
|
headers: {
|
|
409
583
|
'Content-Type': 'application/json',
|
|
410
|
-
...options
|
|
584
|
+
...options.headers
|
|
411
585
|
}
|
|
412
586
|
});
|
|
413
587
|
}
|
|
414
588
|
/**
|
|
415
589
|
* Permanently delete access token.
|
|
590
|
+
*
|
|
416
591
|
* 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.
|
|
417
592
|
*
|
|
418
593
|
*/
|
|
419
594
|
static deleteToken(options) {
|
|
420
|
-
return (options
|
|
595
|
+
return (options.client ?? client).delete({
|
|
421
596
|
url: '/tokens/{token_id}',
|
|
422
597
|
...options
|
|
423
598
|
});
|
|
424
599
|
}
|
|
425
600
|
/**
|
|
426
601
|
* Get access token information.
|
|
602
|
+
*
|
|
427
603
|
* 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.
|
|
428
604
|
*
|
|
429
605
|
*/
|
|
430
606
|
static getToken(options) {
|
|
431
|
-
return (options
|
|
607
|
+
return (options.client ?? client).get({
|
|
432
608
|
url: '/tokens/{token_id}',
|
|
433
609
|
...options
|
|
434
610
|
});
|
|
435
611
|
}
|
|
436
612
|
/**
|
|
437
613
|
* Update access token information.
|
|
614
|
+
*
|
|
438
615
|
* 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.
|
|
439
616
|
*
|
|
440
617
|
* This endpoint is available to administrators of the organization only.
|
|
441
618
|
*
|
|
442
619
|
*/
|
|
443
620
|
static updateToken(options) {
|
|
444
|
-
return (options
|
|
621
|
+
return (options.client ?? client).put({
|
|
445
622
|
url: '/tokens/{token_id}',
|
|
446
623
|
...options,
|
|
447
624
|
headers: {
|
|
448
625
|
'Content-Type': 'application/json',
|
|
449
|
-
...options
|
|
626
|
+
...options.headers
|
|
450
627
|
}
|
|
451
628
|
});
|
|
452
629
|
}
|
|
453
630
|
/**
|
|
454
631
|
* Regenerate access token secret key.
|
|
632
|
+
*
|
|
455
633
|
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
456
634
|
*/
|
|
457
635
|
static regenerateToken(options) {
|
|
458
|
-
return (options
|
|
636
|
+
return (options.client ?? client).put({
|
|
459
637
|
url: '/tokens/{token_id}/secret',
|
|
460
638
|
...options
|
|
461
639
|
});
|
|
@@ -466,14 +644,15 @@ export class UsersService {
|
|
|
466
644
|
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
467
645
|
*/
|
|
468
646
|
static listUserOrganizations(options) {
|
|
469
|
-
return (options
|
|
647
|
+
return (options.client ?? client).get({
|
|
470
648
|
url: '/users/organizations/{email}',
|
|
471
649
|
...options
|
|
472
650
|
});
|
|
473
651
|
}
|
|
474
652
|
/**
|
|
475
653
|
* List users in organization.
|
|
476
|
-
*
|
|
654
|
+
*
|
|
655
|
+
* 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.
|
|
477
656
|
*
|
|
478
657
|
* This endpoint is available to all users in the organization.
|
|
479
658
|
*
|
|
@@ -486,81 +665,59 @@ export class UsersService {
|
|
|
486
665
|
}
|
|
487
666
|
/**
|
|
488
667
|
* Create a new user.
|
|
489
|
-
*
|
|
668
|
+
*
|
|
669
|
+
* 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.
|
|
490
670
|
*
|
|
491
671
|
*/
|
|
492
672
|
static createUser(options) {
|
|
493
|
-
return (options
|
|
673
|
+
return (options.client ?? client).post({
|
|
494
674
|
url: '/users',
|
|
495
675
|
...options,
|
|
496
676
|
headers: {
|
|
497
677
|
'Content-Type': 'application/json',
|
|
498
|
-
...options
|
|
678
|
+
...options.headers
|
|
499
679
|
}
|
|
500
680
|
});
|
|
501
681
|
}
|
|
502
682
|
/**
|
|
503
683
|
* Delete user by id.
|
|
684
|
+
*
|
|
504
685
|
* Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
|
|
505
686
|
*
|
|
506
687
|
*/
|
|
507
688
|
static deleteUser(options) {
|
|
508
|
-
return (options
|
|
689
|
+
return (options.client ?? client).delete({
|
|
509
690
|
url: '/users/{user_id}',
|
|
510
691
|
...options
|
|
511
692
|
});
|
|
512
693
|
}
|
|
513
694
|
/**
|
|
514
695
|
* Get user profile information by id.
|
|
515
|
-
*
|
|
696
|
+
*
|
|
697
|
+
* Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
|
|
516
698
|
*
|
|
517
699
|
* This endpoint is available to all users in the organization.
|
|
518
700
|
*
|
|
519
701
|
*/
|
|
520
702
|
static getUser(options) {
|
|
521
|
-
return (options
|
|
703
|
+
return (options.client ?? client).get({
|
|
522
704
|
url: '/users/{user_id}',
|
|
523
705
|
...options
|
|
524
706
|
});
|
|
525
707
|
}
|
|
526
708
|
/**
|
|
527
709
|
* Update user profile information.
|
|
710
|
+
*
|
|
528
711
|
* 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.
|
|
529
712
|
*
|
|
530
713
|
*/
|
|
531
714
|
static updateUser(options) {
|
|
532
|
-
return (options
|
|
715
|
+
return (options.client ?? client).put({
|
|
533
716
|
url: '/users/{user_id}',
|
|
534
717
|
...options,
|
|
535
718
|
headers: {
|
|
536
719
|
'Content-Type': 'application/json',
|
|
537
|
-
...options
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
* Remove user from cluster.
|
|
543
|
-
* Removes user from the cluster. The user will no longer be able to access the cluster and all its resources. This endpoint is available to administrators of the organization only.
|
|
544
|
-
*
|
|
545
|
-
*/
|
|
546
|
-
static deleteClusterPermissions(options) {
|
|
547
|
-
return (options?.client ?? client).delete({
|
|
548
|
-
url: '/users/{user_id}/clusters/{cluster_id}',
|
|
549
|
-
...options
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
/**
|
|
553
|
-
* Add user to cluster and set permissions.
|
|
554
|
-
* Add user to the cluster and set / update access permissions. This endpoint is available to administrators of the organization only.
|
|
555
|
-
*
|
|
556
|
-
*/
|
|
557
|
-
static setClusterPermissions(options) {
|
|
558
|
-
return (options?.client ?? client).put({
|
|
559
|
-
url: '/users/{user_id}/clusters/{cluster_id}',
|
|
560
|
-
...options,
|
|
561
|
-
headers: {
|
|
562
|
-
'Content-Type': 'application/json',
|
|
563
|
-
...options?.headers
|
|
720
|
+
...options.headers
|
|
564
721
|
}
|
|
565
722
|
});
|
|
566
723
|
}
|