@cloudfleet/sdk 0.0.1-8e8e76c → 0.0.1-8e907c6
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 +1151 -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 +1606 -668
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2872 -701
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +245 -70
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +333 -161
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +1457 -403
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3743 -1982
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1563 -792
- package/dist/zod.gen.js.map +1 -1
- package/package.json +29 -7
package/dist/sdk.gen.js
CHANGED
|
@@ -1,455 +1,634 @@
|
|
|
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: {
|
|
91
79
|
'Content-Type': 'application/json',
|
|
92
|
-
...options
|
|
80
|
+
...options.headers
|
|
93
81
|
}
|
|
94
82
|
});
|
|
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: {
|
|
117
104
|
'Content-Type': 'application/json',
|
|
118
|
-
...options
|
|
105
|
+
...options.headers
|
|
119
106
|
}
|
|
120
107
|
});
|
|
121
108
|
}
|
|
122
109
|
}
|
|
123
110
|
export class ClustersService {
|
|
111
|
+
/**
|
|
112
|
+
* List charts.
|
|
113
|
+
*
|
|
114
|
+
* Returns a list of charts in the cluster.
|
|
115
|
+
*
|
|
116
|
+
* This endpoint is available to all users in the organization.
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
static listCharts(options) {
|
|
120
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Create a new chart.
|
|
124
|
+
*
|
|
125
|
+
* Create a new chart deployment.
|
|
126
|
+
*
|
|
127
|
+
* This endpoint is available to administrators of the organization only.
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
static createChart(options) {
|
|
131
|
+
return (options.client ?? client).post({
|
|
132
|
+
url: '/clusters/{cluster_id}/charts',
|
|
133
|
+
...options,
|
|
134
|
+
headers: {
|
|
135
|
+
'Content-Type': 'application/json',
|
|
136
|
+
...options.headers
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Permanently delete the chart deployment from the cluster.
|
|
142
|
+
*
|
|
143
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
144
|
+
*
|
|
145
|
+
* This endpoint is available to administrators of the organization only.
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
static deleteChart(options) {
|
|
149
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Get chart information.
|
|
153
|
+
*
|
|
154
|
+
* Returns the details of the chart deployment.
|
|
155
|
+
*
|
|
156
|
+
* This endpoint is available to all users in the organization.
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
159
|
+
static getChart(options) {
|
|
160
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Update chart information.
|
|
164
|
+
*
|
|
165
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
166
|
+
*
|
|
167
|
+
* This endpoint is available to administrators of the organization only.
|
|
168
|
+
*
|
|
169
|
+
*/
|
|
170
|
+
static updateChart(options) {
|
|
171
|
+
return (options.client ?? client).put({
|
|
172
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
173
|
+
...options,
|
|
174
|
+
headers: {
|
|
175
|
+
'Content-Type': 'application/json',
|
|
176
|
+
...options.headers
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
124
180
|
/**
|
|
125
181
|
* List fleets.
|
|
126
|
-
*
|
|
182
|
+
*
|
|
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.
|
|
127
184
|
*
|
|
128
185
|
* This endpoint is available to all users in the organization.
|
|
129
186
|
*
|
|
130
187
|
*/
|
|
131
188
|
static listFleets(options) {
|
|
132
|
-
return (options.client ??
|
|
133
|
-
url: '/clusters/{cluster_id}/fleets',
|
|
134
|
-
...options
|
|
135
|
-
});
|
|
189
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
|
|
136
190
|
}
|
|
137
191
|
/**
|
|
138
192
|
* Create a new fleet.
|
|
139
|
-
*
|
|
193
|
+
*
|
|
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.
|
|
140
195
|
*
|
|
141
196
|
* This endpoint is available to administrators of the organization only.
|
|
142
197
|
*
|
|
143
198
|
*/
|
|
144
199
|
static createFleet(options) {
|
|
145
|
-
return (options.client ??
|
|
200
|
+
return (options.client ?? client).post({
|
|
146
201
|
url: '/clusters/{cluster_id}/fleets',
|
|
147
202
|
...options,
|
|
148
203
|
headers: {
|
|
149
204
|
'Content-Type': 'application/json',
|
|
150
|
-
...options
|
|
205
|
+
...options.headers
|
|
151
206
|
}
|
|
152
207
|
});
|
|
153
208
|
}
|
|
154
209
|
/**
|
|
155
210
|
* Permanently delete fleet.
|
|
156
|
-
*
|
|
211
|
+
*
|
|
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.
|
|
157
213
|
*
|
|
158
214
|
* This endpoint is available to administrators of the organization only.
|
|
159
215
|
*
|
|
160
216
|
*/
|
|
161
217
|
static deleteFleet(options) {
|
|
162
|
-
return (options.client ??
|
|
163
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
164
|
-
...options
|
|
165
|
-
});
|
|
218
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
166
219
|
}
|
|
167
220
|
/**
|
|
168
221
|
* Get fleet information.
|
|
169
|
-
*
|
|
222
|
+
*
|
|
223
|
+
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
170
224
|
*
|
|
171
225
|
* This endpoint is available to all users in the organization.
|
|
172
226
|
*
|
|
173
227
|
*/
|
|
174
228
|
static getFleet(options) {
|
|
175
|
-
return (options.client ??
|
|
176
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
177
|
-
...options
|
|
178
|
-
});
|
|
229
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
179
230
|
}
|
|
180
231
|
/**
|
|
181
232
|
* Update fleet information.
|
|
233
|
+
*
|
|
182
234
|
* This endpoint allows you to update fleet details.
|
|
183
235
|
*
|
|
184
|
-
* 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
|
|
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`.
|
|
185
237
|
*
|
|
186
|
-
* For more information, see [Fleets
|
|
238
|
+
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
187
239
|
*
|
|
188
240
|
* This endpoint is available to administrators of the organization only.
|
|
189
241
|
*
|
|
190
242
|
*/
|
|
191
243
|
static updateFleet(options) {
|
|
192
|
-
return (options.client ??
|
|
244
|
+
return (options.client ?? client).put({
|
|
193
245
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
194
246
|
...options,
|
|
195
247
|
headers: {
|
|
196
248
|
'Content-Type': 'application/json',
|
|
197
|
-
...options
|
|
249
|
+
...options.headers
|
|
198
250
|
}
|
|
199
251
|
});
|
|
200
252
|
}
|
|
201
253
|
/**
|
|
202
254
|
* Query Kubernetes cluster API
|
|
255
|
+
*
|
|
203
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.
|
|
204
257
|
*/
|
|
205
258
|
static queryCluster(options) {
|
|
206
|
-
return (options.client ??
|
|
207
|
-
url: '/clusters/{cluster_id}/query',
|
|
208
|
-
...options
|
|
209
|
-
});
|
|
259
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
|
|
210
260
|
}
|
|
211
261
|
/**
|
|
212
262
|
* List clusters.
|
|
263
|
+
*
|
|
213
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.
|
|
214
265
|
*
|
|
215
266
|
* This endpoint is available to all users in the organization.
|
|
216
267
|
*
|
|
217
268
|
*/
|
|
218
269
|
static listClusters(options) {
|
|
219
|
-
return (options?.client ??
|
|
220
|
-
url: '/clusters',
|
|
221
|
-
...options
|
|
222
|
-
});
|
|
270
|
+
return (options?.client ?? client).get({ url: '/clusters', ...options });
|
|
223
271
|
}
|
|
224
272
|
/**
|
|
225
273
|
* Create a new cluster.
|
|
274
|
+
*
|
|
226
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.
|
|
227
276
|
*
|
|
228
277
|
* This endpoint is available to administrators of the organization only.
|
|
229
278
|
*
|
|
230
279
|
*/
|
|
231
280
|
static createCluster(options) {
|
|
232
|
-
return (options.client ??
|
|
281
|
+
return (options.client ?? client).post({
|
|
233
282
|
url: '/clusters',
|
|
234
283
|
...options,
|
|
235
284
|
headers: {
|
|
236
285
|
'Content-Type': 'application/json',
|
|
237
|
-
...options
|
|
286
|
+
...options.headers
|
|
238
287
|
}
|
|
239
288
|
});
|
|
240
289
|
}
|
|
241
290
|
/**
|
|
242
291
|
* Permanently delete cluster.
|
|
292
|
+
*
|
|
243
293
|
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
244
294
|
*
|
|
245
295
|
* This endpoint is available to administrators of the organization only.
|
|
246
296
|
*
|
|
247
297
|
*/
|
|
248
298
|
static deleteCluster(options) {
|
|
249
|
-
return (options.client ??
|
|
250
|
-
url: '/clusters/{cluster_id}',
|
|
251
|
-
...options
|
|
252
|
-
});
|
|
299
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
|
|
253
300
|
}
|
|
254
301
|
/**
|
|
255
302
|
* Get cluster information.
|
|
303
|
+
*
|
|
256
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.
|
|
257
305
|
*
|
|
258
306
|
* This endpoint is available to all users in the organization.
|
|
259
307
|
*
|
|
260
308
|
*/
|
|
261
309
|
static getCluster(options) {
|
|
262
|
-
return (options.client ??
|
|
263
|
-
url: '/clusters/{cluster_id}',
|
|
264
|
-
...options
|
|
265
|
-
});
|
|
310
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
|
|
266
311
|
}
|
|
267
312
|
/**
|
|
268
313
|
* Update cluster information.
|
|
314
|
+
*
|
|
269
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.
|
|
270
316
|
*
|
|
271
317
|
* This endpoint is available to administrators of the organization only.
|
|
272
318
|
*
|
|
273
319
|
*/
|
|
274
320
|
static updateCluster(options) {
|
|
275
|
-
return (options.client ??
|
|
321
|
+
return (options.client ?? client).put({
|
|
276
322
|
url: '/clusters/{cluster_id}',
|
|
277
323
|
...options,
|
|
278
324
|
headers: {
|
|
279
325
|
'Content-Type': 'application/json',
|
|
280
|
-
...options
|
|
326
|
+
...options.headers
|
|
281
327
|
}
|
|
282
328
|
});
|
|
283
329
|
}
|
|
284
330
|
/**
|
|
285
331
|
* Node join information for the cluster
|
|
286
|
-
*
|
|
332
|
+
*
|
|
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.
|
|
287
334
|
*
|
|
288
335
|
*/
|
|
289
336
|
static getJoinInformation(options) {
|
|
290
|
-
return (options.client ??
|
|
291
|
-
url: '/clusters/{cluster_id}/join_information',
|
|
292
|
-
...options
|
|
293
|
-
});
|
|
337
|
+
return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
|
|
294
338
|
}
|
|
295
339
|
}
|
|
296
340
|
export class InvitesService {
|
|
297
341
|
/**
|
|
298
342
|
* List invites.
|
|
299
|
-
*
|
|
343
|
+
*
|
|
344
|
+
* Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
|
|
300
345
|
*
|
|
301
346
|
*/
|
|
302
347
|
static listInvites(options) {
|
|
303
|
-
return (options?.client ??
|
|
304
|
-
url: '/invites',
|
|
305
|
-
...options
|
|
306
|
-
});
|
|
348
|
+
return (options?.client ?? client).get({ url: '/invites', ...options });
|
|
307
349
|
}
|
|
308
350
|
/**
|
|
309
351
|
* Create a new invite.
|
|
352
|
+
*
|
|
310
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.
|
|
311
354
|
*
|
|
312
355
|
*/
|
|
313
356
|
static createInvite(options) {
|
|
314
|
-
return (options.client ??
|
|
357
|
+
return (options.client ?? client).post({
|
|
315
358
|
url: '/invites',
|
|
316
359
|
...options,
|
|
317
360
|
headers: {
|
|
318
361
|
'Content-Type': 'application/json',
|
|
319
|
-
...options
|
|
362
|
+
...options.headers
|
|
320
363
|
}
|
|
321
364
|
});
|
|
322
365
|
}
|
|
323
366
|
/**
|
|
324
367
|
* Get invite information.
|
|
325
|
-
*
|
|
368
|
+
*
|
|
369
|
+
* Validates an invitation code and returns the email address it was issued to (to pre-fill the signup form) and the organization it grants access to. This endpoint is unauthenticated, so no other invite details (such as the invited role) are disclosed.
|
|
326
370
|
*
|
|
327
371
|
*/
|
|
328
372
|
static getInvite(options) {
|
|
329
|
-
return (options.client ??
|
|
330
|
-
url: '/invites/{code}',
|
|
331
|
-
...options
|
|
332
|
-
});
|
|
373
|
+
return (options.client ?? client).get({ url: '/invites/{code}', ...options });
|
|
333
374
|
}
|
|
334
375
|
/**
|
|
335
376
|
* Permanently delete invite.
|
|
377
|
+
*
|
|
336
378
|
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
337
379
|
*
|
|
338
380
|
*/
|
|
339
381
|
static deleteInvite(options) {
|
|
340
|
-
return (options.client ??
|
|
341
|
-
|
|
342
|
-
|
|
382
|
+
return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
export class ChartsMarketplaceService {
|
|
386
|
+
/**
|
|
387
|
+
* List chart listings available in the marketplace.
|
|
388
|
+
*
|
|
389
|
+
* Returns a list of available charts in the marketplace.
|
|
390
|
+
*
|
|
391
|
+
* This endpoint is available to all users in the organization.
|
|
392
|
+
*
|
|
393
|
+
*/
|
|
394
|
+
static listMarketplaceCharts(options) {
|
|
395
|
+
return (options?.client ?? client).get({ url: '/marketplace', ...options });
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
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.
|
|
403
|
+
*
|
|
404
|
+
* This endpoint is available to all users in the organization.
|
|
405
|
+
*
|
|
406
|
+
*/
|
|
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
|
+
}
|
|
343
425
|
});
|
|
344
426
|
}
|
|
345
427
|
}
|
|
346
428
|
export class OrganizationService {
|
|
347
429
|
/**
|
|
348
430
|
* Get organization information.
|
|
431
|
+
*
|
|
349
432
|
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
350
433
|
*
|
|
351
434
|
* This endpoint is available to all users in the organization.
|
|
352
435
|
*
|
|
353
436
|
*/
|
|
354
437
|
static getOrganization(options) {
|
|
355
|
-
return (options?.client ??
|
|
356
|
-
url: '/organization',
|
|
357
|
-
...options
|
|
358
|
-
});
|
|
438
|
+
return (options?.client ?? client).get({ url: '/organization', ...options });
|
|
359
439
|
}
|
|
360
440
|
/**
|
|
361
441
|
* Create a new organization / Cloudfleet account signup.
|
|
442
|
+
*
|
|
362
443
|
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
363
444
|
*
|
|
364
445
|
*/
|
|
365
446
|
static createOrganization(options) {
|
|
366
|
-
return (options.client ??
|
|
447
|
+
return (options.client ?? client).post({
|
|
367
448
|
url: '/organization',
|
|
368
449
|
...options,
|
|
369
450
|
headers: {
|
|
370
451
|
'Content-Type': 'application/json',
|
|
371
|
-
...options
|
|
452
|
+
...options.headers
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
}
|
|
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
|
|
372
551
|
}
|
|
373
552
|
});
|
|
374
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
|
+
}
|
|
375
560
|
}
|
|
376
561
|
export class TokensService {
|
|
377
562
|
/**
|
|
378
563
|
* List access tokens in organization.
|
|
564
|
+
*
|
|
379
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.
|
|
380
566
|
*
|
|
381
567
|
*/
|
|
382
568
|
static listTokens(options) {
|
|
383
|
-
return (options?.client ??
|
|
384
|
-
url: '/tokens',
|
|
385
|
-
...options
|
|
386
|
-
});
|
|
569
|
+
return (options?.client ?? client).get({ url: '/tokens', ...options });
|
|
387
570
|
}
|
|
388
571
|
/**
|
|
389
572
|
* Create a new access token.
|
|
573
|
+
*
|
|
390
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.
|
|
391
575
|
*
|
|
392
576
|
* This endpoint is available to administrators of the organization only.
|
|
393
577
|
*
|
|
394
578
|
*/
|
|
395
579
|
static createToken(options) {
|
|
396
|
-
return (options.client ??
|
|
580
|
+
return (options.client ?? client).post({
|
|
397
581
|
url: '/tokens',
|
|
398
582
|
...options,
|
|
399
583
|
headers: {
|
|
400
584
|
'Content-Type': 'application/json',
|
|
401
|
-
...options
|
|
585
|
+
...options.headers
|
|
402
586
|
}
|
|
403
587
|
});
|
|
404
588
|
}
|
|
405
589
|
/**
|
|
406
590
|
* Permanently delete access token.
|
|
591
|
+
*
|
|
407
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.
|
|
408
593
|
*
|
|
409
594
|
*/
|
|
410
595
|
static deleteToken(options) {
|
|
411
|
-
return (options.client ??
|
|
412
|
-
url: '/tokens/{token_id}',
|
|
413
|
-
...options
|
|
414
|
-
});
|
|
596
|
+
return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
|
|
415
597
|
}
|
|
416
598
|
/**
|
|
417
599
|
* Get access token information.
|
|
600
|
+
*
|
|
418
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.
|
|
419
602
|
*
|
|
420
603
|
*/
|
|
421
604
|
static getToken(options) {
|
|
422
|
-
return (options.client ??
|
|
423
|
-
url: '/tokens/{token_id}',
|
|
424
|
-
...options
|
|
425
|
-
});
|
|
605
|
+
return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
|
|
426
606
|
}
|
|
427
607
|
/**
|
|
428
608
|
* Update access token information.
|
|
609
|
+
*
|
|
429
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.
|
|
430
611
|
*
|
|
431
612
|
* This endpoint is available to administrators of the organization only.
|
|
432
613
|
*
|
|
433
614
|
*/
|
|
434
615
|
static updateToken(options) {
|
|
435
|
-
return (options.client ??
|
|
616
|
+
return (options.client ?? client).put({
|
|
436
617
|
url: '/tokens/{token_id}',
|
|
437
618
|
...options,
|
|
438
619
|
headers: {
|
|
439
620
|
'Content-Type': 'application/json',
|
|
440
|
-
...options
|
|
621
|
+
...options.headers
|
|
441
622
|
}
|
|
442
623
|
});
|
|
443
624
|
}
|
|
444
625
|
/**
|
|
445
626
|
* Regenerate access token secret key.
|
|
627
|
+
*
|
|
446
628
|
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
447
629
|
*/
|
|
448
630
|
static regenerateToken(options) {
|
|
449
|
-
return (options.client ??
|
|
450
|
-
url: '/tokens/{token_id}/secret',
|
|
451
|
-
...options
|
|
452
|
-
});
|
|
631
|
+
return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
|
|
453
632
|
}
|
|
454
633
|
}
|
|
455
634
|
export class UsersService {
|
|
@@ -457,75 +636,68 @@ export class UsersService {
|
|
|
457
636
|
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
458
637
|
*/
|
|
459
638
|
static listUserOrganizations(options) {
|
|
460
|
-
return (options.client ??
|
|
461
|
-
url: '/users/organizations/{email}',
|
|
462
|
-
...options
|
|
463
|
-
});
|
|
639
|
+
return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
|
|
464
640
|
}
|
|
465
641
|
/**
|
|
466
642
|
* List users in organization.
|
|
643
|
+
*
|
|
467
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.
|
|
468
645
|
*
|
|
469
646
|
* This endpoint is available to all users in the organization.
|
|
470
647
|
*
|
|
471
648
|
*/
|
|
472
649
|
static listUsers(options) {
|
|
473
|
-
return (options?.client ??
|
|
474
|
-
url: '/users',
|
|
475
|
-
...options
|
|
476
|
-
});
|
|
650
|
+
return (options?.client ?? client).get({ url: '/users', ...options });
|
|
477
651
|
}
|
|
478
652
|
/**
|
|
479
653
|
* Create a new user.
|
|
654
|
+
*
|
|
480
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.
|
|
481
656
|
*
|
|
482
657
|
*/
|
|
483
658
|
static createUser(options) {
|
|
484
|
-
return (options.client ??
|
|
659
|
+
return (options.client ?? client).post({
|
|
485
660
|
url: '/users',
|
|
486
661
|
...options,
|
|
487
662
|
headers: {
|
|
488
663
|
'Content-Type': 'application/json',
|
|
489
|
-
...options
|
|
664
|
+
...options.headers
|
|
490
665
|
}
|
|
491
666
|
});
|
|
492
667
|
}
|
|
493
668
|
/**
|
|
494
669
|
* Delete user by id.
|
|
670
|
+
*
|
|
495
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.
|
|
496
672
|
*
|
|
497
673
|
*/
|
|
498
674
|
static deleteUser(options) {
|
|
499
|
-
return (options.client ??
|
|
500
|
-
url: '/users/{user_id}',
|
|
501
|
-
...options
|
|
502
|
-
});
|
|
675
|
+
return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
|
|
503
676
|
}
|
|
504
677
|
/**
|
|
505
678
|
* Get user profile information by id.
|
|
679
|
+
*
|
|
506
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.
|
|
507
681
|
*
|
|
508
682
|
* This endpoint is available to all users in the organization.
|
|
509
683
|
*
|
|
510
684
|
*/
|
|
511
685
|
static getUser(options) {
|
|
512
|
-
return (options.client ??
|
|
513
|
-
url: '/users/{user_id}',
|
|
514
|
-
...options
|
|
515
|
-
});
|
|
686
|
+
return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
|
|
516
687
|
}
|
|
517
688
|
/**
|
|
518
689
|
* Update user profile information.
|
|
690
|
+
*
|
|
519
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.
|
|
520
692
|
*
|
|
521
693
|
*/
|
|
522
694
|
static updateUser(options) {
|
|
523
|
-
return (options.client ??
|
|
695
|
+
return (options.client ?? client).put({
|
|
524
696
|
url: '/users/{user_id}',
|
|
525
697
|
...options,
|
|
526
698
|
headers: {
|
|
527
699
|
'Content-Type': 'application/json',
|
|
528
|
-
...options
|
|
700
|
+
...options.headers
|
|
529
701
|
}
|
|
530
702
|
});
|
|
531
703
|
}
|