@ketch-sdk/ketch-types 1.4.1 → 1.4.3
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/dist/index.d.ts +1193 -0
- package/dist/index.js +177 -0
- package/package.json +1 -1
- package/.editorconfig +0 -13
- package/.eslintignore +0 -3
- package/.eslintrc.json +0 -31
- package/.github/CODEOWNERS +0 -1
- package/.github/CONTRIBUTING.md +0 -177
- package/.github/ISSUE_TEMPLATE.md +0 -19
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -30
- package/.github/dependabot.yml +0 -18
- package/.github/release.yml +0 -18
- package/.github/workflows/ci.yml +0 -79
- package/.prettierignore +0 -3
- package/.prettierrc +0 -15
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -22
- package/docs/assets/main.js +0 -4
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1280
- package/docs/enums/BannerPosition.html +0 -88
- package/docs/enums/ConsentExperienceType.html +0 -81
- package/docs/enums/CookieCategory.html +0 -88
- package/docs/enums/CookieDuration.html +0 -74
- package/docs/enums/CookieProvenance.html +0 -74
- package/docs/enums/ExperienceButtonDestination.html +0 -81
- package/docs/enums/ExperienceClosedReason.html +0 -91
- package/docs/enums/ExperienceDefault.html +0 -74
- package/docs/enums/ExperiencePrimaryButtonAction.html +0 -74
- package/docs/enums/ExperienceType.html +0 -74
- package/docs/enums/IdentityFormat.html +0 -102
- package/docs/enums/IdentityType.html +0 -116
- package/docs/enums/MigrationOption.html +0 -95
- package/docs/enums/ModalPosition.html +0 -81
- package/docs/enums/SwitchTextRenderLogic.html +0 -96
- package/docs/functions/isTab.html +0 -137
- package/docs/index.html +0 -126
- package/docs/interfaces/AppDiv.html +0 -78
- package/docs/interfaces/Banner.html +0 -129
- package/docs/interfaces/CanonicalPurpose.html +0 -85
- package/docs/interfaces/Configuration.html +0 -305
- package/docs/interfaces/ConsentExperience.html +0 -120
- package/docs/interfaces/ConsentsTab.html +0 -161
- package/docs/interfaces/Cookie.html +0 -134
- package/docs/interfaces/DataSubject.html +0 -152
- package/docs/interfaces/DataSubjectType.html +0 -87
- package/docs/interfaces/Deployment.html +0 -78
- package/docs/interfaces/Environment.html +0 -92
- package/docs/interfaces/Experience.html +0 -78
- package/docs/interfaces/GetBootstrapConfigurationRequest.html +0 -78
- package/docs/interfaces/GetConsentRequest.html +0 -137
- package/docs/interfaces/GetConsentResponse.html +0 -139
- package/docs/interfaces/GetFullConfigurationRequest.html +0 -113
- package/docs/interfaces/GetLocationRequest.html +0 -71
- package/docs/interfaces/GetLocationResponse.html +0 -71
- package/docs/interfaces/GetPreferenceQRRequest.html +0 -125
- package/docs/interfaces/IPInfo.html +0 -155
- package/docs/interfaces/IPLanguage.html +0 -85
- package/docs/interfaces/IPLocation.html +0 -120
- package/docs/interfaces/Identity.html +0 -110
- package/docs/interfaces/InvokeRightRequest.html +0 -139
- package/docs/interfaces/JIT.html +0 -129
- package/docs/interfaces/JurisdictionInfo.html +0 -97
- package/docs/interfaces/Ketch.html +0 -735
- package/docs/interfaces/Loaded.html +0 -73
- package/docs/interfaces/Modal.html +0 -176
- package/docs/interfaces/Organization.html +0 -71
- package/docs/interfaces/OverviewTab.html +0 -99
- package/docs/interfaces/PluginClass.html +0 -354
- package/docs/interfaces/PolicyDocument.html +0 -85
- package/docs/interfaces/PreferenceExperience.html +0 -120
- package/docs/interfaces/Property.html +0 -92
- package/docs/interfaces/Purpose.html +0 -179
- package/docs/interfaces/PurposeAllowed.html +0 -78
- package/docs/interfaces/PurposeAllowedLegalBasis.html +0 -78
- package/docs/interfaces/PurposeLegalBasis.html +0 -78
- package/docs/interfaces/Pusher.html +0 -83
- package/docs/interfaces/Recaptcha.html +0 -73
- package/docs/interfaces/Right.html +0 -95
- package/docs/interfaces/RightsTab.html +0 -106
- package/docs/interfaces/SetConsentRequest.html +0 -144
- package/docs/interfaces/Stack.html +0 -82
- package/docs/interfaces/StorageProvider.html +0 -117
- package/docs/interfaces/Theme.html +0 -262
- package/docs/interfaces/Vendor.html +0 -134
- package/docs/interfaces/VendorPurpose.html +0 -78
- package/docs/interfaces/WebReportRequest.html +0 -104
- package/docs/modules.html +0 -218
- package/docs/types/Callback.html +0 -141
- package/docs/types/Consent.html +0 -135
- package/docs/types/Identities.html +0 -133
- package/docs/types/IdentityProvider.html +0 -136
- package/docs/types/InvokeRightEvent.html +0 -137
- package/docs/types/Plugin.html +0 -128
- package/docs/types/PluginFunction.html +0 -143
- package/docs/types/PurposeCategory.html +0 -139
- package/docs/types/ShowConsentOptions.html +0 -135
- package/docs/types/ShowPreferenceOptions.html +0 -149
- package/docs/types/Status.html +0 -133
- package/docs/types/Tab.html +0 -128
- package/docs/types/TabTuple.html +0 -128
- package/docs/variables/ALL_TABS.html +0 -128
- package/jest.config.js +0 -174
- package/src/index.ts +0 -1339
- package/tsconfig.json +0 -29
- package/tsfmt.json +0 -19
package/dist/index.js
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModalPosition = exports.BannerPosition = exports.SwitchTextRenderLogic = exports.IdentityFormat = exports.IdentityType = exports.CookieCategory = exports.CookieProvenance = exports.CookieDuration = exports.MigrationOption = exports.ExperiencePrimaryButtonAction = exports.ExperienceButtonDestination = exports.ExperienceDefault = exports.ExperienceClosedReason = exports.ConsentExperienceType = exports.ExperienceType = exports.isTab = exports.ALL_TABS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* All Tabs
|
|
6
|
+
*/
|
|
7
|
+
exports.ALL_TABS = ['overviewTab', 'rightsTab', 'consentsTab'];
|
|
8
|
+
/**
|
|
9
|
+
* Determines if the Given value is a Tab
|
|
10
|
+
*
|
|
11
|
+
* @param value
|
|
12
|
+
*/
|
|
13
|
+
function isTab(value) {
|
|
14
|
+
return exports.ALL_TABS.includes(value);
|
|
15
|
+
}
|
|
16
|
+
exports.isTab = isTab;
|
|
17
|
+
/**
|
|
18
|
+
* ExperienceType is the type of experience that will be shown
|
|
19
|
+
*/
|
|
20
|
+
var ExperienceType;
|
|
21
|
+
(function (ExperienceType) {
|
|
22
|
+
ExperienceType["Consent"] = "experiences.consent";
|
|
23
|
+
ExperienceType["Preference"] = "experiences.preference";
|
|
24
|
+
})(ExperienceType = exports.ExperienceType || (exports.ExperienceType = {}));
|
|
25
|
+
/**
|
|
26
|
+
* ConsentExperienceType is the type of consent experience that will be shown
|
|
27
|
+
*/
|
|
28
|
+
var ConsentExperienceType;
|
|
29
|
+
(function (ConsentExperienceType) {
|
|
30
|
+
ConsentExperienceType["Banner"] = "experiences.consent.banner";
|
|
31
|
+
ConsentExperienceType["Modal"] = "experiences.consent.modal";
|
|
32
|
+
ConsentExperienceType["JIT"] = "experiences.consent.jit";
|
|
33
|
+
})(ConsentExperienceType = exports.ConsentExperienceType || (exports.ConsentExperienceType = {}));
|
|
34
|
+
/**
|
|
35
|
+
* ExperienceClosedReason describes the reason the experience was closed.
|
|
36
|
+
*
|
|
37
|
+
* setConsent = consent was accepted/set
|
|
38
|
+
* invokeRight = the right was invoked
|
|
39
|
+
* close = the close/exit button was clicked
|
|
40
|
+
*/
|
|
41
|
+
var ExperienceClosedReason;
|
|
42
|
+
(function (ExperienceClosedReason) {
|
|
43
|
+
ExperienceClosedReason["SET_CONSENT"] = "setConsent";
|
|
44
|
+
ExperienceClosedReason["INVOKE_RIGHT"] = "invokeRight";
|
|
45
|
+
ExperienceClosedReason["CLOSE"] = "close";
|
|
46
|
+
ExperienceClosedReason["WILL_NOT_SHOW"] = "willNotShow";
|
|
47
|
+
})(ExperienceClosedReason = exports.ExperienceClosedReason || (exports.ExperienceClosedReason = {}));
|
|
48
|
+
/**
|
|
49
|
+
* ExperienceDefault
|
|
50
|
+
*/
|
|
51
|
+
var ExperienceDefault;
|
|
52
|
+
(function (ExperienceDefault) {
|
|
53
|
+
ExperienceDefault[ExperienceDefault["BANNER"] = 1] = "BANNER";
|
|
54
|
+
ExperienceDefault[ExperienceDefault["MODAL"] = 2] = "MODAL";
|
|
55
|
+
})(ExperienceDefault = exports.ExperienceDefault || (exports.ExperienceDefault = {}));
|
|
56
|
+
/**
|
|
57
|
+
* ExperienceButtonDestination
|
|
58
|
+
*/
|
|
59
|
+
var ExperienceButtonDestination;
|
|
60
|
+
(function (ExperienceButtonDestination) {
|
|
61
|
+
ExperienceButtonDestination[ExperienceButtonDestination["GOTO_MODAL"] = 1] = "GOTO_MODAL";
|
|
62
|
+
ExperienceButtonDestination[ExperienceButtonDestination["GOTO_PREFERENCE"] = 2] = "GOTO_PREFERENCE";
|
|
63
|
+
ExperienceButtonDestination[ExperienceButtonDestination["REJECT_ALL"] = 3] = "REJECT_ALL";
|
|
64
|
+
})(ExperienceButtonDestination = exports.ExperienceButtonDestination || (exports.ExperienceButtonDestination = {}));
|
|
65
|
+
/**
|
|
66
|
+
* ExperiencePrimaryButtonAction
|
|
67
|
+
*/
|
|
68
|
+
var ExperiencePrimaryButtonAction;
|
|
69
|
+
(function (ExperiencePrimaryButtonAction) {
|
|
70
|
+
ExperiencePrimaryButtonAction[ExperiencePrimaryButtonAction["SAVE_CURRENT_STATE"] = 1] = "SAVE_CURRENT_STATE";
|
|
71
|
+
ExperiencePrimaryButtonAction[ExperiencePrimaryButtonAction["ACCEPT_ALL"] = 2] = "ACCEPT_ALL";
|
|
72
|
+
})(ExperiencePrimaryButtonAction = exports.ExperiencePrimaryButtonAction || (exports.ExperiencePrimaryButtonAction = {}));
|
|
73
|
+
/**
|
|
74
|
+
* MigrationOption
|
|
75
|
+
*/
|
|
76
|
+
var MigrationOption;
|
|
77
|
+
(function (MigrationOption) {
|
|
78
|
+
MigrationOption[MigrationOption["MIGRATE_DEFAULT"] = 0] = "MIGRATE_DEFAULT";
|
|
79
|
+
MigrationOption[MigrationOption["MIGRATE_NEVER"] = 1] = "MIGRATE_NEVER";
|
|
80
|
+
MigrationOption[MigrationOption["MIGRATE_FROM_ALLOW"] = 2] = "MIGRATE_FROM_ALLOW";
|
|
81
|
+
MigrationOption[MigrationOption["MIGRATE_FROM_DENY"] = 3] = "MIGRATE_FROM_DENY";
|
|
82
|
+
MigrationOption[MigrationOption["MIGRATE_ALWAYS"] = 4] = "MIGRATE_ALWAYS";
|
|
83
|
+
})(MigrationOption = exports.MigrationOption || (exports.MigrationOption = {}));
|
|
84
|
+
/**
|
|
85
|
+
* CookieDuration
|
|
86
|
+
*/
|
|
87
|
+
var CookieDuration;
|
|
88
|
+
(function (CookieDuration) {
|
|
89
|
+
CookieDuration[CookieDuration["SESSION"] = 1] = "SESSION";
|
|
90
|
+
CookieDuration[CookieDuration["PERSISTENT"] = 2] = "PERSISTENT";
|
|
91
|
+
})(CookieDuration = exports.CookieDuration || (exports.CookieDuration = {}));
|
|
92
|
+
/**
|
|
93
|
+
* CookieProvenance
|
|
94
|
+
*/
|
|
95
|
+
var CookieProvenance;
|
|
96
|
+
(function (CookieProvenance) {
|
|
97
|
+
CookieProvenance[CookieProvenance["FIRST_PARTY"] = 1] = "FIRST_PARTY";
|
|
98
|
+
CookieProvenance[CookieProvenance["THIRD_PARTY"] = 2] = "THIRD_PARTY";
|
|
99
|
+
})(CookieProvenance = exports.CookieProvenance || (exports.CookieProvenance = {}));
|
|
100
|
+
/**
|
|
101
|
+
* CookieCategory
|
|
102
|
+
*/
|
|
103
|
+
var CookieCategory;
|
|
104
|
+
(function (CookieCategory) {
|
|
105
|
+
CookieCategory[CookieCategory["STRICTLY_NECESSARY"] = 1] = "STRICTLY_NECESSARY";
|
|
106
|
+
CookieCategory[CookieCategory["FUNCTIONAL"] = 2] = "FUNCTIONAL";
|
|
107
|
+
CookieCategory[CookieCategory["PERFORMANCE"] = 3] = "PERFORMANCE";
|
|
108
|
+
CookieCategory[CookieCategory["MARKETING"] = 4] = "MARKETING";
|
|
109
|
+
})(CookieCategory = exports.CookieCategory || (exports.CookieCategory = {}));
|
|
110
|
+
/**
|
|
111
|
+
* IdentityLocation is the location on the page from which to retrieve identity information
|
|
112
|
+
*/
|
|
113
|
+
var IdentityType;
|
|
114
|
+
(function (IdentityType) {
|
|
115
|
+
IdentityType["IDENTITY_TYPE_UNDEFINED"] = "";
|
|
116
|
+
IdentityType["IDENTITY_TYPE_DATA_LAYER"] = "dataLayer";
|
|
117
|
+
IdentityType["IDENTITY_TYPE_WINDOW"] = "window";
|
|
118
|
+
IdentityType["IDENTITY_TYPE_COOKIE"] = "cookie";
|
|
119
|
+
IdentityType["IDENTITY_TYPE_MANAGED"] = "managedCookie";
|
|
120
|
+
IdentityType["IDENTITY_TYPE_LOCAL_STORAGE"] = "localStorage";
|
|
121
|
+
IdentityType["IDENTITY_TYPE_SESSION_STORAGE"] = "sessionStorage";
|
|
122
|
+
IdentityType["IDENTITY_TYPE_QUERY_STRING"] = "queryString";
|
|
123
|
+
})(IdentityType = exports.IdentityType || (exports.IdentityType = {}));
|
|
124
|
+
/**
|
|
125
|
+
* IdentityFormat is the encoding of the string identity value
|
|
126
|
+
*/
|
|
127
|
+
var IdentityFormat;
|
|
128
|
+
(function (IdentityFormat) {
|
|
129
|
+
IdentityFormat["IDENTITY_FORMAT_UNDEFINED"] = "";
|
|
130
|
+
IdentityFormat["IDENTITY_FORMAT_STRING"] = "string";
|
|
131
|
+
IdentityFormat["IDENTITY_FORMAT_JSON"] = "json";
|
|
132
|
+
IdentityFormat["IDENTITY_FORMAT_JWT"] = "jwt";
|
|
133
|
+
IdentityFormat["IDENTITY_FORMAT_QUERY"] = "query";
|
|
134
|
+
IdentityFormat["IDENTITY_FORMAT_SEMICOLON"] = "semicolon";
|
|
135
|
+
})(IdentityFormat = exports.IdentityFormat || (exports.IdentityFormat = {}));
|
|
136
|
+
/**
|
|
137
|
+
* SwitchTextRenderLogic
|
|
138
|
+
*/
|
|
139
|
+
var SwitchTextRenderLogic;
|
|
140
|
+
(function (SwitchTextRenderLogic) {
|
|
141
|
+
/**
|
|
142
|
+
* SWITCH_TEXT_RENDER_ALL always renders the switch text regardless of state
|
|
143
|
+
*/
|
|
144
|
+
SwitchTextRenderLogic[SwitchTextRenderLogic["SWITCH_TEXT_RENDER_ALL"] = 1] = "SWITCH_TEXT_RENDER_ALL";
|
|
145
|
+
/**
|
|
146
|
+
* SWITCH_TEXT_RENDER_LEGAL_BASIS renders the switch text only if different from the legal basis default
|
|
147
|
+
*/
|
|
148
|
+
SwitchTextRenderLogic[SwitchTextRenderLogic["SWITCH_TEXT_RENDER_LEGAL_BASIS"] = 2] = "SWITCH_TEXT_RENDER_LEGAL_BASIS";
|
|
149
|
+
/**
|
|
150
|
+
* SWITCH_TEXT_RENDER_CHANGE renders the switch only if the user changes the state of the switch
|
|
151
|
+
*/
|
|
152
|
+
SwitchTextRenderLogic[SwitchTextRenderLogic["SWITCH_TEXT_RENDER_CHANGE"] = 3] = "SWITCH_TEXT_RENDER_CHANGE";
|
|
153
|
+
/**
|
|
154
|
+
* SWITCH_TEXT_RENDER_NEVER never renders the switch text
|
|
155
|
+
*/
|
|
156
|
+
SwitchTextRenderLogic[SwitchTextRenderLogic["SWITCH_TEXT_RENDER_NEVER"] = 4] = "SWITCH_TEXT_RENDER_NEVER";
|
|
157
|
+
})(SwitchTextRenderLogic = exports.SwitchTextRenderLogic || (exports.SwitchTextRenderLogic = {}));
|
|
158
|
+
/**
|
|
159
|
+
* BannerPosition
|
|
160
|
+
*/
|
|
161
|
+
var BannerPosition;
|
|
162
|
+
(function (BannerPosition) {
|
|
163
|
+
BannerPosition[BannerPosition["BOTTOM"] = 1] = "BOTTOM";
|
|
164
|
+
BannerPosition[BannerPosition["TOP"] = 2] = "TOP";
|
|
165
|
+
BannerPosition[BannerPosition["BOTTOM_LEFT"] = 3] = "BOTTOM_LEFT";
|
|
166
|
+
BannerPosition[BannerPosition["BOTTOM_RIGHT"] = 4] = "BOTTOM_RIGHT";
|
|
167
|
+
})(BannerPosition = exports.BannerPosition || (exports.BannerPosition = {}));
|
|
168
|
+
/**
|
|
169
|
+
* ModalPosition
|
|
170
|
+
*/
|
|
171
|
+
var ModalPosition;
|
|
172
|
+
(function (ModalPosition) {
|
|
173
|
+
ModalPosition[ModalPosition["CENTER"] = 1] = "CENTER";
|
|
174
|
+
ModalPosition[ModalPosition["LEFT_FULL_HEIGHT"] = 2] = "LEFT_FULL_HEIGHT";
|
|
175
|
+
ModalPosition[ModalPosition["RIGHT_FULL_HEIGHT"] = 3] = "RIGHT_FULL_HEIGHT";
|
|
176
|
+
})(ModalPosition = exports.ModalPosition || (exports.ModalPosition = {}));
|
|
177
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBdUJBOztHQUVHO0FBQ1UsUUFBQSxRQUFRLEdBQUcsQ0FBQyxhQUFhLEVBQUUsV0FBVyxFQUFFLGFBQWEsQ0FBVSxDQUFBO0FBWTVFOzs7O0dBSUc7QUFDSCxTQUFnQixLQUFLLENBQUMsS0FBYTtJQUNqQyxPQUFPLGdCQUFRLENBQUMsUUFBUSxDQUFDLEtBQVksQ0FBQyxDQUFBO0FBQ3hDLENBQUM7QUFGRCxzQkFFQztBQTRPRDs7R0FFRztBQUNILElBQVksY0FHWDtBQUhELFdBQVksY0FBYztJQUN4QixpREFBK0IsQ0FBQTtJQUMvQix1REFBcUMsQ0FBQTtBQUN2QyxDQUFDLEVBSFcsY0FBYyxHQUFkLHNCQUFjLEtBQWQsc0JBQWMsUUFHekI7QUFFRDs7R0FFRztBQUNILElBQVkscUJBSVg7QUFKRCxXQUFZLHFCQUFxQjtJQUMvQiw4REFBcUMsQ0FBQTtJQUNyQyw0REFBbUMsQ0FBQTtJQUNuQyx3REFBK0IsQ0FBQTtBQUNqQyxDQUFDLEVBSlcscUJBQXFCLEdBQXJCLDZCQUFxQixLQUFyQiw2QkFBcUIsUUFJaEM7QUEyQkQ7Ozs7OztHQU1HO0FBQ0gsSUFBWSxzQkFLWDtBQUxELFdBQVksc0JBQXNCO0lBQ2hDLG9EQUEwQixDQUFBO0lBQzFCLHNEQUE0QixDQUFBO0lBQzVCLHlDQUFlLENBQUE7SUFDZix1REFBNkIsQ0FBQTtBQUMvQixDQUFDLEVBTFcsc0JBQXNCLEdBQXRCLDhCQUFzQixLQUF0Qiw4QkFBc0IsUUFLakM7QUFFRDs7R0FFRztBQUNILElBQVksaUJBR1g7QUFIRCxXQUFZLGlCQUFpQjtJQUMzQiw2REFBVSxDQUFBO0lBQ1YsMkRBQVMsQ0FBQTtBQUNYLENBQUMsRUFIVyxpQkFBaUIsR0FBakIseUJBQWlCLEtBQWpCLHlCQUFpQixRQUc1QjtBQUVEOztHQUVHO0FBQ0gsSUFBWSwyQkFJWDtBQUpE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
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@ketch-sdk/ketch-types", "version": "1.4.
|
|
1
|
+
{"name": "@ketch-sdk/ketch-types", "version": "1.4.3", "description": "Ketch Types", "main": "./dist/index.js", "types": "./dist/index.d.ts", "scripts": {"all": "npm run lint && npm run format-check && npm run test && npm run build && npm run docs", "build": "tsc -p .", "lint": "eslint src/**/*.ts", "test": "jest --runInBand --passWithNoTests", "format": "prettier --write \"**/*.{ts,tsx,yml,yaml}\"", "format-check": "prettier --check '**/*.ts'", "docs": "typedoc --githubPages true --excludeInternal src/index.ts"}, "repository": {"type": "git", "url": "git+https://github.com/ketch-sdk/ketch-types.git"}, "author": "Ketch Kloud, Inc. (https://www.ketch.com/)", "license": "MIT", "homepage": "https://github.com/ketch-sdk/ketch-types", "bugs": {"url": "https://github.com/ketch-sdk/ketch-types/issues"}, "devDependencies": {"@jest/globals": "^29.3.1", "@types/jest": "^29.2.5", "@typescript-eslint/eslint-plugin": "^5.48.0", "@typescript-eslint/parser": "^5.48.0", "eslint": "^8.31.0", "eslint-config-prettier": "^8.6.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.2.0", "eslint-plugin-prettier": "^4.2.1", "jest": "^29.3.1", "jest-environment-jsdom": "^29.3.1", "jest-junit": "^15.0.0", "prettier": "^2.8.1", "ts-jest": "^29.0.3", "typedoc": "^0.23.23", "typescript": "^4.9.4"}, "files": ["./dist"]}
|
package/.editorconfig
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# top-most EditorConfig file
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
# Unix-style newlines with a newline ending every file
|
|
5
|
-
[*]
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 2
|
|
8
|
-
tab_width = 2
|
|
9
|
-
end_of_line = lf
|
|
10
|
-
charset = utf-8
|
|
11
|
-
trim_trailing_whitespace = true
|
|
12
|
-
insert_final_newline = true
|
|
13
|
-
|
package/.eslintignore
DELETED
package/.eslintrc.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"eslint:recommended",
|
|
4
|
-
"plugin:jest/recommended",
|
|
5
|
-
"plugin:jest/style",
|
|
6
|
-
"plugin:@typescript-eslint/recommended"
|
|
7
|
-
],
|
|
8
|
-
"env": {
|
|
9
|
-
"browser": true,
|
|
10
|
-
"es6": true,
|
|
11
|
-
"jest/globals": true
|
|
12
|
-
},
|
|
13
|
-
"globals": {
|
|
14
|
-
"Atomics": "readonly",
|
|
15
|
-
"SharedArrayBuffer": "readonly"
|
|
16
|
-
},
|
|
17
|
-
"parser": "@typescript-eslint/parser",
|
|
18
|
-
"parserOptions": {
|
|
19
|
-
"ecmaVersion": 2018,
|
|
20
|
-
"sourceType": "module"
|
|
21
|
-
},
|
|
22
|
-
"plugins": ["@typescript-eslint/eslint-plugin", "jest"],
|
|
23
|
-
"rules": {
|
|
24
|
-
"no-empty-function": "off",
|
|
25
|
-
"@typescript-eslint/no-empty-function": "off",
|
|
26
|
-
"valid-jsdoc": "off",
|
|
27
|
-
"max-len": ["error", 120],
|
|
28
|
-
"comma-dangle": "off",
|
|
29
|
-
"@typescript-eslint/no-explicit-any": "off"
|
|
30
|
-
}
|
|
31
|
-
}
|
package/.github/CODEOWNERS
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
* @sethyates
|
package/.github/CONTRIBUTING.md
DELETED
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
## Introduction
|
|
2
|
-
|
|
3
|
-
### Welcome!
|
|
4
|
-
|
|
5
|
-
First off, thank you for considering contributing.
|
|
6
|
-
|
|
7
|
-
Following these guidelines helps to communicate that you respect the time of the developers
|
|
8
|
-
managing and developing this open source project. In return, they should reciprocate that
|
|
9
|
-
respect in addressing your issue, assessing changes, and helping you finalize your pull requests.
|
|
10
|
-
|
|
11
|
-
This library is an open source project and we love to receive contributions from our community — you!
|
|
12
|
-
There are many ways to contribute, from writing tutorials or blog posts, improving the documentation,
|
|
13
|
-
submitting bug reports and feature requests or writing code which can be incorporated into this
|
|
14
|
-
library itself.
|
|
15
|
-
|
|
16
|
-
### Using the issue tracker
|
|
17
|
-
|
|
18
|
-
First things first: Do NOT report security vulnerabilities in public issues! Please disclose
|
|
19
|
-
responsibly by letting the [Ketch team](mailto:security@ketch.com) know upfront.
|
|
20
|
-
We will assess the issue as soon as possible on a best-effort basis and will give you an
|
|
21
|
-
estimate for when we have a fix and release available for an eventual public disclosure.
|
|
22
|
-
|
|
23
|
-
The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests, but please respect the following restrictions:
|
|
24
|
-
* Please do not use the issue tracker for personal support requests.
|
|
25
|
-
* Please do not derail or troll issues. Keep the discussion on topic and respect the opinions of others.
|
|
26
|
-
|
|
27
|
-
## Ground Rules
|
|
28
|
-
|
|
29
|
-
## Responsibilities
|
|
30
|
-
* Ensure that code that goes into core meets all requirements in this checklist:
|
|
31
|
-
* General
|
|
32
|
-
- [ ] Is this change useful just to me, or something that I think will benefit others greatly?
|
|
33
|
-
- [ ] Check for overlap with other PRs
|
|
34
|
-
- [ ] Think carefully about the long-term implications of the change. How will it affect existing projects that are dependent on this?
|
|
35
|
-
* Quality
|
|
36
|
-
- [ ] Is it consistent with all other code?
|
|
37
|
-
- [ ] Have you documented it appropriately?
|
|
38
|
-
- [ ] Is it free of lint?
|
|
39
|
-
- [ ] Do all of the existing tests work? Have you added tests to cover your changes?
|
|
40
|
-
- [ ] Take the time to get things right. PRs almost always require additional improvements to meet the bar for quality. Be very strict about quality. This usually takes several commits on top of the original PR.
|
|
41
|
-
* Create issues for any major changes and enhancements that you wish to make. Discuss things transparently and get community feedback.
|
|
42
|
-
* Keep feature versions as small as possible, preferably one new feature per version.
|
|
43
|
-
* Be welcoming to newcomers and encourage diverse new contributors from all backgrounds.
|
|
44
|
-
|
|
45
|
-
## Your First Contribution
|
|
46
|
-
|
|
47
|
-
Unsure where to begin contributing? You can start by looking through these beginner and help-wanted issues:
|
|
48
|
-
* Beginner issues - issues which should only require a few lines of code, and a test or two.
|
|
49
|
-
* Help wanted issues - issues which should be a bit more involved than beginner issues.
|
|
50
|
-
|
|
51
|
-
Both issue lists are sorted by total number of comments. While not perfect, number of
|
|
52
|
-
comments is a reasonable proxy for impact a given change will have.
|
|
53
|
-
|
|
54
|
-
Working on your first Pull Request? You can learn how from this *free* series,
|
|
55
|
-
[How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
|
|
56
|
-
|
|
57
|
-
At this point, you're ready to make your changes! Feel free to ask for help; everyone is a beginner at first.
|
|
58
|
-
|
|
59
|
-
If a maintainer asks you to "rebase" your PR, they're saying that a lot of code has changed, and that you need to update your branch so it's easier to merge.
|
|
60
|
-
|
|
61
|
-
## Getting started
|
|
62
|
-
|
|
63
|
-
### For something that is bigger than a one or two line fix:
|
|
64
|
-
|
|
65
|
-
1. Create your own fork of the code
|
|
66
|
-
2. Do the changes in your fork
|
|
67
|
-
3. If you like the change and think the project could use it:
|
|
68
|
-
* Be sure you have followed the code style for the project.
|
|
69
|
-
* Sign the Contributor License Agreement (CLA).
|
|
70
|
-
* Note the Code of Conduct.
|
|
71
|
-
* Send a pull request indicating that you have a CLA on file.
|
|
72
|
-
|
|
73
|
-
### For a small or "obvious" fix:
|
|
74
|
-
|
|
75
|
-
Small contributions such as fixing spelling errors, where the content is small enough to not be considered intellectual property, can be submitted by a contributor as a patch, without a CLA.
|
|
76
|
-
|
|
77
|
-
As a rule of thumb, changes are obvious fixes if they do not introduce any new functionality or creative thinking. As long as the change does not affect functionality, some likely examples include the following:
|
|
78
|
-
* Spelling / grammar fixes
|
|
79
|
-
* Typo correction, white space and formatting changes
|
|
80
|
-
* Comment clean up
|
|
81
|
-
* Bug fixes that change default return values or error codes stored in constants
|
|
82
|
-
* Adding logging messages or debugging output
|
|
83
|
-
* Changes to ‘metadata’ files like go.mod, .gitignore, build scripts, etc.
|
|
84
|
-
* Moving source files from one directory or package to another
|
|
85
|
-
|
|
86
|
-
## How to report a bug
|
|
87
|
-
|
|
88
|
-
If you find a security vulnerability, do NOT open an issue. Email [security@ketch.com](mailto:security@ketch.com) instead.
|
|
89
|
-
|
|
90
|
-
In order to determine whether you are dealing with a security issue, ask yourself these two questions:
|
|
91
|
-
* Can I access something that's not mine, or something I shouldn't have access to?
|
|
92
|
-
* Can I disable something for other people?
|
|
93
|
-
|
|
94
|
-
If the answer to either of those two questions are "yes", then you're probably dealing with a security issue. Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're unsure, just email us at [security@ketch.com](mailto:security@ketch.com).
|
|
95
|
-
|
|
96
|
-
When filing an issue, make sure to answer these five questions:
|
|
97
|
-
|
|
98
|
-
1. What version of Go are you using (go version)?
|
|
99
|
-
2. What did you do?
|
|
100
|
-
3. What did you expect to see?
|
|
101
|
-
4. What did you see instead?
|
|
102
|
-
|
|
103
|
-
## How to suggest a feature or enhancement
|
|
104
|
-
|
|
105
|
-
If you find yourself wishing for a feature that doesn't exist in this library, you are
|
|
106
|
-
probably not alone. There are bound to be others out there with similar needs.
|
|
107
|
-
Many of the features that this library has today have been added because our users saw
|
|
108
|
-
the need. Open an issue on our issues list on GitHub which describes the feature
|
|
109
|
-
you would like to see, why you need it, and how it should work.
|
|
110
|
-
|
|
111
|
-
The core team looks at Pull Requests on a regular basis in a weekly triage meeting.
|
|
112
|
-
|
|
113
|
-
After feedback has been given we expect responses within two weeks. After two weeks
|
|
114
|
-
we may close the pull request if it isn't showing any activity.
|
|
115
|
-
|
|
116
|
-
## Commit message and labeling conventions
|
|
117
|
-
|
|
118
|
-
We have very precise rules over how our git commit messages should be formatted. This leads to **more
|
|
119
|
-
readable messages** that are easy to follow when looking through the **project history**. Our tooling
|
|
120
|
-
also relies on it to properly assign release numbers.
|
|
121
|
-
|
|
122
|
-
Improperly formatted commit messages will result in your change not being merged.
|
|
123
|
-
|
|
124
|
-
### Commit Message Format
|
|
125
|
-
|
|
126
|
-
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
|
|
127
|
-
format that includes a **type**, a **scope** and a **subject**:
|
|
128
|
-
|
|
129
|
-
```html
|
|
130
|
-
<type>(<scope>): <subject>
|
|
131
|
-
<BLANK LINE>
|
|
132
|
-
<body>
|
|
133
|
-
<BLANK LINE>
|
|
134
|
-
<footer>
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
> Any line of the commit message cannot be longer 100 characters!
|
|
138
|
-
This allows the message to be easier to read on GitHub as well as in various Git tools.
|
|
139
|
-
|
|
140
|
-
##### Type
|
|
141
|
-
Must be one of the following:
|
|
142
|
-
|
|
143
|
-
* **feat**: A new feature
|
|
144
|
-
* **fix**: A bug fix
|
|
145
|
-
* **docs**: Documentation only changes
|
|
146
|
-
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
|
|
147
|
-
semi-colons, etc)
|
|
148
|
-
* **refactor**: A code change that neither fixes a bug nor adds a feature
|
|
149
|
-
* **perf**: A code change that improves performance
|
|
150
|
-
* **test**: Adding missing tests
|
|
151
|
-
* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
|
|
152
|
-
generation
|
|
153
|
-
|
|
154
|
-
##### Scope
|
|
155
|
-
The scope could be anything that helps specifying the scope (or feature) that is changing.
|
|
156
|
-
|
|
157
|
-
Examples
|
|
158
|
-
- fix(token):
|
|
159
|
-
- fix(vault):
|
|
160
|
-
|
|
161
|
-
##### Subject
|
|
162
|
-
The subject contains a succinct description of the change:
|
|
163
|
-
|
|
164
|
-
* use the imperative, present tense: "change" not "changed" nor "changes"
|
|
165
|
-
* don't capitalize first letter
|
|
166
|
-
* no dot (.) at the end
|
|
167
|
-
|
|
168
|
-
##### Body
|
|
169
|
-
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes"
|
|
170
|
-
The body should include the motivation for the change and contrast this with previous behavior.
|
|
171
|
-
|
|
172
|
-
##### Footer
|
|
173
|
-
The footer should contain any information about **Breaking Changes** and is also the place to
|
|
174
|
-
reference GitHub issues that this commit **Closes**, **Fixes**, or **Relates to**.
|
|
175
|
-
|
|
176
|
-
> Breaking Changes are intended to be highlighted in the ChangeLog as changes that will require
|
|
177
|
-
community users to modify their code after updating to a version that contains this commit.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!--- Provide a general summary of the issue in the Title above -->
|
|
2
|
-
|
|
3
|
-
## Detailed Description
|
|
4
|
-
<!--- Provide a detailed description of the change or addition you are proposing -->
|
|
5
|
-
|
|
6
|
-
## Context
|
|
7
|
-
<!--- Why is this change important to you? How would you use it? -->
|
|
8
|
-
<!--- How can it benefit other users? -->
|
|
9
|
-
|
|
10
|
-
## Possible Implementation
|
|
11
|
-
<!--- Not obligatory, but suggest an idea for implementing addition or change -->
|
|
12
|
-
|
|
13
|
-
## Your Environment
|
|
14
|
-
<!--- Include as many relevant details about the environment you experienced the bug in -->
|
|
15
|
-
* Version used:
|
|
16
|
-
* Environment name and version:
|
|
17
|
-
* Server type and version:
|
|
18
|
-
* Operating System and version:
|
|
19
|
-
* Link to your project:
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<!--- Provide a general summary of your changes in the Title above -->
|
|
2
|
-
<!--- Code generated by shipbuilder init 1.21.3. DO NOT EDIT. -->
|
|
3
|
-
|
|
4
|
-
## Description of this change
|
|
5
|
-
<!--- Describe your changes in detail -->
|
|
6
|
-
<!--- Why is this change required? What problem does it solve? -->
|
|
7
|
-
> Description here
|
|
8
|
-
|
|
9
|
-
## Why is this change being made?
|
|
10
|
-
- [ ] Chore (non-functional changes)
|
|
11
|
-
- [ ] Bug fix (non-breaking change that fixes an issue)
|
|
12
|
-
- [ ] New feature (non-breaking change that adds functionality)
|
|
13
|
-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
|
14
|
-
|
|
15
|
-
## How was this tested? How can the reviewer verify your testing?
|
|
16
|
-
<!--- Please describe in detail how you tested your changes. -->
|
|
17
|
-
<!--- Include details of your testing environment, and the tests you ran to -->
|
|
18
|
-
<!--- see how your change affects other areas of the code, etc. -->
|
|
19
|
-
|
|
20
|
-
## Related issues
|
|
21
|
-
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
|
|
22
|
-
<!--- Please link to the issue here: -->
|
|
23
|
-
|
|
24
|
-
## Checklist
|
|
25
|
-
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
|
|
26
|
-
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
|
|
27
|
-
- [ ] I have added tests to cover my changes.
|
|
28
|
-
- [ ] All new and existing tests passed.
|
|
29
|
-
- [ ] I have evaluated the security impact of this change, and [OWASP Secure Coding Practices](https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/migrated_content#) have been observed.
|
|
30
|
-
- [ ] I have informed stakeholders of my changes.
|
package/.github/dependabot.yml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Code generated by shipbuilder init 1.21.3. DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
version: 2
|
|
4
|
-
updates:
|
|
5
|
-
- package-ecosystem: "npm"
|
|
6
|
-
directory: "/"
|
|
7
|
-
schedule:
|
|
8
|
-
interval: "daily"
|
|
9
|
-
commit-message:
|
|
10
|
-
prefix: "chore"
|
|
11
|
-
include: "scope"
|
|
12
|
-
- package-ecosystem: "github-actions"
|
|
13
|
-
directory: "/"
|
|
14
|
-
schedule:
|
|
15
|
-
interval: "daily"
|
|
16
|
-
commit-message:
|
|
17
|
-
prefix: "chore"
|
|
18
|
-
include: "scope"
|
package/.github/release.yml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
changelog:
|
|
2
|
-
exclude:
|
|
3
|
-
labels:
|
|
4
|
-
- ignore-for-release
|
|
5
|
-
authors:
|
|
6
|
-
- dependabot
|
|
7
|
-
categories:
|
|
8
|
-
- title: Breaking Changes 🛠
|
|
9
|
-
labels:
|
|
10
|
-
- Semver-Major
|
|
11
|
-
- breaking-change
|
|
12
|
-
- title: Exciting New Features 🎉
|
|
13
|
-
labels:
|
|
14
|
-
- Semver-Minor
|
|
15
|
-
- enhancement
|
|
16
|
-
- title: Other Changes
|
|
17
|
-
labels:
|
|
18
|
-
- "*"
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# Code generated by shipbuilder init 1.21.3. DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
name: CI
|
|
4
|
-
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
branches: [main]
|
|
8
|
-
pull_request:
|
|
9
|
-
branches: [main]
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
build:
|
|
13
|
-
name: Build
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
env:
|
|
16
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
17
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
18
|
-
outputs:
|
|
19
|
-
version: ${{ steps.version.outputs.version }}
|
|
20
|
-
version-major: ${{ steps.version.outputs.version-major-only }}
|
|
21
|
-
version-minor: ${{ format('{0}.{1}', steps.version.outputs.version-major-only, steps.version.outputs.version-minor-only) }}
|
|
22
|
-
version-patch: ${{ format('{0}.{1}.{2}', steps.version.outputs.version-major-only, steps.version.outputs.version-minor-only, steps.version.outputs.version-patch-only) }}
|
|
23
|
-
permissions:
|
|
24
|
-
contents: read
|
|
25
|
-
steps:
|
|
26
|
-
- name: Checkout
|
|
27
|
-
uses: actions/checkout@v3
|
|
28
|
-
with:
|
|
29
|
-
fetch-depth: 0
|
|
30
|
-
- name: Generate next version
|
|
31
|
-
id: version
|
|
32
|
-
uses: conventional-actions/next-version@v1
|
|
33
|
-
- name: Setup Node
|
|
34
|
-
uses: actions/setup-node@v3
|
|
35
|
-
with:
|
|
36
|
-
always-auth: true
|
|
37
|
-
registry-url: https://registry.npmjs.com/
|
|
38
|
-
scope: ketch-sdk
|
|
39
|
-
node-version: 16
|
|
40
|
-
cache: "npm"
|
|
41
|
-
- name: Setup Node version
|
|
42
|
-
uses: conventional-actions/write-version@v1
|
|
43
|
-
with:
|
|
44
|
-
output_path: package.json
|
|
45
|
-
version: ${{ format('{0}.{1}.{2}', steps.version.outputs.version-major-only, steps.version.outputs.version-minor-only, steps.version.outputs.version-patch-only) }}
|
|
46
|
-
- name: Install dependencies
|
|
47
|
-
run: npm ci
|
|
48
|
-
- name: Check format
|
|
49
|
-
run: npm run format-check
|
|
50
|
-
- name: Check lint
|
|
51
|
-
run: npm run lint
|
|
52
|
-
- name: Check test
|
|
53
|
-
run: npm run test
|
|
54
|
-
- name: Build
|
|
55
|
-
run: npm run build
|
|
56
|
-
- name: Publish
|
|
57
|
-
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
|
58
|
-
run: npm publish --access public
|
|
59
|
-
env:
|
|
60
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
61
|
-
|
|
62
|
-
release:
|
|
63
|
-
name: Release
|
|
64
|
-
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
|
65
|
-
needs:
|
|
66
|
-
- build
|
|
67
|
-
runs-on: ubuntu-latest
|
|
68
|
-
permissions:
|
|
69
|
-
contents: write
|
|
70
|
-
steps:
|
|
71
|
-
- name: Create Release
|
|
72
|
-
uses: conventional-actions/create-release@v1
|
|
73
|
-
with:
|
|
74
|
-
tag_name: ${{ needs.build.outputs.version }}
|
|
75
|
-
artifacts: "*"
|
|
76
|
-
|
|
77
|
-
concurrency:
|
|
78
|
-
cancel-in-progress: true
|
|
79
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
package/.prettierignore
DELETED
package/.prettierrc
DELETED
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--light-code-background: #FFFFFF;
|
|
3
|
-
--dark-code-background: #1E1E1E;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@media (prefers-color-scheme: light) { :root {
|
|
7
|
-
--code-background: var(--light-code-background);
|
|
8
|
-
} }
|
|
9
|
-
|
|
10
|
-
@media (prefers-color-scheme: dark) { :root {
|
|
11
|
-
--code-background: var(--dark-code-background);
|
|
12
|
-
} }
|
|
13
|
-
|
|
14
|
-
:root[data-theme='light'] {
|
|
15
|
-
--code-background: var(--light-code-background);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:root[data-theme='dark'] {
|
|
19
|
-
--code-background: var(--dark-code-background);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
pre, code { background: var(--code-background); }
|