import { z } from 'zod'; /** * Define the public user info that can be exposed to the public. e.g. on the user consent page. */ export declare const publicUserInfoGuard: z.ZodObject; id: z.ZodType; username: z.ZodType; primaryEmail: z.ZodType; primaryPhone: z.ZodType; passwordEncrypted: z.ZodType; passwordEncryptionMethod: z.ZodType; name: z.ZodType; avatar: z.ZodType; profile: z.ZodType; }>, z.ZodTypeDef, Partial<{ familyName: string; givenName: string; middleName: string; nickname: string; preferredUsername: string; profile: string; website: string; gender: string; birthdate: string; zoneinfo: string; locale: string; address: Partial<{ formatted: string; streetAddress: string; locality: string; region: string; postalCode: string; country: string; }>; }>>; applicationId: z.ZodType; identities: z.ZodType | undefined; }>, z.ZodTypeDef, Record | undefined; }>>; customData: z.ZodType; logtoConfig: z.ZodType; mfaVerifications: z.ZodType<({ type: import("../index.js").MfaFactor.TOTP; id: string; key: string; createdAt: string; lastUsedAt?: string | undefined; } | { type: import("../index.js").MfaFactor.WebAuthn; id: string; createdAt: string; credentialId: string; publicKey: string; counter: number; agent: string; name?: string | undefined; lastUsedAt?: string | undefined; rpId?: string | undefined; transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined; } | { type: import("../index.js").MfaFactor.BackupCode; id: string; createdAt: string; codes: { code: string; usedAt?: string | undefined; }[]; lastUsedAt?: string | undefined; })[], z.ZodTypeDef, ({ type: import("../index.js").MfaFactor.TOTP; id: string; key: string; createdAt: string; lastUsedAt?: string | undefined; } | { type: import("../index.js").MfaFactor.WebAuthn; id: string; createdAt: string; credentialId: string; publicKey: string; counter: number; agent: string; name?: string | undefined; lastUsedAt?: string | undefined; rpId?: string | undefined; transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined; } | { type: import("../index.js").MfaFactor.BackupCode; id: string; createdAt: string; codes: { code: string; usedAt?: string | undefined; }[]; lastUsedAt?: string | undefined; })[]>; isSuspended: z.ZodType; lastSignInAt: z.ZodType; createdAt: z.ZodType; updatedAt: z.ZodType; }, "name" | "id" | "username" | "avatar" | "primaryEmail" | "primaryPhone">, "strip", z.ZodTypeAny, { name: string | null; id: string; username: string | null; avatar: string | null; primaryEmail: string | null; primaryPhone: string | null; }, { name: string | null; id: string; username: string | null; avatar: string | null; primaryEmail: string | null; primaryPhone: string | null; }>; export type PublicUserInfo = z.infer; /** * Define the public application info that can be exposed to the public. e.g. on the user consent page. */ export declare const publicApplicationGuard: z.ZodObject; id: z.ZodType; name: z.ZodType; secret: z.ZodType; description: z.ZodType; type: z.ZodType; oidcClientMetadata: z.ZodType; customClientMetadata: z.ZodType<{ corsAllowedOrigins?: string[] | undefined; idTokenTtl?: number | undefined; refreshTokenTtl?: number | undefined; refreshTokenTtlInDays?: number | undefined; tenantId?: string | undefined; alwaysIssueRefreshToken?: boolean | undefined; rotateRefreshToken?: boolean | undefined; allowTokenExchange?: boolean | undefined; isDeviceFlow?: boolean | undefined; maxAllowedGrants?: number | undefined; }, z.ZodTypeDef, { corsAllowedOrigins?: string[] | undefined; idTokenTtl?: number | undefined; refreshTokenTtl?: number | undefined; refreshTokenTtlInDays?: number | undefined; tenantId?: string | undefined; alwaysIssueRefreshToken?: boolean | undefined; rotateRefreshToken?: boolean | undefined; allowTokenExchange?: boolean | undefined; isDeviceFlow?: boolean | undefined; maxAllowedGrants?: number | undefined; }>; protectedAppMetadata: z.ZodType<{ host: string; origin: string; sessionDuration: number; pageRules: { path: string; }[]; customDomains?: { status: import("../index.js").DomainStatus; domain: string; errorMessage: string | null; dnsRecords: { value: string; type: string; name: string; }[]; cloudflareData: { status: string; id: string; ssl: { status: string; validation_errors?: { message: string; }[] | undefined; }; verification_errors?: string[] | undefined; } | null; }[] | undefined; } | null, z.ZodTypeDef, { host: string; origin: string; sessionDuration: number; pageRules: { path: string; }[]; customDomains?: { status: import("../index.js").DomainStatus; domain: string; errorMessage: string | null; dnsRecords: { value: string; type: string; name: string; }[]; cloudflareData: { status: string; id: string; ssl: { status: string; validation_errors?: { message: string; }[] | undefined; }; verification_errors?: string[] | undefined; } | null; }[] | undefined; } | null>; customData: z.ZodType; isThirdParty: z.ZodType; createdAt: z.ZodType; }, "name" | "id">, "strip", z.ZodTypeAny, { name: string; id: string; }, { name: string; id: string; }>; export type PublicApplication = z.infer; export declare const applicationSignInExperienceGuard: z.ZodObject; applicationId: z.ZodType; color: z.ZodType, z.ZodTypeDef, Partial<{ primaryColor: string; isDarkModeEnabled: boolean; darkPrimaryColor: string; }>>; branding: z.ZodType<{ logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; }, z.ZodTypeDef, { logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; }>; customCss: z.ZodType; termsOfUseUrl: z.ZodType; privacyPolicyUrl: z.ZodType; displayName: z.ZodType; }, "displayName" | "branding" | "termsOfUseUrl" | "privacyPolicyUrl">, "strip", z.ZodTypeAny, { displayName: string | null; branding: import("../index.js").Branding; termsOfUseUrl: string | null; privacyPolicyUrl: string | null; }, { displayName: string | null; branding: import("../index.js").Branding; termsOfUseUrl: string | null; privacyPolicyUrl: string | null; }>; export declare const missingResourceScopesGuard: z.ZodObject<{ resource: z.ZodObject; id: z.ZodType; name: z.ZodType; indicator: z.ZodType; isDefault: z.ZodType; accessTokenTtl: z.ZodType; }, "name" | "indicator"> & { id: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; indicator: string; }, { name: string; id: string; indicator: string; }>; scopes: z.ZodArray; id: z.ZodType; resourceId: z.ZodType; name: z.ZodType; description: z.ZodType; createdAt: z.ZodType; }, "name" | "id" | "description">, "strip", z.ZodTypeAny, { name: string; id: string; description: string | null; }, { name: string; id: string; description: string | null; }>, "many">; }, "strip", z.ZodTypeAny, { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }, { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }>; /** * Define the missing resource scopes for the consent page. */ export type MissingResourceScopes = z.infer; /** * Define the public organization info that can be exposed to the public. e.g. on the user consent page. */ export declare const publicOrganizationGuard: z.ZodObject; id: z.ZodType; name: z.ZodType; description: z.ZodType; customData: z.ZodType; isMfaRequired: z.ZodType; color: z.ZodType, z.ZodTypeDef, Partial<{ primaryColor: string; isDarkModeEnabled: boolean; darkPrimaryColor: string; }>>; branding: z.ZodType<{ logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; }, z.ZodTypeDef, { logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; }>; customCss: z.ZodType; createdAt: z.ZodType; }, "name" | "id"> & { missingResourceScopes: z.ZodOptional; id: z.ZodType; name: z.ZodType; indicator: z.ZodType; isDefault: z.ZodType; accessTokenTtl: z.ZodType; }, "name" | "indicator"> & { id: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; indicator: string; }, { name: string; id: string; indicator: string; }>; scopes: z.ZodArray; id: z.ZodType; resourceId: z.ZodType; name: z.ZodType; description: z.ZodType; createdAt: z.ZodType; }, "name" | "id" | "description">, "strip", z.ZodTypeAny, { name: string; id: string; description: string | null; }, { name: string; id: string; description: string | null; }>, "many">; }, "strip", z.ZodTypeAny, { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }, { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; missingResourceScopes?: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[] | undefined; }, { name: string; id: string; missingResourceScopes?: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[] | undefined; }>; export type PublicOrganization = z.infer; export declare const consentInfoResponseGuard: z.ZodObject<{ application: z.ZodObject; id: z.ZodType; name: z.ZodType; secret: z.ZodType; description: z.ZodType; type: z.ZodType; oidcClientMetadata: z.ZodType; customClientMetadata: z.ZodType<{ corsAllowedOrigins?: string[] | undefined; idTokenTtl?: number | undefined; refreshTokenTtl?: number | undefined; refreshTokenTtlInDays?: number | undefined; tenantId?: string | undefined; alwaysIssueRefreshToken?: boolean | undefined; rotateRefreshToken?: boolean | undefined; allowTokenExchange?: boolean | undefined; isDeviceFlow?: boolean | undefined; maxAllowedGrants?: number | undefined; }, z.ZodTypeDef, { corsAllowedOrigins?: string[] | undefined; idTokenTtl?: number | undefined; refreshTokenTtl?: number | undefined; refreshTokenTtlInDays?: number | undefined; tenantId?: string | undefined; alwaysIssueRefreshToken?: boolean | undefined; rotateRefreshToken?: boolean | undefined; allowTokenExchange?: boolean | undefined; isDeviceFlow?: boolean | undefined; maxAllowedGrants?: number | undefined; }>; protectedAppMetadata: z.ZodType<{ host: string; origin: string; sessionDuration: number; pageRules: { path: string; }[]; customDomains?: { status: import("../index.js").DomainStatus; domain: string; errorMessage: string | null; dnsRecords: { value: string; type: string; name: string; }[]; cloudflareData: { status: string; id: string; ssl: { status: string; validation_errors?: { message: string; }[] | undefined; }; verification_errors?: string[] | undefined; } | null; }[] | undefined; } | null, z.ZodTypeDef, { host: string; origin: string; sessionDuration: number; pageRules: { path: string; }[]; customDomains?: { status: import("../index.js").DomainStatus; domain: string; errorMessage: string | null; dnsRecords: { value: string; type: string; name: string; }[]; cloudflareData: { status: string; id: string; ssl: { status: string; validation_errors?: { message: string; }[] | undefined; }; verification_errors?: string[] | undefined; } | null; }[] | undefined; } | null>; customData: z.ZodType; isThirdParty: z.ZodType; createdAt: z.ZodType; }, "name" | "id"> & { displayName: z.ZodOptional>; branding: z.ZodOptional>; termsOfUseUrl: z.ZodOptional>; privacyPolicyUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; id: string; displayName?: string | null | undefined; branding?: { logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; } | undefined; termsOfUseUrl?: string | null | undefined; privacyPolicyUrl?: string | null | undefined; }, { name: string; id: string; displayName?: string | null | undefined; branding?: { logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; } | undefined; termsOfUseUrl?: string | null | undefined; privacyPolicyUrl?: string | null | undefined; }>; user: z.ZodObject; id: z.ZodType; username: z.ZodType; primaryEmail: z.ZodType; primaryPhone: z.ZodType; passwordEncrypted: z.ZodType; passwordEncryptionMethod: z.ZodType; name: z.ZodType; avatar: z.ZodType; profile: z.ZodType; }>, z.ZodTypeDef, Partial<{ familyName: string; givenName: string; middleName: string; nickname: string; preferredUsername: string; profile: string; website: string; gender: string; birthdate: string; zoneinfo: string; locale: string; address: Partial<{ formatted: string; streetAddress: string; locality: string; region: string; postalCode: string; country: string; }>; }>>; applicationId: z.ZodType; identities: z.ZodType | undefined; }>, z.ZodTypeDef, Record | undefined; }>>; customData: z.ZodType; logtoConfig: z.ZodType; mfaVerifications: z.ZodType<({ type: import("../index.js").MfaFactor.TOTP; id: string; key: string; createdAt: string; lastUsedAt?: string | undefined; } | { type: import("../index.js").MfaFactor.WebAuthn; id: string; createdAt: string; credentialId: string; publicKey: string; counter: number; agent: string; name?: string | undefined; lastUsedAt?: string | undefined; rpId?: string | undefined; transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined; } | { type: import("../index.js").MfaFactor.BackupCode; id: string; createdAt: string; codes: { code: string; usedAt?: string | undefined; }[]; lastUsedAt?: string | undefined; })[], z.ZodTypeDef, ({ type: import("../index.js").MfaFactor.TOTP; id: string; key: string; createdAt: string; lastUsedAt?: string | undefined; } | { type: import("../index.js").MfaFactor.WebAuthn; id: string; createdAt: string; credentialId: string; publicKey: string; counter: number; agent: string; name?: string | undefined; lastUsedAt?: string | undefined; rpId?: string | undefined; transports?: ("usb" | "nfc" | "ble" | "internal" | "cable" | "hybrid" | "smart-card")[] | undefined; } | { type: import("../index.js").MfaFactor.BackupCode; id: string; createdAt: string; codes: { code: string; usedAt?: string | undefined; }[]; lastUsedAt?: string | undefined; })[]>; isSuspended: z.ZodType; lastSignInAt: z.ZodType; createdAt: z.ZodType; updatedAt: z.ZodType; }, "name" | "id" | "username" | "avatar" | "primaryEmail" | "primaryPhone">, "strip", z.ZodTypeAny, { name: string | null; id: string; username: string | null; avatar: string | null; primaryEmail: string | null; primaryPhone: string | null; }, { name: string | null; id: string; username: string | null; avatar: string | null; primaryEmail: string | null; primaryPhone: string | null; }>; organizations: z.ZodOptional; id: z.ZodType; name: z.ZodType; description: z.ZodType; customData: z.ZodType; isMfaRequired: z.ZodType; color: z.ZodType, z.ZodTypeDef, Partial<{ primaryColor: string; isDarkModeEnabled: boolean; darkPrimaryColor: string; }>>; branding: z.ZodType<{ logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; }, z.ZodTypeDef, { logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; }>; customCss: z.ZodType; createdAt: z.ZodType; }, "name" | "id"> & { missingResourceScopes: z.ZodOptional; id: z.ZodType; name: z.ZodType; indicator: z.ZodType; isDefault: z.ZodType; accessTokenTtl: z.ZodType; }, "name" | "indicator"> & { id: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; indicator: string; }, { name: string; id: string; indicator: string; }>; scopes: z.ZodArray; id: z.ZodType; resourceId: z.ZodType; name: z.ZodType; description: z.ZodType; createdAt: z.ZodType; }, "name" | "id" | "description">, "strip", z.ZodTypeAny, { name: string; id: string; description: string | null; }, { name: string; id: string; description: string | null; }>, "many">; }, "strip", z.ZodTypeAny, { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }, { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; id: string; missingResourceScopes?: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[] | undefined; }, { name: string; id: string; missingResourceScopes?: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[] | undefined; }>, "many">>; missingOIDCScope: z.ZodOptional>; missingResourceScopes: z.ZodOptional; id: z.ZodType; name: z.ZodType; indicator: z.ZodType; isDefault: z.ZodType; accessTokenTtl: z.ZodType; }, "name" | "indicator"> & { id: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; id: string; indicator: string; }, { name: string; id: string; indicator: string; }>; scopes: z.ZodArray; id: z.ZodType; resourceId: z.ZodType; name: z.ZodType; description: z.ZodType; createdAt: z.ZodType; }, "name" | "id" | "description">, "strip", z.ZodTypeAny, { name: string; id: string; description: string | null; }, { name: string; id: string; description: string | null; }>, "many">; }, "strip", z.ZodTypeAny, { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }, { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }>, "many">>; redirectUri: z.ZodOptional; }, "strip", z.ZodTypeAny, { application: { name: string; id: string; displayName?: string | null | undefined; branding?: { logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; } | undefined; termsOfUseUrl?: string | null | undefined; privacyPolicyUrl?: string | null | undefined; }; user: { name: string | null; id: string; username: string | null; avatar: string | null; primaryEmail: string | null; primaryPhone: string | null; }; organizations?: { name: string; id: string; missingResourceScopes?: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[] | undefined; }[] | undefined; redirectUri?: string | undefined; missingResourceScopes?: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[] | undefined; missingOIDCScope?: string[] | undefined; }, { application: { name: string; id: string; displayName?: string | null | undefined; branding?: { logoUrl?: string | undefined; darkLogoUrl?: string | undefined; favicon?: string | undefined; darkFavicon?: string | undefined; } | undefined; termsOfUseUrl?: string | null | undefined; privacyPolicyUrl?: string | null | undefined; }; user: { name: string | null; id: string; username: string | null; avatar: string | null; primaryEmail: string | null; primaryPhone: string | null; }; organizations?: { name: string; id: string; missingResourceScopes?: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[] | undefined; }[] | undefined; redirectUri?: string | undefined; missingResourceScopes?: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[] | undefined; missingOIDCScope?: string[] | undefined; }>; export type ConsentInfoResponse = z.infer;