@cloudfleet/sdk 0.0.1-84adc67 → 0.0.1-8783e31

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.
@@ -1,6 +1,6 @@
1
1
  import { type DefaultError, type UseMutationOptions } from '@tanstack/react-query';
2
2
  import { type Options } from '../sdk.gen';
3
- import type { CloseTicketData, CloseTicketResponse, CreateChartData, CreateChartError, CreateChartResponse, CreateClusterData, CreateClusterError, CreateClusterResponse, CreateFleetData, CreateFleetError, CreateFleetResponse, CreateInviteData, CreateInviteResponse, CreateOrganizationData, CreateOrganizationResponse, CreateTicketData, CreateTicketResponse, CreateTokenData, CreateTokenResponse, CreateUserData, CreateUserResponse, DeleteChartData, DeleteChartError, DeleteChartResponse, DeleteClusterData, DeleteClusterError, DeleteClusterResponse, DeleteFleetData, DeleteFleetError, DeleteFleetResponse, DeleteInviteData, DeletePaymentMethodData, DeletePaymentMethodResponse, DeleteTagData, DeleteTokenData, DeleteUserData, DeleteUserResponse, GetChartData, GetClusterData, GetContactData, GetCreditsData, GetFleetData, GetInviteData, GetJoinInformationData, GetJoinInformationError, GetJoinInformationResponse, GetMarketplaceChartFilesData, GetOrganizationData, GetPaymentMethodSecretData, GetPaymentMethodSecretResponse, GetTagData, GetTicketAttachmentData, GetTicketData, GetTokenData, GetUsageData, GetUserData, ListChartsData, ListClustersData, ListFleetsData, ListInvitesData, ListInvoicesData, ListMarketplaceChartsData, ListPaymentMethodsData, ListRepositoriesData, ListTagsData, ListTicketsData, ListTokensData, ListUserOrganizationsData, ListUsersData, PostMcpData, PostMcpResponse, QueryClusterData, RedeemCreditsData, RegenerateTokenData, RegenerateTokenResponse, ReplyTicketData, ReplyTicketResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponse, UpdateChartData, UpdateChartError, UpdateChartResponse, UpdateClusterData, UpdateClusterError, UpdateClusterResponse, UpdateContactData, UpdateContactResponse, UpdateFleetData, UpdateFleetError, UpdateFleetResponse, UpdateTokenData, UpdateTokenResponse, UpdateUserData, UpdateUserResponse } from '../types.gen';
3
+ import type { CloseTicketData, CloseTicketResponse, CreateChartData, CreateChartError, CreateChartResponse, CreateClusterData, CreateClusterError, CreateClusterResponse, CreateFleetData, CreateFleetError, CreateFleetResponse, CreateInviteData, CreateInviteResponse, CreateOrganizationData, CreateOrganizationResponse, CreateTicketData, CreateTicketResponse, CreateTokenData, CreateTokenResponse, CreateUserData, CreateUserResponse, DeleteChartData, DeleteChartError, DeleteChartResponse, DeleteClusterData, DeleteClusterError, DeleteClusterResponse, DeleteFleetData, DeleteFleetError, DeleteFleetResponse, DeleteInviteData, DeletePaymentMethodData, DeletePaymentMethodResponse, DeleteTagData, DeleteTokenData, DeleteUserData, DeleteUserResponse, GetBasicPriceConsentData, GetChartData, GetClusterData, GetContactData, GetCreditsData, GetFleetData, GetInviteData, GetJoinInformationData, GetJoinInformationError, GetJoinInformationResponse, GetMarketplaceChartFilesData, GetOrganizationData, GetPaymentMethodSecretData, GetPaymentMethodSecretResponse, GetTagData, GetTicketAttachmentData, GetTicketData, GetTokenData, GetUsageData, GetUserData, ListChartsData, ListClustersData, ListFleetsData, ListInvitesData, ListInvoicesData, ListMarketplaceChartsData, ListPaymentMethodsData, ListRepositoriesData, ListTagsData, ListTicketsData, ListTokensData, ListUserOrganizationsData, ListUsersData, PostMcpData, PostMcpResponse, QueryClusterData, RedeemCreditsData, RegenerateTokenData, RegenerateTokenResponse, ReplyTicketData, ReplyTicketResponse, SetBasicPriceConsentData, SetBasicPriceConsentResponse, SetDefaultPaymentMethodData, SetDefaultPaymentMethodResponse, UpdateChartData, UpdateChartError, UpdateChartResponse, UpdateClusterData, UpdateClusterError, UpdateClusterResponse, UpdateContactData, UpdateContactResponse, UpdateFleetData, UpdateFleetError, UpdateFleetResponse, UpdateTokenData, UpdateTokenResponse, UpdateUserData, UpdateUserResponse } from '../types.gen';
4
4
  export type QueryKey<TOptions extends Options> = [
5
5
  Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
6
6
  _id: string;
@@ -35,19 +35,14 @@ export declare const listUserOrganizationsOptions: (options: Options<ListUserOrg
35
35
  _infinite?: boolean;
36
36
  tags?: ReadonlyArray<string>;
37
37
  }], never> | undefined;
38
- } & {
39
- queryKey: [Pick<Options<ListUserOrganizationsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
40
- _id: string;
41
- _infinite?: boolean;
42
- tags?: ReadonlyArray<string>;
43
- }] & {
44
- [dataTagSymbol]: {
45
- realm?: string;
46
- displayName?: string;
47
- }[];
48
- [dataTagErrorSymbol]: Error;
49
- };
50
- };
38
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListUserOrganizationsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
39
+ _id: string;
40
+ _infinite?: boolean;
41
+ tags?: ReadonlyArray<string>;
42
+ }], {
43
+ realm?: string;
44
+ displayName?: string;
45
+ }[], Error>;
51
46
  export declare const listUsersQueryKey: (options?: Options<ListUsersData>) => [Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
52
47
  _id: string;
53
48
  _infinite?: boolean;
@@ -71,16 +66,11 @@ export declare const listUsersOptions: (options?: Options<ListUsersData>) => imp
71
66
  _infinite?: boolean;
72
67
  tags?: ReadonlyArray<string>;
73
68
  }], never> | undefined;
74
- } & {
75
- queryKey: [Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
76
- _id: string;
77
- _infinite?: boolean;
78
- tags?: ReadonlyArray<string>;
79
- }] & {
80
- [dataTagSymbol]: import("../types.gen").User[];
81
- [dataTagErrorSymbol]: Error;
82
- };
83
- };
69
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
70
+ _id: string;
71
+ _infinite?: boolean;
72
+ tags?: ReadonlyArray<string>;
73
+ }], import("../types.gen").User[], Error>;
84
74
  /**
85
75
  * Create a new user.
86
76
  *
@@ -118,16 +108,11 @@ export declare const getUserOptions: (options: Options<GetUserData>) => import("
118
108
  _infinite?: boolean;
119
109
  tags?: ReadonlyArray<string>;
120
110
  }], never> | undefined;
121
- } & {
122
- queryKey: [Pick<Options<GetUserData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
123
- _id: string;
124
- _infinite?: boolean;
125
- tags?: ReadonlyArray<string>;
126
- }] & {
127
- [dataTagSymbol]: import("../types.gen").User;
128
- [dataTagErrorSymbol]: Error;
129
- };
130
- };
111
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetUserData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
112
+ _id: string;
113
+ _infinite?: boolean;
114
+ tags?: ReadonlyArray<string>;
115
+ }], import("../types.gen").User, Error>;
131
116
  /**
132
117
  * Update user profile information.
133
118
  *
@@ -156,16 +141,11 @@ export declare const listTokensOptions: (options?: Options<ListTokensData>) => i
156
141
  _infinite?: boolean;
157
142
  tags?: ReadonlyArray<string>;
158
143
  }], never> | undefined;
159
- } & {
160
- queryKey: [Pick<Options<ListTokensData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
161
- _id: string;
162
- _infinite?: boolean;
163
- tags?: ReadonlyArray<string>;
164
- }] & {
165
- [dataTagSymbol]: import("../types.gen").Token[];
166
- [dataTagErrorSymbol]: Error;
167
- };
168
- };
144
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListTokensData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
145
+ _id: string;
146
+ _infinite?: boolean;
147
+ tags?: ReadonlyArray<string>;
148
+ }], import("../types.gen").Token[], Error>;
169
149
  /**
170
150
  * Create a new access token.
171
151
  *
@@ -203,16 +183,11 @@ export declare const getTokenOptions: (options: Options<GetTokenData>) => import
203
183
  _infinite?: boolean;
204
184
  tags?: ReadonlyArray<string>;
205
185
  }], never> | undefined;
206
- } & {
207
- queryKey: [Pick<Options<GetTokenData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
208
- _id: string;
209
- _infinite?: boolean;
210
- tags?: ReadonlyArray<string>;
211
- }] & {
212
- [dataTagSymbol]: import("../types.gen").Token;
213
- [dataTagErrorSymbol]: Error;
214
- };
215
- };
186
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetTokenData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
187
+ _id: string;
188
+ _infinite?: boolean;
189
+ tags?: ReadonlyArray<string>;
190
+ }], import("../types.gen").Token, Error>;
216
191
  /**
217
192
  * Update access token information.
218
193
  *
@@ -239,26 +214,21 @@ export declare const listTicketsQueryKey: (options?: Options<ListTicketsData>) =
239
214
  * Returns all tickets belonging to the caller's organization, newest first.
240
215
  *
241
216
  */
242
- export declare const listTicketsOptions: (options?: Options<ListTicketsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").TicketListResponse, Error, import("../types.gen").TicketListResponse, [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
217
+ export declare const listTicketsOptions: (options?: Options<ListTicketsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Ticket[], Error, import("../types.gen").Ticket[], [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
243
218
  _id: string;
244
219
  _infinite?: boolean;
245
220
  tags?: ReadonlyArray<string>;
246
221
  }]>, "queryFn"> & {
247
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").TicketListResponse, [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
222
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Ticket[], [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
248
223
  _id: string;
249
224
  _infinite?: boolean;
250
225
  tags?: ReadonlyArray<string>;
251
226
  }], never> | undefined;
252
- } & {
253
- queryKey: [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
254
- _id: string;
255
- _infinite?: boolean;
256
- tags?: ReadonlyArray<string>;
257
- }] & {
258
- [dataTagSymbol]: import("../types.gen").TicketListResponse;
259
- [dataTagErrorSymbol]: Error;
260
- };
261
- };
227
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
228
+ _id: string;
229
+ _infinite?: boolean;
230
+ tags?: ReadonlyArray<string>;
231
+ }], import("../types.gen").Ticket[], Error>;
262
232
  /**
263
233
  * Create a new support ticket.
264
234
  *
@@ -291,16 +261,11 @@ export declare const getTicketOptions: (options: Options<GetTicketData>) => impo
291
261
  _infinite?: boolean;
292
262
  tags?: ReadonlyArray<string>;
293
263
  }], never> | undefined;
294
- } & {
295
- queryKey: [Pick<Options<GetTicketData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
296
- _id: string;
297
- _infinite?: boolean;
298
- tags?: ReadonlyArray<string>;
299
- }] & {
300
- [dataTagSymbol]: import("../types.gen").Ticket;
301
- [dataTagErrorSymbol]: Error;
302
- };
303
- };
264
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetTicketData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
265
+ _id: string;
266
+ _infinite?: boolean;
267
+ tags?: ReadonlyArray<string>;
268
+ }], import("../types.gen").Ticket, Error>;
304
269
  /**
305
270
  * Append a customer reply to a ticket.
306
271
  *
@@ -326,16 +291,11 @@ export declare const getTicketAttachmentOptions: (options: Options<GetTicketAtta
326
291
  _infinite?: boolean;
327
292
  tags?: ReadonlyArray<string>;
328
293
  }], never> | undefined;
329
- } & {
330
- queryKey: [Pick<Options<GetTicketAttachmentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
331
- _id: string;
332
- _infinite?: boolean;
333
- tags?: ReadonlyArray<string>;
334
- }] & {
335
- [dataTagSymbol]: Blob | File;
336
- [dataTagErrorSymbol]: Error;
337
- };
338
- };
294
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetTicketAttachmentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
295
+ _id: string;
296
+ _infinite?: boolean;
297
+ tags?: ReadonlyArray<string>;
298
+ }], Blob | File, Error>;
339
299
  export declare const listRepositoriesQueryKey: (options?: Options<ListRepositoriesData>) => [Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
340
300
  _id: string;
341
301
  _infinite?: boolean;
@@ -357,16 +317,11 @@ export declare const listRepositoriesOptions: (options?: Options<ListRepositorie
357
317
  _infinite?: boolean;
358
318
  tags?: ReadonlyArray<string>;
359
319
  }], never> | undefined;
360
- } & {
361
- queryKey: [Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
362
- _id: string;
363
- _infinite?: boolean;
364
- tags?: ReadonlyArray<string>;
365
- }] & {
366
- [dataTagSymbol]: import("../types.gen").RegistryRepository[];
367
- [dataTagErrorSymbol]: Error;
368
- };
369
- };
320
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
321
+ _id: string;
322
+ _infinite?: boolean;
323
+ tags?: ReadonlyArray<string>;
324
+ }], import("../types.gen").RegistryRepository[], Error>;
370
325
  export declare const listTagsQueryKey: (options: Options<ListTagsData>) => [Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
371
326
  _id: string;
372
327
  _infinite?: boolean;
@@ -388,16 +343,11 @@ export declare const listTagsOptions: (options: Options<ListTagsData>) => import
388
343
  _infinite?: boolean;
389
344
  tags?: ReadonlyArray<string>;
390
345
  }], never> | undefined;
391
- } & {
392
- queryKey: [Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
393
- _id: string;
394
- _infinite?: boolean;
395
- tags?: ReadonlyArray<string>;
396
- }] & {
397
- [dataTagSymbol]: import("../types.gen").RegistryRepositoryWithTags;
398
- [dataTagErrorSymbol]: Error;
399
- };
400
- };
346
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
347
+ _id: string;
348
+ _infinite?: boolean;
349
+ tags?: ReadonlyArray<string>;
350
+ }], import("../types.gen").RegistryRepositoryWithTags, Error>;
401
351
  /**
402
352
  * Delete tag
403
353
  *
@@ -426,16 +376,11 @@ export declare const getTagOptions: (options: Options<GetTagData>) => import("@t
426
376
  _infinite?: boolean;
427
377
  tags?: ReadonlyArray<string>;
428
378
  }], never> | undefined;
429
- } & {
430
- queryKey: [Pick<Options<GetTagData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
431
- _id: string;
432
- _infinite?: boolean;
433
- tags?: ReadonlyArray<string>;
434
- }] & {
435
- [dataTagSymbol]: import("../types.gen").RegistryTag;
436
- [dataTagErrorSymbol]: Error;
437
- };
438
- };
379
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetTagData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
380
+ _id: string;
381
+ _infinite?: boolean;
382
+ tags?: ReadonlyArray<string>;
383
+ }], import("../types.gen").RegistryTag, Error>;
439
384
  export declare const getOrganizationQueryKey: (options?: Options<GetOrganizationData>) => [Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
440
385
  _id: string;
441
386
  _infinite?: boolean;
@@ -459,16 +404,11 @@ export declare const getOrganizationOptions: (options?: Options<GetOrganizationD
459
404
  _infinite?: boolean;
460
405
  tags?: ReadonlyArray<string>;
461
406
  }], never> | undefined;
462
- } & {
463
- queryKey: [Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
464
- _id: string;
465
- _infinite?: boolean;
466
- tags?: ReadonlyArray<string>;
467
- }] & {
468
- [dataTagSymbol]: import("../types.gen").Organization;
469
- [dataTagErrorSymbol]: Error;
470
- };
471
- };
407
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
408
+ _id: string;
409
+ _infinite?: boolean;
410
+ tags?: ReadonlyArray<string>;
411
+ }], import("../types.gen").Organization, Error>;
472
412
  /**
473
413
  * Create a new organization / Cloudfleet account signup.
474
414
  *
@@ -476,6 +416,41 @@ export declare const getOrganizationOptions: (options?: Options<GetOrganizationD
476
416
  *
477
417
  */
478
418
  export declare const createOrganizationMutation: (options?: Partial<Options<CreateOrganizationData>>) => UseMutationOptions<CreateOrganizationResponse, DefaultError, Options<CreateOrganizationData>>;
419
+ export declare const getBasicPriceConsentQueryKey: (options?: Options<GetBasicPriceConsentData>) => [Pick<Options<GetBasicPriceConsentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
420
+ _id: string;
421
+ _infinite?: boolean;
422
+ tags?: ReadonlyArray<string>;
423
+ }];
424
+ /**
425
+ * Get the organization's consent status for the new Basic price.
426
+ *
427
+ * Returns the organization's consent status for the migration from the free tier to the paid Basic plan. `pending` means an administrator must opt in; `not_applicable` means the organization is not in scope for the migration; `accepted` / `rejected` reflect a recorded decision.
428
+ *
429
+ * This endpoint is available to all users in the organization and drives the consent dialog in the console.
430
+ *
431
+ */
432
+ export declare const getBasicPriceConsentOptions: (options?: Options<GetBasicPriceConsentData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").BasicPriceConsent, Error, import("../types.gen").BasicPriceConsent, [Pick<Options<GetBasicPriceConsentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
433
+ _id: string;
434
+ _infinite?: boolean;
435
+ tags?: ReadonlyArray<string>;
436
+ }]>, "queryFn"> & {
437
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").BasicPriceConsent, [Pick<Options<GetBasicPriceConsentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
438
+ _id: string;
439
+ _infinite?: boolean;
440
+ tags?: ReadonlyArray<string>;
441
+ }], never> | undefined;
442
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetBasicPriceConsentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
443
+ _id: string;
444
+ _infinite?: boolean;
445
+ tags?: ReadonlyArray<string>;
446
+ }], import("../types.gen").BasicPriceConsent, Error>;
447
+ /**
448
+ * Record an administrator's decision on the new Basic price.
449
+ *
450
+ * Records an affirmative decision to continue on the paid Basic plan (`accepted`) or to opt out (`rejected`). This is an organization-binding financial decision, so it is restricted to administrators. Each call appends an immutable audit entry (who and when) and sends a confirmation email to the acting administrator.
451
+ *
452
+ */
453
+ export declare const setBasicPriceConsentMutation: (options?: Partial<Options<SetBasicPriceConsentData>>) => UseMutationOptions<SetBasicPriceConsentResponse, DefaultError, Options<SetBasicPriceConsentData>>;
479
454
  /**
480
455
  * MCP endpoint
481
456
  *
@@ -505,16 +480,11 @@ export declare const listMarketplaceChartsOptions: (options?: Options<ListMarket
505
480
  _infinite?: boolean;
506
481
  tags?: ReadonlyArray<string>;
507
482
  }], never> | undefined;
508
- } & {
509
- queryKey: [Pick<Options<ListMarketplaceChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
510
- _id: string;
511
- _infinite?: boolean;
512
- tags?: ReadonlyArray<string>;
513
- }] & {
514
- [dataTagSymbol]: import("../types.gen").MarketplaceListing[];
515
- [dataTagErrorSymbol]: Error;
516
- };
517
- };
483
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListMarketplaceChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
484
+ _id: string;
485
+ _infinite?: boolean;
486
+ tags?: ReadonlyArray<string>;
487
+ }], import("../types.gen").MarketplaceListing[], Error>;
518
488
  export declare const getMarketplaceChartFilesQueryKey: (options: Options<GetMarketplaceChartFilesData>) => [Pick<Options<GetMarketplaceChartFilesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
519
489
  _id: string;
520
490
  _infinite?: boolean;
@@ -540,16 +510,11 @@ export declare const getMarketplaceChartFilesOptions: (options: Options<GetMarke
540
510
  _infinite?: boolean;
541
511
  tags?: ReadonlyArray<string>;
542
512
  }], never> | undefined;
543
- } & {
544
- queryKey: [Pick<Options<GetMarketplaceChartFilesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
545
- _id: string;
546
- _infinite?: boolean;
547
- tags?: ReadonlyArray<string>;
548
- }] & {
549
- [dataTagSymbol]: import("../types.gen").MarketplaceListingFiles;
550
- [dataTagErrorSymbol]: Error;
551
- };
552
- };
513
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetMarketplaceChartFilesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
514
+ _id: string;
515
+ _infinite?: boolean;
516
+ tags?: ReadonlyArray<string>;
517
+ }], import("../types.gen").MarketplaceListingFiles, Error>;
553
518
  export declare const listInvitesQueryKey: (options?: Options<ListInvitesData>) => [Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
554
519
  _id: string;
555
520
  _infinite?: boolean;
@@ -571,16 +536,11 @@ export declare const listInvitesOptions: (options?: Options<ListInvitesData>) =>
571
536
  _infinite?: boolean;
572
537
  tags?: ReadonlyArray<string>;
573
538
  }], never> | undefined;
574
- } & {
575
- queryKey: [Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
576
- _id: string;
577
- _infinite?: boolean;
578
- tags?: ReadonlyArray<string>;
579
- }] & {
580
- [dataTagSymbol]: import("../types.gen").Invite[];
581
- [dataTagErrorSymbol]: Error;
582
- };
583
- };
539
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
540
+ _id: string;
541
+ _infinite?: boolean;
542
+ tags?: ReadonlyArray<string>;
543
+ }], import("../types.gen").Invite[], Error>;
584
544
  /**
585
545
  * Create a new invite.
586
546
  *
@@ -618,19 +578,14 @@ export declare const getInviteOptions: (options: Options<GetInviteData>) => impo
618
578
  _infinite?: boolean;
619
579
  tags?: ReadonlyArray<string>;
620
580
  }], never> | undefined;
621
- } & {
622
- queryKey: [Pick<Options<GetInviteData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
623
- _id: string;
624
- _infinite?: boolean;
625
- tags?: ReadonlyArray<string>;
626
- }] & {
627
- [dataTagSymbol]: {
628
- email?: string;
629
- organization_id?: string;
630
- };
631
- [dataTagErrorSymbol]: Error;
632
- };
633
- };
581
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetInviteData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
582
+ _id: string;
583
+ _infinite?: boolean;
584
+ tags?: ReadonlyArray<string>;
585
+ }], {
586
+ email?: string;
587
+ organization_id?: string;
588
+ }, Error>;
634
589
  /**
635
590
  * Permanently delete invite.
636
591
  *
@@ -658,16 +613,11 @@ export declare const queryClusterOptions: (options: Options<QueryClusterData>) =
658
613
  _infinite?: boolean;
659
614
  tags?: ReadonlyArray<string>;
660
615
  }], never> | undefined;
661
- } & {
662
- queryKey: [Pick<Options<QueryClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
663
- _id: string;
664
- _infinite?: boolean;
665
- tags?: ReadonlyArray<string>;
666
- }] & {
667
- [dataTagSymbol]: unknown;
668
- [dataTagErrorSymbol]: Error;
669
- };
670
- };
616
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<QueryClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
617
+ _id: string;
618
+ _infinite?: boolean;
619
+ tags?: ReadonlyArray<string>;
620
+ }], unknown, Error>;
671
621
  export declare const listFleetsQueryKey: (options: Options<ListFleetsData>) => [Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
672
622
  _id: string;
673
623
  _infinite?: boolean;
@@ -691,21 +641,18 @@ export declare const listFleetsOptions: (options: Options<ListFleetsData>) => im
691
641
  _infinite?: boolean;
692
642
  tags?: ReadonlyArray<string>;
693
643
  }], never> | undefined;
694
- } & {
695
- queryKey: [Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
696
- _id: string;
697
- _infinite?: boolean;
698
- tags?: ReadonlyArray<string>;
699
- }] & {
700
- [dataTagSymbol]: import("../types.gen").Fleet[];
701
- [dataTagErrorSymbol]: Error;
702
- };
703
- };
644
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
645
+ _id: string;
646
+ _infinite?: boolean;
647
+ tags?: ReadonlyArray<string>;
648
+ }], import("../types.gen").Fleet[], Error>;
704
649
  /**
705
650
  * Create a new fleet.
706
651
  *
707
652
  * 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.
708
653
  *
654
+ * The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
655
+ *
709
656
  * This endpoint is available to administrators of the organization only.
710
657
  *
711
658
  */
@@ -715,6 +662,8 @@ export declare const createFleetMutation: (options?: Partial<Options<CreateFleet
715
662
  *
716
663
  * 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. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
717
664
  *
665
+ * Deleting a fleet does not deprovision the cloud infrastructure it provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
666
+ *
718
667
  * This endpoint is available to administrators of the organization only.
719
668
  *
720
669
  */
@@ -742,16 +691,11 @@ export declare const getFleetOptions: (options: Options<GetFleetData>) => import
742
691
  _infinite?: boolean;
743
692
  tags?: ReadonlyArray<string>;
744
693
  }], never> | undefined;
745
- } & {
746
- queryKey: [Pick<Options<GetFleetData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
747
- _id: string;
748
- _infinite?: boolean;
749
- tags?: ReadonlyArray<string>;
750
- }] & {
751
- [dataTagSymbol]: import("../types.gen").Fleet;
752
- [dataTagErrorSymbol]: Error;
753
- };
754
- };
694
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetFleetData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
695
+ _id: string;
696
+ _infinite?: boolean;
697
+ tags?: ReadonlyArray<string>;
698
+ }], import("../types.gen").Fleet, Error>;
755
699
  /**
756
700
  * Update fleet information.
757
701
  *
@@ -759,6 +703,8 @@ export declare const getFleetOptions: (options: Options<GetFleetData>) => import
759
703
  *
760
704
  * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
761
705
  *
706
+ * This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged. The Hetzner API key is the exception: it is kept when omitted (send a new value to rotate it).
707
+ *
762
708
  * This endpoint is available to administrators of the organization only.
763
709
  *
764
710
  */
@@ -786,16 +732,11 @@ export declare const listChartsOptions: (options: Options<ListChartsData>) => im
786
732
  _infinite?: boolean;
787
733
  tags?: ReadonlyArray<string>;
788
734
  }], never> | undefined;
789
- } & {
790
- queryKey: [Pick<Options<ListChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
791
- _id: string;
792
- _infinite?: boolean;
793
- tags?: ReadonlyArray<string>;
794
- }] & {
795
- [dataTagSymbol]: import("../types.gen").Chart[];
796
- [dataTagErrorSymbol]: Error;
797
- };
798
- };
735
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
736
+ _id: string;
737
+ _infinite?: boolean;
738
+ tags?: ReadonlyArray<string>;
739
+ }], import("../types.gen").Chart[], Error>;
799
740
  /**
800
741
  * Create a new chart.
801
742
  *
@@ -837,16 +778,11 @@ export declare const getChartOptions: (options: Options<GetChartData>) => import
837
778
  _infinite?: boolean;
838
779
  tags?: ReadonlyArray<string>;
839
780
  }], never> | undefined;
840
- } & {
841
- queryKey: [Pick<Options<GetChartData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
842
- _id: string;
843
- _infinite?: boolean;
844
- tags?: ReadonlyArray<string>;
845
- }] & {
846
- [dataTagSymbol]: import("../types.gen").Chart;
847
- [dataTagErrorSymbol]: Error;
848
- };
849
- };
781
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetChartData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
782
+ _id: string;
783
+ _infinite?: boolean;
784
+ tags?: ReadonlyArray<string>;
785
+ }], import("../types.gen").Chart, Error>;
850
786
  /**
851
787
  * Update chart information.
852
788
  *
@@ -879,16 +815,11 @@ export declare const listClustersOptions: (options?: Options<ListClustersData>)
879
815
  _infinite?: boolean;
880
816
  tags?: ReadonlyArray<string>;
881
817
  }], never> | undefined;
882
- } & {
883
- queryKey: [Pick<Options<ListClustersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
884
- _id: string;
885
- _infinite?: boolean;
886
- tags?: ReadonlyArray<string>;
887
- }] & {
888
- [dataTagSymbol]: import("../types.gen").Cluster[];
889
- [dataTagErrorSymbol]: Error;
890
- };
891
- };
818
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListClustersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
819
+ _id: string;
820
+ _infinite?: boolean;
821
+ tags?: ReadonlyArray<string>;
822
+ }], import("../types.gen").Cluster[], Error>;
892
823
  /**
893
824
  * Create a new cluster.
894
825
  *
@@ -903,6 +834,8 @@ export declare const createClusterMutation: (options?: Partial<Options<CreateClu
903
834
  *
904
835
  * This endpoint will permanently delete the cluster. This operation cannot be undone.
905
836
  *
837
+ * Deleting a cluster also deletes its fleets. This does not deprovision the cloud infrastructure those fleets provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
838
+ *
906
839
  * This endpoint is available to administrators of the organization only.
907
840
  *
908
841
  */
@@ -930,20 +863,17 @@ export declare const getClusterOptions: (options: Options<GetClusterData>) => im
930
863
  _infinite?: boolean;
931
864
  tags?: ReadonlyArray<string>;
932
865
  }], never> | undefined;
933
- } & {
934
- queryKey: [Pick<Options<GetClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
935
- _id: string;
936
- _infinite?: boolean;
937
- tags?: ReadonlyArray<string>;
938
- }] & {
939
- [dataTagSymbol]: import("../types.gen").Cluster;
940
- [dataTagErrorSymbol]: Error;
941
- };
942
- };
866
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
867
+ _id: string;
868
+ _infinite?: boolean;
869
+ tags?: ReadonlyArray<string>;
870
+ }], import("../types.gen").Cluster, Error>;
943
871
  /**
944
872
  * Update cluster information.
945
873
  *
946
- * This endpoint allows you to update cluster details such as name, tier, and Kubernetes version. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentation.
874
+ * This endpoint allows you to update cluster details. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentation.
875
+ *
876
+ * This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
947
877
  *
948
878
  * This endpoint is available to administrators of the organization only.
949
879
  *
@@ -977,16 +907,11 @@ export declare const getUsageOptions: (options?: Options<GetUsageData>) => impor
977
907
  _infinite?: boolean;
978
908
  tags?: ReadonlyArray<string>;
979
909
  }], never> | undefined;
980
- } & {
981
- queryKey: [Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
982
- _id: string;
983
- _infinite?: boolean;
984
- tags?: ReadonlyArray<string>;
985
- }] & {
986
- [dataTagSymbol]: import("../types.gen").UsageResponse;
987
- [dataTagErrorSymbol]: Error;
988
- };
989
- };
910
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
911
+ _id: string;
912
+ _infinite?: boolean;
913
+ tags?: ReadonlyArray<string>;
914
+ }], import("../types.gen").UsageResponse, Error>;
990
915
  /**
991
916
  * Get Stripe client secret.
992
917
  *
@@ -1015,16 +940,11 @@ export declare const listPaymentMethodsOptions: (options?: Options<ListPaymentMe
1015
940
  _infinite?: boolean;
1016
941
  tags?: ReadonlyArray<string>;
1017
942
  }], never> | undefined;
1018
- } & {
1019
- queryKey: [Pick<Options<ListPaymentMethodsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1020
- _id: string;
1021
- _infinite?: boolean;
1022
- tags?: ReadonlyArray<string>;
1023
- }] & {
1024
- [dataTagSymbol]: import("../types.gen").PaymentMethod[];
1025
- [dataTagErrorSymbol]: Error;
1026
- };
1027
- };
943
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListPaymentMethodsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
944
+ _id: string;
945
+ _infinite?: boolean;
946
+ tags?: ReadonlyArray<string>;
947
+ }], import("../types.gen").PaymentMethod[], Error>;
1028
948
  /**
1029
949
  * Set the default payment method.
1030
950
  *
@@ -1060,16 +980,11 @@ export declare const listInvoicesOptions: (options?: Options<ListInvoicesData>)
1060
980
  _infinite?: boolean;
1061
981
  tags?: ReadonlyArray<string>;
1062
982
  }], never> | undefined;
1063
- } & {
1064
- queryKey: [Pick<Options<ListInvoicesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1065
- _id: string;
1066
- _infinite?: boolean;
1067
- tags?: ReadonlyArray<string>;
1068
- }] & {
1069
- [dataTagSymbol]: import("../types.gen").Invoice[];
1070
- [dataTagErrorSymbol]: Error;
1071
- };
1072
- };
983
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListInvoicesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
984
+ _id: string;
985
+ _infinite?: boolean;
986
+ tags?: ReadonlyArray<string>;
987
+ }], import("../types.gen").Invoice[], Error>;
1073
988
  export declare const getContactQueryKey: (options?: Options<GetContactData>) => [Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1074
989
  _id: string;
1075
990
  _infinite?: boolean;
@@ -1091,16 +1006,11 @@ export declare const getContactOptions: (options?: Options<GetContactData>) => i
1091
1006
  _infinite?: boolean;
1092
1007
  tags?: ReadonlyArray<string>;
1093
1008
  }], never> | undefined;
1094
- } & {
1095
- queryKey: [Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1096
- _id: string;
1097
- _infinite?: boolean;
1098
- tags?: ReadonlyArray<string>;
1099
- }] & {
1100
- [dataTagSymbol]: import("../types.gen").BillingContact;
1101
- [dataTagErrorSymbol]: Error;
1102
- };
1103
- };
1009
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1010
+ _id: string;
1011
+ _infinite?: boolean;
1012
+ tags?: ReadonlyArray<string>;
1013
+ }], import("../types.gen").BillingContact, Error>;
1104
1014
  /**
1105
1015
  * Update organization contact information and billing address.
1106
1016
  *
@@ -1129,16 +1039,11 @@ export declare const getCreditsOptions: (options?: Options<GetCreditsData>) => i
1129
1039
  _infinite?: boolean;
1130
1040
  tags?: ReadonlyArray<string>;
1131
1041
  }], never> | undefined;
1132
- } & {
1133
- queryKey: [Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1134
- _id: string;
1135
- _infinite?: boolean;
1136
- tags?: ReadonlyArray<string>;
1137
- }] & {
1138
- [dataTagSymbol]: import("../types.gen").BillingCredits[];
1139
- [dataTagErrorSymbol]: Error;
1140
- };
1141
- };
1042
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1043
+ _id: string;
1044
+ _infinite?: boolean;
1045
+ tags?: ReadonlyArray<string>;
1046
+ }], import("../types.gen").BillingCredits[], Error>;
1142
1047
  /**
1143
1048
  * Redeem promotional credits code.
1144
1049
  *