@oxyhq/services 5.10.4 → 5.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +62 -14
  2. package/lib/commonjs/core/OxyServices.js +797 -5
  3. package/lib/commonjs/core/OxyServices.js.map +1 -1
  4. package/lib/commonjs/core/index.js +8 -83
  5. package/lib/commonjs/core/index.js.map +1 -1
  6. package/lib/commonjs/index.js +31 -1
  7. package/lib/commonjs/index.js.map +1 -1
  8. package/lib/commonjs/ui/screens/FileManagementScreen.js +12 -12
  9. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  10. package/lib/commonjs/ui/screens/ProfileScreen.js +2 -2
  11. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  12. package/lib/commonjs/ui/screens/SignInScreen.js +1 -1
  13. package/lib/commonjs/ui/screens/SignInScreen.js.map +1 -1
  14. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +1 -1
  15. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  16. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
  17. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
  18. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js +1 -1
  19. package/lib/commonjs/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
  20. package/lib/commonjs/ui/stores/followStore.js +4 -4
  21. package/lib/commonjs/ui/stores/followStore.js.map +1 -1
  22. package/lib/commonjs/utils/s3FileManager.js +243 -0
  23. package/lib/commonjs/utils/s3FileManager.js.map +1 -0
  24. package/lib/commonjs/utils/s3FileManagerExample.js +407 -0
  25. package/lib/commonjs/utils/s3FileManagerExample.js.map +1 -0
  26. package/lib/commonjs/utils/s3FileManagerRN.js +274 -0
  27. package/lib/commonjs/utils/s3FileManagerRN.js.map +1 -0
  28. package/lib/module/core/OxyServices.js +796 -4
  29. package/lib/module/core/OxyServices.js.map +1 -1
  30. package/lib/module/core/index.js +9 -24
  31. package/lib/module/core/index.js.map +1 -1
  32. package/lib/module/index.js +4 -0
  33. package/lib/module/index.js.map +1 -1
  34. package/lib/module/ui/screens/FileManagementScreen.js +12 -12
  35. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  36. package/lib/module/ui/screens/ProfileScreen.js +2 -2
  37. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  38. package/lib/module/ui/screens/SignInScreen.js +1 -1
  39. package/lib/module/ui/screens/SignInScreen.js.map +1 -1
  40. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +1 -1
  41. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  42. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
  43. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
  44. package/lib/module/ui/screens/karma/KarmaRulesScreen.js +1 -1
  45. package/lib/module/ui/screens/karma/KarmaRulesScreen.js.map +1 -1
  46. package/lib/module/ui/stores/followStore.js +4 -4
  47. package/lib/module/ui/stores/followStore.js.map +1 -1
  48. package/lib/module/utils/s3FileManager.js +237 -0
  49. package/lib/module/utils/s3FileManager.js.map +1 -0
  50. package/lib/module/utils/s3FileManagerExample.js +400 -0
  51. package/lib/module/utils/s3FileManagerExample.js.map +1 -0
  52. package/lib/module/utils/s3FileManagerRN.js +268 -0
  53. package/lib/module/utils/s3FileManagerRN.js.map +1 -0
  54. package/lib/typescript/core/OxyServices.d.ts +292 -3
  55. package/lib/typescript/core/OxyServices.d.ts.map +1 -1
  56. package/lib/typescript/core/index.d.ts +7 -16
  57. package/lib/typescript/core/index.d.ts.map +1 -1
  58. package/lib/typescript/index.d.ts +4 -0
  59. package/lib/typescript/index.d.ts.map +1 -1
  60. package/lib/typescript/utils/s3FileManager.d.ts +81 -0
  61. package/lib/typescript/utils/s3FileManager.d.ts.map +1 -0
  62. package/lib/typescript/utils/s3FileManagerExample.d.ts +87 -0
  63. package/lib/typescript/utils/s3FileManagerExample.d.ts.map +1 -0
  64. package/lib/typescript/utils/s3FileManagerRN.d.ts +104 -0
  65. package/lib/typescript/utils/s3FileManagerRN.d.ts.map +1 -0
  66. package/package.json +3 -1
  67. package/src/core/OxyServices.ts +881 -46
  68. package/src/core/index.ts +9 -24
  69. package/src/index.ts +17 -1
  70. package/src/ui/screens/FileManagementScreen.tsx +12 -12
  71. package/src/ui/screens/ProfileScreen.tsx +3 -3
  72. package/src/ui/screens/SignInScreen.tsx +1 -1
  73. package/src/ui/screens/karma/KarmaCenterScreen.tsx +2 -2
  74. package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +1 -1
  75. package/src/ui/screens/karma/KarmaRulesScreen.tsx +1 -1
  76. package/src/ui/stores/followStore.ts +4 -4
  77. package/src/utils/s3FileManager.ts +281 -0
  78. package/src/utils/s3FileManagerExample.ts +432 -0
  79. package/src/utils/s3FileManagerRN.ts +322 -0
  80. package/lib/commonjs/core/OxyServicesMain.js +0 -51
  81. package/lib/commonjs/core/OxyServicesMain.js.map +0 -1
  82. package/lib/commonjs/core/analytics/AnalyticsService.js +0 -67
  83. package/lib/commonjs/core/analytics/AnalyticsService.js.map +0 -1
  84. package/lib/commonjs/core/auth/AuthService.js +0 -538
  85. package/lib/commonjs/core/auth/AuthService.js.map +0 -1
  86. package/lib/commonjs/core/devices/DeviceService.js +0 -61
  87. package/lib/commonjs/core/devices/DeviceService.js.map +0 -1
  88. package/lib/commonjs/core/files/FileService.js +0 -180
  89. package/lib/commonjs/core/files/FileService.js.map +0 -1
  90. package/lib/commonjs/core/karma/KarmaService.js +0 -100
  91. package/lib/commonjs/core/karma/KarmaService.js.map +0 -1
  92. package/lib/commonjs/core/locations/LocationService.js +0 -131
  93. package/lib/commonjs/core/locations/LocationService.js.map +0 -1
  94. package/lib/commonjs/core/payments/PaymentService.js +0 -124
  95. package/lib/commonjs/core/payments/PaymentService.js.map +0 -1
  96. package/lib/commonjs/core/users/UserService.js +0 -234
  97. package/lib/commonjs/core/users/UserService.js.map +0 -1
  98. package/lib/module/core/OxyServicesMain.js +0 -47
  99. package/lib/module/core/OxyServicesMain.js.map +0 -1
  100. package/lib/module/core/analytics/AnalyticsService.js +0 -62
  101. package/lib/module/core/analytics/AnalyticsService.js.map +0 -1
  102. package/lib/module/core/auth/AuthService.js +0 -533
  103. package/lib/module/core/auth/AuthService.js.map +0 -1
  104. package/lib/module/core/devices/DeviceService.js +0 -57
  105. package/lib/module/core/devices/DeviceService.js.map +0 -1
  106. package/lib/module/core/files/FileService.js +0 -175
  107. package/lib/module/core/files/FileService.js.map +0 -1
  108. package/lib/module/core/karma/KarmaService.js +0 -95
  109. package/lib/module/core/karma/KarmaService.js.map +0 -1
  110. package/lib/module/core/locations/LocationService.js +0 -127
  111. package/lib/module/core/locations/LocationService.js.map +0 -1
  112. package/lib/module/core/payments/PaymentService.js +0 -119
  113. package/lib/module/core/payments/PaymentService.js.map +0 -1
  114. package/lib/module/core/users/UserService.js +0 -230
  115. package/lib/module/core/users/UserService.js.map +0 -1
  116. package/lib/typescript/core/OxyServicesMain.d.ts +0 -33
  117. package/lib/typescript/core/OxyServicesMain.d.ts.map +0 -1
  118. package/lib/typescript/core/analytics/AnalyticsService.d.ts +0 -26
  119. package/lib/typescript/core/analytics/AnalyticsService.d.ts.map +0 -1
  120. package/lib/typescript/core/auth/AuthService.d.ts +0 -165
  121. package/lib/typescript/core/auth/AuthService.d.ts.map +0 -1
  122. package/lib/typescript/core/devices/DeviceService.d.ts +0 -20
  123. package/lib/typescript/core/devices/DeviceService.d.ts.map +0 -1
  124. package/lib/typescript/core/files/FileService.d.ts +0 -59
  125. package/lib/typescript/core/files/FileService.d.ts.map +0 -1
  126. package/lib/typescript/core/karma/KarmaService.d.ts +0 -50
  127. package/lib/typescript/core/karma/KarmaService.d.ts.map +0 -1
  128. package/lib/typescript/core/locations/LocationService.d.ts +0 -39
  129. package/lib/typescript/core/locations/LocationService.d.ts.map +0 -1
  130. package/lib/typescript/core/payments/PaymentService.d.ts +0 -50
  131. package/lib/typescript/core/payments/PaymentService.d.ts.map +0 -1
  132. package/lib/typescript/core/users/UserService.d.ts +0 -111
  133. package/lib/typescript/core/users/UserService.d.ts.map +0 -1
  134. package/src/core/OxyServicesMain.ts +0 -57
  135. package/src/core/analytics/AnalyticsService.ts +0 -64
  136. package/src/core/auth/AuthService.ts +0 -560
  137. package/src/core/devices/DeviceService.ts +0 -55
  138. package/src/core/files/FileService.ts +0 -198
  139. package/src/core/karma/KarmaService.ts +0 -104
  140. package/src/core/locations/LocationService.ts +0 -141
  141. package/src/core/payments/PaymentService.ts +0 -133
  142. package/src/core/users/UserService.ts +0 -241
@@ -1,230 +0,0 @@
1
- "use strict";
2
-
3
- import { OxyServices } from '../OxyServices';
4
- import { buildSearchParams, buildPaginationParams } from '../../utils/apiUtils';
5
-
6
- /**
7
- * User service for handling user operations, profiles, and social features
8
- */
9
- export class UserService extends OxyServices {
10
- /**
11
- * Get profile by username
12
- */
13
- async getProfileByUsername(username) {
14
- try {
15
- const res = await this.getClient().get(`/api/profiles/username/${username}`);
16
- return res.data;
17
- } catch (error) {
18
- throw this.handleError(error);
19
- }
20
- }
21
-
22
- /**
23
- * Search user profiles
24
- */
25
- async searchProfiles(query, pagination) {
26
- try {
27
- const params = {
28
- query,
29
- ...pagination
30
- };
31
- const searchParams = buildSearchParams(params);
32
- const res = await this.getClient().get(`/api/profiles/search?${searchParams.toString()}`);
33
- return res.data;
34
- } catch (error) {
35
- throw this.handleError(error);
36
- }
37
- }
38
-
39
- /**
40
- * Get profile recommendations
41
- */
42
- async getProfileRecommendations() {
43
- try {
44
- const res = await this.getClient().get('/api/profiles/recommendations');
45
- return res.data;
46
- } catch (error) {
47
- throw this.handleError(error);
48
- }
49
- }
50
-
51
- /**
52
- * Get user by ID
53
- */
54
- async getUserById(userId) {
55
- try {
56
- const res = await this.getClient().get(`/api/users/${userId}`);
57
- return res.data;
58
- } catch (error) {
59
- throw this.handleError(error);
60
- }
61
- }
62
-
63
- /**
64
- * Get current user
65
- */
66
- async getCurrentUser() {
67
- try {
68
- const res = await this.getClient().get('/api/users/me');
69
- return res.data;
70
- } catch (error) {
71
- throw this.handleError(error);
72
- }
73
- }
74
-
75
- /**
76
- * Update user profile
77
- */
78
- async updateProfile(updates) {
79
- try {
80
- const res = await this.getClient().put('/api/users/me', updates);
81
- return res.data;
82
- } catch (error) {
83
- throw this.handleError(error);
84
- }
85
- }
86
-
87
- /**
88
- * Update user by ID (admin function)
89
- */
90
- async updateUser(userId, updates) {
91
- try {
92
- const res = await this.getClient().put(`/api/users/${userId}`, updates);
93
- return res.data;
94
- } catch (error) {
95
- throw this.handleError(error);
96
- }
97
- }
98
-
99
- /**
100
- * Follow a user
101
- */
102
- async followUser(userId) {
103
- try {
104
- const res = await this.getClient().post(`/api/users/${userId}/follow`);
105
- return res.data;
106
- } catch (error) {
107
- throw this.handleError(error);
108
- }
109
- }
110
-
111
- /**
112
- * Unfollow a user
113
- */
114
- async unfollowUser(userId) {
115
- try {
116
- const res = await this.getClient().delete(`/api/users/${userId}/follow`);
117
- return res.data;
118
- } catch (error) {
119
- throw this.handleError(error);
120
- }
121
- }
122
-
123
- /**
124
- * Get follow status
125
- */
126
- async getFollowStatus(userId) {
127
- try {
128
- const res = await this.getClient().get(`/api/users/${userId}/following-status`);
129
- return res.data;
130
- } catch (error) {
131
- throw this.handleError(error);
132
- }
133
- }
134
-
135
- /**
136
- * Get user followers
137
- */
138
- async getUserFollowers(userId, pagination) {
139
- try {
140
- const searchParams = buildPaginationParams(pagination || {});
141
- const res = await this.getClient().get(`/api/users/${userId}/followers?${searchParams.toString()}`);
142
- return res.data;
143
- } catch (error) {
144
- throw this.handleError(error);
145
- }
146
- }
147
-
148
- /**
149
- * Get user following
150
- */
151
- async getUserFollowing(userId, pagination) {
152
- try {
153
- const searchParams = buildPaginationParams(pagination || {});
154
- const res = await this.getClient().get(`/api/users/${userId}/following?${searchParams.toString()}`);
155
- return res.data;
156
- } catch (error) {
157
- throw this.handleError(error);
158
- }
159
- }
160
-
161
- /**
162
- * Get notifications
163
- */
164
- async getNotifications() {
165
- try {
166
- const res = await this.getClient().get('/api/notifications');
167
- return res.data;
168
- } catch (error) {
169
- throw this.handleError(error);
170
- }
171
- }
172
-
173
- /**
174
- * Get unread notification count
175
- */
176
- async getUnreadCount() {
177
- try {
178
- const res = await this.getClient().get('/api/notifications/unread-count');
179
- return res.data.count;
180
- } catch (error) {
181
- throw this.handleError(error);
182
- }
183
- }
184
-
185
- /**
186
- * Create notification
187
- */
188
- async createNotification(data) {
189
- try {
190
- const res = await this.getClient().post('/api/notifications', data);
191
- return res.data;
192
- } catch (error) {
193
- throw this.handleError(error);
194
- }
195
- }
196
-
197
- /**
198
- * Mark notification as read
199
- */
200
- async markNotificationAsRead(notificationId) {
201
- try {
202
- await this.getClient().put(`/api/notifications/${notificationId}/read`);
203
- } catch (error) {
204
- throw this.handleError(error);
205
- }
206
- }
207
-
208
- /**
209
- * Mark all notifications as read
210
- */
211
- async markAllNotificationsAsRead() {
212
- try {
213
- await this.getClient().put('/api/notifications/read-all');
214
- } catch (error) {
215
- throw this.handleError(error);
216
- }
217
- }
218
-
219
- /**
220
- * Delete notification
221
- */
222
- async deleteNotification(notificationId) {
223
- try {
224
- await this.getClient().delete(`/api/notifications/${notificationId}`);
225
- } catch (error) {
226
- throw this.handleError(error);
227
- }
228
- }
229
- }
230
- //# sourceMappingURL=UserService.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["OxyServices","buildSearchParams","buildPaginationParams","UserService","getProfileByUsername","username","res","getClient","get","data","error","handleError","searchProfiles","query","pagination","params","searchParams","toString","getProfileRecommendations","getUserById","userId","getCurrentUser","updateProfile","updates","put","updateUser","followUser","post","unfollowUser","delete","getFollowStatus","getUserFollowers","getUserFollowing","getNotifications","getUnreadCount","count","createNotification","markNotificationAsRead","notificationId","markAllNotificationsAsRead","deleteNotification"],"sourceRoot":"../../../../src","sources":["core/users/U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C,oBAAoB,EAAElB,IAAI,CAAC;MACnE,OAAOH,GAAG,CAACG,IAAI;IACjB,CAAC,CAAC,OAAOC,KAAK,EAAE;MACd,MAAM,IAAI,CAACC,WAAW,CAACD,KAAK,CAAC;IAC/B;EACF;;EAEA;AACF;AACA;EACE,MAAM2B,sBAAsBA,CAACC,cAAsB,EAAiB;IAClE,IAAI;MACF,MAAM,IAAI,CAAC/B,SAAS,CAAC,CAAC,CAACiB,GAAG,CAAC,sBAAsBc,cAAc,OAAO,CAAC;IACzE,CAAC,CAAC,OAAO5B,KAAK,EAAE;MACd,MAAM,IAAI,CAACC,WAAW,CAACD,KAAK,CAAC;IAC/B;EACF;;EAEA;AACF;AACA;EACE,MAAM6B,0BAA0BA,CAAA,EAAkB;IAChD,IAAI;MACF,MAAM,IAAI,CAAChC,SAAS,CAAC,CAAC,CAACiB,GAAG,CAAC,6BAA6B,CAAC;IAC3D,CAAC,CAAC,OAAOd,KAAK,EAAE;MACd,MAAM,IAAI,CAACC,WAAW,CAACD,KAAK,CAAC;IAC/B;EACF;;EAEA;AACF;AACA;EACE,MAAM8B,kBAAkBA,CAACF,cAAsB,EAAiB;IAC9D,IAAI;MACF,MAAM,IAAI,CAAC/B,SAAS,CAAC,CAAC,CAACsB,MAAM,CAAC,sBAAsBS,cAAc,EAAE,CAAC;IACvE,CAAC,CAAC,OAAO5B,KAAK,EAAE;MACd,MAAM,IAAI,CAACC,WAAW,CAACD,KAAK,CAAC;IAC/B;EACF;AACF","ignoreList":[]}
@@ -1,33 +0,0 @@
1
- import { OxyConfig } from '../models/interfaces';
2
- import { AuthService } from './auth/AuthService';
3
- import { UserService } from './users/UserService';
4
- import { PaymentService } from './payments/PaymentService';
5
- import { KarmaService } from './karma/KarmaService';
6
- import { FileService } from './files/FileService';
7
- import { LocationService } from './locations/LocationService';
8
- import { AnalyticsService } from './analytics/AnalyticsService';
9
- import { DeviceService } from './devices/DeviceService';
10
- /**
11
- * Main OxyServices class that combines all individual services
12
- *
13
- * This class provides a unified interface to all Oxy API services while maintaining
14
- * backward compatibility with the original monolithic structure.
15
- */
16
- export declare class OxyServicesMain extends AuthService {
17
- readonly users: UserService;
18
- readonly payments: PaymentService;
19
- readonly karma: KarmaService;
20
- readonly files: FileService;
21
- readonly locations: LocationService;
22
- readonly analytics: AnalyticsService;
23
- readonly devices: DeviceService;
24
- constructor(config: OxyConfig);
25
- static readonly OXY_CLOUD_URL = "https://cloud.oxy.so";
26
- fetchLinkMetadata(url: string): Promise<{
27
- url: string;
28
- title: string;
29
- description: string;
30
- image?: string;
31
- }>;
32
- }
33
- //# sourceMappingURL=OxyServicesMain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OxyServicesMain.d.ts","sourceRoot":"","sources":["../../../src/core/OxyServicesMain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAiB,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAE9C,SAAgB,KAAK,EAAE,WAAW,CAAC;IACnC,SAAgB,QAAQ,EAAE,cAAc,CAAC;IACzC,SAAgB,KAAK,EAAE,YAAY,CAAC;IACpC,SAAgB,KAAK,EAAE,WAAW,CAAC;IACnC,SAAgB,SAAS,EAAE,eAAe,CAAC;IAC3C,SAAgB,SAAS,EAAE,gBAAgB,CAAC;IAC5C,SAAgB,OAAO,EAAE,aAAa,CAAC;gBAE3B,MAAM,EAAE,SAAS;IAc7B,MAAM,CAAC,QAAQ,CAAC,aAAa,0BAAiB;IAGxC,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;QAC5C,GAAG,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CAQH"}
@@ -1,26 +0,0 @@
1
- import { OxyServices } from '../OxyServices';
2
- import { AnalyticsData, FollowerDetails, ContentViewer } from '../../models/interfaces';
3
- /**
4
- * Analytics service for handling analytics and content viewer operations
5
- */
6
- export declare class AnalyticsService extends OxyServices {
7
- /**
8
- * Get analytics data for user
9
- */
10
- getAnalytics(userId: string, period?: string): Promise<AnalyticsData>;
11
- /**
12
- * Update analytics data
13
- */
14
- updateAnalytics(userId: string, type: string, data: Record<string, any>): Promise<{
15
- message: string;
16
- }>;
17
- /**
18
- * Get content viewers for user
19
- */
20
- getContentViewers(userId: string, period?: string): Promise<ContentViewer[]>;
21
- /**
22
- * Get follower details for user
23
- */
24
- getFollowerDetails(userId: string, period?: string): Promise<FollowerDetails>;
25
- }
26
- //# sourceMappingURL=AnalyticsService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnalyticsService.d.ts","sourceRoot":"","sources":["../../../../src/core/analytics/AnalyticsService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACG,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAY3E;;OAEG;IACG,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAS5G;;OAEG;IACG,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAYlF;;OAEG;IACG,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;CAWpF"}
@@ -1,165 +0,0 @@
1
- import { OxyServices } from '../OxyServices';
2
- import { User, ApiError } from '../../models/interfaces';
3
- import { SessionLoginResponse } from '../../models/session';
4
- /**
5
- * Authentication service for handling login, signup, and session management
6
- */
7
- export declare class AuthService extends OxyServices {
8
- /**
9
- * Sign up a new user
10
- */
11
- signUp(username: string, email: string, password: string): Promise<{
12
- message: string;
13
- token: string;
14
- user: User;
15
- }>;
16
- /**
17
- * Sign in with device management
18
- */
19
- signIn(username: string, password: string, deviceName?: string, deviceFingerprint?: any): Promise<SessionLoginResponse>;
20
- /**
21
- * Get user by session ID
22
- */
23
- getUserBySession(sessionId: string): Promise<User>;
24
- /**
25
- * Get access token by session ID and set it in the token store
26
- */
27
- getTokenBySession(sessionId: string): Promise<{
28
- accessToken: string;
29
- expiresAt: string;
30
- }>;
31
- /**
32
- * Get sessions by session ID
33
- */
34
- getSessionsBySessionId(sessionId: string): Promise<any[]>;
35
- /**
36
- * Logout from a specific session
37
- */
38
- logoutSession(sessionId: string, targetSessionId?: string): Promise<void>;
39
- /**
40
- * Logout from all sessions
41
- */
42
- logoutAllSessions(sessionId: string): Promise<void>;
43
- /**
44
- * Validate a session with optional device fingerprint
45
- *
46
- * @example
47
- * ```typescript
48
- * // Basic session validation
49
- * const result = await authService.validateSession('session-id');
50
- *
51
- * // With device fingerprint for enhanced security
52
- * const result = await authService.validateSession('session-id', {
53
- * deviceFingerprint: 'device-fingerprint',
54
- * useHeaderValidation: true
55
- * });
56
- * ```
57
- *
58
- * @param sessionId The session ID to validate
59
- * @param options Validation options
60
- * @param options.deviceFingerprint Optional device fingerprint for enhanced validation
61
- * @param options.useHeaderValidation Whether to use header-based validation (default: false)
62
- * @returns Session validation result
63
- */
64
- validateSession(sessionId: string, options?: {
65
- deviceFingerprint?: string;
66
- useHeaderValidation?: boolean;
67
- }): Promise<{
68
- valid: boolean;
69
- expiresAt: string;
70
- lastActivity: string;
71
- user: User;
72
- sessionId?: string;
73
- source?: string;
74
- }>;
75
- /**
76
- * Express.js authentication middleware
77
- *
78
- * A simple, efficient, and debuggable authentication middleware that supports both
79
- * session-based and legacy token-based authentication.
80
- *
81
- * @example
82
- * ```typescript
83
- * // Basic usage
84
- * app.use('/api/protected', authService.authenticateToken());
85
- *
86
- * // With debug logging
87
- * app.use('/api/protected', authService.authenticateToken({ debug: true }));
88
- *
89
- * // Without loading full user data (faster)
90
- * app.use('/api/protected', authService.authenticateToken({ loadFullUser: false }));
91
- *
92
- * // With custom error handling
93
- * app.use('/api/protected', authService.authenticateToken({
94
- * onError: (error) => {
95
- * console.error('Auth error:', error);
96
- * // Custom error handling logic
97
- * }
98
- * }));
99
- * ```
100
- *
101
- * @param options Configuration options
102
- * @param options.loadFullUser Whether to load complete user data (default: true)
103
- * @param options.onError Custom error handler function
104
- * @param options.debug Enable debug logging (default: false)
105
- * @returns Express middleware function
106
- */
107
- authenticateToken(options?: {
108
- loadFullUser?: boolean;
109
- onError?: (error: ApiError) => any;
110
- debug?: boolean;
111
- }): (req: any, res: any, next: any) => Promise<any>;
112
- /**
113
- * Helper method for validating tokens without Express middleware
114
- *
115
- * Use this method when you need to validate tokens programmatically
116
- * outside of Express middleware context.
117
- *
118
- * @example
119
- * ```typescript
120
- * const result = await authService.validateToken(token);
121
- * if (result.valid) {
122
- * console.log('User ID:', result.userId);
123
- * console.log('User data:', result.user);
124
- * } else {
125
- * console.log('Validation failed:', result.error);
126
- * }
127
- * ```
128
- *
129
- * @param token JWT token to validate
130
- * @returns Validation result with user data if valid
131
- */
132
- validateToken(token: string): Promise<{
133
- valid: boolean;
134
- userId?: string;
135
- user?: any;
136
- error?: string;
137
- }>;
138
- /**
139
- * Get device sessions (delegates to DeviceService)
140
- */
141
- getDeviceSessions(sessionId: string): Promise<any[]>;
142
- /**
143
- * Logout from all device sessions (delegates to DeviceService)
144
- */
145
- logoutAllDeviceSessions(sessionId: string): Promise<void>;
146
- /**
147
- * Update device name (delegates to DeviceService)
148
- */
149
- updateDeviceName(sessionId: string, deviceName: string): Promise<void>;
150
- /**
151
- * Check username availability
152
- */
153
- checkUsernameAvailability(username: string): Promise<{
154
- available: boolean;
155
- message: string;
156
- }>;
157
- /**
158
- * Check email availability
159
- */
160
- checkEmailAvailability(email: string): Promise<{
161
- available: boolean;
162
- message: string;
163
- }>;
164
- }
165
- //# sourceMappingURL=AuthService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthService.d.ts","sourceRoot":"","sources":["../../../../src/core/auth/AuthService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAiB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAU5D;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACG,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC;IAaxH;;OAEG;IACG,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MA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,GAAG,EAAE,KAAK,GAAG,EAAE,MAAM,GAAG;IAqJ7C;;;;;;;;;;;;;;;;;;;OAmBG;IACG,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QAC1C,KAAK,EAAE,OAAO,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,GAAG,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAoFF;;OAEG;IACG,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAS1D;;OAEG;IACG,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/D;;OAEG;IACG,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ5E;;OAEG;IACG,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAoBnG;;OAEG;IACG,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAsB9F"}
@@ -1,20 +0,0 @@
1
- import { OxyServices } from '../OxyServices';
2
- import { DeviceSession, DeviceSessionLogoutResponse, UpdateDeviceNameResponse } from '../../models/interfaces';
3
- /**
4
- * Device service for handling device session management
5
- */
6
- export declare class DeviceService extends OxyServices {
7
- /**
8
- * Get device sessions
9
- */
10
- getDeviceSessions(sessionId: string, deviceId?: string): Promise<DeviceSession[]>;
11
- /**
12
- * Logout from all device sessions
13
- */
14
- logoutAllDeviceSessions(sessionId: string, deviceId?: string, excludeCurrent?: boolean): Promise<DeviceSessionLogoutResponse>;
15
- /**
16
- * Update device name
17
- */
18
- updateDeviceName(sessionId: string, deviceName: string): Promise<UpdateDeviceNameResponse>;
19
- }
20
- //# sourceMappingURL=DeviceService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeviceService.d.ts","sourceRoot":"","sources":["../../../../src/core/devices/DeviceService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,aAAa,EAEb,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AAGjC;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACG,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAYvF;;OAEG;IACG,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAYnI;;OAEG;IACG,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAQjG"}
@@ -1,59 +0,0 @@
1
- import { OxyServices } from '../OxyServices';
2
- import { FileMetadata, FileUploadResponse, FileListResponse, FileUpdateRequest, FileDeleteResponse } from '../../models/interfaces';
3
- /**
4
- * Default cloud URL for Oxy services, cloud is where the user files are. (e.g. images, videos, etc.). Not the API.
5
- */
6
- export declare const OXY_CLOUD_URL = "https://cloud.oxy.so";
7
- /**
8
- * File service for handling file operations and management
9
- */
10
- export declare class FileService extends OxyServices {
11
- /**
12
- * Upload a single file
13
- * Note: This method is deprecated. Use the new raw upload approach instead.
14
- */
15
- uploadFile(file: File | Blob | any, // Use 'any' to handle Buffer type in cross-platform scenarios
16
- filename: string, metadata?: Record<string, any>): Promise<FileMetadata>;
17
- /**
18
- * Upload multiple files
19
- * Note: This method is deprecated. Use the new raw upload approach instead.
20
- */
21
- uploadFiles(files: (File | Blob | any)[], filenames: string[], metadata?: Record<string, any>): Promise<FileUploadResponse>;
22
- /**
23
- * Get file metadata
24
- */
25
- getFileMetadata(fileId: string): Promise<FileMetadata>;
26
- /**
27
- * Update file metadata
28
- */
29
- updateFileMetadata(fileId: string, updates: FileUpdateRequest): Promise<FileMetadata>;
30
- /**
31
- * Delete file
32
- */
33
- deleteFile(fileId: string): Promise<FileDeleteResponse>;
34
- /**
35
- * Get file download URL
36
- */
37
- getFileDownloadUrl(fileId: string): string;
38
- /**
39
- * Get file stream URL
40
- */
41
- getFileStreamUrl(fileId: string): string;
42
- /**
43
- * List user files
44
- */
45
- listUserFiles(userId: string, limit?: number, offset?: number, filters?: Record<string, any>): Promise<FileListResponse>;
46
- /**
47
- * Download file content
48
- */
49
- downloadFileContent(fileId: string): Promise<Response>;
50
- /**
51
- * Get file content as text
52
- */
53
- getFileContentAsText(fileId: string): Promise<string>;
54
- /**
55
- * Get file content as blob
56
- */
57
- getFileContentAsBlob(fileId: string): Promise<Blob>;
58
- }
59
- //# sourceMappingURL=FileService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileService.d.ts","sourceRoot":"","sources":["../../../../src/core/files/FileService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,aAAa,yBAAyB,CAAC;AAEpD;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACG,UAAU,CACd,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,GAAG,EAAE,8DAA8D;IACvF,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7B,OAAO,CAAC,YAAY,CAAC;IAoBxB;;;OAGG;IACG,WAAW,CACf,KAAK,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,GAAG,CAAC,EAAE,EAC5B,SAAS,EAAE,MAAM,EAAE,EACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC7B,OAAO,CAAC,kBAAkB,CAAC;IAuB9B;;OAEG;IACG,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAS5D;;OAEG;IACG,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAS3F;;OAEG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAS7D;;OAEG;IACH,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAI1C;;OAEG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAIxC;;OAEG;IACG,aAAa,CACjB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC5B,OAAO,CAAC,gBAAgB,CAAC;IAmB5B;;OAEG;IACG,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAW5D;;OAEG;IACG,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAa3D;;OAEG;IACG,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAU1D"}
@@ -1,50 +0,0 @@
1
- import { OxyServices } from '../OxyServices';
2
- import { KarmaRule, KarmaHistory, KarmaLeaderboardEntry, KarmaAwardRequest } from '../../models/interfaces';
3
- /**
4
- * Karma service for handling karma system operations
5
- */
6
- export declare class KarmaService extends OxyServices {
7
- /**
8
- * Get karma leaderboard
9
- */
10
- getKarmaLeaderboard(): Promise<KarmaLeaderboardEntry[]>;
11
- /**
12
- * Get karma rules
13
- */
14
- getKarmaRules(): Promise<KarmaRule[]>;
15
- /**
16
- * Get user karma total
17
- */
18
- getUserKarmaTotal(userId: string): Promise<{
19
- total: number;
20
- }>;
21
- /**
22
- * Get user karma history
23
- */
24
- getUserKarmaHistory(userId: string, limit?: number, offset?: number): Promise<{
25
- history: KarmaHistory[];
26
- total: number;
27
- hasMore: boolean;
28
- }>;
29
- /**
30
- * Award karma to user
31
- */
32
- awardKarma(data: KarmaAwardRequest): Promise<{
33
- success: boolean;
34
- message: string;
35
- history: KarmaHistory;
36
- }>;
37
- /**
38
- * Deduct karma from user
39
- */
40
- deductKarma(data: KarmaAwardRequest): Promise<{
41
- success: boolean;
42
- message: string;
43
- history: KarmaHistory;
44
- }>;
45
- /**
46
- * Create or update karma rule
47
- */
48
- createOrUpdateKarmaRule(data: Partial<KarmaRule>): Promise<KarmaRule>;
49
- }
50
- //# sourceMappingURL=KarmaService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"KarmaService.d.ts","sourceRoot":"","sources":["../../../../src/core/karma/KarmaService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,SAAS,EACT,YAAY,EACZ,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAS7D;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAS3C;;OAEG;IACG,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IASnE;;OAEG;IACG,mBAAmB,CACvB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC;QAAE,OAAO,EAAE,YAAY,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAaxE;;OAEG;IACG,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,YAAY,CAAA;KAAE,CAAC;IAShH;;OAEG;IACG,WAAW,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,YAAY,CAAA;KAAE,CAAC;IASjH;;OAEG;IACG,uBAAuB,CAAC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC;CAQ5E"}
@@ -1,39 +0,0 @@
1
- import { OxyServices } from '../OxyServices';
2
- /**
3
- * Location service for handling location search and geolocation features
4
- */
5
- export declare class LocationService extends OxyServices {
6
- /**
7
- * Search locations
8
- */
9
- searchLocations(query: string, limit?: number, countrycodes?: string): Promise<any[]>;
10
- /**
11
- * Get location details by coordinates
12
- */
13
- getLocationDetails(lat: number, lon: number): Promise<any>;
14
- /**
15
- * Find locations near coordinates
16
- */
17
- findLocationsNear(lat: number, lon: number, maxDistance?: number, limit?: number, skip?: number): Promise<any>;
18
- /**
19
- * Search locations in database
20
- */
21
- searchLocationsInDB(query: string, limit?: number, skip?: number, type?: string, country?: string, city?: string): Promise<any>;
22
- /**
23
- * Get location statistics
24
- */
25
- getLocationStats(): Promise<any>;
26
- /**
27
- * Get cache statistics
28
- */
29
- getLocationCacheStats(): Promise<any>;
30
- /**
31
- * Clear location cache
32
- */
33
- clearLocationCache(): Promise<any>;
34
- /**
35
- * Get performance statistics
36
- */
37
- getLocationPerformanceStats(): Promise<any>;
38
- }
39
- //# sourceMappingURL=LocationService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LocationService.d.ts","sourceRoot":"","sources":["../../../../src/core/locations/LocationService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACG,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAkB9F;;OAEG;IACG,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAShE;;OAEG;IACG,iBAAiB,CACrB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,WAAW,GAAE,MAAc,EAC3B,KAAK,GAAE,MAAW,EAClB,IAAI,GAAE,MAAU,GACf,OAAO,CAAC,GAAG,CAAC;IAiBf;;OAEG;IACG,mBAAmB,CACvB,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,MAAW,EAClB,IAAI,GAAE,MAAU,EAChB,IAAI,CAAC,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,GAAG,CAAC;IAkBf;;OAEG;IACG,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC;IAStC;;OAEG;IACG,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC;IAS3C;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC;IASxC;;OAEG;IACG,2BAA2B,IAAI,OAAO,CAAC,GAAG,CAAC;CAQlD"}