@ttt-productions/ttt-core 0.10.0 → 0.10.2

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 (69) hide show
  1. package/dist/constants/business.d.ts +7 -0
  2. package/dist/constants/business.d.ts.map +1 -1
  3. package/dist/constants/business.js +7 -0
  4. package/dist/constants/business.js.map +1 -1
  5. package/dist/constants/retention.d.ts +0 -4
  6. package/dist/constants/retention.d.ts.map +1 -1
  7. package/dist/constants/retention.js +0 -5
  8. package/dist/constants/retention.js.map +1 -1
  9. package/dist/doc-schemas/index.d.ts +1 -0
  10. package/dist/doc-schemas/index.d.ts.map +1 -1
  11. package/dist/doc-schemas/index.js +1 -0
  12. package/dist/doc-schemas/index.js.map +1 -1
  13. package/dist/doc-schemas/messaging.d.ts +11 -8
  14. package/dist/doc-schemas/messaging.d.ts.map +1 -1
  15. package/dist/doc-schemas/messaging.js +5 -0
  16. package/dist/doc-schemas/messaging.js.map +1 -1
  17. package/dist/doc-schemas/moderation.d.ts +4 -4
  18. package/dist/doc-schemas/operational.d.ts +4 -4
  19. package/dist/doc-schemas/payments.d.ts +200 -0
  20. package/dist/doc-schemas/payments.d.ts.map +1 -0
  21. package/dist/doc-schemas/payments.js +94 -0
  22. package/dist/doc-schemas/payments.js.map +1 -0
  23. package/dist/doc-schemas/registry.d.ts +233 -127
  24. package/dist/doc-schemas/registry.d.ts.map +1 -1
  25. package/dist/doc-schemas/registry.js +33 -6
  26. package/dist/doc-schemas/registry.js.map +1 -1
  27. package/dist/doc-schemas/report-docs.d.ts +27 -27
  28. package/dist/doc-schemas/report-docs.d.ts.map +1 -1
  29. package/dist/doc-schemas/report-docs.js +2 -0
  30. package/dist/doc-schemas/report-docs.js.map +1 -1
  31. package/dist/doc-schemas/social.d.ts +0 -66
  32. package/dist/doc-schemas/social.d.ts.map +1 -1
  33. package/dist/doc-schemas/social.js +4 -26
  34. package/dist/doc-schemas/social.js.map +1 -1
  35. package/dist/doc-schemas/user.d.ts +3 -3
  36. package/dist/doc-schemas/user.d.ts.map +1 -1
  37. package/dist/doc-schemas/user.js +5 -1
  38. package/dist/doc-schemas/user.js.map +1 -1
  39. package/dist/media/pending-media.d.ts +8 -8
  40. package/dist/paths/collections.d.ts +5 -4
  41. package/dist/paths/collections.d.ts.map +1 -1
  42. package/dist/paths/collections.js +6 -4
  43. package/dist/paths/collections.js.map +1 -1
  44. package/dist/paths/path-builders.d.ts +5 -4
  45. package/dist/paths/path-builders.d.ts.map +1 -1
  46. package/dist/paths/path-builders.js +11 -4
  47. package/dist/paths/path-builders.js.map +1 -1
  48. package/dist/schemas/admin.d.ts +3 -3
  49. package/dist/schemas/admin.d.ts.map +1 -1
  50. package/dist/schemas/admin.js +2 -0
  51. package/dist/schemas/admin.js.map +1 -1
  52. package/dist/schemas/payments.d.ts +0 -3
  53. package/dist/schemas/payments.d.ts.map +1 -1
  54. package/dist/schemas/payments.js +2 -3
  55. package/dist/schemas/payments.js.map +1 -1
  56. package/dist/schemas/work-project-management.d.ts +4 -4
  57. package/dist/types/audit.d.ts +1 -1
  58. package/dist/types/audit.d.ts.map +1 -1
  59. package/dist/types/index.d.ts +1 -0
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/dist/types/index.js +1 -0
  62. package/dist/types/index.js.map +1 -1
  63. package/dist/types/payments.d.ts +12 -0
  64. package/dist/types/payments.d.ts.map +1 -0
  65. package/dist/types/payments.js +6 -0
  66. package/dist/types/payments.js.map +1 -0
  67. package/dist/types/social.d.ts +1 -1
  68. package/dist/types/social.d.ts.map +1 -1
  69. package/package.json +1 -1
@@ -104,7 +104,7 @@ export declare const COLLECTION_SCHEMAS: {
104
104
  }>;
105
105
  readonly 'userProfiles/{userId}/privateData/{userId}': z.ZodObject<{
106
106
  email: z.ZodString;
107
- isWaitingForNewsApproval: z.ZodOptional<z.ZodBoolean>;
107
+ isWaitingForNewsApproval: z.ZodOptional<z.ZodNumber>;
108
108
  squareStreetzAgreementsDate: z.ZodOptional<z.ZodNumber>;
109
109
  agreements: z.ZodOptional<z.ZodObject<{
110
110
  age: z.ZodOptional<z.ZodBoolean>;
@@ -138,7 +138,7 @@ export declare const COLLECTION_SCHEMAS: {
138
138
  terms?: boolean | undefined;
139
139
  agreedOn?: number | undefined;
140
140
  } | undefined;
141
- isWaitingForNewsApproval?: boolean | undefined;
141
+ isWaitingForNewsApproval?: number | undefined;
142
142
  squareStreetzAgreementsDate?: number | undefined;
143
143
  }, {
144
144
  email: string;
@@ -150,7 +150,7 @@ export declare const COLLECTION_SCHEMAS: {
150
150
  terms?: boolean | undefined;
151
151
  agreedOn?: number | undefined;
152
152
  } | undefined;
153
- isWaitingForNewsApproval?: boolean | undefined;
153
+ isWaitingForNewsApproval?: number | undefined;
154
154
  squareStreetzAgreementsDate?: number | undefined;
155
155
  }>;
156
156
  readonly 'userProfiles/{userId}/profileCraftSkills/{craftSkillId}': z.ZodObject<{
@@ -175,34 +175,6 @@ export declare const COLLECTION_SCHEMAS: {
175
175
  tags: string[];
176
176
  createdAt: number;
177
177
  }>;
178
- readonly 'userProfiles/{userId}/userPledgePayments/{pledgePaymentId}': z.ZodObject<{
179
- pledgePaymentId: z.ZodString;
180
- stripeSessionId: z.ZodString;
181
- amount: z.ZodNumber;
182
- currency: z.ZodString;
183
- message: z.ZodString;
184
- status: z.ZodString;
185
- createdAt: z.ZodNumber;
186
- userId: z.ZodString;
187
- }, "strip", z.ZodTypeAny, {
188
- message: string;
189
- status: string;
190
- userId: string;
191
- createdAt: number;
192
- amount: number;
193
- pledgePaymentId: string;
194
- stripeSessionId: string;
195
- currency: string;
196
- }, {
197
- message: string;
198
- status: string;
199
- userId: string;
200
- createdAt: number;
201
- amount: number;
202
- pledgePaymentId: string;
203
- stripeSessionId: string;
204
- currency: string;
205
- }>;
206
178
  readonly 'userProfiles/{userId}/auditionVotes/{auditionId}': z.ZodObject<{
207
179
  votedForAuditionEntryId: z.ZodString;
208
180
  votedOn: z.ZodNumber;
@@ -738,6 +710,7 @@ export declare const COLLECTION_SCHEMAS: {
738
710
  messageId: z.ZodOptional<z.ZodString>;
739
711
  threadId: z.ZodOptional<z.ZodString>;
740
712
  type: z.ZodOptional<z.ZodString>;
713
+ guildInviteId: z.ZodOptional<z.ZodString>;
741
714
  attachment: z.ZodOptional<z.ZodObject<{
742
715
  id: z.ZodString;
743
716
  name: z.ZodString;
@@ -786,6 +759,7 @@ export declare const COLLECTION_SCHEMAS: {
786
759
  text: string;
787
760
  senderId: string;
788
761
  type?: string | undefined;
762
+ guildInviteId?: string | undefined;
789
763
  messageId?: string | undefined;
790
764
  threadId?: string | undefined;
791
765
  attachment?: {
@@ -810,6 +784,7 @@ export declare const COLLECTION_SCHEMAS: {
810
784
  text: string;
811
785
  senderId: string;
812
786
  type?: string | undefined;
787
+ guildInviteId?: string | undefined;
813
788
  messageId?: string | undefined;
814
789
  threadId?: string | undefined;
815
790
  attachment?: {
@@ -1097,9 +1072,7 @@ export declare const COLLECTION_SCHEMAS: {
1097
1072
  createdBy: {
1098
1073
  uid: string;
1099
1074
  };
1100
- lastUpdatedAt: number;
1101
- stakeSharesOffered: number;
1102
- guildInviteId: string;
1075
+ updatedAt: number;
1103
1076
  source: {
1104
1077
  type: "standalone";
1105
1078
  } | {
@@ -1128,6 +1101,8 @@ export declare const COLLECTION_SCHEMAS: {
1128
1101
  respondentUserId: string;
1129
1102
  };
1130
1103
  };
1104
+ stakeSharesOffered: number;
1105
+ guildInviteId: string;
1131
1106
  relatedUserIds: string[];
1132
1107
  sender: {
1133
1108
  uid: string;
@@ -1135,7 +1110,7 @@ export declare const COLLECTION_SCHEMAS: {
1135
1110
  recipient: {
1136
1111
  uid: string;
1137
1112
  };
1138
- updatedAt: number;
1113
+ lastUpdatedAt: number;
1139
1114
  senderConfirmed: boolean;
1140
1115
  recipientConfirmed: boolean;
1141
1116
  lastMessageAt?: string | undefined;
@@ -1154,9 +1129,7 @@ export declare const COLLECTION_SCHEMAS: {
1154
1129
  createdBy: {
1155
1130
  uid: string;
1156
1131
  };
1157
- lastUpdatedAt: number;
1158
- stakeSharesOffered: number;
1159
- guildInviteId: string;
1132
+ updatedAt: number;
1160
1133
  source: {
1161
1134
  type: "standalone";
1162
1135
  } | {
@@ -1185,6 +1158,8 @@ export declare const COLLECTION_SCHEMAS: {
1185
1158
  respondentUserId: string;
1186
1159
  };
1187
1160
  };
1161
+ stakeSharesOffered: number;
1162
+ guildInviteId: string;
1188
1163
  relatedUserIds: string[];
1189
1164
  sender: {
1190
1165
  uid: string;
@@ -1192,7 +1167,7 @@ export declare const COLLECTION_SCHEMAS: {
1192
1167
  recipient: {
1193
1168
  uid: string;
1194
1169
  };
1195
- updatedAt: number;
1170
+ lastUpdatedAt: number;
1196
1171
  senderConfirmed: boolean;
1197
1172
  recipientConfirmed: boolean;
1198
1173
  lastMessageAt?: string | undefined;
@@ -1206,6 +1181,7 @@ export declare const COLLECTION_SCHEMAS: {
1206
1181
  messageId: z.ZodOptional<z.ZodString>;
1207
1182
  threadId: z.ZodOptional<z.ZodString>;
1208
1183
  type: z.ZodOptional<z.ZodString>;
1184
+ guildInviteId: z.ZodOptional<z.ZodString>;
1209
1185
  attachment: z.ZodOptional<z.ZodObject<{
1210
1186
  id: z.ZodString;
1211
1187
  name: z.ZodString;
@@ -1254,6 +1230,7 @@ export declare const COLLECTION_SCHEMAS: {
1254
1230
  text: string;
1255
1231
  senderId: string;
1256
1232
  type?: string | undefined;
1233
+ guildInviteId?: string | undefined;
1257
1234
  messageId?: string | undefined;
1258
1235
  threadId?: string | undefined;
1259
1236
  attachment?: {
@@ -1278,6 +1255,7 @@ export declare const COLLECTION_SCHEMAS: {
1278
1255
  text: string;
1279
1256
  senderId: string;
1280
1257
  type?: string | undefined;
1258
+ guildInviteId?: string | undefined;
1281
1259
  messageId?: string | undefined;
1282
1260
  threadId?: string | undefined;
1283
1261
  attachment?: {
@@ -1411,97 +1389,198 @@ export declare const COLLECTION_SCHEMAS: {
1411
1389
  followerUid: string;
1412
1390
  followedOn: number;
1413
1391
  }>;
1414
- readonly 'recentPledgePayments/{pledgePaymentId}': z.ZodObject<{
1392
+ readonly 'pledgePayments/{pledgePaymentId}': z.ZodObject<{
1415
1393
  pledgePaymentId: z.ZodString;
1416
- stripeSessionId: z.ZodString;
1394
+ userId: z.ZodString;
1417
1395
  amount: z.ZodNumber;
1396
+ refundedAmount: z.ZodNumber;
1397
+ disputeLostAmount: z.ZodNumber;
1398
+ netAmount: z.ZodNumber;
1418
1399
  currency: z.ZodString;
1419
- message: z.ZodString;
1420
- status: z.ZodString;
1400
+ paymentInstrument: z.ZodLiteral<"card">;
1401
+ status: z.ZodLiteral<"completed">;
1402
+ refundState: z.ZodEnum<["none", "partial", "full"]>;
1403
+ disputeState: z.ZodEnum<["none", "underReview", "won", "lost"]>;
1421
1404
  createdAt: z.ZodNumber;
1422
- userId: z.ZodString;
1405
+ updatedAt: z.ZodNumber;
1423
1406
  }, "strip", z.ZodTypeAny, {
1424
- message: string;
1425
- status: string;
1407
+ status: "completed";
1426
1408
  userId: string;
1427
1409
  createdAt: number;
1428
1410
  amount: number;
1429
1411
  pledgePaymentId: string;
1430
- stripeSessionId: string;
1412
+ refundedAmount: number;
1413
+ disputeLostAmount: number;
1414
+ netAmount: number;
1431
1415
  currency: string;
1416
+ paymentInstrument: "card";
1417
+ refundState: "partial" | "none" | "full";
1418
+ disputeState: "none" | "underReview" | "won" | "lost";
1419
+ updatedAt: number;
1432
1420
  }, {
1433
- message: string;
1434
- status: string;
1421
+ status: "completed";
1435
1422
  userId: string;
1436
1423
  createdAt: number;
1437
1424
  amount: number;
1438
1425
  pledgePaymentId: string;
1439
- stripeSessionId: string;
1426
+ refundedAmount: number;
1427
+ disputeLostAmount: number;
1428
+ netAmount: number;
1440
1429
  currency: string;
1430
+ paymentInstrument: "card";
1431
+ refundState: "partial" | "none" | "full";
1432
+ disputeState: "none" | "underReview" | "won" | "lost";
1433
+ updatedAt: number;
1441
1434
  }>;
1442
- readonly 'archivedPledgePayments/{pledgePaymentId}': z.ZodObject<{
1435
+ readonly 'pledgePaymentProviderRefs/{pledgePaymentId}': z.ZodObject<{
1443
1436
  pledgePaymentId: z.ZodString;
1437
+ userId: z.ZodString;
1444
1438
  stripeSessionId: z.ZodString;
1445
- amount: z.ZodNumber;
1446
- currency: z.ZodString;
1447
- message: z.ZodString;
1448
- status: z.ZodString;
1439
+ paymentIntentId: z.ZodString;
1440
+ latestChargeId: z.ZodNullable<z.ZodString>;
1441
+ refundIds: z.ZodArray<z.ZodString, "many">;
1442
+ disputeId: z.ZodNullable<z.ZodString>;
1449
1443
  createdAt: z.ZodNumber;
1450
- userId: z.ZodString;
1444
+ updatedAt: z.ZodNumber;
1451
1445
  }, "strip", z.ZodTypeAny, {
1452
- message: string;
1453
- status: string;
1454
1446
  userId: string;
1455
1447
  createdAt: number;
1456
- amount: number;
1457
1448
  pledgePaymentId: string;
1449
+ updatedAt: number;
1458
1450
  stripeSessionId: string;
1459
- currency: string;
1451
+ paymentIntentId: string;
1452
+ latestChargeId: string | null;
1453
+ refundIds: string[];
1454
+ disputeId: string | null;
1460
1455
  }, {
1461
- message: string;
1462
- status: string;
1463
1456
  userId: string;
1464
1457
  createdAt: number;
1465
- amount: number;
1466
1458
  pledgePaymentId: string;
1459
+ updatedAt: number;
1467
1460
  stripeSessionId: string;
1468
- currency: string;
1461
+ paymentIntentId: string;
1462
+ latestChargeId: string | null;
1463
+ refundIds: string[];
1464
+ disputeId: string | null;
1465
+ }>;
1466
+ readonly 'processedStripeEvents/{stripeEventId}': z.ZodObject<{
1467
+ eventId: z.ZodString;
1468
+ eventType: z.ZodString;
1469
+ processedAt: z.ZodNumber;
1470
+ pledgePaymentId: z.ZodNullable<z.ZodString>;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ pledgePaymentId: string | null;
1473
+ eventId: string;
1474
+ eventType: string;
1475
+ processedAt: number;
1476
+ }, {
1477
+ pledgePaymentId: string | null;
1478
+ eventId: string;
1479
+ eventType: string;
1480
+ processedAt: number;
1481
+ }>;
1482
+ readonly 'pledgePaymentLedgerEvents/{ledgerId}': z.ZodObject<{
1483
+ ledgerId: z.ZodString;
1484
+ pledgePaymentId: z.ZodString;
1485
+ subtype: z.ZodString;
1486
+ reason: z.ZodString;
1487
+ before: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1488
+ after: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1489
+ source: z.ZodLiteral<"firestore-trigger">;
1490
+ createdAt: z.ZodNumber;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ createdAt: number;
1493
+ pledgePaymentId: string;
1494
+ ledgerId: string;
1495
+ subtype: string;
1496
+ reason: string;
1497
+ before: Record<string, unknown> | null;
1498
+ after: Record<string, unknown> | null;
1499
+ source: "firestore-trigger";
1500
+ }, {
1501
+ createdAt: number;
1502
+ pledgePaymentId: string;
1503
+ ledgerId: string;
1504
+ subtype: string;
1505
+ reason: string;
1506
+ before: Record<string, unknown> | null;
1507
+ after: Record<string, unknown> | null;
1508
+ source: "firestore-trigger";
1469
1509
  }>;
1470
- readonly 'pledgePaymentsSummary/summary': z.ZodObject<{
1471
- totalPledgePayments: z.ZodNumber;
1472
- totalPledgePaymentsByType: z.ZodObject<{
1473
- card: z.ZodNumber;
1474
- paypal: z.ZodNumber;
1475
- crypto: z.ZodNumber;
1510
+ readonly 'paymentWebhookQuarantine/{stripeEventId}': z.ZodObject<{
1511
+ eventId: z.ZodString;
1512
+ eventType: z.ZodString;
1513
+ livemode: z.ZodBoolean;
1514
+ reason: z.ZodString;
1515
+ recoverable: z.ZodBoolean;
1516
+ stripeObjectIds: z.ZodObject<{
1517
+ sessionId: z.ZodOptional<z.ZodString>;
1518
+ paymentIntentId: z.ZodOptional<z.ZodString>;
1519
+ chargeId: z.ZodOptional<z.ZodString>;
1476
1520
  }, "strip", z.ZodTypeAny, {
1477
- card: number;
1478
- paypal: number;
1479
- crypto: number;
1521
+ paymentIntentId?: string | undefined;
1522
+ sessionId?: string | undefined;
1523
+ chargeId?: string | undefined;
1480
1524
  }, {
1481
- card: number;
1482
- paypal: number;
1483
- crypto: number;
1525
+ paymentIntentId?: string | undefined;
1526
+ sessionId?: string | undefined;
1527
+ chargeId?: string | undefined;
1484
1528
  }>;
1485
- pledgePaymentCount: z.ZodNumber;
1486
- lastUpdatedAt: z.ZodNumber;
1529
+ pledgePaymentId: z.ZodOptional<z.ZodString>;
1530
+ userId: z.ZodOptional<z.ZodString>;
1531
+ amount: z.ZodOptional<z.ZodNumber>;
1532
+ currency: z.ZodOptional<z.ZodString>;
1533
+ rawSafeSummary: z.ZodString;
1534
+ status: z.ZodEnum<["open", "resolved", "ignored"]>;
1535
+ adminTaskId: z.ZodOptional<z.ZodString>;
1536
+ createdAt: z.ZodNumber;
1537
+ resolvedAt: z.ZodOptional<z.ZodNumber>;
1538
+ resolvedBy: z.ZodOptional<z.ZodString>;
1539
+ resolutionNote: z.ZodOptional<z.ZodString>;
1487
1540
  }, "strip", z.ZodTypeAny, {
1488
- totalPledgePayments: number;
1489
- pledgePaymentCount: number;
1490
- totalPledgePaymentsByType: {
1491
- card: number;
1492
- paypal: number;
1493
- crypto: number;
1541
+ status: "open" | "resolved" | "ignored";
1542
+ createdAt: number;
1543
+ eventId: string;
1544
+ eventType: string;
1545
+ reason: string;
1546
+ livemode: boolean;
1547
+ recoverable: boolean;
1548
+ stripeObjectIds: {
1549
+ paymentIntentId?: string | undefined;
1550
+ sessionId?: string | undefined;
1551
+ chargeId?: string | undefined;
1494
1552
  };
1495
- lastUpdatedAt: number;
1553
+ rawSafeSummary: string;
1554
+ userId?: string | undefined;
1555
+ amount?: number | undefined;
1556
+ pledgePaymentId?: string | undefined;
1557
+ currency?: string | undefined;
1558
+ adminTaskId?: string | undefined;
1559
+ resolvedAt?: number | undefined;
1560
+ resolvedBy?: string | undefined;
1561
+ resolutionNote?: string | undefined;
1496
1562
  }, {
1497
- totalPledgePayments: number;
1498
- pledgePaymentCount: number;
1499
- totalPledgePaymentsByType: {
1500
- card: number;
1501
- paypal: number;
1502
- crypto: number;
1563
+ status: "open" | "resolved" | "ignored";
1564
+ createdAt: number;
1565
+ eventId: string;
1566
+ eventType: string;
1567
+ reason: string;
1568
+ livemode: boolean;
1569
+ recoverable: boolean;
1570
+ stripeObjectIds: {
1571
+ paymentIntentId?: string | undefined;
1572
+ sessionId?: string | undefined;
1573
+ chargeId?: string | undefined;
1503
1574
  };
1504
- lastUpdatedAt: number;
1575
+ rawSafeSummary: string;
1576
+ userId?: string | undefined;
1577
+ amount?: number | undefined;
1578
+ pledgePaymentId?: string | undefined;
1579
+ currency?: string | undefined;
1580
+ adminTaskId?: string | undefined;
1581
+ resolvedAt?: number | undefined;
1582
+ resolvedBy?: string | undefined;
1583
+ resolutionNote?: string | undefined;
1505
1584
  }>;
1506
1585
  readonly 'thresholdItems/{thresholdItemId}': z.ZodObject<{
1507
1586
  thresholdItemId: z.ZodString;
@@ -1882,31 +1961,31 @@ export declare const COLLECTION_SCHEMAS: {
1882
1961
  }, "strip", z.ZodTypeAny, {
1883
1962
  status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
1884
1963
  createdAt: number;
1964
+ reason: string;
1885
1965
  reportId: string;
1886
1966
  reporterUserId: string;
1887
1967
  reportedItemType: string;
1888
1968
  reportedItemId: string;
1889
- reason: string;
1890
1969
  comment: string;
1891
1970
  adminNotes?: string | undefined;
1892
- parentItemId?: string | undefined;
1893
- reportedUserId?: string | undefined;
1894
1971
  resolvedAt?: number | undefined;
1895
1972
  resolvedBy?: string | undefined;
1973
+ parentItemId?: string | undefined;
1974
+ reportedUserId?: string | undefined;
1896
1975
  }, {
1897
1976
  status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
1898
1977
  createdAt: number;
1978
+ reason: string;
1899
1979
  reportId: string;
1900
1980
  reporterUserId: string;
1901
1981
  reportedItemType: string;
1902
1982
  reportedItemId: string;
1903
- reason: string;
1904
1983
  comment: string;
1905
1984
  adminNotes?: string | undefined;
1906
- parentItemId?: string | undefined;
1907
- reportedUserId?: string | undefined;
1908
1985
  resolvedAt?: number | undefined;
1909
1986
  resolvedBy?: string | undefined;
1987
+ parentItemId?: string | undefined;
1988
+ reportedUserId?: string | undefined;
1910
1989
  }>;
1911
1990
  readonly 'activeReportGroups/{groupKey}': z.ZodObject<{
1912
1991
  groupKey: z.ZodString;
@@ -1933,34 +2012,34 @@ export declare const COLLECTION_SCHEMAS: {
1933
2012
  }, "strip", z.ZodTypeAny, {
1934
2013
  status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
1935
2014
  createdAt: number;
2015
+ reason: string;
1936
2016
  reportId: string;
1937
2017
  reporterUserId: string;
1938
2018
  reportedItemType: string;
1939
2019
  reportedItemId: string;
1940
- reason: string;
1941
2020
  comment: string;
1942
2021
  adminNotes?: string | undefined;
1943
- parentItemId?: string | undefined;
1944
- reportedUserId?: string | undefined;
1945
2022
  resolvedAt?: number | undefined;
1946
2023
  resolvedBy?: string | undefined;
2024
+ parentItemId?: string | undefined;
2025
+ reportedUserId?: string | undefined;
1947
2026
  }, {
1948
2027
  status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
1949
2028
  createdAt: number;
2029
+ reason: string;
1950
2030
  reportId: string;
1951
2031
  reporterUserId: string;
1952
2032
  reportedItemType: string;
1953
2033
  reportedItemId: string;
1954
- reason: string;
1955
2034
  comment: string;
1956
2035
  adminNotes?: string | undefined;
1957
- parentItemId?: string | undefined;
1958
- reportedUserId?: string | undefined;
1959
2036
  resolvedAt?: number | undefined;
1960
2037
  resolvedBy?: string | undefined;
2038
+ parentItemId?: string | undefined;
2039
+ reportedUserId?: string | undefined;
1961
2040
  }>, "many">>;
1962
2041
  }, "strip", z.ZodTypeAny, {
1963
- status: "pending" | "reviewing" | "resolved";
2042
+ status: "pending" | "resolved" | "reviewing";
1964
2043
  reportedItemType: string;
1965
2044
  reportedItemId: string;
1966
2045
  reportedUserId: string | null;
@@ -1970,20 +2049,20 @@ export declare const COLLECTION_SCHEMAS: {
1970
2049
  reports?: {
1971
2050
  status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
1972
2051
  createdAt: number;
2052
+ reason: string;
1973
2053
  reportId: string;
1974
2054
  reporterUserId: string;
1975
2055
  reportedItemType: string;
1976
2056
  reportedItemId: string;
1977
- reason: string;
1978
2057
  comment: string;
1979
2058
  adminNotes?: string | undefined;
1980
- parentItemId?: string | undefined;
1981
- reportedUserId?: string | undefined;
1982
2059
  resolvedAt?: number | undefined;
1983
2060
  resolvedBy?: string | undefined;
2061
+ parentItemId?: string | undefined;
2062
+ reportedUserId?: string | undefined;
1984
2063
  }[] | undefined;
1985
2064
  }, {
1986
- status: "pending" | "reviewing" | "resolved";
2065
+ status: "pending" | "resolved" | "reviewing";
1987
2066
  reportedItemType: string;
1988
2067
  reportedItemId: string;
1989
2068
  reportedUserId: string | null;
@@ -1993,21 +2072,21 @@ export declare const COLLECTION_SCHEMAS: {
1993
2072
  reports?: {
1994
2073
  status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
1995
2074
  createdAt: number;
2075
+ reason: string;
1996
2076
  reportId: string;
1997
2077
  reporterUserId: string;
1998
2078
  reportedItemType: string;
1999
2079
  reportedItemId: string;
2000
- reason: string;
2001
2080
  comment: string;
2002
2081
  adminNotes?: string | undefined;
2003
- parentItemId?: string | undefined;
2004
- reportedUserId?: string | undefined;
2005
2082
  resolvedAt?: number | undefined;
2006
2083
  resolvedBy?: string | undefined;
2084
+ parentItemId?: string | undefined;
2085
+ reportedUserId?: string | undefined;
2007
2086
  }[] | undefined;
2008
2087
  }>;
2009
2088
  readonly 'adminTasks/{taskId}': z.ZodObject<{
2010
- taskType: z.ZodEnum<["adminDispatch", "thresholdLibraryReview", "userReport", "content-appeal", "stakeShareAnomaly"]>;
2089
+ taskType: z.ZodEnum<["adminDispatch", "thresholdLibraryReview", "userReport", "content-appeal", "stakeShareAnomaly", "pledgeLedgerAnomaly", "pledgePaymentRepairNeeded"]>;
2011
2090
  taskId: z.ZodString;
2012
2091
  originalPath: z.ZodString;
2013
2092
  status: z.ZodEnum<["pending", "checkedOut", "workLater", "completed"]>;
@@ -2047,7 +2126,7 @@ export declare const COLLECTION_SCHEMAS: {
2047
2126
  status: "pending" | "checkedOut" | "workLater" | "completed";
2048
2127
  createdAt: number;
2049
2128
  lastUpdatedAt: number;
2050
- taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly";
2129
+ taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly" | "pledgeLedgerAnomaly" | "pledgePaymentRepairNeeded";
2051
2130
  taskId: string;
2052
2131
  originalPath: string;
2053
2132
  checkoutDetails: {
@@ -2073,7 +2152,7 @@ export declare const COLLECTION_SCHEMAS: {
2073
2152
  status: "pending" | "checkedOut" | "workLater" | "completed";
2074
2153
  createdAt: number;
2075
2154
  lastUpdatedAt: number;
2076
- taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly";
2155
+ taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly" | "pledgeLedgerAnomaly" | "pledgePaymentRepairNeeded";
2077
2156
  taskId: string;
2078
2157
  originalPath: string;
2079
2158
  checkoutDetails: {
@@ -2229,8 +2308,8 @@ export declare const COLLECTION_SCHEMAS: {
2229
2308
  }, "strip", z.ZodTypeAny, {
2230
2309
  userId: string;
2231
2310
  id: string;
2232
- fileType: string;
2233
2311
  reason: string;
2312
+ fileType: string;
2234
2313
  timestamp: number;
2235
2314
  appealStatus: "pending" | "approved" | "none" | "denied";
2236
2315
  reviewedAt?: number | undefined;
@@ -2273,8 +2352,8 @@ export declare const COLLECTION_SCHEMAS: {
2273
2352
  }, {
2274
2353
  userId: string;
2275
2354
  id: string;
2276
- fileType: string;
2277
2355
  reason: string;
2356
+ fileType: string;
2278
2357
  timestamp: number;
2279
2358
  appealStatus: "pending" | "approved" | "none" | "denied";
2280
2359
  reviewedAt?: number | undefined;
@@ -2329,8 +2408,8 @@ export declare const COLLECTION_SCHEMAS: {
2329
2408
  status: "pending" | "failed" | "complete";
2330
2409
  createdAt: number;
2331
2410
  actorUid: string;
2332
- action: "hideRealm" | "restoreRealm";
2333
2411
  reason: string;
2412
+ action: "hideRealm" | "restoreRealm";
2334
2413
  cascadeId: string;
2335
2414
  entityType: "workRealm";
2336
2415
  entityId: string;
@@ -2339,8 +2418,8 @@ export declare const COLLECTION_SCHEMAS: {
2339
2418
  status: "pending" | "failed" | "complete";
2340
2419
  createdAt: number;
2341
2420
  actorUid: string;
2342
- action: "hideRealm" | "restoreRealm";
2343
2421
  reason: string;
2422
+ action: "hideRealm" | "restoreRealm";
2344
2423
  cascadeId: string;
2345
2424
  entityType: "workRealm";
2346
2425
  entityId: string;
@@ -2488,10 +2567,10 @@ export declare const COLLECTION_SCHEMAS: {
2488
2567
  }, "strip", z.ZodTypeAny, {
2489
2568
  workProjectId: string;
2490
2569
  createdAt: number;
2491
- source: string;
2492
- reason: string;
2493
2570
  eventId: string;
2494
2571
  subtype: string;
2572
+ reason: string;
2573
+ source: string;
2495
2574
  guildmateUserUid: string;
2496
2575
  guildmateUserPath: string;
2497
2576
  beforeStakeShares: number | null;
@@ -2499,10 +2578,10 @@ export declare const COLLECTION_SCHEMAS: {
2499
2578
  }, {
2500
2579
  workProjectId: string;
2501
2580
  createdAt: number;
2502
- source: string;
2503
- reason: string;
2504
2581
  eventId: string;
2505
2582
  subtype: string;
2583
+ reason: string;
2584
+ source: string;
2506
2585
  guildmateUserUid: string;
2507
2586
  guildmateUserPath: string;
2508
2587
  beforeStakeShares: number | null;
@@ -2552,6 +2631,7 @@ export declare const COLLECTION_SCHEMAS: {
2552
2631
  messageId: z.ZodOptional<z.ZodString>;
2553
2632
  threadId: z.ZodOptional<z.ZodString>;
2554
2633
  type: z.ZodOptional<z.ZodString>;
2634
+ guildInviteId: z.ZodOptional<z.ZodString>;
2555
2635
  attachment: z.ZodOptional<z.ZodObject<{
2556
2636
  id: z.ZodString;
2557
2637
  name: z.ZodString;
@@ -2600,6 +2680,7 @@ export declare const COLLECTION_SCHEMAS: {
2600
2680
  text: string;
2601
2681
  senderId: string;
2602
2682
  type?: string | undefined;
2683
+ guildInviteId?: string | undefined;
2603
2684
  messageId?: string | undefined;
2604
2685
  threadId?: string | undefined;
2605
2686
  attachment?: {
@@ -2624,6 +2705,7 @@ export declare const COLLECTION_SCHEMAS: {
2624
2705
  text: string;
2625
2706
  senderId: string;
2626
2707
  type?: string | undefined;
2708
+ guildInviteId?: string | undefined;
2627
2709
  messageId?: string | undefined;
2628
2710
  threadId?: string | undefined;
2629
2711
  attachment?: {
@@ -6836,8 +6918,8 @@ export declare const COLLECTION_SCHEMAS: {
6836
6918
  userId: string;
6837
6919
  id: string;
6838
6920
  createdAt: number;
6839
- rejectedAt: number;
6840
6921
  updatedAt: number;
6922
+ rejectedAt: number;
6841
6923
  fileOrigin: "profile-picture" | "craft-skill-media" | "squareStreetz" | "commission-posting" | "commission-proposal" | "audition-prompt" | "audition-entry" | "admin-audition-prompt" | "hallLibrary-cover-square" | "hallLibrary-cover-poster" | "hallLibrary-cover-cinematic" | "chapter-photo" | "tune-track-photo" | "tune-track-audio" | "television-episode-photo" | "television-episode-video" | "guild-chat-message-attachment" | "work-asset";
6842
6924
  originalFileName: string;
6843
6925
  pendingStoragePath: string;
@@ -7139,8 +7221,8 @@ export declare const COLLECTION_SCHEMAS: {
7139
7221
  userId: string;
7140
7222
  id: string;
7141
7223
  createdAt: number;
7142
- rejectedAt: number;
7143
7224
  updatedAt: number;
7225
+ rejectedAt: number;
7144
7226
  fileOrigin: "profile-picture" | "craft-skill-media" | "squareStreetz" | "commission-posting" | "commission-proposal" | "audition-prompt" | "audition-entry" | "admin-audition-prompt" | "hallLibrary-cover-square" | "hallLibrary-cover-poster" | "hallLibrary-cover-cinematic" | "chapter-photo" | "tune-track-photo" | "tune-track-audio" | "television-episode-photo" | "television-episode-video" | "guild-chat-message-attachment" | "work-asset";
7145
7227
  originalFileName: string;
7146
7228
  pendingStoragePath: string;
@@ -11511,8 +11593,8 @@ export declare const COLLECTION_SCHEMAS: {
11511
11593
  userId: string;
11512
11594
  id: string;
11513
11595
  createdAt: number;
11514
- rejectedAt: number;
11515
11596
  updatedAt: number;
11597
+ rejectedAt: number;
11516
11598
  fileOrigin: "profile-picture" | "craft-skill-media" | "squareStreetz" | "commission-posting" | "commission-proposal" | "audition-prompt" | "audition-entry" | "admin-audition-prompt" | "hallLibrary-cover-square" | "hallLibrary-cover-poster" | "hallLibrary-cover-cinematic" | "chapter-photo" | "tune-track-photo" | "tune-track-audio" | "television-episode-photo" | "television-episode-video" | "guild-chat-message-attachment" | "work-asset";
11517
11599
  originalFileName: string;
11518
11600
  pendingStoragePath: string;
@@ -11815,8 +11897,8 @@ export declare const COLLECTION_SCHEMAS: {
11815
11897
  userId: string;
11816
11898
  id: string;
11817
11899
  createdAt: number;
11818
- rejectedAt: number;
11819
11900
  updatedAt: number;
11901
+ rejectedAt: number;
11820
11902
  fileOrigin: "profile-picture" | "craft-skill-media" | "squareStreetz" | "commission-posting" | "commission-proposal" | "audition-prompt" | "audition-entry" | "admin-audition-prompt" | "hallLibrary-cover-square" | "hallLibrary-cover-poster" | "hallLibrary-cover-cinematic" | "chapter-photo" | "tune-track-photo" | "tune-track-audio" | "television-episode-photo" | "television-episode-video" | "guild-chat-message-attachment" | "work-asset";
11821
11903
  originalFileName: string;
11822
11904
  pendingStoragePath: string;
@@ -12787,6 +12869,30 @@ export declare const COLLECTION_SCHEMAS: {
12787
12869
  }>;
12788
12870
  };
12789
12871
  export type RegisteredCollectionPath = keyof typeof COLLECTION_SCHEMAS;
12872
+ /**
12873
+ * Doc-id field annotation: for the listed bindings, the named body field equals the
12874
+ * Firestore document id and is injected at READ time (`{ ...doc.data(), <field>: doc.id }`),
12875
+ * never persisted — the write callables store the body via `Omit<…, '<field>'>`. The bound
12876
+ * schema models the (correct) consumer/read shape, where the field is required, so a raw
12877
+ * stored doc is "missing" it. The drift-check injects `{ [field]: doc.id, ...data }` before
12878
+ * validating, generalizing the one-off `AdminTaskDocSchema` stored-shape workaround into a
12879
+ * single mechanism so real-callable drift-checks don't false-flag every doc-id collection.
12880
+ * The schema-doc generator ignores this map. Keys are compiler-checked against the registry.
12881
+ */
12882
+ export declare const COLLECTION_DOC_ID_FIELDS: {
12883
+ readonly 'allWorkProjects/{workProjectId}/workProjectTales/{taleId}': "uid";
12884
+ readonly 'allWorkProjects/{workProjectId}/workProjectTales/{taleId}/taleChapters/{chapterId}': "uid";
12885
+ readonly 'allWorkProjects/{workProjectId}/workProjectTunes/{tuneId}': "uid";
12886
+ readonly 'allWorkProjects/{workProjectId}/workProjectTunes/{tuneId}/tuneTracks/{trackId}': "uid";
12887
+ readonly 'allWorkProjects/{workProjectId}/workProjectTelevision/{televisionId}': "uid";
12888
+ readonly 'allWorkProjects/{workProjectId}/workProjectTelevision/{televisionId}/televisionEpisodes/{episodeId}': "uid";
12889
+ readonly 'allWorkProjects/{workProjectId}/guildChatChannels/{guildChatChannelId}': "guildChatChannelId";
12890
+ readonly 'activeUserNotifications/{notificationId}': "id";
12891
+ readonly 'activeAdminNotifications/{notificationId}': "id";
12892
+ readonly 'adminNotificationHistory/{notificationId}': "id";
12893
+ readonly 'userProfiles/{userId}/notificationHistory/{notificationId}': "id";
12894
+ readonly 'pendingNotifications/{notificationId}': "id";
12895
+ };
12790
12896
  /**
12791
12897
  * Collections that exist (in COLLECTIONS / *_SUBCOLLECTIONS or firestore.rules) but are
12792
12898
  * intentionally NOT bound to a schema, each with a reason. Listed EXPLICITLY so completeness is