Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@transcend-io/airgap.js-types

Package Overview
Dependencies
Maintainers
7
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transcend-io/airgap.js-types - npm Package Compare versions

Comparing version 10.7.0 to 10.7.1

143

build/core.d.ts

@@ -385,3 +385,43 @@ import * as t from 'io-ts';

export declare type TrackingConsent = t.TypeOf<typeof TrackingConsent>;
export declare const TrackingConsentDetails: t.IntersectionC<[t.TypeC<{
export declare const TrackingConsentWithNulls: t.RecordC<t.StringC, t.UnionC<[t.BooleanC, t.UndefinedC, t.NullC]>>;
/** Type override */
export declare type TrackingConsentWithNulls = t.TypeOf<typeof TrackingConsent>;
declare const CoreTrackingConsentDetails: t.IntersectionC<[t.TypeC<{
/**
* Was tracking consent confirmed by the user?
* If this is false, the consent was resolved from defaults & is not yet confirmed
*/
confirmed: t.BooleanC;
/** Consent resolution/last-modified timestamp (ISO 8601) */
timestamp: t.StringC;
}>, t.PartialC<{
/** Has the consent been updated (including no-change confirmation) since default resolution */
updated: t.BooleanC;
/** Whether or not the UI has been shown to the end-user (undefined in older versions of airgap.js) */
prompted: t.BooleanC;
/** Arbitrary metadata that customers want to be associated with consent state */
metadata: t.UnknownRecordC;
/** When the metadata was last updated */
metadataTimestamp: t.StringC;
}>]>;
/** Type override */
export declare type CoreTrackingConsentDetails = t.TypeOf<typeof CoreTrackingConsentDetails>;
export declare const TrackingConsentDetails: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
/**
* Was tracking consent confirmed by the user?
* If this is false, the consent was resolved from defaults & is not yet confirmed
*/
confirmed: t.BooleanC;
/** Consent resolution/last-modified timestamp (ISO 8601) */
timestamp: t.StringC;
}>, t.PartialC<{
/** Has the consent been updated (including no-change confirmation) since default resolution */
updated: t.BooleanC;
/** Whether or not the UI has been shown to the end-user (undefined in older versions of airgap.js) */
prompted: t.BooleanC;
/** Arbitrary metadata that customers want to be associated with consent state */
metadata: t.UnknownRecordC;
/** When the metadata was last updated */
metadataTimestamp: t.StringC;
}>]>, t.TypeC<{
/** Tracking consent config */

@@ -392,2 +432,41 @@ purposes: t.IntersectionC<[t.PartialC<{

}>, t.RecordC<t.StringC, t.UnionC<[t.BooleanC, t.UndefinedC]>>]>;
}>]>;
/** Override types. */
export declare type TrackingConsentDetails = t.TypeOf<typeof TrackingConsentDetails>;
export declare const TrackingConsentOptionalData: t.PartialC<{
/** Transparency Consent (TCF) String */
tcf: t.StringC;
/** US Privacy (USP) String */
usp: t.StringC;
/** Global Privacy Platform (GPP) String */
gpp: t.StringC;
/** Consent Manager View State */
viewState: t.KeyofC<{
TCF_EU: unknown;
QuickOptions: unknown;
QuickOptions3: unknown;
AcceptAll: unknown;
AcceptAllRejectAllToggle: unknown;
AcceptAllOrMoreChoices: unknown;
AcceptOrRejectAll: unknown;
AcceptOrRejectAllOrMoreChoices: unknown;
AcceptOrRejectAnalytics: unknown;
AcceptOrRejectAdvertising: unknown;
NoticeAndDoNotSell: unknown;
DoNotSellExplainer: unknown;
CompleteOptionsToggles: unknown;
PrivacyPolicyNotice: unknown;
CompleteOptions: unknown;
CompleteOptionsInverted: unknown;
Hidden: unknown;
DoNotSellDisclosure: unknown;
OptOutDisclosure: unknown;
LanguageOptions: unknown;
Collapsed: unknown;
Closed: unknown;
}>;
/** Airgap Version */
airgapVersion: t.StringC;
}>;
export declare const FullTrackingConsentDetails: t.IntersectionC<[t.IntersectionC<[t.IntersectionC<[t.TypeC<{
/**

@@ -409,6 +488,3 @@ * Was tracking consent confirmed by the user?

metadataTimestamp: t.StringC;
}>]>;
/** Override types. */
export declare type TrackingConsentDetails = t.TypeOf<typeof TrackingConsentDetails>;
export declare const FullTrackingConsentDetails: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
}>]>, t.TypeC<{
/** Tracking consent config */

@@ -419,2 +495,40 @@ purposes: t.IntersectionC<[t.PartialC<{

}>, t.RecordC<t.StringC, t.UnionC<[t.BooleanC, t.UndefinedC]>>]>;
}>]>, t.PartialC<{
/** Transparency Consent (TCF) String */
tcf: t.StringC;
/** US Privacy (USP) String */
usp: t.StringC;
/** Global Privacy Platform (GPP) String */
gpp: t.StringC;
/** Consent Manager View State */
viewState: t.KeyofC<{
TCF_EU: unknown;
QuickOptions: unknown;
QuickOptions3: unknown;
AcceptAll: unknown;
AcceptAllRejectAllToggle: unknown;
AcceptAllOrMoreChoices: unknown;
AcceptOrRejectAll: unknown;
AcceptOrRejectAllOrMoreChoices: unknown;
AcceptOrRejectAnalytics: unknown;
AcceptOrRejectAdvertising: unknown;
NoticeAndDoNotSell: unknown;
DoNotSellExplainer: unknown;
CompleteOptionsToggles: unknown;
PrivacyPolicyNotice: unknown;
CompleteOptions: unknown;
CompleteOptionsInverted: unknown;
Hidden: unknown;
DoNotSellDisclosure: unknown;
OptOutDisclosure: unknown;
LanguageOptions: unknown;
Collapsed: unknown;
Closed: unknown;
}>;
/** Airgap Version */
airgapVersion: t.StringC;
}>]>;
/** Override types. */
export declare type FullTrackingConsentDetails = t.TypeOf<typeof FullTrackingConsentDetails>;
export declare const FullTrackingConsentDetailsWithNulls: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
/**

@@ -470,5 +584,8 @@ * Was tracking consent confirmed by the user?

airgapVersion: t.StringC;
}>, t.TypeC<{
/** Tracking consent config */
purposes: t.RecordC<t.StringC, t.UnionC<[t.BooleanC, t.UndefinedC, t.NullC]>>;
}>]>;
/** Override types. */
export declare type FullTrackingConsentDetails = t.TypeOf<typeof FullTrackingConsentDetails>;
export declare type FullTrackingConsentDetailsWithNulls = t.TypeOf<typeof FullTrackingConsentDetailsWithNulls>;
export declare const ConsentPreferencesBody: t.TypeC<{

@@ -480,8 +597,3 @@ /** token containing encrypted identifier */

/** user consent */
consent: t.IntersectionC<[t.TypeC<{
/** Tracking consent config */
purposes: t.IntersectionC<[t.PartialC<{
Essential: t.LiteralC<true>;
Unknown: t.LiteralC<false>;
}>, t.RecordC<t.StringC, t.UnionC<[t.BooleanC, t.UndefinedC]>>]>;
consent: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
/**

@@ -503,2 +615,8 @@ * Was tracking consent confirmed by the user?

metadataTimestamp: t.StringC;
}>]>, t.TypeC<{
/** Tracking consent config */
purposes: t.IntersectionC<[t.PartialC<{
Essential: t.LiteralC<true>;
Unknown: t.LiteralC<false>;
}>, t.RecordC<t.StringC, t.UnionC<[t.BooleanC, t.UndefinedC]>>]>;
}>]>;

@@ -540,2 +658,3 @@ }>;

][];
export {};
//# sourceMappingURL=core.d.ts.map

45

build/core.js

@@ -22,3 +22,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RegimePurposeScopesConfig = exports.ConsentChange = exports.TrackingPurpose = exports.ConsentTokenPayload = exports.ConsentPreferencesBody = exports.FullTrackingConsentDetails = exports.TrackingConsentDetails = exports.TrackingConsent = exports.TrackingPurposesConfig = exports.DefaultConsentConfig = exports.TrackingPurposesTypes = exports.TrackingPurposeDetails = exports.UserPrivacySignal = exports.DefaultConsentConfigValue = exports.AutoOptOutForGPC = exports.AutoOptOutForDNT = exports.AutoOptOutForGDPR = exports.AutoOptOut = exports.BooleanString = exports.LogLevel = exports.ConsoleSafeLogLevel = void 0;
exports.RegimePurposeScopesConfig = exports.ConsentChange = exports.TrackingPurpose = exports.ConsentTokenPayload = exports.ConsentPreferencesBody = exports.FullTrackingConsentDetailsWithNulls = exports.FullTrackingConsentDetails = exports.TrackingConsentOptionalData = exports.TrackingConsentDetails = exports.TrackingConsentWithNulls = exports.TrackingConsent = exports.TrackingPurposesConfig = exports.DefaultConsentConfig = exports.TrackingPurposesTypes = exports.TrackingPurposeDetails = exports.UserPrivacySignal = exports.DefaultConsentConfigValue = exports.AutoOptOutForGPC = exports.AutoOptOutForDNT = exports.AutoOptOutForGDPR = exports.AutoOptOut = exports.BooleanString = exports.LogLevel = exports.ConsoleSafeLogLevel = void 0;
// external

@@ -133,6 +133,5 @@ const t = __importStar(require("io-ts"));

]);
exports.TrackingConsentDetails = t.intersection([
exports.TrackingConsentWithNulls = t.record(t.string, t.union([t.boolean, t.undefined, t.null]));
const CoreTrackingConsentDetails = t.intersection([
t.type({
/** Tracking consent config */
purposes: exports.TrackingConsent,
/**

@@ -157,15 +156,31 @@ * Was tracking consent confirmed by the user?

]);
exports.TrackingConsentDetails = t.intersection([
CoreTrackingConsentDetails,
t.type({
/** Tracking consent config */
purposes: exports.TrackingConsent,
}),
]);
exports.TrackingConsentOptionalData = t.partial({
/** Transparency Consent (TCF) String */
tcf: t.string,
/** US Privacy (USP) String */
usp: t.string,
/** Global Privacy Platform (GPP) String */
gpp: t.string,
/** Consent Manager View State */
viewState: (0, type_utils_1.valuesOf)(enums_1.ViewState),
/** Airgap Version */
airgapVersion: t.string,
});
exports.FullTrackingConsentDetails = t.intersection([
exports.TrackingConsentDetails,
t.partial({
/** Transparency Consent (TCF) String */
tcf: t.string,
/** US Privacy (USP) String */
usp: t.string,
/** Global Privacy Platform (GPP) String */
gpp: t.string,
/** Consent Manager View State */
viewState: (0, type_utils_1.valuesOf)(enums_1.ViewState),
/** Airgap Version */
airgapVersion: t.string,
exports.TrackingConsentOptionalData,
]);
exports.FullTrackingConsentDetailsWithNulls = t.intersection([
CoreTrackingConsentDetails,
exports.TrackingConsentOptionalData,
t.type({
/** Tracking consent config */
purposes: exports.TrackingConsentWithNulls,
}),

@@ -172,0 +187,0 @@ ]);

@@ -5,3 +5,3 @@ {

"description": "TypeScript types for airgap.js interoperability with custom consent UIs",
"version": "10.7.0",
"version": "10.7.1",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc