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