theragist-ts 1.0.11 → 1.0.13

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.
@@ -0,0 +1,1253 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { BaseListRequest } from "../common";
3
+ export declare const protobufPackage = "pb";
4
+ export interface AdminAuthUser {
5
+ id: string;
6
+ email: string;
7
+ fullName: string;
8
+ role: string;
9
+ avatarUrl: string;
10
+ isEmailVerified: boolean;
11
+ roles: string[];
12
+ }
13
+ export interface AdminSession {
14
+ accessToken: string;
15
+ refreshToken: string;
16
+ expiresAt: string;
17
+ }
18
+ export interface AdminLoginRequest {
19
+ email: string;
20
+ password: string;
21
+ rememberMe: boolean;
22
+ }
23
+ export interface AdminLoginResponse {
24
+ admin: AdminAuthUser | undefined;
25
+ session: AdminSession | undefined;
26
+ }
27
+ export interface AdminForgotPasswordRequest {
28
+ email: string;
29
+ }
30
+ export interface AdminResetPasswordRequest {
31
+ token: string;
32
+ newPassword: string;
33
+ }
34
+ export interface AdminLogoutRequest {
35
+ refreshToken: string;
36
+ }
37
+ export interface ModulePermission {
38
+ view: boolean;
39
+ edit: boolean;
40
+ delete: boolean;
41
+ }
42
+ export interface AdminPermissions {
43
+ dashboard: ModulePermission | undefined;
44
+ users: ModulePermission | undefined;
45
+ contentModeration: ModulePermission | undefined;
46
+ roomsGroups: ModulePermission | undefined;
47
+ therapists: ModulePermission | undefined;
48
+ payments: ModulePermission | undefined;
49
+ analytics: ModulePermission | undefined;
50
+ settings: ModulePermission | undefined;
51
+ referrals: ModulePermission | undefined;
52
+ }
53
+ export interface AdminUser {
54
+ id: string;
55
+ fullName: string;
56
+ email: string;
57
+ role: string;
58
+ status: string;
59
+ lastActiveAt: string;
60
+ avatarUrl: string;
61
+ initials: string;
62
+ createdAt: string;
63
+ }
64
+ export interface AdminUserDetail {
65
+ id: string;
66
+ fullName: string;
67
+ email: string;
68
+ role: string;
69
+ status: string;
70
+ lastActiveAt: string;
71
+ createdAt: string;
72
+ permissions: AdminPermissions | undefined;
73
+ activityLog: AuditLogEntry[];
74
+ roles: string[];
75
+ }
76
+ export interface ListAdminUsersRequest {
77
+ pagination: BaseListRequest | undefined;
78
+ role: string;
79
+ status: string;
80
+ accountType: string;
81
+ }
82
+ export interface ListAdminUsersResponse {
83
+ admins: AdminUser[];
84
+ }
85
+ export interface CreateAdminRequest {
86
+ email: string;
87
+ fullName: string;
88
+ role: string;
89
+ permissions: AdminPermissions | undefined;
90
+ }
91
+ export interface CreateAdminResponse {
92
+ id: string;
93
+ email: string;
94
+ fullName: string;
95
+ role: string;
96
+ status: string;
97
+ invitedAt: string;
98
+ invitedBy: string;
99
+ }
100
+ export interface UpdateAdminPermissionsRequest {
101
+ id: string;
102
+ permissions: AdminPermissions | undefined;
103
+ }
104
+ export interface UpdateAdminPermissionsResponse {
105
+ id: string;
106
+ permissions: AdminPermissions | undefined;
107
+ updatedAt: string;
108
+ updatedBy: string;
109
+ }
110
+ export interface UpdateAdminRoleRequest {
111
+ id: string;
112
+ role: string;
113
+ }
114
+ export interface UpdateAdminRoleResponse {
115
+ id: string;
116
+ role: string;
117
+ updatedAt: string;
118
+ updatedBy: string;
119
+ }
120
+ export interface RemoveAdminRequest {
121
+ id: string;
122
+ reason: string;
123
+ revokeAccess: boolean;
124
+ }
125
+ export interface RemoveAdminResponse {
126
+ id: string;
127
+ removed: boolean;
128
+ removedAt: string;
129
+ removedBy: string;
130
+ }
131
+ export interface AuditLogEntry {
132
+ id: string;
133
+ adminId: string;
134
+ adminName: string;
135
+ action: string;
136
+ description: string;
137
+ targetType: string;
138
+ targetId: string;
139
+ ipAddress: string;
140
+ timestamp: string;
141
+ }
142
+ export interface ListAuditLogsRequest {
143
+ pagination: BaseListRequest | undefined;
144
+ adminId: string;
145
+ action: string;
146
+ from: string;
147
+ to: string;
148
+ }
149
+ export interface ListAuditLogsResponse {
150
+ logs: AuditLogEntry[];
151
+ }
152
+ export interface DashboardMetric {
153
+ value: number;
154
+ delta: number;
155
+ deltaLabel: string;
156
+ }
157
+ export interface DashboardOverviewRequest {
158
+ period: string;
159
+ }
160
+ export interface DashboardOverviewResponse {
161
+ activeUsers: DashboardMetric | undefined;
162
+ activePosts: DashboardMetric | undefined;
163
+ reportsToday: DashboardMetric | undefined;
164
+ autoHiddenContent: DashboardMetric | undefined;
165
+ counsellingSessions: DashboardMetric | undefined;
166
+ enterpriseOrgs: DashboardMetric | undefined;
167
+ period: string;
168
+ generatedAt: string;
169
+ }
170
+ export interface UserActivityRequest {
171
+ period: string;
172
+ metric: string;
173
+ }
174
+ export interface UserActivityDataPoint {
175
+ date: string;
176
+ activeUsers: number;
177
+ posts: number;
178
+ }
179
+ export interface UserActivityResponse {
180
+ period: string;
181
+ dataPoints: UserActivityDataPoint[];
182
+ }
183
+ export interface AdminNotification {
184
+ id: string;
185
+ title: string;
186
+ priority: string;
187
+ category: string;
188
+ createdAt: string;
189
+ }
190
+ export interface ListAdminNotificationsRequest {
191
+ limit: number;
192
+ priority: string;
193
+ }
194
+ export interface ListAdminNotificationsResponse {
195
+ notifications: AdminNotification[];
196
+ total: number;
197
+ }
198
+ export interface AdminManagedUser {
199
+ id: string;
200
+ username: string;
201
+ initials: string;
202
+ role: string;
203
+ status: string;
204
+ organization: string;
205
+ registeredAt: string;
206
+ warnings: number;
207
+ }
208
+ export interface ListManagedUsersRequest {
209
+ pagination: BaseListRequest | undefined;
210
+ search: string;
211
+ role: string;
212
+ status: string;
213
+ organization: string;
214
+ sortBy: string;
215
+ sortOrder: string;
216
+ }
217
+ export interface ListManagedUsersResponse {
218
+ users: AdminManagedUser[];
219
+ }
220
+ export interface ManagedUserDetail {
221
+ id: string;
222
+ username: string;
223
+ fullName: string;
224
+ email: string;
225
+ role: string;
226
+ status: string;
227
+ organization: string;
228
+ registeredAt: string;
229
+ lastActiveAt: string;
230
+ warnings: number;
231
+ gender: string;
232
+ pronouns: string;
233
+ birthday: string;
234
+ avatarUrl: string;
235
+ avatarEmoji: string;
236
+ onboardingStatus: string;
237
+ totalPosts: number;
238
+ totalComments: number;
239
+ totalReports: number;
240
+ walletBalance: number;
241
+ }
242
+ export interface SuspendUserRequest {
243
+ id: string;
244
+ reason: string;
245
+ duration: string;
246
+ notifyUser: boolean;
247
+ }
248
+ export interface SuspendUserResponse {
249
+ id: string;
250
+ status: string;
251
+ suspendedAt: string;
252
+ suspendedUntil: string;
253
+ reason: string;
254
+ }
255
+ export interface UnsuspendUserResponse {
256
+ id: string;
257
+ status: string;
258
+ unsuspendedAt: string;
259
+ }
260
+ export interface BanUserRequest {
261
+ id: string;
262
+ reason: string;
263
+ notifyUser: boolean;
264
+ }
265
+ export interface BanUserResponse {
266
+ id: string;
267
+ status: string;
268
+ bannedAt: string;
269
+ reason: string;
270
+ }
271
+ export interface IssueWarningRequest {
272
+ id: string;
273
+ reason: string;
274
+ severity: string;
275
+ notifyUser: boolean;
276
+ }
277
+ export interface IssueWarningResponse {
278
+ id: string;
279
+ userId: string;
280
+ reason: string;
281
+ severity: string;
282
+ issuedAt: string;
283
+ issuedBy: string;
284
+ }
285
+ export interface WarningIssuedBy {
286
+ id: string;
287
+ fullName: string;
288
+ }
289
+ export interface UserWarning {
290
+ id: string;
291
+ reason: string;
292
+ severity: string;
293
+ issuedAt: string;
294
+ issuedBy: WarningIssuedBy | undefined;
295
+ }
296
+ export interface ListUserWarningsResponse {
297
+ warnings: UserWarning[];
298
+ total: number;
299
+ }
300
+ export interface UserStatsResponse {
301
+ totalUsers: number;
302
+ activeUsers: number;
303
+ suspendedUsers: number;
304
+ newUsersLast7Days: number;
305
+ }
306
+ export interface AdminTherapist {
307
+ id: string;
308
+ fullName: string;
309
+ initials: string;
310
+ rating: number;
311
+ totalSessions: number;
312
+ status: string;
313
+ specializations: string[];
314
+ joinedAt: string;
315
+ avatarUrl: string;
316
+ }
317
+ export interface ListAdminTherapistsRequest {
318
+ pagination: BaseListRequest | undefined;
319
+ search: string;
320
+ status: string;
321
+ specialization: string;
322
+ sortBy: string;
323
+ sortOrder: string;
324
+ }
325
+ export interface ListAdminTherapistsResponse {
326
+ therapists: AdminTherapist[];
327
+ }
328
+ export interface AdminTherapistDetail {
329
+ id: string;
330
+ userId: string;
331
+ fullName: string;
332
+ email: string;
333
+ phone: string;
334
+ rating: number;
335
+ totalSessions: number;
336
+ status: string;
337
+ specializations: string[];
338
+ modalities: string[];
339
+ experienceLevel: string;
340
+ licenseNumber: string;
341
+ licenseState: string;
342
+ education: string;
343
+ bio: string;
344
+ timeZone: string;
345
+ kycStatus: string;
346
+ kycVerifiedAt: string;
347
+ joinedAt: string;
348
+ lastActiveAt: string;
349
+ avatarUrl: string;
350
+ }
351
+ export interface TherapistStatsResponse {
352
+ activeTherapists: number;
353
+ activeTherapistsDelta: number;
354
+ sessionsBooked: number;
355
+ sessionsBookedDelta: number;
356
+ avgRating: number;
357
+ avgRatingDelta: number;
358
+ }
359
+ export interface UpdateTherapistStatusRequest {
360
+ id: string;
361
+ status: string;
362
+ reason: string;
363
+ notifyTherapist: boolean;
364
+ }
365
+ export interface UpdateTherapistStatusResponse {
366
+ id: string;
367
+ status: string;
368
+ reason: string;
369
+ updatedAt: string;
370
+ }
371
+ export interface TherapistSession {
372
+ id: string;
373
+ clientId: string;
374
+ clientName: string;
375
+ status: string;
376
+ scheduledAt: string;
377
+ duration: number;
378
+ }
379
+ export interface ListTherapistSessionsRequest {
380
+ id: string;
381
+ pagination: BaseListRequest | undefined;
382
+ status: string;
383
+ from: string;
384
+ to: string;
385
+ }
386
+ export interface ListTherapistSessionsResponse {
387
+ sessions: TherapistSession[];
388
+ }
389
+ export interface KycTherapist {
390
+ id: string;
391
+ fullName: string;
392
+ email: string;
393
+ kycStatus: string;
394
+ submittedAt: string;
395
+ }
396
+ export interface ListKycTherapistsRequest {
397
+ pagination: BaseListRequest | undefined;
398
+ status: string;
399
+ }
400
+ export interface ListKycTherapistsResponse {
401
+ therapists: KycTherapist[];
402
+ }
403
+ export interface KycDocumentDecision {
404
+ documentId: string;
405
+ status: string;
406
+ }
407
+ export interface VerifyKycRequest {
408
+ id: string;
409
+ decision: string;
410
+ notes: string;
411
+ documents: KycDocumentDecision[];
412
+ }
413
+ export interface VerifyKycResponse {
414
+ id: string;
415
+ kycStatus: string;
416
+ verifiedAt: string;
417
+ verifiedBy: string;
418
+ }
419
+ export interface ContentModerationStatsResponse {
420
+ pendingReview: number;
421
+ autoHidden: number;
422
+ totalReports: number;
423
+ restored: number;
424
+ }
425
+ export interface ModeratedContent {
426
+ id: string;
427
+ type: string;
428
+ roomLocation: string;
429
+ reports: number;
430
+ reportPercent: number;
431
+ status: string;
432
+ timestamp: string;
433
+ authorId: string;
434
+ authorUsername: string;
435
+ contentPreview: string;
436
+ }
437
+ export interface ListModeratedContentRequest {
438
+ pagination: BaseListRequest | undefined;
439
+ search: string;
440
+ status: string;
441
+ type: string;
442
+ sortBy: string;
443
+ sortOrder: string;
444
+ }
445
+ export interface ListModeratedContentResponse {
446
+ content: ModeratedContent[];
447
+ }
448
+ export interface ContentAuthor {
449
+ id: string;
450
+ username: string;
451
+ fullName: string;
452
+ role: string;
453
+ warnings: number;
454
+ }
455
+ export interface ContentBody {
456
+ text: string;
457
+ images: string[];
458
+ }
459
+ export interface ReportDetail {
460
+ id: string;
461
+ reportedBy: string;
462
+ reason: string;
463
+ reportedAt: string;
464
+ }
465
+ export interface ModerationHistoryEntry {
466
+ action: string;
467
+ performedAt: string;
468
+ performedBy: string;
469
+ reason: string;
470
+ }
471
+ export interface ContentDetail {
472
+ id: string;
473
+ type: string;
474
+ roomLocation: string;
475
+ reports: number;
476
+ reportPercent: number;
477
+ status: string;
478
+ timestamp: string;
479
+ author: ContentAuthor | undefined;
480
+ content: ContentBody | undefined;
481
+ reportDetails: ReportDetail[];
482
+ moderationHistory: ModerationHistoryEntry[];
483
+ }
484
+ export interface RestoreContentRequest {
485
+ id: string;
486
+ reason: string;
487
+ }
488
+ export interface RestoreContentResponse {
489
+ id: string;
490
+ status: string;
491
+ restoredAt: string;
492
+ restoredBy: string;
493
+ reason: string;
494
+ }
495
+ export interface RemoveContentRequest {
496
+ id: string;
497
+ reason: string;
498
+ warnAuthor: boolean;
499
+ notifyAuthor: boolean;
500
+ }
501
+ export interface RemoveContentResponse {
502
+ id: string;
503
+ status: string;
504
+ removedAt: string;
505
+ removedBy: string;
506
+ reason: string;
507
+ authorWarned: boolean;
508
+ }
509
+ export interface BulkContentActionRequest {
510
+ contentIds: string[];
511
+ action: string;
512
+ reason: string;
513
+ warnAuthors: boolean;
514
+ notifyAuthors: boolean;
515
+ }
516
+ export interface BulkContentResult {
517
+ id: string;
518
+ status: string;
519
+ success: boolean;
520
+ }
521
+ export interface BulkContentActionResponse {
522
+ processed: number;
523
+ failed: number;
524
+ results: BulkContentResult[];
525
+ }
526
+ export interface ContentReport {
527
+ id: string;
528
+ contentId: string;
529
+ contentType: string;
530
+ reportedBy: ContentAuthor | undefined;
531
+ reason: string;
532
+ status: string;
533
+ reportedAt: string;
534
+ }
535
+ export interface ListContentReportsRequest {
536
+ pagination: BaseListRequest | undefined;
537
+ status: string;
538
+ contentType: string;
539
+ }
540
+ export interface ListContentReportsResponse {
541
+ reports: ContentReport[];
542
+ }
543
+ export interface ModerationSettings {
544
+ autoHideThresholdPercent: number;
545
+ autoHideMinReports: number;
546
+ notifyAdminOnHighReport: boolean;
547
+ highReportThreshold: number;
548
+ }
549
+ export interface UpdateModerationSettingsResponse {
550
+ autoHideThresholdPercent: number;
551
+ autoHideMinReports: number;
552
+ notifyAdminOnHighReport: boolean;
553
+ highReportThreshold: number;
554
+ updatedAt: string;
555
+ updatedBy: string;
556
+ }
557
+ export interface GroupStats {
558
+ totalGroups: number;
559
+ activeGroups: number;
560
+ totalMembers: number;
561
+ reportedGroups: number;
562
+ }
563
+ export interface GroupCreator {
564
+ id: string;
565
+ username: string;
566
+ }
567
+ export interface AdminGroup {
568
+ id: string;
569
+ name: string;
570
+ type: string;
571
+ description: string;
572
+ privacy: string;
573
+ status: string;
574
+ memberCount: number;
575
+ postCount: number;
576
+ reportCount: number;
577
+ imageUrl: string;
578
+ coverImageUrl: string;
579
+ createdAt: string;
580
+ createdBy: GroupCreator | undefined;
581
+ communityId: string;
582
+ communityName: string;
583
+ }
584
+ export interface AdminListGroupsRequest {
585
+ pagination: BaseListRequest | undefined;
586
+ search: string;
587
+ type: string;
588
+ status: string;
589
+ privacy: string;
590
+ sortBy: string;
591
+ sortOrder: string;
592
+ }
593
+ export interface AdminListGroupsResponse {
594
+ groups: AdminGroup[];
595
+ }
596
+ export interface GroupRule {
597
+ title: string;
598
+ description: string;
599
+ }
600
+ export interface GroupModerator {
601
+ id: string;
602
+ username: string;
603
+ role: string;
604
+ joinedAt: string;
605
+ }
606
+ export interface GroupDetail {
607
+ id: string;
608
+ name: string;
609
+ type: string;
610
+ about: string;
611
+ description: string;
612
+ privacy: string;
613
+ status: string;
614
+ rules: GroupRule[];
615
+ memberCount: number;
616
+ postCount: number;
617
+ reportCount: number;
618
+ imageUrl: string;
619
+ coverImageUrl: string;
620
+ tags: string[];
621
+ createdAt: string;
622
+ updatedAt: string;
623
+ createdBy: GroupCreator | undefined;
624
+ moderators: GroupModerator[];
625
+ }
626
+ export interface AdminCreateGroupRequest {
627
+ name: string;
628
+ type: string;
629
+ description: string;
630
+ communityId: string;
631
+ categoryId: string;
632
+ isPrivate: boolean;
633
+ avatarUrl: string;
634
+ tags: string[];
635
+ rules: GroupRule | undefined;
636
+ allowInvites: boolean;
637
+ requireApproval: boolean;
638
+ maxMembers: number;
639
+ isTemporary: boolean;
640
+ expiresAt: number;
641
+ moderators: GroupModerator[];
642
+ }
643
+ export interface AdminCreateGroupResponse {
644
+ id: string;
645
+ name: string;
646
+ type: string;
647
+ privacy: string;
648
+ status: string;
649
+ createdAt: string;
650
+ createdBy: string;
651
+ }
652
+ export interface AdminUpdateGroupRequest {
653
+ id: string;
654
+ name: string;
655
+ description: string;
656
+ about: string;
657
+ privacy: string;
658
+ rules: GroupRule[];
659
+ tags: string[];
660
+ }
661
+ export interface AdminUpdateGroupResponse {
662
+ id: string;
663
+ name: string;
664
+ status: string;
665
+ updatedAt: string;
666
+ updatedBy: string;
667
+ }
668
+ export interface SuspendGroupRequest {
669
+ id: string;
670
+ reason: string;
671
+ notifyMembers: boolean;
672
+ }
673
+ export interface SuspendGroupResponse {
674
+ id: string;
675
+ status: string;
676
+ suspendedAt: string;
677
+ reason: string;
678
+ }
679
+ export interface ReactivateGroupResponse {
680
+ id: string;
681
+ status: string;
682
+ reactivatedAt: string;
683
+ }
684
+ export interface AdminDeleteGroupRequest {
685
+ id: string;
686
+ reason: string;
687
+ notifyMembers: boolean;
688
+ }
689
+ export interface AdminDeleteGroupResponse {
690
+ id: string;
691
+ deleted: boolean;
692
+ deletedAt: string;
693
+ }
694
+ export interface AdminGroupMember {
695
+ id: string;
696
+ username: string;
697
+ fullName: string;
698
+ role: string;
699
+ email: string;
700
+ lastActiveAt: string;
701
+ }
702
+ export interface AdminListGroupMembersRequest {
703
+ id: string;
704
+ pagination: BaseListRequest | undefined;
705
+ role: string;
706
+ search: string;
707
+ }
708
+ export interface AdminListGroupMembersResponse {
709
+ members: AdminGroupMember[];
710
+ }
711
+ export interface UpdateMemberRoleRequest {
712
+ id: string;
713
+ userId: string;
714
+ role: string;
715
+ }
716
+ export interface UpdateMemberRoleResponse {
717
+ userId: string;
718
+ groupId: string;
719
+ role: string;
720
+ updatedAt: string;
721
+ }
722
+ export interface RemoveMemberRequest {
723
+ id: string;
724
+ userId: string;
725
+ reason: string;
726
+ notifyUser: boolean;
727
+ }
728
+ export interface RemoveMemberResponse {
729
+ userId: string;
730
+ groupId: string;
731
+ removed: boolean;
732
+ removedAt: string;
733
+ }
734
+ export interface WalletStatsResponse {
735
+ totalWallets: number;
736
+ totalWalletsDelta: number;
737
+ totalTcBalance: number;
738
+ totalTcBalanceDelta: number;
739
+ activeWallets: number;
740
+ activeWalletsDelta: number;
741
+ suspendedWallets: number;
742
+ suspendedWalletsDelta: number;
743
+ }
744
+ export interface AdminWallet {
745
+ id: string;
746
+ userId: string;
747
+ username: string;
748
+ fullName: string;
749
+ initials: string;
750
+ balance: number;
751
+ totalEarned: number;
752
+ totalSpent: number;
753
+ lastTransaction: string;
754
+ status: string;
755
+ }
756
+ export interface ListWalletsRequest {
757
+ pagination: BaseListRequest | undefined;
758
+ search: string;
759
+ status: string;
760
+ sortBy: string;
761
+ sortOrder: string;
762
+ }
763
+ export interface ListWalletsResponse {
764
+ wallets: AdminWallet[];
765
+ }
766
+ export interface WalletTransaction {
767
+ id: string;
768
+ type: string;
769
+ amount: number;
770
+ description: string;
771
+ createdAt: string;
772
+ }
773
+ export interface WalletDetail {
774
+ id: string;
775
+ userId: string;
776
+ username: string;
777
+ fullName: string;
778
+ balance: number;
779
+ totalEarned: number;
780
+ totalSpent: number;
781
+ status: string;
782
+ createdAt: string;
783
+ lastTransactionAt: string;
784
+ recentTransactions: WalletTransaction[];
785
+ }
786
+ export interface CreditDebitRequest {
787
+ id: string;
788
+ amount: number;
789
+ reason: string;
790
+ notifyUser: boolean;
791
+ }
792
+ export interface CreditDebitResponse {
793
+ id: string;
794
+ walletId: string;
795
+ type: string;
796
+ amount: number;
797
+ newBalance: number;
798
+ reason: string;
799
+ performedBy: string;
800
+ createdAt: string;
801
+ }
802
+ export interface SuspendWalletRequest {
803
+ id: string;
804
+ reason: string;
805
+ notifyUser: boolean;
806
+ }
807
+ export interface SuspendWalletResponse {
808
+ id: string;
809
+ status: string;
810
+ suspendedAt: string;
811
+ reason: string;
812
+ }
813
+ export interface ReactivateWalletResponse {
814
+ id: string;
815
+ status: string;
816
+ reactivatedAt: string;
817
+ }
818
+ export interface PlatformTransaction {
819
+ id: string;
820
+ walletId: string;
821
+ userId: string;
822
+ username: string;
823
+ type: string;
824
+ amount: number;
825
+ description: string;
826
+ createdAt: string;
827
+ }
828
+ export interface AdminListTransactionsRequest {
829
+ pagination: BaseListRequest | undefined;
830
+ type: string;
831
+ userId: string;
832
+ from: string;
833
+ to: string;
834
+ sortBy: string;
835
+ sortOrder: string;
836
+ }
837
+ export interface AdminListTransactionsResponse {
838
+ transactions: PlatformTransaction[];
839
+ }
840
+ export interface AnalyticsMetric {
841
+ value: number;
842
+ delta: number;
843
+ deltaLabel: string;
844
+ }
845
+ export interface AnalyticsStatsRequest {
846
+ from: string;
847
+ to: string;
848
+ }
849
+ export interface AnalyticsStatsResponse {
850
+ totalUsers: AnalyticsMetric | undefined;
851
+ activeSessions: AnalyticsMetric | undefined;
852
+ avgEngagement: AnalyticsMetric | undefined;
853
+ revenue: AnalyticsMetric | undefined;
854
+ period: AnalyticsPeriod | undefined;
855
+ }
856
+ export interface AnalyticsPeriod {
857
+ from: string;
858
+ to: string;
859
+ }
860
+ export interface UserGrowthRequest {
861
+ from: string;
862
+ to: string;
863
+ granularity: string;
864
+ }
865
+ export interface UserGrowthDataPoint {
866
+ date: string;
867
+ newUsers: number;
868
+ activeUsers: number;
869
+ totalUsers: number;
870
+ }
871
+ export interface UserGrowthResponse {
872
+ granularity: string;
873
+ period: AnalyticsPeriod | undefined;
874
+ dataPoints: UserGrowthDataPoint[];
875
+ }
876
+ export interface EngagementRequest {
877
+ from: string;
878
+ to: string;
879
+ granularity: string;
880
+ metric: string;
881
+ }
882
+ export interface EngagementDataPoint {
883
+ date: string;
884
+ posts: number;
885
+ comments: number;
886
+ likes: number;
887
+ sessions: number;
888
+ avgSessionDuration: number;
889
+ }
890
+ export interface EngagementSummary {
891
+ totalPosts: number;
892
+ totalComments: number;
893
+ totalLikes: number;
894
+ totalSessions: number;
895
+ avgDailyActiveUsers: number;
896
+ }
897
+ export interface EngagementResponse {
898
+ granularity: string;
899
+ period: AnalyticsPeriod | undefined;
900
+ dataPoints: EngagementDataPoint[];
901
+ summary: EngagementSummary | undefined;
902
+ }
903
+ export interface ReferralAnalyticsEntry {
904
+ userId: string;
905
+ username: string;
906
+ fullName: string;
907
+ initials: string;
908
+ referralCode: string;
909
+ totalReferrals: number;
910
+ successfulReferrals: number;
911
+ conversionRate: number;
912
+ earnedTc: number;
913
+ status: string;
914
+ lastReferralAt: string;
915
+ }
916
+ export interface ListReferralAnalyticsRequest {
917
+ pagination: BaseListRequest | undefined;
918
+ search: string;
919
+ status: string;
920
+ sortBy: string;
921
+ sortOrder: string;
922
+ }
923
+ export interface ListReferralAnalyticsResponse {
924
+ referrals: ReferralAnalyticsEntry[];
925
+ }
926
+ export interface ExportReportRequest {
927
+ reportType: string;
928
+ format: string;
929
+ from: string;
930
+ to: string;
931
+ includeMetrics: string[];
932
+ }
933
+ export interface ExportReportResponse {
934
+ id: string;
935
+ reportType: string;
936
+ format: string;
937
+ status: string;
938
+ downloadUrl: string;
939
+ createdAt: string;
940
+ }
941
+ export interface RevenueDataPoint {
942
+ date: string;
943
+ subscriptions: number;
944
+ sessions: number;
945
+ tcPurchases: number;
946
+ total: number;
947
+ }
948
+ export interface RevenueResponse {
949
+ totalRevenue: number;
950
+ subscriptionRevenue: number;
951
+ sessionRevenue: number;
952
+ tcPurchaseRevenue: number;
953
+ period: AnalyticsPeriod | undefined;
954
+ dataPoints: RevenueDataPoint[];
955
+ }
956
+ export interface ReferralStatsResponse {
957
+ totalReferrals: number;
958
+ successfulReferrals: number;
959
+ conversionRate: number;
960
+ totalTcAwarded: number;
961
+ activeReferrers: number;
962
+ }
963
+ export interface ReferrerDetail {
964
+ userId: string;
965
+ username: string;
966
+ fullName: string;
967
+ email: string;
968
+ avatarUrl: string;
969
+ joinedAt: string;
970
+ lastActiveAt: string;
971
+ referralCode: string;
972
+ referralStatus: string;
973
+ stats: ReferrerStats | undefined;
974
+ rewardConfig: ReferralRewardConfig | undefined;
975
+ }
976
+ export interface ReferrerStats {
977
+ totalReferrals: AnalyticsMetric | undefined;
978
+ successfulReferrals: AnalyticsMetric | undefined;
979
+ conversionRate: AnalyticsMetric | undefined;
980
+ earnedTc: AnalyticsMetric | undefined;
981
+ }
982
+ export interface ReferralRewardConfig {
983
+ referrerReward: number;
984
+ refereeReward: number;
985
+ maxReferrals: number;
986
+ expiresAt: string;
987
+ }
988
+ export interface ReferralHistoryEntry {
989
+ id: string;
990
+ referredUserId: string;
991
+ referredUsername: string;
992
+ referredFullName: string;
993
+ status: string;
994
+ referredAt: string;
995
+ completedAt: string;
996
+ tcAwarded: number;
997
+ }
998
+ export interface ListReferralHistoryRequest {
999
+ userId: string;
1000
+ page: number;
1001
+ pageSize: number;
1002
+ status: string;
1003
+ }
1004
+ export interface ListReferralHistoryResponse {
1005
+ referrals: ReferralHistoryEntry[];
1006
+ }
1007
+ export interface DisableReferralsRequest {
1008
+ userId: string;
1009
+ reason: string;
1010
+ notifyUser: boolean;
1011
+ }
1012
+ export interface DisableReferralsResponse {
1013
+ userId: string;
1014
+ referralStatus: string;
1015
+ disabledAt: string;
1016
+ reason: string;
1017
+ disabledBy: string;
1018
+ }
1019
+ export interface EnableReferralsResponse {
1020
+ userId: string;
1021
+ referralStatus: string;
1022
+ enabledAt: string;
1023
+ enabledBy: string;
1024
+ }
1025
+ export interface EditReferralRewardsRequest {
1026
+ userId: string;
1027
+ referrerReward: number;
1028
+ refereeReward: number;
1029
+ maxReferrals: number;
1030
+ expiresAt: string;
1031
+ }
1032
+ export interface EditReferralRewardsResponse {
1033
+ userId: string;
1034
+ rewardConfig: ReferralRewardConfig | undefined;
1035
+ updatedAt: string;
1036
+ updatedBy: string;
1037
+ }
1038
+ export interface GlobalReferralSettings {
1039
+ enabled: boolean;
1040
+ defaultReferrerReward: number;
1041
+ defaultRefereeReward: number;
1042
+ defaultMaxReferrals: number;
1043
+ requireAccountVerification: boolean;
1044
+ minimumAccountAge: string;
1045
+ cooldownPeriod: string;
1046
+ updatedAt: string;
1047
+ updatedBy: string;
1048
+ }
1049
+ export interface UpdateGlobalReferralSettingsRequest {
1050
+ enabled: boolean;
1051
+ defaultReferrerReward: number;
1052
+ defaultRefereeReward: number;
1053
+ defaultMaxReferrals: number;
1054
+ requireAccountVerification: boolean;
1055
+ minimumAccountAge: string;
1056
+ cooldownPeriod: string;
1057
+ }
1058
+ export interface AddTherapistRequest {
1059
+ email: string;
1060
+ fullName: string;
1061
+ phone: string;
1062
+ specializations: string[];
1063
+ modalities: string[];
1064
+ experienceLevel: string;
1065
+ licenseNumber: string;
1066
+ licenseState: string;
1067
+ education: string;
1068
+ timeZone: string;
1069
+ }
1070
+ export interface AddTherapistResponse {
1071
+ id: string;
1072
+ userId: string;
1073
+ email: string;
1074
+ fullName: string;
1075
+ status: string;
1076
+ createdAt: string;
1077
+ }
1078
+ export declare const AdminAuthUser: MessageFns<AdminAuthUser>;
1079
+ export declare const AdminSession: MessageFns<AdminSession>;
1080
+ export declare const AdminLoginRequest: MessageFns<AdminLoginRequest>;
1081
+ export declare const AdminLoginResponse: MessageFns<AdminLoginResponse>;
1082
+ export declare const AdminForgotPasswordRequest: MessageFns<AdminForgotPasswordRequest>;
1083
+ export declare const AdminResetPasswordRequest: MessageFns<AdminResetPasswordRequest>;
1084
+ export declare const AdminLogoutRequest: MessageFns<AdminLogoutRequest>;
1085
+ export declare const ModulePermission: MessageFns<ModulePermission>;
1086
+ export declare const AdminPermissions: MessageFns<AdminPermissions>;
1087
+ export declare const AdminUser: MessageFns<AdminUser>;
1088
+ export declare const AdminUserDetail: MessageFns<AdminUserDetail>;
1089
+ export declare const ListAdminUsersRequest: MessageFns<ListAdminUsersRequest>;
1090
+ export declare const ListAdminUsersResponse: MessageFns<ListAdminUsersResponse>;
1091
+ export declare const CreateAdminRequest: MessageFns<CreateAdminRequest>;
1092
+ export declare const CreateAdminResponse: MessageFns<CreateAdminResponse>;
1093
+ export declare const UpdateAdminPermissionsRequest: MessageFns<UpdateAdminPermissionsRequest>;
1094
+ export declare const UpdateAdminPermissionsResponse: MessageFns<UpdateAdminPermissionsResponse>;
1095
+ export declare const UpdateAdminRoleRequest: MessageFns<UpdateAdminRoleRequest>;
1096
+ export declare const UpdateAdminRoleResponse: MessageFns<UpdateAdminRoleResponse>;
1097
+ export declare const RemoveAdminRequest: MessageFns<RemoveAdminRequest>;
1098
+ export declare const RemoveAdminResponse: MessageFns<RemoveAdminResponse>;
1099
+ export declare const AuditLogEntry: MessageFns<AuditLogEntry>;
1100
+ export declare const ListAuditLogsRequest: MessageFns<ListAuditLogsRequest>;
1101
+ export declare const ListAuditLogsResponse: MessageFns<ListAuditLogsResponse>;
1102
+ export declare const DashboardMetric: MessageFns<DashboardMetric>;
1103
+ export declare const DashboardOverviewRequest: MessageFns<DashboardOverviewRequest>;
1104
+ export declare const DashboardOverviewResponse: MessageFns<DashboardOverviewResponse>;
1105
+ export declare const UserActivityRequest: MessageFns<UserActivityRequest>;
1106
+ export declare const UserActivityDataPoint: MessageFns<UserActivityDataPoint>;
1107
+ export declare const UserActivityResponse: MessageFns<UserActivityResponse>;
1108
+ export declare const AdminNotification: MessageFns<AdminNotification>;
1109
+ export declare const ListAdminNotificationsRequest: MessageFns<ListAdminNotificationsRequest>;
1110
+ export declare const ListAdminNotificationsResponse: MessageFns<ListAdminNotificationsResponse>;
1111
+ export declare const AdminManagedUser: MessageFns<AdminManagedUser>;
1112
+ export declare const ListManagedUsersRequest: MessageFns<ListManagedUsersRequest>;
1113
+ export declare const ListManagedUsersResponse: MessageFns<ListManagedUsersResponse>;
1114
+ export declare const ManagedUserDetail: MessageFns<ManagedUserDetail>;
1115
+ export declare const SuspendUserRequest: MessageFns<SuspendUserRequest>;
1116
+ export declare const SuspendUserResponse: MessageFns<SuspendUserResponse>;
1117
+ export declare const UnsuspendUserResponse: MessageFns<UnsuspendUserResponse>;
1118
+ export declare const BanUserRequest: MessageFns<BanUserRequest>;
1119
+ export declare const BanUserResponse: MessageFns<BanUserResponse>;
1120
+ export declare const IssueWarningRequest: MessageFns<IssueWarningRequest>;
1121
+ export declare const IssueWarningResponse: MessageFns<IssueWarningResponse>;
1122
+ export declare const WarningIssuedBy: MessageFns<WarningIssuedBy>;
1123
+ export declare const UserWarning: MessageFns<UserWarning>;
1124
+ export declare const ListUserWarningsResponse: MessageFns<ListUserWarningsResponse>;
1125
+ export declare const UserStatsResponse: MessageFns<UserStatsResponse>;
1126
+ export declare const AdminTherapist: MessageFns<AdminTherapist>;
1127
+ export declare const ListAdminTherapistsRequest: MessageFns<ListAdminTherapistsRequest>;
1128
+ export declare const ListAdminTherapistsResponse: MessageFns<ListAdminTherapistsResponse>;
1129
+ export declare const AdminTherapistDetail: MessageFns<AdminTherapistDetail>;
1130
+ export declare const TherapistStatsResponse: MessageFns<TherapistStatsResponse>;
1131
+ export declare const UpdateTherapistStatusRequest: MessageFns<UpdateTherapistStatusRequest>;
1132
+ export declare const UpdateTherapistStatusResponse: MessageFns<UpdateTherapistStatusResponse>;
1133
+ export declare const TherapistSession: MessageFns<TherapistSession>;
1134
+ export declare const ListTherapistSessionsRequest: MessageFns<ListTherapistSessionsRequest>;
1135
+ export declare const ListTherapistSessionsResponse: MessageFns<ListTherapistSessionsResponse>;
1136
+ export declare const KycTherapist: MessageFns<KycTherapist>;
1137
+ export declare const ListKycTherapistsRequest: MessageFns<ListKycTherapistsRequest>;
1138
+ export declare const ListKycTherapistsResponse: MessageFns<ListKycTherapistsResponse>;
1139
+ export declare const KycDocumentDecision: MessageFns<KycDocumentDecision>;
1140
+ export declare const VerifyKycRequest: MessageFns<VerifyKycRequest>;
1141
+ export declare const VerifyKycResponse: MessageFns<VerifyKycResponse>;
1142
+ export declare const ContentModerationStatsResponse: MessageFns<ContentModerationStatsResponse>;
1143
+ export declare const ModeratedContent: MessageFns<ModeratedContent>;
1144
+ export declare const ListModeratedContentRequest: MessageFns<ListModeratedContentRequest>;
1145
+ export declare const ListModeratedContentResponse: MessageFns<ListModeratedContentResponse>;
1146
+ export declare const ContentAuthor: MessageFns<ContentAuthor>;
1147
+ export declare const ContentBody: MessageFns<ContentBody>;
1148
+ export declare const ReportDetail: MessageFns<ReportDetail>;
1149
+ export declare const ModerationHistoryEntry: MessageFns<ModerationHistoryEntry>;
1150
+ export declare const ContentDetail: MessageFns<ContentDetail>;
1151
+ export declare const RestoreContentRequest: MessageFns<RestoreContentRequest>;
1152
+ export declare const RestoreContentResponse: MessageFns<RestoreContentResponse>;
1153
+ export declare const RemoveContentRequest: MessageFns<RemoveContentRequest>;
1154
+ export declare const RemoveContentResponse: MessageFns<RemoveContentResponse>;
1155
+ export declare const BulkContentActionRequest: MessageFns<BulkContentActionRequest>;
1156
+ export declare const BulkContentResult: MessageFns<BulkContentResult>;
1157
+ export declare const BulkContentActionResponse: MessageFns<BulkContentActionResponse>;
1158
+ export declare const ContentReport: MessageFns<ContentReport>;
1159
+ export declare const ListContentReportsRequest: MessageFns<ListContentReportsRequest>;
1160
+ export declare const ListContentReportsResponse: MessageFns<ListContentReportsResponse>;
1161
+ export declare const ModerationSettings: MessageFns<ModerationSettings>;
1162
+ export declare const UpdateModerationSettingsResponse: MessageFns<UpdateModerationSettingsResponse>;
1163
+ export declare const GroupStats: MessageFns<GroupStats>;
1164
+ export declare const GroupCreator: MessageFns<GroupCreator>;
1165
+ export declare const AdminGroup: MessageFns<AdminGroup>;
1166
+ export declare const AdminListGroupsRequest: MessageFns<AdminListGroupsRequest>;
1167
+ export declare const AdminListGroupsResponse: MessageFns<AdminListGroupsResponse>;
1168
+ export declare const GroupRule: MessageFns<GroupRule>;
1169
+ export declare const GroupModerator: MessageFns<GroupModerator>;
1170
+ export declare const GroupDetail: MessageFns<GroupDetail>;
1171
+ export declare const AdminCreateGroupRequest: MessageFns<AdminCreateGroupRequest>;
1172
+ export declare const AdminCreateGroupResponse: MessageFns<AdminCreateGroupResponse>;
1173
+ export declare const AdminUpdateGroupRequest: MessageFns<AdminUpdateGroupRequest>;
1174
+ export declare const AdminUpdateGroupResponse: MessageFns<AdminUpdateGroupResponse>;
1175
+ export declare const SuspendGroupRequest: MessageFns<SuspendGroupRequest>;
1176
+ export declare const SuspendGroupResponse: MessageFns<SuspendGroupResponse>;
1177
+ export declare const ReactivateGroupResponse: MessageFns<ReactivateGroupResponse>;
1178
+ export declare const AdminDeleteGroupRequest: MessageFns<AdminDeleteGroupRequest>;
1179
+ export declare const AdminDeleteGroupResponse: MessageFns<AdminDeleteGroupResponse>;
1180
+ export declare const AdminGroupMember: MessageFns<AdminGroupMember>;
1181
+ export declare const AdminListGroupMembersRequest: MessageFns<AdminListGroupMembersRequest>;
1182
+ export declare const AdminListGroupMembersResponse: MessageFns<AdminListGroupMembersResponse>;
1183
+ export declare const UpdateMemberRoleRequest: MessageFns<UpdateMemberRoleRequest>;
1184
+ export declare const UpdateMemberRoleResponse: MessageFns<UpdateMemberRoleResponse>;
1185
+ export declare const RemoveMemberRequest: MessageFns<RemoveMemberRequest>;
1186
+ export declare const RemoveMemberResponse: MessageFns<RemoveMemberResponse>;
1187
+ export declare const WalletStatsResponse: MessageFns<WalletStatsResponse>;
1188
+ export declare const AdminWallet: MessageFns<AdminWallet>;
1189
+ export declare const ListWalletsRequest: MessageFns<ListWalletsRequest>;
1190
+ export declare const ListWalletsResponse: MessageFns<ListWalletsResponse>;
1191
+ export declare const WalletTransaction: MessageFns<WalletTransaction>;
1192
+ export declare const WalletDetail: MessageFns<WalletDetail>;
1193
+ export declare const CreditDebitRequest: MessageFns<CreditDebitRequest>;
1194
+ export declare const CreditDebitResponse: MessageFns<CreditDebitResponse>;
1195
+ export declare const SuspendWalletRequest: MessageFns<SuspendWalletRequest>;
1196
+ export declare const SuspendWalletResponse: MessageFns<SuspendWalletResponse>;
1197
+ export declare const ReactivateWalletResponse: MessageFns<ReactivateWalletResponse>;
1198
+ export declare const PlatformTransaction: MessageFns<PlatformTransaction>;
1199
+ export declare const AdminListTransactionsRequest: MessageFns<AdminListTransactionsRequest>;
1200
+ export declare const AdminListTransactionsResponse: MessageFns<AdminListTransactionsResponse>;
1201
+ export declare const AnalyticsMetric: MessageFns<AnalyticsMetric>;
1202
+ export declare const AnalyticsStatsRequest: MessageFns<AnalyticsStatsRequest>;
1203
+ export declare const AnalyticsStatsResponse: MessageFns<AnalyticsStatsResponse>;
1204
+ export declare const AnalyticsPeriod: MessageFns<AnalyticsPeriod>;
1205
+ export declare const UserGrowthRequest: MessageFns<UserGrowthRequest>;
1206
+ export declare const UserGrowthDataPoint: MessageFns<UserGrowthDataPoint>;
1207
+ export declare const UserGrowthResponse: MessageFns<UserGrowthResponse>;
1208
+ export declare const EngagementRequest: MessageFns<EngagementRequest>;
1209
+ export declare const EngagementDataPoint: MessageFns<EngagementDataPoint>;
1210
+ export declare const EngagementSummary: MessageFns<EngagementSummary>;
1211
+ export declare const EngagementResponse: MessageFns<EngagementResponse>;
1212
+ export declare const ReferralAnalyticsEntry: MessageFns<ReferralAnalyticsEntry>;
1213
+ export declare const ListReferralAnalyticsRequest: MessageFns<ListReferralAnalyticsRequest>;
1214
+ export declare const ListReferralAnalyticsResponse: MessageFns<ListReferralAnalyticsResponse>;
1215
+ export declare const ExportReportRequest: MessageFns<ExportReportRequest>;
1216
+ export declare const ExportReportResponse: MessageFns<ExportReportResponse>;
1217
+ export declare const RevenueDataPoint: MessageFns<RevenueDataPoint>;
1218
+ export declare const RevenueResponse: MessageFns<RevenueResponse>;
1219
+ export declare const ReferralStatsResponse: MessageFns<ReferralStatsResponse>;
1220
+ export declare const ReferrerDetail: MessageFns<ReferrerDetail>;
1221
+ export declare const ReferrerStats: MessageFns<ReferrerStats>;
1222
+ export declare const ReferralRewardConfig: MessageFns<ReferralRewardConfig>;
1223
+ export declare const ReferralHistoryEntry: MessageFns<ReferralHistoryEntry>;
1224
+ export declare const ListReferralHistoryRequest: MessageFns<ListReferralHistoryRequest>;
1225
+ export declare const ListReferralHistoryResponse: MessageFns<ListReferralHistoryResponse>;
1226
+ export declare const DisableReferralsRequest: MessageFns<DisableReferralsRequest>;
1227
+ export declare const DisableReferralsResponse: MessageFns<DisableReferralsResponse>;
1228
+ export declare const EnableReferralsResponse: MessageFns<EnableReferralsResponse>;
1229
+ export declare const EditReferralRewardsRequest: MessageFns<EditReferralRewardsRequest>;
1230
+ export declare const EditReferralRewardsResponse: MessageFns<EditReferralRewardsResponse>;
1231
+ export declare const GlobalReferralSettings: MessageFns<GlobalReferralSettings>;
1232
+ export declare const UpdateGlobalReferralSettingsRequest: MessageFns<UpdateGlobalReferralSettingsRequest>;
1233
+ export declare const AddTherapistRequest: MessageFns<AddTherapistRequest>;
1234
+ export declare const AddTherapistResponse: MessageFns<AddTherapistResponse>;
1235
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1236
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
1237
+ [K in keyof T]?: DeepPartial<T[K]>;
1238
+ } : Partial<T>;
1239
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
1240
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
1241
+ [K in keyof P]: Exact<P[K], I[K]>;
1242
+ } & {
1243
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
1244
+ };
1245
+ export interface MessageFns<T> {
1246
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
1247
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
1248
+ fromJSON(object: any): T;
1249
+ toJSON(message: T): unknown;
1250
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
1251
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
1252
+ }
1253
+ export {};