import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import Long from "long"; import { TextFilterMethod } from "../../filter/v2/filter.js"; import { APIConfiguration } from "./api.js"; import { OIDCConfiguration } from "./oidc.js"; import { SAMLConfiguration } from "./saml.js"; export declare const protobufPackage = "zitadel.application.v2"; export declare enum ApplicationState { APPLICATION_STATE_UNSPECIFIED = 0, APPLICATION_STATE_ACTIVE = 1, APPLICATION_STATE_INACTIVE = 2, APPLICATION_STATE_REMOVED = 3, UNRECOGNIZED = -1 } export declare function applicationStateFromJSON(object: any): ApplicationState; export declare function applicationStateToJSON(object: ApplicationState): string; export declare enum ApplicationSorting { APPLICATION_SORT_BY_ID = 0, APPLICATION_SORT_BY_NAME = 1, APPLICATION_SORT_BY_STATE = 2, APPLICATION_SORT_BY_CREATION_DATE = 3, APPLICATION_SORT_BY_CHANGE_DATE = 4, UNRECOGNIZED = -1 } export declare function applicationSortingFromJSON(object: any): ApplicationSorting; export declare function applicationSortingToJSON(object: ApplicationSorting): string; export declare enum ApplicationType { APPLICATION_TYPE_UNSPECIFIED = 0, APPLICATION_TYPE_OIDC = 1, APPLICATION_TYPE_API = 2, APPLICATION_TYPE_SAML = 3, UNRECOGNIZED = -1 } export declare function applicationTypeFromJSON(object: any): ApplicationType; export declare function applicationTypeToJSON(object: ApplicationType): string; export declare enum ApplicationKeysSorting { APPLICATION_KEYS_SORT_BY_ID = 0, APPLICATION_KEYS_SORT_BY_PROJECT_ID = 1, APPLICATION_KEYS_SORT_BY_APPLICATION_ID = 2, APPLICATION_KEYS_SORT_BY_CREATION_DATE = 3, APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID = 4, APPLICATION_KEYS_SORT_BY_EXPIRATION = 5, APPLICATION_KEYS_SORT_BY_TYPE = 6, UNRECOGNIZED = -1 } export declare function applicationKeysSortingFromJSON(object: any): ApplicationKeysSorting; export declare function applicationKeysSortingToJSON(object: ApplicationKeysSorting): string; export interface Application { /** The unique identifier of the application. */ applicationId: string; /** The timestamp of the application creation. */ creationDate: Date | undefined; /** The timestamp of the last update to the application. */ changeDate: Date | undefined; /** The current state of the application. */ state: ApplicationState; /** The name of the application. This can be displayed to users. */ name: string; oidcConfiguration?: OIDCConfiguration | undefined; apiConfiguration?: APIConfiguration | undefined; samlConfiguration?: SAMLConfiguration | undefined; } export interface ApplicationSearchFilter { /** Filter the projectID the application has to belong to. */ projectIdFilter?: ProjectIDFilter | undefined; /** Filter the applications by their name. */ nameFilter?: ApplicationNameFilter | undefined; /** Filter the applications by their state. */ stateFilter?: ApplicationState | undefined; /** Filter for specific application types. */ typeFilter?: ApplicationType | undefined; } export interface ProjectIDFilter { /** Search for application belonging to the project with this ID. */ projectId: string; } export interface ApplicationNameFilter { /** The name of the application to search for. */ name: string; /** The method to use for text comparison. If not set, defaults to EQUALS. */ method: TextFilterMethod; } export interface ApplicationKeySearchFilter { /** Filter the application keys by the application ID they belong to. */ applicationIdFilter?: ApplicationKeyApplicationIDFilter | undefined; /** Filter the application keys by the project ID the corresponding application belong to. */ projectIdFilter?: ApplicationKeyProjectIDFilter | undefined; /** Filter the application keys by the organization ID the corresponding application belong to. */ organizationIdFilter?: ApplicationKeyOrganizationIDFilter | undefined; } export interface ApplicationKeyApplicationIDFilter { /** Search for application keys belonging to the application with this ID. */ applicationId: string; } export interface ApplicationKeyProjectIDFilter { /** Search for application keys belonging to applications in the project with this ID. */ projectId: string; } export interface ApplicationKeyOrganizationIDFilter { /** Search for application keys belonging to applications in the organization with this ID. */ organizationId: string; } export interface ApplicationKey { /** The unique identifier of the application key. */ keyId: string; /** The identifier of the application this key belongs to. */ applicationId: string; /** The identifier of the project this application belongs to. */ projectId: string; /** The timestamp of the key creation. */ creationDate: Date | undefined; /** The identifier of the organization this application belongs to. */ organizationId: string; /** The timestamp the key expires. */ expirationDate: Date | undefined; } export declare const Application: MessageFns; export declare const ApplicationSearchFilter: MessageFns; export declare const ProjectIDFilter: MessageFns; export declare const ApplicationNameFilter: MessageFns; export declare const ApplicationKeySearchFilter: MessageFns; export declare const ApplicationKeyApplicationIDFilter: MessageFns; export declare const ApplicationKeyProjectIDFilter: MessageFns; export declare const ApplicationKeyOrganizationIDFilter: MessageFns; export declare const ApplicationKey: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create(base?: DeepPartial): T; fromPartial(object: DeepPartial): T; } export {};