@oxyhq/core 12.10.6 → 12.11.1
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/HttpService.js +66 -6
- package/dist/cjs/boot/sessionColdBoot.js +142 -37
- package/dist/cjs/i18n/locales/ar-SA.json +13 -1
- package/dist/cjs/i18n/locales/ca-ES.json +13 -1
- package/dist/cjs/i18n/locales/de-DE.json +13 -1
- package/dist/cjs/i18n/locales/en-US.json +13 -4
- package/dist/cjs/i18n/locales/es-ES.json +13 -4
- package/dist/cjs/i18n/locales/fr-FR.json +13 -1
- package/dist/cjs/i18n/locales/it-IT.json +13 -1
- package/dist/cjs/i18n/locales/ja-JP.json +13 -1
- package/dist/cjs/i18n/locales/ko-KR.json +13 -1
- package/dist/cjs/i18n/locales/locales/ar-SA.json +13 -1
- package/dist/cjs/i18n/locales/locales/ca-ES.json +13 -1
- package/dist/cjs/i18n/locales/locales/de-DE.json +13 -1
- package/dist/cjs/i18n/locales/locales/en-US.json +13 -4
- package/dist/cjs/i18n/locales/locales/es-ES.json +13 -4
- package/dist/cjs/i18n/locales/locales/fr-FR.json +13 -1
- package/dist/cjs/i18n/locales/locales/it-IT.json +13 -1
- package/dist/cjs/i18n/locales/locales/ja-JP.json +13 -1
- package/dist/cjs/i18n/locales/locales/ko-KR.json +13 -1
- package/dist/cjs/i18n/locales/locales/pt-PT.json +13 -1
- package/dist/cjs/i18n/locales/locales/zh-CN.json +13 -1
- package/dist/cjs/i18n/locales/pt-PT.json +13 -1
- package/dist/cjs/i18n/locales/zh-CN.json +13 -1
- package/dist/cjs/index.js +31 -5
- package/dist/cjs/mixins/OxyServices.auth.js +257 -17
- package/dist/cjs/mixins/OxyServices.deviceBoot.js +54 -3
- package/dist/cjs/mixins/OxyServices.notifications.js +63 -0
- package/dist/cjs/mixins/OxyServices.privacy.js +6 -0
- package/dist/cjs/mixins/OxyServices.user.js +1 -0
- package/dist/cjs/mixins/index.js +5 -0
- package/dist/cjs/session/SessionClient.js +40 -4
- package/dist/cjs/session/accountDialogController.js +288 -41
- package/dist/cjs/session/identityPin.js +256 -0
- package/dist/cjs/session/identitySession.js +135 -0
- package/dist/cjs/session/projectSessionState.js +54 -15
- package/dist/cjs/session/refresh.js +73 -8
- package/dist/cjs/utils/commonsDelivery.js +59 -0
- package/dist/cjs/utils/oauthPkce.js +33 -3
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/HttpService.js +66 -6
- package/dist/esm/boot/sessionColdBoot.js +142 -37
- package/dist/esm/i18n/locales/ar-SA.json +13 -1
- package/dist/esm/i18n/locales/ca-ES.json +13 -1
- package/dist/esm/i18n/locales/de-DE.json +13 -1
- package/dist/esm/i18n/locales/en-US.json +13 -4
- package/dist/esm/i18n/locales/es-ES.json +13 -4
- package/dist/esm/i18n/locales/fr-FR.json +13 -1
- package/dist/esm/i18n/locales/it-IT.json +13 -1
- package/dist/esm/i18n/locales/ja-JP.json +13 -1
- package/dist/esm/i18n/locales/ko-KR.json +13 -1
- package/dist/esm/i18n/locales/locales/ar-SA.json +13 -1
- package/dist/esm/i18n/locales/locales/ca-ES.json +13 -1
- package/dist/esm/i18n/locales/locales/de-DE.json +13 -1
- package/dist/esm/i18n/locales/locales/en-US.json +13 -4
- package/dist/esm/i18n/locales/locales/es-ES.json +13 -4
- package/dist/esm/i18n/locales/locales/fr-FR.json +13 -1
- package/dist/esm/i18n/locales/locales/it-IT.json +13 -1
- package/dist/esm/i18n/locales/locales/ja-JP.json +13 -1
- package/dist/esm/i18n/locales/locales/ko-KR.json +13 -1
- package/dist/esm/i18n/locales/locales/pt-PT.json +13 -1
- package/dist/esm/i18n/locales/locales/zh-CN.json +13 -1
- package/dist/esm/i18n/locales/pt-PT.json +13 -1
- package/dist/esm/i18n/locales/zh-CN.json +13 -1
- package/dist/esm/index.js +14 -1
- package/dist/esm/mixins/OxyServices.auth.js +257 -17
- package/dist/esm/mixins/OxyServices.deviceBoot.js +52 -3
- package/dist/esm/mixins/OxyServices.notifications.js +60 -0
- package/dist/esm/mixins/OxyServices.privacy.js +6 -0
- package/dist/esm/mixins/OxyServices.user.js +1 -0
- package/dist/esm/mixins/index.js +5 -0
- package/dist/esm/session/SessionClient.js +40 -4
- package/dist/esm/session/accountDialogController.js +288 -41
- package/dist/esm/session/identityPin.js +249 -0
- package/dist/esm/session/identitySession.js +131 -0
- package/dist/esm/session/projectSessionState.js +54 -15
- package/dist/esm/session/refresh.js +73 -8
- package/dist/esm/utils/commonsDelivery.js +54 -0
- package/dist/esm/utils/oauthPkce.js +31 -2
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/HttpService.d.ts +18 -1
- package/dist/types/boot/sessionColdBoot.d.ts +38 -1
- package/dist/types/index.d.ts +12 -4
- package/dist/types/mixins/OxyServices.auth.d.ts +262 -11
- package/dist/types/mixins/OxyServices.deviceBoot.d.ts +31 -1
- package/dist/types/mixins/OxyServices.notifications.d.ts +143 -0
- package/dist/types/mixins/OxyServices.user.d.ts +2 -0
- package/dist/types/mixins/index.d.ts +2 -1
- package/dist/types/session/SessionClient.d.ts +28 -0
- package/dist/types/session/accountDialogController.d.ts +187 -9
- package/dist/types/session/identityPin.d.ts +87 -0
- package/dist/types/session/identitySession.d.ts +105 -0
- package/dist/types/session/projectSessionState.d.ts +21 -19
- package/dist/types/session/refresh.d.ts +32 -1
- package/dist/types/utils/commonsDelivery.d.ts +105 -0
- package/dist/types/utils/oauthPkce.d.ts +21 -1
- package/package.json +3 -3
- package/src/HttpService.ts +67 -6
- package/src/__tests__/inSessionRefresh.test.ts +67 -0
- package/src/boot/__tests__/sessionColdBoot.identity.test.ts +393 -0
- package/src/boot/sessionColdBoot.ts +183 -37
- package/src/i18n/locales/ar-SA.json +13 -1
- package/src/i18n/locales/ca-ES.json +13 -1
- package/src/i18n/locales/de-DE.json +13 -1
- package/src/i18n/locales/en-US.json +13 -4
- package/src/i18n/locales/es-ES.json +13 -4
- package/src/i18n/locales/fr-FR.json +13 -1
- package/src/i18n/locales/it-IT.json +13 -1
- package/src/i18n/locales/ja-JP.json +13 -1
- package/src/i18n/locales/ko-KR.json +13 -1
- package/src/i18n/locales/pt-PT.json +13 -1
- package/src/i18n/locales/zh-CN.json +13 -1
- package/src/index.ts +49 -0
- package/src/mixins/OxyServices.auth.ts +464 -24
- package/src/mixins/OxyServices.deviceBoot.ts +54 -2
- package/src/mixins/OxyServices.notifications.ts +142 -0
- package/src/mixins/OxyServices.privacy.ts +6 -0
- package/src/mixins/OxyServices.user.ts +3 -0
- package/src/mixins/__tests__/commonsSignIn.test.ts +754 -2
- package/src/mixins/__tests__/deviceTokenMintPinned.test.ts +113 -0
- package/src/mixins/__tests__/preSessionSkipAuth.test.ts +18 -0
- package/src/mixins/__tests__/privacyCacheInvalidation.test.ts +2 -0
- package/src/mixins/index.ts +6 -0
- package/src/session/SessionClient.ts +57 -4
- package/src/session/__tests__/SessionClient.identityPin.test.ts +175 -0
- package/src/session/__tests__/accountDialogController.test.ts +812 -1
- package/src/session/__tests__/identityPin.test.ts +131 -0
- package/src/session/__tests__/identitySession.test.ts +194 -0
- package/src/session/__tests__/projectSessionState.test.ts +88 -0
- package/src/session/__tests__/refresh.identityPin.test.ts +306 -0
- package/src/session/accountDialogController.ts +435 -44
- package/src/session/identityPin.ts +310 -0
- package/src/session/identitySession.ts +206 -0
- package/src/session/projectSessionState.ts +61 -13
- package/src/session/refresh.ts +103 -9
- package/src/utils/__tests__/oauthPkce.test.ts +51 -0
- package/src/utils/commonsDelivery.ts +132 -0
- package/src/utils/oauthPkce.ts +56 -3
|
@@ -412,9 +412,6 @@
|
|
|
412
412
|
},
|
|
413
413
|
"label": "Account switcher",
|
|
414
414
|
"searchPlaceholder": "Search accounts",
|
|
415
|
-
"scanTitle": "Scan to sign in",
|
|
416
|
-
"scanSubtitle": "Open the Oxy app on your phone and scan this code",
|
|
417
|
-
"scanWithOxy": "Scan with the Oxy app to continue",
|
|
418
415
|
"scanQr": "Scan QR code",
|
|
419
416
|
"qrHeadline": "Sign in with your Oxy identity",
|
|
420
417
|
"signInWithOxy": "Sign in with Oxy",
|
|
@@ -424,7 +421,19 @@
|
|
|
424
421
|
"commonsNotInstalled": "Don't have Commons? Get the app to sign in with your Oxy ID.",
|
|
425
422
|
"showQrAnyway": "I have Commons on another device",
|
|
426
423
|
"switchWhileSignedInAs": "Switch account, signed in as {{name}}",
|
|
427
|
-
"manageOnDevice": "Manage accounts on this device"
|
|
424
|
+
"manageOnDevice": "Manage accounts on this device",
|
|
425
|
+
"continueWithOxy": "Continue with Oxy",
|
|
426
|
+
"havingTrouble": "Having trouble?",
|
|
427
|
+
"progress": {
|
|
428
|
+
"preparing": "Preparing request",
|
|
429
|
+
"awaitingApproval": "Waiting for approval",
|
|
430
|
+
"scanWithCommons": "Scan with Commons on your phone",
|
|
431
|
+
"continueInCommons": "Continue in Commons",
|
|
432
|
+
"checkCommons": "Check Commons on your phone",
|
|
433
|
+
"openedInCommons": "Opened in Commons",
|
|
434
|
+
"confirming": "Confirming identity",
|
|
435
|
+
"confirmed": "Identity confirmed"
|
|
436
|
+
}
|
|
428
437
|
},
|
|
429
438
|
"reputation": {
|
|
430
439
|
"faq": {
|
|
@@ -652,9 +652,6 @@
|
|
|
652
652
|
},
|
|
653
653
|
"label": "Selector de cuentas",
|
|
654
654
|
"searchPlaceholder": "Buscar cuentas",
|
|
655
|
-
"scanTitle": "Escanea para iniciar sesión",
|
|
656
|
-
"scanSubtitle": "Abre la app de Oxy en tu móvil y escanea este código",
|
|
657
|
-
"scanWithOxy": "Escanea con la app de Oxy para continuar",
|
|
658
655
|
"scanQr": "Escanear código QR",
|
|
659
656
|
"qrHeadline": "Inicia sesión con tu identidad de Oxy",
|
|
660
657
|
"signInWithOxy": "Inicia sesión con Oxy",
|
|
@@ -664,7 +661,19 @@
|
|
|
664
661
|
"commonsNotInstalled": "¿No tienes Commons? Descarga la app para iniciar sesión con tu Oxy ID.",
|
|
665
662
|
"showQrAnyway": "Tengo Commons en otro dispositivo",
|
|
666
663
|
"switchWhileSignedInAs": "Cambiar de cuenta, con la sesión iniciada como {{name}}",
|
|
667
|
-
"manageOnDevice": "Gestionar cuentas en este dispositivo"
|
|
664
|
+
"manageOnDevice": "Gestionar cuentas en este dispositivo",
|
|
665
|
+
"continueWithOxy": "Continuar con Oxy",
|
|
666
|
+
"havingTrouble": "¿Algún problema?",
|
|
667
|
+
"progress": {
|
|
668
|
+
"preparing": "Preparando la solicitud",
|
|
669
|
+
"awaitingApproval": "Esperando la aprobación",
|
|
670
|
+
"scanWithCommons": "Escanea con Commons en tu móvil",
|
|
671
|
+
"continueInCommons": "Continúa en Commons",
|
|
672
|
+
"checkCommons": "Revisa Commons en tu móvil",
|
|
673
|
+
"openedInCommons": "Abierto en Commons",
|
|
674
|
+
"confirming": "Confirmando identidad",
|
|
675
|
+
"confirmed": "Identidad confirmada"
|
|
676
|
+
}
|
|
668
677
|
},
|
|
669
678
|
"feedback": {
|
|
670
679
|
"type": {
|
|
@@ -124,7 +124,19 @@
|
|
|
124
124
|
"commonsNotInstalled": "Pas de Commons ? Téléchargez l'app pour vous connecter avec votre Oxy ID.",
|
|
125
125
|
"showQrAnyway": "J'ai Commons sur un autre appareil",
|
|
126
126
|
"switchWhileSignedInAs": "Changer de compte, connecté en tant que {{name}}",
|
|
127
|
-
"manageOnDevice": "Gérer les comptes sur cet appareil"
|
|
127
|
+
"manageOnDevice": "Gérer les comptes sur cet appareil",
|
|
128
|
+
"continueWithOxy": "Continuer avec Oxy",
|
|
129
|
+
"havingTrouble": "Un problème ?",
|
|
130
|
+
"progress": {
|
|
131
|
+
"preparing": "Préparation de la demande",
|
|
132
|
+
"awaitingApproval": "En attente d'approbation",
|
|
133
|
+
"scanWithCommons": "Scannez avec Commons sur votre téléphone",
|
|
134
|
+
"continueInCommons": "Continuez dans Commons",
|
|
135
|
+
"checkCommons": "Consultez Commons sur votre téléphone",
|
|
136
|
+
"openedInCommons": "Ouvert dans Commons",
|
|
137
|
+
"confirming": "Confirmation de l'identité",
|
|
138
|
+
"confirmed": "Identité confirmée"
|
|
139
|
+
}
|
|
128
140
|
},
|
|
129
141
|
"common": {
|
|
130
142
|
"actions": {
|
|
@@ -124,7 +124,19 @@
|
|
|
124
124
|
"commonsNotInstalled": "Non hai Commons? Scarica l'app per accedere con il tuo Oxy ID.",
|
|
125
125
|
"showQrAnyway": "Ho Commons su un altro dispositivo",
|
|
126
126
|
"switchWhileSignedInAs": "Cambia account, connesso come {{name}}",
|
|
127
|
-
"manageOnDevice": "Gestisci account su questo dispositivo"
|
|
127
|
+
"manageOnDevice": "Gestisci account su questo dispositivo",
|
|
128
|
+
"continueWithOxy": "Continua con Oxy",
|
|
129
|
+
"havingTrouble": "Problemi?",
|
|
130
|
+
"progress": {
|
|
131
|
+
"preparing": "Preparazione della richiesta",
|
|
132
|
+
"awaitingApproval": "In attesa di approvazione",
|
|
133
|
+
"scanWithCommons": "Scansiona con Commons sul tuo telefono",
|
|
134
|
+
"continueInCommons": "Continua in Commons",
|
|
135
|
+
"checkCommons": "Controlla Commons sul tuo telefono",
|
|
136
|
+
"openedInCommons": "Aperto in Commons",
|
|
137
|
+
"confirming": "Conferma dell'identità in corso",
|
|
138
|
+
"confirmed": "Identità confermata"
|
|
139
|
+
}
|
|
128
140
|
},
|
|
129
141
|
"common": {
|
|
130
142
|
"actions": {
|
|
@@ -124,7 +124,19 @@
|
|
|
124
124
|
"commonsNotInstalled": "Commonsがありませんか?アプリを入手してOxy IDでサインインしましょう。",
|
|
125
125
|
"showQrAnyway": "別のデバイスにCommonsがあります",
|
|
126
126
|
"switchWhileSignedInAs": "アカウントを切り替え({{name}} としてログイン中)",
|
|
127
|
-
"manageOnDevice": "このデバイスのアカウントを管理"
|
|
127
|
+
"manageOnDevice": "このデバイスのアカウントを管理",
|
|
128
|
+
"continueWithOxy": "Oxyで続ける",
|
|
129
|
+
"havingTrouble": "うまくいきませんか?",
|
|
130
|
+
"progress": {
|
|
131
|
+
"preparing": "リクエストを準備しています",
|
|
132
|
+
"awaitingApproval": "承認を待っています",
|
|
133
|
+
"scanWithCommons": "スマートフォンのCommonsでスキャンしてください",
|
|
134
|
+
"continueInCommons": "Commonsで続けてください",
|
|
135
|
+
"checkCommons": "スマートフォンのCommonsを確認してください",
|
|
136
|
+
"openedInCommons": "Commonsで開きました",
|
|
137
|
+
"confirming": "本人確認をしています",
|
|
138
|
+
"confirmed": "本人確認が完了しました"
|
|
139
|
+
}
|
|
128
140
|
},
|
|
129
141
|
"common": {
|
|
130
142
|
"actions": {
|
|
@@ -124,7 +124,19 @@
|
|
|
124
124
|
"commonsNotInstalled": "Commons가 없으신가요? 앱을 다운로드하여 Oxy ID로 로그인하세요.",
|
|
125
125
|
"showQrAnyway": "다른 기기에 Commons가 있습니다",
|
|
126
126
|
"switchWhileSignedInAs": "계정 전환, {{name}}(으)로 로그인됨",
|
|
127
|
-
"manageOnDevice": "이 기기의 계정 관리"
|
|
127
|
+
"manageOnDevice": "이 기기의 계정 관리",
|
|
128
|
+
"continueWithOxy": "Oxy로 계속하기",
|
|
129
|
+
"havingTrouble": "문제가 있으신가요?",
|
|
130
|
+
"progress": {
|
|
131
|
+
"preparing": "요청 준비 중",
|
|
132
|
+
"awaitingApproval": "승인 대기 중",
|
|
133
|
+
"scanWithCommons": "휴대폰의 Commons로 스캔하세요",
|
|
134
|
+
"continueInCommons": "Commons에서 계속하세요",
|
|
135
|
+
"checkCommons": "휴대폰에서 Commons를 확인하세요",
|
|
136
|
+
"openedInCommons": "Commons에서 열림",
|
|
137
|
+
"confirming": "신원 확인 중",
|
|
138
|
+
"confirmed": "신원 확인 완료"
|
|
139
|
+
}
|
|
128
140
|
},
|
|
129
141
|
"common": {
|
|
130
142
|
"actions": {
|
|
@@ -124,7 +124,19 @@
|
|
|
124
124
|
"commonsNotInstalled": "Não tem o Commons? Obtenha a app para iniciar sessão com o seu Oxy ID.",
|
|
125
125
|
"showQrAnyway": "Tenho o Commons noutro dispositivo",
|
|
126
126
|
"switchWhileSignedInAs": "Mudar de conta, com sessão iniciada como {{name}}",
|
|
127
|
-
"manageOnDevice": "Gerir contas neste dispositivo"
|
|
127
|
+
"manageOnDevice": "Gerir contas neste dispositivo",
|
|
128
|
+
"continueWithOxy": "Continuar com Oxy",
|
|
129
|
+
"havingTrouble": "Algum problema?",
|
|
130
|
+
"progress": {
|
|
131
|
+
"preparing": "A preparar o pedido",
|
|
132
|
+
"awaitingApproval": "A aguardar aprovação",
|
|
133
|
+
"scanWithCommons": "Digitalize com o Commons no seu telemóvel",
|
|
134
|
+
"continueInCommons": "Continue no Commons",
|
|
135
|
+
"checkCommons": "Verifique o Commons no seu telemóvel",
|
|
136
|
+
"openedInCommons": "Aberto no Commons",
|
|
137
|
+
"confirming": "A confirmar a identidade",
|
|
138
|
+
"confirmed": "Identidade confirmada"
|
|
139
|
+
}
|
|
128
140
|
},
|
|
129
141
|
"common": {
|
|
130
142
|
"actions": {
|
|
@@ -124,7 +124,19 @@
|
|
|
124
124
|
"commonsNotInstalled": "没有 Commons?获取应用以使用您的 Oxy ID 登录。",
|
|
125
125
|
"showQrAnyway": "我在另一台设备上有 Commons",
|
|
126
126
|
"switchWhileSignedInAs": "切换账号,当前登录为 {{name}}",
|
|
127
|
-
"manageOnDevice": "管理此设备上的账号"
|
|
127
|
+
"manageOnDevice": "管理此设备上的账号",
|
|
128
|
+
"continueWithOxy": "使用 Oxy 继续",
|
|
129
|
+
"havingTrouble": "遇到问题?",
|
|
130
|
+
"progress": {
|
|
131
|
+
"preparing": "正在准备请求",
|
|
132
|
+
"awaitingApproval": "正在等待批准",
|
|
133
|
+
"scanWithCommons": "请用手机上的 Commons 扫描",
|
|
134
|
+
"continueInCommons": "请在 Commons 中继续",
|
|
135
|
+
"checkCommons": "请查看手机上的 Commons",
|
|
136
|
+
"openedInCommons": "已在 Commons 中打开",
|
|
137
|
+
"confirming": "正在确认身份",
|
|
138
|
+
"confirmed": "身份已确认"
|
|
139
|
+
}
|
|
128
140
|
},
|
|
129
141
|
"common": {
|
|
130
142
|
"actions": {
|
|
@@ -124,7 +124,19 @@
|
|
|
124
124
|
"commonsNotInstalled": "Não tem o Commons? Obtenha a app para iniciar sessão com o seu Oxy ID.",
|
|
125
125
|
"showQrAnyway": "Tenho o Commons noutro dispositivo",
|
|
126
126
|
"switchWhileSignedInAs": "Mudar de conta, com sessão iniciada como {{name}}",
|
|
127
|
-
"manageOnDevice": "Gerir contas neste dispositivo"
|
|
127
|
+
"manageOnDevice": "Gerir contas neste dispositivo",
|
|
128
|
+
"continueWithOxy": "Continuar com Oxy",
|
|
129
|
+
"havingTrouble": "Algum problema?",
|
|
130
|
+
"progress": {
|
|
131
|
+
"preparing": "A preparar o pedido",
|
|
132
|
+
"awaitingApproval": "A aguardar aprovação",
|
|
133
|
+
"scanWithCommons": "Digitalize com o Commons no seu telemóvel",
|
|
134
|
+
"continueInCommons": "Continue no Commons",
|
|
135
|
+
"checkCommons": "Verifique o Commons no seu telemóvel",
|
|
136
|
+
"openedInCommons": "Aberto no Commons",
|
|
137
|
+
"confirming": "A confirmar a identidade",
|
|
138
|
+
"confirmed": "Identidade confirmada"
|
|
139
|
+
}
|
|
128
140
|
},
|
|
129
141
|
"common": {
|
|
130
142
|
"actions": {
|
|
@@ -124,7 +124,19 @@
|
|
|
124
124
|
"commonsNotInstalled": "没有 Commons?获取应用以使用您的 Oxy ID 登录。",
|
|
125
125
|
"showQrAnyway": "我在另一台设备上有 Commons",
|
|
126
126
|
"switchWhileSignedInAs": "切换账号,当前登录为 {{name}}",
|
|
127
|
-
"manageOnDevice": "管理此设备上的账号"
|
|
127
|
+
"manageOnDevice": "管理此设备上的账号",
|
|
128
|
+
"continueWithOxy": "使用 Oxy 继续",
|
|
129
|
+
"havingTrouble": "遇到问题?",
|
|
130
|
+
"progress": {
|
|
131
|
+
"preparing": "正在准备请求",
|
|
132
|
+
"awaitingApproval": "正在等待批准",
|
|
133
|
+
"scanWithCommons": "请用手机上的 Commons 扫描",
|
|
134
|
+
"continueInCommons": "请在 Commons 中继续",
|
|
135
|
+
"checkCommons": "请查看手机上的 Commons",
|
|
136
|
+
"openedInCommons": "已在 Commons 中打开",
|
|
137
|
+
"confirming": "正在确认身份",
|
|
138
|
+
"confirmed": "身份已确认"
|
|
139
|
+
}
|
|
128
140
|
},
|
|
129
141
|
"common": {
|
|
130
142
|
"actions": {
|
package/dist/cjs/index.js
CHANGED
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
* If a symbol does not appear here, it is NOT part of the public API.
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.packageInfo = void 0;
|
|
21
|
+
exports.TopicType = exports.SECURITY_EVENT_SEVERITY_MAP = exports.DeviceManager = exports.deriveSharedSecret = exports.AEAD_NONCE_LENGTH = exports.AEAD_KEY_LENGTH = exports.decryptAead = exports.encryptAead = exports.hkdfSha256 = exports.RecoveryPhraseService = exports.SignatureService = exports.updateIdentityMarker = exports.readIdentityMarker = exports.IdentityUnavailableError = 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.verifyPublicCardAttestation = exports.parseAttestPayload = exports.parseIdPayload = exports.buildUserDid = exports.ORGANIZATION_CATEGORIES = exports.normalizeProfileLinks = exports.getNormalizedUserHandle = exports.getCanonicalUserHandle = exports.normalizeUserIdentityOrNull = exports.normalizeUserIdentity = exports.getNormalizedUserId = exports.OxyAppDataIdentifierError = exports.commonsDeliveryPlatform = exports.pushTargetsFromDelivery = exports.selectCommonsDelivery = exports.parseCommonsApprovalExpiresAt = exports.getCommonsApprovalBlockingReason = exports.ServiceCredentialMismatchError = exports.oxyClient = exports.OXY_CLOUD_URL = exports.OxyAuthenticationTimeoutError = exports.OxyAuthenticationError = exports.AssetUrlResolutionError = exports.OxyServices = void 0;
|
|
22
|
+
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 = exports.normalizeColorScheme = exports.normalizeTheme = exports.getContrastTextColor = exports.isLightColor = exports.withOpacity = exports.rgbToHex = exports.hexToRgb = exports.lightenColor = exports.darkenColor = exports.isWebBrowser = exports.isAndroid = exports.isIOS = exports.isNative = exports.isWeb = exports.setPlatformOS = exports.getPlatformOS = exports.getPrimaryLanguage = exports.getUserLanguages = exports.isRTLLocale = exports.getNativeLanguageName = exports.getLanguageName = exports.getLanguageMetadata = exports.isSupportedLocale = exports.normalizeLocale = exports.getBaseLanguage = exports.FALLBACK_LOCALE = exports.SUPPORTED_LANGUAGES = exports.TopicSource = void 0;
|
|
23
|
+
exports.getAccountColor = exports.formatPublicKeyHandle = exports.getAccountFallbackHandle = exports.getAccountDisplayName = exports.createQuickAccount = exports.buildAccountsArray = exports.updateAvatarVisibility = exports.isDev = exports.consoleSink = exports.resetLoggerConfig = exports.getLoggerConfig = exports.configureLogger = exports.createLogger = exports.logger = exports.normalizeMultilineText = exports.normalizeInlineText = exports.validateAndSanitizeUserInput = exports.isValidObjectId = exports.sanitizeHTML = exports.sanitizeString = exports.isValidFileType = exports.isValidFileSize = exports.isValidDate = exports.isValidURL = exports.isValidUUID = exports.isValidObject = exports.isValidArray = exports.isRequiredBoolean = exports.isRequiredNumber = exports.isRequiredString = exports.DISPLAY_NAME_ORPHANED_MARK_SOURCE = exports.DISPLAY_NAME_DISALLOWED_SOURCE = exports.DISPLAY_NAME_ALLOWED_SCRIPTS = exports.isValidDisplayName = 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 = void 0;
|
|
24
|
+
exports.createNativeIdentityPinStore = exports.createWebIdentityPinStore = exports.AUTH_STATE_STORAGE_KEY = exports.createMemoryAuthStateStore = exports.createNativeAuthStateStore = exports.createWebAuthStateStore = exports.createAccountDialogController = exports.AccountDialogController = exports.switchableAccountIds = exports.projectSwitchableAccounts = exports.accountIdsOf = exports.activeUserOf = exports.activeSessionIdOf = exports.deviceStateToClientSessions = exports.createSessionClient = exports.createSessionClientHost = exports.SessionClient = exports.redeemHubTicketOnHub = exports.syncHubAfterSignIn = exports.parseHubSyncReturnUrl = exports.normalizeOfficialReturnOrigin = exports.isAllowedDeviceJoinOrigin = exports.isOfficialWebOrigin = exports.isLoopbackOrigin = exports.isIdpHubOrigin = exports.buildHubSyncUrl = exports.buildIdpHubOrigin = exports.consumeOAuthReturnPath = exports.persistOAuthReturnPath = exports.clearOAuthHandshake = exports.readOAuthHandshake = exports.persistOAuthHandshake = exports.canonicalizeOAuthRedirectUri = exports.normalizeOAuthRedirectUri = exports.OXY_OAUTH_RETURN_PATH_STORAGE_KEY = exports.OXY_CROSS_ORIGIN_RESTORE_ATTEMPTED_KEY = exports.OXY_SILENT_OAUTH_ATTEMPTED_KEY = exports.OXY_OAUTH_REDIRECT_URI_STORAGE_KEY = exports.OXY_OAUTH_CODE_VERIFIER_STORAGE_KEY = exports.OXY_OAUTH_STATE_STORAGE_KEY = exports.OXY_AUTHORIZE_URL = exports.DEFAULT_OAUTH_SCOPE = exports.generatePkcePair = exports.generateOAuthState = exports.computeCodeChallenge = exports.buildOAuthAuthorizeUrl = exports.runColdBoot = exports.isOxyRpOrigin = exports.CENTRAL_IDP_APEX = exports.registrableApex = void 0;
|
|
25
|
+
exports.packageInfo = exports.runSessionColdBoot = exports.TOKEN_REFRESH_LEAD_MS = exports.startTokenRefreshScheduler = exports.installAuthRefreshHandler = exports.createAuthRefreshHandler = exports.refreshDeviceSecretArm = exports.refreshPersistedSession = exports.AccountNotOnDeviceError = exports.establishIdentitySession = exports.resolveIdentityPin = exports.IDENTITY_PIN_STORAGE_KEY = exports.identityPinMatches = exports.createMemoryIdentityPinStore = void 0;
|
|
26
26
|
// Ensure crypto polyfills are loaded before anything else
|
|
27
27
|
require("./crypto/polyfill");
|
|
28
28
|
// ---------------------------------------------------------------------------
|
|
@@ -44,6 +44,12 @@ Object.defineProperty(exports, "ServiceCredentialMismatchError", { enumerable: t
|
|
|
44
44
|
var commonsApproval_1 = require("./utils/commonsApproval");
|
|
45
45
|
Object.defineProperty(exports, "getCommonsApprovalBlockingReason", { enumerable: true, get: function () { return commonsApproval_1.getCommonsApprovalBlockingReason; } });
|
|
46
46
|
Object.defineProperty(exports, "parseCommonsApprovalExpiresAt", { enumerable: true, get: function () { return commonsApproval_1.parseCommonsApprovalExpiresAt; } });
|
|
47
|
+
// Automatic "Sign in with Oxy" delivery selection — ONE pure decision that maps
|
|
48
|
+
// the caller's facts onto exactly one primary route (open Commons / await push / QR).
|
|
49
|
+
var commonsDelivery_1 = require("./utils/commonsDelivery");
|
|
50
|
+
Object.defineProperty(exports, "selectCommonsDelivery", { enumerable: true, get: function () { return commonsDelivery_1.selectCommonsDelivery; } });
|
|
51
|
+
Object.defineProperty(exports, "pushTargetsFromDelivery", { enumerable: true, get: function () { return commonsDelivery_1.pushTargetsFromDelivery; } });
|
|
52
|
+
Object.defineProperty(exports, "commonsDeliveryPlatform", { enumerable: true, get: function () { return commonsDelivery_1.commonsDeliveryPlatform; } });
|
|
47
53
|
var OxyServices_appData_1 = require("./mixins/OxyServices.appData");
|
|
48
54
|
Object.defineProperty(exports, "OxyAppDataIdentifierError", { enumerable: true, get: function () { return OxyServices_appData_1.OxyAppDataIdentifierError; } });
|
|
49
55
|
// ---------------------------------------------------------------------------
|
|
@@ -312,10 +318,12 @@ Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPE", { enumerable: true, get: f
|
|
|
312
318
|
Object.defineProperty(exports, "OXY_AUTHORIZE_URL", { enumerable: true, get: function () { return oauthPkce_1.OXY_AUTHORIZE_URL; } });
|
|
313
319
|
Object.defineProperty(exports, "OXY_OAUTH_STATE_STORAGE_KEY", { enumerable: true, get: function () { return oauthPkce_1.OXY_OAUTH_STATE_STORAGE_KEY; } });
|
|
314
320
|
Object.defineProperty(exports, "OXY_OAUTH_CODE_VERIFIER_STORAGE_KEY", { enumerable: true, get: function () { return oauthPkce_1.OXY_OAUTH_CODE_VERIFIER_STORAGE_KEY; } });
|
|
321
|
+
Object.defineProperty(exports, "OXY_OAUTH_REDIRECT_URI_STORAGE_KEY", { enumerable: true, get: function () { return oauthPkce_1.OXY_OAUTH_REDIRECT_URI_STORAGE_KEY; } });
|
|
315
322
|
Object.defineProperty(exports, "OXY_SILENT_OAUTH_ATTEMPTED_KEY", { enumerable: true, get: function () { return oauthPkce_1.OXY_SILENT_OAUTH_ATTEMPTED_KEY; } });
|
|
316
323
|
Object.defineProperty(exports, "OXY_CROSS_ORIGIN_RESTORE_ATTEMPTED_KEY", { enumerable: true, get: function () { return oauthPkce_1.OXY_CROSS_ORIGIN_RESTORE_ATTEMPTED_KEY; } });
|
|
317
324
|
Object.defineProperty(exports, "OXY_OAUTH_RETURN_PATH_STORAGE_KEY", { enumerable: true, get: function () { return oauthPkce_1.OXY_OAUTH_RETURN_PATH_STORAGE_KEY; } });
|
|
318
325
|
Object.defineProperty(exports, "normalizeOAuthRedirectUri", { enumerable: true, get: function () { return oauthPkce_1.normalizeOAuthRedirectUri; } });
|
|
326
|
+
Object.defineProperty(exports, "canonicalizeOAuthRedirectUri", { enumerable: true, get: function () { return oauthPkce_1.canonicalizeOAuthRedirectUri; } });
|
|
319
327
|
Object.defineProperty(exports, "persistOAuthHandshake", { enumerable: true, get: function () { return oauthPkce_1.persistOAuthHandshake; } });
|
|
320
328
|
Object.defineProperty(exports, "readOAuthHandshake", { enumerable: true, get: function () { return oauthPkce_1.readOAuthHandshake; } });
|
|
321
329
|
Object.defineProperty(exports, "clearOAuthHandshake", { enumerable: true, get: function () { return oauthPkce_1.clearOAuthHandshake; } });
|
|
@@ -380,6 +388,24 @@ Object.defineProperty(exports, "createWebAuthStateStore", { enumerable: true, ge
|
|
|
380
388
|
Object.defineProperty(exports, "createNativeAuthStateStore", { enumerable: true, get: function () { return authStateStore_1.createNativeAuthStateStore; } });
|
|
381
389
|
Object.defineProperty(exports, "createMemoryAuthStateStore", { enumerable: true, get: function () { return authStateStore_1.createMemoryAuthStateStore; } });
|
|
382
390
|
Object.defineProperty(exports, "AUTH_STATE_STORAGE_KEY", { enumerable: true, get: function () { return authStateStore_1.AUTH_STATE_STORAGE_KEY; } });
|
|
391
|
+
// Identity-bound sessions (the identity vault). The pin is the durable
|
|
392
|
+
// `{publicKey, accountId}` binding between this device's PRIMARY identity key
|
|
393
|
+
// and the account it authenticates as; it is what keeps such a client from
|
|
394
|
+
// following the device's mutable `activeAccountId`.
|
|
395
|
+
var identityPin_1 = require("./session/identityPin");
|
|
396
|
+
Object.defineProperty(exports, "createWebIdentityPinStore", { enumerable: true, get: function () { return identityPin_1.createWebIdentityPinStore; } });
|
|
397
|
+
Object.defineProperty(exports, "createNativeIdentityPinStore", { enumerable: true, get: function () { return identityPin_1.createNativeIdentityPinStore; } });
|
|
398
|
+
Object.defineProperty(exports, "createMemoryIdentityPinStore", { enumerable: true, get: function () { return identityPin_1.createMemoryIdentityPinStore; } });
|
|
399
|
+
Object.defineProperty(exports, "identityPinMatches", { enumerable: true, get: function () { return identityPin_1.identityPinMatches; } });
|
|
400
|
+
Object.defineProperty(exports, "IDENTITY_PIN_STORAGE_KEY", { enumerable: true, get: function () { return identityPin_1.IDENTITY_PIN_STORAGE_KEY; } });
|
|
401
|
+
var identitySession_1 = require("./session/identitySession");
|
|
402
|
+
Object.defineProperty(exports, "resolveIdentityPin", { enumerable: true, get: function () { return identitySession_1.resolveIdentityPin; } });
|
|
403
|
+
Object.defineProperty(exports, "establishIdentitySession", { enumerable: true, get: function () { return identitySession_1.establishIdentitySession; } });
|
|
404
|
+
// The typed `401 account_not_on_device` from a PINNED device-secret mint: the
|
|
405
|
+
// pinned account left this device's session set, so the caller re-establishes
|
|
406
|
+
// the identity session instead of dropping a healthy device credential.
|
|
407
|
+
var OxyServices_deviceBoot_1 = require("./mixins/OxyServices.deviceBoot");
|
|
408
|
+
Object.defineProperty(exports, "AccountNotOnDeviceError", { enumerable: true, get: function () { return OxyServices_deviceBoot_1.AccountNotOnDeviceError; } });
|
|
383
409
|
var refresh_1 = require("./session/refresh");
|
|
384
410
|
Object.defineProperty(exports, "refreshPersistedSession", { enumerable: true, get: function () { return refresh_1.refreshPersistedSession; } });
|
|
385
411
|
Object.defineProperty(exports, "refreshDeviceSecretArm", { enumerable: true, get: function () { return refresh_1.refreshDeviceSecretArm; } });
|