/** * This file is auto generated. * Do not edit manually. */ import type { AuthenticatedUserStorageService } from "./authenticated-user-storage.mjs"; /** * Returns all delegation records belonging to the authenticated user. * * @returns An array of delegation records, or an empty array if none exist. */ export type AuthenticatedUserStorageServiceListDelegationsAction = { type: `AuthenticatedUserStorageService:listDelegations`; handler: AuthenticatedUserStorageService['listDelegations']; }; /** * Stores a signed delegation record for the authenticated user. * * @param submission - The signed delegation and its metadata. * @param clientType - Optional client type header. */ export type AuthenticatedUserStorageServiceCreateDelegationAction = { type: `AuthenticatedUserStorageService:createDelegation`; handler: AuthenticatedUserStorageService['createDelegation']; }; /** * Revokes (deletes) a delegation record. * * @param delegationHash - The unique hash identifying the delegation. */ export type AuthenticatedUserStorageServiceRevokeDelegationAction = { type: `AuthenticatedUserStorageService:revokeDelegation`; handler: AuthenticatedUserStorageService['revokeDelegation']; }; /** * Returns the notification preferences for the authenticated user. * * @returns The notification preferences object, or `null` if none have been * set (404). */ export type AuthenticatedUserStorageServiceGetNotificationPreferencesAction = { type: `AuthenticatedUserStorageService:getNotificationPreferences`; handler: AuthenticatedUserStorageService['getNotificationPreferences']; }; /** * Creates or updates the notification preferences for the authenticated user. * * @param prefs - The full notification preferences object. * @param clientType - Optional client type header. */ export type AuthenticatedUserStorageServicePutNotificationPreferencesAction = { type: `AuthenticatedUserStorageService:putNotificationPreferences`; handler: AuthenticatedUserStorageService['putNotificationPreferences']; }; /** * Union of all AuthenticatedUserStorageService action types. */ export type AuthenticatedUserStorageServiceMethodActions = AuthenticatedUserStorageServiceListDelegationsAction | AuthenticatedUserStorageServiceCreateDelegationAction | AuthenticatedUserStorageServiceRevokeDelegationAction | AuthenticatedUserStorageServiceGetNotificationPreferencesAction | AuthenticatedUserStorageServicePutNotificationPreferencesAction; //# sourceMappingURL=authenticated-user-storage-method-action-types.d.mts.map