@ttt-productions/ttt-core 0.79.33 → 0.79.35
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.
- package/dist/constants/retention.d.ts +3 -0
- package/dist/constants/retention.d.ts.map +1 -1
- package/dist/constants/retention.js +4 -0
- package/dist/constants/retention.js.map +1 -1
- package/dist/doc-schemas/registry.d.ts +88 -0
- package/dist/doc-schemas/registry.d.ts.map +1 -1
- package/dist/media/domain-events-admin.d.ts +13 -0
- package/dist/media/domain-events-admin.d.ts.map +1 -1
- package/dist/media/domain-events-admin.js +28 -0
- package/dist/media/domain-events-admin.js.map +1 -1
- package/dist/media/domain-events-user.d.ts +6 -0
- package/dist/media/domain-events-user.d.ts.map +1 -1
- package/dist/media/domain-events-user.js +12 -0
- package/dist/media/domain-events-user.js.map +1 -1
- package/dist/media/domain-events-work.d.ts +7 -0
- package/dist/media/domain-events-work.d.ts.map +1 -1
- package/dist/media/domain-events-work.js +13 -0
- package/dist/media/domain-events-work.js.map +1 -1
- package/dist/media/domain-events.d.ts +22 -0
- package/dist/media/domain-events.d.ts.map +1 -1
- package/dist/media/domain-events.js +7 -3
- package/dist/media/domain-events.js.map +1 -1
- package/dist/media/pending-media.d.ts +242 -0
- package/dist/media/pending-media.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -19,4 +19,7 @@ export declare const LISTENER_WINDOW_MS: number;
|
|
|
19
19
|
export declare const PUBLIC_USERS_STALE_TIME_MS: number;
|
|
20
20
|
/** GC time for the publicUsers query cache (1 hour). */
|
|
21
21
|
export declare const PUBLIC_USERS_GC_TIME_MS: number;
|
|
22
|
+
/** Stale time for an ABSENT public-lookup document (20 seconds) — short, so a
|
|
23
|
+
* just-created or just-published entity stops reading as missing almost at once. */
|
|
24
|
+
export declare const PUBLIC_LOOKUP_ABSENT_STALE_TIME_MS: number;
|
|
22
25
|
//# sourceMappingURL=retention.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../src/constants/retention.ts"],"names":[],"mappings":"AAIA,gEAAgE;AAChE,eAAO,MAAM,sBAAsB,QAAiB,CAAC;AAIrD,oFAAoF;AACpF,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD,oFAAoF;AACpF,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAWpD;qCACqC;AACrC,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAIhD,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,+CAA+C;AAC/C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,4CAA4C;AAC5C,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAIjD,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,QAAsB,CAAC;AAItD,+DAA+D;AAC/D,eAAO,MAAM,0BAA0B,QAAiB,CAAC;AAEzD,wDAAwD;AACxD,eAAO,MAAM,uBAAuB,QAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../src/constants/retention.ts"],"names":[],"mappings":"AAIA,gEAAgE;AAChE,eAAO,MAAM,sBAAsB,QAAiB,CAAC;AAIrD,oFAAoF;AACpF,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD,oFAAoF;AACpF,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAWpD;qCACqC;AACrC,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAIhD,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,+CAA+C;AAC/C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,4CAA4C;AAC5C,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAIjD,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,QAAsB,CAAC;AAItD,+DAA+D;AAC/D,eAAO,MAAM,0BAA0B,QAAiB,CAAC;AAEzD,wDAAwD;AACxD,eAAO,MAAM,uBAAuB,QAAiB,CAAC;AAItD;qFACqF;AACrF,eAAO,MAAM,kCAAkC,QAAY,CAAC"}
|
|
@@ -33,4 +33,8 @@ export const LISTENER_WINDOW_MS = 24 * 60 * 60 * 1000;
|
|
|
33
33
|
export const PUBLIC_USERS_STALE_TIME_MS = 30 * 60 * 1000;
|
|
34
34
|
/** GC time for the publicUsers query cache (1 hour). */
|
|
35
35
|
export const PUBLIC_USERS_GC_TIME_MS = 60 * 60 * 1000;
|
|
36
|
+
// --- Public-entity lookup negative cache ---
|
|
37
|
+
/** Stale time for an ABSENT public-lookup document (20 seconds) — short, so a
|
|
38
|
+
* just-created or just-published entity stops reading as missing almost at once. */
|
|
39
|
+
export const PUBLIC_LOOKUP_ABSENT_STALE_TIME_MS = 20 * 1000;
|
|
36
40
|
//# sourceMappingURL=retention.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retention.js","sourceRoot":"","sources":["../../src/constants/retention.ts"],"names":[],"mappings":"AAAA,sDAAsD;AAEtD,oCAAoC;AAEpC,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC;AAErD,gCAAgC;AAEhC,oFAAoF;AACpF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC;AAElD,oFAAoF;AACpF,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD,4DAA4D;AAC5D,4FAA4F;AAC5F,8FAA8F;AAC9F,0FAA0F;AAC1F,+FAA+F;AAC/F,wFAAwF;AACxF,yFAAyF;AACzF,8FAA8F;AAE9F;qCACqC;AACrC,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEhD,gCAAgC;AAEhC,uFAAuF;AACvF,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAE5C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAEjD,8CAA8C;AAE9C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEtD,yCAAyC;AAEzC,+DAA+D;AAC/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEzD,wDAAwD;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC","sourcesContent":["// Caching, retention, and cleanup TTLs / batch sizes.\n\n// --- Profanity word list cache ---\n\n/** TTL for the in-memory profanity word list cache (1 hour). */\nexport const WORD_LIST_CACHE_TTL_MS = 1000 * 60 * 60;\n\n// --- Pending media archive ---\n\n/** Days after which a terminal pendingMedia doc is moved to pendingMediaArchive. */\nexport const PENDING_MEDIA_ARCHIVE_AFTER_DAYS = 7;\n\n/** Per-run cap on docs archived by the archivePendingMedia scheduled commission. */\nexport const PENDING_MEDIA_ARCHIVE_BATCH_SIZE = 500;\n\n// --- Rejected (moderation-quarantined) media retention ---\n// Bytes a moderation decision rejected are kept at `rejected/{userId}/…` as APPEAL EVIDENCE\n// (the violation's `rejectedFilePath`; owner + admin readable, never served through the media\n// gateway). They are not kept forever: after this window the hold-aware fail-closed sweep\n// deletes them. Fail-closed means a file it cannot prove is out of window — or that carries an\n// active Trust & Safety / legal hold — is LEFT IN PLACE, never deleted on a best guess.\n// 90 days sits comfortably past the appeal window while bounding indefinite retention of\n// often-adult rejected content. See ttt-prod docs/design/content-moderation-and-reporting.md.\n\n/** Days a moderation-rejected upload's quarantined bytes are retained before the\n * hold-aware sweep deletes them. */\nexport const REJECTED_MEDIA_RETENTION_DAYS = 90;\n\n// --- Orphan upload cleanup ---\n\n/** TTL in hours after which an orphan storage upload becomes eligible for deletion. */\nexport const ORPHAN_UPLOAD_TTL_HOURS = 24;\n\n/** Per-run cap on orphan storage deletions. */\nexport const ORPHAN_UPLOAD_DELETE_CAP = 500;\n\n/** Page size for listing orphan uploads. */\nexport const ORPHAN_UPLOAD_LIST_PAGE_SIZE = 1000;\n\n// --- Frontend in-flight upload listeners ---\n\n/** Maximum lookback window for the in-flight upload listener (24 hours). */\nexport const LISTENER_WINDOW_MS = 24 * 60 * 60 * 1000;\n\n// --- Public users React Query cache ---\n\n/** Stale time for the publicUsers query cache (30 minutes). */\nexport const PUBLIC_USERS_STALE_TIME_MS = 30 * 60 * 1000;\n\n/** GC time for the publicUsers query cache (1 hour). */\nexport const PUBLIC_USERS_GC_TIME_MS = 60 * 60 * 1000;\n\n"]}
|
|
1
|
+
{"version":3,"file":"retention.js","sourceRoot":"","sources":["../../src/constants/retention.ts"],"names":[],"mappings":"AAAA,sDAAsD;AAEtD,oCAAoC;AAEpC,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC;AAErD,gCAAgC;AAEhC,oFAAoF;AACpF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC;AAElD,oFAAoF;AACpF,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD,4DAA4D;AAC5D,4FAA4F;AAC5F,8FAA8F;AAC9F,0FAA0F;AAC1F,+FAA+F;AAC/F,wFAAwF;AACxF,yFAAyF;AACzF,8FAA8F;AAE9F;qCACqC;AACrC,MAAM,CAAC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEhD,gCAAgC;AAEhC,uFAAuF;AACvF,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAE5C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAEjD,8CAA8C;AAE9C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEtD,yCAAyC;AAEzC,+DAA+D;AAC/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEzD,wDAAwD;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEtD,8CAA8C;AAE9C;qFACqF;AACrF,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,GAAG,IAAI,CAAC","sourcesContent":["// Caching, retention, and cleanup TTLs / batch sizes.\n\n// --- Profanity word list cache ---\n\n/** TTL for the in-memory profanity word list cache (1 hour). */\nexport const WORD_LIST_CACHE_TTL_MS = 1000 * 60 * 60;\n\n// --- Pending media archive ---\n\n/** Days after which a terminal pendingMedia doc is moved to pendingMediaArchive. */\nexport const PENDING_MEDIA_ARCHIVE_AFTER_DAYS = 7;\n\n/** Per-run cap on docs archived by the archivePendingMedia scheduled commission. */\nexport const PENDING_MEDIA_ARCHIVE_BATCH_SIZE = 500;\n\n// --- Rejected (moderation-quarantined) media retention ---\n// Bytes a moderation decision rejected are kept at `rejected/{userId}/…` as APPEAL EVIDENCE\n// (the violation's `rejectedFilePath`; owner + admin readable, never served through the media\n// gateway). They are not kept forever: after this window the hold-aware fail-closed sweep\n// deletes them. Fail-closed means a file it cannot prove is out of window — or that carries an\n// active Trust & Safety / legal hold — is LEFT IN PLACE, never deleted on a best guess.\n// 90 days sits comfortably past the appeal window while bounding indefinite retention of\n// often-adult rejected content. See ttt-prod docs/design/content-moderation-and-reporting.md.\n\n/** Days a moderation-rejected upload's quarantined bytes are retained before the\n * hold-aware sweep deletes them. */\nexport const REJECTED_MEDIA_RETENTION_DAYS = 90;\n\n// --- Orphan upload cleanup ---\n\n/** TTL in hours after which an orphan storage upload becomes eligible for deletion. */\nexport const ORPHAN_UPLOAD_TTL_HOURS = 24;\n\n/** Per-run cap on orphan storage deletions. */\nexport const ORPHAN_UPLOAD_DELETE_CAP = 500;\n\n/** Page size for listing orphan uploads. */\nexport const ORPHAN_UPLOAD_LIST_PAGE_SIZE = 1000;\n\n// --- Frontend in-flight upload listeners ---\n\n/** Maximum lookback window for the in-flight upload listener (24 hours). */\nexport const LISTENER_WINDOW_MS = 24 * 60 * 60 * 1000;\n\n// --- Public users React Query cache ---\n\n/** Stale time for the publicUsers query cache (30 minutes). */\nexport const PUBLIC_USERS_STALE_TIME_MS = 30 * 60 * 1000;\n\n/** GC time for the publicUsers query cache (1 hour). */\nexport const PUBLIC_USERS_GC_TIME_MS = 60 * 60 * 1000;\n\n// --- Public-entity lookup negative cache ---\n\n/** Stale time for an ABSENT public-lookup document (20 seconds) — short, so a\n * just-created or just-published entity stops reading as missing almost at once. */\nexport const PUBLIC_LOOKUP_ABSENT_STALE_TIME_MS = 20 * 1000;\n"]}
|
|
@@ -2122,6 +2122,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
2122
2122
|
ids: z.ZodObject<{
|
|
2123
2123
|
workProjectId: z.ZodString;
|
|
2124
2124
|
userId: z.ZodString;
|
|
2125
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2125
2126
|
}, z.core.$strict>;
|
|
2126
2127
|
}, z.core.$strict>, z.ZodObject<{
|
|
2127
2128
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -2243,6 +2244,27 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
2243
2244
|
userId: z.ZodString;
|
|
2244
2245
|
violationId: z.ZodString;
|
|
2245
2246
|
}, z.core.$strict>;
|
|
2247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2248
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
2249
|
+
ids: z.ZodObject<{
|
|
2250
|
+
userId: z.ZodString;
|
|
2251
|
+
}, z.core.$strict>;
|
|
2252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2253
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
2254
|
+
ids: z.ZodObject<{
|
|
2255
|
+
userId: z.ZodString;
|
|
2256
|
+
}, z.core.$strict>;
|
|
2257
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2258
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
2259
|
+
ids: z.ZodObject<{
|
|
2260
|
+
workRealmId: z.ZodString;
|
|
2261
|
+
}, z.core.$strict>;
|
|
2262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2263
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
2264
|
+
ids: z.ZodObject<{
|
|
2265
|
+
workProjectId: z.ZodString;
|
|
2266
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2267
|
+
}, z.core.$strict>;
|
|
2246
2268
|
}, z.core.$strict>], "type">>;
|
|
2247
2269
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2248
2270
|
collection: z.ZodString;
|
|
@@ -2578,6 +2600,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
2578
2600
|
ids: z.ZodObject<{
|
|
2579
2601
|
workProjectId: z.ZodString;
|
|
2580
2602
|
userId: z.ZodString;
|
|
2603
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2581
2604
|
}, z.core.$strict>;
|
|
2582
2605
|
}, z.core.$strict>, z.ZodObject<{
|
|
2583
2606
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -2699,6 +2722,27 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
2699
2722
|
userId: z.ZodString;
|
|
2700
2723
|
violationId: z.ZodString;
|
|
2701
2724
|
}, z.core.$strict>;
|
|
2725
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2726
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
2727
|
+
ids: z.ZodObject<{
|
|
2728
|
+
userId: z.ZodString;
|
|
2729
|
+
}, z.core.$strict>;
|
|
2730
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2731
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
2732
|
+
ids: z.ZodObject<{
|
|
2733
|
+
userId: z.ZodString;
|
|
2734
|
+
}, z.core.$strict>;
|
|
2735
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2736
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
2737
|
+
ids: z.ZodObject<{
|
|
2738
|
+
workRealmId: z.ZodString;
|
|
2739
|
+
}, z.core.$strict>;
|
|
2740
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2741
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
2742
|
+
ids: z.ZodObject<{
|
|
2743
|
+
workProjectId: z.ZodString;
|
|
2744
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2745
|
+
}, z.core.$strict>;
|
|
2702
2746
|
}, z.core.$strict>], "type">>;
|
|
2703
2747
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2704
2748
|
collection: z.ZodString;
|
|
@@ -2952,6 +2996,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
2952
2996
|
ids: z.ZodObject<{
|
|
2953
2997
|
workProjectId: z.ZodString;
|
|
2954
2998
|
userId: z.ZodString;
|
|
2999
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2955
3000
|
}, z.core.$strict>;
|
|
2956
3001
|
}, z.core.$strict>, z.ZodObject<{
|
|
2957
3002
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -3073,6 +3118,27 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3073
3118
|
userId: z.ZodString;
|
|
3074
3119
|
violationId: z.ZodString;
|
|
3075
3120
|
}, z.core.$strict>;
|
|
3121
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3122
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
3123
|
+
ids: z.ZodObject<{
|
|
3124
|
+
userId: z.ZodString;
|
|
3125
|
+
}, z.core.$strict>;
|
|
3126
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3127
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
3128
|
+
ids: z.ZodObject<{
|
|
3129
|
+
userId: z.ZodString;
|
|
3130
|
+
}, z.core.$strict>;
|
|
3131
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3132
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
3133
|
+
ids: z.ZodObject<{
|
|
3134
|
+
workRealmId: z.ZodString;
|
|
3135
|
+
}, z.core.$strict>;
|
|
3136
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3137
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
3138
|
+
ids: z.ZodObject<{
|
|
3139
|
+
workProjectId: z.ZodString;
|
|
3140
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
3141
|
+
}, z.core.$strict>;
|
|
3076
3142
|
}, z.core.$strict>], "type">>;
|
|
3077
3143
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3078
3144
|
collection: z.ZodString;
|
|
@@ -3410,6 +3476,7 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3410
3476
|
ids: z.ZodObject<{
|
|
3411
3477
|
workProjectId: z.ZodString;
|
|
3412
3478
|
userId: z.ZodString;
|
|
3479
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
3413
3480
|
}, z.core.$strict>;
|
|
3414
3481
|
}, z.core.$strict>, z.ZodObject<{
|
|
3415
3482
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -3531,6 +3598,27 @@ export declare const COLLECTION_SCHEMAS: {
|
|
|
3531
3598
|
userId: z.ZodString;
|
|
3532
3599
|
violationId: z.ZodString;
|
|
3533
3600
|
}, z.core.$strict>;
|
|
3601
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3602
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
3603
|
+
ids: z.ZodObject<{
|
|
3604
|
+
userId: z.ZodString;
|
|
3605
|
+
}, z.core.$strict>;
|
|
3606
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3607
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
3608
|
+
ids: z.ZodObject<{
|
|
3609
|
+
userId: z.ZodString;
|
|
3610
|
+
}, z.core.$strict>;
|
|
3611
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3612
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
3613
|
+
ids: z.ZodObject<{
|
|
3614
|
+
workRealmId: z.ZodString;
|
|
3615
|
+
}, z.core.$strict>;
|
|
3616
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3617
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
3618
|
+
ids: z.ZodObject<{
|
|
3619
|
+
workProjectId: z.ZodString;
|
|
3620
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
3621
|
+
}, z.core.$strict>;
|
|
3534
3622
|
}, z.core.$strict>], "type">>;
|
|
3535
3623
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3536
3624
|
collection: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4M7B,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4M7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwPkB,CAAC;AAElD,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAEvE;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;CAmBiC,CAAC;AAEvE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAUvC,CAAC"}
|
|
@@ -66,6 +66,19 @@ export declare const AdminDispatchReviewedEventSchema: z.ZodObject<{
|
|
|
66
66
|
type: z.ZodLiteral<"admin.adminDispatchReviewed">;
|
|
67
67
|
ids: z.ZodObject<{}, z.core.$strict>;
|
|
68
68
|
}, z.core.$strict>;
|
|
69
|
+
export declare const AdminDisplayNameResetForcedEventSchema: z.ZodObject<{
|
|
70
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
71
|
+
ids: z.ZodObject<{
|
|
72
|
+
userId: z.ZodString;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
export declare const HallContentChangeRequestApprovedEventSchema: z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
77
|
+
ids: z.ZodObject<{
|
|
78
|
+
workProjectId: z.ZodString;
|
|
79
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strict>;
|
|
81
|
+
}, z.core.$strict>;
|
|
69
82
|
export declare const ViolationAppealSubmittedEventSchema: z.ZodObject<{
|
|
70
83
|
type: z.ZodLiteral<"violation.appealSubmitted">;
|
|
71
84
|
ids: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-events-admin.d.ts","sourceRoot":"","sources":["../../src/media/domain-events-admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAYvC,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;;;kBAUrC,CAAC;AAEZ,eAAO,MAAM,wCAAwC;;;;;;kBAU1C,CAAC;AAEZ,eAAO,MAAM,oCAAoC;;;;;kBAStC,CAAC;AAEZ,eAAO,MAAM,qCAAqC;;;;;kBASvC,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;kBAUhC,CAAC;AAEZ,eAAO,MAAM,gCAAgC;;;kBAKlC,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;;;kBAUrC,CAAC"}
|
|
1
|
+
{"version":3,"file":"domain-events-admin.d.ts","sourceRoot":"","sources":["../../src/media/domain-events-admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAYvC,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;;;kBAUrC,CAAC;AAEZ,eAAO,MAAM,wCAAwC;;;;;;kBAU1C,CAAC;AAEZ,eAAO,MAAM,oCAAoC;;;;;kBAStC,CAAC;AAEZ,eAAO,MAAM,qCAAqC;;;;;kBASvC,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;kBAUhC,CAAC;AAEZ,eAAO,MAAM,gCAAgC;;;kBAKlC,CAAC;AAKZ,eAAO,MAAM,sCAAsC;;;;;kBASxC,CAAC;AAMZ,eAAO,MAAM,2CAA2C;;;;;;kBAU7C,CAAC;AAEZ,eAAO,MAAM,mCAAmC;;;;;;kBAUrC,CAAC"}
|
|
@@ -75,6 +75,34 @@ export const AdminDispatchReviewedEventSchema = z
|
|
|
75
75
|
ids: z.object({}).strict(),
|
|
76
76
|
})
|
|
77
77
|
.strict();
|
|
78
|
+
// An admin forced a display-name reset on a member. The target's displayName is
|
|
79
|
+
// a publicUsers-mirrored field; the actor is an admin, never the member, which
|
|
80
|
+
// is why this is separate from profile.displayNameChanged.
|
|
81
|
+
export const AdminDisplayNameResetForcedEventSchema = z
|
|
82
|
+
.object({
|
|
83
|
+
type: z.literal('admin.displayNameResetForced'),
|
|
84
|
+
ids: z
|
|
85
|
+
.object({
|
|
86
|
+
userId: z.string().min(1),
|
|
87
|
+
})
|
|
88
|
+
.strict(),
|
|
89
|
+
})
|
|
90
|
+
.strict();
|
|
91
|
+
// A hall content change request was APPROVED — the only decision that writes
|
|
92
|
+
// anything. An approval updates the public Work shell and, on the realm grain,
|
|
93
|
+
// the Realm doc, so both ids ride the event; `workRealmId` is absent on the hall
|
|
94
|
+
// grains. A denial changes no content and emits nothing.
|
|
95
|
+
export const HallContentChangeRequestApprovedEventSchema = z
|
|
96
|
+
.object({
|
|
97
|
+
type: z.literal('hallContentChangeRequest.approved'),
|
|
98
|
+
ids: z
|
|
99
|
+
.object({
|
|
100
|
+
workProjectId: z.string().min(1),
|
|
101
|
+
workRealmId: z.string().min(1).optional(),
|
|
102
|
+
})
|
|
103
|
+
.strict(),
|
|
104
|
+
})
|
|
105
|
+
.strict();
|
|
78
106
|
export const ViolationAppealSubmittedEventSchema = z
|
|
79
107
|
.object({
|
|
80
108
|
type: z.literal('violation.appealSubmitted'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-events-admin.js","sourceRoot":"","sources":["../../src/media/domain-events-admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,O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,MAAM,EAAE;CAC3B,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC;KACjD,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAC5C,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC/B,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { FileOriginSchema } from \"./file-origin.js\";\n\n// DomainEvent schemas for the admin/moderation domain — content violations,\n// threshold-library review decisions, admin dispatch, and appeals. Assembled\n// into the discriminated union in ./domain-events.ts.\n\nexport const ModerationViolationCreatedEventSchema = z\n .object({\n type: z.literal('moderation.violationCreated'),\n ids: z\n .object({\n userId: z.string().min(1),\n violationId: z.string().min(1),\n fileOrigin: FileOriginSchema,\n pendingMediaId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const ThresholdLibraryApprovedEventSchema = z\n .object({\n type: z.literal('thresholdLibrary.approved'),\n ids: z\n .object({\n thresholdItemId: z.string().min(1),\n hallItemId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const ThresholdLibraryNeedsRevisionEventSchema = z\n .object({\n type: z.literal('thresholdLibrary.needsRevision'),\n ids: z\n .object({\n thresholdItemId: z.string().min(1),\n hallItemId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AdminDispatchSystemMarkedEventSchema = z\n .object({\n type: z.literal('adminDispatch.systemMarked'),\n ids: z\n .object({\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AdminDispatchThreadUpdatedEventSchema = z\n .object({\n type: z.literal('adminDispatch.threadUpdated'),\n ids: z\n .object({\n adminDispatchId: z.string().min(1).nullable(),\n })\n .strict(),\n })\n .strict();\n\nexport const AdminAppealReviewedEventSchema = z\n .object({\n type: z.literal('admin.appealReviewed'),\n ids: z\n .object({\n violationId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AdminDispatchReviewedEventSchema = z\n .object({\n type: z.literal('admin.adminDispatchReviewed'),\n ids: z.object({}).strict(),\n })\n .strict();\n\nexport const ViolationAppealSubmittedEventSchema = z\n .object({\n type: z.literal('violation.appealSubmitted'),\n ids: z\n .object({\n userId: z.string().min(1),\n violationId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n"]}
|
|
1
|
+
{"version":3,"file":"domain-events-admin.js","sourceRoot":"","sources":["../../src/media/domain-events-admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,4EAA4E;AAC5E,6EAA6E;AAC7E,sDAAsD;AAEtD,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC;KACnD,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IAC9C,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9B,UAAU,EAAE,gBAAgB;QAC5B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAClC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC;KACjD,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CA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CAAC;QAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;KAC1C,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC;KACjD,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAC5C,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC/B,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { FileOriginSchema } from \"./file-origin.js\";\n\n// DomainEvent schemas for the admin/moderation domain — content violations,\n// threshold-library review decisions, admin dispatch, and appeals. Assembled\n// into the discriminated union in ./domain-events.ts.\n\nexport const ModerationViolationCreatedEventSchema = z\n .object({\n type: z.literal('moderation.violationCreated'),\n ids: z\n .object({\n userId: z.string().min(1),\n violationId: z.string().min(1),\n fileOrigin: FileOriginSchema,\n pendingMediaId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const ThresholdLibraryApprovedEventSchema = z\n .object({\n type: z.literal('thresholdLibrary.approved'),\n ids: z\n .object({\n thresholdItemId: z.string().min(1),\n hallItemId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const ThresholdLibraryNeedsRevisionEventSchema = z\n .object({\n type: z.literal('thresholdLibrary.needsRevision'),\n ids: z\n .object({\n thresholdItemId: z.string().min(1),\n hallItemId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AdminDispatchSystemMarkedEventSchema = z\n .object({\n type: z.literal('adminDispatch.systemMarked'),\n ids: z\n .object({\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AdminDispatchThreadUpdatedEventSchema = z\n .object({\n type: z.literal('adminDispatch.threadUpdated'),\n ids: z\n .object({\n adminDispatchId: z.string().min(1).nullable(),\n })\n .strict(),\n })\n .strict();\n\nexport const AdminAppealReviewedEventSchema = z\n .object({\n type: z.literal('admin.appealReviewed'),\n ids: z\n .object({\n violationId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AdminDispatchReviewedEventSchema = z\n .object({\n type: z.literal('admin.adminDispatchReviewed'),\n ids: z.object({}).strict(),\n })\n .strict();\n\n// An admin forced a display-name reset on a member. The target's displayName is\n// a publicUsers-mirrored field; the actor is an admin, never the member, which\n// is why this is separate from profile.displayNameChanged.\nexport const AdminDisplayNameResetForcedEventSchema = z\n .object({\n type: z.literal('admin.displayNameResetForced'),\n ids: z\n .object({\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\n// A hall content change request was APPROVED — the only decision that writes\n// anything. An approval updates the public Work shell and, on the realm grain,\n// the Realm doc, so both ids ride the event; `workRealmId` is absent on the hall\n// grains. A denial changes no content and emits nothing.\nexport const HallContentChangeRequestApprovedEventSchema = z\n .object({\n type: z.literal('hallContentChangeRequest.approved'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n workRealmId: z.string().min(1).optional(),\n })\n .strict(),\n })\n .strict();\n\nexport const ViolationAppealSubmittedEventSchema = z\n .object({\n type: z.literal('violation.appealSubmitted'),\n ids: z\n .object({\n userId: z.string().min(1),\n violationId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n"]}
|
|
@@ -11,6 +11,12 @@ export declare const ProfilePreferencesUpdatedEventSchema: z.ZodObject<{
|
|
|
11
11
|
userId: z.ZodString;
|
|
12
12
|
}, z.core.$strict>;
|
|
13
13
|
}, z.core.$strict>;
|
|
14
|
+
export declare const ProfileDisplayNameChangedEventSchema: z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
16
|
+
ids: z.ZodObject<{
|
|
17
|
+
userId: z.ZodString;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
}, z.core.$strict>;
|
|
14
20
|
export declare const CraftSkillCreatedEventSchema: z.ZodObject<{
|
|
15
21
|
type: z.ZodLiteral<"craftSkill.created">;
|
|
16
22
|
ids: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-events-user.d.ts","sourceRoot":"","sources":["../../src/media/domain-events-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC;;;;;kBAKlC,CAAC;AAEZ,eAAO,MAAM,oCAAoC;;;;;kBAStC,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;kBAU9B,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;kBAU9B,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;kBAU9B,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;;;;;;kBAW1B,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;;;;;;kBAW1B,CAAC;AAEZ,eAAO,MAAM,sBAAsB;;;;;;kBAUxB,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;kBAS9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"domain-events-user.d.ts","sourceRoot":"","sources":["../../src/media/domain-events-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC;;;;;kBAKlC,CAAC;AAEZ,eAAO,MAAM,oCAAoC;;;;;kBAStC,CAAC;AAIZ,eAAO,MAAM,oCAAoC;;;;;kBAStC,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;kBAU9B,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;kBAU9B,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;kBAU9B,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;;;;;;kBAW1B,CAAC;AAEZ,eAAO,MAAM,wBAAwB;;;;;;;;;;;kBAW1B,CAAC;AAEZ,eAAO,MAAM,sBAAsB;;;;;;kBAUxB,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;kBAS9B,CAAC"}
|
|
@@ -18,6 +18,18 @@ export const ProfilePreferencesUpdatedEventSchema = z
|
|
|
18
18
|
.strict(),
|
|
19
19
|
})
|
|
20
20
|
.strict();
|
|
21
|
+
// Self-service display-name change. `displayName` is a publicUsers-mirrored
|
|
22
|
+
// field, so this is distinct from profile.preferencesUpdated (profile doc only).
|
|
23
|
+
export const ProfileDisplayNameChangedEventSchema = z
|
|
24
|
+
.object({
|
|
25
|
+
type: z.literal('profile.displayNameChanged'),
|
|
26
|
+
ids: z
|
|
27
|
+
.object({
|
|
28
|
+
userId: z.string().min(1),
|
|
29
|
+
})
|
|
30
|
+
.strict(),
|
|
31
|
+
})
|
|
32
|
+
.strict();
|
|
21
33
|
export const CraftSkillCreatedEventSchema = z
|
|
22
34
|
.object({
|
|
23
35
|
type: z.literal('craftSkill.created'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-events-user.js","sourceRoot":"","sources":["../../src/media/domain-events-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAC5E,gFAAgF;AAChF,sBAAsB;AAEtB,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;IACzC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;CACtD,CAAC;KACD,MAAM,EAAE,CAAC;A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SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC7B,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC1B,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from \"zod\";\n\n// DomainEvent schemas for the user/identity domain — profile, craft skills,\n// follows, mentions, and auth status. Assembled into the discriminated union in\n// ./domain-events.ts.\n\nexport const ProfilePictureUpdatedEventSchema = z\n .object({\n type: z.literal('profile.pictureUpdated'),\n ids: z.object({ userId: z.string().min(1) }).strict(),\n })\n .strict();\n\nexport const ProfilePreferencesUpdatedEventSchema = z\n .object({\n type: z.literal('profile.preferencesUpdated'),\n ids: z\n .object({\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CraftSkillCreatedEventSchema = z\n .object({\n type: z.literal('craftSkill.created'),\n ids: z\n .object({\n userId: z.string().min(1),\n craftSkillId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CraftSkillUpdatedEventSchema = z\n .object({\n type: z.literal('craftSkill.updated'),\n ids: z\n .object({\n userId: z.string().min(1),\n craftSkillId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CraftSkillDeletedEventSchema = z\n .object({\n type: z.literal('craftSkill.deleted'),\n ids: z\n .object({\n userId: z.string().min(1),\n craftSkillId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const FollowCreatedEventSchema = z\n .object({\n type: z.literal('follow.created'),\n ids: z\n .object({\n followerUid: z.string().min(1),\n targetType: z.enum(['user', 'workProject', 'workRealm']),\n targetId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const FollowRemovedEventSchema = z\n .object({\n type: z.literal('follow.removed'),\n ids: z\n .object({\n followerUid: z.string().min(1),\n targetType: z.enum(['user', 'workProject', 'workRealm']),\n targetId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const MentionReadEventSchema = z\n .object({\n type: z.literal('mention.read'),\n ids: z\n .object({\n userId: z.string().min(1),\n mentionId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AuthStatusChangedEventSchema = z\n .object({\n type: z.literal('auth.statusChanged'),\n ids: z\n .object({\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n"]}
|
|
1
|
+
{"version":3,"file":"domain-events-user.js","sourceRoot":"","sources":["../../src/media/domain-events-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAC5E,gFAAgF;AAChF,sBAAsB;AAEtB,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;IACzC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;CACtD,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;IAC7C,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE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AAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IAC/B,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC7B,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC1B,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from \"zod\";\n\n// DomainEvent schemas for the user/identity domain — profile, craft skills,\n// follows, mentions, and auth status. Assembled into the discriminated union in\n// ./domain-events.ts.\n\nexport const ProfilePictureUpdatedEventSchema = z\n .object({\n type: z.literal('profile.pictureUpdated'),\n ids: z.object({ userId: z.string().min(1) }).strict(),\n })\n .strict();\n\nexport const ProfilePreferencesUpdatedEventSchema = z\n .object({\n type: z.literal('profile.preferencesUpdated'),\n ids: z\n .object({\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\n// Self-service display-name change. `displayName` is a publicUsers-mirrored\n// field, so this is distinct from profile.preferencesUpdated (profile doc only).\nexport const ProfileDisplayNameChangedEventSchema = z\n .object({\n type: z.literal('profile.displayNameChanged'),\n ids: z\n .object({\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CraftSkillCreatedEventSchema = z\n .object({\n type: z.literal('craftSkill.created'),\n ids: z\n .object({\n userId: z.string().min(1),\n craftSkillId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CraftSkillUpdatedEventSchema = z\n .object({\n type: z.literal('craftSkill.updated'),\n ids: z\n .object({\n userId: z.string().min(1),\n craftSkillId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CraftSkillDeletedEventSchema = z\n .object({\n type: z.literal('craftSkill.deleted'),\n ids: z\n .object({\n userId: z.string().min(1),\n craftSkillId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const FollowCreatedEventSchema = z\n .object({\n type: z.literal('follow.created'),\n ids: z\n .object({\n followerUid: z.string().min(1),\n targetType: z.enum(['user', 'workProject', 'workRealm']),\n targetId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const FollowRemovedEventSchema = z\n .object({\n type: z.literal('follow.removed'),\n ids: z\n .object({\n followerUid: z.string().min(1),\n targetType: z.enum(['user', 'workProject', 'workRealm']),\n targetId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const MentionReadEventSchema = z\n .object({\n type: z.literal('mention.read'),\n ids: z\n .object({\n userId: z.string().min(1),\n mentionId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AuthStatusChangedEventSchema = z\n .object({\n type: z.literal('auth.statusChanged'),\n ids: z\n .object({\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n"]}
|
|
@@ -17,6 +17,7 @@ export declare const WorkProjectPublishedEventSchema: z.ZodObject<{
|
|
|
17
17
|
ids: z.ZodObject<{
|
|
18
18
|
workProjectId: z.ZodString;
|
|
19
19
|
userId: z.ZodString;
|
|
20
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
20
21
|
}, z.core.$strict>;
|
|
21
22
|
}, z.core.$strict>;
|
|
22
23
|
export declare const WorkProjectStakeSharesUpdatedEventSchema: z.ZodObject<{
|
|
@@ -148,6 +149,12 @@ export declare const WorkRealmCoverUpdatedEventSchema: z.ZodObject<{
|
|
|
148
149
|
workRealmId: z.ZodString;
|
|
149
150
|
}, z.core.$strict>;
|
|
150
151
|
}, z.core.$strict>;
|
|
152
|
+
export declare const WorkRealmDetailsUpdatedEventSchema: z.ZodObject<{
|
|
153
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
154
|
+
ids: z.ZodObject<{
|
|
155
|
+
workRealmId: z.ZodString;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
}, z.core.$strict>;
|
|
151
158
|
export declare const HallLibrarySubItemUpdatedEventSchema: z.ZodObject<{
|
|
152
159
|
type: z.ZodLiteral<"hallLibrary.subItemUpdated">;
|
|
153
160
|
ids: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-events-work.d.ts","sourceRoot":"","sources":["../../src/media/domain-events-work.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,6BAA6B;;;;;;kBAU/B,CAAC;AAEZ,eAAO,MAAM,6BAA6B;;;;;kBAK/B,CAAC;AAEZ,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"domain-events-work.d.ts","sourceRoot":"","sources":["../../src/media/domain-events-work.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,6BAA6B;;;;;;kBAU/B,CAAC;AAEZ,eAAO,MAAM,6BAA6B;;;;;kBAK/B,CAAC;AAEZ,eAAO,MAAM,+BAA+B;;;;;;;kBAWjC,CAAC;AAEZ,eAAO,MAAM,wCAAwC;;;;;kBAS1C,CAAC;AAEZ,eAAO,MAAM,0BAA0B;;;;;;;;kBAY5B,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;;kBAWhC,CAAC;AAEZ,eAAO,MAAM,8BAA8B;;;;;;;kBAWhC,CAAC;AAEZ,eAAO,MAAM,+BAA+B;;;;;;kBAUjC,CAAC;AAEZ,eAAO,MAAM,gCAAgC;;;;;;;kBAWlC,CAAC;AAEZ,eAAO,MAAM,iCAAiC;;;;;;;;kBAYnC,CAAC;AAEZ,eAAO,MAAM,oCAAoC;;;;;;;;kBAYtC,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;;;;kBAU3B,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;;kBAW9B,CAAC;AAEZ,eAAO,MAAM,sCAAsC;;;;;;;;kBAYxC,CAAC;AAKZ,eAAO,MAAM,2BAA2B;;;;;;kBAU7B,CAAC;AAEZ,eAAO,MAAM,kCAAkC;;;;;;;kBAWpC,CAAC;AAEZ,eAAO,MAAM,oCAAoC;;;;;;;kBAWtC,CAAC;AAEZ,eAAO,MAAM,kCAAkC;;;;;;;;;;;kBAWpC,CAAC;AAIZ,eAAO,MAAM,gCAAgC;;;;;kBASlC,CAAC;AAIZ,eAAO,MAAM,kCAAkC;;;;;kBASpC,CAAC;AAEZ,eAAO,MAAM,oCAAoC;;;;;;;;;;;;kBAYtC,CAAC;AAEZ,eAAO,MAAM,oCAAoC;;;;;kBAStC,CAAC"}
|
|
@@ -26,6 +26,7 @@ export const WorkProjectPublishedEventSchema = z
|
|
|
26
26
|
.object({
|
|
27
27
|
workProjectId: z.string().min(1),
|
|
28
28
|
userId: z.string().min(1),
|
|
29
|
+
workRealmId: z.string().min(1).optional(),
|
|
29
30
|
})
|
|
30
31
|
.strict(),
|
|
31
32
|
})
|
|
@@ -224,6 +225,18 @@ export const WorkRealmCoverUpdatedEventSchema = z
|
|
|
224
225
|
.strict(),
|
|
225
226
|
})
|
|
226
227
|
.strict();
|
|
228
|
+
// Realm details edited — the realm doc's own text/detail fields, as opposed to
|
|
229
|
+
// workRealm.coverUpdated's `realmCoverAssetId`.
|
|
230
|
+
export const WorkRealmDetailsUpdatedEventSchema = z
|
|
231
|
+
.object({
|
|
232
|
+
type: z.literal('workRealm.detailsUpdated'),
|
|
233
|
+
ids: z
|
|
234
|
+
.object({
|
|
235
|
+
workRealmId: z.string().min(1),
|
|
236
|
+
})
|
|
237
|
+
.strict(),
|
|
238
|
+
})
|
|
239
|
+
.strict();
|
|
227
240
|
export const HallLibrarySubItemUpdatedEventSchema = z
|
|
228
241
|
.object({
|
|
229
242
|
type: z.literal('hallLibrary.subItemUpdated'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-events-work.js","sourceRoot":"","sources":["../../src/media/domain-events-work.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yEAAyE;AACzE,uEAAuE;AACvE,4EAA4E;AAE5E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;IACtC,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACzB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KACjC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;IACtC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;CAC7D,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;KAC7C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;IACxC,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,aAAa,EAAE,C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AAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAChC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,mBAAmB,CAAC,CAAC;QAC/D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC1B,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAClD,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;IAC7C,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KACjC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["import { z } from \"zod\";\n\n// DomainEvent schemas for the work-project domain — work projects, guild\n// invites, auditions, commissions, hall library, and threshold-library\n// submission. Assembled into the discriminated union in ./domain-events.ts.\n\nexport const WorkProjectCreatedEventSchema = z\n .object({\n type: z.literal('workProject.created'),\n ids: z\n .object({\n userId: z.string().min(1),\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const WorkProjectUpdatedEventSchema = z\n .object({\n type: z.literal('workProject.updated'),\n ids: z.object({ workProjectId: z.string().min(1) }).strict(),\n })\n .strict();\n\nexport const WorkProjectPublishedEventSchema = z\n .object({\n type: z.literal('workProject.published'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const WorkProjectStakeSharesUpdatedEventSchema = z\n .object({\n type: z.literal('workProject.stakeSharesUpdated'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const GuildInviteSentEventSchema = z\n .object({\n type: z.literal('workProject.guildInviteSent'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n guildInviteId: z.string().min(1),\n inviterId: z.string().min(1),\n inviteeId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const GuildInviteAcceptedEventSchema = z\n .object({\n type: z.literal('workProject.guildInviteAccepted'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n guildInviteId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const GuildInviteDeclinedEventSchema = z\n .object({\n type: z.literal('workProject.guildInviteDeclined'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n guildInviteId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const GuildInviteCancelledEventSchema = z\n .object({\n type: z.literal('workProject.guildInviteCancelled'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n guildInviteId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AuditionPromptCreatedEventSchema = z\n .object({\n type: z.literal('audition.promptCreated'),\n ids: z\n .object({\n userId: z.string().min(1),\n auditionId: z.string().min(1),\n workProjectId: z.string().min(1).optional(),\n })\n .strict(),\n })\n .strict();\n\nexport const AuditionEntrySubmittedEventSchema = z\n .object({\n type: z.literal('audition.entryCreated'),\n ids: z\n .object({\n userId: z.string().min(1),\n auditionId: z.string().min(1),\n auditionEntryId: z.string().min(1),\n workProjectId: z.string().min(1).optional(),\n })\n .strict(),\n })\n .strict();\n\nexport const AuditionEntryVoteRecordedEventSchema = z\n .object({\n type: z.literal('audition.entryVoted'),\n ids: z\n .object({\n userId: z.string().min(1),\n auditionId: z.string().min(1),\n auditionEntryId: z.string().min(1),\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AuditionClosedEventSchema = z\n .object({\n type: z.literal('audition.closed'),\n ids: z\n .object({\n auditionId: z.string().min(1),\n workProjectId: z.string().min(1).optional(),\n })\n .strict(),\n })\n .strict();\n\nexport const CommissionCreatedEventSchema = z\n .object({\n type: z.literal('commission.created'),\n ids: z\n .object({\n userId: z.string().min(1),\n commissionListingId: z.string().min(1),\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CommissionProposalSubmittedEventSchema = z\n .object({\n type: z.literal('commission.commissionProposalSubmitted'),\n ids: z\n .object({\n userId: z.string().min(1),\n commissionListingId: z.string().min(1),\n workProjectId: z.string().min(1),\n commissionProposalId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\n// Commission closed — the closeCommission callable's terminal transition. A\n// commission listing is never deleted; closing is the only way it leaves the\n// board, so the event name says closed.\nexport const CommissionClosedEventSchema = z\n .object({\n type: z.literal('commission.closed'),\n ids: z\n .object({\n commissionListingId: z.string().min(1),\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CommissionProposalSavedEventSchema = z\n .object({\n type: z.literal('commission.commissionProposalSaved'),\n ids: z\n .object({\n commissionListingId: z.string().min(1),\n commissionProposalId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CommissionProposalRemovedEventSchema = z\n .object({\n type: z.literal('commission.commissionProposalRemoved'),\n ids: z\n .object({\n commissionListingId: z.string().min(1),\n commissionProposalId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const HallLibraryCoverUpdatedEventSchema = z\n .object({\n type: z.literal('hallLibrary.coverUpdated'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n itemType: z.enum(['tale', 'tune', 'television']),\n itemId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\n// Realm cover published — the 'realm-cover' upload origin's publication adapter\n// wrote `realmCoverAssetId` onto workRealms/{workRealmId}.\nexport const WorkRealmCoverUpdatedEventSchema = z\n .object({\n type: z.literal('workRealm.coverUpdated'),\n ids: z\n .object({\n workRealmId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const HallLibrarySubItemUpdatedEventSchema = z\n .object({\n type: z.literal('hallLibrary.subItemUpdated'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n itemType: z.enum(['chapter', 'tuneTrack', 'televisionEpisode']),\n parentId: z.string().min(1),\n itemId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const ThresholdLibrarySubmittedEventSchema = z\n .object({\n type: z.literal('thresholdLibrary.submitted'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n"]}
|
|
1
|
+
{"version":3,"file":"domain-events-work.js","sourceRoot":"","sources":["../../src/media/domain-events-work.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yEAAyE;AACzE,uEAAuE;AACvE,4EAA4E;AAE5E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;IACtC,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACzB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KACjC,CAAC;SACD,MAAM,EAAE;CACZ,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC;KAC3C,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;IACtC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;CAC7D,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC;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schemas for the work-project domain — work projects, guild\n// invites, auditions, commissions, hall library, and threshold-library\n// submission. Assembled into the discriminated union in ./domain-events.ts.\n\nexport const WorkProjectCreatedEventSchema = z\n .object({\n type: z.literal('workProject.created'),\n ids: z\n .object({\n userId: z.string().min(1),\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const WorkProjectUpdatedEventSchema = z\n .object({\n type: z.literal('workProject.updated'),\n ids: z.object({ workProjectId: z.string().min(1) }).strict(),\n })\n .strict();\n\nexport const WorkProjectPublishedEventSchema = z\n .object({\n type: z.literal('workProject.published'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n userId: z.string().min(1),\n workRealmId: z.string().min(1).optional(),\n })\n .strict(),\n })\n .strict();\n\nexport const WorkProjectStakeSharesUpdatedEventSchema = z\n .object({\n type: z.literal('workProject.stakeSharesUpdated'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const GuildInviteSentEventSchema = z\n .object({\n type: z.literal('workProject.guildInviteSent'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n guildInviteId: z.string().min(1),\n inviterId: z.string().min(1),\n inviteeId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const GuildInviteAcceptedEventSchema = z\n .object({\n type: z.literal('workProject.guildInviteAccepted'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n guildInviteId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const GuildInviteDeclinedEventSchema = z\n .object({\n type: z.literal('workProject.guildInviteDeclined'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n guildInviteId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const GuildInviteCancelledEventSchema = z\n .object({\n type: z.literal('workProject.guildInviteCancelled'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n guildInviteId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AuditionPromptCreatedEventSchema = z\n .object({\n type: z.literal('audition.promptCreated'),\n ids: z\n .object({\n userId: z.string().min(1),\n auditionId: z.string().min(1),\n workProjectId: z.string().min(1).optional(),\n })\n .strict(),\n })\n .strict();\n\nexport const AuditionEntrySubmittedEventSchema = z\n .object({\n type: z.literal('audition.entryCreated'),\n ids: z\n .object({\n userId: z.string().min(1),\n auditionId: z.string().min(1),\n auditionEntryId: z.string().min(1),\n workProjectId: z.string().min(1).optional(),\n })\n .strict(),\n })\n .strict();\n\nexport const AuditionEntryVoteRecordedEventSchema = z\n .object({\n type: z.literal('audition.entryVoted'),\n ids: z\n .object({\n userId: z.string().min(1),\n auditionId: z.string().min(1),\n auditionEntryId: z.string().min(1),\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const AuditionClosedEventSchema = z\n .object({\n type: z.literal('audition.closed'),\n ids: z\n .object({\n auditionId: z.string().min(1),\n workProjectId: z.string().min(1).optional(),\n })\n .strict(),\n })\n .strict();\n\nexport const CommissionCreatedEventSchema = z\n .object({\n type: z.literal('commission.created'),\n ids: z\n .object({\n userId: z.string().min(1),\n commissionListingId: z.string().min(1),\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CommissionProposalSubmittedEventSchema = z\n .object({\n type: z.literal('commission.commissionProposalSubmitted'),\n ids: z\n .object({\n userId: z.string().min(1),\n commissionListingId: z.string().min(1),\n workProjectId: z.string().min(1),\n commissionProposalId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\n// Commission closed — the closeCommission callable's terminal transition. A\n// commission listing is never deleted; closing is the only way it leaves the\n// board, so the event name says closed.\nexport const CommissionClosedEventSchema = z\n .object({\n type: z.literal('commission.closed'),\n ids: z\n .object({\n commissionListingId: z.string().min(1),\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CommissionProposalSavedEventSchema = z\n .object({\n type: z.literal('commission.commissionProposalSaved'),\n ids: z\n .object({\n commissionListingId: z.string().min(1),\n commissionProposalId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const CommissionProposalRemovedEventSchema = z\n .object({\n type: z.literal('commission.commissionProposalRemoved'),\n ids: z\n .object({\n commissionListingId: z.string().min(1),\n commissionProposalId: z.string().min(1),\n userId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const HallLibraryCoverUpdatedEventSchema = z\n .object({\n type: z.literal('hallLibrary.coverUpdated'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n itemType: z.enum(['tale', 'tune', 'television']),\n itemId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\n// Realm cover published — the 'realm-cover' upload origin's publication adapter\n// wrote `realmCoverAssetId` onto workRealms/{workRealmId}.\nexport const WorkRealmCoverUpdatedEventSchema = z\n .object({\n type: z.literal('workRealm.coverUpdated'),\n ids: z\n .object({\n workRealmId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\n// Realm details edited — the realm doc's own text/detail fields, as opposed to\n// workRealm.coverUpdated's `realmCoverAssetId`.\nexport const WorkRealmDetailsUpdatedEventSchema = z\n .object({\n type: z.literal('workRealm.detailsUpdated'),\n ids: z\n .object({\n workRealmId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const HallLibrarySubItemUpdatedEventSchema = z\n .object({\n type: z.literal('hallLibrary.subItemUpdated'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n itemType: z.enum(['chapter', 'tuneTrack', 'televisionEpisode']),\n parentId: z.string().min(1),\n itemId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n\nexport const ThresholdLibrarySubmittedEventSchema = z\n .object({\n type: z.literal('thresholdLibrary.submitted'),\n ids: z\n .object({\n workProjectId: z.string().min(1),\n })\n .strict(),\n })\n .strict();\n"]}
|
|
@@ -176,6 +176,7 @@ export declare const DomainEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
176
176
|
ids: z.ZodObject<{
|
|
177
177
|
workProjectId: z.ZodString;
|
|
178
178
|
userId: z.ZodString;
|
|
179
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
179
180
|
}, z.core.$strict>;
|
|
180
181
|
}, z.core.$strict>, z.ZodObject<{
|
|
181
182
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -297,6 +298,27 @@ export declare const DomainEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
297
298
|
userId: z.ZodString;
|
|
298
299
|
violationId: z.ZodString;
|
|
299
300
|
}, z.core.$strict>;
|
|
301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
302
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
303
|
+
ids: z.ZodObject<{
|
|
304
|
+
userId: z.ZodString;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
307
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
308
|
+
ids: z.ZodObject<{
|
|
309
|
+
userId: z.ZodString;
|
|
310
|
+
}, z.core.$strict>;
|
|
311
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
312
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
313
|
+
ids: z.ZodObject<{
|
|
314
|
+
workRealmId: z.ZodString;
|
|
315
|
+
}, z.core.$strict>;
|
|
316
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
317
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
318
|
+
ids: z.ZodObject<{
|
|
319
|
+
workProjectId: z.ZodString;
|
|
320
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
321
|
+
}, z.core.$strict>;
|
|
300
322
|
}, z.core.$strict>], "type">;
|
|
301
323
|
export type DomainEvent = z.infer<typeof DomainEventSchema>;
|
|
302
324
|
export type DomainEventIdsFor<T extends DomainEvent['type']> = Extract<DomainEvent, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-events.d.ts","sourceRoot":"","sources":["../../src/media/domain-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"domain-events.d.ts","sourceRoot":"","sources":["../../src/media/domain-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuDxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AAgBzC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA8C5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAI5D,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,IAAI,OAAO,CACpE,WAAW,EACX;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CACZ,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ProfilePictureUpdatedEventSchema, ProfilePreferencesUpdatedEventSchema, CraftSkillCreatedEventSchema, CraftSkillUpdatedEventSchema, CraftSkillDeletedEventSchema, FollowCreatedEventSchema, FollowRemovedEventSchema, MentionReadEventSchema, AuthStatusChangedEventSchema, } from "./domain-events-user.js";
|
|
3
|
-
import { WorkProjectCreatedEventSchema, WorkProjectUpdatedEventSchema, WorkProjectPublishedEventSchema, WorkProjectStakeSharesUpdatedEventSchema, GuildInviteSentEventSchema, GuildInviteAcceptedEventSchema, GuildInviteDeclinedEventSchema, GuildInviteCancelledEventSchema, AuditionPromptCreatedEventSchema, AuditionEntrySubmittedEventSchema, AuditionEntryVoteRecordedEventSchema, AuditionClosedEventSchema, CommissionCreatedEventSchema, CommissionProposalSubmittedEventSchema, CommissionClosedEventSchema, CommissionProposalSavedEventSchema, CommissionProposalRemovedEventSchema, HallLibraryCoverUpdatedEventSchema, WorkRealmCoverUpdatedEventSchema, HallLibrarySubItemUpdatedEventSchema, ThresholdLibrarySubmittedEventSchema, } from "./domain-events-work.js";
|
|
2
|
+
import { ProfilePictureUpdatedEventSchema, ProfilePreferencesUpdatedEventSchema, CraftSkillCreatedEventSchema, CraftSkillUpdatedEventSchema, CraftSkillDeletedEventSchema, FollowCreatedEventSchema, FollowRemovedEventSchema, MentionReadEventSchema, AuthStatusChangedEventSchema, ProfileDisplayNameChangedEventSchema, } from "./domain-events-user.js";
|
|
3
|
+
import { WorkProjectCreatedEventSchema, WorkProjectUpdatedEventSchema, WorkProjectPublishedEventSchema, WorkProjectStakeSharesUpdatedEventSchema, GuildInviteSentEventSchema, GuildInviteAcceptedEventSchema, GuildInviteDeclinedEventSchema, GuildInviteCancelledEventSchema, AuditionPromptCreatedEventSchema, AuditionEntrySubmittedEventSchema, AuditionEntryVoteRecordedEventSchema, AuditionClosedEventSchema, CommissionCreatedEventSchema, CommissionProposalSubmittedEventSchema, CommissionClosedEventSchema, CommissionProposalSavedEventSchema, CommissionProposalRemovedEventSchema, HallLibraryCoverUpdatedEventSchema, WorkRealmCoverUpdatedEventSchema, WorkRealmDetailsUpdatedEventSchema, HallLibrarySubItemUpdatedEventSchema, ThresholdLibrarySubmittedEventSchema, } from "./domain-events-work.js";
|
|
4
4
|
import { SquareStreetzPostCreatedEventSchema, SquareStreetzPostLikedEventSchema, SquareStreetzPostUnlikedEventSchema, } from "./domain-events-social.js";
|
|
5
|
-
import { ModerationViolationCreatedEventSchema, ThresholdLibraryApprovedEventSchema, ThresholdLibraryNeedsRevisionEventSchema, AdminDispatchSystemMarkedEventSchema, AdminDispatchThreadUpdatedEventSchema, AdminAppealReviewedEventSchema, AdminDispatchReviewedEventSchema, ViolationAppealSubmittedEventSchema, } from "./domain-events-admin.js";
|
|
5
|
+
import { ModerationViolationCreatedEventSchema, ThresholdLibraryApprovedEventSchema, ThresholdLibraryNeedsRevisionEventSchema, AdminDispatchSystemMarkedEventSchema, AdminDispatchThreadUpdatedEventSchema, AdminAppealReviewedEventSchema, AdminDispatchReviewedEventSchema, ViolationAppealSubmittedEventSchema, AdminDisplayNameResetForcedEventSchema, HallContentChangeRequestApprovedEventSchema, } from "./domain-events-admin.js";
|
|
6
6
|
export * from "./domain-events-user.js";
|
|
7
7
|
export * from "./domain-events-work.js";
|
|
8
8
|
export * from "./domain-events-social.js";
|
|
@@ -62,5 +62,9 @@ export const DomainEventSchema = z.discriminatedUnion('type', [
|
|
|
62
62
|
MentionReadEventSchema,
|
|
63
63
|
AuthStatusChangedEventSchema,
|
|
64
64
|
ViolationAppealSubmittedEventSchema,
|
|
65
|
+
ProfileDisplayNameChangedEventSchema,
|
|
66
|
+
AdminDisplayNameResetForcedEventSchema,
|
|
67
|
+
WorkRealmDetailsUpdatedEventSchema,
|
|
68
|
+
HallContentChangeRequestApprovedEventSchema,
|
|
65
69
|
]);
|
|
66
70
|
//# sourceMappingURL=domain-events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-events.js","sourceRoot":"","sources":["../../src/media/domain-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,gCAAgC,EAChC,oCAAoC,EACpC,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"domain-events.js","sourceRoot":"","sources":["../../src/media/domain-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,gCAAgC,EAChC,oCAAoC,EACpC,4BAA4B,EAC5B,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,4BAA4B,EAC5B,oCAAoC,GACrC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,wCAAwC,EACxC,0BAA0B,EAC1B,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAC/B,gCAAgC,EAChC,iCAAiC,EACjC,oCAAoC,EACpC,yBAAyB,EACzB,4BAA4B,EAC5B,sCAAsC,EACtC,2BAA2B,EAC3B,kCAAkC,EAClC,oCAAoC,EACpC,kCAAkC,EAClC,gCAAgC,EAChC,kCAAkC,EAClC,oCAAoC,EACpC,oCAAoC,GACrC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mCAAmC,EACnC,iCAAiC,EACjC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,wCAAwC,EACxC,oCAAoC,EACpC,qCAAqC,EACrC,8BAA8B,EAC9B,gCAAgC,EAChC,mCAAmC,EACnC,sCAAsC,EACtC,2CAA2C,GAC5C,MAAM,0BAA0B,CAAC;AAElC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AAEzC,+EAA+E;AAC/E,uEAAuE;AACvE,6EAA6E;AAC7E,gEAAgE;AAChE,EAAE;AACF,gDAAgD;AAChD,0CAA0C;AAC1C,iDAAiD;AACjD,mEAAmE;AACnE,EAAE;AACF,0EAA0E;AAC1E,mEAAmE;AACnE,+EAA+E;AAE/E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC5D,gCAAgC;IAChC,4BAA4B;IAC5B,mCAAmC;IACnC,gCAAgC;IAChC,iCAAiC;IACjC,4BAA4B;IAC5B,sCAAsC;IACtC,6BAA6B;IAC7B,kCAAkC;IAClC,gCAAgC;IAChC,oCAAoC;IACpC,qCAAqC;IACrC,wBAAwB;IACxB,wBAAwB;IACxB,iCAAiC;IACjC,mCAAmC;IACnC,oCAAoC;IACpC,4BAA4B;IAC5B,4BAA4B;IAC5B,6BAA6B;IAC7B,+BAA+B;IAC/B,wCAAwC;IACxC,0BAA0B;IAC1B,8BAA8B;IAC9B,8BAA8B;IAC9B,+BAA+B;IAC/B,oCAAoC;IACpC,yBAAyB;IACzB,2BAA2B;IAC3B,kCAAkC;IAClC,oCAAoC;IACpC,oCAAoC;IACpC,mCAAmC;IACnC,wCAAwC;IACxC,oCAAoC;IACpC,qCAAqC;IACrC,8BAA8B;IAC9B,gCAAgC;IAChC,sBAAsB;IACtB,4BAA4B;IAC5B,mCAAmC;IACnC,oCAAoC;IACpC,sCAAsC;IACtC,kCAAkC;IAClC,2CAA2C;CAC5C,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n ProfilePictureUpdatedEventSchema,\n ProfilePreferencesUpdatedEventSchema,\n CraftSkillCreatedEventSchema,\n CraftSkillUpdatedEventSchema,\n CraftSkillDeletedEventSchema,\n FollowCreatedEventSchema,\n FollowRemovedEventSchema,\n MentionReadEventSchema,\n AuthStatusChangedEventSchema,\n ProfileDisplayNameChangedEventSchema,\n} from \"./domain-events-user.js\";\nimport {\n WorkProjectCreatedEventSchema,\n WorkProjectUpdatedEventSchema,\n WorkProjectPublishedEventSchema,\n WorkProjectStakeSharesUpdatedEventSchema,\n GuildInviteSentEventSchema,\n GuildInviteAcceptedEventSchema,\n GuildInviteDeclinedEventSchema,\n GuildInviteCancelledEventSchema,\n AuditionPromptCreatedEventSchema,\n AuditionEntrySubmittedEventSchema,\n AuditionEntryVoteRecordedEventSchema,\n AuditionClosedEventSchema,\n CommissionCreatedEventSchema,\n CommissionProposalSubmittedEventSchema,\n CommissionClosedEventSchema,\n CommissionProposalSavedEventSchema,\n CommissionProposalRemovedEventSchema,\n HallLibraryCoverUpdatedEventSchema,\n WorkRealmCoverUpdatedEventSchema,\n WorkRealmDetailsUpdatedEventSchema,\n HallLibrarySubItemUpdatedEventSchema,\n ThresholdLibrarySubmittedEventSchema,\n} from \"./domain-events-work.js\";\nimport {\n SquareStreetzPostCreatedEventSchema,\n SquareStreetzPostLikedEventSchema,\n SquareStreetzPostUnlikedEventSchema,\n} from \"./domain-events-social.js\";\nimport {\n ModerationViolationCreatedEventSchema,\n ThresholdLibraryApprovedEventSchema,\n ThresholdLibraryNeedsRevisionEventSchema,\n AdminDispatchSystemMarkedEventSchema,\n AdminDispatchThreadUpdatedEventSchema,\n AdminAppealReviewedEventSchema,\n AdminDispatchReviewedEventSchema,\n ViolationAppealSubmittedEventSchema,\n AdminDisplayNameResetForcedEventSchema,\n HallContentChangeRequestApprovedEventSchema,\n} from \"./domain-events-admin.js\";\n\nexport * from \"./domain-events-user.js\";\nexport * from \"./domain-events-work.js\";\nexport * from \"./domain-events-social.js\";\nexport * from \"./domain-events-admin.js\";\n\n// ============================================================================\n// DomainEvent — typed business actions emitted by mutations and upload\n// processors. The frontend registry (ttt-prod/src/lib/domain-events.ts) maps\n// each variant to a list of TanStack Query cache invalidations.\n//\n// Adding a new variant is a coordinated deploy:\n// 1. Add it here. Publish this package.\n// 2. Add a registry entry in ttt-prod. Deploy.\n// 3. Update producers (mutation hooks or processors) to emit it.\n//\n// The schema is .strict() end-to-end — unknown event types fail parse and\n// the consuming hook in ttt-prod logs to Sentry and skips the doc.\n// ============================================================================\n\nexport const DomainEventSchema = z.discriminatedUnion('type', [\n ProfilePictureUpdatedEventSchema,\n CraftSkillCreatedEventSchema,\n SquareStreetzPostCreatedEventSchema,\n AuditionPromptCreatedEventSchema,\n AuditionEntrySubmittedEventSchema,\n CommissionCreatedEventSchema,\n CommissionProposalSubmittedEventSchema,\n WorkProjectUpdatedEventSchema,\n HallLibraryCoverUpdatedEventSchema,\n WorkRealmCoverUpdatedEventSchema,\n HallLibrarySubItemUpdatedEventSchema,\n ModerationViolationCreatedEventSchema,\n FollowCreatedEventSchema,\n FollowRemovedEventSchema,\n SquareStreetzPostLikedEventSchema,\n SquareStreetzPostUnlikedEventSchema,\n ProfilePreferencesUpdatedEventSchema,\n CraftSkillDeletedEventSchema,\n CraftSkillUpdatedEventSchema,\n WorkProjectCreatedEventSchema,\n WorkProjectPublishedEventSchema,\n WorkProjectStakeSharesUpdatedEventSchema,\n GuildInviteSentEventSchema,\n GuildInviteAcceptedEventSchema,\n GuildInviteDeclinedEventSchema,\n GuildInviteCancelledEventSchema,\n AuditionEntryVoteRecordedEventSchema,\n AuditionClosedEventSchema,\n CommissionClosedEventSchema,\n CommissionProposalSavedEventSchema,\n CommissionProposalRemovedEventSchema,\n ThresholdLibrarySubmittedEventSchema,\n ThresholdLibraryApprovedEventSchema,\n ThresholdLibraryNeedsRevisionEventSchema,\n AdminDispatchSystemMarkedEventSchema,\n AdminDispatchThreadUpdatedEventSchema,\n AdminAppealReviewedEventSchema,\n AdminDispatchReviewedEventSchema,\n MentionReadEventSchema,\n AuthStatusChangedEventSchema,\n ViolationAppealSubmittedEventSchema,\n ProfileDisplayNameChangedEventSchema,\n AdminDisplayNameResetForcedEventSchema,\n WorkRealmDetailsUpdatedEventSchema,\n HallContentChangeRequestApprovedEventSchema,\n]);\n\nexport type DomainEvent = z.infer<typeof DomainEventSchema>;\n\n// Helper for callers that need to extract the ids type for a specific\n// event variant (e.g. registry entries in the consuming repo).\nexport type DomainEventIdsFor<T extends DomainEvent['type']> = Extract<\n DomainEvent,\n { type: T }\n>['ids'];\n\n\n\n\n\n"]}
|
|
@@ -181,6 +181,7 @@ export declare const PendingMediaResultSchema: z.ZodObject<{
|
|
|
181
181
|
ids: z.ZodObject<{
|
|
182
182
|
workProjectId: z.ZodString;
|
|
183
183
|
userId: z.ZodString;
|
|
184
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
184
185
|
}, z.core.$strict>;
|
|
185
186
|
}, z.core.$strict>, z.ZodObject<{
|
|
186
187
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -302,6 +303,27 @@ export declare const PendingMediaResultSchema: z.ZodObject<{
|
|
|
302
303
|
userId: z.ZodString;
|
|
303
304
|
violationId: z.ZodString;
|
|
304
305
|
}, z.core.$strict>;
|
|
306
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
307
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
308
|
+
ids: z.ZodObject<{
|
|
309
|
+
userId: z.ZodString;
|
|
310
|
+
}, z.core.$strict>;
|
|
311
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
312
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
313
|
+
ids: z.ZodObject<{
|
|
314
|
+
userId: z.ZodString;
|
|
315
|
+
}, z.core.$strict>;
|
|
316
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
317
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
318
|
+
ids: z.ZodObject<{
|
|
319
|
+
workRealmId: z.ZodString;
|
|
320
|
+
}, z.core.$strict>;
|
|
321
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
322
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
323
|
+
ids: z.ZodObject<{
|
|
324
|
+
workProjectId: z.ZodString;
|
|
325
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, z.core.$strict>;
|
|
305
327
|
}, z.core.$strict>], "type">>;
|
|
306
328
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
307
329
|
collection: z.ZodString;
|
|
@@ -622,6 +644,7 @@ export declare const PendingMediaCompletedSchema: z.ZodObject<{
|
|
|
622
644
|
ids: z.ZodObject<{
|
|
623
645
|
workProjectId: z.ZodString;
|
|
624
646
|
userId: z.ZodString;
|
|
647
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
625
648
|
}, z.core.$strict>;
|
|
626
649
|
}, z.core.$strict>, z.ZodObject<{
|
|
627
650
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -743,6 +766,27 @@ export declare const PendingMediaCompletedSchema: z.ZodObject<{
|
|
|
743
766
|
userId: z.ZodString;
|
|
744
767
|
violationId: z.ZodString;
|
|
745
768
|
}, z.core.$strict>;
|
|
769
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
770
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
771
|
+
ids: z.ZodObject<{
|
|
772
|
+
userId: z.ZodString;
|
|
773
|
+
}, z.core.$strict>;
|
|
774
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
775
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
776
|
+
ids: z.ZodObject<{
|
|
777
|
+
userId: z.ZodString;
|
|
778
|
+
}, z.core.$strict>;
|
|
779
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
780
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
781
|
+
ids: z.ZodObject<{
|
|
782
|
+
workRealmId: z.ZodString;
|
|
783
|
+
}, z.core.$strict>;
|
|
784
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
785
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
786
|
+
ids: z.ZodObject<{
|
|
787
|
+
workProjectId: z.ZodString;
|
|
788
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
789
|
+
}, z.core.$strict>;
|
|
746
790
|
}, z.core.$strict>], "type">>;
|
|
747
791
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
748
792
|
collection: z.ZodString;
|
|
@@ -1080,6 +1124,7 @@ export declare const PendingMediaRejectedSchema: z.ZodObject<{
|
|
|
1080
1124
|
ids: z.ZodObject<{
|
|
1081
1125
|
workProjectId: z.ZodString;
|
|
1082
1126
|
userId: z.ZodString;
|
|
1127
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
1083
1128
|
}, z.core.$strict>;
|
|
1084
1129
|
}, z.core.$strict>, z.ZodObject<{
|
|
1085
1130
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -1201,6 +1246,27 @@ export declare const PendingMediaRejectedSchema: z.ZodObject<{
|
|
|
1201
1246
|
userId: z.ZodString;
|
|
1202
1247
|
violationId: z.ZodString;
|
|
1203
1248
|
}, z.core.$strict>;
|
|
1249
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1250
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
1251
|
+
ids: z.ZodObject<{
|
|
1252
|
+
userId: z.ZodString;
|
|
1253
|
+
}, z.core.$strict>;
|
|
1254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1255
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
1256
|
+
ids: z.ZodObject<{
|
|
1257
|
+
userId: z.ZodString;
|
|
1258
|
+
}, z.core.$strict>;
|
|
1259
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1260
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
1261
|
+
ids: z.ZodObject<{
|
|
1262
|
+
workRealmId: z.ZodString;
|
|
1263
|
+
}, z.core.$strict>;
|
|
1264
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1265
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
1266
|
+
ids: z.ZodObject<{
|
|
1267
|
+
workProjectId: z.ZodString;
|
|
1268
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
}, z.core.$strict>;
|
|
1204
1270
|
}, z.core.$strict>], "type">>;
|
|
1205
1271
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1206
1272
|
collection: z.ZodString;
|
|
@@ -1580,6 +1646,7 @@ export declare const PendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1580
1646
|
ids: z.ZodObject<{
|
|
1581
1647
|
workProjectId: z.ZodString;
|
|
1582
1648
|
userId: z.ZodString;
|
|
1649
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
1583
1650
|
}, z.core.$strict>;
|
|
1584
1651
|
}, z.core.$strict>, z.ZodObject<{
|
|
1585
1652
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -1701,6 +1768,27 @@ export declare const PendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1701
1768
|
userId: z.ZodString;
|
|
1702
1769
|
violationId: z.ZodString;
|
|
1703
1770
|
}, z.core.$strict>;
|
|
1771
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1772
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
1773
|
+
ids: z.ZodObject<{
|
|
1774
|
+
userId: z.ZodString;
|
|
1775
|
+
}, z.core.$strict>;
|
|
1776
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1777
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
1778
|
+
ids: z.ZodObject<{
|
|
1779
|
+
userId: z.ZodString;
|
|
1780
|
+
}, z.core.$strict>;
|
|
1781
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1782
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
1783
|
+
ids: z.ZodObject<{
|
|
1784
|
+
workRealmId: z.ZodString;
|
|
1785
|
+
}, z.core.$strict>;
|
|
1786
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1787
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
1788
|
+
ids: z.ZodObject<{
|
|
1789
|
+
workProjectId: z.ZodString;
|
|
1790
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
1791
|
+
}, z.core.$strict>;
|
|
1704
1792
|
}, z.core.$strict>], "type">>;
|
|
1705
1793
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1706
1794
|
collection: z.ZodString;
|
|
@@ -2036,6 +2124,7 @@ export declare const PendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2036
2124
|
ids: z.ZodObject<{
|
|
2037
2125
|
workProjectId: z.ZodString;
|
|
2038
2126
|
userId: z.ZodString;
|
|
2127
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2039
2128
|
}, z.core.$strict>;
|
|
2040
2129
|
}, z.core.$strict>, z.ZodObject<{
|
|
2041
2130
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -2157,6 +2246,27 @@ export declare const PendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2157
2246
|
userId: z.ZodString;
|
|
2158
2247
|
violationId: z.ZodString;
|
|
2159
2248
|
}, z.core.$strict>;
|
|
2249
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2250
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
2251
|
+
ids: z.ZodObject<{
|
|
2252
|
+
userId: z.ZodString;
|
|
2253
|
+
}, z.core.$strict>;
|
|
2254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2255
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
2256
|
+
ids: z.ZodObject<{
|
|
2257
|
+
userId: z.ZodString;
|
|
2258
|
+
}, z.core.$strict>;
|
|
2259
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2260
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
2261
|
+
ids: z.ZodObject<{
|
|
2262
|
+
workRealmId: z.ZodString;
|
|
2263
|
+
}, z.core.$strict>;
|
|
2264
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2265
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
2266
|
+
ids: z.ZodObject<{
|
|
2267
|
+
workProjectId: z.ZodString;
|
|
2268
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2269
|
+
}, z.core.$strict>;
|
|
2160
2270
|
}, z.core.$strict>], "type">>;
|
|
2161
2271
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2162
2272
|
collection: z.ZodString;
|
|
@@ -2410,6 +2520,7 @@ export declare const ArchivedPendingMediaCompletedSchema: z.ZodObject<{
|
|
|
2410
2520
|
ids: z.ZodObject<{
|
|
2411
2521
|
workProjectId: z.ZodString;
|
|
2412
2522
|
userId: z.ZodString;
|
|
2523
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2413
2524
|
}, z.core.$strict>;
|
|
2414
2525
|
}, z.core.$strict>, z.ZodObject<{
|
|
2415
2526
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -2531,6 +2642,27 @@ export declare const ArchivedPendingMediaCompletedSchema: z.ZodObject<{
|
|
|
2531
2642
|
userId: z.ZodString;
|
|
2532
2643
|
violationId: z.ZodString;
|
|
2533
2644
|
}, z.core.$strict>;
|
|
2645
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2646
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
2647
|
+
ids: z.ZodObject<{
|
|
2648
|
+
userId: z.ZodString;
|
|
2649
|
+
}, z.core.$strict>;
|
|
2650
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2651
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
2652
|
+
ids: z.ZodObject<{
|
|
2653
|
+
userId: z.ZodString;
|
|
2654
|
+
}, z.core.$strict>;
|
|
2655
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2656
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
2657
|
+
ids: z.ZodObject<{
|
|
2658
|
+
workRealmId: z.ZodString;
|
|
2659
|
+
}, z.core.$strict>;
|
|
2660
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2661
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
2662
|
+
ids: z.ZodObject<{
|
|
2663
|
+
workProjectId: z.ZodString;
|
|
2664
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2665
|
+
}, z.core.$strict>;
|
|
2534
2666
|
}, z.core.$strict>], "type">>;
|
|
2535
2667
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2536
2668
|
collection: z.ZodString;
|
|
@@ -2870,6 +3002,7 @@ export declare const ArchivedPendingMediaRejectedSchema: z.ZodObject<{
|
|
|
2870
3002
|
ids: z.ZodObject<{
|
|
2871
3003
|
workProjectId: z.ZodString;
|
|
2872
3004
|
userId: z.ZodString;
|
|
3005
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
2873
3006
|
}, z.core.$strict>;
|
|
2874
3007
|
}, z.core.$strict>, z.ZodObject<{
|
|
2875
3008
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -2991,6 +3124,27 @@ export declare const ArchivedPendingMediaRejectedSchema: z.ZodObject<{
|
|
|
2991
3124
|
userId: z.ZodString;
|
|
2992
3125
|
violationId: z.ZodString;
|
|
2993
3126
|
}, z.core.$strict>;
|
|
3127
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3128
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
3129
|
+
ids: z.ZodObject<{
|
|
3130
|
+
userId: z.ZodString;
|
|
3131
|
+
}, z.core.$strict>;
|
|
3132
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3133
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
3134
|
+
ids: z.ZodObject<{
|
|
3135
|
+
userId: z.ZodString;
|
|
3136
|
+
}, z.core.$strict>;
|
|
3137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3138
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
3139
|
+
ids: z.ZodObject<{
|
|
3140
|
+
workRealmId: z.ZodString;
|
|
3141
|
+
}, z.core.$strict>;
|
|
3142
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3143
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
3144
|
+
ids: z.ZodObject<{
|
|
3145
|
+
workProjectId: z.ZodString;
|
|
3146
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
3147
|
+
}, z.core.$strict>;
|
|
2994
3148
|
}, z.core.$strict>], "type">>;
|
|
2995
3149
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2996
3150
|
collection: z.ZodString;
|
|
@@ -3245,6 +3399,7 @@ export declare const ArchivedPendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
3245
3399
|
ids: z.ZodObject<{
|
|
3246
3400
|
workProjectId: z.ZodString;
|
|
3247
3401
|
userId: z.ZodString;
|
|
3402
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
3248
3403
|
}, z.core.$strict>;
|
|
3249
3404
|
}, z.core.$strict>, z.ZodObject<{
|
|
3250
3405
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -3366,6 +3521,27 @@ export declare const ArchivedPendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
3366
3521
|
userId: z.ZodString;
|
|
3367
3522
|
violationId: z.ZodString;
|
|
3368
3523
|
}, z.core.$strict>;
|
|
3524
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3525
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
3526
|
+
ids: z.ZodObject<{
|
|
3527
|
+
userId: z.ZodString;
|
|
3528
|
+
}, z.core.$strict>;
|
|
3529
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3530
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
3531
|
+
ids: z.ZodObject<{
|
|
3532
|
+
userId: z.ZodString;
|
|
3533
|
+
}, z.core.$strict>;
|
|
3534
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3535
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
3536
|
+
ids: z.ZodObject<{
|
|
3537
|
+
workRealmId: z.ZodString;
|
|
3538
|
+
}, z.core.$strict>;
|
|
3539
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3540
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
3541
|
+
ids: z.ZodObject<{
|
|
3542
|
+
workProjectId: z.ZodString;
|
|
3543
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
3544
|
+
}, z.core.$strict>;
|
|
3369
3545
|
}, z.core.$strict>], "type">>;
|
|
3370
3546
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3371
3547
|
collection: z.ZodString;
|
|
@@ -3703,6 +3879,7 @@ export declare const ArchivedPendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
3703
3879
|
ids: z.ZodObject<{
|
|
3704
3880
|
workProjectId: z.ZodString;
|
|
3705
3881
|
userId: z.ZodString;
|
|
3882
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
3706
3883
|
}, z.core.$strict>;
|
|
3707
3884
|
}, z.core.$strict>, z.ZodObject<{
|
|
3708
3885
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -3824,6 +4001,27 @@ export declare const ArchivedPendingMediaSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
3824
4001
|
userId: z.ZodString;
|
|
3825
4002
|
violationId: z.ZodString;
|
|
3826
4003
|
}, z.core.$strict>;
|
|
4004
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4005
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
4006
|
+
ids: z.ZodObject<{
|
|
4007
|
+
userId: z.ZodString;
|
|
4008
|
+
}, z.core.$strict>;
|
|
4009
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4010
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
4011
|
+
ids: z.ZodObject<{
|
|
4012
|
+
userId: z.ZodString;
|
|
4013
|
+
}, z.core.$strict>;
|
|
4014
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4015
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
4016
|
+
ids: z.ZodObject<{
|
|
4017
|
+
workRealmId: z.ZodString;
|
|
4018
|
+
}, z.core.$strict>;
|
|
4019
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4020
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
4021
|
+
ids: z.ZodObject<{
|
|
4022
|
+
workProjectId: z.ZodString;
|
|
4023
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
4024
|
+
}, z.core.$strict>;
|
|
3827
4025
|
}, z.core.$strict>], "type">>;
|
|
3828
4026
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3829
4027
|
collection: z.ZodString;
|
|
@@ -4083,6 +4281,7 @@ export declare const ArchivedPendingMediaDocSchema: z.ZodUnion<readonly [z.ZodDi
|
|
|
4083
4281
|
ids: z.ZodObject<{
|
|
4084
4282
|
workProjectId: z.ZodString;
|
|
4085
4283
|
userId: z.ZodString;
|
|
4284
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
4086
4285
|
}, z.core.$strict>;
|
|
4087
4286
|
}, z.core.$strict>, z.ZodObject<{
|
|
4088
4287
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -4204,6 +4403,27 @@ export declare const ArchivedPendingMediaDocSchema: z.ZodUnion<readonly [z.ZodDi
|
|
|
4204
4403
|
userId: z.ZodString;
|
|
4205
4404
|
violationId: z.ZodString;
|
|
4206
4405
|
}, z.core.$strict>;
|
|
4406
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4407
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
4408
|
+
ids: z.ZodObject<{
|
|
4409
|
+
userId: z.ZodString;
|
|
4410
|
+
}, z.core.$strict>;
|
|
4411
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4412
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
4413
|
+
ids: z.ZodObject<{
|
|
4414
|
+
userId: z.ZodString;
|
|
4415
|
+
}, z.core.$strict>;
|
|
4416
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4417
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
4418
|
+
ids: z.ZodObject<{
|
|
4419
|
+
workRealmId: z.ZodString;
|
|
4420
|
+
}, z.core.$strict>;
|
|
4421
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4422
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
4423
|
+
ids: z.ZodObject<{
|
|
4424
|
+
workProjectId: z.ZodString;
|
|
4425
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
4426
|
+
}, z.core.$strict>;
|
|
4207
4427
|
}, z.core.$strict>], "type">>;
|
|
4208
4428
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4209
4429
|
collection: z.ZodString;
|
|
@@ -4541,6 +4761,7 @@ export declare const ArchivedPendingMediaDocSchema: z.ZodUnion<readonly [z.ZodDi
|
|
|
4541
4761
|
ids: z.ZodObject<{
|
|
4542
4762
|
workProjectId: z.ZodString;
|
|
4543
4763
|
userId: z.ZodString;
|
|
4764
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
4544
4765
|
}, z.core.$strict>;
|
|
4545
4766
|
}, z.core.$strict>, z.ZodObject<{
|
|
4546
4767
|
type: z.ZodLiteral<"workProject.stakeSharesUpdated">;
|
|
@@ -4662,6 +4883,27 @@ export declare const ArchivedPendingMediaDocSchema: z.ZodUnion<readonly [z.ZodDi
|
|
|
4662
4883
|
userId: z.ZodString;
|
|
4663
4884
|
violationId: z.ZodString;
|
|
4664
4885
|
}, z.core.$strict>;
|
|
4886
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4887
|
+
type: z.ZodLiteral<"profile.displayNameChanged">;
|
|
4888
|
+
ids: z.ZodObject<{
|
|
4889
|
+
userId: z.ZodString;
|
|
4890
|
+
}, z.core.$strict>;
|
|
4891
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4892
|
+
type: z.ZodLiteral<"admin.displayNameResetForced">;
|
|
4893
|
+
ids: z.ZodObject<{
|
|
4894
|
+
userId: z.ZodString;
|
|
4895
|
+
}, z.core.$strict>;
|
|
4896
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4897
|
+
type: z.ZodLiteral<"workRealm.detailsUpdated">;
|
|
4898
|
+
ids: z.ZodObject<{
|
|
4899
|
+
workRealmId: z.ZodString;
|
|
4900
|
+
}, z.core.$strict>;
|
|
4901
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4902
|
+
type: z.ZodLiteral<"hallContentChangeRequest.approved">;
|
|
4903
|
+
ids: z.ZodObject<{
|
|
4904
|
+
workProjectId: z.ZodString;
|
|
4905
|
+
workRealmId: z.ZodOptional<z.ZodString>;
|
|
4906
|
+
}, z.core.$strict>;
|
|
4665
4907
|
}, z.core.$strict>], "type">>;
|
|
4666
4908
|
affected: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4667
4909
|
collection: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pending-media.d.ts","sourceRoot":"","sources":["../../src/media/pending-media.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAS7B,eAAO,MAAM,+BAA+B;;;;;;;EAA0C,CAAC;AACvF,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"pending-media.d.ts","sourceRoot":"","sources":["../../src/media/pending-media.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAS7B,eAAO,MAAM,+BAA+B;;;;;;;EAA0C,CAAC;AACvF,eAAO,MAAM,wBAA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