@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.
Files changed (139) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/HttpService.js +66 -6
  3. package/dist/cjs/boot/sessionColdBoot.js +142 -37
  4. package/dist/cjs/i18n/locales/ar-SA.json +13 -1
  5. package/dist/cjs/i18n/locales/ca-ES.json +13 -1
  6. package/dist/cjs/i18n/locales/de-DE.json +13 -1
  7. package/dist/cjs/i18n/locales/en-US.json +13 -4
  8. package/dist/cjs/i18n/locales/es-ES.json +13 -4
  9. package/dist/cjs/i18n/locales/fr-FR.json +13 -1
  10. package/dist/cjs/i18n/locales/it-IT.json +13 -1
  11. package/dist/cjs/i18n/locales/ja-JP.json +13 -1
  12. package/dist/cjs/i18n/locales/ko-KR.json +13 -1
  13. package/dist/cjs/i18n/locales/locales/ar-SA.json +13 -1
  14. package/dist/cjs/i18n/locales/locales/ca-ES.json +13 -1
  15. package/dist/cjs/i18n/locales/locales/de-DE.json +13 -1
  16. package/dist/cjs/i18n/locales/locales/en-US.json +13 -4
  17. package/dist/cjs/i18n/locales/locales/es-ES.json +13 -4
  18. package/dist/cjs/i18n/locales/locales/fr-FR.json +13 -1
  19. package/dist/cjs/i18n/locales/locales/it-IT.json +13 -1
  20. package/dist/cjs/i18n/locales/locales/ja-JP.json +13 -1
  21. package/dist/cjs/i18n/locales/locales/ko-KR.json +13 -1
  22. package/dist/cjs/i18n/locales/locales/pt-PT.json +13 -1
  23. package/dist/cjs/i18n/locales/locales/zh-CN.json +13 -1
  24. package/dist/cjs/i18n/locales/pt-PT.json +13 -1
  25. package/dist/cjs/i18n/locales/zh-CN.json +13 -1
  26. package/dist/cjs/index.js +31 -5
  27. package/dist/cjs/mixins/OxyServices.auth.js +257 -17
  28. package/dist/cjs/mixins/OxyServices.deviceBoot.js +54 -3
  29. package/dist/cjs/mixins/OxyServices.notifications.js +63 -0
  30. package/dist/cjs/mixins/OxyServices.privacy.js +6 -0
  31. package/dist/cjs/mixins/OxyServices.user.js +1 -0
  32. package/dist/cjs/mixins/index.js +5 -0
  33. package/dist/cjs/session/SessionClient.js +40 -4
  34. package/dist/cjs/session/accountDialogController.js +288 -41
  35. package/dist/cjs/session/identityPin.js +256 -0
  36. package/dist/cjs/session/identitySession.js +135 -0
  37. package/dist/cjs/session/projectSessionState.js +54 -15
  38. package/dist/cjs/session/refresh.js +73 -8
  39. package/dist/cjs/utils/commonsDelivery.js +59 -0
  40. package/dist/cjs/utils/oauthPkce.js +33 -3
  41. package/dist/esm/.tsbuildinfo +1 -1
  42. package/dist/esm/HttpService.js +66 -6
  43. package/dist/esm/boot/sessionColdBoot.js +142 -37
  44. package/dist/esm/i18n/locales/ar-SA.json +13 -1
  45. package/dist/esm/i18n/locales/ca-ES.json +13 -1
  46. package/dist/esm/i18n/locales/de-DE.json +13 -1
  47. package/dist/esm/i18n/locales/en-US.json +13 -4
  48. package/dist/esm/i18n/locales/es-ES.json +13 -4
  49. package/dist/esm/i18n/locales/fr-FR.json +13 -1
  50. package/dist/esm/i18n/locales/it-IT.json +13 -1
  51. package/dist/esm/i18n/locales/ja-JP.json +13 -1
  52. package/dist/esm/i18n/locales/ko-KR.json +13 -1
  53. package/dist/esm/i18n/locales/locales/ar-SA.json +13 -1
  54. package/dist/esm/i18n/locales/locales/ca-ES.json +13 -1
  55. package/dist/esm/i18n/locales/locales/de-DE.json +13 -1
  56. package/dist/esm/i18n/locales/locales/en-US.json +13 -4
  57. package/dist/esm/i18n/locales/locales/es-ES.json +13 -4
  58. package/dist/esm/i18n/locales/locales/fr-FR.json +13 -1
  59. package/dist/esm/i18n/locales/locales/it-IT.json +13 -1
  60. package/dist/esm/i18n/locales/locales/ja-JP.json +13 -1
  61. package/dist/esm/i18n/locales/locales/ko-KR.json +13 -1
  62. package/dist/esm/i18n/locales/locales/pt-PT.json +13 -1
  63. package/dist/esm/i18n/locales/locales/zh-CN.json +13 -1
  64. package/dist/esm/i18n/locales/pt-PT.json +13 -1
  65. package/dist/esm/i18n/locales/zh-CN.json +13 -1
  66. package/dist/esm/index.js +14 -1
  67. package/dist/esm/mixins/OxyServices.auth.js +257 -17
  68. package/dist/esm/mixins/OxyServices.deviceBoot.js +52 -3
  69. package/dist/esm/mixins/OxyServices.notifications.js +60 -0
  70. package/dist/esm/mixins/OxyServices.privacy.js +6 -0
  71. package/dist/esm/mixins/OxyServices.user.js +1 -0
  72. package/dist/esm/mixins/index.js +5 -0
  73. package/dist/esm/session/SessionClient.js +40 -4
  74. package/dist/esm/session/accountDialogController.js +288 -41
  75. package/dist/esm/session/identityPin.js +249 -0
  76. package/dist/esm/session/identitySession.js +131 -0
  77. package/dist/esm/session/projectSessionState.js +54 -15
  78. package/dist/esm/session/refresh.js +73 -8
  79. package/dist/esm/utils/commonsDelivery.js +54 -0
  80. package/dist/esm/utils/oauthPkce.js +31 -2
  81. package/dist/types/.tsbuildinfo +1 -1
  82. package/dist/types/HttpService.d.ts +18 -1
  83. package/dist/types/boot/sessionColdBoot.d.ts +38 -1
  84. package/dist/types/index.d.ts +12 -4
  85. package/dist/types/mixins/OxyServices.auth.d.ts +262 -11
  86. package/dist/types/mixins/OxyServices.deviceBoot.d.ts +31 -1
  87. package/dist/types/mixins/OxyServices.notifications.d.ts +143 -0
  88. package/dist/types/mixins/OxyServices.user.d.ts +2 -0
  89. package/dist/types/mixins/index.d.ts +2 -1
  90. package/dist/types/session/SessionClient.d.ts +28 -0
  91. package/dist/types/session/accountDialogController.d.ts +187 -9
  92. package/dist/types/session/identityPin.d.ts +87 -0
  93. package/dist/types/session/identitySession.d.ts +105 -0
  94. package/dist/types/session/projectSessionState.d.ts +21 -19
  95. package/dist/types/session/refresh.d.ts +32 -1
  96. package/dist/types/utils/commonsDelivery.d.ts +105 -0
  97. package/dist/types/utils/oauthPkce.d.ts +21 -1
  98. package/package.json +3 -3
  99. package/src/HttpService.ts +67 -6
  100. package/src/__tests__/inSessionRefresh.test.ts +67 -0
  101. package/src/boot/__tests__/sessionColdBoot.identity.test.ts +393 -0
  102. package/src/boot/sessionColdBoot.ts +183 -37
  103. package/src/i18n/locales/ar-SA.json +13 -1
  104. package/src/i18n/locales/ca-ES.json +13 -1
  105. package/src/i18n/locales/de-DE.json +13 -1
  106. package/src/i18n/locales/en-US.json +13 -4
  107. package/src/i18n/locales/es-ES.json +13 -4
  108. package/src/i18n/locales/fr-FR.json +13 -1
  109. package/src/i18n/locales/it-IT.json +13 -1
  110. package/src/i18n/locales/ja-JP.json +13 -1
  111. package/src/i18n/locales/ko-KR.json +13 -1
  112. package/src/i18n/locales/pt-PT.json +13 -1
  113. package/src/i18n/locales/zh-CN.json +13 -1
  114. package/src/index.ts +49 -0
  115. package/src/mixins/OxyServices.auth.ts +464 -24
  116. package/src/mixins/OxyServices.deviceBoot.ts +54 -2
  117. package/src/mixins/OxyServices.notifications.ts +142 -0
  118. package/src/mixins/OxyServices.privacy.ts +6 -0
  119. package/src/mixins/OxyServices.user.ts +3 -0
  120. package/src/mixins/__tests__/commonsSignIn.test.ts +754 -2
  121. package/src/mixins/__tests__/deviceTokenMintPinned.test.ts +113 -0
  122. package/src/mixins/__tests__/preSessionSkipAuth.test.ts +18 -0
  123. package/src/mixins/__tests__/privacyCacheInvalidation.test.ts +2 -0
  124. package/src/mixins/index.ts +6 -0
  125. package/src/session/SessionClient.ts +57 -4
  126. package/src/session/__tests__/SessionClient.identityPin.test.ts +175 -0
  127. package/src/session/__tests__/accountDialogController.test.ts +812 -1
  128. package/src/session/__tests__/identityPin.test.ts +131 -0
  129. package/src/session/__tests__/identitySession.test.ts +194 -0
  130. package/src/session/__tests__/projectSessionState.test.ts +88 -0
  131. package/src/session/__tests__/refresh.identityPin.test.ts +306 -0
  132. package/src/session/accountDialogController.ts +435 -44
  133. package/src/session/identityPin.ts +310 -0
  134. package/src/session/identitySession.ts +206 -0
  135. package/src/session/projectSessionState.ts +61 -13
  136. package/src/session/refresh.ts +103 -9
  137. package/src/utils/__tests__/oauthPkce.test.ts +51 -0
  138. package/src/utils/commonsDelivery.ts +132 -0
  139. package/src/utils/oauthPkce.ts +56 -3
@@ -124,7 +124,19 @@
124
124
  "commonsNotInstalled": "لا تملك Commons؟ احصل على التطبيق لتسجيل الدخول بمعرّف Oxy الخاص بك.",
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": "No tens Commons? Descarrega l'app per iniciar sessió amb el teu Oxy ID.",
125
125
  "showQrAnyway": "Tinc Commons en un altre dispositiu",
126
126
  "switchWhileSignedInAs": "Canvia de compte, amb la sessió iniciada com a {{name}}",
127
- "manageOnDevice": "Gestionar comptes en aquest dispositiu"
127
+ "manageOnDevice": "Gestionar comptes en aquest dispositiu",
128
+ "continueWithOxy": "Continua amb Oxy",
129
+ "havingTrouble": "Algun problema?",
130
+ "progress": {
131
+ "preparing": "Preparant la sol·licitud",
132
+ "awaitingApproval": "Esperant l'aprovació",
133
+ "scanWithCommons": "Escaneja amb Commons al teu mòbil",
134
+ "continueInCommons": "Continua a Commons",
135
+ "checkCommons": "Revisa Commons al teu mòbil",
136
+ "openedInCommons": "Obert a Commons",
137
+ "confirming": "Confirmant la identitat",
138
+ "confirmed": "Identitat confirmada"
139
+ }
128
140
  },
129
141
  "common": {
130
142
  "actions": {
@@ -124,7 +124,19 @@
124
124
  "commonsNotInstalled": "Kein Commons? Holen Sie sich die App, um sich mit Ihrer Oxy-ID anzumelden.",
125
125
  "showQrAnyway": "Ich habe Commons auf einem anderen Gerät",
126
126
  "switchWhileSignedInAs": "Konto wechseln, angemeldet als {{name}}",
127
- "manageOnDevice": "Konten auf diesem Gerät verwalten"
127
+ "manageOnDevice": "Konten auf diesem Gerät verwalten",
128
+ "continueWithOxy": "Mit Oxy fortfahren",
129
+ "havingTrouble": "Gibt es ein Problem?",
130
+ "progress": {
131
+ "preparing": "Anfrage wird vorbereitet",
132
+ "awaitingApproval": "Warten auf Freigabe",
133
+ "scanWithCommons": "Scannen Sie mit Commons auf Ihrem Telefon",
134
+ "continueInCommons": "In Commons fortfahren",
135
+ "checkCommons": "Prüfen Sie Commons auf Ihrem Telefon",
136
+ "openedInCommons": "In Commons geöffnet",
137
+ "confirming": "Identität wird bestätigt",
138
+ "confirmed": "Identität bestätigt"
139
+ }
128
140
  },
129
141
  "common": {
130
142
  "actions": {
@@ -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": {
package/src/index.ts CHANGED
@@ -41,14 +41,33 @@ export {
41
41
  getCommonsApprovalBlockingReason,
42
42
  parseCommonsApprovalExpiresAt,
43
43
  } from './utils/commonsApproval';
44
+ // Automatic "Sign in with Oxy" delivery selection — ONE pure decision that maps
45
+ // the caller's facts onto exactly one primary route (open Commons / await push / QR).
46
+ export { selectCommonsDelivery, pushTargetsFromDelivery, commonsDeliveryPlatform } from './utils/commonsDelivery';
47
+ export type {
48
+ CommonsDeliveryFacts,
49
+ CommonsDeliveryPlatform,
50
+ CommonsDeliveryRoute,
51
+ } from './utils/commonsDelivery';
44
52
  export type { ServiceTokenResponse } from './mixins/OxyServices.auth';
45
53
  // "Sign in with Oxy" — handoff (Workstream C)
46
54
  export type {
47
55
  CommonsSignInHandle,
48
56
  CommonsSignInStatus,
57
+ CommonsSignInPurpose,
58
+ CommonsOAuthContext,
49
59
  CommonsApprovalInfo,
60
+ CommonsApprovalSubjectAccount,
50
61
  CommonsSignInActionResult,
62
+ CommonsDenyReason,
63
+ CommonsOAuthFinalizeResult,
64
+ CommonsDeliveryResult,
51
65
  } from './mixins/OxyServices.auth';
66
+ // Push-token registration (Expo push tokens — never raw APNs/FCM device tokens).
67
+ export type {
68
+ PushTokenPlatform,
69
+ RegisterPushTokenInput,
70
+ } from './mixins/OxyServices.notifications';
52
71
  export type { ServiceApp, ServiceActingAsVerification } from './mixins/OxyServices.utility';
53
72
  export type {
54
73
  ContactDiscoveryMatch,
@@ -581,10 +600,12 @@ export {
581
600
  OXY_AUTHORIZE_URL,
582
601
  OXY_OAUTH_STATE_STORAGE_KEY,
583
602
  OXY_OAUTH_CODE_VERIFIER_STORAGE_KEY,
603
+ OXY_OAUTH_REDIRECT_URI_STORAGE_KEY,
584
604
  OXY_SILENT_OAUTH_ATTEMPTED_KEY,
585
605
  OXY_CROSS_ORIGIN_RESTORE_ATTEMPTED_KEY,
586
606
  OXY_OAUTH_RETURN_PATH_STORAGE_KEY,
587
607
  normalizeOAuthRedirectUri,
608
+ canonicalizeOAuthRedirectUri,
588
609
  persistOAuthHandshake,
589
610
  readOAuthHandshake,
590
611
  clearOAuthHandshake,
@@ -666,6 +687,7 @@ export type {
666
687
  PopupWindowHandle,
667
688
  SignInFlowPhase,
668
689
  SignInFlowState,
690
+ SignInProgress,
669
691
  } from './session/accountDialogController';
670
692
 
671
693
  // ---------------------------------------------------------------------------
@@ -687,6 +709,32 @@ export type {
687
709
  NativeKeyValueStorage,
688
710
  } from './session/authStateStore';
689
711
 
712
+ // Identity-bound sessions (the identity vault). The pin is the durable
713
+ // `{publicKey, accountId}` binding between this device's PRIMARY identity key
714
+ // and the account it authenticates as; it is what keeps such a client from
715
+ // following the device's mutable `activeAccountId`.
716
+ export {
717
+ createWebIdentityPinStore,
718
+ createNativeIdentityPinStore,
719
+ createMemoryIdentityPinStore,
720
+ identityPinMatches,
721
+ IDENTITY_PIN_STORAGE_KEY,
722
+ } from './session/identityPin';
723
+ export type { IdentityPin, IdentityPinStore } from './session/identityPin';
724
+ export {
725
+ resolveIdentityPin,
726
+ establishIdentitySession,
727
+ } from './session/identitySession';
728
+ export type {
729
+ IdentityBinding,
730
+ IdentityRequestOptions,
731
+ EstablishedIdentitySession,
732
+ } from './session/identitySession';
733
+ // The typed `401 account_not_on_device` from a PINNED device-secret mint: the
734
+ // pinned account left this device's session set, so the caller re-establishes
735
+ // the identity session instead of dropping a healthy device credential.
736
+ export { AccountNotOnDeviceError } from './mixins/OxyServices.deviceBoot';
737
+
690
738
  export {
691
739
  refreshPersistedSession,
692
740
  refreshDeviceSecretArm,
@@ -700,6 +748,7 @@ export type { RefreshDeps, TokenRefreshSchedulerHandle, DeviceSecretMintOutcome
700
748
  export { runSessionColdBoot } from './boot/sessionColdBoot';
701
749
  export type {
702
750
  RunSessionColdBootOptions,
751
+ SessionMode,
703
752
  SignedOutReason,
704
753
  DeviceBootSession,
705
754
  } from './boot/sessionColdBoot';