@oxyhq/services 5.16.35 → 5.16.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -26
- package/lib/commonjs/core/OxyServices.base.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.user.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.utility.js.map +1 -1
- package/lib/commonjs/crypto/README.md +142 -0
- package/lib/commonjs/crypto/core.js +147 -0
- package/lib/commonjs/crypto/core.js.map +1 -0
- package/lib/commonjs/crypto/index.js +16 -0
- package/lib/commonjs/crypto/index.js.map +1 -1
- package/lib/commonjs/crypto/keyManager.js +19 -22
- package/lib/commonjs/crypto/keyManager.js.map +1 -1
- package/lib/commonjs/crypto/signatureService.js +116 -28
- package/lib/commonjs/crypto/signatureService.js.map +1 -1
- package/lib/commonjs/index.js +0 -12
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/interfaces.js +10 -11
- package/lib/commonjs/models/interfaces.js.map +1 -1
- package/lib/commonjs/node/index.js +10 -1
- package/lib/commonjs/node/index.js.map +1 -1
- package/lib/commonjs/node/signatureService.js +107 -0
- package/lib/commonjs/node/signatureService.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +23 -0
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +29 -2
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useLanguageManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useLanguageManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/index.js +0 -2
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +11 -2
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/module/core/OxyServices.base.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.user.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.utility.js.map +1 -1
- package/lib/module/crypto/README.md +142 -0
- package/lib/module/crypto/core.js +133 -0
- package/lib/module/crypto/core.js.map +1 -0
- package/lib/module/crypto/index.js +3 -9
- package/lib/module/crypto/index.js.map +1 -1
- package/lib/module/crypto/keyManager.js +19 -22
- package/lib/module/crypto/keyManager.js.map +1 -1
- package/lib/module/crypto/signatureService.js +113 -23
- package/lib/module/crypto/signatureService.js.map +1 -1
- package/lib/module/index.js +0 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/interfaces.js +10 -11
- package/lib/module/models/interfaces.js.map +1 -1
- package/lib/module/node/index.js +3 -0
- package/lib/module/node/index.js.map +1 -1
- package/lib/module/node/signatureService.js +101 -0
- package/lib/module/node/signatureService.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +23 -0
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +29 -2
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/context/hooks/useLanguageManagement.js.map +1 -1
- package/lib/module/ui/hooks/useLanguageManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/index.js +0 -1
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +11 -2
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/typescript/core/OxyServices.base.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.analytics.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts +1 -1
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.developer.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.devices.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.karma.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.language.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.location.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.payment.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.privacy.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.security.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.user.d.ts +1 -2
- package/lib/typescript/core/mixins/OxyServices.user.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.utility.d.ts.map +1 -1
- package/lib/typescript/core/mixins/index.d.ts +13 -13
- package/lib/typescript/core/mixins/index.d.ts.map +1 -1
- package/lib/typescript/core/services/SessionService.d.ts +1 -1
- package/lib/typescript/core/services/SessionService.d.ts.map +1 -1
- package/lib/typescript/crypto/core.d.ts +56 -0
- package/lib/typescript/crypto/core.d.ts.map +1 -0
- package/lib/typescript/crypto/index.d.ts +1 -9
- package/lib/typescript/crypto/index.d.ts.map +1 -1
- package/lib/typescript/crypto/keyManager.d.ts +13 -1
- package/lib/typescript/crypto/keyManager.d.ts.map +1 -1
- package/lib/typescript/crypto/signatureService.d.ts +15 -9
- package/lib/typescript/crypto/signatureService.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/models/interfaces.d.ts +68 -15
- package/lib/typescript/models/interfaces.d.ts.map +1 -1
- package/lib/typescript/node/index.d.ts +1 -0
- package/lib/typescript/node/index.d.ts.map +1 -1
- package/lib/typescript/node/signatureService.d.ts +55 -0
- package/lib/typescript/node/signatureService.d.ts.map +1 -0
- package/lib/typescript/ui/context/OxyContext.d.ts +1 -2
- package/lib/typescript/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts +1 -2
- package/lib/typescript/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/ui/context/hooks/useLanguageManagement.d.ts +1 -2
- package/lib/typescript/ui/context/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/mutations/useAccountMutations.d.ts +1 -1
- package/lib/typescript/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/queries/useAccountQueries.d.ts +1 -1
- package/lib/typescript/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useLanguageManagement.d.ts +1 -2
- package/lib/typescript/ui/hooks/useLanguageManagement.d.ts.map +1 -1
- package/lib/typescript/ui/hooks/useSessionManagement.d.ts +1 -2
- package/lib/typescript/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/ui/index.d.ts +1 -1
- package/lib/typescript/ui/index.d.ts.map +1 -1
- package/lib/typescript/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/ui/stores/authStore.d.ts +1 -1
- package/lib/typescript/ui/stores/authStore.d.ts.map +1 -1
- package/lib/typescript/ui/utils/avatarUtils.d.ts +1 -1
- package/lib/typescript/ui/utils/avatarUtils.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/core/OxyServices.base.ts +1 -2
- package/src/core/mixins/OxyServices.auth.ts +1 -1
- package/src/core/mixins/OxyServices.user.ts +1 -2
- package/src/core/mixins/OxyServices.utility.ts +1 -2
- package/src/core/services/SessionService.ts +1 -1
- package/src/crypto/README.md +142 -0
- package/src/crypto/__tests__/core.test.ts +203 -0
- package/src/crypto/core.ts +142 -0
- package/src/crypto/index.ts +3 -10
- package/src/crypto/keyManager.ts +25 -21
- package/src/crypto/signatureService.ts +137 -36
- package/src/index.ts +2 -3
- package/src/models/interfaces.ts +73 -21
- package/src/node/index.ts +3 -0
- package/src/node/signatureService.ts +126 -0
- package/src/ui/context/OxyContext.tsx +26 -2
- package/src/ui/context/hooks/useAuthOperations.ts +33 -4
- package/src/ui/context/hooks/useLanguageManagement.ts +1 -2
- package/src/ui/hooks/auth/index.ts +2 -0
- package/src/ui/hooks/mutations/useAccountMutations.ts +1 -1
- package/src/ui/hooks/mutations/useServicesMutations.ts +1 -1
- package/src/ui/hooks/queries/useAccountQueries.ts +1 -1
- package/src/ui/hooks/useLanguageManagement.ts +1 -2
- package/src/ui/hooks/useSessionManagement.ts +1 -2
- package/src/ui/index.ts +1 -2
- package/src/ui/screens/AccountSettingsScreen.tsx +6 -6
- package/src/ui/screens/AccountSwitcherScreen.tsx +1 -1
- package/src/ui/screens/OxyAuthScreen.tsx +11 -2
- package/src/ui/screens/ProfileScreen.tsx +1 -1
- package/src/ui/stores/authStore.ts +1 -1
- package/src/ui/types/navigation.ts +1 -1
- package/src/ui/utils/avatarUtils.ts +1 -1
- package/lib/commonjs/core/services/AuthService.js +0 -156
- package/lib/commonjs/core/services/AuthService.js.map +0 -1
- package/lib/commonjs/core/services/SessionTransportService.js +0 -64
- package/lib/commonjs/core/services/SessionTransportService.js.map +0 -1
- package/lib/commonjs/core/services/UserService.js +0 -123
- package/lib/commonjs/core/services/UserService.js.map +0 -1
- package/lib/commonjs/core/services/index.js +0 -34
- package/lib/commonjs/core/services/index.js.map +0 -1
- package/lib/commonjs/shared/crypto/messageBuilders.js +0 -79
- package/lib/commonjs/shared/crypto/messageBuilders.js.map +0 -1
- package/lib/commonjs/shared/crypto/platform.js +0 -118
- package/lib/commonjs/shared/crypto/platform.js.map +0 -1
- package/lib/commonjs/shared/crypto/signature.js +0 -191
- package/lib/commonjs/shared/crypto/signature.js.map +0 -1
- package/lib/commonjs/shared/index.js +0 -94
- package/lib/commonjs/shared/index.js.map +0 -1
- package/lib/commonjs/shared/models/index.js +0 -2
- package/lib/commonjs/shared/models/index.js.map +0 -1
- package/lib/commonjs/shared/transport/index.js +0 -260
- package/lib/commonjs/shared/transport/index.js.map +0 -1
- package/lib/commonjs/shared/utils/index.js +0 -82
- package/lib/commonjs/shared/utils/index.js.map +0 -1
- package/lib/module/core/services/AuthService.js +0 -151
- package/lib/module/core/services/AuthService.js.map +0 -1
- package/lib/module/core/services/SessionTransportService.js +0 -59
- package/lib/module/core/services/SessionTransportService.js.map +0 -1
- package/lib/module/core/services/UserService.js +0 -118
- package/lib/module/core/services/UserService.js.map +0 -1
- package/lib/module/core/services/index.js +0 -16
- package/lib/module/core/services/index.js.map +0 -1
- package/lib/module/shared/crypto/messageBuilders.js +0 -70
- package/lib/module/shared/crypto/messageBuilders.js.map +0 -1
- package/lib/module/shared/crypto/platform.js +0 -112
- package/lib/module/shared/crypto/platform.js.map +0 -1
- package/lib/module/shared/crypto/signature.js +0 -186
- package/lib/module/shared/crypto/signature.js.map +0 -1
- package/lib/module/shared/index.js +0 -30
- package/lib/module/shared/index.js.map +0 -1
- package/lib/module/shared/models/index.js +0 -2
- package/lib/module/shared/models/index.js.map +0 -1
- package/lib/module/shared/transport/index.js +0 -254
- package/lib/module/shared/transport/index.js.map +0 -1
- package/lib/module/shared/utils/index.js +0 -74
- package/lib/module/shared/utils/index.js.map +0 -1
- package/lib/typescript/core/services/AuthService.d.ts +0 -50
- package/lib/typescript/core/services/AuthService.d.ts.map +0 -1
- package/lib/typescript/core/services/SessionTransportService.d.ts +0 -31
- package/lib/typescript/core/services/SessionTransportService.d.ts.map +0 -1
- package/lib/typescript/core/services/UserService.d.ts +0 -39
- package/lib/typescript/core/services/UserService.d.ts.map +0 -1
- package/lib/typescript/core/services/index.d.ts +0 -13
- package/lib/typescript/core/services/index.d.ts.map +0 -1
- package/lib/typescript/shared/crypto/messageBuilders.d.ts +0 -38
- package/lib/typescript/shared/crypto/messageBuilders.d.ts.map +0 -1
- package/lib/typescript/shared/crypto/platform.d.ts +0 -54
- package/lib/typescript/shared/crypto/platform.d.ts.map +0 -1
- package/lib/typescript/shared/crypto/signature.d.ts +0 -72
- package/lib/typescript/shared/crypto/signature.d.ts.map +0 -1
- package/lib/typescript/shared/index.d.ts +0 -20
- package/lib/typescript/shared/index.d.ts.map +0 -1
- package/lib/typescript/shared/models/index.d.ts +0 -163
- package/lib/typescript/shared/models/index.d.ts.map +0 -1
- package/lib/typescript/shared/transport/index.d.ts +0 -73
- package/lib/typescript/shared/transport/index.d.ts.map +0 -1
- package/lib/typescript/shared/utils/index.d.ts +0 -28
- package/lib/typescript/shared/utils/index.d.ts.map +0 -1
- package/src/core/services/AuthService.ts +0 -153
- package/src/core/services/SessionTransportService.ts +0 -69
- package/src/core/services/UserService.ts +0 -125
- package/src/core/services/index.ts +0 -14
- package/src/shared/crypto/messageBuilders.ts +0 -89
- package/src/shared/crypto/platform.ts +0 -140
- package/src/shared/crypto/signature.ts +0 -235
- package/src/shared/index.ts +0 -28
- package/src/shared/models/index.ts +0 -173
- package/src/shared/transport/index.ts +0 -349
- package/src/shared/utils/index.ts +0 -73
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* User Management Methods Mixin
|
|
3
3
|
*/
|
|
4
|
-
import type { Notification } from '../../models/interfaces';
|
|
5
|
-
import type { User, SearchProfilesResponse } from '../../shared';
|
|
4
|
+
import type { User, Notification, SearchProfilesResponse } from '../../models/interfaces';
|
|
6
5
|
import type { OxyServicesBase } from '../OxyServices.base';
|
|
7
6
|
import { type PaginationParams } from '../../utils/apiUtils';
|
|
8
7
|
export declare function OxyServicesUserMixin<T extends typeof OxyServicesBase>(Base: T): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyServices.user.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"OxyServices.user.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,sBAAsB,EAAkB,MAAM,yBAA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AAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAvO/D,CAAJ;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBA8FjD,CAAA;qBACA,CAAC;;;;;MAgJR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OxyServices.utility.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.utility.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"OxyServices.utility.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/OxyServices.utility.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAQ,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAW3D,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,OAAO,eAAe,EAAE,IAAI,EAAE,CAAC;kBAExD,GAAG,EAAE;QAG1B;;WAEG;+BAC0B,MAAM,GAAG,OAAO,CAAC;YAC5C,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,EAAE,MAAM,CAAC;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QAgBF;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4BG;uBACW;YACZ,KAAK,CAAC,EAAE,OAAO,CAAC;YAChB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,GAAG,CAAC;YACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,OAAO,CAAC,EAAE,OAAO,CAAC;SACnB,IAIS,KAAK,GAAG,EAAE,KAAK,GAAG,EAAE,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA0FpB,CAAC;sBAA2B,CAAA;yBAEzC,CAAC;;;;;;iBAairF,CAAC;qBAAwB,CAAC;;;;;MAFrtF"}
|
|
@@ -653,8 +653,8 @@ export declare function composeOxyServices(): {
|
|
|
653
653
|
__resetTokensForTests(): void;
|
|
654
654
|
} & {
|
|
655
655
|
new (...args: any[]): {
|
|
656
|
-
getProfileByUsername(username: string): Promise<import("
|
|
657
|
-
searchProfiles(query: string, pagination?: import("../..").PaginationParams): Promise<import("
|
|
656
|
+
getProfileByUsername(username: string): Promise<import("..").User>;
|
|
657
|
+
searchProfiles(query: string, pagination?: import("../..").PaginationParams): Promise<import("..").SearchProfilesResponse>;
|
|
658
658
|
getProfileRecommendations(): Promise<{
|
|
659
659
|
[key: string]: any;
|
|
660
660
|
id: string;
|
|
@@ -670,9 +670,9 @@ export declare function composeOxyServices(): {
|
|
|
670
670
|
following: number;
|
|
671
671
|
} | undefined;
|
|
672
672
|
}[]>;
|
|
673
|
-
getUserById(userId: string): Promise<import("
|
|
674
|
-
getCurrentUser(): Promise<import("
|
|
675
|
-
updateProfile(updates: Record<string, any>): Promise<import("
|
|
673
|
+
getUserById(userId: string): Promise<import("..").User>;
|
|
674
|
+
getCurrentUser(): Promise<import("..").User>;
|
|
675
|
+
updateProfile(updates: Record<string, any>): Promise<import("..").User>;
|
|
676
676
|
getPrivacySettings(userId?: string): Promise<any>;
|
|
677
677
|
updatePrivacySettings(settings: Record<string, any>, userId?: string): Promise<any>;
|
|
678
678
|
requestAccountVerification(reason: string, evidence?: string): Promise<{
|
|
@@ -695,12 +695,12 @@ export declare function composeOxyServices(): {
|
|
|
695
695
|
isFollowing: boolean;
|
|
696
696
|
}>;
|
|
697
697
|
getUserFollowers(userId: string, pagination?: import("../..").PaginationParams): Promise<{
|
|
698
|
-
followers: import("
|
|
698
|
+
followers: import("..").User[];
|
|
699
699
|
total: number;
|
|
700
700
|
hasMore: boolean;
|
|
701
701
|
}>;
|
|
702
702
|
getUserFollowing(userId: string, pagination?: import("../..").PaginationParams): Promise<{
|
|
703
|
-
following: import("
|
|
703
|
+
following: import("..").User[];
|
|
704
704
|
total: number;
|
|
705
705
|
hasMore: boolean;
|
|
706
706
|
}>;
|
|
@@ -758,16 +758,16 @@ export declare function composeOxyServices(): {
|
|
|
758
758
|
new (...args: any[]): {
|
|
759
759
|
register(publicKey: string, signature: string, timestamp: number): Promise<{
|
|
760
760
|
message: string;
|
|
761
|
-
user: import("
|
|
761
|
+
user: import("..").User;
|
|
762
762
|
}>;
|
|
763
763
|
requestChallenge(publicKey: string): Promise<import("./OxyServices.auth").ChallengeResponse>;
|
|
764
764
|
verifyChallenge(publicKey: string, challenge: string, signature: string, timestamp: number, deviceName?: string, deviceFingerprint?: string): Promise<import("..").SessionLoginResponse>;
|
|
765
765
|
checkPublicKeyRegistered(publicKey: string): Promise<import("./OxyServices.auth").PublicKeyCheckResponse>;
|
|
766
|
-
getUserByPublicKey(publicKey: string): Promise<import("
|
|
767
|
-
getUserBySession(sessionId: string): Promise<import("
|
|
766
|
+
getUserByPublicKey(publicKey: string): Promise<import("..").User>;
|
|
767
|
+
getUserBySession(sessionId: string): Promise<import("..").User>;
|
|
768
768
|
getUsersBySessions(sessionIds: string[]): Promise<{
|
|
769
769
|
sessionId: string;
|
|
770
|
-
user: import("
|
|
770
|
+
user: import("..").User | null;
|
|
771
771
|
}[]>;
|
|
772
772
|
getTokenBySession(sessionId: string): Promise<{
|
|
773
773
|
accessToken: string;
|
|
@@ -783,7 +783,7 @@ export declare function composeOxyServices(): {
|
|
|
783
783
|
valid: boolean;
|
|
784
784
|
expiresAt: string;
|
|
785
785
|
lastActivity: string;
|
|
786
|
-
user: import("
|
|
786
|
+
user: import("..").User;
|
|
787
787
|
sessionId?: string;
|
|
788
788
|
source?: string;
|
|
789
789
|
}>;
|
|
@@ -798,7 +798,7 @@ export declare function composeOxyServices(): {
|
|
|
798
798
|
signUp(username: string, email: string, password: string): Promise<{
|
|
799
799
|
message: string;
|
|
800
800
|
token: string;
|
|
801
|
-
user: import("
|
|
801
|
+
user: import("..").User;
|
|
802
802
|
}>;
|
|
803
803
|
signIn(username: string, password: string, deviceName?: string, deviceFingerprint?: any): Promise<import("..").SessionLoginResponse | {
|
|
804
804
|
mfaRequired: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAetD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAetD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB;;;;;;;;;;;;;aA4B4d,QAAQ,EAAC,QAAS,EAAC,SAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAigG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAAuhG,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA3mG,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ongoDB ObjectId, never publicKey
|
|
12
12
|
*/
|
|
13
13
|
import type { OxyServices } from '../OxyServices';
|
|
14
|
-
import type { User } from '../../
|
|
14
|
+
import type { User } from '../../models/interfaces';
|
|
15
15
|
export interface Session {
|
|
16
16
|
sessionId: string;
|
|
17
17
|
deviceId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionService.d.ts","sourceRoot":"","sources":["../../../../src/core/services/SessionService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SessionService.d.ts","sourceRoot":"","sources":["../../../../src/core/services/SessionService.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,cAAM,cAAc;IAClB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAiB;IACxC,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,aAAa,CAAwB;IAC7C,OAAO,CAAC,QAAQ,CAAiB;IAEjC,OAAO;IAEP,MAAM,CAAC,WAAW,IAAI,cAAc;IAOpC;;OAEG;IACH,UAAU,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAI1C;;OAEG;IACH,gBAAgB,IAAI,OAAO,GAAG,IAAI;IAIlC;;OAEG;IACH,cAAc,IAAI,OAAO,EAAE;IAI3B;;;;OAIG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAUjF;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IAaxC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAoBzC;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAqBxC;;OAEG;IACH,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAYxC;;OAEG;IACH,gBAAgB,IAAI,IAAI;CAKzB;AAGD,eAAO,MAAM,cAAc,gBAA+B,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Cryptographic Functions - Platform Agnostic
|
|
3
|
+
*
|
|
4
|
+
* This module contains the core signature verification logic
|
|
5
|
+
* that is shared between all platforms (React Native, Node.js, Web).
|
|
6
|
+
* Platform-specific implementations (hashing, random generation) are injected.
|
|
7
|
+
*/
|
|
8
|
+
import type { EC as ECType } from 'elliptic';
|
|
9
|
+
export declare const CHALLENGE_TTL_MS: number;
|
|
10
|
+
export declare const MAX_SIGNATURE_AGE_MS: number;
|
|
11
|
+
/**
|
|
12
|
+
* Core signature verification using elliptic curve
|
|
13
|
+
* This is platform-agnostic and works everywhere
|
|
14
|
+
*/
|
|
15
|
+
export declare function verifySignatureCore(messageHash: string, signature: string, publicKey: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Validate that a string is a valid public key
|
|
18
|
+
*/
|
|
19
|
+
export declare function isValidPublicKey(publicKey: string): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Validate that a string is a valid private key
|
|
22
|
+
*/
|
|
23
|
+
export declare function isValidPrivateKey(privateKey: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Get a shortened display version of a public key
|
|
26
|
+
* Format: first 8 chars...last 8 chars
|
|
27
|
+
*/
|
|
28
|
+
export declare function shortenPublicKey(publicKey: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Derive public key from a private key (without storing)
|
|
31
|
+
*/
|
|
32
|
+
export declare function derivePublicKey(privateKey: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Check timestamp freshness
|
|
35
|
+
*/
|
|
36
|
+
export declare function isTimestampFresh(timestamp: number, maxAgeMs?: number): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Build authentication challenge message
|
|
39
|
+
* Format: auth:{publicKey}:{challenge}:{timestamp}
|
|
40
|
+
*/
|
|
41
|
+
export declare function buildAuthMessage(publicKey: string, challenge: string, timestamp: number): string;
|
|
42
|
+
/**
|
|
43
|
+
* Build registration message
|
|
44
|
+
* Format: oxy:register:{publicKey}:{timestamp}
|
|
45
|
+
*/
|
|
46
|
+
export declare function buildRegistrationMessage(publicKey: string, timestamp: number): string;
|
|
47
|
+
/**
|
|
48
|
+
* Build request signature message
|
|
49
|
+
* Format: request:{publicKey}:{timestamp}:{canonicalString}
|
|
50
|
+
*/
|
|
51
|
+
export declare function buildRequestMessage(publicKey: string, timestamp: number, data: Record<string, unknown>): string;
|
|
52
|
+
/**
|
|
53
|
+
* Get the elliptic curve instance (for key generation)
|
|
54
|
+
*/
|
|
55
|
+
export declare function getEllipticCurve(): ECType;
|
|
56
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../src/crypto/core.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAK7C,eAAO,MAAM,gBAAgB,QAAgB,CAAC;AAC9C,eAAO,MAAM,oBAAoB,QAAgB,CAAC;AAElD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAOT;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAY3D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAwB7D;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAG1D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,GAAE,MAA6B,GAAG,OAAO,CAGpG;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEhG;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAErF;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,MAAM,CAKR;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC"}
|
|
@@ -3,19 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Provides cryptographic identity management for the Oxy ecosystem.
|
|
5
5
|
* Handles key generation, secure storage, and digital signatures.
|
|
6
|
-
*
|
|
7
|
-
* ⚠️ IMPORTANT: KeyManager is primarily intended for use in the Oxy Accounts app.
|
|
8
|
-
* While it's exported here for convenience, third-party applications should NOT
|
|
9
|
-
* generate or store user identities. The Accounts app is the identity wallet.
|
|
10
|
-
*
|
|
11
|
-
* For third-party apps:
|
|
12
|
-
* - Use SignatureService for signing operations (but keys come from Accounts app)
|
|
13
|
-
* - Do NOT call KeyManager.createIdentity() or KeyManager.importKeyPair()
|
|
14
|
-
* - The Oxy Accounts app handles all identity generation and key storage
|
|
15
6
|
*/
|
|
16
7
|
import './polyfill';
|
|
17
8
|
export { KeyManager, type KeyPair } from './keyManager';
|
|
18
9
|
export { SignatureService, type SignedMessage, type AuthChallenge } from './signatureService';
|
|
19
10
|
export { type BackupData } from './types';
|
|
11
|
+
export * from './core';
|
|
20
12
|
export { KeyManager as default } from './keyManager';
|
|
21
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/crypto/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/crypto/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,YAAY,CAAC;AAEpB,OAAO,EAAE,UAAU,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EACL,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAG1C,cAAc,QAAQ,CAAC;AAGvB,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Key Manager - ECDSA secp256k1 Key Generation and Storage
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* ⚠️ **FOR OXY ACCOUNTS APP ONLY**
|
|
5
|
+
*
|
|
6
|
+
* This module handles secure generation, storage, and retrieval of cryptographic keys.
|
|
5
7
|
* Private keys are stored securely using expo-secure-store and never leave the device.
|
|
8
|
+
*
|
|
9
|
+
* **IMPORTANT**: Third-party apps should NOT use KeyManager directly.
|
|
10
|
+
* Instead, use the OxyServices authentication flows which communicate with the
|
|
11
|
+
* Oxy Accounts app via deep links/QR codes to obtain user authorization.
|
|
12
|
+
*
|
|
13
|
+
* The Oxy Accounts app is the sole owner of the user's private key and identity.
|
|
14
|
+
* Other apps request authentication from the Accounts app, which signs challenges
|
|
15
|
+
* and returns authorization to the requesting app via the API.
|
|
16
|
+
*
|
|
17
|
+
* @see {@link https://github.com/OxyHQ/OxyHQServices/blob/main/packages/services/src/crypto/README.md|Crypto Module Documentation}
|
|
6
18
|
*/
|
|
7
19
|
import type { ECKeyPair } from 'elliptic';
|
|
8
20
|
export interface KeyPair {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyManager.d.ts","sourceRoot":"","sources":["../../../src/crypto/keyManager.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"keyManager.d.ts","sourceRoot":"","sources":["../../../src/crypto/keyManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAgH1C,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,UAAU;IAErB,OAAO,CAAC,MAAM,CAAC,eAAe,CAAuB;IACrD,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAwB;IAExD;;;;OAIG;IACH,MAAM,CAAC,eAAe,IAAI,IAAI;IAK9B;;;OAGG;IACH,MAAM,CAAC,mBAAmB,IAAI,OAAO;IAQrC;;OAEG;WACU,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAWhD;;;OAGG;WACU,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAoB9C;;OAEG;WACU,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAqB/D;;;OAGG;WACU,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAiBpD;;OAEG;WACU,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IA2BnD;;OAEG;WACU,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IA2B5C;;;;;;;OAOG;WACU,cAAc,CACzB,UAAU,GAAE,OAAe,EAC3B,KAAK,GAAE,OAAe,EACtB,aAAa,GAAE,OAAe,GAC7B,OAAO,CAAC,IAAI,CAAC;IAkDhB;;;OAGG;WACU,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IA6B/C;;OAEG;WACU,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IA2CxD;;OAEG;WACU,yBAAyB,IAAI,OAAO,CAAC,OAAO,CAAC;IAyD1D;;;OAGG;WACU,gBAAgB,IAAI,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;IAS1D;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAIlD;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAInD;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAIrD;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAGnD;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
* Handles signing and verification of messages using ECDSA secp256k1.
|
|
5
5
|
* Used for authenticating requests and proving identity ownership.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
* For
|
|
7
|
+
* This service provides async methods for cross-platform compatibility (React Native + Node).
|
|
8
|
+
* For Node.js-only synchronous operations, use the node/signatureService module.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
export interface SignedMessage {
|
|
11
|
+
message: string;
|
|
12
|
+
signature: string;
|
|
13
|
+
publicKey: string;
|
|
14
|
+
timestamp: number;
|
|
15
|
+
}
|
|
12
16
|
export interface AuthChallenge {
|
|
13
17
|
challenge: string;
|
|
14
18
|
publicKey: string;
|
|
@@ -17,12 +21,11 @@ export interface AuthChallenge {
|
|
|
17
21
|
export declare class SignatureService {
|
|
18
22
|
/**
|
|
19
23
|
* Generate a random challenge string (for offline use)
|
|
20
|
-
* Uses
|
|
24
|
+
* Uses expo-crypto in React Native, crypto.randomBytes in Node.js
|
|
21
25
|
*/
|
|
22
26
|
static generateChallenge(): Promise<string>;
|
|
23
27
|
/**
|
|
24
28
|
* Hash a message using SHA-256
|
|
25
|
-
* Uses shared crypto adapter
|
|
26
29
|
*/
|
|
27
30
|
static hashMessage(message: string): Promise<string>;
|
|
28
31
|
/**
|
|
@@ -37,9 +40,14 @@ export declare class SignatureService {
|
|
|
37
40
|
static signWithKey(message: string, privateKey: string): Promise<string>;
|
|
38
41
|
/**
|
|
39
42
|
* Verify a signature against a message and public key
|
|
40
|
-
* Uses shared SignatureService for verification
|
|
41
43
|
*/
|
|
42
44
|
static verify(message: string, signature: string, publicKey: string): Promise<boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* Synchronous verification (for Node.js backend)
|
|
47
|
+
* Uses crypto module directly for hashing
|
|
48
|
+
* Note: This method should only be used in Node.js environments
|
|
49
|
+
*/
|
|
50
|
+
static verifySync(message: string, signature: string, publicKey: string): boolean;
|
|
43
51
|
/**
|
|
44
52
|
* Create a signed message object with metadata
|
|
45
53
|
*/
|
|
@@ -47,7 +55,6 @@ export declare class SignatureService {
|
|
|
47
55
|
/**
|
|
48
56
|
* Verify a signed message object
|
|
49
57
|
* Checks both signature validity and timestamp freshness
|
|
50
|
-
* Uses shared SignatureService for verification
|
|
51
58
|
*/
|
|
52
59
|
static verifySignedMessage(signedMessage: SignedMessage, maxAgeMs?: number): Promise<boolean>;
|
|
53
60
|
/**
|
|
@@ -57,7 +64,6 @@ export declare class SignatureService {
|
|
|
57
64
|
static signChallenge(challenge: string): Promise<AuthChallenge>;
|
|
58
65
|
/**
|
|
59
66
|
* Verify a challenge response
|
|
60
|
-
* Uses shared SignatureService for verification
|
|
61
67
|
*/
|
|
62
68
|
static verifyChallengeResponse(originalChallenge: string, response: AuthChallenge, maxAgeMs?: number): Promise<boolean>;
|
|
63
69
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signatureService.d.ts","sourceRoot":"","sources":["../../../src/crypto/signatureService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"signatureService.d.ts","sourceRoot":"","sources":["../../../src/crypto/signatureService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA0EH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,gBAAgB;IAC3B;;;OAGG;WACU,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC;IA0BjD;;OAEG;WACU,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1D;;;OAGG;WACU,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAWnD;;;OAGG;WACU,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAO9E;;OAEG;WACU,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAS5F;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;IAiBjF;;OAEG;WACU,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAkBzE;;;OAGG;WACU,mBAAmB,CAC9B,aAAa,EAAE,aAAa,EAC5B,QAAQ,GAAE,MAAsB,GAC/B,OAAO,CAAC,OAAO,CAAC;IAanB;;;OAGG;WACU,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAiBrE;;OAEG;WACU,uBAAuB,CAClC,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,aAAa,EACvB,QAAQ,GAAE,MAAsB,GAC/B,OAAO,CAAC,OAAO,CAAC;IAYnB;;;;OAIG;WACU,2BAA2B,IAAI,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAiBhH;;;OAGG;WACU,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;QACnE,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CAgBH;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -17,8 +17,7 @@ export { DeviceManager } from './utils/deviceManager';
|
|
|
17
17
|
export type { DeviceFingerprint, StoredDeviceInfo } from './utils/deviceManager';
|
|
18
18
|
export { SUPPORTED_LANGUAGES, getLanguageMetadata, getLanguageName, getNativeLanguageName, normalizeLanguageCode } from './utils/languageUtils';
|
|
19
19
|
export type { LanguageMetadata } from './utils/languageUtils';
|
|
20
|
-
export
|
|
21
|
-
export type { OxyConfig, Notification, Wallet, Transaction, TransferFundsRequest, PurchaseRequest, WithdrawalRequest, TransactionResponse, KarmaRule, KarmaHistory, KarmaLeaderboardEntry, KarmaAwardRequest, ApiError, PaymentMethod, PaymentRequest, PaymentResponse, AnalyticsData, FollowerDetails, ContentViewer, FileMetadata, FileUploadResponse, FileListResponse, FileUpdateRequest, FileDeleteResponse, DeviceSession, DeviceSessionsResponse, DeviceSessionLogoutResponse, UpdateDeviceNameResponse, BlockedUser, RestrictedUser, FileVisibility, AssetLink, AssetVariant, Asset, AssetInitRequest, AssetInitResponse, AssetCompleteRequest, AssetLinkRequest, AssetUnlinkRequest, AssetUrlResponse, AssetDeleteSummary, AssetUploadProgress, AssetUpdateVisibilityRequest, AssetUpdateVisibilityResponse, AccountStorageCategoryUsage, AccountStorageUsageResponse, SecurityEventType, SecurityEventSeverity, SecurityActivity, SecurityActivityResponse } from './models/interfaces';
|
|
20
|
+
export type { OxyConfig, User, LoginResponse, Notification, Wallet, Transaction, TransferFundsRequest, PurchaseRequest, WithdrawalRequest, TransactionResponse, KarmaRule, KarmaHistory, KarmaLeaderboardEntry, KarmaAwardRequest, ApiError, PaymentMethod, PaymentRequest, PaymentResponse, AnalyticsData, FollowerDetails, ContentViewer, FileMetadata, FileUploadResponse, FileListResponse, FileUpdateRequest, FileDeleteResponse, DeviceSession, DeviceSessionsResponse, DeviceSessionLogoutResponse, UpdateDeviceNameResponse, BlockedUser, RestrictedUser, FileVisibility, AssetLink, AssetVariant, Asset, AssetInitRequest, AssetInitResponse, AssetCompleteRequest, AssetLinkRequest, AssetUnlinkRequest, AssetUrlResponse, AssetDeleteSummary, AssetUploadProgress, AssetUpdateVisibilityRequest, AssetUpdateVisibilityResponse, AccountStorageCategoryUsage, AccountStorageUsageResponse, SecurityEventType, SecurityEventSeverity, SecurityActivity, SecurityActivityResponse } from './models/interfaces';
|
|
22
21
|
export { SECURITY_EVENT_SEVERITY_MAP } from './models/interfaces';
|
|
23
22
|
export type { SessionLoginResponse, ClientSession, MinimalUserData } from './models/session';
|
|
24
23
|
export { useAuthStore } from './ui/stores/authStore';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,mBAAmB,CAAC;AAG3B,OAAO,EACL,UAAU,EACV,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,QAAQ,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAClD,YAAY,EACV,OAAO,EACP,aAAa,EACb,aAAa,EACd,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,kBAAkB,EAAE,yBAAyB;AAC7C,MAAM,EACP,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAGrE,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGjF,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9D,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,mBAAmB,CAAC;AAG3B,OAAO,EACL,UAAU,EACV,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,MAAM,QAAQ,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAClD,YAAY,EACV,OAAO,EACP,aAAa,EACb,aAAa,EACd,MAAM,UAAU,CAAC;AAGlB,OAAO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,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACL,MAAM,EACN,QAAQ,EACR,UAAU,EACV,OAAO,EACP,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,cAAc,EACf,MAAM,qBAAqB,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Services Package Interfaces
|
|
3
|
-
*
|
|
4
|
-
* Package-specific interfaces. For shared models (User, Session, etc.),
|
|
5
|
-
* import directly from the shared module:
|
|
6
|
-
*
|
|
7
|
-
* import { User, LoginResponse, Session } from '../shared';
|
|
8
|
-
*/
|
|
9
1
|
export interface OxyConfig {
|
|
10
2
|
baseURL: string;
|
|
11
3
|
cloudURL?: string;
|
|
@@ -24,6 +16,61 @@ export interface OxyConfig {
|
|
|
24
16
|
onRequestEnd?: (url: string, method: string, duration: number, success: boolean) => void;
|
|
25
17
|
onRequestError?: (url: string, method: string, error: Error) => void;
|
|
26
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* User Model
|
|
21
|
+
*
|
|
22
|
+
* IMPORTANT:
|
|
23
|
+
* - id: MongoDB ObjectId (24 hex characters) - PRIMARY IDENTIFIER for all internal operations
|
|
24
|
+
* - publicKey: Cryptographic public key (130 hex characters) - LOOKUP KEY for authentication and identity operations
|
|
25
|
+
*
|
|
26
|
+
* Never use publicKey as an ID. Always use id (ObjectId) for:
|
|
27
|
+
* - Database queries
|
|
28
|
+
* - Session userId
|
|
29
|
+
* - Token userId
|
|
30
|
+
* - Socket room names
|
|
31
|
+
* - API route parameters (unless explicitly doing publicKey lookup)
|
|
32
|
+
*/
|
|
33
|
+
export interface User {
|
|
34
|
+
id: string;
|
|
35
|
+
publicKey: string;
|
|
36
|
+
username: string;
|
|
37
|
+
email?: string;
|
|
38
|
+
avatar?: string;
|
|
39
|
+
privacySettings?: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
name?: {
|
|
43
|
+
first?: string;
|
|
44
|
+
last?: string;
|
|
45
|
+
full?: string;
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
bio?: string;
|
|
49
|
+
karma?: number;
|
|
50
|
+
location?: string;
|
|
51
|
+
website?: string;
|
|
52
|
+
createdAt?: string;
|
|
53
|
+
updatedAt?: string;
|
|
54
|
+
links?: Array<{
|
|
55
|
+
title?: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
image?: string;
|
|
58
|
+
link: string;
|
|
59
|
+
}>;
|
|
60
|
+
_count?: {
|
|
61
|
+
followers?: number;
|
|
62
|
+
following?: number;
|
|
63
|
+
};
|
|
64
|
+
accountExpiresAfterInactivityDays?: number | null;
|
|
65
|
+
[key: string]: unknown;
|
|
66
|
+
}
|
|
67
|
+
export interface LoginResponse {
|
|
68
|
+
accessToken?: string;
|
|
69
|
+
refreshToken?: string;
|
|
70
|
+
token?: string;
|
|
71
|
+
user: User;
|
|
72
|
+
message?: string;
|
|
73
|
+
}
|
|
27
74
|
export interface Notification {
|
|
28
75
|
id: string;
|
|
29
76
|
message: string;
|
|
@@ -83,6 +130,16 @@ export interface TransactionResponse {
|
|
|
83
130
|
success: boolean;
|
|
84
131
|
transaction: Transaction;
|
|
85
132
|
}
|
|
133
|
+
export interface PaginationInfo {
|
|
134
|
+
total: number;
|
|
135
|
+
limit: number;
|
|
136
|
+
offset: number;
|
|
137
|
+
hasMore: boolean;
|
|
138
|
+
}
|
|
139
|
+
export interface SearchProfilesResponse {
|
|
140
|
+
data: User[];
|
|
141
|
+
pagination: PaginationInfo;
|
|
142
|
+
}
|
|
86
143
|
export interface KarmaRule {
|
|
87
144
|
id: string;
|
|
88
145
|
description: string;
|
|
@@ -260,6 +317,8 @@ export interface AssetUrlResponse {
|
|
|
260
317
|
}
|
|
261
318
|
export interface AssetDeleteSummary {
|
|
262
319
|
fileId: string;
|
|
320
|
+
wouldDelete: boolean;
|
|
321
|
+
affectedApps: string[];
|
|
263
322
|
remainingLinks: number;
|
|
264
323
|
variants: string[];
|
|
265
324
|
}
|
|
@@ -350,13 +409,7 @@ export interface DeviceSession {
|
|
|
350
409
|
lastActive: string;
|
|
351
410
|
expiresAt: string;
|
|
352
411
|
isCurrent: boolean;
|
|
353
|
-
user?:
|
|
354
|
-
id: string;
|
|
355
|
-
publicKey: string;
|
|
356
|
-
username: string;
|
|
357
|
-
avatar?: string;
|
|
358
|
-
[key: string]: unknown;
|
|
359
|
-
};
|
|
412
|
+
user?: User;
|
|
360
413
|
createdAt?: string;
|
|
361
414
|
}
|
|
362
415
|
export interface DeviceSessionsResponse {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/models/interfaces.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/models/interfaces.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAExD,cAAc,CAAC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AAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,CAAC;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -6,5 +6,6 @@ import * as Models from '../models/interfaces';
|
|
|
6
6
|
export { OxyServices, OXY_CLOUD_URL, oxyClient };
|
|
7
7
|
export { Models };
|
|
8
8
|
export * from '../models/interfaces';
|
|
9
|
+
export { SignatureService } from './signatureService';
|
|
9
10
|
export default OxyServices;
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;AAGjD,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,cAAc,sBAAsB,CAAC;AAGrC,eAAe,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAG/C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC;AAGjD,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,cAAc,sBAAsB,CAAC;AAGrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Node.js Signature Service
|
|
3
|
+
*
|
|
4
|
+
* Provides synchronous signature operations for Node.js backend.
|
|
5
|
+
* Uses Node's crypto module for hashing and the shared core for verification.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SignatureService {
|
|
8
|
+
/**
|
|
9
|
+
* Generate a random challenge string
|
|
10
|
+
*/
|
|
11
|
+
static generateChallenge(): string;
|
|
12
|
+
/**
|
|
13
|
+
* Compute SHA-256 hash of a message (synchronous)
|
|
14
|
+
*/
|
|
15
|
+
static hashMessage(message: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Verify an ECDSA signature (synchronous)
|
|
18
|
+
*
|
|
19
|
+
* @param message - The original message that was signed
|
|
20
|
+
* @param signature - The signature in DER format (hex encoded)
|
|
21
|
+
* @param publicKey - The public key (hex encoded, uncompressed)
|
|
22
|
+
* @returns true if the signature is valid
|
|
23
|
+
*/
|
|
24
|
+
static verifySignature(message: string, signature: string, publicKey: string): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Verify an authentication challenge response
|
|
27
|
+
*
|
|
28
|
+
* @param publicKey - The user's public key
|
|
29
|
+
* @param challenge - The original challenge string
|
|
30
|
+
* @param signature - The signature of the auth message
|
|
31
|
+
* @param timestamp - The timestamp when the signature was created
|
|
32
|
+
* @returns true if the challenge response is valid
|
|
33
|
+
*/
|
|
34
|
+
static verifyChallengeResponse(publicKey: string, challenge: string, signature: string, timestamp: number): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Verify a registration signature
|
|
37
|
+
* Signature format: oxy:register:{publicKey}:{timestamp}
|
|
38
|
+
*/
|
|
39
|
+
static verifyRegistrationSignature(publicKey: string, signature: string, timestamp: number): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Verify a signed request
|
|
42
|
+
* Used for authenticated API operations
|
|
43
|
+
*/
|
|
44
|
+
static verifyRequestSignature(publicKey: string, data: Record<string, unknown>, signature: string, timestamp: number): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Validate that a string is a valid public key
|
|
47
|
+
*/
|
|
48
|
+
static isValidPublicKey(publicKey: string): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Get a shortened display version of a public key
|
|
51
|
+
*/
|
|
52
|
+
static shortenPublicKey(publicKey: string): string;
|
|
53
|
+
}
|
|
54
|
+
export default SignatureService;
|
|
55
|
+
//# sourceMappingURL=signatureService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signatureService.d.ts","sourceRoot":"","sources":["../../../src/node/signatureService.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,qBAAa,gBAAgB;IAC3B;;OAEG;IACH,MAAM,CAAC,iBAAiB,IAAI,MAAM;IAIlC;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAI3C;;;;;;;OAOG;IACH,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;IAKtF;;;;;;;;OAQG;IACH,MAAM,CAAC,uBAAuB,CAC5B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO;IAWV;;;OAGG;IACH,MAAM,CAAC,2BAA2B,CAChC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO;IAUV;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CAC3B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO;IAUV;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAInD;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAGnD;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
import { OxyServices } from '../../core';
|
|
4
|
-
import type { ApiError } from '../../models/interfaces';
|
|
5
|
-
import type { User } from '../../shared';
|
|
4
|
+
import type { User, ApiError } from '../../models/interfaces';
|
|
6
5
|
import type { ClientSession } from '../../models/session';
|
|
7
6
|
import type { UseFollowHook } from '../hooks/useFollow.types';
|
|
8
7
|
import { useLanguageManagement } from '../hooks/useLanguageManagement';
|