@oxyhq/core 1.11.24 → 2.1.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.
Files changed (150) hide show
  1. package/README.md +5 -6
  2. package/dist/cjs/.tsbuildinfo +1 -1
  3. package/dist/cjs/AuthManager.js +678 -4
  4. package/dist/cjs/AuthManagerTypes.js +13 -0
  5. package/dist/cjs/CrossDomainAuth.js +45 -3
  6. package/dist/cjs/OxyServices.base.js +16 -0
  7. package/dist/cjs/i18n/locales/ar-SA.json +83 -0
  8. package/dist/cjs/i18n/locales/ca-ES.json +83 -0
  9. package/dist/cjs/i18n/locales/de-DE.json +83 -0
  10. package/dist/cjs/i18n/locales/en-US.json +83 -0
  11. package/dist/cjs/i18n/locales/es-ES.json +99 -4
  12. package/dist/cjs/i18n/locales/fr-FR.json +83 -0
  13. package/dist/cjs/i18n/locales/it-IT.json +83 -0
  14. package/dist/cjs/i18n/locales/ja-JP.json +83 -0
  15. package/dist/cjs/i18n/locales/ko-KR.json +83 -0
  16. package/dist/cjs/i18n/locales/locales/ar-SA.json +83 -1
  17. package/dist/cjs/i18n/locales/locales/ca-ES.json +83 -1
  18. package/dist/cjs/i18n/locales/locales/de-DE.json +83 -1
  19. package/dist/cjs/i18n/locales/locales/en-US.json +83 -0
  20. package/dist/cjs/i18n/locales/locales/es-ES.json +99 -4
  21. package/dist/cjs/i18n/locales/locales/fr-FR.json +83 -1
  22. package/dist/cjs/i18n/locales/locales/it-IT.json +83 -1
  23. package/dist/cjs/i18n/locales/locales/ja-JP.json +200 -117
  24. package/dist/cjs/i18n/locales/locales/ko-KR.json +83 -1
  25. package/dist/cjs/i18n/locales/locales/pt-PT.json +83 -1
  26. package/dist/cjs/i18n/locales/locales/zh-CN.json +83 -1
  27. package/dist/cjs/i18n/locales/pt-PT.json +83 -0
  28. package/dist/cjs/i18n/locales/zh-CN.json +83 -0
  29. package/dist/cjs/index.js +121 -57
  30. package/dist/cjs/mixins/OxyServices.auth.js +235 -0
  31. package/dist/cjs/mixins/OxyServices.fedcm.js +36 -0
  32. package/dist/cjs/mixins/OxyServices.popup.js +61 -1
  33. package/dist/cjs/mixins/OxyServices.user.js +18 -0
  34. package/dist/cjs/utils/accountUtils.js +64 -1
  35. package/dist/cjs/utils/coldBoot.js +71 -0
  36. package/dist/cjs/utils/fapiAutoDetect.js +88 -0
  37. package/dist/esm/.tsbuildinfo +1 -1
  38. package/dist/esm/AuthManager.js +678 -4
  39. package/dist/esm/AuthManagerTypes.js +12 -0
  40. package/dist/esm/CrossDomainAuth.js +45 -3
  41. package/dist/esm/OxyServices.base.js +16 -0
  42. package/dist/esm/i18n/locales/ar-SA.json +83 -0
  43. package/dist/esm/i18n/locales/ca-ES.json +83 -0
  44. package/dist/esm/i18n/locales/de-DE.json +83 -0
  45. package/dist/esm/i18n/locales/en-US.json +83 -0
  46. package/dist/esm/i18n/locales/es-ES.json +99 -4
  47. package/dist/esm/i18n/locales/fr-FR.json +83 -0
  48. package/dist/esm/i18n/locales/it-IT.json +83 -0
  49. package/dist/esm/i18n/locales/ja-JP.json +83 -0
  50. package/dist/esm/i18n/locales/ko-KR.json +83 -0
  51. package/dist/esm/i18n/locales/locales/ar-SA.json +83 -1
  52. package/dist/esm/i18n/locales/locales/ca-ES.json +83 -1
  53. package/dist/esm/i18n/locales/locales/de-DE.json +83 -1
  54. package/dist/esm/i18n/locales/locales/en-US.json +83 -0
  55. package/dist/esm/i18n/locales/locales/es-ES.json +99 -4
  56. package/dist/esm/i18n/locales/locales/fr-FR.json +83 -1
  57. package/dist/esm/i18n/locales/locales/it-IT.json +83 -1
  58. package/dist/esm/i18n/locales/locales/ja-JP.json +200 -117
  59. package/dist/esm/i18n/locales/locales/ko-KR.json +83 -1
  60. package/dist/esm/i18n/locales/locales/pt-PT.json +83 -1
  61. package/dist/esm/i18n/locales/locales/zh-CN.json +83 -1
  62. package/dist/esm/i18n/locales/pt-PT.json +83 -0
  63. package/dist/esm/i18n/locales/zh-CN.json +83 -0
  64. package/dist/esm/index.js +74 -26
  65. package/dist/esm/mixins/OxyServices.auth.js +235 -0
  66. package/dist/esm/mixins/OxyServices.fedcm.js +36 -0
  67. package/dist/esm/mixins/OxyServices.popup.js +61 -1
  68. package/dist/esm/mixins/OxyServices.user.js +18 -0
  69. package/dist/esm/utils/accountUtils.js +61 -0
  70. package/dist/esm/utils/coldBoot.js +68 -0
  71. package/dist/esm/utils/fapiAutoDetect.js +85 -0
  72. package/dist/types/.tsbuildinfo +1 -1
  73. package/dist/types/AuthManager.d.ts +243 -3
  74. package/dist/types/AuthManagerTypes.d.ts +68 -0
  75. package/dist/types/CrossDomainAuth.d.ts +23 -0
  76. package/dist/types/OxyServices.base.d.ts +14 -0
  77. package/dist/types/OxyServices.d.ts +7 -0
  78. package/dist/types/index.d.ts +31 -17
  79. package/dist/types/mixins/OxyServices.analytics.d.ts +1 -0
  80. package/dist/types/mixins/OxyServices.appData.d.ts +1 -0
  81. package/dist/types/mixins/OxyServices.assets.d.ts +4 -1
  82. package/dist/types/mixins/OxyServices.auth.d.ts +73 -1
  83. package/dist/types/mixins/OxyServices.contacts.d.ts +1 -0
  84. package/dist/types/mixins/OxyServices.developer.d.ts +1 -0
  85. package/dist/types/mixins/OxyServices.devices.d.ts +1 -0
  86. package/dist/types/mixins/OxyServices.features.d.ts +2 -5
  87. package/dist/types/mixins/OxyServices.fedcm.d.ts +34 -0
  88. package/dist/types/mixins/OxyServices.karma.d.ts +1 -0
  89. package/dist/types/mixins/OxyServices.language.d.ts +1 -0
  90. package/dist/types/mixins/OxyServices.location.d.ts +1 -0
  91. package/dist/types/mixins/OxyServices.managedAccounts.d.ts +1 -0
  92. package/dist/types/mixins/OxyServices.payment.d.ts +1 -0
  93. package/dist/types/mixins/OxyServices.popup.d.ts +40 -0
  94. package/dist/types/mixins/OxyServices.privacy.d.ts +1 -0
  95. package/dist/types/mixins/OxyServices.redirect.d.ts +1 -0
  96. package/dist/types/mixins/OxyServices.security.d.ts +1 -0
  97. package/dist/types/mixins/OxyServices.topics.d.ts +1 -0
  98. package/dist/types/mixins/OxyServices.user.d.ts +16 -1
  99. package/dist/types/mixins/OxyServices.utility.d.ts +1 -0
  100. package/dist/types/models/interfaces.d.ts +98 -0
  101. package/dist/types/models/session.d.ts +8 -0
  102. package/dist/types/utils/accountUtils.d.ts +33 -0
  103. package/dist/types/utils/coldBoot.d.ts +102 -0
  104. package/dist/types/utils/fapiAutoDetect.d.ts +37 -0
  105. package/package.json +9 -18
  106. package/src/AuthManager.ts +776 -7
  107. package/src/AuthManagerTypes.ts +72 -0
  108. package/src/CrossDomainAuth.ts +54 -3
  109. package/src/OxyServices.base.ts +17 -0
  110. package/src/OxyServices.ts +7 -0
  111. package/src/__tests__/authManager.cookiePath.test.ts +339 -0
  112. package/src/__tests__/authManager.security.test.ts +342 -0
  113. package/src/__tests__/crossDomainAuth.test.ts +191 -0
  114. package/src/i18n/locales/ar-SA.json +83 -1
  115. package/src/i18n/locales/ca-ES.json +83 -1
  116. package/src/i18n/locales/de-DE.json +83 -1
  117. package/src/i18n/locales/en-US.json +83 -0
  118. package/src/i18n/locales/es-ES.json +99 -4
  119. package/src/i18n/locales/fr-FR.json +83 -1
  120. package/src/i18n/locales/it-IT.json +83 -1
  121. package/src/i18n/locales/ja-JP.json +200 -117
  122. package/src/i18n/locales/ko-KR.json +83 -1
  123. package/src/i18n/locales/pt-PT.json +83 -1
  124. package/src/i18n/locales/zh-CN.json +83 -1
  125. package/src/index.ts +309 -112
  126. package/src/mixins/OxyServices.auth.ts +268 -1
  127. package/src/mixins/OxyServices.fedcm.ts +63 -0
  128. package/src/mixins/OxyServices.popup.ts +79 -1
  129. package/src/mixins/OxyServices.user.ts +33 -1
  130. package/src/mixins/__tests__/popup.test.ts +307 -0
  131. package/src/mixins/__tests__/sessionBaseUrl.test.ts +61 -0
  132. package/src/models/interfaces.ts +116 -0
  133. package/src/models/session.ts +8 -0
  134. package/src/utils/__tests__/coldBoot.test.ts +226 -0
  135. package/src/utils/__tests__/fapiAutoDetect.test.ts +93 -0
  136. package/src/utils/accountUtils.ts +84 -0
  137. package/src/utils/coldBoot.ts +136 -0
  138. package/src/utils/fapiAutoDetect.ts +82 -0
  139. package/dist/cjs/crypto/index.js +0 -22
  140. package/dist/cjs/shared/index.js +0 -70
  141. package/dist/cjs/utils/index.js +0 -26
  142. package/dist/esm/crypto/index.js +0 -13
  143. package/dist/esm/shared/index.js +0 -31
  144. package/dist/esm/utils/index.js +0 -7
  145. package/dist/types/crypto/index.d.ts +0 -11
  146. package/dist/types/shared/index.d.ts +0 -28
  147. package/dist/types/utils/index.d.ts +0 -6
  148. package/src/crypto/index.ts +0 -30
  149. package/src/shared/index.ts +0 -82
  150. package/src/utils/index.ts +0 -21
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * AuthManager — public types for the multi-account cookie path.
4
+ *
5
+ * Lives in its own module (rather than the 670-line `models/interfaces.ts`)
6
+ * so consumers can `import type` exactly the multi-account surface without
7
+ * pulling in the full interfaces graph, and so `AuthManager.ts` stays
8
+ * decoupled from the wire shapes — these types re-state the wire as the
9
+ * AuthManager's in-memory representation.
10
+ *
11
+ * @module core/AuthManagerTypes
12
+ */
13
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -42,20 +42,45 @@ class CrossDomainAuth {
42
42
  */
43
43
  async signIn(options = {}) {
44
44
  const method = options.method || 'auto';
45
- // If specific method requested, use it directly
45
+ // If specific method requested, use it directly. The caller MAY have
46
+ // pre-opened a popup on the raw click (the standard pattern in
47
+ // WebOxyProvider / services useAuth). For the FedCM and redirect paths
48
+ // that popup is unused — close it so it doesn't linger as an orphaned
49
+ // blank window. Close in both success and failure paths.
46
50
  if (method === 'fedcm') {
47
- return this.signInWithFedCM(options);
51
+ try {
52
+ const session = await this.signInWithFedCM(options);
53
+ this.closeOrphanPopup(options.popup);
54
+ return session;
55
+ }
56
+ catch (error) {
57
+ this.closeOrphanPopup(options.popup);
58
+ throw error;
59
+ }
48
60
  }
49
61
  if (method === 'popup') {
50
62
  return this.signInWithPopup(options);
51
63
  }
52
64
  if (method === 'redirect') {
65
+ this.closeOrphanPopup(options.popup);
53
66
  this.signInWithRedirect(options);
54
67
  return null; // Redirect doesn't return immediately
55
68
  }
56
69
  // Auto mode: Try methods in order of preference
57
70
  return this.autoSignIn(options);
58
71
  }
72
+ /**
73
+ * Close a caller-supplied popup window that is no longer needed (e.g. the
74
+ * resolved auth method didn't end up using it). Safe against null / already
75
+ * closed handles.
76
+ *
77
+ * @private
78
+ */
79
+ closeOrphanPopup(popup) {
80
+ if (popup && !popup.closed) {
81
+ popup.close();
82
+ }
83
+ }
59
84
  /**
60
85
  * Automatic sign-in with progressive enhancement
61
86
  *
@@ -66,7 +91,11 @@ class CrossDomainAuth {
66
91
  if (this.isFedCMSupported()) {
67
92
  try {
68
93
  options.onMethodSelected?.('fedcm');
69
- return await this.signInWithFedCM(options);
94
+ const session = await this.signInWithFedCM(options);
95
+ // FedCM succeeded — close the pre-opened popup so it doesn't linger
96
+ // as an orphaned blank window.
97
+ this.closeOrphanPopup(options.popup);
98
+ return session;
70
99
  }
71
100
  catch (error) {
72
101
  console.warn('[CrossDomainAuth] FedCM failed, trying popup...', error);
@@ -79,6 +108,8 @@ class CrossDomainAuth {
79
108
  }
80
109
  catch (error) {
81
110
  console.warn('[CrossDomainAuth] Popup failed, falling back to redirect...', error);
111
+ // Popup path failed — close the pre-opened popup before redirecting.
112
+ this.closeOrphanPopup(options.popup);
82
113
  }
83
114
  // 3. Fallback to redirect (always works)
84
115
  options.onMethodSelected?.('redirect');
@@ -105,6 +136,7 @@ class CrossDomainAuth {
105
136
  mode: options.isSignup ? 'signup' : 'login',
106
137
  width: options.popupDimensions?.width,
107
138
  height: options.popupDimensions?.height,
139
+ popup: options.popup ?? undefined,
108
140
  });
109
141
  }
110
142
  /**
@@ -164,6 +196,16 @@ class CrossDomainAuth {
164
196
  restoreSession() {
165
197
  return this.oxyServices.restoreSession?.() || false;
166
198
  }
199
+ /**
200
+ * Open a blank popup SYNCHRONOUSLY (call from a raw user-gesture handler
201
+ * BEFORE any `await`). Returns `null` if the popup was blocked. Pass the
202
+ * handle into `signIn({ popup })` / `signInWithPopup({ popup })` so the
203
+ * popup is not blocked by Chrome after any prior `await` consumed the
204
+ * transient user activation. Delegates to `OxyServices.openBlankPopup`.
205
+ */
206
+ openBlankPopup(width, height) {
207
+ return this.oxyServices.openBlankPopup(width, height);
208
+ }
167
209
  /**
168
210
  * Check if FedCM is supported in current browser
169
211
  */
@@ -53,6 +53,22 @@ class OxyServicesBase {
53
53
  getBaseURL() {
54
54
  return this.httpService.getBaseURL();
55
55
  }
56
+ /**
57
+ * Get the base URL the SDK's first-party session/refresh calls should target.
58
+ *
59
+ * Returns the configured `sessionBaseUrl` when provided, otherwise falls back
60
+ * to the API `baseURL` (`getBaseURL()`). Per the 2026 session architecture
61
+ * (docs/SESSION-ARCHITECTURE.md), non-`oxy.so` apps point this at their own
62
+ * same-site backend (e.g. `https://api.mention.earth`) whose session bridge
63
+ * forwards the user's refresh credential to `api.oxy.so`; `*.oxy.so` apps
64
+ * leave it unset so it resolves to `https://api.oxy.so` and nothing changes.
65
+ *
66
+ * This is additive: it only exposes configuration for `@oxyhq/services` to
67
+ * consume in a later phase. No refresh/auth logic in core reads it yet.
68
+ */
69
+ getSessionBaseUrl() {
70
+ return this.config.sessionBaseUrl ?? this.getBaseURL();
71
+ }
56
72
  /**
57
73
  * Get the HTTP service instance
58
74
  * Useful for advanced use cases where direct access to the HTTP service is needed
@@ -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
  }
@@ -114,6 +114,89 @@
114
114
  "email": "Correu electrònic",
115
115
  "password": "Contrasenya",
116
116
  "confirmPassword": "Confirmar contrasenya"
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": "E-Mail",
115
115
  "password": "Passwort",
116
116
  "confirmPassword": "Passwort bestätigen"
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
  }
@@ -1060,6 +1060,7 @@
1060
1060
  "resetPassword": "Reset Password"
1061
1061
  },
1062
1062
  "cancel": "Cancel",
1063
+ "revoke": "Revoke",
1063
1064
  "retry": "Retry",
1064
1065
  "save": "Save",
1065
1066
  "saved": "Saved successfully",
@@ -1412,5 +1413,87 @@
1412
1413
  "deleteFile": "Are you sure you want to delete \"{{filename}}\"? This action cannot be undone.",
1413
1414
  "deleteFiles": "Are you sure you want to delete {{count}} file(s)? This action cannot be undone."
1414
1415
  }
1416
+ },
1417
+ "notifications": {
1418
+ "title": "Notifications",
1419
+ "subtitle": "Manage push, email, and security alerts",
1420
+ "updateError": "Failed to update notification preferences",
1421
+ "sections": {
1422
+ "channels": "Channels",
1423
+ "alerts": "Alerts",
1424
+ "marketing": "Marketing"
1425
+ },
1426
+ "items": {
1427
+ "push": {
1428
+ "title": "Push notifications",
1429
+ "subtitle": "Real-time alerts on your devices"
1430
+ },
1431
+ "emailDigest": {
1432
+ "title": "Email digest",
1433
+ "subtitle": "Periodic summary of your account activity"
1434
+ },
1435
+ "securityAlerts": {
1436
+ "title": "Security alerts",
1437
+ "subtitle": "Sign-ins, recovery codes, and key changes"
1438
+ },
1439
+ "marketingEmails": {
1440
+ "title": "Marketing emails",
1441
+ "subtitle": "Product news and occasional offers"
1442
+ }
1443
+ }
1444
+ },
1445
+ "preferences": {
1446
+ "title": "Preferences",
1447
+ "subtitle": "Theme, motion, and regional settings",
1448
+ "sections": {
1449
+ "appearance": "Appearance",
1450
+ "language": "Language",
1451
+ "region": "Region"
1452
+ },
1453
+ "theme": {
1454
+ "light": "Light",
1455
+ "dark": "Dark",
1456
+ "system": "System default"
1457
+ },
1458
+ "items": {
1459
+ "theme": {
1460
+ "title": "Theme"
1461
+ },
1462
+ "reduceMotion": {
1463
+ "title": "Reduce motion",
1464
+ "subtitle": "Minimise animations across Oxy apps",
1465
+ "systemOn": "Following system: reduce motion is on"
1466
+ },
1467
+ "language": {
1468
+ "title": "Language"
1469
+ },
1470
+ "timezone": {
1471
+ "title": "Timezone",
1472
+ "unknown": "Unable to detect timezone"
1473
+ },
1474
+ "about": {
1475
+ "title": "About preferences",
1476
+ "subtitle": "Preferences sync across every Oxy app you sign into"
1477
+ }
1478
+ }
1479
+ },
1480
+ "connectedApps": {
1481
+ "title": "Connected apps",
1482
+ "subtitle": "Manage third-party app access",
1483
+ "empty": {
1484
+ "title": "No connected apps",
1485
+ "subtitle": "Apps you authorize to sign in with your Oxy account will appear here"
1486
+ },
1487
+ "item": {
1488
+ "lastUsed": "Last used {{relative}}"
1489
+ },
1490
+ "confirm": {
1491
+ "title": "Revoke access",
1492
+ "message": "Revoke {{name}}'s access to your Oxy account?"
1493
+ },
1494
+ "toasts": {
1495
+ "revoked": "Revoked access for {{name}}",
1496
+ "revokeFailed": "Failed to revoke access"
1497
+ }
1415
1498
  }
1416
1499
  }
@@ -284,6 +284,7 @@
284
284
  "resetPassword": "Restablecer contraseña"
285
285
  },
286
286
  "cancel": "Cancelar",
287
+ "revoke": "Revocar",
287
288
  "retry": "Reintentar",
288
289
  "save": "Guardar",
289
290
  "saved": "Guardado correctamente",
@@ -326,13 +327,25 @@
326
327
  "actions": {
327
328
  "manage": "Gestionar"
328
329
  },
329
- "loadingAdditional": { "title": "Cargando cuentas...", "subtitle": "Espera mientras cargamos tus cuentas adicionales" },
330
+ "loadingAdditional": {
331
+ "title": "Cargando cuentas...",
332
+ "subtitle": "Espera mientras cargamos tus cuentas adicionales"
333
+ },
330
334
  "additional": {
331
- "noAccounts": { "title": "No hay otras cuentas", "subtitle": "Añade otra cuenta para cambiar entre ellas" }
335
+ "noAccounts": {
336
+ "title": "No hay otras cuentas",
337
+ "subtitle": "Añade otra cuenta para cambiar entre ellas"
338
+ }
332
339
  },
333
340
  "items": {
334
- "addAccount": { "title": "Añadir otra cuenta", "subtitle": "Inicia sesión con otra cuenta" },
335
- "signOutAll": { "title": "Cerrar sesión en todas las cuentas", "subtitle": "Eliminar todas las cuentas de este dispositivo" },
341
+ "addAccount": {
342
+ "title": "Añadir otra cuenta",
343
+ "subtitle": "Inicia sesión con otra cuenta"
344
+ },
345
+ "signOutAll": {
346
+ "title": "Cerrar sesión en todas las cuentas",
347
+ "subtitle": "Eliminar todas las cuentas de este dispositivo"
348
+ },
336
349
  "accountSwitcher": {
337
350
  "switchPrompt": "¿Cambiar a {{username}}?",
338
351
  "titleShow": "Mostrar conmutador de cuentas",
@@ -1400,5 +1413,87 @@
1400
1413
  "deleteFile": "¿Seguro que quieres eliminar \"{{filename}}\"? Esta acción no se puede deshacer.",
1401
1414
  "deleteFiles": "¿Seguro que quieres eliminar {{count}} archivo(s)? Esta acción no se puede deshacer."
1402
1415
  }
1416
+ },
1417
+ "notifications": {
1418
+ "title": "Notificaciones",
1419
+ "subtitle": "Gestiona las alertas push, por correo y de seguridad",
1420
+ "updateError": "No se han podido actualizar las preferencias de notificación",
1421
+ "sections": {
1422
+ "channels": "Canales",
1423
+ "alerts": "Alertas",
1424
+ "marketing": "Marketing"
1425
+ },
1426
+ "items": {
1427
+ "push": {
1428
+ "title": "Notificaciones push",
1429
+ "subtitle": "Alertas en tiempo real en tus dispositivos"
1430
+ },
1431
+ "emailDigest": {
1432
+ "title": "Resumen por correo",
1433
+ "subtitle": "Resumen periódico de la actividad de tu cuenta"
1434
+ },
1435
+ "securityAlerts": {
1436
+ "title": "Alertas de seguridad",
1437
+ "subtitle": "Inicios de sesión, códigos de recuperación y cambios de claves"
1438
+ },
1439
+ "marketingEmails": {
1440
+ "title": "Correos de marketing",
1441
+ "subtitle": "Novedades del producto y ofertas ocasionales"
1442
+ }
1443
+ }
1444
+ },
1445
+ "preferences": {
1446
+ "title": "Preferencias",
1447
+ "subtitle": "Tema, movimiento y configuración regional",
1448
+ "sections": {
1449
+ "appearance": "Apariencia",
1450
+ "language": "Idioma",
1451
+ "region": "Región"
1452
+ },
1453
+ "theme": {
1454
+ "light": "Claro",
1455
+ "dark": "Oscuro",
1456
+ "system": "Predeterminado del sistema"
1457
+ },
1458
+ "items": {
1459
+ "theme": {
1460
+ "title": "Tema"
1461
+ },
1462
+ "reduceMotion": {
1463
+ "title": "Reducir movimiento",
1464
+ "subtitle": "Minimizar animaciones en todas las apps de Oxy",
1465
+ "systemOn": "Siguiendo al sistema: reducir movimiento activado"
1466
+ },
1467
+ "language": {
1468
+ "title": "Idioma"
1469
+ },
1470
+ "timezone": {
1471
+ "title": "Zona horaria",
1472
+ "unknown": "No se ha podido detectar la zona horaria"
1473
+ },
1474
+ "about": {
1475
+ "title": "Acerca de las preferencias",
1476
+ "subtitle": "Las preferencias se sincronizan en todas las apps de Oxy en las que inicies sesión"
1477
+ }
1478
+ }
1479
+ },
1480
+ "connectedApps": {
1481
+ "title": "Aplicaciones conectadas",
1482
+ "subtitle": "Gestiona el acceso de aplicaciones de terceros",
1483
+ "empty": {
1484
+ "title": "Sin aplicaciones conectadas",
1485
+ "subtitle": "Las apps que autorices a iniciar sesión con tu cuenta Oxy aparecerán aquí"
1486
+ },
1487
+ "item": {
1488
+ "lastUsed": "Último uso: {{relative}}"
1489
+ },
1490
+ "confirm": {
1491
+ "title": "Revocar acceso",
1492
+ "message": "¿Revocar el acceso de {{name}} a tu cuenta Oxy?"
1493
+ },
1494
+ "toasts": {
1495
+ "revoked": "Acceso revocado para {{name}}",
1496
+ "revokeFailed": "No se ha podido revocar el acceso"
1497
+ }
1403
1498
  }
1404
1499
  }