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