@ttt-productions/ttt-core 0.79.78 → 0.79.80

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 (84) hide show
  1. package/dist/constants/admin-labels.d.ts +12 -3
  2. package/dist/constants/admin-labels.d.ts.map +1 -1
  3. package/dist/constants/admin-labels.js +26 -14
  4. package/dist/constants/admin-labels.js.map +1 -1
  5. package/dist/constants/business-admin.d.ts +9 -0
  6. package/dist/constants/business-admin.d.ts.map +1 -1
  7. package/dist/constants/business-admin.js +9 -0
  8. package/dist/constants/business-admin.js.map +1 -1
  9. package/dist/constants/safety-active-statuses.d.ts +2 -2
  10. package/dist/constants/text-fields.d.ts +23 -0
  11. package/dist/constants/text-fields.d.ts.map +1 -1
  12. package/dist/constants/text-fields.js +6 -1
  13. package/dist/constants/text-fields.js.map +1 -1
  14. package/dist/doc-schemas/chat-sync.d.ts +1 -1
  15. package/dist/doc-schemas/commissions.d.ts +6 -6
  16. package/dist/doc-schemas/content.d.ts +100 -69
  17. package/dist/doc-schemas/content.d.ts.map +1 -1
  18. package/dist/doc-schemas/content.js +41 -22
  19. package/dist/doc-schemas/content.js.map +1 -1
  20. package/dist/doc-schemas/media-assets.d.ts +5 -5
  21. package/dist/doc-schemas/media-copy-intents.d.ts +2 -2
  22. package/dist/doc-schemas/messaging.d.ts +1 -1
  23. package/dist/doc-schemas/moderation.d.ts +6 -6
  24. package/dist/doc-schemas/ncii/cases.d.ts +1 -1
  25. package/dist/doc-schemas/ncii/requests.d.ts +4 -4
  26. package/dist/doc-schemas/notification-archive-all-jobs.d.ts +2 -2
  27. package/dist/doc-schemas/notifications.d.ts +4 -4
  28. package/dist/doc-schemas/operational.d.ts +2 -2
  29. package/dist/doc-schemas/public-documents.d.ts +222 -167
  30. package/dist/doc-schemas/public-documents.d.ts.map +1 -1
  31. package/dist/doc-schemas/public-documents.js +7 -2
  32. package/dist/doc-schemas/public-documents.js.map +1 -1
  33. package/dist/doc-schemas/registry.d.ts +191 -151
  34. package/dist/doc-schemas/registry.d.ts.map +1 -1
  35. package/dist/doc-schemas/report-docs.d.ts +3 -3
  36. package/dist/doc-schemas/safety/case.d.ts +13 -13
  37. package/dist/doc-schemas/safety/evidence.d.ts +4 -4
  38. package/dist/doc-schemas/safety/foundation.d.ts +3 -3
  39. package/dist/doc-schemas/safety/report.d.ts +2 -2
  40. package/dist/doc-schemas/safety/sagas.d.ts +2 -2
  41. package/dist/doc-schemas/social.d.ts +4 -4
  42. package/dist/doc-schemas/square-announcement-jobs.d.ts +6 -6
  43. package/dist/doc-schemas/system-slots.d.ts +8 -1
  44. package/dist/doc-schemas/system-slots.d.ts.map +1 -1
  45. package/dist/doc-schemas/system.d.ts.map +1 -1
  46. package/dist/doc-schemas/system.js +2 -1
  47. package/dist/doc-schemas/system.js.map +1 -1
  48. package/dist/doc-schemas/user.d.ts +8 -8
  49. package/dist/doc-schemas/work-project.d.ts +1 -1
  50. package/dist/media/target-info.d.ts +9 -2
  51. package/dist/media/target-info.d.ts.map +1 -1
  52. package/dist/schemas/admin.d.ts +104 -73
  53. package/dist/schemas/admin.d.ts.map +1 -1
  54. package/dist/schemas/admin.js +48 -21
  55. package/dist/schemas/admin.js.map +1 -1
  56. package/dist/schemas/chat.d.ts +1 -1
  57. package/dist/schemas/commissions.d.ts +1 -1
  58. package/dist/schemas/notification.d.ts +1 -1
  59. package/dist/schemas/public-documents.d.ts +87 -65
  60. package/dist/schemas/public-documents.d.ts.map +1 -1
  61. package/dist/schemas/safety.d.ts +43 -43
  62. package/dist/schemas/users.d.ts +59 -1
  63. package/dist/schemas/users.d.ts.map +1 -1
  64. package/dist/schemas/users.js +36 -0
  65. package/dist/schemas/users.js.map +1 -1
  66. package/dist/schemas/work-project-management.d.ts +8 -8
  67. package/dist/system-slots/system-slots.d.ts +62 -5
  68. package/dist/system-slots/system-slots.d.ts.map +1 -1
  69. package/dist/system-slots/system-slots.js +47 -0
  70. package/dist/system-slots/system-slots.js.map +1 -1
  71. package/dist/types/admin-users.d.ts +1 -10
  72. package/dist/types/admin-users.d.ts.map +1 -1
  73. package/dist/types/admin-users.js.map +1 -1
  74. package/dist/types/content.d.ts +4 -1
  75. package/dist/types/content.d.ts.map +1 -1
  76. package/dist/types/content.js +2 -0
  77. package/dist/types/content.js.map +1 -1
  78. package/dist/upload-variables/upload-system-content-variables.d.ts +8 -1
  79. package/dist/upload-variables/upload-system-content-variables.d.ts.map +1 -1
  80. package/dist/utils/app-config.d.ts +36 -7
  81. package/dist/utils/app-config.d.ts.map +1 -1
  82. package/dist/utils/app-config.js +34 -16
  83. package/dist/utils/app-config.js.map +1 -1
  84. package/package.json +1 -1
@@ -7,9 +7,9 @@ export { SafetyCaseLaneSchema, type SafetyCaseLane } from '../doc-schemas/safety
7
7
  */
8
8
  export declare const CommandAccountActionSchema: z.ZodEnum<{
9
9
  none: "none";
10
- safetyLocked: "safetyLocked";
11
10
  watch: "watch";
12
11
  suspend: "suspend";
12
+ safetyLocked: "safetyLocked";
13
13
  ban: "ban";
14
14
  reinstate: "reinstate";
15
15
  }>;
@@ -19,23 +19,23 @@ export declare const CommandAccountActionInputSchema: z.ZodObject<{
19
19
  targetUid: z.ZodString;
20
20
  action: z.ZodEnum<{
21
21
  none: "none";
22
- safetyLocked: "safetyLocked";
23
22
  watch: "watch";
24
23
  suspend: "suspend";
24
+ safetyLocked: "safetyLocked";
25
25
  ban: "ban";
26
26
  reinstate: "reinstate";
27
27
  }>;
28
28
  reasonInternal: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
29
29
  reasonUserFacing: z.ZodString;
30
30
  role: z.ZodEnum<{
31
- requester: "requester";
32
31
  uploader: "uploader";
32
+ requester: "requester";
33
33
  distributor: "distributor";
34
34
  questionable: "questionable";
35
35
  }>;
36
36
  subjectDisposition: z.ZodEnum<{
37
- subject: "subject";
38
37
  questionable: "questionable";
38
+ subject: "subject";
39
39
  excluded: "excluded";
40
40
  }>;
41
41
  confirmation: z.ZodLiteral<"I confirm this account action">;
@@ -138,8 +138,8 @@ export declare const ChildSafetyCaseConsoleRowSchema: z.ZodObject<{
138
138
  latestAt: z.ZodNumber;
139
139
  }, z.core.$strict>;
140
140
  workStatus: z.ZodEnum<{
141
- processing: "processing";
142
141
  failed: "failed";
142
+ processing: "processing";
143
143
  new: "new";
144
144
  triaged: "triaged";
145
145
  reporting: "reporting";
@@ -159,9 +159,9 @@ export declare const ChildSafetyCaseConsoleRowSchema: z.ZodObject<{
159
159
  }>;
160
160
  accountActionStatus: z.ZodEnum<{
161
161
  pending: "pending";
162
- resolved: "resolved";
163
162
  noAccountActionRequired: "noAccountActionRequired";
164
163
  operatorDecisionPending: "operatorDecisionPending";
164
+ resolved: "resolved";
165
165
  }>;
166
166
  reportDisposition: z.ZodEnum<{
167
167
  undetermined: "undetermined";
@@ -272,12 +272,12 @@ export declare const NciiCaseConsoleRowSchema: z.ZodObject<{
272
272
  likeness: "likeness";
273
273
  }>;
274
274
  internalStatus: z.ZodEnum<{
275
- processing: "processing";
276
275
  failed: "failed";
277
276
  rejected: "rejected";
278
277
  removed: "removed";
279
278
  open: "open";
280
279
  removalInProgress: "removalInProgress";
280
+ processing: "processing";
281
281
  closed: "closed";
282
282
  }>;
283
283
  childSafetyLinkStatus: z.ZodEnum<{
@@ -594,8 +594,8 @@ export declare const GetSafetyCaseConsoleResultSchema: z.ZodObject<{
594
594
  latestAt: z.ZodNumber;
595
595
  }, z.core.$strict>;
596
596
  workStatus: z.ZodEnum<{
597
- processing: "processing";
598
597
  failed: "failed";
598
+ processing: "processing";
599
599
  new: "new";
600
600
  triaged: "triaged";
601
601
  reporting: "reporting";
@@ -615,9 +615,9 @@ export declare const GetSafetyCaseConsoleResultSchema: z.ZodObject<{
615
615
  }>;
616
616
  accountActionStatus: z.ZodEnum<{
617
617
  pending: "pending";
618
- resolved: "resolved";
619
618
  noAccountActionRequired: "noAccountActionRequired";
620
619
  operatorDecisionPending: "operatorDecisionPending";
620
+ resolved: "resolved";
621
621
  }>;
622
622
  reportDisposition: z.ZodEnum<{
623
623
  undetermined: "undetermined";
@@ -726,12 +726,12 @@ export declare const GetSafetyCaseConsoleResultSchema: z.ZodObject<{
726
726
  likeness: "likeness";
727
727
  }>;
728
728
  internalStatus: z.ZodEnum<{
729
- processing: "processing";
730
729
  failed: "failed";
731
730
  rejected: "rejected";
732
731
  removed: "removed";
733
732
  open: "open";
734
733
  removalInProgress: "removalInProgress";
734
+ processing: "processing";
735
735
  closed: "closed";
736
736
  }>;
737
737
  childSafetyLinkStatus: z.ZodEnum<{
@@ -1064,8 +1064,8 @@ export declare const SafetyCaseConsoleRowChangeSchema: z.ZodDiscriminatedUnion<[
1064
1064
  latestAt: z.ZodNumber;
1065
1065
  }, z.core.$strict>;
1066
1066
  workStatus: z.ZodEnum<{
1067
- processing: "processing";
1068
1067
  failed: "failed";
1068
+ processing: "processing";
1069
1069
  new: "new";
1070
1070
  triaged: "triaged";
1071
1071
  reporting: "reporting";
@@ -1085,9 +1085,9 @@ export declare const SafetyCaseConsoleRowChangeSchema: z.ZodDiscriminatedUnion<[
1085
1085
  }>;
1086
1086
  accountActionStatus: z.ZodEnum<{
1087
1087
  pending: "pending";
1088
- resolved: "resolved";
1089
1088
  noAccountActionRequired: "noAccountActionRequired";
1090
1089
  operatorDecisionPending: "operatorDecisionPending";
1090
+ resolved: "resolved";
1091
1091
  }>;
1092
1092
  reportDisposition: z.ZodEnum<{
1093
1093
  undetermined: "undetermined";
@@ -1199,12 +1199,12 @@ export declare const SafetyCaseConsoleRowChangeSchema: z.ZodDiscriminatedUnion<[
1199
1199
  likeness: "likeness";
1200
1200
  }>;
1201
1201
  internalStatus: z.ZodEnum<{
1202
- processing: "processing";
1203
1202
  failed: "failed";
1204
1203
  rejected: "rejected";
1205
1204
  removed: "removed";
1206
1205
  open: "open";
1207
1206
  removalInProgress: "removalInProgress";
1207
+ processing: "processing";
1208
1208
  closed: "closed";
1209
1209
  }>;
1210
1210
  childSafetyLinkStatus: z.ZodEnum<{
@@ -1477,8 +1477,8 @@ export declare const SafetyCaseConsolePatchSchema: z.ZodObject<{
1477
1477
  latestAt: z.ZodNumber;
1478
1478
  }, z.core.$strict>;
1479
1479
  workStatus: z.ZodEnum<{
1480
- processing: "processing";
1481
1480
  failed: "failed";
1481
+ processing: "processing";
1482
1482
  new: "new";
1483
1483
  triaged: "triaged";
1484
1484
  reporting: "reporting";
@@ -1498,9 +1498,9 @@ export declare const SafetyCaseConsolePatchSchema: z.ZodObject<{
1498
1498
  }>;
1499
1499
  accountActionStatus: z.ZodEnum<{
1500
1500
  pending: "pending";
1501
- resolved: "resolved";
1502
1501
  noAccountActionRequired: "noAccountActionRequired";
1503
1502
  operatorDecisionPending: "operatorDecisionPending";
1503
+ resolved: "resolved";
1504
1504
  }>;
1505
1505
  reportDisposition: z.ZodEnum<{
1506
1506
  undetermined: "undetermined";
@@ -1612,12 +1612,12 @@ export declare const SafetyCaseConsolePatchSchema: z.ZodObject<{
1612
1612
  likeness: "likeness";
1613
1613
  }>;
1614
1614
  internalStatus: z.ZodEnum<{
1615
- processing: "processing";
1616
1615
  failed: "failed";
1617
1616
  rejected: "rejected";
1618
1617
  removed: "removed";
1619
1618
  open: "open";
1620
1619
  removalInProgress: "removalInProgress";
1620
+ processing: "processing";
1621
1621
  closed: "closed";
1622
1622
  }>;
1623
1623
  childSafetyLinkStatus: z.ZodEnum<{
@@ -1941,8 +1941,8 @@ export declare const DecideTakeItDownValidityResultSchema: z.ZodObject<{
1941
1941
  latestAt: z.ZodNumber;
1942
1942
  }, z.core.$strict>;
1943
1943
  workStatus: z.ZodEnum<{
1944
- processing: "processing";
1945
1944
  failed: "failed";
1945
+ processing: "processing";
1946
1946
  new: "new";
1947
1947
  triaged: "triaged";
1948
1948
  reporting: "reporting";
@@ -1962,9 +1962,9 @@ export declare const DecideTakeItDownValidityResultSchema: z.ZodObject<{
1962
1962
  }>;
1963
1963
  accountActionStatus: z.ZodEnum<{
1964
1964
  pending: "pending";
1965
- resolved: "resolved";
1966
1965
  noAccountActionRequired: "noAccountActionRequired";
1967
1966
  operatorDecisionPending: "operatorDecisionPending";
1967
+ resolved: "resolved";
1968
1968
  }>;
1969
1969
  reportDisposition: z.ZodEnum<{
1970
1970
  undetermined: "undetermined";
@@ -2076,12 +2076,12 @@ export declare const DecideTakeItDownValidityResultSchema: z.ZodObject<{
2076
2076
  likeness: "likeness";
2077
2077
  }>;
2078
2078
  internalStatus: z.ZodEnum<{
2079
- processing: "processing";
2080
2079
  failed: "failed";
2081
2080
  rejected: "rejected";
2082
2081
  removed: "removed";
2083
2082
  open: "open";
2084
2083
  removalInProgress: "removalInProgress";
2084
+ processing: "processing";
2085
2085
  closed: "closed";
2086
2086
  }>;
2087
2087
  childSafetyLinkStatus: z.ZodEnum<{
@@ -2412,8 +2412,8 @@ export declare const SetNciiMinorAssessmentResultSchema: z.ZodObject<{
2412
2412
  latestAt: z.ZodNumber;
2413
2413
  }, z.core.$strict>;
2414
2414
  workStatus: z.ZodEnum<{
2415
- processing: "processing";
2416
2415
  failed: "failed";
2416
+ processing: "processing";
2417
2417
  new: "new";
2418
2418
  triaged: "triaged";
2419
2419
  reporting: "reporting";
@@ -2433,9 +2433,9 @@ export declare const SetNciiMinorAssessmentResultSchema: z.ZodObject<{
2433
2433
  }>;
2434
2434
  accountActionStatus: z.ZodEnum<{
2435
2435
  pending: "pending";
2436
- resolved: "resolved";
2437
2436
  noAccountActionRequired: "noAccountActionRequired";
2438
2437
  operatorDecisionPending: "operatorDecisionPending";
2438
+ resolved: "resolved";
2439
2439
  }>;
2440
2440
  reportDisposition: z.ZodEnum<{
2441
2441
  undetermined: "undetermined";
@@ -2547,12 +2547,12 @@ export declare const SetNciiMinorAssessmentResultSchema: z.ZodObject<{
2547
2547
  likeness: "likeness";
2548
2548
  }>;
2549
2549
  internalStatus: z.ZodEnum<{
2550
- processing: "processing";
2551
2550
  failed: "failed";
2552
2551
  rejected: "rejected";
2553
2552
  removed: "removed";
2554
2553
  open: "open";
2555
2554
  removalInProgress: "removalInProgress";
2555
+ processing: "processing";
2556
2556
  closed: "closed";
2557
2557
  }>;
2558
2558
  childSafetyLinkStatus: z.ZodEnum<{
@@ -2870,8 +2870,8 @@ export declare const RefetchProtectedCaseContextResultSchema: z.ZodObject<{
2870
2870
  latestAt: z.ZodNumber;
2871
2871
  }, z.core.$strict>;
2872
2872
  workStatus: z.ZodEnum<{
2873
- processing: "processing";
2874
2873
  failed: "failed";
2874
+ processing: "processing";
2875
2875
  new: "new";
2876
2876
  triaged: "triaged";
2877
2877
  reporting: "reporting";
@@ -2891,9 +2891,9 @@ export declare const RefetchProtectedCaseContextResultSchema: z.ZodObject<{
2891
2891
  }>;
2892
2892
  accountActionStatus: z.ZodEnum<{
2893
2893
  pending: "pending";
2894
- resolved: "resolved";
2895
2894
  noAccountActionRequired: "noAccountActionRequired";
2896
2895
  operatorDecisionPending: "operatorDecisionPending";
2896
+ resolved: "resolved";
2897
2897
  }>;
2898
2898
  reportDisposition: z.ZodEnum<{
2899
2899
  undetermined: "undetermined";
@@ -3005,12 +3005,12 @@ export declare const RefetchProtectedCaseContextResultSchema: z.ZodObject<{
3005
3005
  likeness: "likeness";
3006
3006
  }>;
3007
3007
  internalStatus: z.ZodEnum<{
3008
- processing: "processing";
3009
3008
  failed: "failed";
3010
3009
  rejected: "rejected";
3011
3010
  removed: "removed";
3012
3011
  open: "open";
3013
3012
  removalInProgress: "removalInProgress";
3013
+ processing: "processing";
3014
3014
  closed: "closed";
3015
3015
  }>;
3016
3016
  childSafetyLinkStatus: z.ZodEnum<{
@@ -3328,8 +3328,8 @@ export declare const MarkNcmecPortalCompleteResultSchema: z.ZodObject<{
3328
3328
  latestAt: z.ZodNumber;
3329
3329
  }, z.core.$strict>;
3330
3330
  workStatus: z.ZodEnum<{
3331
- processing: "processing";
3332
3331
  failed: "failed";
3332
+ processing: "processing";
3333
3333
  new: "new";
3334
3334
  triaged: "triaged";
3335
3335
  reporting: "reporting";
@@ -3349,9 +3349,9 @@ export declare const MarkNcmecPortalCompleteResultSchema: z.ZodObject<{
3349
3349
  }>;
3350
3350
  accountActionStatus: z.ZodEnum<{
3351
3351
  pending: "pending";
3352
- resolved: "resolved";
3353
3352
  noAccountActionRequired: "noAccountActionRequired";
3354
3353
  operatorDecisionPending: "operatorDecisionPending";
3354
+ resolved: "resolved";
3355
3355
  }>;
3356
3356
  reportDisposition: z.ZodEnum<{
3357
3357
  undetermined: "undetermined";
@@ -3463,12 +3463,12 @@ export declare const MarkNcmecPortalCompleteResultSchema: z.ZodObject<{
3463
3463
  likeness: "likeness";
3464
3464
  }>;
3465
3465
  internalStatus: z.ZodEnum<{
3466
- processing: "processing";
3467
3466
  failed: "failed";
3468
3467
  rejected: "rejected";
3469
3468
  removed: "removed";
3470
3469
  open: "open";
3471
3470
  removalInProgress: "removalInProgress";
3471
+ processing: "processing";
3472
3472
  closed: "closed";
3473
3473
  }>;
3474
3474
  childSafetyLinkStatus: z.ZodEnum<{
@@ -3785,8 +3785,8 @@ export declare const ReopenSafetyCaseResultSchema: z.ZodObject<{
3785
3785
  latestAt: z.ZodNumber;
3786
3786
  }, z.core.$strict>;
3787
3787
  workStatus: z.ZodEnum<{
3788
- processing: "processing";
3789
3788
  failed: "failed";
3789
+ processing: "processing";
3790
3790
  new: "new";
3791
3791
  triaged: "triaged";
3792
3792
  reporting: "reporting";
@@ -3806,9 +3806,9 @@ export declare const ReopenSafetyCaseResultSchema: z.ZodObject<{
3806
3806
  }>;
3807
3807
  accountActionStatus: z.ZodEnum<{
3808
3808
  pending: "pending";
3809
- resolved: "resolved";
3810
3809
  noAccountActionRequired: "noAccountActionRequired";
3811
3810
  operatorDecisionPending: "operatorDecisionPending";
3811
+ resolved: "resolved";
3812
3812
  }>;
3813
3813
  reportDisposition: z.ZodEnum<{
3814
3814
  undetermined: "undetermined";
@@ -3920,12 +3920,12 @@ export declare const ReopenSafetyCaseResultSchema: z.ZodObject<{
3920
3920
  likeness: "likeness";
3921
3921
  }>;
3922
3922
  internalStatus: z.ZodEnum<{
3923
- processing: "processing";
3924
3923
  failed: "failed";
3925
3924
  rejected: "rejected";
3926
3925
  removed: "removed";
3927
3926
  open: "open";
3928
3927
  removalInProgress: "removalInProgress";
3928
+ processing: "processing";
3929
3929
  closed: "closed";
3930
3930
  }>;
3931
3931
  childSafetyLinkStatus: z.ZodEnum<{
@@ -4253,8 +4253,8 @@ export declare const AdminReplayDeadLetterResultSchema: z.ZodDiscriminatedUnion<
4253
4253
  latestAt: z.ZodNumber;
4254
4254
  }, z.core.$strict>;
4255
4255
  workStatus: z.ZodEnum<{
4256
- processing: "processing";
4257
4256
  failed: "failed";
4257
+ processing: "processing";
4258
4258
  new: "new";
4259
4259
  triaged: "triaged";
4260
4260
  reporting: "reporting";
@@ -4274,9 +4274,9 @@ export declare const AdminReplayDeadLetterResultSchema: z.ZodDiscriminatedUnion<
4274
4274
  }>;
4275
4275
  accountActionStatus: z.ZodEnum<{
4276
4276
  pending: "pending";
4277
- resolved: "resolved";
4278
4277
  noAccountActionRequired: "noAccountActionRequired";
4279
4278
  operatorDecisionPending: "operatorDecisionPending";
4279
+ resolved: "resolved";
4280
4280
  }>;
4281
4281
  reportDisposition: z.ZodEnum<{
4282
4282
  undetermined: "undetermined";
@@ -4388,12 +4388,12 @@ export declare const AdminReplayDeadLetterResultSchema: z.ZodDiscriminatedUnion<
4388
4388
  likeness: "likeness";
4389
4389
  }>;
4390
4390
  internalStatus: z.ZodEnum<{
4391
- processing: "processing";
4392
4391
  failed: "failed";
4393
4392
  rejected: "rejected";
4394
4393
  removed: "removed";
4395
4394
  open: "open";
4396
4395
  removalInProgress: "removalInProgress";
4396
+ processing: "processing";
4397
4397
  closed: "closed";
4398
4398
  }>;
4399
4399
  childSafetyLinkStatus: z.ZodEnum<{
@@ -4726,8 +4726,8 @@ export declare const AdminReplayDeadLetterResultSchema: z.ZodDiscriminatedUnion<
4726
4726
  latestAt: z.ZodNumber;
4727
4727
  }, z.core.$strict>;
4728
4728
  workStatus: z.ZodEnum<{
4729
- processing: "processing";
4730
4729
  failed: "failed";
4730
+ processing: "processing";
4731
4731
  new: "new";
4732
4732
  triaged: "triaged";
4733
4733
  reporting: "reporting";
@@ -4747,9 +4747,9 @@ export declare const AdminReplayDeadLetterResultSchema: z.ZodDiscriminatedUnion<
4747
4747
  }>;
4748
4748
  accountActionStatus: z.ZodEnum<{
4749
4749
  pending: "pending";
4750
- resolved: "resolved";
4751
4750
  noAccountActionRequired: "noAccountActionRequired";
4752
4751
  operatorDecisionPending: "operatorDecisionPending";
4752
+ resolved: "resolved";
4753
4753
  }>;
4754
4754
  reportDisposition: z.ZodEnum<{
4755
4755
  undetermined: "undetermined";
@@ -4861,12 +4861,12 @@ export declare const AdminReplayDeadLetterResultSchema: z.ZodDiscriminatedUnion<
4861
4861
  likeness: "likeness";
4862
4862
  }>;
4863
4863
  internalStatus: z.ZodEnum<{
4864
- processing: "processing";
4865
4864
  failed: "failed";
4866
4865
  rejected: "rejected";
4867
4866
  removed: "removed";
4868
4867
  open: "open";
4869
4868
  removalInProgress: "removalInProgress";
4869
+ processing: "processing";
4870
4870
  closed: "closed";
4871
4871
  }>;
4872
4872
  childSafetyLinkStatus: z.ZodEnum<{
@@ -5168,8 +5168,8 @@ export type GetSafetyCaseByIdInput = z.infer<typeof GetSafetyCaseByIdInputSchema
5168
5168
  export declare const SafetyCaseByIdResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5169
5169
  caseType: z.ZodLiteral<"csam">;
5170
5170
  status: z.ZodEnum<{
5171
- processing: "processing";
5172
5171
  failed: "failed";
5172
+ processing: "processing";
5173
5173
  new: "new";
5174
5174
  triaged: "triaged";
5175
5175
  reporting: "reporting";
@@ -5216,12 +5216,12 @@ export declare const SafetyCaseByIdResultSchema: z.ZodDiscriminatedUnion<[z.ZodO
5216
5216
  }, z.core.$strict>, z.ZodObject<{
5217
5217
  caseType: z.ZodLiteral<"ncii">;
5218
5218
  status: z.ZodEnum<{
5219
- processing: "processing";
5220
5219
  failed: "failed";
5221
5220
  rejected: "rejected";
5222
5221
  removed: "removed";
5223
5222
  open: "open";
5224
5223
  removalInProgress: "removalInProgress";
5224
+ processing: "processing";
5225
5225
  closed: "closed";
5226
5226
  }>;
5227
5227
  caseId: z.ZodString;
@@ -5368,8 +5368,8 @@ export declare const RetainedChildSafetyCaseRowSchema: z.ZodObject<{
5368
5368
  latestAt: z.ZodNumber;
5369
5369
  }, z.core.$strict>;
5370
5370
  workStatus: z.ZodEnum<{
5371
- processing: "processing";
5372
5371
  failed: "failed";
5372
+ processing: "processing";
5373
5373
  new: "new";
5374
5374
  triaged: "triaged";
5375
5375
  reporting: "reporting";
@@ -5389,9 +5389,9 @@ export declare const RetainedChildSafetyCaseRowSchema: z.ZodObject<{
5389
5389
  }>;
5390
5390
  accountActionStatus: z.ZodEnum<{
5391
5391
  pending: "pending";
5392
- resolved: "resolved";
5393
5392
  noAccountActionRequired: "noAccountActionRequired";
5394
5393
  operatorDecisionPending: "operatorDecisionPending";
5394
+ resolved: "resolved";
5395
5395
  }>;
5396
5396
  reportDisposition: z.ZodEnum<{
5397
5397
  undetermined: "undetermined";
@@ -5459,8 +5459,8 @@ export declare const ListRetainedChildSafetyCasesResultSchema: z.ZodObject<{
5459
5459
  latestAt: z.ZodNumber;
5460
5460
  }, z.core.$strict>;
5461
5461
  workStatus: z.ZodEnum<{
5462
- processing: "processing";
5463
5462
  failed: "failed";
5463
+ processing: "processing";
5464
5464
  new: "new";
5465
5465
  triaged: "triaged";
5466
5466
  reporting: "reporting";
@@ -5480,9 +5480,9 @@ export declare const ListRetainedChildSafetyCasesResultSchema: z.ZodObject<{
5480
5480
  }>;
5481
5481
  accountActionStatus: z.ZodEnum<{
5482
5482
  pending: "pending";
5483
- resolved: "resolved";
5484
5483
  noAccountActionRequired: "noAccountActionRequired";
5485
5484
  operatorDecisionPending: "operatorDecisionPending";
5485
+ resolved: "resolved";
5486
5486
  }>;
5487
5487
  reportDisposition: z.ZodEnum<{
5488
5488
  undetermined: "undetermined";
@@ -119,9 +119,9 @@ export type RegisterUserResult = z.infer<typeof RegisterUserResultSchema>;
119
119
  export declare const SetUserStatusInputSchema: z.ZodObject<{
120
120
  userId: z.ZodString;
121
121
  status: z.ZodEnum<{
122
- banned: "banned";
123
122
  active: "active";
124
123
  suspended: "suspended";
124
+ banned: "banned";
125
125
  }>;
126
126
  reason: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
127
127
  }, z.core.$strict>;
@@ -139,6 +139,24 @@ export declare const CheckDisplayNameAvailableInputSchema: z.ZodObject<{
139
139
  displayName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
140
140
  }, z.core.$strict>;
141
141
  export type CheckDisplayNameAvailableInput = z.infer<typeof CheckDisplayNameAvailableInputSchema>;
142
+ /** Why a display name cannot be had: another account holds it, it is reserved, or the word list
143
+ * refuses it. */
144
+ export declare const DISPLAY_NAME_UNAVAILABLE_REASONS: readonly ["taken", "reserved", "disallowed"];
145
+ export declare const DisplayNameUnavailableReasonSchema: z.ZodEnum<{
146
+ taken: "taken";
147
+ reserved: "reserved";
148
+ disallowed: "disallowed";
149
+ }>;
150
+ export type DisplayNameUnavailableReason = z.infer<typeof DisplayNameUnavailableReasonSchema>;
151
+ export declare const CheckDisplayNameAvailableResultSchema: z.ZodObject<{
152
+ available: z.ZodBoolean;
153
+ reason: z.ZodOptional<z.ZodEnum<{
154
+ taken: "taken";
155
+ reserved: "reserved";
156
+ disallowed: "disallowed";
157
+ }>>;
158
+ }, z.core.$strip>;
159
+ export type CheckDisplayNameAvailableResult = z.infer<typeof CheckDisplayNameAvailableResultSchema>;
142
160
  export declare const UpgradeAccountToAdultInputSchema: z.ZodObject<{
143
161
  dob: z.ZodObject<{
144
162
  year: z.ZodNumber;
@@ -155,6 +173,46 @@ export declare const LookupUserByEmailOrUidInputSchema: z.ZodObject<{
155
173
  query: z.ZodString;
156
174
  }, z.core.$strict>;
157
175
  export type LookupUserByEmailOrUidInput = z.infer<typeof LookupUserByEmailOrUidInputSchema>;
176
+ /** A full email address — the exact-match lookup resolves it through Auth's email index. */
177
+ export declare const USER_LOOKUP_EMAIL_PATTERN: RegExp;
178
+ /** A Firebase Auth uid: 28 letters and digits. */
179
+ export declare const USER_LOOKUP_UID_PATTERN: RegExp;
180
+ /** Which search an admin's user query runs: a full email or a uid is an exact lookup; anything
181
+ * else is the display-name prefix search. */
182
+ export type UserSearchKind = 'email' | 'uid' | 'name';
183
+ /** The one routing of an admin user query — the User Management search box and the lookup
184
+ * callable's choice of Auth method both read it. */
185
+ export declare function detectUserSearchKind(query: string): UserSearchKind;
186
+ /** One account the exact-match lookup resolved. Carries the owner-only email (the lookup is
187
+ * full-admin only) and the account's admin standing alongside its status tier. */
188
+ export declare const AdminUserLookupResultSchema: z.ZodObject<{
189
+ uid: z.ZodString;
190
+ displayName: z.ZodString;
191
+ email: z.ZodString;
192
+ status: z.ZodEnum<{
193
+ active: "active";
194
+ suspended: "suspended";
195
+ banned: "banned";
196
+ }>;
197
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
198
+ }, z.core.$strip>;
199
+ export type AdminUserLookupResult = z.infer<typeof AdminUserLookupResultSchema>;
200
+ /** The `lookupUserByEmailOrUid` callable's result: the single exact match, or `null` when no
201
+ * account resolves. */
202
+ export declare const LookupUserByEmailOrUidResultSchema: z.ZodObject<{
203
+ user: z.ZodNullable<z.ZodObject<{
204
+ uid: z.ZodString;
205
+ displayName: z.ZodString;
206
+ email: z.ZodString;
207
+ status: z.ZodEnum<{
208
+ active: "active";
209
+ suspended: "suspended";
210
+ banned: "banned";
211
+ }>;
212
+ isAdmin: z.ZodOptional<z.ZodBoolean>;
213
+ }, z.core.$strip>>;
214
+ }, z.core.$strip>;
215
+ export type LookupUserByEmailOrUidResult = z.infer<typeof LookupUserByEmailOrUidResultSchema>;
158
216
  export declare const RequestAccountDeletionResultSchema: z.ZodObject<{
159
217
  success: z.ZodLiteral<true>;
160
218
  scheduledScrubAt: z.ZodNumber;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AG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;wBACwB;AACxB,eAAO,MAAM,kCAAkC;;;;;;;;;;;;iBAE7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAK9F,eAAO,MAAM,kCAAkC;;;;iBAM7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,iCAAiC;;;iBAI5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -197,6 +197,14 @@ export const SetMyDisplayNameInputSchema = z.object({
197
197
  export const CheckDisplayNameAvailableInputSchema = z.object({
198
198
  displayName: displayNameSchema,
199
199
  }).strict();
200
+ /** Why a display name cannot be had: another account holds it, it is reserved, or the word list
201
+ * refuses it. */
202
+ export const DISPLAY_NAME_UNAVAILABLE_REASONS = ['taken', 'reserved', 'disallowed'];
203
+ export const DisplayNameUnavailableReasonSchema = z.enum(DISPLAY_NAME_UNAVAILABLE_REASONS);
204
+ export const CheckDisplayNameAvailableResultSchema = z.object({
205
+ available: z.boolean(),
206
+ reason: DisplayNameUnavailableReasonSchema.optional(),
207
+ });
200
208
  // Teen→adult upgrade: a transient DOB (never persisted) the callable re-derives adult
201
209
  // eligibility from server-side against a fresh attestation. Only the shape is validated
202
210
  // here; the age math + attestation binding live in the callable.
@@ -217,6 +225,34 @@ export const SearchPublicUsersInputSchema = z.object({
217
225
  export const LookupUserByEmailOrUidInputSchema = z.object({
218
226
  query: z.string().trim().min(1).max(MAX_USER_SEARCH_QUERY_LENGTH),
219
227
  }).strict();
228
+ /** A full email address — the exact-match lookup resolves it through Auth's email index. */
229
+ export const USER_LOOKUP_EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
230
+ /** A Firebase Auth uid: 28 letters and digits. */
231
+ export const USER_LOOKUP_UID_PATTERN = /^[A-Za-z0-9]{28}$/;
232
+ /** The one routing of an admin user query — the User Management search box and the lookup
233
+ * callable's choice of Auth method both read it. */
234
+ export function detectUserSearchKind(query) {
235
+ const trimmed = query.trim();
236
+ if (USER_LOOKUP_EMAIL_PATTERN.test(trimmed))
237
+ return 'email';
238
+ if (USER_LOOKUP_UID_PATTERN.test(trimmed))
239
+ return 'uid';
240
+ return 'name';
241
+ }
242
+ /** One account the exact-match lookup resolved. Carries the owner-only email (the lookup is
243
+ * full-admin only) and the account's admin standing alongside its status tier. */
244
+ export const AdminUserLookupResultSchema = z.object({
245
+ uid: z.string(),
246
+ displayName: z.string(),
247
+ email: z.string(),
248
+ status: UserAccountStatusSchema,
249
+ isAdmin: z.boolean().optional(),
250
+ });
251
+ /** The `lookupUserByEmailOrUid` callable's result: the single exact match, or `null` when no
252
+ * account resolves. */
253
+ export const LookupUserByEmailOrUidResultSchema = z.object({
254
+ user: AdminUserLookupResultSchema.nullable(),
255
+ });
220
256
  // N3 account deletion — wire result contracts for the two user-facing callables (both take
221
257
  // no input). Previously declared independently in functions/src and src/hooks — one drifting
222
258
  // pair per callable. Non-strict (server → client result posture).