@transcend-io/airgap.js-types
Advanced tools
Comparing version 10.8.0 to 10.9.0
@@ -136,2 +136,20 @@ import * as t from 'io-ts'; | ||
} | ||
/** airgap.toggle() options */ | ||
export declare type AirgapToggleOptions = | ||
/** Protection state */ | ||
boolean | { | ||
/** Protection state */ | ||
protection?: boolean; | ||
}; | ||
/** airgap.status format */ | ||
export interface AirgapSystemStatus { | ||
/** Protection system active state */ | ||
protection: boolean; | ||
/** Have any CSPs been activated? */ | ||
csp: boolean; | ||
/** Monitoring system active state */ | ||
monitoring: boolean; | ||
/** Telemetry system active state */ | ||
telemetry: boolean; | ||
} | ||
/** airgap.js API */ | ||
@@ -187,2 +205,6 @@ export declare type AirgapAPI = Readonly<{ | ||
getPrivacySignals(): Set<UserPrivacySignal>; | ||
/** Toggle all airgap.js protections. Auth must be a pre-airgap.js or airgap.js script 'load' event. Returns success status */ | ||
toggle(auth: AirgapAuth, options?: AirgapToggleOptions): boolean; | ||
/** Current airgap.js system flags */ | ||
status: AirgapSystemStatus; | ||
/** airgap.js version number */ | ||
@@ -189,0 +211,0 @@ version: string; |
@@ -136,2 +136,20 @@ import * as t from 'io-ts'; | ||
} | ||
/** airgap.toggle() options */ | ||
export declare type AirgapToggleOptions = | ||
/** Protection state */ | ||
boolean | { | ||
/** Protection state */ | ||
protection?: boolean; | ||
}; | ||
/** airgap.status format */ | ||
export interface AirgapSystemStatus { | ||
/** Protection system active state */ | ||
protection: boolean; | ||
/** Have any CSPs been activated? */ | ||
csp: boolean; | ||
/** Monitoring system active state */ | ||
monitoring: boolean; | ||
/** Telemetry system active state */ | ||
telemetry: boolean; | ||
} | ||
/** airgap.js API */ | ||
@@ -187,2 +205,6 @@ export declare type AirgapAPI = Readonly<{ | ||
getPrivacySignals(): Set<UserPrivacySignal>; | ||
/** Toggle all airgap.js protections. Auth must be a pre-airgap.js or airgap.js script 'load' event. Returns success status */ | ||
toggle(auth: AirgapAuth, options?: AirgapToggleOptions): boolean; | ||
/** Current airgap.js system flags */ | ||
status: AirgapSystemStatus; | ||
/** airgap.js version number */ | ||
@@ -189,0 +211,0 @@ version: string; |
@@ -5,3 +5,3 @@ { | ||
"description": "TypeScript types for airgap.js interoperability with custom consent UIs", | ||
"version": "10.8.0", | ||
"version": "10.9.0", | ||
"homepage": "https://github.com/transcend-io/airgap.js-types", | ||
@@ -8,0 +8,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
371726
6231