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