@transcend-io/privacy-types 4.154.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -21
- package/dist/index.d.mts +61853 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +30980 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +36 -36
- package/.yarn/sdks/eslint/package.json +0 -14
- package/.yarn/sdks/prettier/package.json +0 -7
- package/.yarn/sdks/typescript/package.json +0 -10
- package/README.md +0 -37
- package/build/actionItems.d.ts +0 -174
- package/build/actionItems.d.ts.map +0 -1
- package/build/actionItems.js +0 -179
- package/build/actionItems.js.map +0 -1
- package/build/actions.d.ts +0 -158
- package/build/actions.d.ts.map +0 -1
- package/build/actions.js +0 -106
- package/build/actions.js.map +0 -1
- package/build/assessmentForm.d.ts +0 -179
- package/build/assessmentForm.d.ts.map +0 -1
- package/build/assessmentForm.js +0 -164
- package/build/assessmentForm.js.map +0 -1
- package/build/assessmentQuestion.d.ts +0 -485
- package/build/assessmentQuestion.d.ts.map +0 -1
- package/build/assessmentQuestion.js +0 -401
- package/build/assessmentQuestion.js.map +0 -1
- package/build/attribute.d.ts +0 -79
- package/build/attribute.d.ts.map +0 -1
- package/build/attribute.js +0 -84
- package/build/attribute.js.map +0 -1
- package/build/browserTimeZones.d.ts +0 -437
- package/build/browserTimeZones.d.ts.map +0 -1
- package/build/browserTimeZones.js +0 -441
- package/build/browserTimeZones.js.map +0 -1
- package/build/code.d.ts +0 -17
- package/build/code.d.ts.map +0 -1
- package/build/code.js +0 -19
- package/build/code.js.map +0 -1
- package/build/consentManager.d.ts +0 -172
- package/build/consentManager.d.ts.map +0 -1
- package/build/consentManager.js +0 -154
- package/build/consentManager.js.map +0 -1
- package/build/consentUi.d.ts +0 -1999
- package/build/consentUi.d.ts.map +0 -1
- package/build/consentUi.js +0 -101
- package/build/consentUi.js.map +0 -1
- package/build/consentUiConfiguration.d.ts +0 -3338
- package/build/consentUiConfiguration.d.ts.map +0 -1
- package/build/consentUiConfiguration.js +0 -146
- package/build/consentUiConfiguration.js.map +0 -1
- package/build/consentUiTheme.d.ts +0 -1273
- package/build/consentUiTheme.d.ts.map +0 -1
- package/build/consentUiTheme.js +0 -273
- package/build/consentUiTheme.js.map +0 -1
- package/build/database.d.ts +0 -72
- package/build/database.d.ts.map +0 -1
- package/build/database.js +0 -63
- package/build/database.js.map +0 -1
- package/build/datapoint.d.ts +0 -68
- package/build/datapoint.d.ts.map +0 -1
- package/build/datapoint.js +0 -60
- package/build/datapoint.js.map +0 -1
- package/build/enricher.d.ts +0 -79
- package/build/enricher.d.ts.map +0 -1
- package/build/enricher.js +0 -49
- package/build/enricher.js.map +0 -1
- package/build/getRegistryLink.d.ts +0 -13
- package/build/getRegistryLink.d.ts.map +0 -1
- package/build/getRegistryLink.js +0 -27
- package/build/getRegistryLink.js.map +0 -1
- package/build/identifier.d.ts +0 -106
- package/build/identifier.d.ts.map +0 -1
- package/build/identifier.js +0 -100
- package/build/identifier.js.map +0 -1
- package/build/index.d.ts +0 -35
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -51
- package/build/index.js.map +0 -1
- package/build/isoConstants/index.d.ts +0 -3
- package/build/isoConstants/index.d.ts.map +0 -1
- package/build/isoConstants/index.js +0 -19
- package/build/isoConstants/index.js.map +0 -1
- package/build/isoConstants/iso3166-1.d.ts +0 -509
- package/build/isoConstants/iso3166-1.d.ts.map +0 -1
- package/build/isoConstants/iso3166-1.js +0 -271
- package/build/isoConstants/iso3166-1.js.map +0 -1
- package/build/isoConstants/iso3166-2.d.ts +0 -25668
- package/build/isoConstants/iso3166-2.d.ts.map +0 -1
- package/build/isoConstants/iso3166-2.js +0 -25679
- package/build/isoConstants/iso3166-2.js.map +0 -1
- package/build/isoRegion.d.ts +0 -5398
- package/build/isoRegion.d.ts.map +0 -1
- package/build/isoRegion.js +0 -24
- package/build/isoRegion.js.map +0 -1
- package/build/largeLanguageModels.d.ts +0 -43
- package/build/largeLanguageModels.d.ts.map +0 -1
- package/build/largeLanguageModels.js +0 -61
- package/build/largeLanguageModels.js.map +0 -1
- package/build/macroregion.d.ts +0 -12
- package/build/macroregion.d.ts.map +0 -1
- package/build/macroregion.js +0 -74
- package/build/macroregion.js.map +0 -1
- package/build/objects.d.ts +0 -74
- package/build/objects.d.ts.map +0 -1
- package/build/objects.js +0 -74
- package/build/objects.js.map +0 -1
- package/build/oneTrust/endpoints/getAssessment.d.ts +0 -1368
- package/build/oneTrust/endpoints/getAssessment.d.ts.map +0 -1
- package/build/oneTrust/endpoints/getAssessment.js +0 -577
- package/build/oneTrust/endpoints/getAssessment.js.map +0 -1
- package/build/oneTrust/endpoints/getListOfAssessments.d.ts +0 -122
- package/build/oneTrust/endpoints/getListOfAssessments.d.ts.map +0 -1
- package/build/oneTrust/endpoints/getListOfAssessments.js +0 -118
- package/build/oneTrust/endpoints/getListOfAssessments.js.map +0 -1
- package/build/oneTrust/endpoints/getRisk.d.ts +0 -416
- package/build/oneTrust/endpoints/getRisk.d.ts.map +0 -1
- package/build/oneTrust/endpoints/getRisk.js +0 -357
- package/build/oneTrust/endpoints/getRisk.js.map +0 -1
- package/build/oneTrust/endpoints/getUser.d.ts +0 -123
- package/build/oneTrust/endpoints/getUser.d.ts.map +0 -1
- package/build/oneTrust/endpoints/getUser.js +0 -92
- package/build/oneTrust/endpoints/getUser.js.map +0 -1
- package/build/oneTrust/endpoints/index.d.ts +0 -5
- package/build/oneTrust/endpoints/index.d.ts.map +0 -1
- package/build/oneTrust/endpoints/index.js +0 -21
- package/build/oneTrust/endpoints/index.js.map +0 -1
- package/build/oneTrust/enrichedCodecs.d.ts +0 -2467
- package/build/oneTrust/enrichedCodecs.d.ts.map +0 -1
- package/build/oneTrust/enrichedCodecs.js +0 -103
- package/build/oneTrust/enrichedCodecs.js.map +0 -1
- package/build/oneTrust/index.d.ts +0 -4
- package/build/oneTrust/index.d.ts.map +0 -1
- package/build/oneTrust/index.js +0 -20
- package/build/oneTrust/index.js.map +0 -1
- package/build/oneTrust/oneTrustAssessmentCsv.d.ts +0 -620
- package/build/oneTrust/oneTrustAssessmentCsv.d.ts.map +0 -1
- package/build/oneTrust/oneTrustAssessmentCsv.js +0 -652
- package/build/oneTrust/oneTrustAssessmentCsv.js.map +0 -1
- package/build/preferences.d.ts +0 -16628
- package/build/preferences.d.ts.map +0 -1
- package/build/preferences.js +0 -263
- package/build/preferences.js.map +0 -1
- package/build/processingActivity.d.ts +0 -14
- package/build/processingActivity.d.ts.map +0 -1
- package/build/processingActivity.js +0 -16
- package/build/processingActivity.js.map +0 -1
- package/build/prompt.d.ts +0 -72
- package/build/prompt.d.ts.map +0 -1
- package/build/prompt.js +0 -82
- package/build/prompt.js.map +0 -1
- package/build/promptAVendor.d.ts +0 -35
- package/build/promptAVendor.d.ts.map +0 -1
- package/build/promptAVendor.js +0 -31
- package/build/promptAVendor.js.map +0 -1
- package/build/purposeSubCategories/additional.d.ts +0 -9
- package/build/purposeSubCategories/additional.d.ts.map +0 -1
- package/build/purposeSubCategories/additional.js +0 -9
- package/build/purposeSubCategories/additional.js.map +0 -1
- package/build/purposeSubCategories/advertising.d.ts +0 -9
- package/build/purposeSubCategories/advertising.d.ts.map +0 -1
- package/build/purposeSubCategories/advertising.js +0 -9
- package/build/purposeSubCategories/advertising.js.map +0 -1
- package/build/purposeSubCategories/analytics.d.ts +0 -9
- package/build/purposeSubCategories/analytics.d.ts.map +0 -1
- package/build/purposeSubCategories/analytics.js +0 -9
- package/build/purposeSubCategories/analytics.js.map +0 -1
- package/build/purposeSubCategories/essential.d.ts +0 -9
- package/build/purposeSubCategories/essential.d.ts.map +0 -1
- package/build/purposeSubCategories/essential.js +0 -9
- package/build/purposeSubCategories/essential.js.map +0 -1
- package/build/purposeSubCategories/hr.d.ts +0 -9
- package/build/purposeSubCategories/hr.d.ts.map +0 -1
- package/build/purposeSubCategories/hr.js +0 -9
- package/build/purposeSubCategories/hr.js.map +0 -1
- package/build/purposeSubCategories/index.d.ts +0 -19
- package/build/purposeSubCategories/index.d.ts.map +0 -1
- package/build/purposeSubCategories/index.js +0 -31
- package/build/purposeSubCategories/index.js.map +0 -1
- package/build/purposeSubCategories/legal.d.ts +0 -9
- package/build/purposeSubCategories/legal.d.ts.map +0 -1
- package/build/purposeSubCategories/legal.js +0 -9
- package/build/purposeSubCategories/legal.js.map +0 -1
- package/build/purposeSubCategories/marketing.d.ts +0 -9
- package/build/purposeSubCategories/marketing.d.ts.map +0 -1
- package/build/purposeSubCategories/marketing.js +0 -9
- package/build/purposeSubCategories/marketing.js.map +0 -1
- package/build/purposeSubCategories/operationSecurity.d.ts +0 -9
- package/build/purposeSubCategories/operationSecurity.d.ts.map +0 -1
- package/build/purposeSubCategories/operationSecurity.js +0 -9
- package/build/purposeSubCategories/operationSecurity.js.map +0 -1
- package/build/purposeSubCategories/other.d.ts +0 -9
- package/build/purposeSubCategories/other.d.ts.map +0 -1
- package/build/purposeSubCategories/other.js +0 -9
- package/build/purposeSubCategories/other.js.map +0 -1
- package/build/purposeSubCategories/personalization.d.ts +0 -9
- package/build/purposeSubCategories/personalization.d.ts.map +0 -1
- package/build/purposeSubCategories/personalization.js +0 -9
- package/build/purposeSubCategories/personalization.js.map +0 -1
- package/build/purposeSubCategories/sale.d.ts +0 -9
- package/build/purposeSubCategories/sale.d.ts.map +0 -1
- package/build/purposeSubCategories/sale.js +0 -9
- package/build/purposeSubCategories/sale.js.map +0 -1
- package/build/purposeSubCategories/transfer.d.ts +0 -9
- package/build/purposeSubCategories/transfer.d.ts.map +0 -1
- package/build/purposeSubCategories/transfer.js +0 -9
- package/build/purposeSubCategories/transfer.js.map +0 -1
- package/build/regexes.d.ts +0 -5
- package/build/regexes.d.ts.map +0 -1
- package/build/regexes.js +0 -8
- package/build/regexes.js.map +0 -1
- package/build/request.d.ts +0 -214
- package/build/request.d.ts.map +0 -1
- package/build/request.js +0 -151
- package/build/request.js.map +0 -1
- package/build/scopes.d.ts +0 -153
- package/build/scopes.d.ts.map +0 -1
- package/build/scopes.js +0 -1017
- package/build/scopes.js.map +0 -1
- package/build/sql.d.ts +0 -261
- package/build/sql.d.ts.map +0 -1
- package/build/sql.js +0 -82
- package/build/sql.js.map +0 -1
- package/build/subcategories/connection.d.ts +0 -19
- package/build/subcategories/connection.d.ts.map +0 -1
- package/build/subcategories/connection.js +0 -19
- package/build/subcategories/connection.js.map +0 -1
- package/build/subcategories/contact.d.ts +0 -13
- package/build/subcategories/contact.d.ts.map +0 -1
- package/build/subcategories/contact.js +0 -13
- package/build/subcategories/contact.js.map +0 -1
- package/build/subcategories/demographic.d.ts +0 -28
- package/build/subcategories/demographic.d.ts.map +0 -1
- package/build/subcategories/demographic.js +0 -28
- package/build/subcategories/demographic.js.map +0 -1
- package/build/subcategories/device.d.ts +0 -14
- package/build/subcategories/device.d.ts.map +0 -1
- package/build/subcategories/device.js +0 -14
- package/build/subcategories/device.js.map +0 -1
- package/build/subcategories/financial.d.ts +0 -20
- package/build/subcategories/financial.d.ts.map +0 -1
- package/build/subcategories/financial.js +0 -20
- package/build/subcategories/financial.js.map +0 -1
- package/build/subcategories/health.d.ts +0 -10
- package/build/subcategories/health.d.ts.map +0 -1
- package/build/subcategories/health.js +0 -10
- package/build/subcategories/health.js.map +0 -1
- package/build/subcategories/id.d.ts +0 -24
- package/build/subcategories/id.d.ts.map +0 -1
- package/build/subcategories/id.js +0 -24
- package/build/subcategories/id.js.map +0 -1
- package/build/subcategories/index.d.ts +0 -55
- package/build/subcategories/index.d.ts.map +0 -1
- package/build/subcategories/index.js +0 -35
- package/build/subcategories/index.js.map +0 -1
- package/build/subcategories/location.d.ts +0 -9
- package/build/subcategories/location.d.ts.map +0 -1
- package/build/subcategories/location.js +0 -9
- package/build/subcategories/location.js.map +0 -1
- package/build/subcategories/notPersonalData.d.ts +0 -10
- package/build/subcategories/notPersonalData.d.ts.map +0 -1
- package/build/subcategories/notPersonalData.js +0 -10
- package/build/subcategories/notPersonalData.js.map +0 -1
- package/build/subcategories/onlineActivity.d.ts +0 -15
- package/build/subcategories/onlineActivity.d.ts.map +0 -1
- package/build/subcategories/onlineActivity.js +0 -15
- package/build/subcategories/onlineActivity.js.map +0 -1
- package/build/subcategories/socialMedia.d.ts +0 -11
- package/build/subcategories/socialMedia.d.ts.map +0 -1
- package/build/subcategories/socialMedia.js +0 -11
- package/build/subcategories/socialMedia.js.map +0 -1
- package/build/subcategories/survey.d.ts +0 -9
- package/build/subcategories/survey.d.ts.map +0 -1
- package/build/subcategories/survey.js +0 -10
- package/build/subcategories/survey.js.map +0 -1
- package/build/subcategories/tracking.d.ts +0 -9
- package/build/subcategories/tracking.d.ts.map +0 -1
- package/build/subcategories/tracking.js +0 -10
- package/build/subcategories/tracking.js.map +0 -1
- package/build/subcategories/userProfile.d.ts +0 -15
- package/build/subcategories/userProfile.d.ts.map +0 -1
- package/build/subcategories/userProfile.js +0 -15
- package/build/subcategories/userProfile.js.map +0 -1
- package/build/team.d.ts +0 -21
- package/build/team.d.ts.map +0 -1
- package/build/team.js +0 -25
- package/build/team.js.map +0 -1
- package/build/tests/index.test.d.ts +0 -2
- package/build/tests/index.test.d.ts.map +0 -1
- package/build/tests/index.test.js +0 -18
- package/build/tests/index.test.js.map +0 -1
- package/build/theme.d.ts +0 -347
- package/build/theme.d.ts.map +0 -1
- package/build/theme.js +0 -202
- package/build/theme.js.map +0 -1
- package/build/tsbuildinfo +0 -1
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The source that set the data flow or cookie
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ConsentTrackerSource {
|
|
5
|
-
/** The data flow was manually set */
|
|
6
|
-
Manual = "MANUAL",
|
|
7
|
-
/** The data flow originated from a site-scan */
|
|
8
|
-
Scan = "SCAN",
|
|
9
|
-
/** Data flow originated from telemetry data */
|
|
10
|
-
Telemetry = "TELEMETRY"
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Statuses for a data flow or cookie
|
|
14
|
-
*/
|
|
15
|
-
export declare enum ConsentTrackerStatus {
|
|
16
|
-
/** Data flows or cookies that are to be included in live airgap bundles */
|
|
17
|
-
Live = "LIVE",
|
|
18
|
-
/** Data flows or cookies that won't be included in live airgap bundles because they need a human review */
|
|
19
|
-
NeedsReview = "NEEDS_REVIEW"
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Applicable data flow scopes for a given URL
|
|
23
|
-
*/
|
|
24
|
-
export declare const DataFlowScope: {
|
|
25
|
-
Host: "HOST";
|
|
26
|
-
Path: "PATH";
|
|
27
|
-
QueryParam: "QUERY_PARAM";
|
|
28
|
-
RegExp: "REGEX";
|
|
29
|
-
CSP: "CSP";
|
|
30
|
-
};
|
|
31
|
-
/** Type override */
|
|
32
|
-
export type DataFlowScope = typeof DataFlowScope[keyof typeof DataFlowScope];
|
|
33
|
-
export declare const ConsentBundleType: {
|
|
34
|
-
/** Bundle hosted at /cm path */
|
|
35
|
-
Production: "PRODUCTION";
|
|
36
|
-
/** Bundle hosted at /cm-test path */
|
|
37
|
-
Test: "TEST";
|
|
38
|
-
};
|
|
39
|
-
/** Override type */
|
|
40
|
-
export type ConsentBundleType = typeof ConsentBundleType[keyof typeof ConsentBundleType];
|
|
41
|
-
export declare const UnknownRequestPolicy: {
|
|
42
|
-
Allow: "ALLOW";
|
|
43
|
-
RequireFullConsent: "REQUIRE_FULL_CONSENT";
|
|
44
|
-
Block: "BLOCK";
|
|
45
|
-
};
|
|
46
|
-
/** Override type */
|
|
47
|
-
export type UnknownRequestPolicy = typeof UnknownRequestPolicy[keyof typeof UnknownRequestPolicy];
|
|
48
|
-
export declare const TelemetryPartitionStrategy: {
|
|
49
|
-
/** Partition telemetry data by the origin (default) */
|
|
50
|
-
Origin: "origin";
|
|
51
|
-
/** Partition telemetry data by the origin + path */
|
|
52
|
-
Path: "path";
|
|
53
|
-
/** Partition telemetry data by the full URL */
|
|
54
|
-
Url: "url";
|
|
55
|
-
};
|
|
56
|
-
/** Override type */
|
|
57
|
-
export type TelemetryPartitionStrategy = typeof TelemetryPartitionStrategy[keyof typeof TelemetryPartitionStrategy];
|
|
58
|
-
/**
|
|
59
|
-
* The possible options for configuring the Consent resolution precedence
|
|
60
|
-
*
|
|
61
|
-
* If this is set to 'user' (default), then confirmed consent is persisted, even
|
|
62
|
-
* if the consent opts the user into tracking purposes opted out by the user's
|
|
63
|
-
* detected privacy signals.
|
|
64
|
-
*
|
|
65
|
-
* If this is set to 'signals', then detected privacy signals always take precedence
|
|
66
|
-
* over confirmed consent.
|
|
67
|
-
*/
|
|
68
|
-
export declare const ConsentPrecedenceOption: {
|
|
69
|
-
User: "user";
|
|
70
|
-
Signal: "signal";
|
|
71
|
-
};
|
|
72
|
-
/** Override type */
|
|
73
|
-
export type ConsentPrecedenceOption = typeof ConsentPrecedenceOption[keyof typeof ConsentPrecedenceOption];
|
|
74
|
-
/**
|
|
75
|
-
* The possible options for configuring the CSP
|
|
76
|
-
*
|
|
77
|
-
* These options are simplified for the UI.
|
|
78
|
-
* Their equivalence in the airgap.js browser API:
|
|
79
|
-
* Strict => strict
|
|
80
|
-
* Lax => allow-subdomains allow-known-hosts
|
|
81
|
-
* On => allow-subdomains
|
|
82
|
-
* Off => off
|
|
83
|
-
*/
|
|
84
|
-
export declare const CspOption: {
|
|
85
|
-
Strict: "Strict";
|
|
86
|
-
Lax: "Lax";
|
|
87
|
-
On: "On";
|
|
88
|
-
Off: "Off";
|
|
89
|
-
};
|
|
90
|
-
/** Override type */
|
|
91
|
-
export type CspOption = typeof CspOption[keyof typeof CspOption];
|
|
92
|
-
/**
|
|
93
|
-
* Options for configuring the US Privacy API
|
|
94
|
-
*
|
|
95
|
-
* On
|
|
96
|
-
* Off
|
|
97
|
-
*/
|
|
98
|
-
export declare const UspapiOption: {
|
|
99
|
-
On: "on";
|
|
100
|
-
Off: "off";
|
|
101
|
-
};
|
|
102
|
-
/** Override type */
|
|
103
|
-
export type UspapiOption = typeof UspapiOption[keyof typeof UspapiOption];
|
|
104
|
-
/**
|
|
105
|
-
* Options for configuring the US Privacy API
|
|
106
|
-
*
|
|
107
|
-
* Yes
|
|
108
|
-
* No
|
|
109
|
-
* Unknown
|
|
110
|
-
*/
|
|
111
|
-
export declare const SignedIabAgreementOption: {
|
|
112
|
-
Yes: "yes";
|
|
113
|
-
No: "no";
|
|
114
|
-
Unknown: "unknown";
|
|
115
|
-
};
|
|
116
|
-
/** Override type */
|
|
117
|
-
export type SignedIabAgreementOption = typeof SignedIabAgreementOption[keyof typeof SignedIabAgreementOption];
|
|
118
|
-
/**
|
|
119
|
-
* Describes whether listed countries/country subdivisions are included in an experience
|
|
120
|
-
*/
|
|
121
|
-
export declare const RegionsOperator: {
|
|
122
|
-
/** The listed countries/country subdivisions, time zones, and languages are included in this experience */
|
|
123
|
-
In: "IN";
|
|
124
|
-
/** The listed countries/country subdivisions, time zones, and languages are NOT included in this experience */
|
|
125
|
-
NotIn: "NOT_IN";
|
|
126
|
-
};
|
|
127
|
-
/** Override type */
|
|
128
|
-
export type RegionsOperator = typeof RegionsOperator[keyof typeof RegionsOperator];
|
|
129
|
-
/**
|
|
130
|
-
* Options for configuring Backend Sync
|
|
131
|
-
*
|
|
132
|
-
* On
|
|
133
|
-
* Off
|
|
134
|
-
*/
|
|
135
|
-
export declare const BackendSyncOption: {
|
|
136
|
-
On: "on";
|
|
137
|
-
Off: "off";
|
|
138
|
-
};
|
|
139
|
-
/** Override type */
|
|
140
|
-
export type BackendSyncOption = typeof BackendSyncOption[keyof typeof BackendSyncOption];
|
|
141
|
-
/**
|
|
142
|
-
* Whether or not to run local on-device same-site cross-domain sync
|
|
143
|
-
*
|
|
144
|
-
* default: 'on'
|
|
145
|
-
*/
|
|
146
|
-
export declare const LocalSyncOption: {
|
|
147
|
-
/** use private sync only */
|
|
148
|
-
Private: "private";
|
|
149
|
-
/** allow network-observable sync when private sync is unavailable */
|
|
150
|
-
AllowNetworkObservable: "allow-network-observable";
|
|
151
|
-
/** comparable to 'allow-network-observable' -- allow network-observable sync when private sync is unavailble */
|
|
152
|
-
On: "on";
|
|
153
|
-
/** disable local sync */
|
|
154
|
-
Off: "off";
|
|
155
|
-
};
|
|
156
|
-
/** Type override */
|
|
157
|
-
export type LocalSyncOption = typeof LocalSyncOption[keyof typeof LocalSyncOption];
|
|
158
|
-
/**
|
|
159
|
-
* The possible options for configuring default consent
|
|
160
|
-
*
|
|
161
|
-
* These options are simplified for the UI.
|
|
162
|
-
* Their equivalence in the airgap.js browser API:
|
|
163
|
-
* Opt-in => 'off' / false
|
|
164
|
-
* Opt-out (unless for any reason not to; legal or otherwise) => 'Auto'
|
|
165
|
-
*/
|
|
166
|
-
export declare const DefaultConsentOption: {
|
|
167
|
-
OptIn: "off";
|
|
168
|
-
OptOut: "Auto";
|
|
169
|
-
};
|
|
170
|
-
/** Override type */
|
|
171
|
-
export type DefaultConsentOption = typeof DefaultConsentOption[keyof typeof DefaultConsentOption];
|
|
172
|
-
//# sourceMappingURL=consentManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consentManager.d.ts","sourceRoot":"","sources":["../src/consentManager.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,qCAAqC;IACrC,MAAM,WAAW;IACjB,gDAAgD;IAChD,IAAI,SAAS;IACb,+CAA+C;IAC/C,SAAS,cAAc;CACxB;AAED;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,2EAA2E;IAC3E,IAAI,SAAS;IACb,2GAA2G;IAC3G,WAAW,iBAAiB;CAC7B;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;CAMxB,CAAC;AAEH,oBAAoB;AACpB,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE7E,eAAO,MAAM,iBAAiB;IAC5B,gCAAgC;;IAEhC,qCAAqC;;CAErC,CAAC;AAEH,oBAAoB;AACpB,MAAM,MAAM,iBAAiB,G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,iBAAiB;;;CAG5B,CAAC;AAEH,oBAAoB;AACpB,MAAM,MAAM,iBAAiB,GAC3B,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,eAAe;IAC1B,4BAA4B;;IAE5B,qEAAqE;;IAErE,gHAAgH;;IAEhH,yBAAyB;;CAEzB,CAAC;AAEH,oBAAoB;AACpB,MAAM,MAAM,eAAe,GACzB,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEvD;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;;;CAG/B,CAAC;AAEH,oBAAoB;AACpB,MAAM,MAAM,oBAAoB,GAC9B,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC"}
|
package/build/consentManager.js
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultConsentOption = exports.LocalSyncOption = exports.BackendSyncOption = exports.RegionsOperator = exports.SignedIabAgreementOption = exports.UspapiOption = exports.CspOption = exports.ConsentPrecedenceOption = exports.TelemetryPartitionStrategy = exports.UnknownRequestPolicy = exports.ConsentBundleType = exports.DataFlowScope = exports.ConsentTrackerStatus = exports.ConsentTrackerSource = void 0;
|
|
4
|
-
const type_utils_1 = require("@transcend-io/type-utils");
|
|
5
|
-
/**
|
|
6
|
-
* The source that set the data flow or cookie
|
|
7
|
-
*/
|
|
8
|
-
var ConsentTrackerSource;
|
|
9
|
-
(function (ConsentTrackerSource) {
|
|
10
|
-
/** The data flow was manually set */
|
|
11
|
-
ConsentTrackerSource["Manual"] = "MANUAL";
|
|
12
|
-
/** The data flow originated from a site-scan */
|
|
13
|
-
ConsentTrackerSource["Scan"] = "SCAN";
|
|
14
|
-
/** Data flow originated from telemetry data */
|
|
15
|
-
ConsentTrackerSource["Telemetry"] = "TELEMETRY";
|
|
16
|
-
})(ConsentTrackerSource || (exports.ConsentTrackerSource = ConsentTrackerSource = {}));
|
|
17
|
-
/**
|
|
18
|
-
* Statuses for a data flow or cookie
|
|
19
|
-
*/
|
|
20
|
-
var ConsentTrackerStatus;
|
|
21
|
-
(function (ConsentTrackerStatus) {
|
|
22
|
-
/** Data flows or cookies that are to be included in live airgap bundles */
|
|
23
|
-
ConsentTrackerStatus["Live"] = "LIVE";
|
|
24
|
-
/** Data flows or cookies that won't be included in live airgap bundles because they need a human review */
|
|
25
|
-
ConsentTrackerStatus["NeedsReview"] = "NEEDS_REVIEW";
|
|
26
|
-
})(ConsentTrackerStatus || (exports.ConsentTrackerStatus = ConsentTrackerStatus = {}));
|
|
27
|
-
/**
|
|
28
|
-
* Applicable data flow scopes for a given URL
|
|
29
|
-
*/
|
|
30
|
-
exports.DataFlowScope = (0, type_utils_1.makeEnum)({
|
|
31
|
-
Host: 'HOST',
|
|
32
|
-
Path: 'PATH',
|
|
33
|
-
QueryParam: 'QUERY_PARAM',
|
|
34
|
-
RegExp: 'REGEX',
|
|
35
|
-
CSP: 'CSP',
|
|
36
|
-
});
|
|
37
|
-
exports.ConsentBundleType = (0, type_utils_1.makeEnum)({
|
|
38
|
-
/** Bundle hosted at /cm path */
|
|
39
|
-
Production: 'PRODUCTION',
|
|
40
|
-
/** Bundle hosted at /cm-test path */
|
|
41
|
-
Test: 'TEST',
|
|
42
|
-
});
|
|
43
|
-
exports.UnknownRequestPolicy = (0, type_utils_1.makeEnum)({
|
|
44
|
-
Allow: 'ALLOW',
|
|
45
|
-
RequireFullConsent: 'REQUIRE_FULL_CONSENT',
|
|
46
|
-
Block: 'BLOCK',
|
|
47
|
-
});
|
|
48
|
-
exports.TelemetryPartitionStrategy = (0, type_utils_1.makeEnum)({
|
|
49
|
-
/** Partition telemetry data by the origin (default) */
|
|
50
|
-
Origin: 'origin',
|
|
51
|
-
/** Partition telemetry data by the origin + path */
|
|
52
|
-
Path: 'path',
|
|
53
|
-
/** Partition telemetry data by the full URL */
|
|
54
|
-
Url: 'url',
|
|
55
|
-
});
|
|
56
|
-
/**
|
|
57
|
-
* The possible options for configuring the Consent resolution precedence
|
|
58
|
-
*
|
|
59
|
-
* If this is set to 'user' (default), then confirmed consent is persisted, even
|
|
60
|
-
* if the consent opts the user into tracking purposes opted out by the user's
|
|
61
|
-
* detected privacy signals.
|
|
62
|
-
*
|
|
63
|
-
* If this is set to 'signals', then detected privacy signals always take precedence
|
|
64
|
-
* over confirmed consent.
|
|
65
|
-
*/
|
|
66
|
-
exports.ConsentPrecedenceOption = (0, type_utils_1.makeEnum)({
|
|
67
|
-
User: 'user',
|
|
68
|
-
Signal: 'signal',
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* The possible options for configuring the CSP
|
|
72
|
-
*
|
|
73
|
-
* These options are simplified for the UI.
|
|
74
|
-
* Their equivalence in the airgap.js browser API:
|
|
75
|
-
* Strict => strict
|
|
76
|
-
* Lax => allow-subdomains allow-known-hosts
|
|
77
|
-
* On => allow-subdomains
|
|
78
|
-
* Off => off
|
|
79
|
-
*/
|
|
80
|
-
exports.CspOption = (0, type_utils_1.makeEnum)({
|
|
81
|
-
Strict: 'Strict',
|
|
82
|
-
Lax: 'Lax',
|
|
83
|
-
On: 'On',
|
|
84
|
-
Off: 'Off',
|
|
85
|
-
});
|
|
86
|
-
/**
|
|
87
|
-
* Options for configuring the US Privacy API
|
|
88
|
-
*
|
|
89
|
-
* On
|
|
90
|
-
* Off
|
|
91
|
-
*/
|
|
92
|
-
exports.UspapiOption = (0, type_utils_1.makeEnum)({
|
|
93
|
-
On: 'on',
|
|
94
|
-
Off: 'off',
|
|
95
|
-
});
|
|
96
|
-
/**
|
|
97
|
-
* Options for configuring the US Privacy API
|
|
98
|
-
*
|
|
99
|
-
* Yes
|
|
100
|
-
* No
|
|
101
|
-
* Unknown
|
|
102
|
-
*/
|
|
103
|
-
exports.SignedIabAgreementOption = (0, type_utils_1.makeEnum)({
|
|
104
|
-
Yes: 'yes',
|
|
105
|
-
No: 'no',
|
|
106
|
-
Unknown: 'unknown',
|
|
107
|
-
});
|
|
108
|
-
/**
|
|
109
|
-
* Describes whether listed countries/country subdivisions are included in an experience
|
|
110
|
-
*/
|
|
111
|
-
exports.RegionsOperator = (0, type_utils_1.makeEnum)({
|
|
112
|
-
/** The listed countries/country subdivisions, time zones, and languages are included in this experience */
|
|
113
|
-
In: 'IN',
|
|
114
|
-
/** The listed countries/country subdivisions, time zones, and languages are NOT included in this experience */
|
|
115
|
-
NotIn: 'NOT_IN',
|
|
116
|
-
});
|
|
117
|
-
/**
|
|
118
|
-
* Options for configuring Backend Sync
|
|
119
|
-
*
|
|
120
|
-
* On
|
|
121
|
-
* Off
|
|
122
|
-
*/
|
|
123
|
-
exports.BackendSyncOption = (0, type_utils_1.makeEnum)({
|
|
124
|
-
On: 'on',
|
|
125
|
-
Off: 'off',
|
|
126
|
-
});
|
|
127
|
-
/**
|
|
128
|
-
* Whether or not to run local on-device same-site cross-domain sync
|
|
129
|
-
*
|
|
130
|
-
* default: 'on'
|
|
131
|
-
*/
|
|
132
|
-
exports.LocalSyncOption = (0, type_utils_1.makeEnum)({
|
|
133
|
-
/** use private sync only */
|
|
134
|
-
Private: 'private',
|
|
135
|
-
/** allow network-observable sync when private sync is unavailable */
|
|
136
|
-
AllowNetworkObservable: 'allow-network-observable',
|
|
137
|
-
/** comparable to 'allow-network-observable' -- allow network-observable sync when private sync is unavailble */
|
|
138
|
-
On: 'on',
|
|
139
|
-
/** disable local sync */
|
|
140
|
-
Off: 'off',
|
|
141
|
-
});
|
|
142
|
-
/**
|
|
143
|
-
* The possible options for configuring default consent
|
|
144
|
-
*
|
|
145
|
-
* These options are simplified for the UI.
|
|
146
|
-
* Their equivalence in the airgap.js browser API:
|
|
147
|
-
* Opt-in => 'off' / false
|
|
148
|
-
* Opt-out (unless for any reason not to; legal or otherwise) => 'Auto'
|
|
149
|
-
*/
|
|
150
|
-
exports.DefaultConsentOption = (0, type_utils_1.makeEnum)({
|
|
151
|
-
OptIn: 'off',
|
|
152
|
-
OptOut: 'Auto',
|
|
153
|
-
});
|
|
154
|
-
//# sourceMappingURL=consentManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consentManager.js","sourceRoot":"","sources":["../src/consentManager.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AAEpD;;GAEG;AACH,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,qCAAqC;IACrC,yCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAa,CAAA;IACb,+CAA+C;IAC/C,+CAAuB,CAAA;AACzB,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B;AAED;;GAEG;AACH,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,2EAA2E;IAC3E,qCAAa,CAAA;IACb,2GAA2G;IAC3G,oDAA4B,CAAA;AAC9B,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AAED;;GAEG;AACU,QAAA,aAAa,GAAG,IAAA,qBAAQ,EAAC;IACpC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,OAAO;IACf,GAAG,EAAE,KAAK;CACX,CAAC,CAAC;AAKU,QAAA,iBAAiB,GAAG,IAAA,qBAAQ,EAAC;IACxC,gCAAgC;IAChC,UAAU,EAAE,YAAY;IACxB,qCAAqC;IACrC,IAAI,EAAE,MAAM;CACb,CAAC,CAAC;AAMU,QAAA,oBAAoB,GAAG,IAAA,qBAAQ,EAAC;IAC3C,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,sBAAsB;IAC1C,KAAK,EAAE,OAAO;CACf,CAAC,CAAC;AAMU,QAAA,0BAA0B,GAAG,IAAA,qBAAQ,EAAC;IACjD,uDAAuD;IACvD,MAAM,EAAE,QAAQ;IAChB,oDAAoD;IACpD,IAAI,EAAE,MAAM;IACZ,+CAA+C;IAC/C,GAAG,EAA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