import { UserScope } from '@logto/core-kit'; import { z } from 'zod'; import { type Application } from '../db-entries/index.js'; export type ApplicationResponse = Application & { isAdmin: boolean; }; /** * An application that is featured for display. Usually used in a list of resources that are * related to a group of applications. */ export type FeaturedApplication = Pick; /** The guard for {@link FeaturedApplication}. */ export declare const featuredApplicationGuard: 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; }, "type" | "name" | "id">, "strip", z.ZodTypeAny, { type: import("../db-entries/custom-types.js").ApplicationType; name: string; id: string; }, { type: import("../db-entries/custom-types.js").ApplicationType; name: string; id: string; }>; export declare const applicationCreateGuard: z.ZodObject<{ customData: z.ZodOptional>>; description: z.ZodOptional>>; oidcClientMetadata: z.ZodOptional>; customClientMetadata: z.ZodOptional>>; protectedAppMetadata: z.ZodOptional>>; isThirdParty: z.ZodOptional>>; } & { type: z.ZodType; name: z.ZodType; }, "strip", z.ZodTypeAny, { type: import("../db-entries/custom-types.js").ApplicationType; name: string; customData?: import("@withtyped/server").JsonObject; description?: string | null; oidcClientMetadata?: import("../index.js").OidcClientMetadata | undefined; customClientMetadata?: import("../index.js").CustomClientMetadata; protectedAppMetadata?: import("../index.js").ProtectedAppMetadata | null; isThirdParty?: boolean; }, { type: import("../db-entries/custom-types.js").ApplicationType; name: string; customData?: import("@withtyped/server").JsonObject; description?: string | null; oidcClientMetadata?: import("../index.js").OidcClientMetadata | undefined; customClientMetadata?: import("../index.js").CustomClientMetadata; protectedAppMetadata?: import("../index.js").ProtectedAppMetadata | null; isThirdParty?: boolean; }>; export declare const applicationPatchGuard: z.ZodObject>>>; description: z.ZodOptional>>>; oidcClientMetadata: z.ZodOptional>>; customClientMetadata: z.ZodOptional>>>; protectedAppMetadata: z.ZodOptional>>>; isThirdParty: z.ZodOptional>>>; type: z.ZodOptional>; name: z.ZodOptional>; }, "type" | "isThirdParty">, "strip", z.ZodTypeAny, { name?: string | undefined; customData?: import("@withtyped/server").JsonObject; description?: string | null; oidcClientMetadata?: import("../index.js").OidcClientMetadata | undefined; customClientMetadata?: import("../index.js").CustomClientMetadata; protectedAppMetadata?: import("../index.js").ProtectedAppMetadata | null; }, { name?: string | undefined; customData?: import("@withtyped/server").JsonObject; description?: string | null; oidcClientMetadata?: import("../index.js").OidcClientMetadata | undefined; customClientMetadata?: import("../index.js").CustomClientMetadata; protectedAppMetadata?: import("../index.js").ProtectedAppMetadata | null; }>; export declare const applicationUserConsentScopesResponseGuard: z.ZodObject<{ organizationScopes: z.ZodArray; id: z.ZodType; name: z.ZodType; description: z.ZodType; }, "name" | "id" | "description">, "strip", z.ZodTypeAny, { name: string; id: string; description: string | null; }, { name: string; id: string; description: string | null; }>, "many">; resourceScopes: z.ZodArray; id: z.ZodType; name: z.ZodType; indicator: z.ZodType; isDefault: z.ZodType; accessTokenTtl: z.ZodType; }, "name" | "id" | "indicator">, "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">; organizationResourceScopes: z.ZodArray; id: z.ZodType; name: z.ZodType; indicator: z.ZodType; isDefault: z.ZodType; accessTokenTtl: z.ZodType; }, "name" | "id" | "indicator">, "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">; userScopes: z.ZodArray, "many">; }, "strip", z.ZodTypeAny, { organizationScopes: { name: string; id: string; description: string | null; }[]; resourceScopes: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[]; organizationResourceScopes: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[]; userScopes: UserScope[]; }, { organizationScopes: { name: string; id: string; description: string | null; }[]; resourceScopes: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[]; organizationResourceScopes: { resource: { name: string; id: string; indicator: string; }; scopes: { name: string; id: string; description: string | null; }[]; }[]; userScopes: UserScope[]; }>; export declare enum ApplicationUserConsentScopeType { OrganizationScopes = "organization-scopes", ResourceScopes = "resource-scopes", OrganizationResourceScopes = "organization-resource-scopes", UserScopes = "user-scopes" } export type ApplicationUserConsentScopesResponse = z.infer; export declare const applicationSignInExperienceCreateGuard: z.ZodObject>; applicationId: z.ZodType; color: z.ZodOptional, z.ZodTypeDef, Partial<{ primaryColor: string; isDarkModeEnabled: boolean; darkPrimaryColor: string; }>>>; branding: z.ZodOptional>; customCss: z.ZodOptional>; termsOfUseUrl: z.ZodOptional>; privacyPolicyUrl: z.ZodOptional>; displayName: z.ZodOptional>; }, "applicationId" | "tenantId" | "termsOfUseUrl" | "privacyPolicyUrl"> & { termsOfUseUrl: z.ZodUnion<[z.ZodNullable>, z.ZodLiteral<"">]>; privacyPolicyUrl: z.ZodUnion<[z.ZodNullable>, z.ZodLiteral<"">]>; }, "strip", z.ZodTypeAny, { displayName?: string | null; color?: import("../index.js").PartialColor; branding?: import("../index.js").Branding; customCss?: string | null; termsOfUseUrl?: string | null | undefined; privacyPolicyUrl?: string | null | undefined; }, { displayName?: string | null; color?: import("../index.js").PartialColor; branding?: import("../index.js").Branding; customCss?: string | null; termsOfUseUrl?: string | null | undefined; privacyPolicyUrl?: string | null | undefined; }>; export type ApplicationSignInExperienceCreate = z.infer;