Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | /** |
| 2 | * Lifetime of credentials held by a store. |
| 3 | * |
| 4 | * Mirrors `keyring_core::api::CredentialPersistence`. Clients can query |
| 5 | * `store.persistence()` to warn users when credentials will be lost on |
| 6 | * logout (e.g. keyutils) vs. persisted to disk (macOS Keychain, Secret |
| 7 | * Service). |
| 8 | */ |
| 9 | export const CredentialPersistence = { |
| 10 | /** Credentials exist only for the lifetime of an `Entry` handle. */ |
| 11 | EntryOnly: 'EntryOnly', |
| 12 | /** Credentials are wiped when the process exits. */ |
| 13 | ProcessOnly: 'ProcessOnly', |
| 14 | /** Credentials persist until the user logs out of the session. */ |
| 15 | UntilLogout: 'UntilLogout', |
| 16 | /** Credentials persist until the machine is rebooted. */ |
| 17 | UntilReboot: 'UntilReboot', |
| 18 | /** Credentials persist until explicitly deleted. */ |
| 19 | UntilDelete: 'UntilDelete', |
| 20 | /** Persistence characteristics are unknown. */ |
| 21 | Unspecified: 'Unspecified', |
| 22 | } as const; |
| 23 | |
| 24 | export type CredentialPersistence = |
| 25 | (typeof CredentialPersistence)[keyof typeof CredentialPersistence]; |