theragist-ts 1.0.47 → 1.0.49

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.
@@ -9,6 +9,7 @@ export interface AdminAuthUser {
9
9
  avatarUrl: string;
10
10
  isEmailVerified: boolean;
11
11
  roles: string[];
12
+ effectivePermissions: AdminPermissionRecord[];
12
13
  }
13
14
  export interface AdminSession {
14
15
  accessToken: string;
@@ -57,11 +58,20 @@ export interface AdminProfileResponse {
57
58
  lastActiveAt: string;
58
59
  createdAt: string;
59
60
  permissions: AdminPermissions | undefined;
61
+ effectivePermissions: AdminPermissionRecord[];
60
62
  }
61
63
  export interface ModulePermission {
62
64
  view: boolean;
63
65
  edit: boolean;
64
66
  delete: boolean;
67
+ manage: boolean;
68
+ suspend: boolean;
69
+ warn: boolean;
70
+ message: boolean;
71
+ approve: boolean;
72
+ moderate: boolean;
73
+ refund: boolean;
74
+ export: boolean;
65
75
  }
66
76
  export interface AdminPermissions {
67
77
  dashboard: ModulePermission | undefined;
@@ -74,6 +84,17 @@ export interface AdminPermissions {
74
84
  settings: ModulePermission | undefined;
75
85
  referrals: ModulePermission | undefined;
76
86
  notifications: ModulePermission | undefined;
87
+ groups: ModulePermission | undefined;
88
+ admins: ModulePermission | undefined;
89
+ alerts: ModulePermission | undefined;
90
+ sessions: ModulePermission | undefined;
91
+ communities: ModulePermission | undefined;
92
+ support: ModulePermission | undefined;
93
+ soundscapes: ModulePermission | undefined;
94
+ badges: ModulePermission | undefined;
95
+ moods: ModulePermission | undefined;
96
+ bundles: ModulePermission | undefined;
97
+ lookupData: ModulePermission | undefined;
77
98
  }
78
99
  export interface AdminUser {
79
100
  id: string;
@@ -97,6 +118,7 @@ export interface AdminUserDetail {
97
118
  permissions: AdminPermissions | undefined;
98
119
  activityLog: AuditLogEntry[];
99
120
  roles: string[];
121
+ effectivePermissions: AdminPermissionRecord[];
100
122
  }
101
123
  export interface ListAdminUsersRequest {
102
124
  pagination: BaseListRequest | undefined;
@@ -112,6 +134,8 @@ export interface CreateAdminRequest {
112
134
  fullName: string;
113
135
  role: string;
114
136
  permissions: AdminPermissions | undefined;
137
+ roles: string[];
138
+ permissionSelections: AdminPermissionSelection[];
115
139
  }
116
140
  export interface CreateAdminResponse {
117
141
  id: string;
@@ -121,16 +145,20 @@ export interface CreateAdminResponse {
121
145
  status: string;
122
146
  invitedAt: string;
123
147
  invitedBy: string;
148
+ roles: string[];
149
+ effectivePermissions: AdminPermissionRecord[];
124
150
  }
125
151
  export interface UpdateAdminPermissionsRequest {
126
152
  id: string;
127
153
  permissions: AdminPermissions | undefined;
154
+ permissionSelections: AdminPermissionSelection[];
128
155
  }
129
156
  export interface UpdateAdminPermissionsResponse {
130
157
  id: string;
131
158
  permissions: AdminPermissions | undefined;
132
159
  updatedAt: string;
133
160
  updatedBy: string;
161
+ effectivePermissions: AdminPermissionRecord[];
134
162
  }
135
163
  export interface UpdateAdminRoleRequest {
136
164
  id: string;
@@ -141,6 +169,8 @@ export interface UpdateAdminRoleResponse {
141
169
  role: string;
142
170
  updatedAt: string;
143
171
  updatedBy: string;
172
+ effectivePermissions: AdminPermissionRecord[];
173
+ roles: string[];
144
174
  }
145
175
  export interface RemoveAdminRequest {
146
176
  id: string;
@@ -193,6 +223,11 @@ export interface AdminPermissionRecord {
193
223
  action: string;
194
224
  description: string;
195
225
  }
226
+ export interface AdminPermissionSelection {
227
+ id: string;
228
+ module: string;
229
+ action: string;
230
+ }
196
231
  export interface ListAdminPermissionsRequest {
197
232
  pagination: BaseListRequest | undefined;
198
233
  module: string;
@@ -211,6 +246,8 @@ export interface AdminAccessProfile {
211
246
  roles: string[];
212
247
  effectivePermissions: AdminPermissionRecord[];
213
248
  overrides: AdminPermissionOverride[];
249
+ templatePermissions: AdminPermissionRecord[];
250
+ directPermissions: AdminPermissionRecord[];
214
251
  }
215
252
  export interface UpdateAdminRolesRequest {
216
253
  id: string;
@@ -221,18 +258,21 @@ export interface UpdateAdminRolesResponse {
221
258
  roles: string[];
222
259
  updatedAt: string;
223
260
  updatedBy: string;
261
+ effectivePermissions: AdminPermissionRecord[];
224
262
  }
225
263
  export interface SetAdminPermissionOverrideRequest {
226
264
  id: string;
227
265
  module: string;
228
266
  action: string;
229
267
  granted: boolean;
268
+ permissionId: string;
230
269
  }
231
270
  export interface SetAdminPermissionOverrideResponse {
232
271
  id: string;
233
272
  override: AdminPermissionOverride | undefined;
234
273
  updatedAt: string;
235
274
  updatedBy: string;
275
+ effectivePermissions: AdminPermissionRecord[];
236
276
  }
237
277
  export interface ClearAdminPermissionOverridesRequest {
238
278
  id: string;
@@ -242,6 +282,7 @@ export interface ClearAdminPermissionOverridesResponse {
242
282
  cleared: boolean;
243
283
  updatedAt: string;
244
284
  updatedBy: string;
285
+ effectivePermissions: AdminPermissionRecord[];
245
286
  }
246
287
  export interface AdminAppSettingItem {
247
288
  category: string;
@@ -368,16 +409,66 @@ export interface AdminNotification {
368
409
  metadata: {
369
410
  [key: string]: any;
370
411
  } | undefined;
412
+ status: string;
413
+ occurrenceCount: number;
414
+ lastSeenAt: string;
415
+ resolvedAt: string;
416
+ sourceType: string;
417
+ sourceRef: string;
418
+ isRead: boolean;
371
419
  }
372
420
  export interface ListAdminNotificationsRequest {
373
421
  pagination: BaseListRequest | undefined;
374
422
  limit: number;
375
423
  priority: string;
424
+ status: string;
376
425
  }
377
426
  export interface ListAdminNotificationsResponse {
378
427
  notifications: AdminNotification[];
379
428
  total: number;
380
429
  }
430
+ export interface AdminInAppNotification {
431
+ id: string;
432
+ title: string;
433
+ body: string;
434
+ category: string;
435
+ type: string;
436
+ data: {
437
+ [key: string]: any;
438
+ } | undefined;
439
+ deepLink: string;
440
+ actionLabel: string;
441
+ imageUrl: string;
442
+ isRead: boolean;
443
+ occurrenceCount: number;
444
+ createdAt: string;
445
+ lastSeenAt: string;
446
+ updatedAt: string;
447
+ readAt: string;
448
+ }
449
+ export interface ListAdminInAppNotificationsRequest {
450
+ pagination: BaseListRequest | undefined;
451
+ isRead: string;
452
+ category: string;
453
+ }
454
+ export interface ListAdminInAppNotificationsResponse {
455
+ notifications: AdminInAppNotification[];
456
+ }
457
+ export interface MarkAdminInAppNotificationReadRequest {
458
+ notificationId: string;
459
+ }
460
+ export interface MarkAdminInAppNotificationReadResponse {
461
+ notificationId: string;
462
+ isRead: boolean;
463
+ }
464
+ export interface MarkAllAdminInAppNotificationsReadRequest {
465
+ }
466
+ export interface MarkAllAdminInAppNotificationsReadResponse {
467
+ updatedCount: number;
468
+ }
469
+ export interface GetAdminInAppUnreadCountResponse {
470
+ unreadCount: number;
471
+ }
381
472
  export interface AdminManagedUser {
382
473
  id: string;
383
474
  username: string;
@@ -2933,6 +3024,7 @@ export interface AdminSeason {
2933
3024
  description: string;
2934
3025
  promptExample: string;
2935
3026
  createdAt: string;
3027
+ themeColor: string;
2936
3028
  }
2937
3029
  export interface AdminListSeasonsRequest {
2938
3030
  pagination: BaseListRequest | undefined;
@@ -2950,6 +3042,7 @@ export interface AdminCreateSeasonRequest {
2950
3042
  corePosture: string;
2951
3043
  description: string;
2952
3044
  promptExample: string;
3045
+ themeColor: string;
2953
3046
  }
2954
3047
  export interface AdminUpdateSeasonRequest {
2955
3048
  id: string;
@@ -2957,6 +3050,8 @@ export interface AdminUpdateSeasonRequest {
2957
3050
  corePosture: string;
2958
3051
  description: string;
2959
3052
  promptExample: string;
3053
+ themeColor: string;
3054
+ slug: string;
2960
3055
  }
2961
3056
  export interface AdminSeasonResponse {
2962
3057
  id: string;
@@ -3488,6 +3583,7 @@ export declare const AdminRoleRecord: MessageFns<AdminRoleRecord>;
3488
3583
  export declare const ListAdminRolesRequest: MessageFns<ListAdminRolesRequest>;
3489
3584
  export declare const ListAdminRolesResponse: MessageFns<ListAdminRolesResponse>;
3490
3585
  export declare const AdminPermissionRecord: MessageFns<AdminPermissionRecord>;
3586
+ export declare const AdminPermissionSelection: MessageFns<AdminPermissionSelection>;
3491
3587
  export declare const ListAdminPermissionsRequest: MessageFns<ListAdminPermissionsRequest>;
3492
3588
  export declare const ListAdminPermissionsResponse: MessageFns<ListAdminPermissionsResponse>;
3493
3589
  export declare const AdminPermissionOverride: MessageFns<AdminPermissionOverride>;
@@ -3515,6 +3611,14 @@ export declare const UserActivityResponse: MessageFns<UserActivityResponse>;
3515
3611
  export declare const AdminNotification: MessageFns<AdminNotification>;
3516
3612
  export declare const ListAdminNotificationsRequest: MessageFns<ListAdminNotificationsRequest>;
3517
3613
  export declare const ListAdminNotificationsResponse: MessageFns<ListAdminNotificationsResponse>;
3614
+ export declare const AdminInAppNotification: MessageFns<AdminInAppNotification>;
3615
+ export declare const ListAdminInAppNotificationsRequest: MessageFns<ListAdminInAppNotificationsRequest>;
3616
+ export declare const ListAdminInAppNotificationsResponse: MessageFns<ListAdminInAppNotificationsResponse>;
3617
+ export declare const MarkAdminInAppNotificationReadRequest: MessageFns<MarkAdminInAppNotificationReadRequest>;
3618
+ export declare const MarkAdminInAppNotificationReadResponse: MessageFns<MarkAdminInAppNotificationReadResponse>;
3619
+ export declare const MarkAllAdminInAppNotificationsReadRequest: MessageFns<MarkAllAdminInAppNotificationsReadRequest>;
3620
+ export declare const MarkAllAdminInAppNotificationsReadResponse: MessageFns<MarkAllAdminInAppNotificationsReadResponse>;
3621
+ export declare const GetAdminInAppUnreadCountResponse: MessageFns<GetAdminInAppUnreadCountResponse>;
3518
3622
  export declare const AdminManagedUser: MessageFns<AdminManagedUser>;
3519
3623
  export declare const ListManagedUsersRequest: MessageFns<ListManagedUsersRequest>;
3520
3624
  export declare const ListManagedUsersResponse: MessageFns<ListManagedUsersResponse>;