/** * Copyright 2025 The Artinet Project * SPDX-License-Identifier: Apache-2.0 */ import { z } from 'zod/v4'; /** * @description Type of a security scheme. */ export declare const SecuritySchemeTypeSchema: z.ZodEnum<{ apiKey: "apiKey"; http: "http"; mutualTLS: "mutualTLS"; oauth2: "oauth2"; openIdConnect: "openIdConnect"; }>; export declare const SecuritySchemeType: { apiKey: "apiKey"; http: "http"; mutualTLS: "mutualTLS"; oauth2: "oauth2"; openIdConnect: "openIdConnect"; }; export type SecuritySchemeType = z.output; /** * @description Base properties shared by all security schemes. */ export declare const SecuritySchemeBaseSchema: z.ZodObject<{ type: z.ZodEnum<{ apiKey: "apiKey"; http: "http"; mutualTLS: "mutualTLS"; oauth2: "oauth2"; openIdConnect: "openIdConnect"; }>; description: z.ZodOptional; }, z.core.$strip>; export type SecuritySchemeBase = z.output; /** * @description Defines a security scheme using an API key. */ export declare const APIKeySecuritySchemeSchema: z.ZodObject<{ description: z.ZodOptional; type: z.ZodLiteral<"apiKey">; in: z.ZodEnum<{ query: "query"; header: "header"; cookie: "cookie"; }>; name: z.ZodString; }, z.core.$strip>; export type APIKeySecurityScheme = z.output; /** * @description HTTP Authentication security scheme. */ export declare const HTTPAuthSecuritySchemeSchema: z.ZodObject<{ description: z.ZodOptional; type: z.ZodLiteral<"http">; scheme: z.ZodString; bearerFormat: z.ZodOptional; }, z.core.$strip>; export type HTTPAuthSecurityScheme = z.output; /** * @description Configuration details for a supported Authorization Code OAuth Flow */ export declare const AuthorizationCodeOAuthFlowSchema: z.ZodObject<{ authorizationUrl: z.ZodString; tokenUrl: z.ZodURL; refreshUrl: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>; export type AuthorizationCodeOAuthFlow = z.output; /** * @description Configuration details for a supported Client Credentials OAuth Flow */ export declare const ClientCredentialsOAuthFlowSchema: z.ZodObject<{ tokenUrl: z.ZodURL; refreshUrl: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>; export type ClientCredentialsOAuthFlow = z.output; /** * @description Configuration details for a supported Implicit OAuth Flow */ export declare const ImplicitOAuthFlowSchema: z.ZodObject<{ authorizationUrl: z.ZodURL; refreshUrl: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>; export type ImplicitOAuthFlow = z.output; /** * @description Configuration details for a supported Password OAuth Flow */ export declare const PasswordOAuthFlowSchema: z.ZodObject<{ tokenUrl: z.ZodURL; refreshUrl: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>; export type PasswordOAuthFlow = z.output; /** * @description The configuration of supported OAuth Flows */ export declare const OAuthFlowsSchema: z.ZodObject<{ authorizationCode: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; clientCredentials: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; implicit: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; password: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; }, z.core.$strip>; export type OAuthFlows = z.output; /** * @description OAuth2 security scheme configuration. */ export declare const OAuth2SecuritySchemeSchema: z.ZodObject<{ description: z.ZodOptional; type: z.ZodLiteral<"oauth2">; flows: z.ZodObject<{ authorizationCode: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; clientCredentials: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; implicit: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; password: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; }, z.core.$strip>; oauth2MetadataUrl: z.ZodOptional; }, z.core.$strip>; export type OAuth2SecurityScheme = z.output; /** * @description OpenID Connect security scheme. */ export declare const OpenIdConnectSecuritySchemeSchema: z.ZodObject<{ description: z.ZodOptional; type: z.ZodLiteral<"openIdConnect">; openIdConnectUrl: z.ZodURL; }, z.core.$strip>; export type OpenIdConnectSecurityScheme = z.output; /** * @description Mutual TLS (mTLS) security scheme. */ export declare const MutualTLSSecuritySchemeSchema: z.ZodObject<{ description: z.ZodOptional; type: z.ZodLiteral<"mutualTLS">; }, z.core.$strip>; export type MutualTLSSecurityScheme = z.output; export declare const SecuritySchemeSchema: z.ZodUnion; type: z.ZodLiteral<"apiKey">; in: z.ZodEnum<{ query: "query"; header: "header"; cookie: "cookie"; }>; name: z.ZodString; }, z.core.$strip>, z.ZodObject<{ description: z.ZodOptional; type: z.ZodLiteral<"http">; scheme: z.ZodString; bearerFormat: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ description: z.ZodOptional; type: z.ZodLiteral<"oauth2">; flows: z.ZodObject<{ authorizationCode: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; clientCredentials: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; implicit: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; password: z.ZodOptional; scopes: z.ZodRecord; }, z.core.$strip>>; }, z.core.$strip>; oauth2MetadataUrl: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ description: z.ZodOptional; type: z.ZodLiteral<"openIdConnect">; openIdConnectUrl: z.ZodURL; }, z.core.$strip>, z.ZodObject<{ description: z.ZodOptional; type: z.ZodLiteral<"mutualTLS">; }, z.core.$strip>]>; export type SecurityScheme = z.output; //# sourceMappingURL=auth.d.ts.map