@oxy.so/services 14.15.0 → 14.15.2
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/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js +27 -2
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js +3 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/ReauthStep.js +21 -0
- package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +30 -6
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/session/deviceCredentialTracker.js +4 -2
- package/lib/commonjs/ui/session/deviceCredentialTracker.js.map +1 -1
- package/lib/commonjs/ui/session/setupSignIn.js +6 -0
- package/lib/commonjs/ui/session/setupSignIn.js.map +1 -0
- package/lib/module/index.js +0 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignInPanel.js +27 -2
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js +3 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/ReauthStep.js +22 -1
- package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +30 -6
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/session/deviceCredentialTracker.js +4 -2
- package/lib/module/ui/session/deviceCredentialTracker.js.map +1 -1
- package/lib/module/ui/session/setupSignIn.js +4 -0
- package/lib/module/ui/session/setupSignIn.js.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +1 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts +2 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts +10 -3
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts +3 -12
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/setupSignIn.d.ts +38 -0
- package/lib/typescript/commonjs/ui/session/setupSignIn.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/types/navigation.d.ts +7 -3
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/identityCrypto.d.ts +81 -0
- package/lib/typescript/commonjs/ui/utils/identityCrypto.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +1 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts +2 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts +10 -3
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts +3 -12
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/setupSignIn.d.ts +38 -0
- package/lib/typescript/module/ui/session/setupSignIn.d.ts.map +1 -0
- package/lib/typescript/module/ui/types/navigation.d.ts +7 -3
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/identityCrypto.d.ts +81 -0
- package/lib/typescript/module/ui/utils/identityCrypto.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +5 -0
- package/src/ui/components/signIn/OxySignInPanel.tsx +22 -2
- package/src/ui/components/signIn/OxySignUpPanel.tsx +1 -1
- package/src/ui/components/signIn/ReauthStep.tsx +26 -1
- package/src/ui/context/OxyContext.tsx +47 -6
- package/src/ui/context/oxyContextTypes.ts +11 -3
- package/src/ui/session/deviceCredentialTracker.ts +10 -5
- package/src/ui/session/setupSignIn.ts +41 -0
- package/src/ui/types/navigation.ts +7 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReauthStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/ReauthStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkBnE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,MAAM,EAAE,YAAY,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB
|
|
1
|
+
{"version":3,"file":"ReauthStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/ReauthStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkBnE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,MAAM,EAAE,YAAY,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kEAAkE;IAClE,WAAW,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IAC/B,wEAAwE;IACxE,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,iCAAiC;IACjC,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0NhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+G/B,OAAO,KAAK,EAAmB,uBAAuB,EAAe,MAAM,mBAAmB,CAAC;AAQ/F,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAOhG,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,cAAc,EACd,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAmzDhE,CAAC"}
|
|
@@ -3,8 +3,9 @@ import type { StartNativeOAuthSignInOptions, NativeOAuthSignInResult } from '../
|
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
4
|
import type { LoginSessionResult } from '@oxy.so/contracts';
|
|
5
5
|
import type { OxyServices, User, SessionLoginResponse, AccountNode, CreateAccountInput, ClientSession, ApiError } from '@oxy.so/core';
|
|
6
|
-
import type { AccountDialogController, AccountDialogView,
|
|
6
|
+
import type { AccountDialogController, AccountDialogView, SessionClient, SessionMode } from '@oxy.so/core/session';
|
|
7
7
|
import type { UseFollowHook } from '../hooks/useFollow.types';
|
|
8
|
+
import type { PlatformSetupAuthStateStore, SetupSignInContext } from '../session/setupSignIn';
|
|
8
9
|
import type { useLanguageManagement } from '../hooks/useLanguageManagement';
|
|
9
10
|
import type { RouteName } from '../navigation/routes';
|
|
10
11
|
import type { StartWebOAuthSignInOptions } from '../oauth/browserAuthTransport';
|
|
@@ -100,7 +101,13 @@ export interface OxyContextState {
|
|
|
100
101
|
* code exchange, an email code or link, a password, a sign-up — as the
|
|
101
102
|
* active one.
|
|
102
103
|
*/
|
|
103
|
-
handleWebSession: (session: SessionLoginResponse | LoginSessionResult
|
|
104
|
+
handleWebSession: (session: SessionLoginResponse | LoginSessionResult,
|
|
105
|
+
/**
|
|
106
|
+
* How the sign-in happened, handed to a platform's setup store
|
|
107
|
+
* (`authStateStore`) with the credential, and to no other store
|
|
108
|
+
* (`SetupSignInContext`).
|
|
109
|
+
*/
|
|
110
|
+
setup?: SetupSignInContext) => Promise<void>;
|
|
104
111
|
/**
|
|
105
112
|
* Run a WEB third-party OAuth sign-in (authorization code + PKCE) end to end
|
|
106
113
|
* using this provider's `webAuthMode`, and commit the resulting session.
|
|
@@ -231,7 +238,7 @@ export interface OxyRuntimeProviderProps {
|
|
|
231
238
|
/** Storage instance owned by the public provider; internal composition seam. */
|
|
232
239
|
platformStorage?: StorageInterface | null;
|
|
233
240
|
/** See `OxyProviderProps.authStateStore`. Read once, at mount. */
|
|
234
|
-
authStateStore?:
|
|
241
|
+
authStateStore?: PlatformSetupAuthStateStore;
|
|
235
242
|
/** See `OxyProviderProps.accountQueries`. Read once, at mount. */
|
|
236
243
|
accountQueries?: AccountQueriesConfig;
|
|
237
244
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxyContextTypes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/oxyContextTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EACV,WAAW,EACX,IAAI,EACJ,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"oxyContextTypes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/oxyContextTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EACV,WAAW,EACX,IAAI,EACJ,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,aAA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
declare const Ionicons: import("@expo/vector-icons/build/createIconSet").Icon<"push" | "infinite" | "code" | "business" | "navigate" | "key" | "open" | "add" | "search" | "list" | "settings" | "trash" | "wallet" | "link" | "text" | "scale" | "image" | "alert" | "radio" | "grid" | "warning" | "people" | "ellipse" | "add-circle-outline" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-back" | "arrow-down" | "arrow-forward" | "arrow-undo" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "bulb" | "business-outline" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "cash-outline" | "chatbubble" | "checkmark" | "checkmark-circle" | "chevron-back" | "chevron-down" | "chevron-forward" | "chevron-up" | "close" | "close-circle" | "cloud-offline-outline" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "construct-outline" | "copy-outline" | "cube-outline" | "desktop" | "document" | "document-outline" | "document-text" | "documents" | "download" | "download-outline" | "earth" | "ellipse-outline" | "ellipsis-horizontal" | "eye" | "eye-off-outline" | "filter-outline" | "flame" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "footsteps" | "gift" | "gift-outline" | "hand-left" | "hardware-chip-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "hourglass-outline" | "image-outline" | "images" | "images-outline" | "information" | "information-circle" | "information-outline" | "leaf" | "library" | "link-outline" | "location" | "location-outline" | "lock-closed" | "log-out-outline" | "mail" | "musical-notes" | "pencil-outline" | "people-outline" | "play" | "pricetag-outline" | "pulse" | "qr-code-outline" | "receipt-outline" | "refresh-outline" | "remove" | "repeat-outline" | "resize" | "rocket" | "
|
|
2
|
+
declare const Ionicons: import("@expo/vector-icons/build/createIconSet").Icon<"push" | "infinite" | "save" | "code" | "business" | "navigate" | "key" | "open" | "add" | "search" | "list" | "settings" | "trash" | "wallet" | "link" | "text" | "scale" | "image" | "alert" | "radio" | "grid" | "warning" | "people" | "ellipse" | "add-circle-outline" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-back" | "arrow-down" | "arrow-forward" | "arrow-undo" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "bulb" | "business-outline" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "cash-outline" | "chatbubble" | "checkmark" | "checkmark-circle" | "chevron-back" | "chevron-down" | "chevron-forward" | "chevron-up" | "close" | "close-circle" | "cloud-offline-outline" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "construct-outline" | "copy-outline" | "cube-outline" | "desktop" | "document" | "document-outline" | "document-text" | "documents" | "download" | "download-outline" | "earth" | "ellipse-outline" | "ellipsis-horizontal" | "eye" | "eye-off-outline" | "filter-outline" | "flame" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "footsteps" | "gift" | "gift-outline" | "hand-left" | "hardware-chip-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "hourglass-outline" | "image-outline" | "images" | "images-outline" | "information" | "information-circle" | "information-outline" | "leaf" | "library" | "link-outline" | "location" | "location-outline" | "lock-closed" | "log-out-outline" | "mail" | "musical-notes" | "pencil-outline" | "people-outline" | "play" | "pricetag-outline" | "pulse" | "qr-code-outline" | "receipt-outline" | "refresh-outline" | "remove" | "repeat-outline" | "resize" | "rocket" | "school-outline" | "search-outline" | "server" | "share-outline" | "shield" | "shield-checkmark" | "shield-checkmark-outline" | "star" | "swap-horizontal-outline" | "swap-vertical-outline" | "sync" | "time-outline" | "trash-outline" | "trophy" | "trophy-outline" | "videocam" | "volume-off" | "wallet-outline" | "watch" | "wifi", "OxyServicesIonicons">;
|
|
3
3
|
export default Ionicons;
|
|
4
4
|
//# sourceMappingURL=Ionicons.d.ts.map
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
* A synchronous answer to "does this origin hold a device credential?".
|
|
3
|
-
*
|
|
4
|
-
* The browser bridge (ADR 0029 D2) must decide INSIDE the sign-in press whether
|
|
5
|
-
* to open its window — a window opened after an `await` is blocked by every
|
|
6
|
-
* browser — but the auth store is async. This wrapper remembers the credential
|
|
7
|
-
* every load, save and clear passes through, so the press can read it at once.
|
|
8
|
-
* The cold boot loads the store on mount, long before anyone presses sign-in.
|
|
9
|
-
*/
|
|
10
|
-
import type { AuthStateStore } from '@oxy.so/core/session';
|
|
1
|
+
import type { PlatformSetupAuthStateStore } from './setupSignIn';
|
|
11
2
|
export interface HeldDeviceCredential {
|
|
12
3
|
deviceId: string;
|
|
13
4
|
deviceSecret: string;
|
|
14
5
|
}
|
|
15
|
-
export interface CredentialTrackingAuthStateStore extends
|
|
6
|
+
export interface CredentialTrackingAuthStateStore extends PlatformSetupAuthStateStore {
|
|
16
7
|
/**
|
|
17
8
|
* The credential last seen through this store; `undefined` until the store has
|
|
18
9
|
* been read at least once (unknown — the caller should not guess).
|
|
19
10
|
*/
|
|
20
11
|
heldDeviceCredential(): HeldDeviceCredential | null | undefined;
|
|
21
12
|
}
|
|
22
|
-
export declare function trackDeviceCredential(store:
|
|
13
|
+
export declare function trackDeviceCredential(store: PlatformSetupAuthStateStore): CredentialTrackingAuthStateStore;
|
|
23
14
|
//# sourceMappingURL=deviceCredentialTracker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceCredentialTracker.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/deviceCredentialTracker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deviceCredentialTracker.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/deviceCredentialTracker.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,2BAA2B,EAAsB,MAAM,eAAe,CAAC;AAErF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gCAAiC,SAAQ,2BAA2B;IACnF;;;OAGG;IACH,oBAAoB,IAAI,oBAAoB,GAAG,IAAI,GAAG,SAAS,CAAC;CACjE;AAUD,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,2BAA2B,GACjC,gCAAgC,CA8BlC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a platform's setup client is told about each sign-in it commits.
|
|
3
|
+
*
|
|
4
|
+
* A platform that runs the SDK's own sign-in at its setup (OxyOS's login
|
|
5
|
+
* screen) gives the provider its own store (`OxyProviderProps.authStateStore`),
|
|
6
|
+
* and `save()` receives the credential the moment a sign-in commits. The
|
|
7
|
+
* platform also needs to know HOW the person signed in, because its own setup
|
|
8
|
+
* differs:
|
|
9
|
+
*
|
|
10
|
+
* - `'qr'`: approved from a device the person already holds (the QR a phone
|
|
11
|
+
* scans, or the Commons identity): passwordless, so the platform asks no
|
|
12
|
+
* password; its service redeems the approval for its own credential
|
|
13
|
+
* (`POST /session/device/platform`, ADR 0058 R6);
|
|
14
|
+
* - `'password'`: the account's password, which the person just typed and the
|
|
15
|
+
* platform may reuse once (OxyOS keeps it as its offline verifier) instead of
|
|
16
|
+
* asking for it again; it is in `password`, with or without a second factor;
|
|
17
|
+
* - `'emailCode'`: the code or the link sent by email;
|
|
18
|
+
* - `'signup'`: a new account.
|
|
19
|
+
*
|
|
20
|
+
* Passed as `save()`'s second argument, and ONLY to a store the app provided:
|
|
21
|
+
* the platform's default stores never receive it. The SDK never keeps the
|
|
22
|
+
* password beyond handing it over, never persists it and never logs it.
|
|
23
|
+
*/
|
|
24
|
+
import type { AuthStateStore, PersistedAuthState } from '@oxy.so/core/session';
|
|
25
|
+
export type SetupSignInMethod = 'qr' | 'password' | 'emailCode' | 'signup';
|
|
26
|
+
export interface SetupSignInContext {
|
|
27
|
+
method: SetupSignInMethod;
|
|
28
|
+
/** The password just typed; present only when `method` is `'password'`. */
|
|
29
|
+
password?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A platform's setup store: an {@link AuthStateStore} whose `save()` may also
|
|
33
|
+
* read how the sign-in happened. Every `AuthStateStore` is one.
|
|
34
|
+
*/
|
|
35
|
+
export interface PlatformSetupAuthStateStore extends Omit<AuthStateStore, 'save'> {
|
|
36
|
+
save(state: PersistedAuthState, context?: SetupSignInContext): Promise<boolean>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=setupSignIn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/setupSignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;IAC/E,IAAI,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACjF"}
|
|
@@ -2,7 +2,8 @@ import type { ReactNode, RefObject } from 'react';
|
|
|
2
2
|
import type { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
import type { AccountQueriesConfig } from '../hooks/accountQueryPersistence';
|
|
4
4
|
import type { RouteName } from '../navigation/routes';
|
|
5
|
-
import type {
|
|
5
|
+
import type { SessionMode } from '@oxy.so/core/session';
|
|
6
|
+
import type { PlatformSetupAuthStateStore } from '../session/setupSignIn';
|
|
6
7
|
import type { WebAuthMode } from '../oauth/types';
|
|
7
8
|
import type { ProductAnalytics } from '../analytics/productAnalytics';
|
|
8
9
|
export interface StepController {
|
|
@@ -179,13 +180,16 @@ export interface OxyProviderProps {
|
|
|
179
180
|
* off) and no background credential (`backgroundSession` is ignored). The
|
|
180
181
|
* email-code, password and authenticator sign-ins and the "add a password"
|
|
181
182
|
* flow (ADR 0030) run as usual; `save()` receives the credential the moment
|
|
182
|
-
* a sign-in commits, so the platform can take it over
|
|
183
|
+
* a sign-in commits, so the platform can take it over, and, as its second
|
|
184
|
+
* argument, how the sign-in happened (`SetupSignInContext`: the QR's
|
|
185
|
+
* approval, a password with the password just typed, an email code, a
|
|
186
|
+
* sign-up). Only this store ever receives that context.
|
|
183
187
|
*
|
|
184
188
|
* Ordinary apps never pass it. Never combined with a session host: when a
|
|
185
189
|
* platform has registered one (`@oxy.so/core/host`), the host wins and this
|
|
186
190
|
* is ignored. Read once, at mount.
|
|
187
191
|
*/
|
|
188
|
-
authStateStore?:
|
|
192
|
+
authStateStore?: PlatformSetupAuthStateStore;
|
|
189
193
|
}
|
|
190
194
|
export interface OxyLanguageConfig {
|
|
191
195
|
/** Previous app-owned storage keys, migrated once without replacing a current SDK choice. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../../src/ui/types/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../../../src/ui/types/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uB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E,WAAW,CAAC;IAC1B;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;IACtC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,qFAAqF;IACrF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;;;;;;;;;;;OAiBG;IACH,cAAc,CAAC,EAAE,2BAA2B,CAAC;CAC9C;AAED,MAAM,WAAW,iBAAiB;IAChC,6FAA6F;IAC7F,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,kEAAkE;IAClE,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD"}
|
|
@@ -95,5 +95,86 @@ export declare const loadIdentityCrypto: () => Promise<{
|
|
|
95
95
|
loadCommonsIdentityBridge: typeof import("@oxy.so/protocol").loadCommonsIdentityBridge;
|
|
96
96
|
signMessage: typeof import("@oxy.so/protocol").signMessage;
|
|
97
97
|
verifySignature: typeof import("@oxy.so/protocol").verifySignature;
|
|
98
|
+
KeychainConflictError: typeof import("@oxy.so/core/crypto").KeychainConflictError;
|
|
99
|
+
KeychainCryptoError: typeof import("@oxy.so/core/crypto").KeychainCryptoError;
|
|
100
|
+
KeychainFormatError: typeof import("@oxy.so/core/crypto").KeychainFormatError;
|
|
101
|
+
KeychainIntegrityError: typeof import("@oxy.so/core/crypto").KeychainIntegrityError;
|
|
102
|
+
KeychainRosterError: typeof import("@oxy.so/core/crypto").KeychainRosterError;
|
|
103
|
+
KeychainStateError: typeof import("@oxy.so/core/crypto").KeychainStateError;
|
|
104
|
+
KEYCHAIN_RECOVERY: "recovery";
|
|
105
|
+
KEYCHAIN_ITEM_PADDING_BLOCK: 256;
|
|
106
|
+
KEYCHAIN_MAX_ITEM_PLAINTEXT: 48896;
|
|
107
|
+
keychainToBase64Url: typeof import("@oxy.so/core/crypto").keychainToBase64Url;
|
|
108
|
+
keychainFromBase64Url: typeof import("@oxy.so/core/crypto").keychainFromBase64Url;
|
|
109
|
+
keychainJcs: typeof import("@oxy.so/core/crypto").keychainJcs;
|
|
110
|
+
zeroize: typeof import("@oxy.so/core/crypto").zeroize;
|
|
111
|
+
keychainTimestamp: typeof import("@oxy.so/core/crypto").keychainTimestamp;
|
|
112
|
+
isKeychainTimestamp: typeof import("@oxy.so/core/crypto").isKeychainTimestamp;
|
|
113
|
+
generateDeviceKeys: typeof import("@oxy.so/core/crypto").generateDeviceKeys;
|
|
114
|
+
deviceKeysFromSecrets: typeof import("@oxy.so/core/crypto").deviceKeysFromSecrets;
|
|
115
|
+
exportPublicKeys: typeof import("@oxy.so/core/crypto").exportPublicKeys;
|
|
116
|
+
zeroizeKeyPairs: typeof import("@oxy.so/core/crypto").zeroizeKeyPairs;
|
|
117
|
+
keychainSeal: typeof import("@oxy.so/core/crypto").keychainSeal;
|
|
118
|
+
keychainOpenSealed: typeof import("@oxy.so/core/crypto").keychainOpenSealed;
|
|
119
|
+
generateRecoveryKey: typeof import("@oxy.so/core/crypto").generateRecoveryKey;
|
|
120
|
+
formatRecoveryKey: typeof import("@oxy.so/core/crypto").formatRecoveryKey;
|
|
121
|
+
parseRecoveryKey: typeof import("@oxy.so/core/crypto").parseRecoveryKey;
|
|
122
|
+
deriveRecoveryKeys: typeof import("@oxy.so/core/crypto").deriveRecoveryKeys;
|
|
123
|
+
recoveryKeyMatches: typeof import("@oxy.so/core/crypto").recoveryKeyMatches;
|
|
124
|
+
KEYCHAIN_PLATFORMS: readonly ["oxyos", "ios", "android", "macos", "windows", "linux", "web"];
|
|
125
|
+
rosterSigningInput: typeof import("@oxy.so/core/crypto").rosterSigningInput;
|
|
126
|
+
rosterEntryHash: typeof import("@oxy.so/core/crypto").rosterEntryHash;
|
|
127
|
+
parseRosterBody: typeof import("@oxy.so/core/crypto").parseRosterBody;
|
|
128
|
+
validateRosterBody: typeof import("@oxy.so/core/crypto").validateRosterBody;
|
|
129
|
+
parseMember: typeof import("@oxy.so/core/crypto").parseMember;
|
|
130
|
+
genesisBody: typeof import("@oxy.so/core/crypto").genesisBody;
|
|
131
|
+
addBody: typeof import("@oxy.so/core/crypto").addBody;
|
|
132
|
+
removeBody: typeof import("@oxy.so/core/crypto").removeBody;
|
|
133
|
+
generationBody: typeof import("@oxy.so/core/crypto").generationBody;
|
|
134
|
+
recoveryBody: typeof import("@oxy.so/core/crypto").recoveryBody;
|
|
135
|
+
signRosterBody: typeof import("@oxy.so/core/crypto").signRosterBody;
|
|
136
|
+
rosterHeadOf: typeof import("@oxy.so/core/crypto").rosterHeadOf;
|
|
137
|
+
verifyRoster: typeof import("@oxy.so/core/crypto").verifyRoster;
|
|
138
|
+
findMember: typeof import("@oxy.so/core/crypto").findMember;
|
|
139
|
+
currentSigningKey: typeof import("@oxy.so/core/crypto").currentSigningKey;
|
|
140
|
+
currentBoxKey: typeof import("@oxy.so/core/crypto").currentBoxKey;
|
|
141
|
+
createKeyring: typeof import("@oxy.so/core/crypto").createKeyring;
|
|
142
|
+
rotateKeyring: typeof import("@oxy.so/core/crypto").rotateKeyring;
|
|
143
|
+
zeroizeKeyring: typeof import("@oxy.so/core/crypto").zeroizeKeyring;
|
|
144
|
+
vaultKeyOf: typeof import("@oxy.so/core/crypto").vaultKeyOf;
|
|
145
|
+
encodeKeyring: typeof import("@oxy.so/core/crypto").encodeKeyring;
|
|
146
|
+
decodeKeyring: typeof import("@oxy.so/core/crypto").decodeKeyring;
|
|
147
|
+
wrapAad: typeof import("@oxy.so/core/crypto").wrapAad;
|
|
148
|
+
wrapSigningInput: typeof import("@oxy.so/core/crypto").wrapSigningInput;
|
|
149
|
+
parseWrap: typeof import("@oxy.so/core/crypto").parseWrap;
|
|
150
|
+
createWrap: typeof import("@oxy.so/core/crypto").createWrap;
|
|
151
|
+
verifyWrap: typeof import("@oxy.so/core/crypto").verifyWrap;
|
|
152
|
+
openWrap: typeof import("@oxy.so/core/crypto").openWrap;
|
|
153
|
+
generateEnrollmentNonce: typeof import("@oxy.so/core/crypto").generateEnrollmentNonce;
|
|
154
|
+
enrollmentCommitInput: typeof import("@oxy.so/core/crypto").enrollmentCommitInput;
|
|
155
|
+
enrollmentCommitment: typeof import("@oxy.so/core/crypto").enrollmentCommitment;
|
|
156
|
+
verifyEnrollmentCommitment: typeof import("@oxy.so/core/crypto").verifyEnrollmentCommitment;
|
|
157
|
+
enrollmentCodeInput: typeof import("@oxy.so/core/crypto").enrollmentCodeInput;
|
|
158
|
+
enrollmentComparisonCode: typeof import("@oxy.so/core/crypto").enrollmentComparisonCode;
|
|
159
|
+
WIFI_SECURITY: readonly ["wpa2-psk", "wpa3-sae", "wep", "open"];
|
|
160
|
+
validateItem: typeof import("@oxy.so/core/crypto").validateItem;
|
|
161
|
+
padItemPlaintext: typeof import("@oxy.so/core/crypto").padItemPlaintext;
|
|
162
|
+
encodeItemPlaintext: typeof import("@oxy.so/core/crypto").encodeItemPlaintext;
|
|
163
|
+
decodeItemPlaintext: typeof import("@oxy.so/core/crypto").decodeItemPlaintext;
|
|
164
|
+
itemAad: typeof import("@oxy.so/core/crypto").itemAad;
|
|
165
|
+
encryptItem: typeof import("@oxy.so/core/crypto").encryptItem;
|
|
166
|
+
decryptItem: typeof import("@oxy.so/core/crypto").decryptItem;
|
|
167
|
+
isItemCounterAcceptable: typeof import("@oxy.so/core/crypto").isItemCounterAcceptable;
|
|
168
|
+
nextItemCounter: typeof import("@oxy.so/core/crypto").nextItemCounter;
|
|
169
|
+
generateStrongPassword: typeof import("@oxy.so/core/crypto").generateStrongPassword;
|
|
170
|
+
isStrongPasswordShape: typeof import("@oxy.so/core/crypto").isStrongPasswordShape;
|
|
171
|
+
decodeBase32Secret: typeof import("@oxy.so/core/crypto").decodeBase32Secret;
|
|
172
|
+
encodeBase32Secret: typeof import("@oxy.so/core/crypto").encodeBase32Secret;
|
|
173
|
+
hotpCode: typeof import("@oxy.so/core/crypto").hotpCode;
|
|
174
|
+
totpCounter: typeof import("@oxy.so/core/crypto").totpCounter;
|
|
175
|
+
totpCode: typeof import("@oxy.so/core/crypto").totpCode;
|
|
176
|
+
totpSecondsRemaining: typeof import("@oxy.so/core/crypto").totpSecondsRemaining;
|
|
177
|
+
parseOtpauthUri: typeof import("@oxy.so/core/crypto").parseOtpauthUri;
|
|
178
|
+
KeychainClient: typeof import("@oxy.so/core/crypto").KeychainClient;
|
|
98
179
|
}>;
|
|
99
180
|
//# sourceMappingURL=identityCrypto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identityCrypto.d.ts","sourceRoot":"","sources":["../../../../../src/ui/utils/identityCrypto.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"identityCrypto.d.ts","sourceRoot":"","sources":["../../../../../src/ui/utils/identityCrypto.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsC,CAAC"}
|
|
@@ -36,6 +36,7 @@ export { createDeferredProductAnalytics } from './ui/analytics/productAnalytics.
|
|
|
36
36
|
export type { OxyProductEvent, ProductAnalytics } from './ui/analytics/productAnalytics.js';
|
|
37
37
|
export { IdentityBoundSessionError } from './ui/session/identityBinding.js';
|
|
38
38
|
export { HostedSessionError } from './ui/session/hostSession.js';
|
|
39
|
+
export type { PlatformSetupAuthStateStore, SetupSignInContext, SetupSignInMethod, } from './ui/session/setupSignIn.js';
|
|
39
40
|
export { useAuthStore } from './ui/stores/authStore.js';
|
|
40
41
|
export { useAssetStore, useAssets as useAssetsStore, useAsset, useUploadProgress, useAssetLoading, useAssetErrors, useAssetsByApp, useAssetsByEntity, useAssetUsageCount, useIsAssetLinked, } from './ui/stores/assetStore.js';
|
|
41
42
|
export { useAssets, setOxyAssetInstance } from './ui/hooks/useAssets.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAMH,OAAO,uBAAoB,CAAC;AAU5B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gCAA6B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAAyB,CAAC;AAIjD,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,4BAAyB,CAAC;AAKlF,OAAO,EACL,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,uBAAc,CAAC;AACtB,YAAY,EACV,aAAa,EACb,UAAU,EACV,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GACf,MAAM,uBAAc,CAAC;AACtB,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,4BAAyB,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAoB,CAAC;AAI7C,OAAO,EACL,eAAe,EACf,gCAAgC,GACjC,MAAM,0CAAuC,CAAC;AAC/C,YAAY,EAAE,qBAAqB,EAAE,MAAM,0CAAuC,CAAC;AACnF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uBAAuB,GACxB,MAAM,mCAAgC,CAAC;AAExC,OAAO,EACL,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,wCAAqC,CAAC;AAC7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAA6C,CAAC;AAE1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAAyC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAA+B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxySignInPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxySignInPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OxySignInPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/OxySignInPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA0D/B,uFAAuF;AACvF,eAAO,MAAM,oBAAoB,OAAO,CAAC;AACzC,wDAAwD;AACxD,eAAO,MAAM,6BAA6B,KAAK,CAAC;AA4BhD,MAAM,WAAW,mBAAmB;IAClC,wCAAwC;IACxC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,+CAA+C;IAC/C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsvBxD,CAAC"}
|
|
@@ -17,7 +17,8 @@ export interface ReauthStepProps {
|
|
|
17
17
|
allowPassword?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* The account has an email, and this change accepts a code sent to it.
|
|
20
|
-
* Without it the proof is the password alone
|
|
20
|
+
* Without it the proof is the password alone; with neither, the change is
|
|
21
|
+
* not offered (there is no proof the account could give).
|
|
21
22
|
*/
|
|
22
23
|
allowEmail?: boolean;
|
|
23
24
|
/** The account has an authenticator: its code is required too. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReauthStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/ReauthStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkBnE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,MAAM,EAAE,YAAY,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB
|
|
1
|
+
{"version":3,"file":"ReauthStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/signIn/ReauthStep.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkBnE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,MAAM,EAAE,YAAY,CAAC;IACrB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kEAAkE;IAClE,WAAW,EAAE,OAAO,CAAC;IACrB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IAC/B,wEAAwE;IACxE,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,iCAAiC;IACjC,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0NhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OxyContext.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/OxyContext.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+G/B,OAAO,KAAK,EAAmB,uBAAuB,EAAe,MAAM,sBAAmB,CAAC;AAQ/F,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,sBAAmB,CAAC;AAOhG,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,cAAc,EACd,uBAAuB,GACxB,MAAM,wBAAqB,CAAC;AAE7B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAmzDhE,CAAC"}
|
|
@@ -3,8 +3,9 @@ import type { StartNativeOAuthSignInOptions, NativeOAuthSignInResult } from '../
|
|
|
3
3
|
import type { ReactNode } from 'react';
|
|
4
4
|
import type { LoginSessionResult } from '@oxy.so/contracts';
|
|
5
5
|
import type { OxyServices, User, SessionLoginResponse, AccountNode, CreateAccountInput, ClientSession, ApiError } from '@oxy.so/core';
|
|
6
|
-
import type { AccountDialogController, AccountDialogView,
|
|
6
|
+
import type { AccountDialogController, AccountDialogView, SessionClient, SessionMode } from '@oxy.so/core/session';
|
|
7
7
|
import type { UseFollowHook } from '../hooks/useFollow.types.js';
|
|
8
|
+
import type { PlatformSetupAuthStateStore, SetupSignInContext } from '../session/setupSignIn.js';
|
|
8
9
|
import type { useLanguageManagement } from '../hooks/useLanguageManagement.js';
|
|
9
10
|
import type { RouteName } from '../navigation/routes.js';
|
|
10
11
|
import type { StartWebOAuthSignInOptions } from '../oauth/browserAuthTransport.js';
|
|
@@ -100,7 +101,13 @@ export interface OxyContextState {
|
|
|
100
101
|
* code exchange, an email code or link, a password, a sign-up — as the
|
|
101
102
|
* active one.
|
|
102
103
|
*/
|
|
103
|
-
handleWebSession: (session: SessionLoginResponse | LoginSessionResult
|
|
104
|
+
handleWebSession: (session: SessionLoginResponse | LoginSessionResult,
|
|
105
|
+
/**
|
|
106
|
+
* How the sign-in happened, handed to a platform's setup store
|
|
107
|
+
* (`authStateStore`) with the credential, and to no other store
|
|
108
|
+
* (`SetupSignInContext`).
|
|
109
|
+
*/
|
|
110
|
+
setup?: SetupSignInContext) => Promise<void>;
|
|
104
111
|
/**
|
|
105
112
|
* Run a WEB third-party OAuth sign-in (authorization code + PKCE) end to end
|
|
106
113
|
* using this provider's `webAuthMode`, and commit the resulting session.
|
|
@@ -231,7 +238,7 @@ export interface OxyRuntimeProviderProps {
|
|
|
231
238
|
/** Storage instance owned by the public provider; internal composition seam. */
|
|
232
239
|
platformStorage?: StorageInterface | null;
|
|
233
240
|
/** See `OxyProviderProps.authStateStore`. Read once, at mount. */
|
|
234
|
-
authStateStore?:
|
|
241
|
+
authStateStore?: PlatformSetupAuthStateStore;
|
|
235
242
|
/** See `OxyProviderProps.accountQueries`. Read once, at mount. */
|
|
236
243
|
accountQueries?: AccountQueriesConfig;
|
|
237
244
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oxyContextTypes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/oxyContextTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,iCAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EACV,WAAW,EACX,IAAI,EACJ,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"oxyContextTypes.d.ts","sourceRoot":"","sources":["../../../../../src/ui/context/oxyContextTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,iCAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EACV,WAAW,EACX,IAAI,EACJ,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,QAAQ,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,uBAAuB,EACvB,iBAAiB,EACjB,aAAa,EACb,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EA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CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;OAGG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,gFAAgF;IAChF,eAAe,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C,kEAAkE;IAClE,cAAc,CAAC,EAAE,2BAA2B,CAAC;IAC7C,kEAAkE;IAClE,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC;AAED,0EAA0E;AAC1E,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1D,kFAAkF;IAClF,WAAW,CAAC,EAAE,OAAO,mBAAmB,EAAE,kBAAkB,CAAC;CAC9D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Glyphs are decorative: hidden from assistive technology (see `decorativeIconSet`). */
|
|
2
|
-
declare const Ionicons: import("@expo/vector-icons/build/createIconSet").Icon<"push" | "infinite" | "code" | "business" | "navigate" | "key" | "open" | "add" | "search" | "list" | "settings" | "trash" | "wallet" | "link" | "text" | "scale" | "image" | "alert" | "radio" | "grid" | "warning" | "people" | "ellipse" | "add-circle-outline" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-back" | "arrow-down" | "arrow-forward" | "arrow-undo" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "bulb" | "business-outline" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "cash-outline" | "chatbubble" | "checkmark" | "checkmark-circle" | "chevron-back" | "chevron-down" | "chevron-forward" | "chevron-up" | "close" | "close-circle" | "cloud-offline-outline" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "construct-outline" | "copy-outline" | "cube-outline" | "desktop" | "document" | "document-outline" | "document-text" | "documents" | "download" | "download-outline" | "earth" | "ellipse-outline" | "ellipsis-horizontal" | "eye" | "eye-off-outline" | "filter-outline" | "flame" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "footsteps" | "gift" | "gift-outline" | "hand-left" | "hardware-chip-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "hourglass-outline" | "image-outline" | "images" | "images-outline" | "information" | "information-circle" | "information-outline" | "leaf" | "library" | "link-outline" | "location" | "location-outline" | "lock-closed" | "log-out-outline" | "mail" | "musical-notes" | "pencil-outline" | "people-outline" | "play" | "pricetag-outline" | "pulse" | "qr-code-outline" | "receipt-outline" | "refresh-outline" | "remove" | "repeat-outline" | "resize" | "rocket" | "
|
|
2
|
+
declare const Ionicons: import("@expo/vector-icons/build/createIconSet").Icon<"push" | "infinite" | "save" | "code" | "business" | "navigate" | "key" | "open" | "add" | "search" | "list" | "settings" | "trash" | "wallet" | "link" | "text" | "scale" | "image" | "alert" | "radio" | "grid" | "warning" | "people" | "ellipse" | "add-circle-outline" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-back" | "arrow-down" | "arrow-forward" | "arrow-undo" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "bulb" | "business-outline" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card" | "card-outline" | "cart-outline" | "cash-outline" | "chatbubble" | "checkmark" | "checkmark-circle" | "chevron-back" | "chevron-down" | "chevron-forward" | "chevron-up" | "close" | "close-circle" | "cloud-offline-outline" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "construct-outline" | "copy-outline" | "cube-outline" | "desktop" | "document" | "document-outline" | "document-text" | "documents" | "download" | "download-outline" | "earth" | "ellipse-outline" | "ellipsis-horizontal" | "eye" | "eye-off-outline" | "filter-outline" | "flame" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "footsteps" | "gift" | "gift-outline" | "hand-left" | "hardware-chip-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "hourglass-outline" | "image-outline" | "images" | "images-outline" | "information" | "information-circle" | "information-outline" | "leaf" | "library" | "link-outline" | "location" | "location-outline" | "lock-closed" | "log-out-outline" | "mail" | "musical-notes" | "pencil-outline" | "people-outline" | "play" | "pricetag-outline" | "pulse" | "qr-code-outline" | "receipt-outline" | "refresh-outline" | "remove" | "repeat-outline" | "resize" | "rocket" | "school-outline" | "search-outline" | "server" | "share-outline" | "shield" | "shield-checkmark" | "shield-checkmark-outline" | "star" | "swap-horizontal-outline" | "swap-vertical-outline" | "sync" | "time-outline" | "trash-outline" | "trophy" | "trophy-outline" | "videocam" | "volume-off" | "wallet-outline" | "watch" | "wifi", "OxyServicesIonicons">;
|
|
3
3
|
export default Ionicons;
|
|
4
4
|
//# sourceMappingURL=Ionicons.d.ts.map
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
* A synchronous answer to "does this origin hold a device credential?".
|
|
3
|
-
*
|
|
4
|
-
* The browser bridge (ADR 0029 D2) must decide INSIDE the sign-in press whether
|
|
5
|
-
* to open its window — a window opened after an `await` is blocked by every
|
|
6
|
-
* browser — but the auth store is async. This wrapper remembers the credential
|
|
7
|
-
* every load, save and clear passes through, so the press can read it at once.
|
|
8
|
-
* The cold boot loads the store on mount, long before anyone presses sign-in.
|
|
9
|
-
*/
|
|
10
|
-
import type { AuthStateStore } from '@oxy.so/core/session';
|
|
1
|
+
import type { PlatformSetupAuthStateStore } from './setupSignIn.js';
|
|
11
2
|
export interface HeldDeviceCredential {
|
|
12
3
|
deviceId: string;
|
|
13
4
|
deviceSecret: string;
|
|
14
5
|
}
|
|
15
|
-
export interface CredentialTrackingAuthStateStore extends
|
|
6
|
+
export interface CredentialTrackingAuthStateStore extends PlatformSetupAuthStateStore {
|
|
16
7
|
/**
|
|
17
8
|
* The credential last seen through this store; `undefined` until the store has
|
|
18
9
|
* been read at least once (unknown — the caller should not guess).
|
|
19
10
|
*/
|
|
20
11
|
heldDeviceCredential(): HeldDeviceCredential | null | undefined;
|
|
21
12
|
}
|
|
22
|
-
export declare function trackDeviceCredential(store:
|
|
13
|
+
export declare function trackDeviceCredential(store: PlatformSetupAuthStateStore): CredentialTrackingAuthStateStore;
|
|
23
14
|
//# sourceMappingURL=deviceCredentialTracker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceCredentialTracker.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/deviceCredentialTracker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deviceCredentialTracker.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/deviceCredentialTracker.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,2BAA2B,EAAsB,MAAM,kBAAe,CAAC;AAErF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gCAAiC,SAAQ,2BAA2B;IACnF;;;OAGG;IACH,oBAAoB,IAAI,oBAAoB,GAAG,IAAI,GAAG,SAAS,CAAC;CACjE;AAUD,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,2BAA2B,GACjC,gCAAgC,CA8BlC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a platform's setup client is told about each sign-in it commits.
|
|
3
|
+
*
|
|
4
|
+
* A platform that runs the SDK's own sign-in at its setup (OxyOS's login
|
|
5
|
+
* screen) gives the provider its own store (`OxyProviderProps.authStateStore`),
|
|
6
|
+
* and `save()` receives the credential the moment a sign-in commits. The
|
|
7
|
+
* platform also needs to know HOW the person signed in, because its own setup
|
|
8
|
+
* differs:
|
|
9
|
+
*
|
|
10
|
+
* - `'qr'`: approved from a device the person already holds (the QR a phone
|
|
11
|
+
* scans, or the Commons identity): passwordless, so the platform asks no
|
|
12
|
+
* password; its service redeems the approval for its own credential
|
|
13
|
+
* (`POST /session/device/platform`, ADR 0058 R6);
|
|
14
|
+
* - `'password'`: the account's password, which the person just typed and the
|
|
15
|
+
* platform may reuse once (OxyOS keeps it as its offline verifier) instead of
|
|
16
|
+
* asking for it again; it is in `password`, with or without a second factor;
|
|
17
|
+
* - `'emailCode'`: the code or the link sent by email;
|
|
18
|
+
* - `'signup'`: a new account.
|
|
19
|
+
*
|
|
20
|
+
* Passed as `save()`'s second argument, and ONLY to a store the app provided:
|
|
21
|
+
* the platform's default stores never receive it. The SDK never keeps the
|
|
22
|
+
* password beyond handing it over, never persists it and never logs it.
|
|
23
|
+
*/
|
|
24
|
+
import type { AuthStateStore, PersistedAuthState } from '@oxy.so/core/session';
|
|
25
|
+
export type SetupSignInMethod = 'qr' | 'password' | 'emailCode' | 'signup';
|
|
26
|
+
export interface SetupSignInContext {
|
|
27
|
+
method: SetupSignInMethod;
|
|
28
|
+
/** The password just typed; present only when `method` is `'password'`. */
|
|
29
|
+
password?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A platform's setup store: an {@link AuthStateStore} whose `save()` may also
|
|
33
|
+
* read how the sign-in happened. Every `AuthStateStore` is one.
|
|
34
|
+
*/
|
|
35
|
+
export interface PlatformSetupAuthStateStore extends Omit<AuthStateStore, 'save'> {
|
|
36
|
+
save(state: PersistedAuthState, context?: SetupSignInContext): Promise<boolean>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=setupSignIn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupSignIn.d.ts","sourceRoot":"","sources":["../../../../../src/ui/session/setupSignIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;IAC/E,IAAI,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACjF"}
|
|
@@ -2,7 +2,8 @@ import type { ReactNode, RefObject } from 'react';
|
|
|
2
2
|
import type { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
import type { AccountQueriesConfig } from '../hooks/accountQueryPersistence.js';
|
|
4
4
|
import type { RouteName } from '../navigation/routes.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { SessionMode } from '@oxy.so/core/session';
|
|
6
|
+
import type { PlatformSetupAuthStateStore } from '../session/setupSignIn.js';
|
|
6
7
|
import type { WebAuthMode } from '../oauth/types.js';
|
|
7
8
|
import type { ProductAnalytics } from '../analytics/productAnalytics.js';
|
|
8
9
|
export interface StepController {
|
|
@@ -179,13 +180,16 @@ export interface OxyProviderProps {
|
|
|
179
180
|
* off) and no background credential (`backgroundSession` is ignored). The
|
|
180
181
|
* email-code, password and authenticator sign-ins and the "add a password"
|
|
181
182
|
* flow (ADR 0030) run as usual; `save()` receives the credential the moment
|
|
182
|
-
* a sign-in commits, so the platform can take it over
|
|
183
|
+
* a sign-in commits, so the platform can take it over, and, as its second
|
|
184
|
+
* argument, how the sign-in happened (`SetupSignInContext`: the QR's
|
|
185
|
+
* approval, a password with the password just typed, an email code, a
|
|
186
|
+
* sign-up). Only this store ever receives that context.
|
|
183
187
|
*
|
|
184
188
|
* Ordinary apps never pass it. Never combined with a session host: when a
|
|
185
189
|
* platform has registered one (`@oxy.so/core/host`), the host wins and this
|
|
186
190
|
* is ignored. Read once, at mount.
|
|
187
191
|
*/
|
|
188
|
-
authStateStore?:
|
|
192
|
+
authStateStore?: PlatformSetupAuthStateStore;
|
|
189
193
|
}
|
|
190
194
|
export interface OxyLanguageConfig {
|
|
191
195
|
/** Previous app-owned storage keys, migrated once without replacing a current SDK choice. */
|