jira.js
    Preparing search index...

    Variable clientConfigSchemaConst

    clientConfigSchema: ZodObject<
        {
            auth: ZodOptional<
                ZodUnion<
                    readonly [
                        ZodUnion<
                            readonly [
                                ZodObject<
                                    {
                                        apiToken: ZodString;
                                        email: ZodString;
                                        type: ZodLiteral<"basic">;
                                    },
                                    $strip,
                                >,
                                ZodObject<
                                    {
                                        password: ZodString;
                                        type: ZodLiteral<"basic">;
                                        username: ZodString;
                                    },
                                    $strip,
                                >,
                            ],
                        >,
                        ZodUnion<
                            readonly [
                                ZodObject<
                                    { token: ZodString; type: ZodLiteral<"bearer"> },
                                    $strip,
                                >,
                                ZodObject<
                                    {
                                        getToken: ZodCustom<() => ..., () => ...>;
                                        type: ZodLiteral<"bearer">;
                                    },
                                    $strip,
                                >,
                            ],
                        >,
                        ZodObject<
                            {
                                accessToken: ZodOptional<ZodString>;
                                clientId: ZodOptional<ZodString>;
                                clientSecret: ZodOptional<ZodString>;
                                cloudId: ZodOptional<ZodString>;
                                expiresAt: ZodOptional<ZodNumber>;
                                onTokenRefresh: ZodOptional<
                                    ZodCustom<OnTokenRefresh, OnTokenRefresh>,
                                >;
                                refreshToken: ZodOptional<ZodString>;
                                siteUrl: ZodOptional<ZodString>;
                                type: ZodLiteral<"oauth2">;
                            },
                            $strip,
                        >,
                        ZodObject<
                            {
                                accessToken: ZodOptional<ZodString>;
                                clientId: ZodOptional<ZodString>;
                                clientSecret: ZodOptional<ZodString>;
                                expiresAt: ZodOptional<ZodNumber>;
                                onTokenRefresh: ZodOptional<
                                    ZodCustom<OnTokenRefresh, OnTokenRefresh>,
                                >;
                                redirectUri: ZodOptional<ZodString>;
                                refreshToken: ZodOptional<ZodString>;
                                type: ZodLiteral<"oauth2Server">;
                            },
                            $strip,
                        >,
                    ],
                >,
            >;
            fetch: ZodOptional<ZodCustom<FetchLike, FetchLike>>;
            getAuthOn401: ZodOptional<
                ZodCustom<
                    () => Promise<
                        | {
                            accessToken?: string;
                            clientId?: string;
                            clientSecret?: string;
                            cloudId?: string;
                            expiresAt?: number;
                            onTokenRefresh?: OnTokenRefresh;
                            refreshToken?: string;
                            siteUrl?: string;
                            type: "oauth2";
                        }
                        | {
                            accessToken?: string;
                            clientId?: string;
                            clientSecret?: string;
                            expiresAt?: number;
                            onTokenRefresh?: OnTokenRefresh;
                            redirectUri?: string;
                            refreshToken?: string;
                            type: "oauth2Server";
                        }
                        | { apiToken: string; email: string; type: "basic" }
                        | { password: string; type: "basic"; username: string }
                        | { token: string; type: "bearer" }
                        | { getToken: () => Promise<string>; type: "bearer" },
                    >,
                    () => Promise<
                        | {
                            accessToken?: string;
                            clientId?: string;
                            clientSecret?: string;
                            cloudId?: string;
                            expiresAt?: number;
                            onTokenRefresh?: OnTokenRefresh;
                            refreshToken?: string;
                            siteUrl?: string;
                            type: "oauth2";
                        }
                        | {
                            accessToken?: string;
                            clientId?: string;
                            clientSecret?: string;
                            expiresAt?: number;
                            onTokenRefresh?: OnTokenRefresh;
                            redirectUri?: string;
                            refreshToken?: string;
                            type: "oauth2Server";
                        }
                        | { apiToken: string; email: string; type: "basic" }
                        | { password: string; type: "basic"; username: string }
                        | { token: string; type: "bearer" }
                        | { getToken: () => Promise<string>; type: "bearer" },
                    >,
                >,
            >;
            headers: ZodOptional<ZodRecord<ZodString, ZodString>>;
            host: ZodOptional<ZodURL>;
            onSchemaMismatch: ZodOptional<
                ZodCustom<SchemaMismatchBehavior, SchemaMismatchBehavior>,
            >;
            retry: ZodOptional<
                ZodObject<
                    {
                        backoffFactor: ZodOptional<ZodNumber>;
                        initialDelayMs: ZodOptional<ZodNumber>;
                        maxAttempts: ZodOptional<ZodNumber>;
                    },
                    $strip,
                >,
            >;
        },
        $strip,
    > = ...