@oxyhq/services 5.18.2 → 5.18.4
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/core/mixins/index.js +36 -13
- package/lib/commonjs/core/mixins/index.js.map +1 -1
- package/lib/commonjs/index.js +16 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/client.js +177 -0
- package/lib/commonjs/ui/client.js.map +1 -0
- package/lib/commonjs/ui/components/WebOxyProvider.js +98 -0
- package/lib/commonjs/ui/components/WebOxyProvider.js.map +1 -0
- package/lib/commonjs/ui/components/profile/EditFieldModal.js +412 -0
- package/lib/commonjs/ui/components/profile/EditFieldModal.js.map +1 -0
- package/lib/commonjs/ui/context/OxyContext.js +63 -1
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js +115 -0
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -0
- package/lib/commonjs/ui/hooks/useSettingToggle.js +7 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/commonjs/ui/hooks/useWebSSO.js +75 -0
- package/lib/commonjs/ui/hooks/useWebSSO.js.map +1 -0
- package/lib/commonjs/ui/index.js +17 -2
- package/lib/commonjs/ui/index.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +59 -65
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +38 -58
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js +105 -0
- package/lib/commonjs/ui/server.js.map +1 -0
- package/lib/commonjs/ui/utils/iconNames.js +133 -0
- package/lib/commonjs/ui/utils/iconNames.js.map +1 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js +7 -0
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/commonjs/utils/requestUtils.js +4 -3
- package/lib/commonjs/utils/requestUtils.js.map +1 -1
- package/lib/module/core/mixins/index.js +36 -13
- package/lib/module/core/mixins/index.js.map +1 -1
- package/lib/module/index.js +5 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/client.js +48 -0
- package/lib/module/ui/client.js.map +1 -0
- package/lib/module/ui/components/WebOxyProvider.js +94 -0
- package/lib/module/ui/components/WebOxyProvider.js.map +1 -0
- package/lib/module/ui/components/profile/EditFieldModal.js +406 -0
- package/lib/module/ui/components/profile/EditFieldModal.js.map +1 -0
- package/lib/module/ui/context/OxyContext.js +63 -1
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js +106 -0
- package/lib/module/ui/hooks/useAuth.js.map +1 -0
- package/lib/module/ui/hooks/useSettingToggle.js +7 -1
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/module/ui/hooks/useWebSSO.js +71 -0
- package/lib/module/ui/hooks/useWebSSO.js.map +1 -0
- package/lib/module/ui/index.js +17 -3
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +59 -65
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +39 -59
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/server.js +65 -0
- package/lib/module/ui/server.js.map +1 -0
- package/lib/module/ui/utils/iconNames.js +124 -0
- package/lib/module/ui/utils/iconNames.js.map +1 -0
- package/lib/module/ui/utils/sessionHelpers.js +7 -0
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/utils/requestUtils.js +4 -2
- package/lib/module/utils/requestUtils.js.map +1 -1
- package/lib/typescript/commonjs/core/mixins/index.d.ts +18 -1115
- package/lib/typescript/commonjs/core/mixins/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +3 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts +34 -0
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/WebOxyProvider.d.ts +44 -0
- package/lib/typescript/commonjs/ui/components/WebOxyProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts +110 -0
- package/lib/typescript/commonjs/ui/components/profile/EditFieldModal.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +3 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +3 -3
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts +6 -10
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts +3 -5
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +69 -0
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts +4 -2
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useWebSSO.d.ts +34 -0
- package/lib/typescript/commonjs/ui/hooks/useWebSSO.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/index.d.ts +2 -2
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts +43 -0
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/iconNames.d.ts +112 -0
- package/lib/typescript/commonjs/ui/utils/iconNames.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts +8 -3
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/requestUtils.d.ts +3 -1
- package/lib/typescript/commonjs/utils/requestUtils.d.ts.map +1 -1
- package/lib/typescript/module/core/mixins/index.d.ts +18 -1115
- package/lib/typescript/module/core/mixins/index.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +3 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts +34 -0
- package/lib/typescript/module/ui/client.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/WebOxyProvider.d.ts +44 -0
- package/lib/typescript/module/ui/components/WebOxyProvider.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts +110 -0
- package/lib/typescript/module/ui/components/profile/EditFieldModal.d.ts.map +1 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts +3 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +3 -3
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts +6 -10
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts +3 -5
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts +69 -0
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts +4 -2
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useWebSSO.d.ts +34 -0
- package/lib/typescript/module/ui/hooks/useWebSSO.d.ts.map +1 -0
- package/lib/typescript/module/ui/index.d.ts +2 -2
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts +43 -0
- package/lib/typescript/module/ui/server.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/iconNames.d.ts +112 -0
- package/lib/typescript/module/ui/utils/iconNames.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts +8 -3
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/module/utils/requestUtils.d.ts +3 -1
- package/lib/typescript/module/utils/requestUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/mixins/index.ts +57 -43
- package/src/index.ts +6 -1
- package/src/ui/client.ts +56 -0
- package/src/ui/components/WebOxyProvider.tsx +109 -0
- package/src/ui/components/profile/EditFieldModal.tsx +465 -0
- package/src/ui/context/OxyContext.tsx +69 -0
- package/src/ui/hooks/useAuth.ts +159 -0
- package/src/ui/hooks/useSettingToggle.ts +7 -3
- package/src/ui/hooks/useWebSSO.ts +93 -0
- package/src/ui/index.ts +17 -2
- package/src/ui/screens/PrivacySettingsScreen.tsx +54 -63
- package/src/ui/screens/SearchSettingsScreen.tsx +42 -64
- package/src/ui/server.ts +70 -0
- package/src/ui/utils/iconNames.ts +136 -0
- package/src/ui/utils/sessionHelpers.ts +10 -3
- package/src/utils/requestUtils.ts +10 -7
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server-safe UI exports (noops)
|
|
3
|
+
*
|
|
4
|
+
* Import from this module for SSR environments where React components
|
|
5
|
+
* shouldn't be rendered on the server.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import { OxyProvider, useOxy } from '@oxyhq/services/ui/server';
|
|
9
|
+
*/
|
|
10
|
+
export declare const OxyProvider: () => null;
|
|
11
|
+
export declare const OxySignInButton: () => null;
|
|
12
|
+
export declare const OxyLogo: () => null;
|
|
13
|
+
export declare const Avatar: () => null;
|
|
14
|
+
export declare const FollowButton: () => null;
|
|
15
|
+
export declare const OxyPayButton: () => null;
|
|
16
|
+
export declare const FontLoader: () => null;
|
|
17
|
+
export declare const setupFonts: () => void;
|
|
18
|
+
export declare const OxyIcon: () => null;
|
|
19
|
+
export declare const useOxy: () => {};
|
|
20
|
+
export declare const useAuth: () => {};
|
|
21
|
+
export declare const useFollow: () => {};
|
|
22
|
+
export declare const useStorage: () => {
|
|
23
|
+
storage: null;
|
|
24
|
+
isReady: boolean;
|
|
25
|
+
};
|
|
26
|
+
export declare const ProfileScreen: () => null;
|
|
27
|
+
export declare const useAuthStore: () => {};
|
|
28
|
+
export declare const useAccountStore: () => {};
|
|
29
|
+
export declare const fontFamilies: {};
|
|
30
|
+
export declare const fontStyles: {};
|
|
31
|
+
export declare const toast: (() => void) & {
|
|
32
|
+
success: () => void;
|
|
33
|
+
error: () => void;
|
|
34
|
+
info: () => void;
|
|
35
|
+
warning: () => void;
|
|
36
|
+
loading: () => void;
|
|
37
|
+
dismiss: () => void;
|
|
38
|
+
};
|
|
39
|
+
export { OxyServices } from '../core';
|
|
40
|
+
export type { User, LoginResponse, ApiError } from '../models/interfaces';
|
|
41
|
+
export { handleAuthError, isInvalidSessionError, isTimeoutOrNetworkError, extractErrorMessage, } from './utils/errorHandlers';
|
|
42
|
+
export type { HandleAuthErrorOptions } from './utils/errorHandlers';
|
|
43
|
+
//# sourceMappingURL=server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/ui/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,eAAO,MAAM,WAAW,YAAgB,CAAC;AACzC,eAAO,MAAM,eAAe,YAAgB,CAAC;AAC7C,eAAO,MAAM,OAAO,YAAgB,CAAC;AACrC,eAAO,MAAM,MAAM,YAAgB,CAAC;AACpC,eAAO,MAAM,YAAY,YAAgB,CAAC;AAC1C,eAAO,MAAM,YAAY,YAAgB,CAAC;AAC1C,eAAO,MAAM,UAAU,YAAgB,CAAC;AACxC,eAAO,MAAM,UAAU,YAAW,CAAC;AACnC,eAAO,MAAM,OAAO,YAAgB,CAAC;AAGrC,eAAO,MAAM,MAAM,UAAW,CAAC;AAG/B,eAAO,MAAM,OAAO,UAAW,CAAC;AAChC,eAAO,MAAM,SAAS,UAAW,CAAC;AAClC,eAAO,MAAM,UAAU;;;CAA0B,CAAC;AAGlD,eAAO,MAAM,aAAa,YAAgB,CAAC;AAG3C,eAAO,MAAM,YAAY,UAAW,CAAC;AACrC,eAAO,MAAM,eAAe,UAAW,CAAC;AAGxC,eAAO,MAAM,YAAY,IAAK,CAAC;AAC/B,eAAO,MAAM,UAAU,IAAK,CAAC;AAG7B,eAAO,MAAM,KAAK;;;;;;;CAUjB,CAAC;AAGF,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAG1E,OAAO,EACH,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,mBAAmB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type-safe icon name utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides centralized, typed icon name mappings to eliminate `as any` casts
|
|
5
|
+
* when using dynamic icon names with @expo/vector-icons.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Profile field icons (MaterialCommunityIcons)
|
|
9
|
+
*/
|
|
10
|
+
export declare const PROFILE_FIELD_ICONS: {
|
|
11
|
+
readonly displayName: "account-outline";
|
|
12
|
+
readonly username: "at";
|
|
13
|
+
readonly email: "email-outline";
|
|
14
|
+
readonly bio: "text-box-outline";
|
|
15
|
+
readonly location: "map-marker-outline";
|
|
16
|
+
readonly links: "link-variant";
|
|
17
|
+
readonly website: "web";
|
|
18
|
+
readonly phone: "phone-outline";
|
|
19
|
+
readonly birthday: "cake-variant-outline";
|
|
20
|
+
};
|
|
21
|
+
export type ProfileFieldIconKey = keyof typeof PROFILE_FIELD_ICONS;
|
|
22
|
+
/**
|
|
23
|
+
* Get icon name for a profile field
|
|
24
|
+
*/
|
|
25
|
+
export declare function getProfileFieldIcon(field: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Settings section icons (MaterialCommunityIcons)
|
|
28
|
+
*/
|
|
29
|
+
export declare const SETTINGS_ICONS: {
|
|
30
|
+
readonly account: "account-cog-outline";
|
|
31
|
+
readonly privacy: "shield-account-outline";
|
|
32
|
+
readonly security: "lock-outline";
|
|
33
|
+
readonly notifications: "bell-outline";
|
|
34
|
+
readonly language: "translate";
|
|
35
|
+
readonly appearance: "palette-outline";
|
|
36
|
+
readonly storage: "folder-outline";
|
|
37
|
+
readonly help: "help-circle-outline";
|
|
38
|
+
readonly about: "information-outline";
|
|
39
|
+
readonly logout: "logout";
|
|
40
|
+
};
|
|
41
|
+
export type SettingsIconKey = keyof typeof SETTINGS_ICONS;
|
|
42
|
+
/**
|
|
43
|
+
* Get icon name for a settings section
|
|
44
|
+
*/
|
|
45
|
+
export declare function getSettingsIcon(section: string): string;
|
|
46
|
+
/**
|
|
47
|
+
* File type icons (MaterialCommunityIcons)
|
|
48
|
+
*/
|
|
49
|
+
export declare const FILE_TYPE_ICONS: {
|
|
50
|
+
readonly image: "image-outline";
|
|
51
|
+
readonly video: "video-outline";
|
|
52
|
+
readonly audio: "music-note-outline";
|
|
53
|
+
readonly document: "file-document-outline";
|
|
54
|
+
readonly pdf: "file-pdf-box";
|
|
55
|
+
readonly archive: "folder-zip-outline";
|
|
56
|
+
readonly code: "code-tags";
|
|
57
|
+
readonly spreadsheet: "file-excel-outline";
|
|
58
|
+
readonly presentation: "file-presentation-outline";
|
|
59
|
+
readonly text: "file-document-edit-outline";
|
|
60
|
+
readonly unknown: "file-outline";
|
|
61
|
+
};
|
|
62
|
+
export type FileTypeIconKey = keyof typeof FILE_TYPE_ICONS;
|
|
63
|
+
/**
|
|
64
|
+
* Get icon name for a file type
|
|
65
|
+
*/
|
|
66
|
+
export declare function getFileTypeIcon(type: string): string;
|
|
67
|
+
/**
|
|
68
|
+
* Action icons (Ionicons)
|
|
69
|
+
*/
|
|
70
|
+
export declare const ACTION_ICONS: {
|
|
71
|
+
readonly close: "close";
|
|
72
|
+
readonly back: "chevron-back";
|
|
73
|
+
readonly forward: "chevron-forward";
|
|
74
|
+
readonly add: "add";
|
|
75
|
+
readonly remove: "remove";
|
|
76
|
+
readonly delete: "trash-outline";
|
|
77
|
+
readonly edit: "pencil-outline";
|
|
78
|
+
readonly save: "checkmark";
|
|
79
|
+
readonly cancel: "close";
|
|
80
|
+
readonly search: "search-outline";
|
|
81
|
+
readonly filter: "filter-outline";
|
|
82
|
+
readonly sort: "swap-vertical-outline";
|
|
83
|
+
readonly refresh: "refresh-outline";
|
|
84
|
+
readonly share: "share-outline";
|
|
85
|
+
readonly copy: "copy-outline";
|
|
86
|
+
readonly download: "download-outline";
|
|
87
|
+
readonly upload: "cloud-upload-outline";
|
|
88
|
+
};
|
|
89
|
+
export type ActionIconKey = keyof typeof ACTION_ICONS;
|
|
90
|
+
/**
|
|
91
|
+
* Get icon name for an action
|
|
92
|
+
*/
|
|
93
|
+
export declare function getActionIcon(action: string): string;
|
|
94
|
+
/**
|
|
95
|
+
* Status icons (Ionicons)
|
|
96
|
+
*/
|
|
97
|
+
export declare const STATUS_ICONS: {
|
|
98
|
+
readonly success: "checkmark-circle";
|
|
99
|
+
readonly error: "alert-circle";
|
|
100
|
+
readonly warning: "warning";
|
|
101
|
+
readonly info: "information-circle";
|
|
102
|
+
readonly loading: "hourglass-outline";
|
|
103
|
+
readonly pending: "time-outline";
|
|
104
|
+
readonly online: "ellipse";
|
|
105
|
+
readonly offline: "ellipse-outline";
|
|
106
|
+
};
|
|
107
|
+
export type StatusIconKey = keyof typeof STATUS_ICONS;
|
|
108
|
+
/**
|
|
109
|
+
* Get icon name for a status
|
|
110
|
+
*/
|
|
111
|
+
export declare function getStatusIcon(status: string): string;
|
|
112
|
+
//# sourceMappingURL=iconNames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iconNames.d.ts","sourceRoot":"","sources":["../../../../../src/ui/utils/iconNames.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;CAUtB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAEnE;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;CAWjB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,cAAc,CAAC;AAE1D;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;CAYlB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,eAAe,CAAC;AAE3D;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;CAkBf,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;CASf,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,YAAY,CAAC;AAEtD;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { OxyServices } from '../../core';
|
|
2
1
|
import type { ClientSession } from '../../models/session';
|
|
3
2
|
interface DeviceSession {
|
|
4
3
|
sessionId: string;
|
|
@@ -15,6 +14,12 @@ interface DeviceSession {
|
|
|
15
14
|
userId?: string;
|
|
16
15
|
isCurrent?: boolean;
|
|
17
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Service type for session helpers.
|
|
19
|
+
* Uses 'any' to work around TypeScript mixin composition type inference issues.
|
|
20
|
+
* The OxyServices class has these methods but TypeScript can't see them due to the mixin pattern.
|
|
21
|
+
*/
|
|
22
|
+
type OxyServicesAny = any;
|
|
18
23
|
export interface FetchSessionsWithFallbackOptions {
|
|
19
24
|
fallbackDeviceId?: string;
|
|
20
25
|
fallbackUserId?: string;
|
|
@@ -46,7 +51,7 @@ export declare const mapSessionsToClient: (sessions: DeviceSession[], fallbackDe
|
|
|
46
51
|
* @param sessionId - Session identifier to fetch
|
|
47
52
|
* @param options - Optional fallback options
|
|
48
53
|
*/
|
|
49
|
-
export declare const fetchSessionsWithFallback: (oxyServices:
|
|
54
|
+
export declare const fetchSessionsWithFallback: (oxyServices: OxyServicesAny, sessionId: string, { fallbackDeviceId, fallbackUserId, logger, }?: FetchSessionsWithFallbackOptions) => Promise<ClientSession[]>;
|
|
50
55
|
/**
|
|
51
56
|
* Validate multiple sessions concurrently with configurable concurrency.
|
|
52
57
|
*
|
|
@@ -54,6 +59,6 @@ export declare const fetchSessionsWithFallback: (oxyServices: Pick<OxyServices,
|
|
|
54
59
|
* @param sessionIds - Session identifiers to validate
|
|
55
60
|
* @param options - Validation options
|
|
56
61
|
*/
|
|
57
|
-
export declare const validateSessionBatch: (oxyServices:
|
|
62
|
+
export declare const validateSessionBatch: (oxyServices: OxyServicesAny, sessionIds: string[], { useHeaderValidation, maxConcurrency }?: ValidateSessionBatchOptions) => Promise<SessionValidationResult[]>;
|
|
58
63
|
export {};
|
|
59
64
|
//# sourceMappingURL=sessionHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/ui/utils/sessionHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"sessionHelpers.d.ts","sourceRoot":"","sources":["../../../../../src/ui/utils/sessionHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,UAAU,aAAa;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE;YAAE,QAAQ,IAAI,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;GAIG;AAEH,KAAK,cAAc,GAAG,GAAG,CAAC;AAE1B,MAAM,WAAW,gCAAgC;IAC/C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD;AAED,MAAM,WAAW,2BAA2B;IAC1C,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,aAAa,EAAE,EACzB,mBAAmB,MAAM,EACzB,iBAAiB,MAAM,KACtB,aAAa,EAgBf,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GACpC,aAAa,cAAc,EAC3B,WAAW,MAAM,EACjB,gDAIG,gCAAqC,KACvC,OAAO,CAAC,aAAa,EAAE,CAYzB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAC/B,aAAa,cAAc,EAC3B,YAAY,MAAM,EAAE,EACpB,0CAAoD,2BAAgC,KACnF,OAAO,CAAC,uBAAuB,EAAE,CAuCnC,CAAC"}
|
|
@@ -87,6 +87,8 @@ export declare class RequestQueue {
|
|
|
87
87
|
*/
|
|
88
88
|
runningCount(): number;
|
|
89
89
|
}
|
|
90
|
+
/** Log level type for SimpleLogger */
|
|
91
|
+
export type LogLevel = 'none' | 'error' | 'warn' | 'info' | 'debug';
|
|
90
92
|
/**
|
|
91
93
|
* Simple logger with level support
|
|
92
94
|
*
|
|
@@ -111,7 +113,7 @@ export declare class SimpleLogger {
|
|
|
111
113
|
* @param level Minimum log level
|
|
112
114
|
* @param prefix Prefix for log messages (default: '')
|
|
113
115
|
*/
|
|
114
|
-
constructor(enabled?: boolean, level?:
|
|
116
|
+
constructor(enabled?: boolean, level?: LogLevel, prefix?: string);
|
|
115
117
|
private shouldLog;
|
|
116
118
|
private formatMessage;
|
|
117
119
|
error(...args: any[]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/requestUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,eAAe,CAAmC;IAE1D;;;;;OAKG;IACG,WAAW,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAC1B,OAAO,CAAC,CAAC,CAAC;IAeb;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,IAAI,IAAI,MAAM;CAGf;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;IAE7B;;;;OAIG;gBACS,aAAa,GAAE,MAAW,EAAE,YAAY,GAAE,MAAY;IAKlE;;;;OAIG;IACG,OAAO,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAmBzD;;OAEG;YACW,OAAO;IAmBrB;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,IAAI,IAAI,MAAM;IAId;;OAEG;IACH,YAAY,IAAI,MAAM;CAGvB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"requestUtils.d.ts","sourceRoot":"","sources":["../../../../src/utils/requestUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,eAAe,CAAmC;IAE1D;;;;;OAKG;IACG,WAAW,CAAC,CAAC,EACjB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAC1B,OAAO,CAAC,CAAC,CAAC;IAeb;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,IAAI,IAAI,MAAM;CAGf;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,YAAY,CAAS;IAE7B;;;;OAIG;gBACS,aAAa,GAAE,MAAW,EAAE,YAAY,GAAE,MAAY;IAKlE;;;;OAIG;IACG,OAAO,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAmBzD;;OAEG;YACW,OAAO;IAmBrB;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,IAAI,IAAI,MAAM;IAId;;OAEG;IACH,YAAY,IAAI,MAAM;CAGvB;AAED,sCAAsC;AACtC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpE;;;;;;;;;;;;;GAaG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,KAAK,CAAW;IACxB,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;;OAKG;gBAED,OAAO,GAAE,OAAe,EACxB,KAAK,GAAE,QAAkB,EACzB,MAAM,GAAE,MAAW;IAOrB,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,aAAa;IAIrB,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAM3B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAM1B,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAM1B,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;CAK5B"}
|