import { z } from 'zod'; /** * RFC 7591 Client Metadata Schema * https://datatracker.ietf.org/doc/html/rfc7591#section-2 */ export declare const ClientMetadataSchema: z.ZodObject<{ redirect_uris: z.ZodOptional>; token_endpoint_auth_method: z.ZodOptional>; grant_types: z.ZodOptional, "many">>; response_types: z.ZodOptional>; client_name: z.ZodOptional; client_uri: z.ZodOptional; logo_uri: z.ZodOptional; contacts: z.ZodOptional>; tos_uri: z.ZodOptional; policy_uri: z.ZodOptional; jwks_uri: z.ZodOptional; jwks: z.ZodOptional>; software_id: z.ZodOptional; software_version: z.ZodOptional; software_statement: z.ZodOptional; scope: z.ZodOptional; }, "strip", z.ZodTypeAny, { jwks_uri?: string | undefined; redirect_uris?: string[] | undefined; token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined; grant_types?: ("authorization_code" | "implicit" | "password" | "client_credentials" | "refresh_token" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer")[] | undefined; response_types?: string[] | undefined; client_name?: string | undefined; client_uri?: string | undefined; logo_uri?: string | undefined; contacts?: string[] | undefined; tos_uri?: string | undefined; policy_uri?: string | undefined; jwks?: {} | undefined; software_id?: string | undefined; software_version?: string | undefined; software_statement?: string | undefined; scope?: string | undefined; }, { jwks_uri?: string | undefined; redirect_uris?: string[] | undefined; token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined; grant_types?: ("authorization_code" | "implicit" | "password" | "client_credentials" | "refresh_token" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer")[] | undefined; response_types?: string[] | undefined; client_name?: string | undefined; client_uri?: string | undefined; logo_uri?: string | undefined; contacts?: string[] | undefined; tos_uri?: string | undefined; policy_uri?: string | undefined; jwks?: {} | undefined; software_id?: string | undefined; software_version?: string | undefined; software_statement?: string | undefined; scope?: string | undefined; }>; export type ClientMetadata = z.infer; /** * RFC 7591 Client Registration Request */ export declare const RegistrationRequestSchema: z.ZodObject<{ redirect_uris: z.ZodOptional>; token_endpoint_auth_method: z.ZodOptional>; grant_types: z.ZodOptional, "many">>; response_types: z.ZodOptional>; client_name: z.ZodOptional; client_uri: z.ZodOptional; logo_uri: z.ZodOptional; contacts: z.ZodOptional>; tos_uri: z.ZodOptional; policy_uri: z.ZodOptional; jwks_uri: z.ZodOptional; jwks: z.ZodOptional>; software_id: z.ZodOptional; software_version: z.ZodOptional; software_statement: z.ZodOptional; scope: z.ZodOptional; } & { token: z.ZodOptional; }, "strip", z.ZodTypeAny, { jwks_uri?: string | undefined; redirect_uris?: string[] | undefined; token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined; grant_types?: ("authorization_code" | "implicit" | "password" | "client_credentials" | "refresh_token" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer")[] | undefined; response_types?: string[] | undefined; client_name?: string | undefined; client_uri?: string | undefined; logo_uri?: string | undefined; contacts?: string[] | undefined; tos_uri?: string | undefined; policy_uri?: string | undefined; jwks?: {} | undefined; software_id?: string | undefined; software_version?: string | undefined; software_statement?: string | undefined; scope?: string | undefined; token?: string | undefined; }, { jwks_uri?: string | undefined; redirect_uris?: string[] | undefined; token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined; grant_types?: ("authorization_code" | "implicit" | "password" | "client_credentials" | "refresh_token" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer")[] | undefined; response_types?: string[] | undefined; client_name?: string | undefined; client_uri?: string | undefined; logo_uri?: string | undefined; contacts?: string[] | undefined; tos_uri?: string | undefined; policy_uri?: string | undefined; jwks?: {} | undefined; software_id?: string | undefined; software_version?: string | undefined; software_statement?: string | undefined; scope?: string | undefined; token?: string | undefined; }>; export type RegistrationRequest = z.infer; /** * RFC 7591 Client Registration Response * https://datatracker.ietf.org/doc/html/rfc7591#section-3.2.1 */ export declare const RegistrationResponseSchema: z.ZodObject<{ redirect_uris: z.ZodOptional>; token_endpoint_auth_method: z.ZodOptional>; grant_types: z.ZodOptional, "many">>; response_types: z.ZodOptional>; client_name: z.ZodOptional; client_uri: z.ZodOptional; logo_uri: z.ZodOptional; contacts: z.ZodOptional>; tos_uri: z.ZodOptional; policy_uri: z.ZodOptional; jwks_uri: z.ZodOptional; jwks: z.ZodOptional>; software_id: z.ZodOptional; software_version: z.ZodOptional; software_statement: z.ZodOptional; scope: z.ZodOptional; } & { client_id: z.ZodString; client_secret: z.ZodOptional; client_id_issued_at: z.ZodOptional; client_secret_expires_at: z.ZodOptional; registration_client_uri: z.ZodOptional; registration_access_token: z.ZodOptional; }, "strip", z.ZodTypeAny, { client_id: string; jwks_uri?: string | undefined; redirect_uris?: string[] | undefined; token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined; grant_types?: ("authorization_code" | "implicit" | "password" | "client_credentials" | "refresh_token" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer")[] | undefined; response_types?: string[] | undefined; client_name?: string | undefined; client_uri?: string | undefined; logo_uri?: string | undefined; contacts?: string[] | undefined; tos_uri?: string | undefined; policy_uri?: string | undefined; jwks?: {} | undefined; software_id?: string | undefined; software_version?: string | undefined; software_statement?: string | undefined; scope?: string | undefined; client_secret?: string | undefined; client_id_issued_at?: number | undefined; client_secret_expires_at?: number | undefined; registration_client_uri?: string | undefined; registration_access_token?: string | undefined; }, { client_id: string; jwks_uri?: string | undefined; redirect_uris?: string[] | undefined; token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined; grant_types?: ("authorization_code" | "implicit" | "password" | "client_credentials" | "refresh_token" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer")[] | undefined; response_types?: string[] | undefined; client_name?: string | undefined; client_uri?: string | undefined; logo_uri?: string | undefined; contacts?: string[] | undefined; tos_uri?: string | undefined; policy_uri?: string | undefined; jwks?: {} | undefined; software_id?: string | undefined; software_version?: string | undefined; software_statement?: string | undefined; scope?: string | undefined; client_secret?: string | undefined; client_id_issued_at?: number | undefined; client_secret_expires_at?: number | undefined; registration_client_uri?: string | undefined; registration_access_token?: string | undefined; }>; export type RegistrationResponse = z.infer; /** * RFC 7591 Error Response * https://datatracker.ietf.org/doc/html/rfc7591#section-3.2.2 */ export declare const ErrorResponseSchema: z.ZodObject<{ error: z.ZodEnum<["invalid_redirect_uri", "invalid_client_metadata", "invalid_software_statement", "unapproved_software_statement"]>; error_description: z.ZodOptional; }, "strip", z.ZodTypeAny, { error: "invalid_redirect_uri" | "invalid_client_metadata" | "invalid_software_statement" | "unapproved_software_statement"; error_description?: string | undefined; }, { error: "invalid_redirect_uri" | "invalid_client_metadata" | "invalid_software_statement" | "unapproved_software_statement"; error_description?: string | undefined; }>; export type ErrorResponse = z.infer; /** * Validation result for RFC 7591 compliance */ export interface ValidationResult { compliant: boolean; errors: string[]; warnings: string[]; } //# sourceMappingURL=dcr.d.ts.map