Skip to content

Commit 115962d

Browse files
committed
Update generated files
1 parent 7de4055 commit 115962d

33 files changed

Lines changed: 2060 additions & 819 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ repos:
469469
^clients/gen/go\.sh$|
470470
^\.gitmodules$|
471471
^airflow-core/src/airflow/ui/openapi-gen/|
472+
^airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/openapi-gen/|
472473
^providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/|
473474
.*/dist/.*|
474475
\.go$|

airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/openapi-gen/queries/common.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
// generated with @7nohe/openapi-react-query-codegen@2.0.0
2-
import { type Options } from "@hey-api/client-axios";
1+
// generated with @7nohe/openapi-react-query-codegen@2.1.0
32
import { UseQueryResult } from "@tanstack/react-query";
43

5-
import { createToken, createTokenAllAdmins, createTokenCli, loginAllAdmins } from "../requests/services.gen";
4+
import type { Options } from "../requests/sdk.gen";
5+
import { createToken, createTokenAllAdmins, createTokenCli, loginAllAdmins } from "../requests/sdk.gen";
6+
import { CreateTokenAllAdminsData, LoginAllAdminsData } from "../requests/types.gen";
67

78
export type CreateTokenAllAdminsDefaultResponse = Awaited<ReturnType<typeof createTokenAllAdmins>>["data"];
89
export type CreateTokenAllAdminsQueryResult<
@@ -11,7 +12,7 @@ export type CreateTokenAllAdminsQueryResult<
1112
> = UseQueryResult<TData, TError>;
1213
export const useCreateTokenAllAdminsKey = "CreateTokenAllAdmins";
1314
export const UseCreateTokenAllAdminsKeyFn = (
14-
clientOptions: Options<unknown, true> = {},
15+
clientOptions: Options<CreateTokenAllAdminsData, true> = {},
1516
queryKey?: Array<unknown>,
1617
) => [useCreateTokenAllAdminsKey, ...(queryKey ?? [clientOptions])];
1718
export type LoginAllAdminsDefaultResponse = Awaited<ReturnType<typeof loginAllAdmins>>["data"];
@@ -21,7 +22,7 @@ export type LoginAllAdminsQueryResult<
2122
> = UseQueryResult<TData, TError>;
2223
export const useLoginAllAdminsKey = "LoginAllAdmins";
2324
export const UseLoginAllAdminsKeyFn = (
24-
clientOptions: Options<unknown, true> = {},
25+
clientOptions: Options<LoginAllAdminsData, true> = {},
2526
queryKey?: Array<unknown>,
2627
) => [useLoginAllAdminsKey, ...(queryKey ?? [clientOptions])];
2728
export type CreateTokenMutationResult = Awaited<ReturnType<typeof createToken>>;

airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/openapi-gen/queries/ensureQueryData.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
1-
// generated with @7nohe/openapi-react-query-codegen@2.0.0
2-
import { type Options } from "@hey-api/client-axios";
1+
// generated with @7nohe/openapi-react-query-codegen@2.1.0
32
import { type QueryClient } from "@tanstack/react-query";
43

5-
import { createTokenAllAdmins, loginAllAdmins } from "../requests/services.gen";
4+
import type { Options } from "../requests/sdk.gen";
5+
import { createTokenAllAdmins, loginAllAdmins } from "../requests/sdk.gen";
6+
import { CreateTokenAllAdminsData, LoginAllAdminsData } from "../requests/types.gen";
67
import * as Common from "./common";
78

9+
/**
10+
* Create Token All Admins
11+
*
12+
* Create a token with no credentials only if ``simple_auth_manager_all_admins`` is True.
13+
*/
814
export const ensureUseCreateTokenAllAdminsData = (
915
queryClient: QueryClient,
10-
clientOptions: Options<unknown, true> = {},
16+
clientOptions: Options<CreateTokenAllAdminsData, true> = {},
1117
) =>
1218
queryClient.ensureQueryData({
1319
queryKey: Common.UseCreateTokenAllAdminsKeyFn(clientOptions),
1420
queryFn: () => createTokenAllAdmins({ ...clientOptions }).then((response) => response.data),
1521
});
22+
/**
23+
* Login All Admins
24+
*
25+
* Login the user with no credentials.
26+
*/
1627
export const ensureUseLoginAllAdminsData = (
1728
queryClient: QueryClient,
18-
clientOptions: Options<unknown, true> = {},
29+
clientOptions: Options<LoginAllAdminsData, true> = {},
1930
) =>
2031
queryClient.ensureQueryData({
2132
queryKey: Common.UseLoginAllAdminsKeyFn(clientOptions),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// generated with @7nohe/openapi-react-query-codegen@2.0.0
1+
// generated with @7nohe/openapi-react-query-codegen@2.1.0
22

33
export * from "./common";
44
export * from "./queries";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
// generated with @7nohe/openapi-react-query-codegen@2.0.0
1+
// generated with @7nohe/openapi-react-query-codegen@2.1.0

airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/openapi-gen/queries/prefetch.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,32 @@
1-
// generated with @7nohe/openapi-react-query-codegen@2.0.0
2-
import { type Options } from "@hey-api/client-axios";
1+
// generated with @7nohe/openapi-react-query-codegen@2.1.0
32
import { type QueryClient } from "@tanstack/react-query";
43

5-
import { createTokenAllAdmins, loginAllAdmins } from "../requests/services.gen";
4+
import type { Options } from "../requests/sdk.gen";
5+
import { createTokenAllAdmins, loginAllAdmins } from "../requests/sdk.gen";
6+
import { CreateTokenAllAdminsData, LoginAllAdminsData } from "../requests/types.gen";
67
import * as Common from "./common";
78

9+
/**
10+
* Create Token All Admins
11+
*
12+
* Create a token with no credentials only if ``simple_auth_manager_all_admins`` is True.
13+
*/
814
export const prefetchUseCreateTokenAllAdmins = (
915
queryClient: QueryClient,
10-
clientOptions: Options<unknown, true> = {},
16+
clientOptions: Options<CreateTokenAllAdminsData, true> = {},
1117
) =>
1218
queryClient.prefetchQuery({
1319
queryKey: Common.UseCreateTokenAllAdminsKeyFn(clientOptions),
1420
queryFn: () => createTokenAllAdmins({ ...clientOptions }).then((response) => response.data),
1521
});
22+
/**
23+
* Login All Admins
24+
*
25+
* Login the user with no credentials.
26+
*/
1627
export const prefetchUseLoginAllAdmins = (
1728
queryClient: QueryClient,
18-
clientOptions: Options<unknown, true> = {},
29+
clientOptions: Options<LoginAllAdminsData, true> = {},
1930
) =>
2031
queryClient.prefetchQuery({
2132
queryKey: Common.UseLoginAllAdminsKeyFn(clientOptions),

airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/openapi-gen/queries/queries.ts

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
1-
// generated with @7nohe/openapi-react-query-codegen@2.0.0
2-
import { type Options } from "@hey-api/client-axios";
1+
// generated with @7nohe/openapi-react-query-codegen@2.1.0
32
import { useMutation, UseMutationOptions, useQuery, UseQueryOptions } from "@tanstack/react-query";
43
import { AxiosError } from "axios";
54

6-
import { createToken, createTokenAllAdmins, createTokenCli, loginAllAdmins } from "../requests/services.gen";
5+
import type { Options } from "../requests/sdk.gen";
6+
import { createToken, createTokenAllAdmins, createTokenCli, loginAllAdmins } from "../requests/sdk.gen";
77
import {
8+
CreateTokenAllAdminsData,
89
CreateTokenAllAdminsError,
910
CreateTokenCliData,
1011
CreateTokenCliError,
1112
CreateTokenData,
1213
CreateTokenError,
14+
LoginAllAdminsData,
15+
LoginAllAdminsError,
1316
} from "../requests/types.gen";
1417
import * as Common from "./common";
1518

19+
/**
20+
* Create Token All Admins
21+
*
22+
* Create a token with no credentials only if ``simple_auth_manager_all_admins`` is True.
23+
*/
1624
export const useCreateTokenAllAdmins = <
1725
TData = Common.CreateTokenAllAdminsDefaultResponse,
1826
TError = AxiosError<CreateTokenAllAdminsError>,
1927
TQueryKey extends Array<unknown> = unknown[],
2028
>(
21-
clientOptions: Options<unknown, true> = {},
29+
clientOptions: Options<CreateTokenAllAdminsData, true> = {},
2230
queryKey?: TQueryKey,
2331
options?: Omit<UseQueryOptions<TData, TError>, "queryKey" | "queryFn">,
2432
) =>
@@ -28,12 +36,17 @@ export const useCreateTokenAllAdmins = <
2836
createTokenAllAdmins({ ...clientOptions }).then((response) => response.data as TData) as TData,
2937
...options,
3038
});
39+
/**
40+
* Login All Admins
41+
*
42+
* Login the user with no credentials.
43+
*/
3144
export const useLoginAllAdmins = <
3245
TData = Common.LoginAllAdminsDefaultResponse,
3346
TError = AxiosError<LoginAllAdminsError>,
3447
TQueryKey extends Array<unknown> = unknown[],
3548
>(
36-
clientOptions: Options<unknown, true> = {},
49+
clientOptions: Options<LoginAllAdminsData, true> = {},
3750
queryKey?: TQueryKey,
3851
options?: Omit<UseQueryOptions<TData, TError>, "queryKey" | "queryFn">,
3952
) =>
@@ -42,6 +55,11 @@ export const useLoginAllAdmins = <
4255
queryFn: () => loginAllAdmins({ ...clientOptions }).then((response) => response.data as TData) as TData,
4356
...options,
4457
});
58+
/**
59+
* Create Token
60+
*
61+
* Authenticate the user.
62+
*/
4563
export const useCreateToken = <
4664
TData = Common.CreateTokenMutationResult,
4765
TError = AxiosError<CreateTokenError>,
@@ -59,6 +77,11 @@ export const useCreateToken = <
5977
mutationFn: (clientOptions) => createToken(clientOptions) as unknown as Promise<TData>,
6078
...options,
6179
});
80+
/**
81+
* Create Token Cli
82+
*
83+
* Authenticate the user for the CLI.
84+
*/
6285
export const useCreateTokenCli = <
6386
TData = Common.CreateTokenCliMutationResult,
6487
TError = AxiosError<CreateTokenCliError>,

airflow-core/src/airflow/api_fastapi/auth/managers/simple/ui/openapi-gen/queries/suspense.ts

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
1-
// generated with @7nohe/openapi-react-query-codegen@2.0.0
2-
import { type Options } from "@hey-api/client-axios";
1+
// generated with @7nohe/openapi-react-query-codegen@2.1.0
32
import { useSuspenseQuery, UseSuspenseQueryOptions } from "@tanstack/react-query";
43
import { AxiosError } from "axios";
54

6-
import { createTokenAllAdmins, loginAllAdmins } from "../requests/services.gen";
7-
import { CreateTokenAllAdminsError } from "../requests/types.gen";
5+
import type { Options } from "../requests/sdk.gen";
6+
import { createTokenAllAdmins, loginAllAdmins } from "../requests/sdk.gen";
7+
import {
8+
CreateTokenAllAdminsData,
9+
CreateTokenAllAdminsError,
10+
LoginAllAdminsData,
11+
LoginAllAdminsError,
12+
} from "../requests/types.gen";
813
import * as Common from "./common";
914

15+
/**
16+
* Create Token All Admins
17+
*
18+
* Create a token with no credentials only if ``simple_auth_manager_all_admins`` is True.
19+
*/
1020
export const useCreateTokenAllAdminsSuspense = <
1121
TData = NonNullable<Common.CreateTokenAllAdminsDefaultResponse>,
1222
TError = AxiosError<CreateTokenAllAdminsError>,
1323
TQueryKey extends Array<unknown> = unknown[],
1424
>(
15-
clientOptions: Options<unknown, true> = {},
25+
clientOptions: Options<CreateTokenAllAdminsData, true> = {},
1626
queryKey?: TQueryKey,
1727
options?: Omit<UseSuspenseQueryOptions<TData, TError>, "queryKey" | "queryFn">,
1828
) =>
@@ -22,12 +32,17 @@ export const useCreateTokenAllAdminsSuspense = <
2232
createTokenAllAdmins({ ...clientOptions }).then((response) => response.data as TData) as TData,
2333
...options,
2434
});
35+
/**
36+
* Login All Admins
37+
*
38+
* Login the user with no credentials.
39+
*/
2540
export const useLoginAllAdminsSuspense = <
2641
TData = NonNullable<Common.LoginAllAdminsDefaultResponse>,
2742
TError = AxiosError<LoginAllAdminsError>,
2843
TQueryKey extends Array<unknown> = unknown[],
2944
>(
30-
clientOptions: Options<unknown, true> = {},
45+
clientOptions: Options<LoginAllAdminsData, true> = {},
3146
queryKey?: TQueryKey,
3247
options?: Omit<UseSuspenseQueryOptions<TData, TError>, "queryKey" | "queryFn">,
3348
) =>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// This file is auto-generated by @hey-api/openapi-ts
2+
3+
import { type ClientOptions, type Config, createClient, createConfig } from './client';
4+
import type { ClientOptions as ClientOptions2 } from './types.gen';
5+
6+
/**
7+
* The `createClientConfig()` function will be called on client initialization
8+
* and the returned object will become the client's initial configuration.
9+
*
10+
* You may want to initialize your client this way instead of calling
11+
* `setConfig()`. This is useful for example if you're using Next.js
12+
* to ensure your client always has the correct values.
13+
*/
14+
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
15+
16+
export const client = createClient(createConfig<ClientOptions2>());

0 commit comments

Comments
 (0)