{"version":3,"file":"SnapInterfaceController-method-action-types.mjs","sourceRoot":"","sources":["../../src/interface/SnapInterfaceController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { SnapInterfaceController } from './SnapInterfaceController';\n\n/**\n * Create an interface in the controller state with the associated data.\n *\n * @param snapId - The snap id that created the interface.\n * @param content - The interface content.\n * @param context - An optional interface context object.\n * @param contentType - The type of content.\n * @returns The newly interface id.\n */\nexport type SnapInterfaceControllerCreateInterfaceAction = {\n  type: `SnapInterfaceController:createInterface`;\n  handler: SnapInterfaceController['createInterface'];\n};\n\n/**\n * Get the data of a given interface id.\n *\n * @param snapId - The snap id requesting the interface data.\n * @param id - The interface id.\n * @returns The interface state.\n */\nexport type SnapInterfaceControllerGetInterfaceAction = {\n  type: `SnapInterfaceController:getInterface`;\n  handler: SnapInterfaceController['getInterface'];\n};\n\n/**\n * Get the state of a given interface ID, if the interface has been displayed\n * at least once.\n *\n * @param snapId - The snap ID requesting the interface state.\n * @param id - The interface ID.\n * @returns The interface state.\n */\nexport type SnapInterfaceControllerGetInterfaceStateAction = {\n  type: `SnapInterfaceController:getInterfaceState`;\n  handler: SnapInterfaceController['getInterfaceState'];\n};\n\n/**\n * Update the interface with the given content.\n *\n * @param snapId - The snap id requesting the update.\n * @param id - The interface id.\n * @param content - The new content.\n * @param context - An optional interface context object.\n */\nexport type SnapInterfaceControllerUpdateInterfaceAction = {\n  type: `SnapInterfaceController:updateInterface`;\n  handler: SnapInterfaceController['updateInterface'];\n};\n\n/**\n * Delete an interface from state.\n *\n * @param id - The interface id.\n */\nexport type SnapInterfaceControllerDeleteInterfaceAction = {\n  type: `SnapInterfaceController:deleteInterface`;\n  handler: SnapInterfaceController['deleteInterface'];\n};\n\n/**\n * Update the interface state.\n *\n * @param id - The interface id.\n * @param state - The new state.\n */\nexport type SnapInterfaceControllerUpdateInterfaceStateAction = {\n  type: `SnapInterfaceController:updateInterfaceState`;\n  handler: SnapInterfaceController['updateInterfaceState'];\n};\n\n/**\n * Resolve the promise of a given interface approval request.\n * The approval needs to have the same ID as the interface.\n *\n * @param snapId - The snap id.\n * @param id - The interface id.\n * @param value - The value to resolve the promise with.\n */\nexport type SnapInterfaceControllerResolveInterfaceAction = {\n  type: `SnapInterfaceController:resolveInterface`;\n  handler: SnapInterfaceController['resolveInterface'];\n};\n\n/**\n * Set the interface as displayed.\n *\n * @param snapId - The snap ID requesting the update.\n * @param id - The interface ID.\n */\nexport type SnapInterfaceControllerSetInterfaceDisplayedAction = {\n  type: `SnapInterfaceController:setInterfaceDisplayed`;\n  handler: SnapInterfaceController['setInterfaceDisplayed'];\n};\n\n/**\n * Union of all SnapInterfaceController action types.\n */\nexport type SnapInterfaceControllerMethodActions =\n  | SnapInterfaceControllerCreateInterfaceAction\n  | SnapInterfaceControllerGetInterfaceAction\n  | SnapInterfaceControllerGetInterfaceStateAction\n  | SnapInterfaceControllerUpdateInterfaceAction\n  | SnapInterfaceControllerDeleteInterfaceAction\n  | SnapInterfaceControllerUpdateInterfaceStateAction\n  | SnapInterfaceControllerResolveInterfaceAction\n  | SnapInterfaceControllerSetInterfaceDisplayedAction;\n"]}