diff --git a/package.json b/package.json index d7e0057..f1c90d0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Transcend Inc.", "name": "@transcend-io/airgap.js-types", "description": "TypeScript types for airgap.js interoperability with custom consent UIs", - "version": "12.8.1", + "version": "12.9.0", "homepage": "https://github.com/transcend-io/airgap.js-types", "repository": { "type": "git", diff --git a/src/enums/purpose.ts b/src/enums/purpose.ts index 79e1b8d..de65645 100644 --- a/src/enums/purpose.ts +++ b/src/enums/purpose.ts @@ -50,6 +50,19 @@ export const ConfigurablePurpose = makeEnum({ export type ConfigurablePurpose = typeof ConfigurablePurpose[keyof typeof ConfigurablePurpose]; +/** + * Purposes that can be configured + */ +export const KnownDefaultPurpose = makeEnum({ + /** The request is necessary for the essential features of the website */ + Essential: 'Essential', + ...ConfigurablePurpose, +}); + +/** Type override */ +export type KnownDefaultPurpose = + typeof KnownDefaultPurpose[keyof typeof KnownDefaultPurpose]; + /** * Purposes used by the purpose map */