@oxyhq/core 1.11.24 → 2.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/README.md +5 -6
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/AuthManager.js +678 -4
- package/dist/cjs/AuthManagerTypes.js +13 -0
- package/dist/cjs/CrossDomainAuth.js +45 -3
- package/dist/cjs/OxyServices.base.js +16 -0
- package/dist/cjs/i18n/locales/ar-SA.json +83 -0
- package/dist/cjs/i18n/locales/ca-ES.json +83 -0
- package/dist/cjs/i18n/locales/de-DE.json +83 -0
- package/dist/cjs/i18n/locales/en-US.json +83 -0
- package/dist/cjs/i18n/locales/es-ES.json +99 -4
- package/dist/cjs/i18n/locales/fr-FR.json +83 -0
- package/dist/cjs/i18n/locales/it-IT.json +83 -0
- package/dist/cjs/i18n/locales/ja-JP.json +83 -0
- package/dist/cjs/i18n/locales/ko-KR.json +83 -0
- package/dist/cjs/i18n/locales/locales/ar-SA.json +83 -1
- package/dist/cjs/i18n/locales/locales/ca-ES.json +83 -1
- package/dist/cjs/i18n/locales/locales/de-DE.json +83 -1
- package/dist/cjs/i18n/locales/locales/en-US.json +83 -0
- package/dist/cjs/i18n/locales/locales/es-ES.json +99 -4
- package/dist/cjs/i18n/locales/locales/fr-FR.json +83 -1
- package/dist/cjs/i18n/locales/locales/it-IT.json +83 -1
- package/dist/cjs/i18n/locales/locales/ja-JP.json +200 -117
- package/dist/cjs/i18n/locales/locales/ko-KR.json +83 -1
- package/dist/cjs/i18n/locales/locales/pt-PT.json +83 -1
- package/dist/cjs/i18n/locales/locales/zh-CN.json +83 -1
- package/dist/cjs/i18n/locales/pt-PT.json +83 -0
- package/dist/cjs/i18n/locales/zh-CN.json +83 -0
- package/dist/cjs/index.js +114 -57
- package/dist/cjs/mixins/OxyServices.auth.js +235 -0
- package/dist/cjs/mixins/OxyServices.fedcm.js +36 -0
- package/dist/cjs/mixins/OxyServices.popup.js +61 -1
- package/dist/cjs/mixins/OxyServices.user.js +18 -0
- package/dist/cjs/utils/accountUtils.js +64 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/AuthManager.js +678 -4
- package/dist/esm/AuthManagerTypes.js +12 -0
- package/dist/esm/CrossDomainAuth.js +45 -3
- package/dist/esm/OxyServices.base.js +16 -0
- package/dist/esm/i18n/locales/ar-SA.json +83 -0
- package/dist/esm/i18n/locales/ca-ES.json +83 -0
- package/dist/esm/i18n/locales/de-DE.json +83 -0
- package/dist/esm/i18n/locales/en-US.json +83 -0
- package/dist/esm/i18n/locales/es-ES.json +99 -4
- package/dist/esm/i18n/locales/fr-FR.json +83 -0
- package/dist/esm/i18n/locales/it-IT.json +83 -0
- package/dist/esm/i18n/locales/ja-JP.json +83 -0
- package/dist/esm/i18n/locales/ko-KR.json +83 -0
- package/dist/esm/i18n/locales/locales/ar-SA.json +83 -1
- package/dist/esm/i18n/locales/locales/ca-ES.json +83 -1
- package/dist/esm/i18n/locales/locales/de-DE.json +83 -1
- package/dist/esm/i18n/locales/locales/en-US.json +83 -0
- package/dist/esm/i18n/locales/locales/es-ES.json +99 -4
- package/dist/esm/i18n/locales/locales/fr-FR.json +83 -1
- package/dist/esm/i18n/locales/locales/it-IT.json +83 -1
- package/dist/esm/i18n/locales/locales/ja-JP.json +200 -117
- package/dist/esm/i18n/locales/locales/ko-KR.json +83 -1
- package/dist/esm/i18n/locales/locales/pt-PT.json +83 -1
- package/dist/esm/i18n/locales/locales/zh-CN.json +83 -1
- package/dist/esm/i18n/locales/pt-PT.json +83 -0
- package/dist/esm/i18n/locales/zh-CN.json +83 -0
- package/dist/esm/index.js +69 -26
- package/dist/esm/mixins/OxyServices.auth.js +235 -0
- package/dist/esm/mixins/OxyServices.fedcm.js +36 -0
- package/dist/esm/mixins/OxyServices.popup.js +61 -1
- package/dist/esm/mixins/OxyServices.user.js +18 -0
- package/dist/esm/utils/accountUtils.js +61 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/AuthManager.d.ts +243 -3
- package/dist/types/AuthManagerTypes.d.ts +68 -0
- package/dist/types/CrossDomainAuth.d.ts +23 -0
- package/dist/types/OxyServices.base.d.ts +14 -0
- package/dist/types/OxyServices.d.ts +7 -0
- package/dist/types/index.d.ts +28 -17
- package/dist/types/mixins/OxyServices.analytics.d.ts +1 -0
- package/dist/types/mixins/OxyServices.appData.d.ts +1 -0
- package/dist/types/mixins/OxyServices.assets.d.ts +4 -1
- package/dist/types/mixins/OxyServices.auth.d.ts +73 -1
- package/dist/types/mixins/OxyServices.contacts.d.ts +1 -0
- package/dist/types/mixins/OxyServices.developer.d.ts +1 -0
- package/dist/types/mixins/OxyServices.devices.d.ts +1 -0
- package/dist/types/mixins/OxyServices.features.d.ts +2 -5
- package/dist/types/mixins/OxyServices.fedcm.d.ts +34 -0
- package/dist/types/mixins/OxyServices.karma.d.ts +1 -0
- package/dist/types/mixins/OxyServices.language.d.ts +1 -0
- package/dist/types/mixins/OxyServices.location.d.ts +1 -0
- package/dist/types/mixins/OxyServices.managedAccounts.d.ts +1 -0
- package/dist/types/mixins/OxyServices.payment.d.ts +1 -0
- package/dist/types/mixins/OxyServices.popup.d.ts +40 -0
- package/dist/types/mixins/OxyServices.privacy.d.ts +1 -0
- package/dist/types/mixins/OxyServices.redirect.d.ts +1 -0
- package/dist/types/mixins/OxyServices.security.d.ts +1 -0
- package/dist/types/mixins/OxyServices.topics.d.ts +1 -0
- package/dist/types/mixins/OxyServices.user.d.ts +16 -1
- package/dist/types/mixins/OxyServices.utility.d.ts +1 -0
- package/dist/types/models/interfaces.d.ts +98 -0
- package/dist/types/models/session.d.ts +8 -0
- package/dist/types/utils/accountUtils.d.ts +33 -0
- package/package.json +9 -18
- package/src/AuthManager.ts +776 -7
- package/src/AuthManagerTypes.ts +72 -0
- package/src/CrossDomainAuth.ts +54 -3
- package/src/OxyServices.base.ts +17 -0
- package/src/OxyServices.ts +7 -0
- package/src/__tests__/authManager.cookiePath.test.ts +339 -0
- package/src/__tests__/authManager.security.test.ts +342 -0
- package/src/__tests__/crossDomainAuth.test.ts +191 -0
- package/src/i18n/locales/ar-SA.json +83 -1
- package/src/i18n/locales/ca-ES.json +83 -1
- package/src/i18n/locales/de-DE.json +83 -1
- package/src/i18n/locales/en-US.json +83 -0
- package/src/i18n/locales/es-ES.json +99 -4
- package/src/i18n/locales/fr-FR.json +83 -1
- package/src/i18n/locales/it-IT.json +83 -1
- package/src/i18n/locales/ja-JP.json +200 -117
- package/src/i18n/locales/ko-KR.json +83 -1
- package/src/i18n/locales/pt-PT.json +83 -1
- package/src/i18n/locales/zh-CN.json +83 -1
- package/src/index.ts +295 -112
- package/src/mixins/OxyServices.auth.ts +268 -1
- package/src/mixins/OxyServices.fedcm.ts +63 -0
- package/src/mixins/OxyServices.popup.ts +79 -1
- package/src/mixins/OxyServices.user.ts +33 -1
- package/src/mixins/__tests__/popup.test.ts +307 -0
- package/src/mixins/__tests__/sessionBaseUrl.test.ts +61 -0
- package/src/models/interfaces.ts +116 -0
- package/src/models/session.ts +8 -0
- package/src/utils/accountUtils.ts +84 -0
- package/dist/cjs/crypto/index.js +0 -22
- package/dist/cjs/shared/index.js +0 -70
- package/dist/cjs/utils/index.js +0 -26
- package/dist/esm/crypto/index.js +0 -13
- package/dist/esm/shared/index.js +0 -31
- package/dist/esm/utils/index.js +0 -7
- package/dist/types/crypto/index.d.ts +0 -11
- package/dist/types/shared/index.d.ts +0 -28
- package/dist/types/utils/index.d.ts +0 -6
- package/src/crypto/index.ts +0 -30
- package/src/shared/index.ts +0 -82
- package/src/utils/index.ts +0 -21
|
@@ -114,6 +114,89 @@
|
|
|
114
114
|
"email": "Email",
|
|
115
115
|
"password": "Palavra-passe",
|
|
116
116
|
"confirmPassword": "Confirmar palavra-passe"
|
|
117
|
+
},
|
|
118
|
+
"revoke": "Revoke"
|
|
119
|
+
},
|
|
120
|
+
"notifications": {
|
|
121
|
+
"title": "Notifications",
|
|
122
|
+
"subtitle": "Manage push, email, and security alerts",
|
|
123
|
+
"updateError": "Failed to update notification preferences",
|
|
124
|
+
"sections": {
|
|
125
|
+
"channels": "Channels",
|
|
126
|
+
"alerts": "Alerts",
|
|
127
|
+
"marketing": "Marketing"
|
|
128
|
+
},
|
|
129
|
+
"items": {
|
|
130
|
+
"push": {
|
|
131
|
+
"title": "Push notifications",
|
|
132
|
+
"subtitle": "Real-time alerts on your devices"
|
|
133
|
+
},
|
|
134
|
+
"emailDigest": {
|
|
135
|
+
"title": "Email digest",
|
|
136
|
+
"subtitle": "Periodic summary of your account activity"
|
|
137
|
+
},
|
|
138
|
+
"securityAlerts": {
|
|
139
|
+
"title": "Security alerts",
|
|
140
|
+
"subtitle": "Sign-ins, recovery codes, and key changes"
|
|
141
|
+
},
|
|
142
|
+
"marketingEmails": {
|
|
143
|
+
"title": "Marketing emails",
|
|
144
|
+
"subtitle": "Product news and occasional offers"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"preferences": {
|
|
149
|
+
"title": "Preferences",
|
|
150
|
+
"subtitle": "Theme, motion, and regional settings",
|
|
151
|
+
"sections": {
|
|
152
|
+
"appearance": "Appearance",
|
|
153
|
+
"language": "Language",
|
|
154
|
+
"region": "Region"
|
|
155
|
+
},
|
|
156
|
+
"theme": {
|
|
157
|
+
"light": "Light",
|
|
158
|
+
"dark": "Dark",
|
|
159
|
+
"system": "System default"
|
|
160
|
+
},
|
|
161
|
+
"items": {
|
|
162
|
+
"theme": {
|
|
163
|
+
"title": "Theme"
|
|
164
|
+
},
|
|
165
|
+
"reduceMotion": {
|
|
166
|
+
"title": "Reduce motion",
|
|
167
|
+
"subtitle": "Minimise animations across Oxy apps",
|
|
168
|
+
"systemOn": "Following system: reduce motion is on"
|
|
169
|
+
},
|
|
170
|
+
"language": {
|
|
171
|
+
"title": "Language"
|
|
172
|
+
},
|
|
173
|
+
"timezone": {
|
|
174
|
+
"title": "Timezone",
|
|
175
|
+
"unknown": "Unable to detect timezone"
|
|
176
|
+
},
|
|
177
|
+
"about": {
|
|
178
|
+
"title": "About preferences",
|
|
179
|
+
"subtitle": "Preferences sync across every Oxy app you sign into"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"connectedApps": {
|
|
184
|
+
"title": "Connected apps",
|
|
185
|
+
"subtitle": "Manage third-party app access",
|
|
186
|
+
"empty": {
|
|
187
|
+
"title": "No connected apps",
|
|
188
|
+
"subtitle": "Apps you authorize to sign in with your Oxy account will appear here"
|
|
189
|
+
},
|
|
190
|
+
"item": {
|
|
191
|
+
"lastUsed": "Last used {{relative}}"
|
|
192
|
+
},
|
|
193
|
+
"confirm": {
|
|
194
|
+
"title": "Revoke access",
|
|
195
|
+
"message": "Revoke {{name}}'s access to your Oxy account?"
|
|
196
|
+
},
|
|
197
|
+
"toasts": {
|
|
198
|
+
"revoked": "Revoked access for {{name}}",
|
|
199
|
+
"revokeFailed": "Failed to revoke access"
|
|
117
200
|
}
|
|
118
201
|
}
|
|
119
202
|
}
|
|
@@ -114,6 +114,89 @@
|
|
|
114
114
|
"email": "电子邮件",
|
|
115
115
|
"password": "密码",
|
|
116
116
|
"confirmPassword": "确认密码"
|
|
117
|
+
},
|
|
118
|
+
"revoke": "Revoke"
|
|
119
|
+
},
|
|
120
|
+
"notifications": {
|
|
121
|
+
"title": "Notifications",
|
|
122
|
+
"subtitle": "Manage push, email, and security alerts",
|
|
123
|
+
"updateError": "Failed to update notification preferences",
|
|
124
|
+
"sections": {
|
|
125
|
+
"channels": "Channels",
|
|
126
|
+
"alerts": "Alerts",
|
|
127
|
+
"marketing": "Marketing"
|
|
128
|
+
},
|
|
129
|
+
"items": {
|
|
130
|
+
"push": {
|
|
131
|
+
"title": "Push notifications",
|
|
132
|
+
"subtitle": "Real-time alerts on your devices"
|
|
133
|
+
},
|
|
134
|
+
"emailDigest": {
|
|
135
|
+
"title": "Email digest",
|
|
136
|
+
"subtitle": "Periodic summary of your account activity"
|
|
137
|
+
},
|
|
138
|
+
"securityAlerts": {
|
|
139
|
+
"title": "Security alerts",
|
|
140
|
+
"subtitle": "Sign-ins, recovery codes, and key changes"
|
|
141
|
+
},
|
|
142
|
+
"marketingEmails": {
|
|
143
|
+
"title": "Marketing emails",
|
|
144
|
+
"subtitle": "Product news and occasional offers"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"preferences": {
|
|
149
|
+
"title": "Preferences",
|
|
150
|
+
"subtitle": "Theme, motion, and regional settings",
|
|
151
|
+
"sections": {
|
|
152
|
+
"appearance": "Appearance",
|
|
153
|
+
"language": "Language",
|
|
154
|
+
"region": "Region"
|
|
155
|
+
},
|
|
156
|
+
"theme": {
|
|
157
|
+
"light": "Light",
|
|
158
|
+
"dark": "Dark",
|
|
159
|
+
"system": "System default"
|
|
160
|
+
},
|
|
161
|
+
"items": {
|
|
162
|
+
"theme": {
|
|
163
|
+
"title": "Theme"
|
|
164
|
+
},
|
|
165
|
+
"reduceMotion": {
|
|
166
|
+
"title": "Reduce motion",
|
|
167
|
+
"subtitle": "Minimise animations across Oxy apps",
|
|
168
|
+
"systemOn": "Following system: reduce motion is on"
|
|
169
|
+
},
|
|
170
|
+
"language": {
|
|
171
|
+
"title": "Language"
|
|
172
|
+
},
|
|
173
|
+
"timezone": {
|
|
174
|
+
"title": "Timezone",
|
|
175
|
+
"unknown": "Unable to detect timezone"
|
|
176
|
+
},
|
|
177
|
+
"about": {
|
|
178
|
+
"title": "About preferences",
|
|
179
|
+
"subtitle": "Preferences sync across every Oxy app you sign into"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"connectedApps": {
|
|
184
|
+
"title": "Connected apps",
|
|
185
|
+
"subtitle": "Manage third-party app access",
|
|
186
|
+
"empty": {
|
|
187
|
+
"title": "No connected apps",
|
|
188
|
+
"subtitle": "Apps you authorize to sign in with your Oxy account will appear here"
|
|
189
|
+
},
|
|
190
|
+
"item": {
|
|
191
|
+
"lastUsed": "Last used {{relative}}"
|
|
192
|
+
},
|
|
193
|
+
"confirm": {
|
|
194
|
+
"title": "Revoke access",
|
|
195
|
+
"message": "Revoke {{name}}'s access to your Oxy account?"
|
|
196
|
+
},
|
|
197
|
+
"toasts": {
|
|
198
|
+
"revoked": "Revoked access for {{name}}",
|
|
199
|
+
"revokeFailed": "Failed to revoke access"
|
|
117
200
|
}
|
|
118
201
|
}
|
|
119
202
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -13,27 +13,19 @@
|
|
|
13
13
|
*
|
|
14
14
|
* const user = await oxyClient.signIn(publicKey);
|
|
15
15
|
* ```
|
|
16
|
+
*
|
|
17
|
+
* Every export below is NOMINAL — no `export *`, no barrels, no compat shims.
|
|
18
|
+
* If a symbol does not appear here, it is NOT part of the public API.
|
|
16
19
|
*/
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
-
}
|
|
23
|
-
Object.defineProperty(o, k2, desc);
|
|
24
|
-
}) : (function(o, m, k, k2) {
|
|
25
|
-
if (k2 === undefined) k2 = k;
|
|
26
|
-
o[k2] = m[k];
|
|
27
|
-
}));
|
|
28
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
29
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30
|
-
};
|
|
31
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
21
|
+
exports.normalizeColorScheme = exports.normalizeTheme = exports.getContrastTextColor = exports.isLightColor = exports.withOpacity = exports.rgbToHex = exports.hexToRgb = exports.lightenColor = exports.darkenColor = exports.isAndroid = exports.isIOS = exports.isNative = exports.isWeb = exports.setPlatformOS = exports.getPlatformOS = exports.isRTLLocale = exports.normalizeLanguageCode = exports.getNativeLanguageName = exports.getLanguageName = exports.getLanguageMetadata = exports.SUPPORTED_LANGUAGES = exports.TopicSource = exports.TopicType = exports.SECURITY_EVENT_SEVERITY_MAP = exports.DeviceManager = exports.RecoveryPhraseService = exports.SignatureService = exports.IdentityPersistError = exports.IdentityAlreadyExistsError = exports.KeyManager = exports.sessionsArraysEqual = exports.normalizeAndSortSessions = exports.mergeSessions = exports.authenticatedApiCall = exports.withAuthErrorHandling = exports.isAuthenticationError = exports.ensureValidToken = exports.AuthenticationFailedError = exports.SessionSyncRequiredError = exports.OxyAppDataIdentifierError = exports.ServiceCredentialMismatchError = exports.createCrossDomainAuth = exports.CrossDomainAuth = exports.createAuthManager = exports.AuthManager = exports.oxyClient = exports.OXY_CLOUD_URL = exports.OxyAuthenticationTimeoutError = exports.OxyAuthenticationError = exports.OxyServices = void 0;
|
|
22
|
+
exports.isValidURL = exports.isValidUUID = exports.isValidObject = exports.isValidArray = exports.isRequiredBoolean = exports.isRequiredNumber = exports.isRequiredString = exports.isValidPassword = exports.isValidUsername = exports.isValidEmail = exports.PASSWORD_REGEX = exports.USERNAME_REGEX = exports.EMAIL_REGEX = exports.retryAsync = exports.validateRequiredFields = exports.handleHttpError = exports.createApiError = exports.ErrorCodes = exports.safeJsonParse = exports.buildPaginationParams = exports.buildUrl = exports.buildSearchParams = exports.translate = exports.createDebugLogger = exports.debugError = exports.debugWarn = exports.debugLog = exports.isDev = exports.withRetry = exports.delay = exports.shouldAllowRequest = exports.recordSuccess = exports.recordFailure = exports.calculateBackoffInterval = exports.createCircuitBreakerState = exports.DEFAULT_CIRCUIT_BREAKER_CONFIG = exports.isRetryableError = exports.isNetworkError = exports.isServerError = exports.isRateLimitError = exports.isNotFoundError = exports.isForbiddenError = exports.isUnauthorizedError = exports.isAlreadyRegisteredError = exports.getErrorMessage = exports.getErrorStatus = exports.HttpStatus = exports.getSystemColorScheme = exports.systemPrefersDarkMode = exports.getOppositeTheme = void 0;
|
|
23
|
+
exports.packageInfo = exports.getAccountColor = exports.mergeAccountsFromRefreshAll = exports.formatPublicKeyHandle = exports.getAccountFallbackHandle = exports.getAccountDisplayName = exports.createQuickAccount = exports.buildAccountsArray = exports.updateAvatarVisibility = exports.logPerformance = exports.logPayment = exports.logDevice = exports.logUser = exports.logSession = exports.logApi = exports.logAuth = exports.LogLevel = exports.logger = exports.validateAndSanitizeUserInput = exports.isValidObjectId = exports.sanitizeHTML = exports.sanitizeString = exports.isValidFileType = exports.isValidFileSize = exports.isValidDate = void 0;
|
|
34
24
|
// Ensure crypto polyfills are loaded before anything else
|
|
35
25
|
require("./crypto/polyfill");
|
|
36
|
-
//
|
|
26
|
+
// ---------------------------------------------------------------------------
|
|
27
|
+
// API client
|
|
28
|
+
// ---------------------------------------------------------------------------
|
|
37
29
|
var OxyServices_1 = require("./OxyServices");
|
|
38
30
|
Object.defineProperty(exports, "OxyServices", { enumerable: true, get: function () { return OxyServices_1.OxyServices; } });
|
|
39
31
|
Object.defineProperty(exports, "OxyAuthenticationError", { enumerable: true, get: function () { return OxyServices_1.OxyAuthenticationError; } });
|
|
@@ -41,7 +33,9 @@ Object.defineProperty(exports, "OxyAuthenticationTimeoutError", { enumerable: tr
|
|
|
41
33
|
var OxyServices_2 = require("./OxyServices");
|
|
42
34
|
Object.defineProperty(exports, "OXY_CLOUD_URL", { enumerable: true, get: function () { return OxyServices_2.OXY_CLOUD_URL; } });
|
|
43
35
|
Object.defineProperty(exports, "oxyClient", { enumerable: true, get: function () { return OxyServices_2.oxyClient; } });
|
|
44
|
-
//
|
|
36
|
+
// ---------------------------------------------------------------------------
|
|
37
|
+
// Authentication
|
|
38
|
+
// ---------------------------------------------------------------------------
|
|
45
39
|
var AuthManager_1 = require("./AuthManager");
|
|
46
40
|
Object.defineProperty(exports, "AuthManager", { enumerable: true, get: function () { return AuthManager_1.AuthManager; } });
|
|
47
41
|
Object.defineProperty(exports, "createAuthManager", { enumerable: true, get: function () { return AuthManager_1.createAuthManager; } });
|
|
@@ -52,23 +46,48 @@ var OxyServices_auth_1 = require("./mixins/OxyServices.auth");
|
|
|
52
46
|
Object.defineProperty(exports, "ServiceCredentialMismatchError", { enumerable: true, get: function () { return OxyServices_auth_1.ServiceCredentialMismatchError; } });
|
|
53
47
|
var OxyServices_appData_1 = require("./mixins/OxyServices.appData");
|
|
54
48
|
Object.defineProperty(exports, "OxyAppDataIdentifierError", { enumerable: true, get: function () { return OxyServices_appData_1.OxyAppDataIdentifierError; } });
|
|
55
|
-
//
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Object.defineProperty(exports, "
|
|
60
|
-
Object.defineProperty(exports, "
|
|
61
|
-
Object.defineProperty(exports, "
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
49
|
+
// ---------------------------------------------------------------------------
|
|
50
|
+
// Auth helpers (token refresh, error normalisation, retry policies)
|
|
51
|
+
// ---------------------------------------------------------------------------
|
|
52
|
+
var authHelpers_1 = require("./utils/authHelpers");
|
|
53
|
+
Object.defineProperty(exports, "SessionSyncRequiredError", { enumerable: true, get: function () { return authHelpers_1.SessionSyncRequiredError; } });
|
|
54
|
+
Object.defineProperty(exports, "AuthenticationFailedError", { enumerable: true, get: function () { return authHelpers_1.AuthenticationFailedError; } });
|
|
55
|
+
Object.defineProperty(exports, "ensureValidToken", { enumerable: true, get: function () { return authHelpers_1.ensureValidToken; } });
|
|
56
|
+
Object.defineProperty(exports, "isAuthenticationError", { enumerable: true, get: function () { return authHelpers_1.isAuthenticationError; } });
|
|
57
|
+
Object.defineProperty(exports, "withAuthErrorHandling", { enumerable: true, get: function () { return authHelpers_1.withAuthErrorHandling; } });
|
|
58
|
+
Object.defineProperty(exports, "authenticatedApiCall", { enumerable: true, get: function () { return authHelpers_1.authenticatedApiCall; } });
|
|
59
|
+
// ---------------------------------------------------------------------------
|
|
60
|
+
// Sessions
|
|
61
|
+
// ---------------------------------------------------------------------------
|
|
62
|
+
var sessionUtils_1 = require("./utils/sessionUtils");
|
|
63
|
+
Object.defineProperty(exports, "mergeSessions", { enumerable: true, get: function () { return sessionUtils_1.mergeSessions; } });
|
|
64
|
+
Object.defineProperty(exports, "normalizeAndSortSessions", { enumerable: true, get: function () { return sessionUtils_1.normalizeAndSortSessions; } });
|
|
65
|
+
Object.defineProperty(exports, "sessionsArraysEqual", { enumerable: true, get: function () { return sessionUtils_1.sessionsArraysEqual; } });
|
|
66
|
+
// ---------------------------------------------------------------------------
|
|
67
|
+
// Crypto / identity
|
|
68
|
+
// ---------------------------------------------------------------------------
|
|
69
|
+
var keyManager_1 = require("./crypto/keyManager");
|
|
70
|
+
Object.defineProperty(exports, "KeyManager", { enumerable: true, get: function () { return keyManager_1.KeyManager; } });
|
|
71
|
+
Object.defineProperty(exports, "IdentityAlreadyExistsError", { enumerable: true, get: function () { return keyManager_1.IdentityAlreadyExistsError; } });
|
|
72
|
+
Object.defineProperty(exports, "IdentityPersistError", { enumerable: true, get: function () { return keyManager_1.IdentityPersistError; } });
|
|
73
|
+
var signatureService_1 = require("./crypto/signatureService");
|
|
74
|
+
Object.defineProperty(exports, "SignatureService", { enumerable: true, get: function () { return signatureService_1.SignatureService; } });
|
|
75
|
+
var recoveryPhrase_1 = require("./crypto/recoveryPhrase");
|
|
76
|
+
Object.defineProperty(exports, "RecoveryPhraseService", { enumerable: true, get: function () { return recoveryPhrase_1.RecoveryPhraseService; } });
|
|
77
|
+
// ---------------------------------------------------------------------------
|
|
78
|
+
// Devices
|
|
79
|
+
// ---------------------------------------------------------------------------
|
|
80
|
+
var deviceManager_1 = require("./utils/deviceManager");
|
|
81
|
+
Object.defineProperty(exports, "DeviceManager", { enumerable: true, get: function () { return deviceManager_1.DeviceManager; } });
|
|
82
|
+
var interfaces_1 = require("./models/interfaces");
|
|
83
|
+
Object.defineProperty(exports, "SECURITY_EVENT_SEVERITY_MAP", { enumerable: true, get: function () { return interfaces_1.SECURITY_EVENT_SEVERITY_MAP; } });
|
|
84
|
+
// Topic enums + type
|
|
65
85
|
var Topic_1 = require("./models/Topic");
|
|
66
86
|
Object.defineProperty(exports, "TopicType", { enumerable: true, get: function () { return Topic_1.TopicType; } });
|
|
67
87
|
Object.defineProperty(exports, "TopicSource", { enumerable: true, get: function () { return Topic_1.TopicSource; } });
|
|
68
|
-
//
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// --- Language Utilities ---
|
|
88
|
+
// ---------------------------------------------------------------------------
|
|
89
|
+
// Languages
|
|
90
|
+
// ---------------------------------------------------------------------------
|
|
72
91
|
var languageUtils_1 = require("./utils/languageUtils");
|
|
73
92
|
Object.defineProperty(exports, "SUPPORTED_LANGUAGES", { enumerable: true, get: function () { return languageUtils_1.SUPPORTED_LANGUAGES; } });
|
|
74
93
|
Object.defineProperty(exports, "getLanguageMetadata", { enumerable: true, get: function () { return languageUtils_1.getLanguageMetadata; } });
|
|
@@ -76,7 +95,9 @@ Object.defineProperty(exports, "getLanguageName", { enumerable: true, get: funct
|
|
|
76
95
|
Object.defineProperty(exports, "getNativeLanguageName", { enumerable: true, get: function () { return languageUtils_1.getNativeLanguageName; } });
|
|
77
96
|
Object.defineProperty(exports, "normalizeLanguageCode", { enumerable: true, get: function () { return languageUtils_1.normalizeLanguageCode; } });
|
|
78
97
|
Object.defineProperty(exports, "isRTLLocale", { enumerable: true, get: function () { return languageUtils_1.isRTLLocale; } });
|
|
79
|
-
//
|
|
98
|
+
// ---------------------------------------------------------------------------
|
|
99
|
+
// Platform detection
|
|
100
|
+
// ---------------------------------------------------------------------------
|
|
80
101
|
var platform_1 = require("./utils/platform");
|
|
81
102
|
Object.defineProperty(exports, "getPlatformOS", { enumerable: true, get: function () { return platform_1.getPlatformOS; } });
|
|
82
103
|
Object.defineProperty(exports, "setPlatformOS", { enumerable: true, get: function () { return platform_1.setPlatformOS; } });
|
|
@@ -84,7 +105,9 @@ Object.defineProperty(exports, "isWeb", { enumerable: true, get: function () { r
|
|
|
84
105
|
Object.defineProperty(exports, "isNative", { enumerable: true, get: function () { return platform_1.isNative; } });
|
|
85
106
|
Object.defineProperty(exports, "isIOS", { enumerable: true, get: function () { return platform_1.isIOS; } });
|
|
86
107
|
Object.defineProperty(exports, "isAndroid", { enumerable: true, get: function () { return platform_1.isAndroid; } });
|
|
87
|
-
//
|
|
108
|
+
// ---------------------------------------------------------------------------
|
|
109
|
+
// Colour / theme utilities
|
|
110
|
+
// ---------------------------------------------------------------------------
|
|
88
111
|
var colorUtils_1 = require("./shared/utils/colorUtils");
|
|
89
112
|
Object.defineProperty(exports, "darkenColor", { enumerable: true, get: function () { return colorUtils_1.darkenColor; } });
|
|
90
113
|
Object.defineProperty(exports, "lightenColor", { enumerable: true, get: function () { return colorUtils_1.lightenColor; } });
|
|
@@ -99,6 +122,9 @@ Object.defineProperty(exports, "normalizeColorScheme", { enumerable: true, get:
|
|
|
99
122
|
Object.defineProperty(exports, "getOppositeTheme", { enumerable: true, get: function () { return themeUtils_1.getOppositeTheme; } });
|
|
100
123
|
Object.defineProperty(exports, "systemPrefersDarkMode", { enumerable: true, get: function () { return themeUtils_1.systemPrefersDarkMode; } });
|
|
101
124
|
Object.defineProperty(exports, "getSystemColorScheme", { enumerable: true, get: function () { return themeUtils_1.getSystemColorScheme; } });
|
|
125
|
+
// ---------------------------------------------------------------------------
|
|
126
|
+
// HTTP / error / network helpers
|
|
127
|
+
// ---------------------------------------------------------------------------
|
|
102
128
|
var errorUtils_1 = require("./shared/utils/errorUtils");
|
|
103
129
|
Object.defineProperty(exports, "HttpStatus", { enumerable: true, get: function () { return errorUtils_1.HttpStatus; } });
|
|
104
130
|
Object.defineProperty(exports, "getErrorStatus", { enumerable: true, get: function () { return errorUtils_1.getErrorStatus; } });
|
|
@@ -126,27 +152,19 @@ Object.defineProperty(exports, "debugLog", { enumerable: true, get: function ()
|
|
|
126
152
|
Object.defineProperty(exports, "debugWarn", { enumerable: true, get: function () { return debugUtils_1.debugWarn; } });
|
|
127
153
|
Object.defineProperty(exports, "debugError", { enumerable: true, get: function () { return debugUtils_1.debugError; } });
|
|
128
154
|
Object.defineProperty(exports, "createDebugLogger", { enumerable: true, get: function () { return debugUtils_1.createDebugLogger; } });
|
|
129
|
-
//
|
|
155
|
+
// ---------------------------------------------------------------------------
|
|
156
|
+
// i18n
|
|
157
|
+
// ---------------------------------------------------------------------------
|
|
130
158
|
var i18n_1 = require("./i18n");
|
|
131
159
|
Object.defineProperty(exports, "translate", { enumerable: true, get: function () { return i18n_1.translate; } });
|
|
132
|
-
//
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Object.defineProperty(exports, "
|
|
137
|
-
Object.defineProperty(exports, "
|
|
138
|
-
Object.defineProperty(exports, "
|
|
139
|
-
Object.defineProperty(exports, "
|
|
140
|
-
// --- Session Utilities ---
|
|
141
|
-
var sessionUtils_1 = require("./utils/sessionUtils");
|
|
142
|
-
Object.defineProperty(exports, "mergeSessions", { enumerable: true, get: function () { return sessionUtils_1.mergeSessions; } });
|
|
143
|
-
Object.defineProperty(exports, "normalizeAndSortSessions", { enumerable: true, get: function () { return sessionUtils_1.normalizeAndSortSessions; } });
|
|
144
|
-
Object.defineProperty(exports, "sessionsArraysEqual", { enumerable: true, get: function () { return sessionUtils_1.sessionsArraysEqual; } });
|
|
145
|
-
// --- Constants ---
|
|
146
|
-
var version_1 = require("./constants/version");
|
|
147
|
-
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return version_1.packageInfo; } });
|
|
148
|
-
// --- API & Error Utilities ---
|
|
149
|
-
__exportStar(require("./utils/apiUtils"), exports);
|
|
160
|
+
// ---------------------------------------------------------------------------
|
|
161
|
+
// API request / URL helpers
|
|
162
|
+
// ---------------------------------------------------------------------------
|
|
163
|
+
var apiUtils_1 = require("./utils/apiUtils");
|
|
164
|
+
Object.defineProperty(exports, "buildSearchParams", { enumerable: true, get: function () { return apiUtils_1.buildSearchParams; } });
|
|
165
|
+
Object.defineProperty(exports, "buildUrl", { enumerable: true, get: function () { return apiUtils_1.buildUrl; } });
|
|
166
|
+
Object.defineProperty(exports, "buildPaginationParams", { enumerable: true, get: function () { return apiUtils_1.buildPaginationParams; } });
|
|
167
|
+
Object.defineProperty(exports, "safeJsonParse", { enumerable: true, get: function () { return apiUtils_1.safeJsonParse; } });
|
|
150
168
|
var errorUtils_2 = require("./utils/errorUtils");
|
|
151
169
|
Object.defineProperty(exports, "ErrorCodes", { enumerable: true, get: function () { return errorUtils_2.ErrorCodes; } });
|
|
152
170
|
Object.defineProperty(exports, "createApiError", { enumerable: true, get: function () { return errorUtils_2.createApiError; } });
|
|
@@ -154,7 +172,33 @@ Object.defineProperty(exports, "handleHttpError", { enumerable: true, get: funct
|
|
|
154
172
|
Object.defineProperty(exports, "validateRequiredFields", { enumerable: true, get: function () { return errorUtils_2.validateRequiredFields; } });
|
|
155
173
|
var asyncUtils_1 = require("./utils/asyncUtils");
|
|
156
174
|
Object.defineProperty(exports, "retryAsync", { enumerable: true, get: function () { return asyncUtils_1.retryAsync; } });
|
|
157
|
-
|
|
175
|
+
// ---------------------------------------------------------------------------
|
|
176
|
+
// Validation
|
|
177
|
+
// ---------------------------------------------------------------------------
|
|
178
|
+
var validationUtils_1 = require("./utils/validationUtils");
|
|
179
|
+
Object.defineProperty(exports, "EMAIL_REGEX", { enumerable: true, get: function () { return validationUtils_1.EMAIL_REGEX; } });
|
|
180
|
+
Object.defineProperty(exports, "USERNAME_REGEX", { enumerable: true, get: function () { return validationUtils_1.USERNAME_REGEX; } });
|
|
181
|
+
Object.defineProperty(exports, "PASSWORD_REGEX", { enumerable: true, get: function () { return validationUtils_1.PASSWORD_REGEX; } });
|
|
182
|
+
Object.defineProperty(exports, "isValidEmail", { enumerable: true, get: function () { return validationUtils_1.isValidEmail; } });
|
|
183
|
+
Object.defineProperty(exports, "isValidUsername", { enumerable: true, get: function () { return validationUtils_1.isValidUsername; } });
|
|
184
|
+
Object.defineProperty(exports, "isValidPassword", { enumerable: true, get: function () { return validationUtils_1.isValidPassword; } });
|
|
185
|
+
Object.defineProperty(exports, "isRequiredString", { enumerable: true, get: function () { return validationUtils_1.isRequiredString; } });
|
|
186
|
+
Object.defineProperty(exports, "isRequiredNumber", { enumerable: true, get: function () { return validationUtils_1.isRequiredNumber; } });
|
|
187
|
+
Object.defineProperty(exports, "isRequiredBoolean", { enumerable: true, get: function () { return validationUtils_1.isRequiredBoolean; } });
|
|
188
|
+
Object.defineProperty(exports, "isValidArray", { enumerable: true, get: function () { return validationUtils_1.isValidArray; } });
|
|
189
|
+
Object.defineProperty(exports, "isValidObject", { enumerable: true, get: function () { return validationUtils_1.isValidObject; } });
|
|
190
|
+
Object.defineProperty(exports, "isValidUUID", { enumerable: true, get: function () { return validationUtils_1.isValidUUID; } });
|
|
191
|
+
Object.defineProperty(exports, "isValidURL", { enumerable: true, get: function () { return validationUtils_1.isValidURL; } });
|
|
192
|
+
Object.defineProperty(exports, "isValidDate", { enumerable: true, get: function () { return validationUtils_1.isValidDate; } });
|
|
193
|
+
Object.defineProperty(exports, "isValidFileSize", { enumerable: true, get: function () { return validationUtils_1.isValidFileSize; } });
|
|
194
|
+
Object.defineProperty(exports, "isValidFileType", { enumerable: true, get: function () { return validationUtils_1.isValidFileType; } });
|
|
195
|
+
Object.defineProperty(exports, "sanitizeString", { enumerable: true, get: function () { return validationUtils_1.sanitizeString; } });
|
|
196
|
+
Object.defineProperty(exports, "sanitizeHTML", { enumerable: true, get: function () { return validationUtils_1.sanitizeHTML; } });
|
|
197
|
+
Object.defineProperty(exports, "isValidObjectId", { enumerable: true, get: function () { return validationUtils_1.isValidObjectId; } });
|
|
198
|
+
Object.defineProperty(exports, "validateAndSanitizeUserInput", { enumerable: true, get: function () { return validationUtils_1.validateAndSanitizeUserInput; } });
|
|
199
|
+
// ---------------------------------------------------------------------------
|
|
200
|
+
// Logging
|
|
201
|
+
// ---------------------------------------------------------------------------
|
|
158
202
|
var loggerUtils_1 = require("./utils/loggerUtils");
|
|
159
203
|
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return loggerUtils_1.logger; } });
|
|
160
204
|
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return loggerUtils_1.LogLevel; } });
|
|
@@ -165,16 +209,29 @@ Object.defineProperty(exports, "logUser", { enumerable: true, get: function () {
|
|
|
165
209
|
Object.defineProperty(exports, "logDevice", { enumerable: true, get: function () { return loggerUtils_1.logDevice; } });
|
|
166
210
|
Object.defineProperty(exports, "logPayment", { enumerable: true, get: function () { return loggerUtils_1.logPayment; } });
|
|
167
211
|
Object.defineProperty(exports, "logPerformance", { enumerable: true, get: function () { return loggerUtils_1.logPerformance; } });
|
|
168
|
-
//
|
|
212
|
+
// ---------------------------------------------------------------------------
|
|
213
|
+
// Avatars
|
|
214
|
+
// ---------------------------------------------------------------------------
|
|
169
215
|
var avatarUtils_1 = require("./utils/avatarUtils");
|
|
170
216
|
Object.defineProperty(exports, "updateAvatarVisibility", { enumerable: true, get: function () { return avatarUtils_1.updateAvatarVisibility; } });
|
|
171
|
-
//
|
|
217
|
+
// ---------------------------------------------------------------------------
|
|
218
|
+
// Accounts
|
|
219
|
+
// ---------------------------------------------------------------------------
|
|
172
220
|
var accountUtils_1 = require("./utils/accountUtils");
|
|
173
221
|
Object.defineProperty(exports, "buildAccountsArray", { enumerable: true, get: function () { return accountUtils_1.buildAccountsArray; } });
|
|
174
222
|
Object.defineProperty(exports, "createQuickAccount", { enumerable: true, get: function () { return accountUtils_1.createQuickAccount; } });
|
|
175
223
|
Object.defineProperty(exports, "getAccountDisplayName", { enumerable: true, get: function () { return accountUtils_1.getAccountDisplayName; } });
|
|
176
224
|
Object.defineProperty(exports, "getAccountFallbackHandle", { enumerable: true, get: function () { return accountUtils_1.getAccountFallbackHandle; } });
|
|
177
225
|
Object.defineProperty(exports, "formatPublicKeyHandle", { enumerable: true, get: function () { return accountUtils_1.formatPublicKeyHandle; } });
|
|
178
|
-
|
|
226
|
+
Object.defineProperty(exports, "mergeAccountsFromRefreshAll", { enumerable: true, get: function () { return accountUtils_1.mergeAccountsFromRefreshAll; } });
|
|
227
|
+
Object.defineProperty(exports, "getAccountColor", { enumerable: true, get: function () { return accountUtils_1.getAccountColor; } });
|
|
228
|
+
// ---------------------------------------------------------------------------
|
|
229
|
+
// Constants
|
|
230
|
+
// ---------------------------------------------------------------------------
|
|
231
|
+
var version_1 = require("./constants/version");
|
|
232
|
+
Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return version_1.packageInfo; } });
|
|
233
|
+
// ---------------------------------------------------------------------------
|
|
234
|
+
// Default export (back-compat — OxyServices is the most common consumer entry)
|
|
235
|
+
// ---------------------------------------------------------------------------
|
|
179
236
|
const OxyServices_3 = require("./OxyServices");
|
|
180
237
|
exports.default = OxyServices_3.OxyServices;
|