@cloudfleet/sdk 0.0.1-22fefe4 → 0.0.1-253c998

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.
Files changed (87) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1048 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1040 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts +3 -0
  6. package/dist/client/client.gen.d.ts.map +1 -0
  7. package/dist/client/client.gen.js +220 -0
  8. package/dist/client/client.gen.js.map +1 -0
  9. package/dist/client/index.d.ts +9 -0
  10. package/dist/client/index.d.ts.map +1 -0
  11. package/dist/client/index.js +7 -0
  12. package/dist/client/index.js.map +1 -0
  13. package/dist/client/types.gen.d.ts +121 -0
  14. package/dist/client/types.gen.d.ts.map +1 -0
  15. package/dist/client/types.gen.js +3 -0
  16. package/dist/client/types.gen.js.map +1 -0
  17. package/dist/client/utils.gen.d.ts +38 -0
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/utils.gen.js +229 -0
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +13 -0
  22. package/dist/client.gen.d.ts.map +1 -0
  23. package/dist/client.gen.js +4 -0
  24. package/dist/client.gen.js.map +1 -0
  25. package/dist/core/auth.gen.d.ts +19 -0
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/auth.gen.js +15 -0
  28. package/dist/core/auth.gen.js.map +1 -0
  29. package/dist/core/bodySerializer.gen.d.ts +26 -0
  30. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  31. package/dist/core/bodySerializer.gen.js +58 -0
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/params.gen.d.ts +44 -0
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/params.gen.js +101 -0
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/pathSerializer.gen.d.ts +34 -0
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/pathSerializer.gen.js +107 -0
  40. package/dist/core/pathSerializer.gen.js.map +1 -0
  41. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  43. package/dist/core/queryKeySerializer.gen.js +93 -0
  44. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  45. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  46. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  47. package/dist/core/serverSentEvents.gen.js +133 -0
  48. package/dist/core/serverSentEvents.gen.js.map +1 -0
  49. package/dist/core/types.gen.d.ts +79 -0
  50. package/dist/core/types.gen.d.ts.map +1 -0
  51. package/dist/core/types.gen.js +3 -0
  52. package/dist/core/types.gen.js.map +1 -0
  53. package/dist/core/utils.gen.d.ts +20 -0
  54. package/dist/core/utils.gen.d.ts.map +1 -0
  55. package/dist/core/utils.gen.js +88 -0
  56. package/dist/core/utils.gen.js.map +1 -0
  57. package/dist/index.d.ts +3 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +3 -0
  60. package/dist/index.js.map +1 -1
  61. package/dist/schemas.gen.d.ts +935 -985
  62. package/dist/schemas.gen.d.ts.map +1 -1
  63. package/dist/schemas.gen.js +1472 -1089
  64. package/dist/schemas.gen.js.map +1 -1
  65. package/dist/sdk.gen.d.ts +227 -142
  66. package/dist/sdk.gen.d.ts.map +1 -1
  67. package/dist/sdk.gen.js +284 -223
  68. package/dist/sdk.gen.js.map +1 -1
  69. package/dist/services/kubernetes/api.d.ts +196 -0
  70. package/dist/services/kubernetes/api.d.ts.map +1 -0
  71. package/dist/services/kubernetes/api.js +140 -0
  72. package/dist/services/kubernetes/api.js.map +1 -0
  73. package/dist/services/kubernetes/index.d.ts +44 -0
  74. package/dist/services/kubernetes/index.d.ts.map +1 -0
  75. package/dist/services/kubernetes/index.js +68 -0
  76. package/dist/services/kubernetes/index.js.map +1 -0
  77. package/dist/services/kubernetes/types.d.ts +1335 -0
  78. package/dist/services/kubernetes/types.d.ts.map +1 -0
  79. package/dist/services/kubernetes/types.js +2 -0
  80. package/dist/services/kubernetes/types.js.map +1 -0
  81. package/dist/types.gen.d.ts +965 -939
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +1709 -2855
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +692 -866
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +31 -5
@@ -0,0 +1,1040 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { queryOptions } from '@tanstack/react-query';
3
+ import { client } from '../client.gen';
4
+ import { BillingService, ChartsMarketplaceService, ClustersService, InvitesService, McpService, OrganizationService, RegistryService, TokensService, UsersService } from '../sdk.gen';
5
+ const createQueryKey = (id, options, infinite, tags) => {
6
+ const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
7
+ if (infinite) {
8
+ params._infinite = infinite;
9
+ }
10
+ if (tags) {
11
+ params.tags = tags;
12
+ }
13
+ if (options?.body) {
14
+ params.body = options.body;
15
+ }
16
+ if (options?.headers) {
17
+ params.headers = options.headers;
18
+ }
19
+ if (options?.path) {
20
+ params.path = options.path;
21
+ }
22
+ if (options?.query) {
23
+ params.query = options.query;
24
+ }
25
+ return [params];
26
+ };
27
+ export const getUsageQueryKey = (options) => createQueryKey('getUsage', options);
28
+ /**
29
+ * Get billing usage information.
30
+ *
31
+ * 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.
32
+ *
33
+ */
34
+ export const getUsageOptions = (options) => queryOptions({
35
+ queryFn: async ({ queryKey, signal }) => {
36
+ const { data } = await BillingService.getUsage({
37
+ ...options,
38
+ ...queryKey[0],
39
+ signal,
40
+ throwOnError: true
41
+ });
42
+ return data;
43
+ },
44
+ queryKey: getUsageQueryKey(options)
45
+ });
46
+ export const getPaymentMethodQueryKey = (options) => createQueryKey('getPaymentMethod', options);
47
+ /**
48
+ * Get organization payment method information.
49
+ *
50
+ * 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.
51
+ *
52
+ */
53
+ export const getPaymentMethodOptions = (options) => queryOptions({
54
+ queryFn: async ({ queryKey, signal }) => {
55
+ const { data } = await BillingService.getPaymentMethod({
56
+ ...options,
57
+ ...queryKey[0],
58
+ signal,
59
+ throwOnError: true
60
+ });
61
+ return data;
62
+ },
63
+ queryKey: getPaymentMethodQueryKey(options)
64
+ });
65
+ /**
66
+ * Get Stripe client secret.
67
+ *
68
+ * 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.
69
+ *
70
+ */
71
+ export const getPaymentMethodSecretMutation = (options) => {
72
+ const mutationOptions = {
73
+ mutationFn: async (fnOptions) => {
74
+ const { data } = await BillingService.getPaymentMethodSecret({
75
+ ...options,
76
+ ...fnOptions,
77
+ throwOnError: true
78
+ });
79
+ return data;
80
+ }
81
+ };
82
+ return mutationOptions;
83
+ };
84
+ export const listInvoicesQueryKey = (options) => createQueryKey('listInvoices', options);
85
+ /**
86
+ * List issued invoices.
87
+ *
88
+ * 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.
89
+ *
90
+ */
91
+ export const listInvoicesOptions = (options) => queryOptions({
92
+ queryFn: async ({ queryKey, signal }) => {
93
+ const { data } = await BillingService.listInvoices({
94
+ ...options,
95
+ ...queryKey[0],
96
+ signal,
97
+ throwOnError: true
98
+ });
99
+ return data;
100
+ },
101
+ queryKey: listInvoicesQueryKey(options)
102
+ });
103
+ export const getContactQueryKey = (options) => createQueryKey('getContact', options);
104
+ /**
105
+ * Get organization contact and billing address information.
106
+ *
107
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
108
+ *
109
+ */
110
+ export const getContactOptions = (options) => queryOptions({
111
+ queryFn: async ({ queryKey, signal }) => {
112
+ const { data } = await BillingService.getContact({
113
+ ...options,
114
+ ...queryKey[0],
115
+ signal,
116
+ throwOnError: true
117
+ });
118
+ return data;
119
+ },
120
+ queryKey: getContactQueryKey(options)
121
+ });
122
+ /**
123
+ * Update organization contact information and billing address.
124
+ *
125
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
126
+ *
127
+ */
128
+ export const updateContactMutation = (options) => {
129
+ const mutationOptions = {
130
+ mutationFn: async (fnOptions) => {
131
+ const { data } = await BillingService.updateContact({
132
+ ...options,
133
+ ...fnOptions,
134
+ throwOnError: true
135
+ });
136
+ return data;
137
+ }
138
+ };
139
+ return mutationOptions;
140
+ };
141
+ export const getCreditsQueryKey = (options) => createQueryKey('getCredits', options);
142
+ /**
143
+ * Get applied promotional credits
144
+ *
145
+ * 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.
146
+ *
147
+ */
148
+ export const getCreditsOptions = (options) => queryOptions({
149
+ queryFn: async ({ queryKey, signal }) => {
150
+ const { data } = await BillingService.getCredits({
151
+ ...options,
152
+ ...queryKey[0],
153
+ signal,
154
+ throwOnError: true
155
+ });
156
+ return data;
157
+ },
158
+ queryKey: getCreditsQueryKey(options)
159
+ });
160
+ /**
161
+ * Redeem promotional credits code.
162
+ *
163
+ * 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.
164
+ *
165
+ */
166
+ export const redeemCreditsMutation = (options) => {
167
+ const mutationOptions = {
168
+ mutationFn: async (fnOptions) => {
169
+ const { data } = await BillingService.redeemCredits({
170
+ ...options,
171
+ ...fnOptions,
172
+ throwOnError: true
173
+ });
174
+ return data;
175
+ }
176
+ };
177
+ return mutationOptions;
178
+ };
179
+ export const listChartsQueryKey = (options) => createQueryKey('listCharts', options);
180
+ /**
181
+ * List charts.
182
+ *
183
+ * Returns a list of charts in the cluster.
184
+ *
185
+ * This endpoint is available to all users in the organization.
186
+ *
187
+ */
188
+ export const listChartsOptions = (options) => queryOptions({
189
+ queryFn: async ({ queryKey, signal }) => {
190
+ const { data } = await ClustersService.listCharts({
191
+ ...options,
192
+ ...queryKey[0],
193
+ signal,
194
+ throwOnError: true
195
+ });
196
+ return data;
197
+ },
198
+ queryKey: listChartsQueryKey(options)
199
+ });
200
+ /**
201
+ * Create a new chart.
202
+ *
203
+ * Create a new chart deployment.
204
+ *
205
+ * This endpoint is available to administrators of the organization only.
206
+ *
207
+ */
208
+ export const createChartMutation = (options) => {
209
+ const mutationOptions = {
210
+ mutationFn: async (fnOptions) => {
211
+ const { data } = await ClustersService.createChart({
212
+ ...options,
213
+ ...fnOptions,
214
+ throwOnError: true
215
+ });
216
+ return data;
217
+ }
218
+ };
219
+ return mutationOptions;
220
+ };
221
+ /**
222
+ * Permanently delete the chart deployment from the cluster.
223
+ *
224
+ * This endpoint will permanently delete chart. This operation cannot be undone.
225
+ *
226
+ * This endpoint is available to administrators of the organization only.
227
+ *
228
+ */
229
+ export const deleteChartMutation = (options) => {
230
+ const mutationOptions = {
231
+ mutationFn: async (fnOptions) => {
232
+ const { data } = await ClustersService.deleteChart({
233
+ ...options,
234
+ ...fnOptions,
235
+ throwOnError: true
236
+ });
237
+ return data;
238
+ }
239
+ };
240
+ return mutationOptions;
241
+ };
242
+ export const getChartQueryKey = (options) => createQueryKey('getChart', options);
243
+ /**
244
+ * Get chart information.
245
+ *
246
+ * Returns the details of the chart deployment.
247
+ *
248
+ * This endpoint is available to all users in the organization.
249
+ *
250
+ */
251
+ export const getChartOptions = (options) => queryOptions({
252
+ queryFn: async ({ queryKey, signal }) => {
253
+ const { data } = await ClustersService.getChart({
254
+ ...options,
255
+ ...queryKey[0],
256
+ signal,
257
+ throwOnError: true
258
+ });
259
+ return data;
260
+ },
261
+ queryKey: getChartQueryKey(options)
262
+ });
263
+ /**
264
+ * Update chart information.
265
+ *
266
+ * This endpoint allows you to update the values of a chart deployment.
267
+ *
268
+ * This endpoint is available to administrators of the organization only.
269
+ *
270
+ */
271
+ export const updateChartMutation = (options) => {
272
+ const mutationOptions = {
273
+ mutationFn: async (fnOptions) => {
274
+ const { data } = await ClustersService.updateChart({
275
+ ...options,
276
+ ...fnOptions,
277
+ throwOnError: true
278
+ });
279
+ return data;
280
+ }
281
+ };
282
+ return mutationOptions;
283
+ };
284
+ export const listFleetsQueryKey = (options) => createQueryKey('listFleets', options);
285
+ /**
286
+ * List fleets.
287
+ *
288
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
289
+ *
290
+ * This endpoint is available to all users in the organization.
291
+ *
292
+ */
293
+ export const listFleetsOptions = (options) => queryOptions({
294
+ queryFn: async ({ queryKey, signal }) => {
295
+ const { data } = await ClustersService.listFleets({
296
+ ...options,
297
+ ...queryKey[0],
298
+ signal,
299
+ throwOnError: true
300
+ });
301
+ return data;
302
+ },
303
+ queryKey: listFleetsQueryKey(options)
304
+ });
305
+ /**
306
+ * Create a new fleet.
307
+ *
308
+ * 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.
309
+ *
310
+ * This endpoint is available to administrators of the organization only.
311
+ *
312
+ */
313
+ export const createFleetMutation = (options) => {
314
+ const mutationOptions = {
315
+ mutationFn: async (fnOptions) => {
316
+ const { data } = await ClustersService.createFleet({
317
+ ...options,
318
+ ...fnOptions,
319
+ throwOnError: true
320
+ });
321
+ return data;
322
+ }
323
+ };
324
+ return mutationOptions;
325
+ };
326
+ /**
327
+ * Permanently delete fleet.
328
+ *
329
+ * 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.
330
+ *
331
+ * This endpoint is available to administrators of the organization only.
332
+ *
333
+ */
334
+ export const deleteFleetMutation = (options) => {
335
+ const mutationOptions = {
336
+ mutationFn: async (fnOptions) => {
337
+ const { data } = await ClustersService.deleteFleet({
338
+ ...options,
339
+ ...fnOptions,
340
+ throwOnError: true
341
+ });
342
+ return data;
343
+ }
344
+ };
345
+ return mutationOptions;
346
+ };
347
+ export const getFleetQueryKey = (options) => createQueryKey('getFleet', options);
348
+ /**
349
+ * Get fleet information.
350
+ *
351
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
352
+ *
353
+ * This endpoint is available to all users in the organization.
354
+ *
355
+ */
356
+ export const getFleetOptions = (options) => queryOptions({
357
+ queryFn: async ({ queryKey, signal }) => {
358
+ const { data } = await ClustersService.getFleet({
359
+ ...options,
360
+ ...queryKey[0],
361
+ signal,
362
+ throwOnError: true
363
+ });
364
+ return data;
365
+ },
366
+ queryKey: getFleetQueryKey(options)
367
+ });
368
+ /**
369
+ * Update fleet information.
370
+ *
371
+ * This endpoint allows you to update fleet details.
372
+ *
373
+ * 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`.
374
+ *
375
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
376
+ *
377
+ * This endpoint is available to administrators of the organization only.
378
+ *
379
+ */
380
+ export const updateFleetMutation = (options) => {
381
+ const mutationOptions = {
382
+ mutationFn: async (fnOptions) => {
383
+ const { data } = await ClustersService.updateFleet({
384
+ ...options,
385
+ ...fnOptions,
386
+ throwOnError: true
387
+ });
388
+ return data;
389
+ }
390
+ };
391
+ return mutationOptions;
392
+ };
393
+ export const queryClusterQueryKey = (options) => createQueryKey('queryCluster', options);
394
+ /**
395
+ * Query Kubernetes cluster API
396
+ *
397
+ * 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.
398
+ */
399
+ export const queryClusterOptions = (options) => queryOptions({
400
+ queryFn: async ({ queryKey, signal }) => {
401
+ const { data } = await ClustersService.queryCluster({
402
+ ...options,
403
+ ...queryKey[0],
404
+ signal,
405
+ throwOnError: true
406
+ });
407
+ return data;
408
+ },
409
+ queryKey: queryClusterQueryKey(options)
410
+ });
411
+ export const listClustersQueryKey = (options) => createQueryKey('listClusters', options);
412
+ /**
413
+ * List clusters.
414
+ *
415
+ * 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.
416
+ *
417
+ * This endpoint is available to all users in the organization.
418
+ *
419
+ */
420
+ export const listClustersOptions = (options) => queryOptions({
421
+ queryFn: async ({ queryKey, signal }) => {
422
+ const { data } = await ClustersService.listClusters({
423
+ ...options,
424
+ ...queryKey[0],
425
+ signal,
426
+ throwOnError: true
427
+ });
428
+ return data;
429
+ },
430
+ queryKey: listClustersQueryKey(options)
431
+ });
432
+ /**
433
+ * Create a new cluster.
434
+ *
435
+ * 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.
436
+ *
437
+ * This endpoint is available to administrators of the organization only.
438
+ *
439
+ */
440
+ export const createClusterMutation = (options) => {
441
+ const mutationOptions = {
442
+ mutationFn: async (fnOptions) => {
443
+ const { data } = await ClustersService.createCluster({
444
+ ...options,
445
+ ...fnOptions,
446
+ throwOnError: true
447
+ });
448
+ return data;
449
+ }
450
+ };
451
+ return mutationOptions;
452
+ };
453
+ /**
454
+ * Permanently delete cluster.
455
+ *
456
+ * This endpoint will permanently delete the cluster. This operation cannot be undone.
457
+ *
458
+ * This endpoint is available to administrators of the organization only.
459
+ *
460
+ */
461
+ export const deleteClusterMutation = (options) => {
462
+ const mutationOptions = {
463
+ mutationFn: async (fnOptions) => {
464
+ const { data } = await ClustersService.deleteCluster({
465
+ ...options,
466
+ ...fnOptions,
467
+ throwOnError: true
468
+ });
469
+ return data;
470
+ }
471
+ };
472
+ return mutationOptions;
473
+ };
474
+ export const getClusterQueryKey = (options) => createQueryKey('getCluster', options);
475
+ /**
476
+ * Get cluster information.
477
+ *
478
+ * 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.
479
+ *
480
+ * This endpoint is available to all users in the organization.
481
+ *
482
+ */
483
+ export const getClusterOptions = (options) => queryOptions({
484
+ queryFn: async ({ queryKey, signal }) => {
485
+ const { data } = await ClustersService.getCluster({
486
+ ...options,
487
+ ...queryKey[0],
488
+ signal,
489
+ throwOnError: true
490
+ });
491
+ return data;
492
+ },
493
+ queryKey: getClusterQueryKey(options)
494
+ });
495
+ /**
496
+ * Update cluster information.
497
+ *
498
+ * 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.
499
+ *
500
+ * This endpoint is available to administrators of the organization only.
501
+ *
502
+ */
503
+ export const updateClusterMutation = (options) => {
504
+ const mutationOptions = {
505
+ mutationFn: async (fnOptions) => {
506
+ const { data } = await ClustersService.updateCluster({
507
+ ...options,
508
+ ...fnOptions,
509
+ throwOnError: true
510
+ });
511
+ return data;
512
+ }
513
+ };
514
+ return mutationOptions;
515
+ };
516
+ export const getClusterCaQueryKey = (options) => createQueryKey('getClusterCa', options);
517
+ /**
518
+ * Get the cluster's certificate authority in PEM format.
519
+ *
520
+ * Returns the root certificate authority of the Kubernetes cluster as a PEM-encoded document. This endpoint does not require authentication, similar to the cluster's JWKs endpoint, since the CA certificate is public information used by clients to establish trust with the cluster's control plane.
521
+ *
522
+ */
523
+ export const getClusterCaOptions = (options) => queryOptions({
524
+ queryFn: async ({ queryKey, signal }) => {
525
+ const { data } = await ClustersService.getClusterCa({
526
+ ...options,
527
+ ...queryKey[0],
528
+ signal,
529
+ throwOnError: true
530
+ });
531
+ return data;
532
+ },
533
+ queryKey: getClusterCaQueryKey(options)
534
+ });
535
+ /**
536
+ * Node join information for the cluster
537
+ *
538
+ * 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.
539
+ *
540
+ */
541
+ export const getJoinInformationMutation = (options) => {
542
+ const mutationOptions = {
543
+ mutationFn: async (fnOptions) => {
544
+ const { data } = await ClustersService.getJoinInformation({
545
+ ...options,
546
+ ...fnOptions,
547
+ throwOnError: true
548
+ });
549
+ return data;
550
+ }
551
+ };
552
+ return mutationOptions;
553
+ };
554
+ export const listInvitesQueryKey = (options) => createQueryKey('listInvites', options);
555
+ /**
556
+ * List invites.
557
+ *
558
+ * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
559
+ *
560
+ */
561
+ export const listInvitesOptions = (options) => queryOptions({
562
+ queryFn: async ({ queryKey, signal }) => {
563
+ const { data } = await InvitesService.listInvites({
564
+ ...options,
565
+ ...queryKey[0],
566
+ signal,
567
+ throwOnError: true
568
+ });
569
+ return data;
570
+ },
571
+ queryKey: listInvitesQueryKey(options)
572
+ });
573
+ /**
574
+ * Create a new invite.
575
+ *
576
+ * 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.
577
+ *
578
+ */
579
+ export const createInviteMutation = (options) => {
580
+ const mutationOptions = {
581
+ mutationFn: async (fnOptions) => {
582
+ const { data } = await InvitesService.createInvite({
583
+ ...options,
584
+ ...fnOptions,
585
+ throwOnError: true
586
+ });
587
+ return data;
588
+ }
589
+ };
590
+ return mutationOptions;
591
+ };
592
+ export const getInviteQueryKey = (options) => createQueryKey('getInvite', options);
593
+ /**
594
+ * Get invite information.
595
+ *
596
+ * Returns invite details.
597
+ *
598
+ */
599
+ export const getInviteOptions = (options) => queryOptions({
600
+ queryFn: async ({ queryKey, signal }) => {
601
+ const { data } = await InvitesService.getInvite({
602
+ ...options,
603
+ ...queryKey[0],
604
+ signal,
605
+ throwOnError: true
606
+ });
607
+ return data;
608
+ },
609
+ queryKey: getInviteQueryKey(options)
610
+ });
611
+ /**
612
+ * Permanently delete invite.
613
+ *
614
+ * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
615
+ *
616
+ */
617
+ export const deleteInviteMutation = (options) => {
618
+ const mutationOptions = {
619
+ mutationFn: async (fnOptions) => {
620
+ const { data } = await InvitesService.deleteInvite({
621
+ ...options,
622
+ ...fnOptions,
623
+ throwOnError: true
624
+ });
625
+ return data;
626
+ }
627
+ };
628
+ return mutationOptions;
629
+ };
630
+ export const listMarketplaceChartsQueryKey = (options) => createQueryKey('listMarketplaceCharts', options);
631
+ /**
632
+ * List chart listings available in the marketplace.
633
+ *
634
+ * Returns a list of available charts in the marketplace.
635
+ *
636
+ * This endpoint is available to all users in the organization.
637
+ *
638
+ */
639
+ export const listMarketplaceChartsOptions = (options) => queryOptions({
640
+ queryFn: async ({ queryKey, signal }) => {
641
+ const { data } = await ChartsMarketplaceService.listMarketplaceCharts({
642
+ ...options,
643
+ ...queryKey[0],
644
+ signal,
645
+ throwOnError: true
646
+ });
647
+ return data;
648
+ },
649
+ queryKey: listMarketplaceChartsQueryKey(options)
650
+ });
651
+ export const getMarketplaceChartFilesQueryKey = (options) => createQueryKey('getMarketplaceChartFiles', options);
652
+ /**
653
+ * Get chart files for a specific version channel.
654
+ *
655
+ * Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
656
+ *
657
+ * 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.
658
+ *
659
+ * This endpoint is available to all users in the organization.
660
+ *
661
+ */
662
+ export const getMarketplaceChartFilesOptions = (options) => queryOptions({
663
+ queryFn: async ({ queryKey, signal }) => {
664
+ const { data } = await ChartsMarketplaceService.getMarketplaceChartFiles({
665
+ ...options,
666
+ ...queryKey[0],
667
+ signal,
668
+ throwOnError: true
669
+ });
670
+ return data;
671
+ },
672
+ queryKey: getMarketplaceChartFilesQueryKey(options)
673
+ });
674
+ /**
675
+ * MCP endpoint
676
+ *
677
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
678
+ */
679
+ export const postMcpMutation = (options) => {
680
+ const mutationOptions = {
681
+ mutationFn: async (fnOptions) => {
682
+ const { data } = await McpService.postMcp({
683
+ ...options,
684
+ ...fnOptions,
685
+ throwOnError: true
686
+ });
687
+ return data;
688
+ }
689
+ };
690
+ return mutationOptions;
691
+ };
692
+ export const getOrganizationQueryKey = (options) => createQueryKey('getOrganization', options);
693
+ /**
694
+ * Get organization information.
695
+ *
696
+ * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
697
+ *
698
+ * This endpoint is available to all users in the organization.
699
+ *
700
+ */
701
+ export const getOrganizationOptions = (options) => queryOptions({
702
+ queryFn: async ({ queryKey, signal }) => {
703
+ const { data } = await OrganizationService.getOrganization({
704
+ ...options,
705
+ ...queryKey[0],
706
+ signal,
707
+ throwOnError: true
708
+ });
709
+ return data;
710
+ },
711
+ queryKey: getOrganizationQueryKey(options)
712
+ });
713
+ /**
714
+ * Create a new organization / Cloudfleet account signup.
715
+ *
716
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
717
+ *
718
+ */
719
+ export const createOrganizationMutation = (options) => {
720
+ const mutationOptions = {
721
+ mutationFn: async (fnOptions) => {
722
+ const { data } = await OrganizationService.createOrganization({
723
+ ...options,
724
+ ...fnOptions,
725
+ throwOnError: true
726
+ });
727
+ return data;
728
+ }
729
+ };
730
+ return mutationOptions;
731
+ };
732
+ export const listRepositoriesQueryKey = (options) => createQueryKey('listRepositories', options);
733
+ /**
734
+ * List repositories
735
+ *
736
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
737
+ *
738
+ */
739
+ export const listRepositoriesOptions = (options) => queryOptions({
740
+ queryFn: async ({ queryKey, signal }) => {
741
+ const { data } = await RegistryService.listRepositories({
742
+ ...options,
743
+ ...queryKey[0],
744
+ signal,
745
+ throwOnError: true
746
+ });
747
+ return data;
748
+ },
749
+ queryKey: listRepositoriesQueryKey(options)
750
+ });
751
+ export const listTagsQueryKey = (options) => createQueryKey('listTags', options);
752
+ /**
753
+ * List tags for a repository
754
+ *
755
+ * 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.
756
+ *
757
+ */
758
+ export const listTagsOptions = (options) => queryOptions({
759
+ queryFn: async ({ queryKey, signal }) => {
760
+ const { data } = await RegistryService.listTags({
761
+ ...options,
762
+ ...queryKey[0],
763
+ signal,
764
+ throwOnError: true
765
+ });
766
+ return data;
767
+ },
768
+ queryKey: listTagsQueryKey(options)
769
+ });
770
+ /**
771
+ * Delete tag
772
+ *
773
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
774
+ *
775
+ */
776
+ export const deleteTagMutation = (options) => {
777
+ const mutationOptions = {
778
+ mutationFn: async (fnOptions) => {
779
+ const { data } = await RegistryService.deleteTag({
780
+ ...options,
781
+ ...fnOptions,
782
+ throwOnError: true
783
+ });
784
+ return data;
785
+ }
786
+ };
787
+ return mutationOptions;
788
+ };
789
+ export const getTagQueryKey = (options) => createQueryKey('getTag', options);
790
+ /**
791
+ * Get tag details
792
+ *
793
+ * 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.
794
+ *
795
+ */
796
+ export const getTagOptions = (options) => queryOptions({
797
+ queryFn: async ({ queryKey, signal }) => {
798
+ const { data } = await RegistryService.getTag({
799
+ ...options,
800
+ ...queryKey[0],
801
+ signal,
802
+ throwOnError: true
803
+ });
804
+ return data;
805
+ },
806
+ queryKey: getTagQueryKey(options)
807
+ });
808
+ export const listTokensQueryKey = (options) => createQueryKey('listTokens', options);
809
+ /**
810
+ * List access tokens in organization.
811
+ *
812
+ * 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.
813
+ *
814
+ */
815
+ export const listTokensOptions = (options) => queryOptions({
816
+ queryFn: async ({ queryKey, signal }) => {
817
+ const { data } = await TokensService.listTokens({
818
+ ...options,
819
+ ...queryKey[0],
820
+ signal,
821
+ throwOnError: true
822
+ });
823
+ return data;
824
+ },
825
+ queryKey: listTokensQueryKey(options)
826
+ });
827
+ /**
828
+ * Create a new access token.
829
+ *
830
+ * 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.
831
+ *
832
+ * This endpoint is available to administrators of the organization only.
833
+ *
834
+ */
835
+ export const createTokenMutation = (options) => {
836
+ const mutationOptions = {
837
+ mutationFn: async (fnOptions) => {
838
+ const { data } = await TokensService.createToken({
839
+ ...options,
840
+ ...fnOptions,
841
+ throwOnError: true
842
+ });
843
+ return data;
844
+ }
845
+ };
846
+ return mutationOptions;
847
+ };
848
+ /**
849
+ * Permanently delete access token.
850
+ *
851
+ * 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.
852
+ *
853
+ */
854
+ export const deleteTokenMutation = (options) => {
855
+ const mutationOptions = {
856
+ mutationFn: async (fnOptions) => {
857
+ const { data } = await TokensService.deleteToken({
858
+ ...options,
859
+ ...fnOptions,
860
+ throwOnError: true
861
+ });
862
+ return data;
863
+ }
864
+ };
865
+ return mutationOptions;
866
+ };
867
+ export const getTokenQueryKey = (options) => createQueryKey('getToken', options);
868
+ /**
869
+ * Get access token information.
870
+ *
871
+ * 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.
872
+ *
873
+ */
874
+ export const getTokenOptions = (options) => queryOptions({
875
+ queryFn: async ({ queryKey, signal }) => {
876
+ const { data } = await TokensService.getToken({
877
+ ...options,
878
+ ...queryKey[0],
879
+ signal,
880
+ throwOnError: true
881
+ });
882
+ return data;
883
+ },
884
+ queryKey: getTokenQueryKey(options)
885
+ });
886
+ /**
887
+ * Update access token information.
888
+ *
889
+ * 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.
890
+ *
891
+ * This endpoint is available to administrators of the organization only.
892
+ *
893
+ */
894
+ export const updateTokenMutation = (options) => {
895
+ const mutationOptions = {
896
+ mutationFn: async (fnOptions) => {
897
+ const { data } = await TokensService.updateToken({
898
+ ...options,
899
+ ...fnOptions,
900
+ throwOnError: true
901
+ });
902
+ return data;
903
+ }
904
+ };
905
+ return mutationOptions;
906
+ };
907
+ /**
908
+ * Regenerate access token secret key.
909
+ *
910
+ * Generates a new access token secret. Old secret will not be valid anymore.
911
+ */
912
+ export const regenerateTokenMutation = (options) => {
913
+ const mutationOptions = {
914
+ mutationFn: async (fnOptions) => {
915
+ const { data } = await TokensService.regenerateToken({
916
+ ...options,
917
+ ...fnOptions,
918
+ throwOnError: true
919
+ });
920
+ return data;
921
+ }
922
+ };
923
+ return mutationOptions;
924
+ };
925
+ export const listUserOrganizationsQueryKey = (options) => createQueryKey('listUserOrganizations', options);
926
+ /**
927
+ * Get a list of organizations the user belongs to. Used during authentication process.
928
+ */
929
+ export const listUserOrganizationsOptions = (options) => queryOptions({
930
+ queryFn: async ({ queryKey, signal }) => {
931
+ const { data } = await UsersService.listUserOrganizations({
932
+ ...options,
933
+ ...queryKey[0],
934
+ signal,
935
+ throwOnError: true
936
+ });
937
+ return data;
938
+ },
939
+ queryKey: listUserOrganizationsQueryKey(options)
940
+ });
941
+ export const listUsersQueryKey = (options) => createQueryKey('listUsers', options);
942
+ /**
943
+ * List users in organization.
944
+ *
945
+ * 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.
946
+ *
947
+ * This endpoint is available to all users in the organization.
948
+ *
949
+ */
950
+ export const listUsersOptions = (options) => queryOptions({
951
+ queryFn: async ({ queryKey, signal }) => {
952
+ const { data } = await UsersService.listUsers({
953
+ ...options,
954
+ ...queryKey[0],
955
+ signal,
956
+ throwOnError: true
957
+ });
958
+ return data;
959
+ },
960
+ queryKey: listUsersQueryKey(options)
961
+ });
962
+ /**
963
+ * Create a new user.
964
+ *
965
+ * 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.
966
+ *
967
+ */
968
+ export const createUserMutation = (options) => {
969
+ const mutationOptions = {
970
+ mutationFn: async (fnOptions) => {
971
+ const { data } = await UsersService.createUser({
972
+ ...options,
973
+ ...fnOptions,
974
+ throwOnError: true
975
+ });
976
+ return data;
977
+ }
978
+ };
979
+ return mutationOptions;
980
+ };
981
+ /**
982
+ * Delete user by id.
983
+ *
984
+ * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
985
+ *
986
+ */
987
+ export const deleteUserMutation = (options) => {
988
+ const mutationOptions = {
989
+ mutationFn: async (fnOptions) => {
990
+ const { data } = await UsersService.deleteUser({
991
+ ...options,
992
+ ...fnOptions,
993
+ throwOnError: true
994
+ });
995
+ return data;
996
+ }
997
+ };
998
+ return mutationOptions;
999
+ };
1000
+ export const getUserQueryKey = (options) => createQueryKey('getUser', options);
1001
+ /**
1002
+ * Get user profile information by id.
1003
+ *
1004
+ * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
1005
+ *
1006
+ * This endpoint is available to all users in the organization.
1007
+ *
1008
+ */
1009
+ export const getUserOptions = (options) => queryOptions({
1010
+ queryFn: async ({ queryKey, signal }) => {
1011
+ const { data } = await UsersService.getUser({
1012
+ ...options,
1013
+ ...queryKey[0],
1014
+ signal,
1015
+ throwOnError: true
1016
+ });
1017
+ return data;
1018
+ },
1019
+ queryKey: getUserQueryKey(options)
1020
+ });
1021
+ /**
1022
+ * Update user profile information.
1023
+ *
1024
+ * 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.
1025
+ *
1026
+ */
1027
+ export const updateUserMutation = (options) => {
1028
+ const mutationOptions = {
1029
+ mutationFn: async (fnOptions) => {
1030
+ const { data } = await UsersService.updateUser({
1031
+ ...options,
1032
+ ...fnOptions,
1033
+ throwOnError: true
1034
+ });
1035
+ return data;
1036
+ }
1037
+ };
1038
+ return mutationOptions;
1039
+ };
1040
+ //# sourceMappingURL=react-query.gen.js.map