{"version":3,"file":"SubjectMetadataController-method-action-types.cjs","sourceRoot":"","sources":["../src/SubjectMetadataController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { SubjectMetadataController } from './SubjectMetadataController';\n\n/**\n * Clears the state of this controller. Also resets the cache of subjects\n * encountered since startup, so as to not prematurely reach the cache limit.\n */\nexport type SubjectMetadataControllerClearStateAction = {\n  type: `SubjectMetadataController:clearState`;\n  handler: SubjectMetadataController['clearState'];\n};\n\n/**\n * Stores domain metadata for the given origin (subject). Deletes metadata for\n * subjects without permissions in a FIFO manner once more than\n * {@link SubjectMetadataController.subjectCacheLimit} distinct origins have\n * been added since boot.\n *\n * In order to prevent a degraded user experience,\n * metadata is never deleted for subjects with permissions, since metadata\n * cannot yet be requested on demand.\n *\n * @param metadata - The subject metadata to store.\n */\nexport type SubjectMetadataControllerAddSubjectMetadataAction = {\n  type: `SubjectMetadataController:addSubjectMetadata`;\n  handler: SubjectMetadataController['addSubjectMetadata'];\n};\n\n/**\n * Gets the subject metadata for the given origin, if any.\n *\n * @param origin - The origin for which to get the subject metadata.\n * @returns The subject metadata, if any, or `undefined` otherwise.\n */\nexport type SubjectMetadataControllerGetSubjectMetadataAction = {\n  type: `SubjectMetadataController:getSubjectMetadata`;\n  handler: SubjectMetadataController['getSubjectMetadata'];\n};\n\n/**\n * Deletes all subjects without permissions from the controller's state.\n */\nexport type SubjectMetadataControllerTrimMetadataStateAction = {\n  type: `SubjectMetadataController:trimMetadataState`;\n  handler: SubjectMetadataController['trimMetadataState'];\n};\n\n/**\n * Union of all SubjectMetadataController action types.\n */\nexport type SubjectMetadataControllerMethodActions =\n  | SubjectMetadataControllerClearStateAction\n  | SubjectMetadataControllerAddSubjectMetadataAction\n  | SubjectMetadataControllerGetSubjectMetadataAction\n  | SubjectMetadataControllerTrimMetadataStateAction;\n"]}