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