@cloudfleet/sdk 0.0.1-9a4447d → 0.0.1-9bc5464

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, CreateChartResponse, CreateClusterData, CreateClusterError, CreateClusterResponse, CreateFleetData, CreateFleetError, CreateFleetResponse, CreateInviteData, CreateInviteResponse, CreateOrganizationData, CreateOrganizationResponse, CreateTicketData, CreateTicketResponse, CreateTokenData, CreateTokenResponse, CreateUserData, CreateUserResponse, DeleteChartData, DeleteChartResponse, DeleteClusterData, DeleteClusterResponse, DeleteFleetData, DeleteFleetResponse, DeleteInviteData, DeletePaymentMethodData, DeletePaymentMethodResponse, DeleteTagData, DeleteTokenData, DeleteUserData, DeleteUserResponse, GetChartData, GetClusterData, GetContactData, GetCreditsData, GetFleetData, GetInviteData, GetJoinInformationData, 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, UpdateChartResponse, UpdateClusterData, 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, PayOpenInvoicesData, PayOpenInvoicesResponse, 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;
@@ -8,592 +8,455 @@ export type QueryKey<TOptions extends Options> = [
8
8
  tags?: ReadonlyArray<string>;
9
9
  }
10
10
  ];
11
- export declare const getUsageQueryKey: (options?: Options<GetUsageData>) => [Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
11
+ export declare const listUserOrganizationsQueryKey: (options: Options<ListUserOrganizationsData>) => [Pick<Options<ListUserOrganizationsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
12
12
  _id: string;
13
13
  _infinite?: boolean;
14
14
  tags?: ReadonlyArray<string>;
15
15
  }];
16
16
  /**
17
- * Get billing usage information.
18
- *
19
- * 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.
20
- *
17
+ * Get a list of organizations the user belongs to. Used during authentication process.
21
18
  */
22
- export declare const getUsageOptions: (options?: Options<GetUsageData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").UsageResponse, Error, import("../types.gen").UsageResponse, [Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
19
+ export declare const listUserOrganizationsOptions: (options: Options<ListUserOrganizationsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
20
+ realm?: string;
21
+ displayName?: string;
22
+ }[], Error, {
23
+ realm?: string;
24
+ displayName?: string;
25
+ }[], [Pick<Options<ListUserOrganizationsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
23
26
  _id: string;
24
27
  _infinite?: boolean;
25
28
  tags?: ReadonlyArray<string>;
26
29
  }]>, "queryFn"> & {
27
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").UsageResponse, [Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
30
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
31
+ realm?: string;
32
+ displayName?: string;
33
+ }[], [Pick<Options<ListUserOrganizationsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
28
34
  _id: string;
29
35
  _infinite?: boolean;
30
36
  tags?: ReadonlyArray<string>;
31
37
  }], never> | undefined;
32
- } & {
33
- queryKey: [Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
34
- _id: string;
35
- _infinite?: boolean;
36
- tags?: ReadonlyArray<string>;
37
- }] & {
38
- [dataTagSymbol]: import("../types.gen").UsageResponse;
39
- [dataTagErrorSymbol]: Error;
40
- };
41
- };
42
- /**
43
- * Get Stripe client secret.
44
- *
45
- * 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.
46
- *
47
- */
48
- export declare const getPaymentMethodSecretMutation: (options?: Partial<Options<GetPaymentMethodSecretData>>) => UseMutationOptions<GetPaymentMethodSecretResponse, DefaultError, Options<GetPaymentMethodSecretData>>;
49
- export declare const listPaymentMethodsQueryKey: (options?: Options<ListPaymentMethodsData>) => [Pick<Options<ListPaymentMethodsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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>;
46
+ export declare const listUsersQueryKey: (options?: Options<ListUsersData>) => [Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
50
47
  _id: string;
51
48
  _infinite?: boolean;
52
49
  tags?: ReadonlyArray<string>;
53
50
  }];
54
51
  /**
55
- * List organization payment methods.
52
+ * List users in organization.
56
53
  *
57
- * Returns all payment methods (cards and SEPA Direct Debit) attached to the organization, most recently added first, with the default flagged. This endpoint is available to all users in the organization.
54
+ * 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.
55
+ *
56
+ * This endpoint is available to all users in the organization.
58
57
  *
59
58
  */
60
- export declare const listPaymentMethodsOptions: (options?: Options<ListPaymentMethodsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").PaymentMethod[], Error, import("../types.gen").PaymentMethod[], [Pick<Options<ListPaymentMethodsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
59
+ export declare const listUsersOptions: (options?: Options<ListUsersData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").User[], Error, import("../types.gen").User[], [Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
61
60
  _id: string;
62
61
  _infinite?: boolean;
63
62
  tags?: ReadonlyArray<string>;
64
63
  }]>, "queryFn"> & {
65
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").PaymentMethod[], [Pick<Options<ListPaymentMethodsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
64
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").User[], [Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
66
65
  _id: string;
67
66
  _infinite?: boolean;
68
67
  tags?: ReadonlyArray<string>;
69
68
  }], never> | undefined;
70
- } & {
71
- queryKey: [Pick<Options<ListPaymentMethodsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
72
- _id: string;
73
- _infinite?: boolean;
74
- tags?: ReadonlyArray<string>;
75
- }] & {
76
- [dataTagSymbol]: import("../types.gen").PaymentMethod[];
77
- [dataTagErrorSymbol]: Error;
78
- };
79
- };
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>;
80
74
  /**
81
- * Set the default payment method.
75
+ * Create a new user.
82
76
  *
83
- * Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
77
+ * 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.
84
78
  *
85
79
  */
86
- export declare const setDefaultPaymentMethodMutation: (options?: Partial<Options<SetDefaultPaymentMethodData>>) => UseMutationOptions<SetDefaultPaymentMethodResponse, DefaultError, Options<SetDefaultPaymentMethodData>>;
80
+ export declare const createUserMutation: (options?: Partial<Options<CreateUserData>>) => UseMutationOptions<CreateUserResponse, DefaultError, Options<CreateUserData>>;
87
81
  /**
88
- * Delete a payment method.
82
+ * Delete user by id.
89
83
  *
90
- * Detaches the given payment method from the organization. Requires the Administrator role. An organization must keep at least one payment method, so deleting the only remaining method is rejected.
84
+ * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
91
85
  *
92
86
  */
93
- export declare const deletePaymentMethodMutation: (options?: Partial<Options<DeletePaymentMethodData>>) => UseMutationOptions<DeletePaymentMethodResponse, DefaultError, Options<DeletePaymentMethodData>>;
94
- export declare const listInvoicesQueryKey: (options?: Options<ListInvoicesData>) => [Pick<Options<ListInvoicesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
87
+ export declare const deleteUserMutation: (options?: Partial<Options<DeleteUserData>>) => UseMutationOptions<DeleteUserResponse, DefaultError, Options<DeleteUserData>>;
88
+ export declare const getUserQueryKey: (options: Options<GetUserData>) => [Pick<Options<GetUserData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
95
89
  _id: string;
96
90
  _infinite?: boolean;
97
91
  tags?: ReadonlyArray<string>;
98
92
  }];
99
93
  /**
100
- * List issued invoices.
94
+ * Get user profile information by id.
101
95
  *
102
- * 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.
96
+ * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
97
+ *
98
+ * This endpoint is available to all users in the organization.
103
99
  *
104
100
  */
105
- export declare const listInvoicesOptions: (options?: Options<ListInvoicesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Invoice[], Error, import("../types.gen").Invoice[], [Pick<Options<ListInvoicesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
101
+ export declare const getUserOptions: (options: Options<GetUserData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").User, Error, import("../types.gen").User, [Pick<Options<GetUserData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
106
102
  _id: string;
107
103
  _infinite?: boolean;
108
104
  tags?: ReadonlyArray<string>;
109
105
  }]>, "queryFn"> & {
110
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Invoice[], [Pick<Options<ListInvoicesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
106
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").User, [Pick<Options<GetUserData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
111
107
  _id: string;
112
108
  _infinite?: boolean;
113
109
  tags?: ReadonlyArray<string>;
114
110
  }], never> | undefined;
115
- } & {
116
- queryKey: [Pick<Options<ListInvoicesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
117
- _id: string;
118
- _infinite?: boolean;
119
- tags?: ReadonlyArray<string>;
120
- }] & {
121
- [dataTagSymbol]: import("../types.gen").Invoice[];
122
- [dataTagErrorSymbol]: Error;
123
- };
124
- };
125
- export declare const getContactQueryKey: (options?: Options<GetContactData>) => [Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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>;
116
+ /**
117
+ * Update user profile information.
118
+ *
119
+ * 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.
120
+ *
121
+ */
122
+ export declare const updateUserMutation: (options?: Partial<Options<UpdateUserData>>) => UseMutationOptions<UpdateUserResponse, DefaultError, Options<UpdateUserData>>;
123
+ export declare const listTokensQueryKey: (options?: Options<ListTokensData>) => [Pick<Options<ListTokensData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
126
124
  _id: string;
127
125
  _infinite?: boolean;
128
126
  tags?: ReadonlyArray<string>;
129
127
  }];
130
128
  /**
131
- * Get organization contact and billing address information.
129
+ * List access tokens in organization.
132
130
  *
133
- * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
131
+ * 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.
134
132
  *
135
133
  */
136
- export declare const getContactOptions: (options?: Options<GetContactData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").BillingContact, Error, import("../types.gen").BillingContact, [Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
134
+ export declare const listTokensOptions: (options?: Options<ListTokensData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Token[], Error, import("../types.gen").Token[], [Pick<Options<ListTokensData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
137
135
  _id: string;
138
136
  _infinite?: boolean;
139
137
  tags?: ReadonlyArray<string>;
140
138
  }]>, "queryFn"> & {
141
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").BillingContact, [Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
139
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Token[], [Pick<Options<ListTokensData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
142
140
  _id: string;
143
141
  _infinite?: boolean;
144
142
  tags?: ReadonlyArray<string>;
145
143
  }], never> | undefined;
146
- } & {
147
- queryKey: [Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
148
- _id: string;
149
- _infinite?: boolean;
150
- tags?: ReadonlyArray<string>;
151
- }] & {
152
- [dataTagSymbol]: import("../types.gen").BillingContact;
153
- [dataTagErrorSymbol]: Error;
154
- };
155
- };
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>;
156
149
  /**
157
- * Update organization contact information and billing address.
150
+ * Create a new access token.
158
151
  *
159
- * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
152
+ * 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.
153
+ *
154
+ * This endpoint is available to administrators of the organization only.
160
155
  *
161
156
  */
162
- export declare const updateContactMutation: (options?: Partial<Options<UpdateContactData>>) => UseMutationOptions<UpdateContactResponse, DefaultError, Options<UpdateContactData>>;
163
- export declare const getCreditsQueryKey: (options?: Options<GetCreditsData>) => [Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
157
+ export declare const createTokenMutation: (options?: Partial<Options<CreateTokenData>>) => UseMutationOptions<CreateTokenResponse, DefaultError, Options<CreateTokenData>>;
158
+ /**
159
+ * Permanently delete access token.
160
+ *
161
+ * 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.
162
+ *
163
+ */
164
+ export declare const deleteTokenMutation: (options?: Partial<Options<DeleteTokenData>>) => UseMutationOptions<unknown, DefaultError, Options<DeleteTokenData>>;
165
+ export declare const getTokenQueryKey: (options: Options<GetTokenData>) => [Pick<Options<GetTokenData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
164
166
  _id: string;
165
167
  _infinite?: boolean;
166
168
  tags?: ReadonlyArray<string>;
167
169
  }];
168
170
  /**
169
- * Get applied promotional credits
171
+ * Get access token information.
170
172
  *
171
- * 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.
173
+ * 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.
172
174
  *
173
175
  */
174
- export declare const getCreditsOptions: (options?: Options<GetCreditsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").BillingCredits[], Error, import("../types.gen").BillingCredits[], [Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
176
+ export declare const getTokenOptions: (options: Options<GetTokenData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Token, Error, import("../types.gen").Token, [Pick<Options<GetTokenData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
175
177
  _id: string;
176
178
  _infinite?: boolean;
177
179
  tags?: ReadonlyArray<string>;
178
180
  }]>, "queryFn"> & {
179
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").BillingCredits[], [Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
181
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Token, [Pick<Options<GetTokenData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
180
182
  _id: string;
181
183
  _infinite?: boolean;
182
184
  tags?: ReadonlyArray<string>;
183
185
  }], never> | undefined;
184
- } & {
185
- queryKey: [Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
186
- _id: string;
187
- _infinite?: boolean;
188
- tags?: ReadonlyArray<string>;
189
- }] & {
190
- [dataTagSymbol]: import("../types.gen").BillingCredits[];
191
- [dataTagErrorSymbol]: Error;
192
- };
193
- };
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>;
194
191
  /**
195
- * Redeem promotional credits code.
192
+ * Update access token information.
196
193
  *
197
- * 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.
194
+ * 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.
195
+ *
196
+ * This endpoint is available to administrators of the organization only.
198
197
  *
199
198
  */
200
- export declare const redeemCreditsMutation: (options?: Partial<Options<RedeemCreditsData>>) => UseMutationOptions<unknown, DefaultError, Options<RedeemCreditsData>>;
201
- export declare const listChartsQueryKey: (options: Options<ListChartsData>) => [Pick<Options<ListChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
199
+ export declare const updateTokenMutation: (options?: Partial<Options<UpdateTokenData>>) => UseMutationOptions<UpdateTokenResponse, DefaultError, Options<UpdateTokenData>>;
200
+ /**
201
+ * Regenerate access token secret key.
202
+ *
203
+ * Generates a new access token secret. Old secret will not be valid anymore.
204
+ */
205
+ export declare const regenerateTokenMutation: (options?: Partial<Options<RegenerateTokenData>>) => UseMutationOptions<RegenerateTokenResponse, DefaultError, Options<RegenerateTokenData>>;
206
+ export declare const listTicketsQueryKey: (options?: Options<ListTicketsData>) => [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
202
207
  _id: string;
203
208
  _infinite?: boolean;
204
209
  tags?: ReadonlyArray<string>;
205
210
  }];
206
211
  /**
207
- * List charts.
208
- *
209
- * Returns a list of charts in the cluster.
212
+ * List tickets for the current organization.
210
213
  *
211
- * This endpoint is available to all users in the organization.
214
+ * Returns all tickets belonging to the caller's organization, newest first.
212
215
  *
213
216
  */
214
- export declare const listChartsOptions: (options: Options<ListChartsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Chart[], Error, import("../types.gen").Chart[], [Pick<Options<ListChartsData>, "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"> & {
215
218
  _id: string;
216
219
  _infinite?: boolean;
217
220
  tags?: ReadonlyArray<string>;
218
221
  }]>, "queryFn"> & {
219
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Chart[], [Pick<Options<ListChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
222
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Ticket[], [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
220
223
  _id: string;
221
224
  _infinite?: boolean;
222
225
  tags?: ReadonlyArray<string>;
223
226
  }], never> | undefined;
224
- } & {
225
- queryKey: [Pick<Options<ListChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
226
- _id: string;
227
- _infinite?: boolean;
228
- tags?: ReadonlyArray<string>;
229
- }] & {
230
- [dataTagSymbol]: import("../types.gen").Chart[];
231
- [dataTagErrorSymbol]: Error;
232
- };
233
- };
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>;
234
232
  /**
235
- * Create a new chart.
236
- *
237
- * Create a new chart deployment.
233
+ * Create a new support ticket.
238
234
  *
239
- * This endpoint is available to administrators of the organization only.
235
+ * Creates a new support ticket with an initial customer message. The request is `multipart/form-data` with a JSON-encoded `payload` field carrying `category`, `body`, and optional `properties`, plus up to 3 `attachments` files (10 MB max each).
240
236
  *
241
237
  */
242
- export declare const createChartMutation: (options?: Partial<Options<CreateChartData>>) => UseMutationOptions<CreateChartResponse, DefaultError, Options<CreateChartData>>;
238
+ export declare const createTicketMutation: (options?: Partial<Options<CreateTicketData>>) => UseMutationOptions<CreateTicketResponse, DefaultError, Options<CreateTicketData>>;
243
239
  /**
244
- * Permanently delete the chart deployment from the cluster.
245
- *
246
- * This endpoint will permanently delete chart. This operation cannot be undone.
240
+ * Close a ticket (soft close).
247
241
  *
248
- * This endpoint is available to administrators of the organization only.
242
+ * Marks the ticket as closed. Closed is a terminal state — users cannot reply to a closed ticket; a new ticket must be opened instead.
249
243
  *
250
244
  */
251
- export declare const deleteChartMutation: (options?: Partial<Options<DeleteChartData>>) => UseMutationOptions<DeleteChartResponse, DefaultError, Options<DeleteChartData>>;
252
- export declare const getChartQueryKey: (options: Options<GetChartData>) => [Pick<Options<GetChartData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
245
+ export declare const closeTicketMutation: (options?: Partial<Options<CloseTicketData>>) => UseMutationOptions<CloseTicketResponse, DefaultError, Options<CloseTicketData>>;
246
+ export declare const getTicketQueryKey: (options: Options<GetTicketData>) => [Pick<Options<GetTicketData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
253
247
  _id: string;
254
248
  _infinite?: boolean;
255
249
  tags?: ReadonlyArray<string>;
256
250
  }];
257
251
  /**
258
- * Get chart information.
259
- *
260
- * Returns the details of the chart deployment.
261
- *
262
- * This endpoint is available to all users in the organization.
263
- *
252
+ * Get a ticket and its messages.
264
253
  */
265
- export declare const getChartOptions: (options: Options<GetChartData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Chart, Error, import("../types.gen").Chart, [Pick<Options<GetChartData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
254
+ export declare const getTicketOptions: (options: Options<GetTicketData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Ticket, Error, import("../types.gen").Ticket, [Pick<Options<GetTicketData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
266
255
  _id: string;
267
256
  _infinite?: boolean;
268
257
  tags?: ReadonlyArray<string>;
269
258
  }]>, "queryFn"> & {
270
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Chart, [Pick<Options<GetChartData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
259
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Ticket, [Pick<Options<GetTicketData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
271
260
  _id: string;
272
261
  _infinite?: boolean;
273
262
  tags?: ReadonlyArray<string>;
274
263
  }], never> | undefined;
275
- } & {
276
- queryKey: [Pick<Options<GetChartData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
277
- _id: string;
278
- _infinite?: boolean;
279
- tags?: ReadonlyArray<string>;
280
- }] & {
281
- [dataTagSymbol]: import("../types.gen").Chart;
282
- [dataTagErrorSymbol]: Error;
283
- };
284
- };
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>;
285
269
  /**
286
- * Update chart information.
287
- *
288
- * This endpoint allows you to update the values of a chart deployment.
270
+ * Append a customer reply to a ticket.
289
271
  *
290
- * This endpoint is available to administrators of the organization only.
272
+ * Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
291
273
  *
292
274
  */
293
- export declare const updateChartMutation: (options?: Partial<Options<UpdateChartData>>) => UseMutationOptions<UpdateChartResponse, DefaultError, Options<UpdateChartData>>;
294
- export declare const listFleetsQueryKey: (options: Options<ListFleetsData>) => [Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
275
+ export declare const replyTicketMutation: (options?: Partial<Options<ReplyTicketData>>) => UseMutationOptions<ReplyTicketResponse, DefaultError, Options<ReplyTicketData>>;
276
+ export declare const getTicketAttachmentQueryKey: (options: Options<GetTicketAttachmentData>) => [Pick<Options<GetTicketAttachmentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
295
277
  _id: string;
296
278
  _infinite?: boolean;
297
279
  tags?: ReadonlyArray<string>;
298
280
  }];
299
281
  /**
300
- * List fleets.
301
- *
302
- * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
303
- *
304
- * This endpoint is available to all users in the organization.
305
- *
282
+ * Download a ticket attachment.
306
283
  */
307
- export declare const listFleetsOptions: (options: Options<ListFleetsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Fleet[], Error, import("../types.gen").Fleet[], [Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
284
+ export declare const getTicketAttachmentOptions: (options: Options<GetTicketAttachmentData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<Blob | File, Error, Blob | File, [Pick<Options<GetTicketAttachmentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
308
285
  _id: string;
309
286
  _infinite?: boolean;
310
287
  tags?: ReadonlyArray<string>;
311
288
  }]>, "queryFn"> & {
312
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Fleet[], [Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
289
+ queryFn?: import("@tanstack/react-query").QueryFunction<Blob | File, [Pick<Options<GetTicketAttachmentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
313
290
  _id: string;
314
291
  _infinite?: boolean;
315
292
  tags?: ReadonlyArray<string>;
316
293
  }], never> | undefined;
317
- } & {
318
- queryKey: [Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
319
- _id: string;
320
- _infinite?: boolean;
321
- tags?: ReadonlyArray<string>;
322
- }] & {
323
- [dataTagSymbol]: import("../types.gen").Fleet[];
324
- [dataTagErrorSymbol]: Error;
325
- };
326
- };
327
- /**
328
- * Create a new fleet.
329
- *
330
- * 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.
331
- *
332
- * This endpoint is available to administrators of the organization only.
333
- *
334
- */
335
- export declare const createFleetMutation: (options?: Partial<Options<CreateFleetData>>) => UseMutationOptions<CreateFleetResponse, CreateFleetError, Options<CreateFleetData>>;
336
- /**
337
- * Permanently delete fleet.
338
- *
339
- * 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.
340
- *
341
- * This endpoint is available to administrators of the organization only.
342
- *
343
- */
344
- export declare const deleteFleetMutation: (options?: Partial<Options<DeleteFleetData>>) => UseMutationOptions<DeleteFleetResponse, DefaultError, Options<DeleteFleetData>>;
345
- export declare const getFleetQueryKey: (options: Options<GetFleetData>) => [Pick<Options<GetFleetData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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>;
299
+ export declare const listRepositoriesQueryKey: (options?: Options<ListRepositoriesData>) => [Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
346
300
  _id: string;
347
301
  _infinite?: boolean;
348
302
  tags?: ReadonlyArray<string>;
349
303
  }];
350
304
  /**
351
- * Get fleet information.
352
- *
353
- * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
305
+ * List repositories
354
306
  *
355
- * This endpoint is available to all users in the organization.
307
+ * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
356
308
  *
357
309
  */
358
- export declare const getFleetOptions: (options: Options<GetFleetData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Fleet, Error, import("../types.gen").Fleet, [Pick<Options<GetFleetData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
310
+ export declare const listRepositoriesOptions: (options?: Options<ListRepositoriesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").RegistryRepository[], Error, import("../types.gen").RegistryRepository[], [Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
359
311
  _id: string;
360
312
  _infinite?: boolean;
361
313
  tags?: ReadonlyArray<string>;
362
314
  }]>, "queryFn"> & {
363
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Fleet, [Pick<Options<GetFleetData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
315
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").RegistryRepository[], [Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
364
316
  _id: string;
365
317
  _infinite?: boolean;
366
318
  tags?: ReadonlyArray<string>;
367
319
  }], never> | undefined;
368
- } & {
369
- queryKey: [Pick<Options<GetFleetData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
370
- _id: string;
371
- _infinite?: boolean;
372
- tags?: ReadonlyArray<string>;
373
- }] & {
374
- [dataTagSymbol]: import("../types.gen").Fleet;
375
- [dataTagErrorSymbol]: Error;
376
- };
377
- };
378
- /**
379
- * Update fleet information.
380
- *
381
- * This endpoint allows you to update fleet details.
382
- *
383
- * 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`.
384
- *
385
- * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
386
- *
387
- * This endpoint is available to administrators of the organization only.
388
- *
389
- */
390
- export declare const updateFleetMutation: (options?: Partial<Options<UpdateFleetData>>) => UseMutationOptions<UpdateFleetResponse, UpdateFleetError, Options<UpdateFleetData>>;
391
- export declare const queryClusterQueryKey: (options: Options<QueryClusterData>) => [Pick<Options<QueryClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
392
- _id: string;
393
- _infinite?: boolean;
394
- tags?: ReadonlyArray<string>;
395
- }];
396
- /**
397
- * Query Kubernetes cluster API
398
- *
399
- * 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.
400
- */
401
- export declare const queryClusterOptions: (options: Options<QueryClusterData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<unknown, Error, unknown, [Pick<Options<QueryClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
320
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
402
321
  _id: string;
403
322
  _infinite?: boolean;
404
323
  tags?: ReadonlyArray<string>;
405
- }]>, "queryFn"> & {
406
- queryFn?: import("@tanstack/react-query").QueryFunction<unknown, [Pick<Options<QueryClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
407
- _id: string;
408
- _infinite?: boolean;
409
- tags?: ReadonlyArray<string>;
410
- }], never> | undefined;
411
- } & {
412
- queryKey: [Pick<Options<QueryClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
413
- _id: string;
414
- _infinite?: boolean;
415
- tags?: ReadonlyArray<string>;
416
- }] & {
417
- [dataTagSymbol]: unknown;
418
- [dataTagErrorSymbol]: Error;
419
- };
420
- };
421
- export declare const listClustersQueryKey: (options?: Options<ListClustersData>) => [Pick<Options<ListClustersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
324
+ }], import("../types.gen").RegistryRepository[], Error>;
325
+ export declare const listTagsQueryKey: (options: Options<ListTagsData>) => [Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
422
326
  _id: string;
423
327
  _infinite?: boolean;
424
328
  tags?: ReadonlyArray<string>;
425
329
  }];
426
330
  /**
427
- * List clusters.
428
- *
429
- * 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.
331
+ * List tags for a repository
430
332
  *
431
- * This endpoint is available to all users in the organization.
333
+ * 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.
432
334
  *
433
335
  */
434
- export declare const listClustersOptions: (options?: Options<ListClustersData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Cluster[], Error, import("../types.gen").Cluster[], [Pick<Options<ListClustersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
336
+ export declare const listTagsOptions: (options: Options<ListTagsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").RegistryRepositoryWithTags, Error, import("../types.gen").RegistryRepositoryWithTags, [Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
435
337
  _id: string;
436
338
  _infinite?: boolean;
437
339
  tags?: ReadonlyArray<string>;
438
340
  }]>, "queryFn"> & {
439
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Cluster[], [Pick<Options<ListClustersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
341
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").RegistryRepositoryWithTags, [Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
440
342
  _id: string;
441
343
  _infinite?: boolean;
442
344
  tags?: ReadonlyArray<string>;
443
345
  }], never> | undefined;
444
- } & {
445
- queryKey: [Pick<Options<ListClustersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
446
- _id: string;
447
- _infinite?: boolean;
448
- tags?: ReadonlyArray<string>;
449
- }] & {
450
- [dataTagSymbol]: import("../types.gen").Cluster[];
451
- [dataTagErrorSymbol]: Error;
452
- };
453
- };
454
- /**
455
- * Create a new cluster.
456
- *
457
- * 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.
458
- *
459
- * This endpoint is available to administrators of the organization only.
460
- *
461
- */
462
- export declare const createClusterMutation: (options?: Partial<Options<CreateClusterData>>) => UseMutationOptions<CreateClusterResponse, CreateClusterError, Options<CreateClusterData>>;
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>;
463
351
  /**
464
- * Permanently delete cluster.
465
- *
466
- * This endpoint will permanently delete the cluster. This operation cannot be undone.
352
+ * Delete tag
467
353
  *
468
- * This endpoint is available to administrators of the organization only.
354
+ * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
469
355
  *
470
356
  */
471
- export declare const deleteClusterMutation: (options?: Partial<Options<DeleteClusterData>>) => UseMutationOptions<DeleteClusterResponse, DefaultError, Options<DeleteClusterData>>;
472
- export declare const getClusterQueryKey: (options: Options<GetClusterData>) => [Pick<Options<GetClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
357
+ export declare const deleteTagMutation: (options?: Partial<Options<DeleteTagData>>) => UseMutationOptions<unknown, DefaultError, Options<DeleteTagData>>;
358
+ export declare const getTagQueryKey: (options: Options<GetTagData>) => [Pick<Options<GetTagData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
473
359
  _id: string;
474
360
  _infinite?: boolean;
475
361
  tags?: ReadonlyArray<string>;
476
362
  }];
477
363
  /**
478
- * Get cluster information.
479
- *
480
- * 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.
364
+ * Get tag details
481
365
  *
482
- * This endpoint is available to all users in the organization.
366
+ * 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.
483
367
  *
484
368
  */
485
- export declare const getClusterOptions: (options: Options<GetClusterData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Cluster, Error, import("../types.gen").Cluster, [Pick<Options<GetClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
369
+ export declare const getTagOptions: (options: Options<GetTagData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").RegistryTag, Error, import("../types.gen").RegistryTag, [Pick<Options<GetTagData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
486
370
  _id: string;
487
371
  _infinite?: boolean;
488
372
  tags?: ReadonlyArray<string>;
489
373
  }]>, "queryFn"> & {
490
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Cluster, [Pick<Options<GetClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
374
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").RegistryTag, [Pick<Options<GetTagData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
491
375
  _id: string;
492
376
  _infinite?: boolean;
493
377
  tags?: ReadonlyArray<string>;
494
378
  }], never> | undefined;
495
- } & {
496
- queryKey: [Pick<Options<GetClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
497
- _id: string;
498
- _infinite?: boolean;
499
- tags?: ReadonlyArray<string>;
500
- }] & {
501
- [dataTagSymbol]: import("../types.gen").Cluster;
502
- [dataTagErrorSymbol]: Error;
503
- };
504
- };
505
- /**
506
- * Update cluster information.
507
- *
508
- * 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.
509
- *
510
- * This endpoint is available to administrators of the organization only.
511
- *
512
- */
513
- export declare const updateClusterMutation: (options?: Partial<Options<UpdateClusterData>>) => UseMutationOptions<UpdateClusterResponse, DefaultError, Options<UpdateClusterData>>;
514
- /**
515
- * Node join information for the cluster
516
- *
517
- * 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.
518
- *
519
- */
520
- export declare const getJoinInformationMutation: (options?: Partial<Options<GetJoinInformationData>>) => UseMutationOptions<GetJoinInformationResponse, DefaultError, Options<GetJoinInformationData>>;
521
- export declare const listInvitesQueryKey: (options?: Options<ListInvitesData>) => [Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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>;
384
+ export declare const getOrganizationQueryKey: (options?: Options<GetOrganizationData>) => [Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
522
385
  _id: string;
523
386
  _infinite?: boolean;
524
387
  tags?: ReadonlyArray<string>;
525
388
  }];
526
389
  /**
527
- * List invites.
390
+ * Get organization information.
528
391
  *
529
- * Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
392
+ * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
393
+ *
394
+ * This endpoint is available to all users in the organization.
530
395
  *
531
396
  */
532
- export declare const listInvitesOptions: (options?: Options<ListInvitesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Invite[], Error, import("../types.gen").Invite[], [Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
397
+ export declare const getOrganizationOptions: (options?: Options<GetOrganizationData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Organization, Error, import("../types.gen").Organization, [Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
533
398
  _id: string;
534
399
  _infinite?: boolean;
535
400
  tags?: ReadonlyArray<string>;
536
401
  }]>, "queryFn"> & {
537
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Invite[], [Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
402
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Organization, [Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
538
403
  _id: string;
539
404
  _infinite?: boolean;
540
405
  tags?: ReadonlyArray<string>;
541
406
  }], never> | undefined;
542
- } & {
543
- queryKey: [Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
544
- _id: string;
545
- _infinite?: boolean;
546
- tags?: ReadonlyArray<string>;
547
- }] & {
548
- [dataTagSymbol]: import("../types.gen").Invite[];
549
- [dataTagErrorSymbol]: Error;
550
- };
551
- };
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>;
552
412
  /**
553
- * Create a new invite.
413
+ * Create a new organization / Cloudfleet account signup.
554
414
  *
555
- * 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.
415
+ * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
556
416
  *
557
417
  */
558
- export declare const createInviteMutation: (options?: Partial<Options<CreateInviteData>>) => UseMutationOptions<CreateInviteResponse, DefaultError, Options<CreateInviteData>>;
559
- export declare const getInviteQueryKey: (options: Options<GetInviteData>) => [Pick<Options<GetInviteData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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"> & {
560
420
  _id: string;
561
421
  _infinite?: boolean;
562
422
  tags?: ReadonlyArray<string>;
563
423
  }];
564
424
  /**
565
- * Get invite information.
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.
566
428
  *
567
- * Returns invite details.
429
+ * This endpoint is available to all users in the organization and drives the consent dialog in the console.
568
430
  *
569
431
  */
570
- export declare const getInviteOptions: (options: Options<GetInviteData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Invite, Error, import("../types.gen").Invite, [Pick<Options<GetInviteData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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"> & {
571
433
  _id: string;
572
434
  _infinite?: boolean;
573
435
  tags?: ReadonlyArray<string>;
574
436
  }]>, "queryFn"> & {
575
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Invite, [Pick<Options<GetInviteData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
437
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").BasicPriceConsent, [Pick<Options<GetBasicPriceConsentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
576
438
  _id: string;
577
439
  _infinite?: boolean;
578
440
  tags?: ReadonlyArray<string>;
579
441
  }], never> | undefined;
580
- } & {
581
- queryKey: [Pick<Options<GetInviteData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
582
- _id: string;
583
- _infinite?: boolean;
584
- tags?: ReadonlyArray<string>;
585
- }] & {
586
- [dataTagSymbol]: import("../types.gen").Invite;
587
- [dataTagErrorSymbol]: Error;
588
- };
589
- };
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>;
590
447
  /**
591
- * Permanently delete invite.
448
+ * Record an administrator's decision on the new Basic price.
592
449
  *
593
- * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
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.
594
451
  *
595
452
  */
596
- export declare const deleteInviteMutation: (options?: Partial<Options<DeleteInviteData>>) => UseMutationOptions<unknown, DefaultError, Options<DeleteInviteData>>;
453
+ export declare const setBasicPriceConsentMutation: (options?: Partial<Options<SetBasicPriceConsentData>>) => UseMutationOptions<SetBasicPriceConsentResponse, DefaultError, Options<SetBasicPriceConsentData>>;
454
+ /**
455
+ * MCP endpoint
456
+ *
457
+ * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
458
+ */
459
+ export declare const postMcpMutation: (options?: Partial<Options<PostMcpData>>) => UseMutationOptions<PostMcpResponse, DefaultError, Options<PostMcpData>>;
597
460
  export declare const listMarketplaceChartsQueryKey: (options?: Options<ListMarketplaceChartsData>) => [Pick<Options<ListMarketplaceChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
598
461
  _id: string;
599
462
  _infinite?: boolean;
@@ -617,16 +480,11 @@ export declare const listMarketplaceChartsOptions: (options?: Options<ListMarket
617
480
  _infinite?: boolean;
618
481
  tags?: ReadonlyArray<string>;
619
482
  }], never> | undefined;
620
- } & {
621
- queryKey: [Pick<Options<ListMarketplaceChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
622
- _id: string;
623
- _infinite?: boolean;
624
- tags?: ReadonlyArray<string>;
625
- }] & {
626
- [dataTagSymbol]: import("../types.gen").MarketplaceListing[];
627
- [dataTagErrorSymbol]: Error;
628
- };
629
- };
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>;
630
488
  export declare const getMarketplaceChartFilesQueryKey: (options: Options<GetMarketplaceChartFilesData>) => [Pick<Options<GetMarketplaceChartFilesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
631
489
  _id: string;
632
490
  _infinite?: boolean;
@@ -652,488 +510,552 @@ export declare const getMarketplaceChartFilesOptions: (options: Options<GetMarke
652
510
  _infinite?: boolean;
653
511
  tags?: ReadonlyArray<string>;
654
512
  }], never> | undefined;
655
- } & {
656
- queryKey: [Pick<Options<GetMarketplaceChartFilesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
657
- _id: string;
658
- _infinite?: boolean;
659
- tags?: ReadonlyArray<string>;
660
- }] & {
661
- [dataTagSymbol]: import("../types.gen").MarketplaceListingFiles;
662
- [dataTagErrorSymbol]: Error;
663
- };
664
- };
665
- /**
666
- * MCP endpoint
667
- *
668
- * MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
669
- */
670
- export declare const postMcpMutation: (options?: Partial<Options<PostMcpData>>) => UseMutationOptions<PostMcpResponse, DefaultError, Options<PostMcpData>>;
671
- export declare const getOrganizationQueryKey: (options?: Options<GetOrganizationData>) => [Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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>;
518
+ export declare const listInvitesQueryKey: (options?: Options<ListInvitesData>) => [Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
672
519
  _id: string;
673
520
  _infinite?: boolean;
674
521
  tags?: ReadonlyArray<string>;
675
522
  }];
676
523
  /**
677
- * Get organization information.
678
- *
679
- * Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
524
+ * List invites.
680
525
  *
681
- * This endpoint is available to all users in the organization.
526
+ * Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
682
527
  *
683
528
  */
684
- export declare const getOrganizationOptions: (options?: Options<GetOrganizationData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Organization, Error, import("../types.gen").Organization, [Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
529
+ export declare const listInvitesOptions: (options?: Options<ListInvitesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Invite[], Error, import("../types.gen").Invite[], [Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
685
530
  _id: string;
686
531
  _infinite?: boolean;
687
532
  tags?: ReadonlyArray<string>;
688
533
  }]>, "queryFn"> & {
689
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Organization, [Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
534
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Invite[], [Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
690
535
  _id: string;
691
536
  _infinite?: boolean;
692
537
  tags?: ReadonlyArray<string>;
693
538
  }], never> | undefined;
694
- } & {
695
- queryKey: [Pick<Options<GetOrganizationData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
696
- _id: string;
697
- _infinite?: boolean;
698
- tags?: ReadonlyArray<string>;
699
- }] & {
700
- [dataTagSymbol]: import("../types.gen").Organization;
701
- [dataTagErrorSymbol]: Error;
702
- };
703
- };
704
- /**
705
- * Create a new organization / Cloudfleet account signup.
706
- *
707
- * This endpoint allows you to create a new Cloudfleet organization and an administrator user.
708
- *
709
- */
710
- export declare const createOrganizationMutation: (options?: Partial<Options<CreateOrganizationData>>) => UseMutationOptions<CreateOrganizationResponse, DefaultError, Options<CreateOrganizationData>>;
711
- export declare const listRepositoriesQueryKey: (options?: Options<ListRepositoriesData>) => [Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
539
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<ListInvitesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
712
540
  _id: string;
713
541
  _infinite?: boolean;
714
542
  tags?: ReadonlyArray<string>;
715
- }];
543
+ }], import("../types.gen").Invite[], Error>;
716
544
  /**
717
- * List repositories
545
+ * Create a new invite.
718
546
  *
719
- * Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
547
+ * 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.
720
548
  *
721
549
  */
722
- export declare const listRepositoriesOptions: (options?: Options<ListRepositoriesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").RegistryRepository[], Error, import("../types.gen").RegistryRepository[], [Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
723
- _id: string;
724
- _infinite?: boolean;
725
- tags?: ReadonlyArray<string>;
726
- }]>, "queryFn"> & {
727
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").RegistryRepository[], [Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
728
- _id: string;
729
- _infinite?: boolean;
730
- tags?: ReadonlyArray<string>;
731
- }], never> | undefined;
732
- } & {
733
- queryKey: [Pick<Options<ListRepositoriesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
734
- _id: string;
735
- _infinite?: boolean;
736
- tags?: ReadonlyArray<string>;
737
- }] & {
738
- [dataTagSymbol]: import("../types.gen").RegistryRepository[];
739
- [dataTagErrorSymbol]: Error;
740
- };
741
- };
742
- export declare const listTagsQueryKey: (options: Options<ListTagsData>) => [Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
550
+ export declare const createInviteMutation: (options?: Partial<Options<CreateInviteData>>) => UseMutationOptions<CreateInviteResponse, DefaultError, Options<CreateInviteData>>;
551
+ export declare const getInviteQueryKey: (options: Options<GetInviteData>) => [Pick<Options<GetInviteData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
743
552
  _id: string;
744
553
  _infinite?: boolean;
745
554
  tags?: ReadonlyArray<string>;
746
555
  }];
747
556
  /**
748
- * List tags for a repository
557
+ * Get invite information.
749
558
  *
750
- * 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.
559
+ * Validates an invitation code and returns the email address it was issued to (to pre-fill the signup form) and the organization it grants access to. This endpoint is unauthenticated, so no other invite details (such as the invited role) are disclosed.
751
560
  *
752
561
  */
753
- export declare const listTagsOptions: (options: Options<ListTagsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").RegistryRepositoryWithTags, Error, import("../types.gen").RegistryRepositoryWithTags, [Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
562
+ export declare const getInviteOptions: (options: Options<GetInviteData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
563
+ email?: string;
564
+ organization_id?: string;
565
+ }, Error, {
566
+ email?: string;
567
+ organization_id?: string;
568
+ }, [Pick<Options<GetInviteData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
754
569
  _id: string;
755
570
  _infinite?: boolean;
756
571
  tags?: ReadonlyArray<string>;
757
572
  }]>, "queryFn"> & {
758
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").RegistryRepositoryWithTags, [Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
573
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
574
+ email?: string;
575
+ organization_id?: string;
576
+ }, [Pick<Options<GetInviteData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
759
577
  _id: string;
760
578
  _infinite?: boolean;
761
579
  tags?: ReadonlyArray<string>;
762
580
  }], never> | undefined;
763
- } & {
764
- queryKey: [Pick<Options<ListTagsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
765
- _id: string;
766
- _infinite?: boolean;
767
- tags?: ReadonlyArray<string>;
768
- }] & {
769
- [dataTagSymbol]: import("../types.gen").RegistryRepositoryWithTags;
770
- [dataTagErrorSymbol]: Error;
771
- };
772
- };
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>;
773
589
  /**
774
- * Delete tag
590
+ * Permanently delete invite.
775
591
  *
776
- * Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
592
+ * Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
777
593
  *
778
594
  */
779
- export declare const deleteTagMutation: (options?: Partial<Options<DeleteTagData>>) => UseMutationOptions<unknown, DefaultError, Options<DeleteTagData>>;
780
- export declare const getTagQueryKey: (options: Options<GetTagData>) => [Pick<Options<GetTagData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
595
+ export declare const deleteInviteMutation: (options?: Partial<Options<DeleteInviteData>>) => UseMutationOptions<unknown, DefaultError, Options<DeleteInviteData>>;
596
+ export declare const queryClusterQueryKey: (options: Options<QueryClusterData>) => [Pick<Options<QueryClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
781
597
  _id: string;
782
598
  _infinite?: boolean;
783
599
  tags?: ReadonlyArray<string>;
784
600
  }];
785
601
  /**
786
- * Get tag details
787
- *
788
- * 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.
602
+ * Query Kubernetes cluster API
789
603
  *
604
+ * 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.
790
605
  */
791
- export declare const getTagOptions: (options: Options<GetTagData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").RegistryTag, Error, import("../types.gen").RegistryTag, [Pick<Options<GetTagData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
606
+ export declare const queryClusterOptions: (options: Options<QueryClusterData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<unknown, Error, unknown, [Pick<Options<QueryClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
792
607
  _id: string;
793
608
  _infinite?: boolean;
794
609
  tags?: ReadonlyArray<string>;
795
610
  }]>, "queryFn"> & {
796
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").RegistryTag, [Pick<Options<GetTagData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
611
+ queryFn?: import("@tanstack/react-query").QueryFunction<unknown, [Pick<Options<QueryClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
797
612
  _id: string;
798
613
  _infinite?: boolean;
799
614
  tags?: ReadonlyArray<string>;
800
615
  }], never> | undefined;
801
- } & {
802
- queryKey: [Pick<Options<GetTagData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
803
- _id: string;
804
- _infinite?: boolean;
805
- tags?: ReadonlyArray<string>;
806
- }] & {
807
- [dataTagSymbol]: import("../types.gen").RegistryTag;
808
- [dataTagErrorSymbol]: Error;
809
- };
810
- };
811
- export declare const listTicketsQueryKey: (options?: Options<ListTicketsData>) => [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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>;
621
+ export declare const listFleetsQueryKey: (options: Options<ListFleetsData>) => [Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
812
622
  _id: string;
813
623
  _infinite?: boolean;
814
624
  tags?: ReadonlyArray<string>;
815
625
  }];
816
626
  /**
817
- * List tickets for the current organization.
627
+ * List fleets.
818
628
  *
819
- * Returns all tickets belonging to the caller's organization, newest first.
629
+ * Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
630
+ *
631
+ * This endpoint is available to all users in the organization.
820
632
  *
821
633
  */
822
- 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"> & {
634
+ export declare const listFleetsOptions: (options: Options<ListFleetsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Fleet[], Error, import("../types.gen").Fleet[], [Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
823
635
  _id: string;
824
636
  _infinite?: boolean;
825
637
  tags?: ReadonlyArray<string>;
826
638
  }]>, "queryFn"> & {
827
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").TicketListResponse, [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
639
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Fleet[], [Pick<Options<ListFleetsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
828
640
  _id: string;
829
641
  _infinite?: boolean;
830
642
  tags?: ReadonlyArray<string>;
831
643
  }], never> | undefined;
832
- } & {
833
- queryKey: [Pick<Options<ListTicketsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
834
- _id: string;
835
- _infinite?: boolean;
836
- tags?: ReadonlyArray<string>;
837
- }] & {
838
- [dataTagSymbol]: import("../types.gen").TicketListResponse;
839
- [dataTagErrorSymbol]: Error;
840
- };
841
- };
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>;
842
649
  /**
843
- * Create a new support ticket.
650
+ * Create a new fleet.
844
651
  *
845
- * Creates a new support ticket with an initial customer message. The request is `multipart/form-data` with a JSON-encoded `payload` field carrying `category`, `body`, and optional `properties`, plus up to 3 `attachments` files (10 MB max each).
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.
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
+ *
656
+ * This endpoint is available to administrators of the organization only.
846
657
  *
847
658
  */
848
- export declare const createTicketMutation: (options?: Partial<Options<CreateTicketData>>) => UseMutationOptions<CreateTicketResponse, DefaultError, Options<CreateTicketData>>;
659
+ export declare const createFleetMutation: (options?: Partial<Options<CreateFleetData>>) => UseMutationOptions<CreateFleetResponse, CreateFleetError, Options<CreateFleetData>>;
849
660
  /**
850
- * Close a ticket (soft close).
661
+ * Permanently delete fleet.
851
662
  *
852
- * Marks the ticket as closed. Closed is a terminal state — users cannot reply to a closed ticket; a new ticket must be opened instead.
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.
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
+ *
667
+ * This endpoint is available to administrators of the organization only.
853
668
  *
854
669
  */
855
- export declare const closeTicketMutation: (options?: Partial<Options<CloseTicketData>>) => UseMutationOptions<CloseTicketResponse, DefaultError, Options<CloseTicketData>>;
856
- export declare const getTicketQueryKey: (options: Options<GetTicketData>) => [Pick<Options<GetTicketData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
670
+ export declare const deleteFleetMutation: (options?: Partial<Options<DeleteFleetData>>) => UseMutationOptions<DeleteFleetResponse, DeleteFleetError, Options<DeleteFleetData>>;
671
+ export declare const getFleetQueryKey: (options: Options<GetFleetData>) => [Pick<Options<GetFleetData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
857
672
  _id: string;
858
673
  _infinite?: boolean;
859
674
  tags?: ReadonlyArray<string>;
860
675
  }];
861
676
  /**
862
- * Get a ticket and its messages.
677
+ * Get fleet information.
678
+ *
679
+ * Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
680
+ *
681
+ * This endpoint is available to all users in the organization.
682
+ *
863
683
  */
864
- export declare const getTicketOptions: (options: Options<GetTicketData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Ticket, Error, import("../types.gen").Ticket, [Pick<Options<GetTicketData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
684
+ export declare const getFleetOptions: (options: Options<GetFleetData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Fleet, Error, import("../types.gen").Fleet, [Pick<Options<GetFleetData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
865
685
  _id: string;
866
686
  _infinite?: boolean;
867
687
  tags?: ReadonlyArray<string>;
868
688
  }]>, "queryFn"> & {
869
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Ticket, [Pick<Options<GetTicketData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
689
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Fleet, [Pick<Options<GetFleetData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
870
690
  _id: string;
871
691
  _infinite?: boolean;
872
692
  tags?: ReadonlyArray<string>;
873
693
  }], never> | undefined;
874
- } & {
875
- queryKey: [Pick<Options<GetTicketData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
876
- _id: string;
877
- _infinite?: boolean;
878
- tags?: ReadonlyArray<string>;
879
- }] & {
880
- [dataTagSymbol]: import("../types.gen").Ticket;
881
- [dataTagErrorSymbol]: Error;
882
- };
883
- };
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>;
884
699
  /**
885
- * Append a customer reply to a ticket.
700
+ * Update fleet information.
886
701
  *
887
- * Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
702
+ * This endpoint allows you to update fleet details.
703
+ *
704
+ * For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
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
+ *
708
+ * This endpoint is available to administrators of the organization only.
888
709
  *
889
710
  */
890
- export declare const replyTicketMutation: (options?: Partial<Options<ReplyTicketData>>) => UseMutationOptions<ReplyTicketResponse, DefaultError, Options<ReplyTicketData>>;
891
- export declare const getTicketAttachmentQueryKey: (options: Options<GetTicketAttachmentData>) => [Pick<Options<GetTicketAttachmentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
711
+ export declare const updateFleetMutation: (options?: Partial<Options<UpdateFleetData>>) => UseMutationOptions<UpdateFleetResponse, UpdateFleetError, Options<UpdateFleetData>>;
712
+ export declare const listChartsQueryKey: (options: Options<ListChartsData>) => [Pick<Options<ListChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
892
713
  _id: string;
893
714
  _infinite?: boolean;
894
715
  tags?: ReadonlyArray<string>;
895
716
  }];
896
717
  /**
897
- * Download a ticket attachment.
718
+ * List charts.
719
+ *
720
+ * Returns a list of charts in the cluster.
721
+ *
722
+ * This endpoint is available to all users in the organization.
723
+ *
898
724
  */
899
- export declare const getTicketAttachmentOptions: (options: Options<GetTicketAttachmentData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<Blob | File, Error, Blob | File, [Pick<Options<GetTicketAttachmentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
725
+ export declare const listChartsOptions: (options: Options<ListChartsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Chart[], Error, import("../types.gen").Chart[], [Pick<Options<ListChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
900
726
  _id: string;
901
727
  _infinite?: boolean;
902
728
  tags?: ReadonlyArray<string>;
903
729
  }]>, "queryFn"> & {
904
- queryFn?: import("@tanstack/react-query").QueryFunction<Blob | File, [Pick<Options<GetTicketAttachmentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
730
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Chart[], [Pick<Options<ListChartsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
905
731
  _id: string;
906
732
  _infinite?: boolean;
907
733
  tags?: ReadonlyArray<string>;
908
734
  }], never> | undefined;
909
- } & {
910
- queryKey: [Pick<Options<GetTicketAttachmentData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
911
- _id: string;
912
- _infinite?: boolean;
913
- tags?: ReadonlyArray<string>;
914
- }] & {
915
- [dataTagSymbol]: Blob | File;
916
- [dataTagErrorSymbol]: Error;
917
- };
918
- };
919
- export declare const listTokensQueryKey: (options?: Options<ListTokensData>) => [Pick<Options<ListTokensData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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>;
740
+ /**
741
+ * Create a new chart.
742
+ *
743
+ * Create a new chart deployment.
744
+ *
745
+ * This endpoint is available to administrators of the organization only.
746
+ *
747
+ */
748
+ export declare const createChartMutation: (options?: Partial<Options<CreateChartData>>) => UseMutationOptions<CreateChartResponse, CreateChartError, Options<CreateChartData>>;
749
+ /**
750
+ * Permanently delete the chart deployment from the cluster.
751
+ *
752
+ * This endpoint will permanently delete chart. This operation cannot be undone.
753
+ *
754
+ * This endpoint is available to administrators of the organization only.
755
+ *
756
+ */
757
+ export declare const deleteChartMutation: (options?: Partial<Options<DeleteChartData>>) => UseMutationOptions<DeleteChartResponse, DeleteChartError, Options<DeleteChartData>>;
758
+ export declare const getChartQueryKey: (options: Options<GetChartData>) => [Pick<Options<GetChartData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
920
759
  _id: string;
921
760
  _infinite?: boolean;
922
761
  tags?: ReadonlyArray<string>;
923
762
  }];
924
763
  /**
925
- * List access tokens in organization.
764
+ * Get chart information.
926
765
  *
927
- * 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.
766
+ * Returns the details of the chart deployment.
767
+ *
768
+ * This endpoint is available to all users in the organization.
928
769
  *
929
770
  */
930
- export declare const listTokensOptions: (options?: Options<ListTokensData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Token[], Error, import("../types.gen").Token[], [Pick<Options<ListTokensData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
771
+ export declare const getChartOptions: (options: Options<GetChartData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Chart, Error, import("../types.gen").Chart, [Pick<Options<GetChartData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
931
772
  _id: string;
932
773
  _infinite?: boolean;
933
774
  tags?: ReadonlyArray<string>;
934
775
  }]>, "queryFn"> & {
935
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Token[], [Pick<Options<ListTokensData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
776
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Chart, [Pick<Options<GetChartData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
936
777
  _id: string;
937
778
  _infinite?: boolean;
938
779
  tags?: ReadonlyArray<string>;
939
780
  }], never> | undefined;
940
- } & {
941
- queryKey: [Pick<Options<ListTokensData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
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>;
786
+ /**
787
+ * Update chart information.
788
+ *
789
+ * This endpoint allows you to update the values of a chart deployment.
790
+ *
791
+ * This endpoint is available to administrators of the organization only.
792
+ *
793
+ */
794
+ export declare const updateChartMutation: (options?: Partial<Options<UpdateChartData>>) => UseMutationOptions<UpdateChartResponse, UpdateChartError, Options<UpdateChartData>>;
795
+ export declare const listClustersQueryKey: (options?: Options<ListClustersData>) => [Pick<Options<ListClustersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
796
+ _id: string;
797
+ _infinite?: boolean;
798
+ tags?: ReadonlyArray<string>;
799
+ }];
800
+ /**
801
+ * List clusters.
802
+ *
803
+ * Returns a list of clusters under the current organization.
804
+ *
805
+ * This endpoint is available to all users in the organization.
806
+ *
807
+ */
808
+ export declare const listClustersOptions: (options?: Options<ListClustersData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Cluster[], Error, import("../types.gen").Cluster[], [Pick<Options<ListClustersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
809
+ _id: string;
810
+ _infinite?: boolean;
811
+ tags?: ReadonlyArray<string>;
812
+ }]>, "queryFn"> & {
813
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Cluster[], [Pick<Options<ListClustersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
942
814
  _id: string;
943
815
  _infinite?: boolean;
944
816
  tags?: ReadonlyArray<string>;
945
- }] & {
946
- [dataTagSymbol]: import("../types.gen").Token[];
947
- [dataTagErrorSymbol]: Error;
948
- };
949
- };
817
+ }], never> | undefined;
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>;
950
823
  /**
951
- * Create a new access token.
824
+ * Create a new cluster.
952
825
  *
953
- * 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.
826
+ * 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.
954
827
  *
955
828
  * This endpoint is available to administrators of the organization only.
956
829
  *
957
830
  */
958
- export declare const createTokenMutation: (options?: Partial<Options<CreateTokenData>>) => UseMutationOptions<CreateTokenResponse, DefaultError, Options<CreateTokenData>>;
831
+ export declare const createClusterMutation: (options?: Partial<Options<CreateClusterData>>) => UseMutationOptions<CreateClusterResponse, CreateClusterError, Options<CreateClusterData>>;
959
832
  /**
960
- * Permanently delete access token.
833
+ * Permanently delete cluster.
961
834
  *
962
- * 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.
835
+ * This endpoint will permanently delete the cluster. This operation cannot be undone.
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
+ *
839
+ * This endpoint is available to administrators of the organization only.
963
840
  *
964
841
  */
965
- export declare const deleteTokenMutation: (options?: Partial<Options<DeleteTokenData>>) => UseMutationOptions<unknown, DefaultError, Options<DeleteTokenData>>;
966
- export declare const getTokenQueryKey: (options: Options<GetTokenData>) => [Pick<Options<GetTokenData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
842
+ export declare const deleteClusterMutation: (options?: Partial<Options<DeleteClusterData>>) => UseMutationOptions<DeleteClusterResponse, DeleteClusterError, Options<DeleteClusterData>>;
843
+ export declare const getClusterQueryKey: (options: Options<GetClusterData>) => [Pick<Options<GetClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
967
844
  _id: string;
968
845
  _infinite?: boolean;
969
846
  tags?: ReadonlyArray<string>;
970
847
  }];
971
848
  /**
972
- * Get access token information.
849
+ * Get cluster information.
973
850
  *
974
- * 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.
851
+ * Returns cluster details.
852
+ *
853
+ * This endpoint is available to all users in the organization.
975
854
  *
976
855
  */
977
- export declare const getTokenOptions: (options: Options<GetTokenData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Token, Error, import("../types.gen").Token, [Pick<Options<GetTokenData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
856
+ export declare const getClusterOptions: (options: Options<GetClusterData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Cluster, Error, import("../types.gen").Cluster, [Pick<Options<GetClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
978
857
  _id: string;
979
858
  _infinite?: boolean;
980
859
  tags?: ReadonlyArray<string>;
981
860
  }]>, "queryFn"> & {
982
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Token, [Pick<Options<GetTokenData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
861
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Cluster, [Pick<Options<GetClusterData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
983
862
  _id: string;
984
863
  _infinite?: boolean;
985
864
  tags?: ReadonlyArray<string>;
986
865
  }], never> | undefined;
987
- } & {
988
- queryKey: [Pick<Options<GetTokenData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
989
- _id: string;
990
- _infinite?: boolean;
991
- tags?: ReadonlyArray<string>;
992
- }] & {
993
- [dataTagSymbol]: import("../types.gen").Token;
994
- [dataTagErrorSymbol]: Error;
995
- };
996
- };
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>;
997
871
  /**
998
- * Update access token information.
872
+ * Update cluster information.
999
873
  *
1000
- * 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.
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.
1001
877
  *
1002
878
  * This endpoint is available to administrators of the organization only.
1003
879
  *
1004
880
  */
1005
- export declare const updateTokenMutation: (options?: Partial<Options<UpdateTokenData>>) => UseMutationOptions<UpdateTokenResponse, DefaultError, Options<UpdateTokenData>>;
881
+ export declare const updateClusterMutation: (options?: Partial<Options<UpdateClusterData>>) => UseMutationOptions<UpdateClusterResponse, UpdateClusterError, Options<UpdateClusterData>>;
1006
882
  /**
1007
- * Regenerate access token secret key.
883
+ * Node join information for the cluster
884
+ *
885
+ * 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.
1008
886
  *
1009
- * Generates a new access token secret. Old secret will not be valid anymore.
1010
887
  */
1011
- export declare const regenerateTokenMutation: (options?: Partial<Options<RegenerateTokenData>>) => UseMutationOptions<RegenerateTokenResponse, DefaultError, Options<RegenerateTokenData>>;
1012
- export declare const listUserOrganizationsQueryKey: (options: Options<ListUserOrganizationsData>) => [Pick<Options<ListUserOrganizationsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
888
+ export declare const getJoinInformationMutation: (options?: Partial<Options<GetJoinInformationData>>) => UseMutationOptions<GetJoinInformationResponse, GetJoinInformationError, Options<GetJoinInformationData>>;
889
+ export declare const getUsageQueryKey: (options?: Options<GetUsageData>) => [Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1013
890
  _id: string;
1014
891
  _infinite?: boolean;
1015
892
  tags?: ReadonlyArray<string>;
1016
893
  }];
1017
894
  /**
1018
- * Get a list of organizations the user belongs to. Used during authentication process.
895
+ * Get billing usage information.
896
+ *
897
+ * 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.
898
+ *
1019
899
  */
1020
- export declare const listUserOrganizationsOptions: (options: Options<ListUserOrganizationsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1021
- realm?: string;
1022
- displayName?: string;
1023
- }[], Error, {
1024
- realm?: string;
1025
- displayName?: string;
1026
- }[], [Pick<Options<ListUserOrganizationsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
900
+ export declare const getUsageOptions: (options?: Options<GetUsageData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").UsageResponse, Error, import("../types.gen").UsageResponse, [Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1027
901
  _id: string;
1028
902
  _infinite?: boolean;
1029
903
  tags?: ReadonlyArray<string>;
1030
904
  }]>, "queryFn"> & {
1031
- queryFn?: import("@tanstack/react-query").QueryFunction<{
1032
- realm?: string;
1033
- displayName?: string;
1034
- }[], [Pick<Options<ListUserOrganizationsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
905
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").UsageResponse, [Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1035
906
  _id: string;
1036
907
  _infinite?: boolean;
1037
908
  tags?: ReadonlyArray<string>;
1038
909
  }], never> | undefined;
1039
- } & {
1040
- queryKey: [Pick<Options<ListUserOrganizationsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1041
- _id: string;
1042
- _infinite?: boolean;
1043
- tags?: ReadonlyArray<string>;
1044
- }] & {
1045
- [dataTagSymbol]: {
1046
- realm?: string;
1047
- displayName?: string;
1048
- }[];
1049
- [dataTagErrorSymbol]: Error;
1050
- };
1051
- };
1052
- export declare const listUsersQueryKey: (options?: Options<ListUsersData>) => [Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
910
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetUsageData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1053
911
  _id: string;
1054
912
  _infinite?: boolean;
1055
913
  tags?: ReadonlyArray<string>;
1056
- }];
914
+ }], import("../types.gen").UsageResponse, Error>;
1057
915
  /**
1058
- * List users in organization.
916
+ * Get Stripe client secret.
1059
917
  *
1060
- * 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.
918
+ * 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.
1061
919
  *
1062
- * This endpoint is available to all users in the organization.
920
+ */
921
+ export declare const getPaymentMethodSecretMutation: (options?: Partial<Options<GetPaymentMethodSecretData>>) => UseMutationOptions<GetPaymentMethodSecretResponse, DefaultError, Options<GetPaymentMethodSecretData>>;
922
+ export declare const listPaymentMethodsQueryKey: (options?: Options<ListPaymentMethodsData>) => [Pick<Options<ListPaymentMethodsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
923
+ _id: string;
924
+ _infinite?: boolean;
925
+ tags?: ReadonlyArray<string>;
926
+ }];
927
+ /**
928
+ * List organization payment methods.
929
+ *
930
+ * Returns all payment methods (cards and SEPA Direct Debit) attached to the organization, most recently added first, with the default flagged. This endpoint is available to all users in the organization.
1063
931
  *
1064
932
  */
1065
- export declare const listUsersOptions: (options?: Options<ListUsersData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").User[], Error, import("../types.gen").User[], [Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
933
+ export declare const listPaymentMethodsOptions: (options?: Options<ListPaymentMethodsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").PaymentMethod[], Error, import("../types.gen").PaymentMethod[], [Pick<Options<ListPaymentMethodsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1066
934
  _id: string;
1067
935
  _infinite?: boolean;
1068
936
  tags?: ReadonlyArray<string>;
1069
937
  }]>, "queryFn"> & {
1070
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").User[], [Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
938
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").PaymentMethod[], [Pick<Options<ListPaymentMethodsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1071
939
  _id: string;
1072
940
  _infinite?: boolean;
1073
941
  tags?: ReadonlyArray<string>;
1074
942
  }], never> | undefined;
1075
- } & {
1076
- queryKey: [Pick<Options<ListUsersData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1077
- _id: string;
1078
- _infinite?: boolean;
1079
- tags?: ReadonlyArray<string>;
1080
- }] & {
1081
- [dataTagSymbol]: import("../types.gen").User[];
1082
- [dataTagErrorSymbol]: Error;
1083
- };
1084
- };
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>;
1085
948
  /**
1086
- * Create a new user.
949
+ * Set the default payment method.
1087
950
  *
1088
- * 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.
951
+ * Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
1089
952
  *
1090
953
  */
1091
- export declare const createUserMutation: (options?: Partial<Options<CreateUserData>>) => UseMutationOptions<CreateUserResponse, DefaultError, Options<CreateUserData>>;
954
+ export declare const setDefaultPaymentMethodMutation: (options?: Partial<Options<SetDefaultPaymentMethodData>>) => UseMutationOptions<SetDefaultPaymentMethodResponse, DefaultError, Options<SetDefaultPaymentMethodData>>;
1092
955
  /**
1093
- * Delete user by id.
956
+ * Delete a payment method.
1094
957
  *
1095
- * Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
958
+ * Detaches the given payment method from the organization. Requires the Administrator role. An organization must keep at least one payment method, so deleting the only remaining method is rejected.
1096
959
  *
1097
960
  */
1098
- export declare const deleteUserMutation: (options?: Partial<Options<DeleteUserData>>) => UseMutationOptions<DeleteUserResponse, DefaultError, Options<DeleteUserData>>;
1099
- export declare const getUserQueryKey: (options: Options<GetUserData>) => [Pick<Options<GetUserData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
961
+ export declare const deletePaymentMethodMutation: (options?: Partial<Options<DeletePaymentMethodData>>) => UseMutationOptions<DeletePaymentMethodResponse, DefaultError, Options<DeletePaymentMethodData>>;
962
+ export declare const listInvoicesQueryKey: (options?: Options<ListInvoicesData>) => [Pick<Options<ListInvoicesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1100
963
  _id: string;
1101
964
  _infinite?: boolean;
1102
965
  tags?: ReadonlyArray<string>;
1103
966
  }];
1104
967
  /**
1105
- * Get user profile information by id.
968
+ * List issued invoices.
1106
969
  *
1107
- * Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
970
+ * 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.
1108
971
  *
1109
- * This endpoint is available to all users in the organization.
972
+ */
973
+ export declare const listInvoicesOptions: (options?: Options<ListInvoicesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").Invoice[], Error, import("../types.gen").Invoice[], [Pick<Options<ListInvoicesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
974
+ _id: string;
975
+ _infinite?: boolean;
976
+ tags?: ReadonlyArray<string>;
977
+ }]>, "queryFn"> & {
978
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").Invoice[], [Pick<Options<ListInvoicesData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
979
+ _id: string;
980
+ _infinite?: boolean;
981
+ tags?: ReadonlyArray<string>;
982
+ }], never> | undefined;
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>;
988
+ /**
989
+ * Pay the organization's open invoices.
990
+ *
991
+ * Charges all open invoices of the organization against its default payment method. This endpoint is available to administrators of the organization only.
1110
992
  *
1111
993
  */
1112
- export declare const getUserOptions: (options: Options<GetUserData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").User, Error, import("../types.gen").User, [Pick<Options<GetUserData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
994
+ export declare const payOpenInvoicesMutation: (options?: Partial<Options<PayOpenInvoicesData>>) => UseMutationOptions<PayOpenInvoicesResponse, DefaultError, Options<PayOpenInvoicesData>>;
995
+ export declare const getContactQueryKey: (options?: Options<GetContactData>) => [Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
996
+ _id: string;
997
+ _infinite?: boolean;
998
+ tags?: ReadonlyArray<string>;
999
+ }];
1000
+ /**
1001
+ * Get organization contact and billing address information.
1002
+ *
1003
+ * Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
1004
+ *
1005
+ */
1006
+ export declare const getContactOptions: (options?: Options<GetContactData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").BillingContact, Error, import("../types.gen").BillingContact, [Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1113
1007
  _id: string;
1114
1008
  _infinite?: boolean;
1115
1009
  tags?: ReadonlyArray<string>;
1116
1010
  }]>, "queryFn"> & {
1117
- queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").User, [Pick<Options<GetUserData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1011
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").BillingContact, [Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1118
1012
  _id: string;
1119
1013
  _infinite?: boolean;
1120
1014
  tags?: ReadonlyArray<string>;
1121
1015
  }], never> | undefined;
1122
- } & {
1123
- queryKey: [Pick<Options<GetUserData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1016
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetContactData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1017
+ _id: string;
1018
+ _infinite?: boolean;
1019
+ tags?: ReadonlyArray<string>;
1020
+ }], import("../types.gen").BillingContact, Error>;
1021
+ /**
1022
+ * Update organization contact information and billing address.
1023
+ *
1024
+ * This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
1025
+ *
1026
+ */
1027
+ export declare const updateContactMutation: (options?: Partial<Options<UpdateContactData>>) => UseMutationOptions<UpdateContactResponse, DefaultError, Options<UpdateContactData>>;
1028
+ export declare const getCreditsQueryKey: (options?: Options<GetCreditsData>) => [Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1029
+ _id: string;
1030
+ _infinite?: boolean;
1031
+ tags?: ReadonlyArray<string>;
1032
+ }];
1033
+ /**
1034
+ * Get applied promotional credits
1035
+ *
1036
+ * 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.
1037
+ *
1038
+ */
1039
+ export declare const getCreditsOptions: (options?: Options<GetCreditsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").BillingCredits[], Error, import("../types.gen").BillingCredits[], [Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1040
+ _id: string;
1041
+ _infinite?: boolean;
1042
+ tags?: ReadonlyArray<string>;
1043
+ }]>, "queryFn"> & {
1044
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").BillingCredits[], [Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1124
1045
  _id: string;
1125
1046
  _infinite?: boolean;
1126
1047
  tags?: ReadonlyArray<string>;
1127
- }] & {
1128
- [dataTagSymbol]: import("../types.gen").User;
1129
- [dataTagErrorSymbol]: Error;
1130
- };
1131
- };
1048
+ }], never> | undefined;
1049
+ } & import("@tanstack/react-query").QueryKeyWithDataTag<[Pick<Options<GetCreditsData>, "body" | "path" | "query" | "headers" | "baseUrl"> & {
1050
+ _id: string;
1051
+ _infinite?: boolean;
1052
+ tags?: ReadonlyArray<string>;
1053
+ }], import("../types.gen").BillingCredits[], Error>;
1132
1054
  /**
1133
- * Update user profile information.
1055
+ * Redeem promotional credits code.
1134
1056
  *
1135
- * 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.
1057
+ * 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.
1136
1058
  *
1137
1059
  */
1138
- export declare const updateUserMutation: (options?: Partial<Options<UpdateUserData>>) => UseMutationOptions<UpdateUserResponse, DefaultError, Options<UpdateUserData>>;
1060
+ export declare const redeemCreditsMutation: (options?: Partial<Options<RedeemCreditsData>>) => UseMutationOptions<unknown, DefaultError, Options<RedeemCreditsData>>;
1139
1061
  //# sourceMappingURL=react-query.gen.d.ts.map