@ttt-productions/ttt-core 0.79.96 → 0.79.98
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/doc-schemas/social.d.ts +50 -0
- package/dist/doc-schemas/social.d.ts.map +1 -1
- package/dist/doc-schemas/social.js +8 -10
- package/dist/doc-schemas/social.js.map +1 -1
- package/dist/schemas/admin-dispatch-actions.d.ts +24 -0
- package/dist/schemas/admin-dispatch-actions.d.ts.map +1 -1
- package/dist/schemas/admin-dispatch-actions.js +19 -3
- package/dist/schemas/admin-dispatch-actions.js.map +1 -1
- package/dist/schemas/admin.d.ts +82 -1
- package/dist/schemas/admin.d.ts.map +1 -1
- package/dist/schemas/admin.js +91 -35
- package/dist/schemas/admin.js.map +1 -1
- package/dist/schemas/auditions.d.ts +6 -0
- package/dist/schemas/auditions.d.ts.map +1 -1
- package/dist/schemas/auditions.js +6 -2
- package/dist/schemas/auditions.js.map +1 -1
- package/dist/schemas/chat.d.ts +7 -2
- package/dist/schemas/chat.d.ts.map +1 -1
- package/dist/schemas/chat.js +10 -10
- package/dist/schemas/chat.js.map +1 -1
- package/dist/schemas/commissions.d.ts +20 -0
- package/dist/schemas/commissions.d.ts.map +1 -1
- package/dist/schemas/commissions.js +20 -2
- package/dist/schemas/commissions.js.map +1 -1
- package/dist/schemas/conversation-files.d.ts +5 -0
- package/dist/schemas/conversation-files.d.ts.map +1 -1
- package/dist/schemas/conversation-files.js +4 -1
- package/dist/schemas/conversation-files.js.map +1 -1
- package/dist/schemas/hall-library.d.ts +115 -0
- package/dist/schemas/hall-library.d.ts.map +1 -1
- package/dist/schemas/hall-library.js +91 -2
- package/dist/schemas/hall-library.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/ncii.d.ts +269 -0
- package/dist/schemas/ncii.d.ts.map +1 -1
- package/dist/schemas/ncii.js +46 -26
- package/dist/schemas/ncii.js.map +1 -1
- package/dist/schemas/notification.d.ts +13 -7
- package/dist/schemas/notification.d.ts.map +1 -1
- package/dist/schemas/notification.js +14 -32
- package/dist/schemas/notification.js.map +1 -1
- package/dist/schemas/payments.d.ts +33 -0
- package/dist/schemas/payments.d.ts.map +1 -1
- package/dist/schemas/payments.js +18 -2
- package/dist/schemas/payments.js.map +1 -1
- package/dist/schemas/safety.d.ts +234 -0
- package/dist/schemas/safety.d.ts.map +1 -1
- package/dist/schemas/safety.js +79 -43
- package/dist/schemas/safety.js.map +1 -1
- package/dist/schemas/stake-share-operation.d.ts +5 -0
- package/dist/schemas/stake-share-operation.d.ts.map +1 -1
- package/dist/schemas/stake-share-operation.js +8 -13
- package/dist/schemas/stake-share-operation.js.map +1 -1
- package/dist/schemas/uploads.d.ts +27 -0
- package/dist/schemas/uploads.d.ts.map +1 -1
- package/dist/schemas/uploads.js +19 -0
- package/dist/schemas/uploads.js.map +1 -1
- package/dist/schemas/users.d.ts +57 -0
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/users.js +47 -7
- package/dist/schemas/users.js.map +1 -1
- package/dist/schemas/utility.d.ts +40 -2
- package/dist/schemas/utility.d.ts.map +1 -1
- package/dist/schemas/utility.js +37 -5
- package/dist/schemas/utility.js.map +1 -1
- package/dist/schemas/work-project-management.d.ts +55 -3
- package/dist/schemas/work-project-management.d.ts.map +1 -1
- package/dist/schemas/work-project-management.js +56 -20
- package/dist/schemas/work-project-management.js.map +1 -1
- package/package.json +2 -2
|
@@ -96,6 +96,56 @@ export declare const SquareStreetzPostSchema: z.ZodObject<{
|
|
|
96
96
|
}>>;
|
|
97
97
|
}, z.core.$strip>;
|
|
98
98
|
export type SquareStreetzPost = z.infer<typeof SquareStreetzPostSchema>;
|
|
99
|
+
export declare const CreateSquareStreetzTextPostResultSchema: z.ZodObject<{
|
|
100
|
+
post: z.ZodObject<{
|
|
101
|
+
postId: z.ZodString;
|
|
102
|
+
createdBy: z.ZodObject<{
|
|
103
|
+
uid: z.ZodString;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
authorId: z.ZodString;
|
|
106
|
+
content: z.ZodString;
|
|
107
|
+
mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
108
|
+
type: z.ZodEnum<{
|
|
109
|
+
user: "user";
|
|
110
|
+
workProject: "workProject";
|
|
111
|
+
workRealm: "workRealm";
|
|
112
|
+
audition: "audition";
|
|
113
|
+
commission: "commission";
|
|
114
|
+
}>;
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
placeholder: z.ZodString;
|
|
117
|
+
}, z.core.$strict>>>;
|
|
118
|
+
relatedIds: z.ZodArray<z.ZodString>;
|
|
119
|
+
mediaAssetId: z.ZodOptional<z.ZodString>;
|
|
120
|
+
mediaType: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
image: "image";
|
|
122
|
+
video: "video";
|
|
123
|
+
audio: "audio";
|
|
124
|
+
other: "other";
|
|
125
|
+
}>>;
|
|
126
|
+
createdAt: z.ZodNumber;
|
|
127
|
+
likes: z.ZodNumber;
|
|
128
|
+
postType: z.ZodOptional<z.ZodEnum<{
|
|
129
|
+
PROFILE_PICTURE_UPDATE: "PROFILE_PICTURE_UPDATE";
|
|
130
|
+
NEW_CRAFT_SKILL: "NEW_CRAFT_SKILL";
|
|
131
|
+
NEW_ARTISAN_CREATOR: "NEW_ARTISAN_CREATOR";
|
|
132
|
+
COMMISSION_ACCEPTED: "COMMISSION_ACCEPTED";
|
|
133
|
+
DELETE_CRAFT_SKILL: "DELETE_CRAFT_SKILL";
|
|
134
|
+
USER_POST: "USER_POST";
|
|
135
|
+
NEW_WORK_PROJECT: "NEW_WORK_PROJECT";
|
|
136
|
+
LIBRARY_PUBLISHED: "LIBRARY_PUBLISHED";
|
|
137
|
+
NEW_AUDITION: "NEW_AUDITION";
|
|
138
|
+
NEW_COMMISSION: "NEW_COMMISSION";
|
|
139
|
+
}>>;
|
|
140
|
+
relatedAssetId: z.ZodOptional<z.ZodString>;
|
|
141
|
+
hidden: z.ZodBoolean;
|
|
142
|
+
hiddenBy: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
direct: "direct";
|
|
144
|
+
cascade: "cascade";
|
|
145
|
+
}>>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
export type CreateSquareStreetzTextPostResult = z.infer<typeof CreateSquareStreetzTextPostResultSchema>;
|
|
99
149
|
/**
|
|
100
150
|
* The create/announcement transport payload for a SquareStreetz post — the exact input
|
|
101
151
|
* `runManageSquareStreetzPost` accepts. Every enqueue site (the durable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/social.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"social.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/social.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB;;+EAE+E;AAC/E,eAAO,MAAM,eAAe;;;;;EAA+C,CAAC;AAC5E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAGxD;;+EAE+E;AAC/E,eAAO,MAAM,0BAA0B;;;;EAA4C,CAAC;AACpF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;EAWtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqClC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAA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AC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAIxE,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// Social Firestore document SCHEMAS — SquareStreetz posts, mention history, and
|
|
2
|
-
// follow edges. Types inferred via z.infer.
|
|
3
|
-
// ../doc-schemas/payments.ts. SquareStreetzPostPayload is a transport shape, not a
|
|
4
|
-
// stored doc — it stays in ../types/social.ts.)
|
|
2
|
+
// follow edges. Types inferred via z.infer.
|
|
5
3
|
import { z } from 'zod';
|
|
6
4
|
import { MentionSchema, SquareStreetzPostMentionsSchema, refineMentionCorrespondence } from '../media/atoms.js';
|
|
7
5
|
import { FollowableTargetTypeSchema } from '../schemas/social.js';
|
|
@@ -66,12 +64,8 @@ export const SquareStreetzPostSchema = z.object({
|
|
|
66
64
|
postType: SquareStreetzPostTypeSchema.optional(),
|
|
67
65
|
relatedAssetId: z.string().optional(),
|
|
68
66
|
// Admin moderation hide (reversible). When true the post is suppressed from all
|
|
69
|
-
// feeds/lists; restored by clearing it. `hidden` is the ONLY
|
|
70
|
-
//
|
|
71
|
-
// text-moderation outcome (`moderationStatus`/`moderationReason`/`moderationLayer`)
|
|
72
|
-
// fields were removed 2026-07-03: nothing wrote them (posts are created only AFTER
|
|
73
|
-
// media finalize under pattern C), so they were dead. Durable owner:
|
|
74
|
-
// ttt-prod docs/design/streetz-social-feed.md.
|
|
67
|
+
// feeds/lists; restored by clearing it. `hidden` is the ONLY moderation flag on a post:
|
|
68
|
+
// posts are created only after their media finalizes, so no upload-gating flag exists.
|
|
75
69
|
hidden: z.boolean(),
|
|
76
70
|
hiddenBy: ModerationHiddenBySchema.optional(),
|
|
77
71
|
}).superRefine((val, ctx) => {
|
|
@@ -91,6 +85,10 @@ export const SquareStreetzPostSchema = z.object({
|
|
|
91
85
|
});
|
|
92
86
|
}
|
|
93
87
|
});
|
|
88
|
+
// The created post, homed beside its doc schema (see AddToMentionHistoryResultSchema for why).
|
|
89
|
+
export const CreateSquareStreetzTextPostResultSchema = z.object({
|
|
90
|
+
post: SquareStreetzPostSchema,
|
|
91
|
+
});
|
|
94
92
|
/**
|
|
95
93
|
* The create/announcement transport payload for a SquareStreetz post — the exact input
|
|
96
94
|
* `runManageSquareStreetzPost` accepts. Every enqueue site (the durable
|
|
@@ -153,7 +151,7 @@ export const MentionHistoryDocumentSchema = z.object({
|
|
|
153
151
|
// Declared HERE (not schemas/social.ts) because it composes MentionHistoryItemSchema
|
|
154
152
|
// and this module already imports schemas/social.js (FollowableTargetTypeSchema) — the
|
|
155
153
|
// reverse runtime import would be a module cycle. Re-exported on the ./schemas subpath
|
|
156
|
-
// via schemas/index.ts.
|
|
154
|
+
// via schemas/index.ts.
|
|
157
155
|
export const AddToMentionHistoryResultSchema = z.object({
|
|
158
156
|
success: z.literal(true),
|
|
159
157
|
itemCount: z.number().int().nonnegative(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/doc-schemas/social.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,iFAAiF;AACjF,mFAAmF;AACnF,gDAAgD;AAEhD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,+BAA+B,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,MAAM,WAAW,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,s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AAC/F,mGAAmG;AACnG,oGAAoG;AACpG,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAGH,4FAA4F;AAC5F,wFAAwF;AACxF,kGAAkG;AAClG,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAGH,mGAAmG;AACnG,mFAAmF;AACnF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC","sourcesContent":["// Social Firestore document SCHEMAS — SquareStreetz posts, mention history, and\n// follow edges. Types inferred via z.infer. (Pledge-payment ledger docs moved to\n// ../doc-schemas/payments.ts. SquareStreetzPostPayload is a transport shape, not a\n// stored doc — it stays in ../types/social.ts.)\n\nimport { z } from 'zod';\nimport { MentionSchema, SquareStreetzPostMentionsSchema, refineMentionCorrespondence } from '../media/atoms.js';\nimport { FollowableTargetTypeSchema } from '../schemas/social.js';\nimport { ContentMediaKindSchema } from './media-assets.js';\nimport { ModerationHiddenBySchema } from './moderation.js';\nimport { CraftSkillKindSchema, CraftSkillSourceReferenceSchema } from './user.js';\nimport { HallSubItemTypeSchema } from './content.js';\nimport { CRAFT_SKILL_TAG_VALUES } from '../constants/options.js';\nimport { WORK_PROJECT_TYPE_KEYS } from '../types/content.js';\n\n/** The ONE canonical display/transport media-type family (the 'other' bucket covers\n * non-previewable kinds). Distinct from the 3-value stored ContentMediaKindSchema\n * (doc-schemas/media-assets.ts) and media-schemas' generic MediaKindSchema. */\nexport const MediaTypeSchema = z.enum(['image', 'video', 'audio', 'other']);\nexport type MediaType = z.infer<typeof MediaTypeSchema>;\nconst mediaTypeSchema = MediaTypeSchema;\n\n/** Discriminates the announcement voice/mention shape of a NEW_AUDITION Streetz post:\n * 'work' names the creating work inline; 'platform' | 'sponsored' name TTT Productions\n * the company instead (no work mention). The ONE declaration of this union. */\nexport const AuditionAnnounceKindSchema = z.enum(['work', 'platform', 'sponsored']);\nexport type AuditionAnnounceKind = z.infer<typeof AuditionAnnounceKindSchema>;\n\nexport const SquareStreetzPostTypeSchema = z.enum([\n 'PROFILE_PICTURE_UPDATE',\n 'NEW_CRAFT_SKILL',\n 'NEW_ARTISAN_CREATOR',\n 'COMMISSION_ACCEPTED',\n 'DELETE_CRAFT_SKILL',\n 'USER_POST',\n 'NEW_WORK_PROJECT',\n 'LIBRARY_PUBLISHED',\n 'NEW_AUDITION',\n 'NEW_COMMISSION',\n]);\nexport type SquareStreetzPostType = z.infer<typeof SquareStreetzPostTypeSchema>;\n\n/**\n * squareStreetzFeed/activePosts/socialPosts/{postId}.\n *\n * **Media-pair invariant (MEDIA-101) — enforced by the superRefine below:**\n * `mediaAssetId` and `mediaType` are ONE unit — both present, or both absent.\n * Gateway URLs are extensionless, so nothing downstream can recover the kind from\n * the id: a post persisted with an asset and NO kind classifies as `'other'` and\n * `AppMediaPreview` renders a Download link INSTEAD of the image/video. The mirror\n * case (a kind with no asset) is an orphan that describes media the post does not\n * carry. Declared HERE, on the canonical doc schema (ARCH-102), so every writer\n * inherits it from the one post-create chokepoint's parse rather than each write\n * site re-deciding — and so no reader ever needs a `?? 'other'` guess.\n *\n * Announcement posts REFERENCE a source asset (audition `videoAssetId`, commission\n * `commissionAttachment.mediaAssetId`), so the kind always comes from that source —\n * it is never invented or defaulted at the post write.\n */\nexport const SquareStreetzPostSchema = z.object({\n postId: z.string(),\n createdBy: z.object({ uid: z.string() }),\n authorId: z.string(),\n content: z.string(),\n // The post mention list; each placeholder appears in `content` exactly once (refined below).\n mentions: SquareStreetzPostMentionsSchema.optional(),\n relatedIds: z.array(z.string()),\n /** Paired with `mediaType` — see the media-pair invariant above. */\n mediaAssetId: z.string().optional(),\n /** Paired with `mediaAssetId` — see the media-pair invariant above. */\n mediaType: mediaTypeSchema.optional(),\n createdAt: z.number(),\n likes: z.number(),\n postType: SquareStreetzPostTypeSchema.optional(),\n relatedAssetId: z.string().optional(),\n // Admin moderation hide (reversible). When true the post is suppressed from all\n // feeds/lists; restored by clearing it. `hidden` is the ONLY operative moderation\n // flag on a post — the legacy pre-finalize upload-gating (`visible`) and automated\n // text-moderation outcome (`moderationStatus`/`moderationReason`/`moderationLayer`)\n // fields were removed 2026-07-03: nothing wrote them (posts are created only AFTER\n // media finalize under pattern C), so they were dead. Durable owner:\n // ttt-prod docs/design/streetz-social-feed.md.\n hidden: z.boolean(),\n hiddenBy: ModerationHiddenBySchema.optional(),\n}).superRefine((val, ctx) => {\n refineMentionCorrespondence(val.content, val.mentions, ctx);\n if (val.mediaAssetId !== undefined && val.mediaType === undefined) {\n ctx.addIssue({\n code: 'custom',\n path: ['mediaType'],\n message: 'mediaType is required whenever a post carries mediaAssetId (MEDIA-101: an extensionless gateway URL with no kind renders a Download link instead of the media)',\n });\n }\n if (val.mediaType !== undefined && val.mediaAssetId === undefined) {\n ctx.addIssue({\n code: 'custom',\n path: ['mediaAssetId'],\n message: 'mediaType is only allowed on a post that carries mediaAssetId — an orphan kind describes media the post does not have',\n });\n }\n});\nexport type SquareStreetzPost = z.infer<typeof SquareStreetzPostSchema>;\n\n/**\n * The create/announcement transport payload for a SquareStreetz post — the exact input\n * `runManageSquareStreetzPost` accepts. Every enqueue site (the durable\n * `squareAnnouncementJobs` outbox) and the manual post callables build one of these; the\n * different post types populate different subsets, so every field beyond `userId` is\n * optional. The TYPE is inferred from this schema (ARCH-102 — one declaration; the\n * frontend extends it with a local `mediaFile?: File`).\n *\n * NON-strict and carrying NO cross-field pairing refinement ON PURPOSE: it is parsed at\n * ENQUEUE inside the announcing transaction (ttt-prod square-announcement-outbox.ts), so a\n * throw here would fail the user's primary action over an announcement defect (ENG-009). It\n * validates that each present field has its canonical type and strips unknowns; the\n * `mediaAssetId`↔`mediaType` pairing (MEDIA-101) is enforced at DELIVERY, where the post\n * core parses `SquareStreetzPostSchema` and a failure dead-letters the job instead.\n */\nexport const SquareStreetzPostPayloadSchema = z.object({\n userId: z.string(),\n // Each item is a post mention (its placeholder in the @m grammar). The list's correspondence\n // with the post text is checked at delivery, by SquareStreetzPostSchema.\n mentions: SquareStreetzPostMentionsSchema.optional(),\n newMediaAssetId: z.string().optional(),\n // NEW_CRAFT_SKILL announcement descriptor — id/kind/tags/source let the post describe the\n // craft WITHOUT leaking the client-supplied original file name.\n craftSkill: z\n .object({\n id: z.string(),\n name: z.string(),\n mediaAssetId: z.string(),\n type: ContentMediaKindSchema,\n tags: z.array(z.enum(CRAFT_SKILL_TAG_VALUES)).optional(),\n kind: CraftSkillKindSchema.optional(),\n source: CraftSkillSourceReferenceSchema.optional(),\n })\n .optional(),\n craftSkillId: z.string().optional(),\n workProjectTitle: z.string().optional(),\n workProjectId: z.string().optional(),\n workProjectType: z.enum(WORK_PROJECT_TYPE_KEYS).optional(),\n workProjectDescription: z.string().optional(),\n workRealmId: z.string().optional(),\n workRealmTitle: z.string().optional(),\n hallItemId: z.string().optional(),\n hallItemTitle: z.string().optional(),\n hallSubItemType: HallSubItemTypeSchema.optional(),\n content: z.string().optional(),\n mediaAssetId: z.string().optional(),\n mediaType: mediaTypeSchema.optional(),\n createdAt: z.number().optional(),\n auditionId: z.string().optional(),\n commissionListingId: z.string().optional(),\n auditionAnnounceKind: AuditionAnnounceKindSchema.optional(),\n});\nexport type SquareStreetzPostPayload = z.infer<typeof SquareStreetzPostPayloadSchema>;\n\nexport const MentionHistoryItemSchema = MentionSchema.extend({ viewedAt: z.number() });\nexport type MentionHistoryItem = z.infer<typeof MentionHistoryItemSchema>;\n\nexport const MentionHistoryDocumentSchema = z.object({\n userId: z.string(),\n items: z.array(MentionHistoryItemSchema),\n});\nexport type MentionHistoryDocument = z.infer<typeof MentionHistoryDocumentSchema>;\n\n// Authoritative result of the addToMentionHistory callable — the transaction computes\n// the deduped, capped list in memory before committing, so returning it costs no read.\n// Declared HERE (not schemas/social.ts) because it composes MentionHistoryItemSchema\n// and this module already imports schemas/social.js (FollowableTargetTypeSchema) — the\n// reverse runtime import would be a module cycle. Re-exported on the ./schemas subpath\n// via schemas/index.ts. Non-strict (server → client result posture).\nexport const AddToMentionHistoryResultSchema = z.object({\n success: z.literal(true),\n itemCount: z.number().int().nonnegative(),\n /** The full, deduped, capped history AFTER this write — a drop-in cache replacement. */\n items: z.array(MentionHistoryItemSchema),\n});\nexport type AddToMentionHistoryResult = z.infer<typeof AddToMentionHistoryResultSchema>;\n\nexport const FollowEdgeSchema = z.object({\n followerUid: z.string(),\n targetType: FollowableTargetTypeSchema,\n targetId: z.string(),\n followedOn: z.number(),\n});\nexport type FollowEdge = z.infer<typeof FollowEdgeSchema>;\n\n// followCounters/{targetType__targetId} — denormalized follower count for a followable target,\n// maintained by the follow/unfollow callables via FieldValue.increment (never written by clients).\n// The Hall Library \"Most Followed\" sort mirrors the workProject count onto hallItems.followerCount.\nexport const FollowCounterSchema = z.object({\n followerCount: z.number(),\n updatedOn: z.number(),\n});\nexport type FollowCounter = z.infer<typeof FollowCounterSchema>;\n\n// userProfiles/{uid}/userLikes/likeHistory/squareStreetzLikes/{postId} — a user's like on a\n// SquareStreetz post; existence == liked. The path nests three of the registry segments\n// (userLikes / likeHistory / squareStreetzLikes). (functions/src/social/likeSquareStreetzPost.ts)\nexport const SquareStreetzLikeSchema = z.object({\n likedOn: z.number(),\n});\nexport type SquareStreetzLike = z.infer<typeof SquareStreetzLikeSchema>;\n\n// squareStreetzFeed/trendingPosts — singleton holding the ordered top-N trending post IDs that the\n// client infinite-scrolls through. (functions/src/social/runUpdateTrendingFeed.ts)\nexport const TrendingPostsSchema = z.object({\n postIds: z.array(z.string()),\n lastUpdated: z.number(),\n});\nexport type TrendingPosts = z.infer<typeof TrendingPostsSchema>;\n"]}
|
|
1
|
+
{"version":3,"file":"social.js","sourceRoot":"","sources":["../../src/doc-schemas/social.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,4CAA4C;AAE5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,+BAA+B,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AAChH,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,MAAM,WAAW,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;+EAE+E;AAC/E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAE5E,MAAM,eAAe,GAAG,eAAe,CAAC;AAExC;;+EAE+E;AAC/E,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC;AAGpF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC;IAChD,wBAAwB;IACxB,iBAAiB;IACjB,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,WAAW;IACX,kBAAkB;IAClB,mBAAmB;IACnB,cAAc;IACd,gBAAgB;CACjB,CAAC,CAAC;AAGH;;;;;;;;;;;;;;;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,CAAC,CAAC","sourcesContent":["// Social Firestore document SCHEMAS — SquareStreetz posts, mention history, and\n// follow edges. Types inferred via z.infer.\n\nimport { z } from 'zod';\nimport { MentionSchema, SquareStreetzPostMentionsSchema, refineMentionCorrespondence } from '../media/atoms.js';\nimport { FollowableTargetTypeSchema } from '../schemas/social.js';\nimport { ContentMediaKindSchema } from './media-assets.js';\nimport { ModerationHiddenBySchema } from './moderation.js';\nimport { CraftSkillKindSchema, CraftSkillSourceReferenceSchema } from './user.js';\nimport { HallSubItemTypeSchema } from './content.js';\nimport { CRAFT_SKILL_TAG_VALUES } from '../constants/options.js';\nimport { WORK_PROJECT_TYPE_KEYS } from '../types/content.js';\n\n/** The ONE canonical display/transport media-type family (the 'other' bucket covers\n * non-previewable kinds). Distinct from the 3-value stored ContentMediaKindSchema\n * (doc-schemas/media-assets.ts) and media-schemas' generic MediaKindSchema. */\nexport const MediaTypeSchema = z.enum(['image', 'video', 'audio', 'other']);\nexport type MediaType = z.infer<typeof MediaTypeSchema>;\nconst mediaTypeSchema = MediaTypeSchema;\n\n/** Discriminates the announcement voice/mention shape of a NEW_AUDITION Streetz post:\n * 'work' names the creating work inline; 'platform' | 'sponsored' name TTT Productions\n * the company instead (no work mention). The ONE declaration of this union. */\nexport const AuditionAnnounceKindSchema = z.enum(['work', 'platform', 'sponsored']);\nexport type AuditionAnnounceKind = z.infer<typeof AuditionAnnounceKindSchema>;\n\nexport const SquareStreetzPostTypeSchema = z.enum([\n 'PROFILE_PICTURE_UPDATE',\n 'NEW_CRAFT_SKILL',\n 'NEW_ARTISAN_CREATOR',\n 'COMMISSION_ACCEPTED',\n 'DELETE_CRAFT_SKILL',\n 'USER_POST',\n 'NEW_WORK_PROJECT',\n 'LIBRARY_PUBLISHED',\n 'NEW_AUDITION',\n 'NEW_COMMISSION',\n]);\nexport type SquareStreetzPostType = z.infer<typeof SquareStreetzPostTypeSchema>;\n\n/**\n * squareStreetzFeed/activePosts/socialPosts/{postId}.\n *\n * **Media-pair invariant (MEDIA-101) — enforced by the superRefine below:**\n * `mediaAssetId` and `mediaType` are ONE unit — both present, or both absent.\n * Gateway URLs are extensionless, so nothing downstream can recover the kind from\n * the id: a post persisted with an asset and NO kind classifies as `'other'` and\n * `AppMediaPreview` renders a Download link INSTEAD of the image/video. The mirror\n * case (a kind with no asset) is an orphan that describes media the post does not\n * carry. Declared HERE, on the canonical doc schema (ARCH-102), so every writer\n * inherits it from the one post-create chokepoint's parse rather than each write\n * site re-deciding — and so no reader ever needs a `?? 'other'` guess.\n *\n * Announcement posts REFERENCE a source asset (audition `videoAssetId`, commission\n * `commissionAttachment.mediaAssetId`), so the kind always comes from that source —\n * it is never invented or defaulted at the post write.\n */\nexport const SquareStreetzPostSchema = z.object({\n postId: z.string(),\n createdBy: z.object({ uid: z.string() }),\n authorId: z.string(),\n content: z.string(),\n // The post mention list; each placeholder appears in `content` exactly once (refined below).\n mentions: SquareStreetzPostMentionsSchema.optional(),\n relatedIds: z.array(z.string()),\n /** Paired with `mediaType` — see the media-pair invariant above. */\n mediaAssetId: z.string().optional(),\n /** Paired with `mediaAssetId` — see the media-pair invariant above. */\n mediaType: mediaTypeSchema.optional(),\n createdAt: z.number(),\n likes: z.number(),\n postType: SquareStreetzPostTypeSchema.optional(),\n relatedAssetId: z.string().optional(),\n // Admin moderation hide (reversible). When true the post is suppressed from all\n // feeds/lists; restored by clearing it. `hidden` is the ONLY moderation flag on a post:\n // posts are created only after their media finalizes, so no upload-gating flag exists.\n hidden: z.boolean(),\n hiddenBy: ModerationHiddenBySchema.optional(),\n}).superRefine((val, ctx) => {\n refineMentionCorrespondence(val.content, val.mentions, ctx);\n if (val.mediaAssetId !== undefined && val.mediaType === undefined) {\n ctx.addIssue({\n code: 'custom',\n path: ['mediaType'],\n message: 'mediaType is required whenever a post carries mediaAssetId (MEDIA-101: an extensionless gateway URL with no kind renders a Download link instead of the media)',\n });\n }\n if (val.mediaType !== undefined && val.mediaAssetId === undefined) {\n ctx.addIssue({\n code: 'custom',\n path: ['mediaAssetId'],\n message: 'mediaType is only allowed on a post that carries mediaAssetId — an orphan kind describes media the post does not have',\n });\n }\n});\nexport type SquareStreetzPost = z.infer<typeof SquareStreetzPostSchema>;\n\n// The created post, homed beside its doc schema (see AddToMentionHistoryResultSchema for why).\nexport const CreateSquareStreetzTextPostResultSchema = z.object({\n post: SquareStreetzPostSchema,\n});\nexport type CreateSquareStreetzTextPostResult = z.infer<typeof CreateSquareStreetzTextPostResultSchema>;\n\n/**\n * The create/announcement transport payload for a SquareStreetz post — the exact input\n * `runManageSquareStreetzPost` accepts. Every enqueue site (the durable\n * `squareAnnouncementJobs` outbox) and the manual post callables build one of these; the\n * different post types populate different subsets, so every field beyond `userId` is\n * optional. The TYPE is inferred from this schema (ARCH-102 — one declaration; the\n * frontend extends it with a local `mediaFile?: File`).\n *\n * NON-strict and carrying NO cross-field pairing refinement ON PURPOSE: it is parsed at\n * ENQUEUE inside the announcing transaction (ttt-prod square-announcement-outbox.ts), so a\n * throw here would fail the user's primary action over an announcement defect (ENG-009). It\n * validates that each present field has its canonical type and strips unknowns; the\n * `mediaAssetId`↔`mediaType` pairing (MEDIA-101) is enforced at DELIVERY, where the post\n * core parses `SquareStreetzPostSchema` and a failure dead-letters the job instead.\n */\nexport const SquareStreetzPostPayloadSchema = z.object({\n userId: z.string(),\n // Each item is a post mention (its placeholder in the @m grammar). The list's correspondence\n // with the post text is checked at delivery, by SquareStreetzPostSchema.\n mentions: SquareStreetzPostMentionsSchema.optional(),\n newMediaAssetId: z.string().optional(),\n // NEW_CRAFT_SKILL announcement descriptor — id/kind/tags/source let the post describe the\n // craft WITHOUT leaking the client-supplied original file name.\n craftSkill: z\n .object({\n id: z.string(),\n name: z.string(),\n mediaAssetId: z.string(),\n type: ContentMediaKindSchema,\n tags: z.array(z.enum(CRAFT_SKILL_TAG_VALUES)).optional(),\n kind: CraftSkillKindSchema.optional(),\n source: CraftSkillSourceReferenceSchema.optional(),\n })\n .optional(),\n craftSkillId: z.string().optional(),\n workProjectTitle: z.string().optional(),\n workProjectId: z.string().optional(),\n workProjectType: z.enum(WORK_PROJECT_TYPE_KEYS).optional(),\n workProjectDescription: z.string().optional(),\n workRealmId: z.string().optional(),\n workRealmTitle: z.string().optional(),\n hallItemId: z.string().optional(),\n hallItemTitle: z.string().optional(),\n hallSubItemType: HallSubItemTypeSchema.optional(),\n content: z.string().optional(),\n mediaAssetId: z.string().optional(),\n mediaType: mediaTypeSchema.optional(),\n createdAt: z.number().optional(),\n auditionId: z.string().optional(),\n commissionListingId: z.string().optional(),\n auditionAnnounceKind: AuditionAnnounceKindSchema.optional(),\n});\nexport type SquareStreetzPostPayload = z.infer<typeof SquareStreetzPostPayloadSchema>;\n\nexport const MentionHistoryItemSchema = MentionSchema.extend({ viewedAt: z.number() });\nexport type MentionHistoryItem = z.infer<typeof MentionHistoryItemSchema>;\n\nexport const MentionHistoryDocumentSchema = z.object({\n userId: z.string(),\n items: z.array(MentionHistoryItemSchema),\n});\nexport type MentionHistoryDocument = z.infer<typeof MentionHistoryDocumentSchema>;\n\n// Authoritative result of the addToMentionHistory callable — the transaction computes\n// the deduped, capped list in memory before committing, so returning it costs no read.\n// Declared HERE (not schemas/social.ts) because it composes MentionHistoryItemSchema\n// and this module already imports schemas/social.js (FollowableTargetTypeSchema) — the\n// reverse runtime import would be a module cycle. Re-exported on the ./schemas subpath\n// via schemas/index.ts.\nexport const AddToMentionHistoryResultSchema = z.object({\n success: z.literal(true),\n itemCount: z.number().int().nonnegative(),\n /** The full, deduped, capped history AFTER this write — a drop-in cache replacement. */\n items: z.array(MentionHistoryItemSchema),\n});\nexport type AddToMentionHistoryResult = z.infer<typeof AddToMentionHistoryResultSchema>;\n\nexport const FollowEdgeSchema = z.object({\n followerUid: z.string(),\n targetType: FollowableTargetTypeSchema,\n targetId: z.string(),\n followedOn: z.number(),\n});\nexport type FollowEdge = z.infer<typeof FollowEdgeSchema>;\n\n// followCounters/{targetType__targetId} — denormalized follower count for a followable target,\n// maintained by the follow/unfollow callables via FieldValue.increment (never written by clients).\n// The Hall Library \"Most Followed\" sort mirrors the workProject count onto hallItems.followerCount.\nexport const FollowCounterSchema = z.object({\n followerCount: z.number(),\n updatedOn: z.number(),\n});\nexport type FollowCounter = z.infer<typeof FollowCounterSchema>;\n\n// userProfiles/{uid}/userLikes/likeHistory/squareStreetzLikes/{postId} — a user's like on a\n// SquareStreetz post; existence == liked. The path nests three of the registry segments\n// (userLikes / likeHistory / squareStreetzLikes). (functions/src/social/likeSquareStreetzPost.ts)\nexport const SquareStreetzLikeSchema = z.object({\n likedOn: z.number(),\n});\nexport type SquareStreetzLike = z.infer<typeof SquareStreetzLikeSchema>;\n\n// squareStreetzFeed/trendingPosts — singleton holding the ordered top-N trending post IDs that the\n// client infinite-scrolls through. (functions/src/social/runUpdateTrendingFeed.ts)\nexport const TrendingPostsSchema = z.object({\n postIds: z.array(z.string()),\n lastUpdated: z.number(),\n});\nexport type TrendingPosts = z.infer<typeof TrendingPostsSchema>;\n"]}
|
|
@@ -27,6 +27,21 @@ export declare const UpdateInviteConfirmationInputSchema: z.ZodDiscriminatedUnio
|
|
|
27
27
|
}>;
|
|
28
28
|
}, z.core.$strict>], "action">;
|
|
29
29
|
export type UpdateInviteConfirmationInput = z.infer<typeof UpdateInviteConfirmationInputSchema>;
|
|
30
|
+
export declare const UpdateGuildInviteConfirmationResultSchema: z.ZodObject<{
|
|
31
|
+
success: z.ZodLiteral<true>;
|
|
32
|
+
status: z.ZodEnum<{
|
|
33
|
+
pending: "pending";
|
|
34
|
+
accepted: "accepted";
|
|
35
|
+
declined: "declined";
|
|
36
|
+
cancelled: "cancelled";
|
|
37
|
+
finalized: "finalized";
|
|
38
|
+
}>;
|
|
39
|
+
workProjectId: z.ZodString;
|
|
40
|
+
senderUid: z.ZodString;
|
|
41
|
+
recipientUid: z.ZodString;
|
|
42
|
+
callerUid: z.ZodString;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type UpdateGuildInviteConfirmationResult = z.infer<typeof UpdateGuildInviteConfirmationResultSchema>;
|
|
30
45
|
/**
|
|
31
46
|
* The payload of the `workProject.guildInviteAccepted` event the finalizing agree writes: the
|
|
32
47
|
* invite, the offer agreed to, and the account that gave the Work's agreement — the caller when
|
|
@@ -45,6 +60,15 @@ export declare const UpdateGuildInviteStakeSharesInputSchema: z.ZodObject<{
|
|
|
45
60
|
newStakeShares: z.ZodNumber;
|
|
46
61
|
}, z.core.$strict>;
|
|
47
62
|
export type UpdateGuildInviteStakeSharesInput = z.infer<typeof UpdateGuildInviteStakeSharesInputSchema>;
|
|
63
|
+
export declare const UpdateGuildInviteStakeSharesResultSchema: z.ZodObject<{
|
|
64
|
+
success: z.ZodLiteral<true>;
|
|
65
|
+
newStakeShares: z.ZodNumber;
|
|
66
|
+
workProjectId: z.ZodString;
|
|
67
|
+
senderUid: z.ZodString;
|
|
68
|
+
recipientUid: z.ZodString;
|
|
69
|
+
outboxCommandId: z.ZodString;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type UpdateGuildInviteStakeSharesResult = z.infer<typeof UpdateGuildInviteStakeSharesResultSchema>;
|
|
48
72
|
export declare const UpdateAdminDispatchStatusResultSchema: z.ZodObject<{
|
|
49
73
|
success: z.ZodLiteral<true>;
|
|
50
74
|
adminDispatchId: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-dispatch-actions.d.ts","sourceRoot":"","sources":["../../src/schemas/admin-dispatch-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"admin-dispatch-actions.d.ts","sourceRoot":"","sources":["../../src/schemas/admin-dispatch-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;8DAC8D;AAC9D,eAAO,MAAM,8BAA8B;;;EAAmD,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAItF,eAAO,MAAM,oCAAoC;;;;;;kBAGtC,CAAC;AACZ,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAMlG,eAAO,MAAM,mCAAmC;;;;;;;;;;;8BAU9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;iBAOpD,CAAC;AACH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAE5G;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC;;;;;kBAMvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,uCAAuC;;;kBAGzC,CAAC;AACZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AAExG,eAAO,MAAM,wCAAwC;;;;;;;iBAQnD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAG1G,eAAO,MAAM,qCAAqC;;;;;;;;;iBAUhD,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { adminDispatchIdSchema, guildInviteIdSchema, userIdSchema, workProjectIdSchema } from './atoms.js';
|
|
2
|
+
import { adminDispatchIdSchema, guildInviteConversationStatusSchema, guildInviteIdSchema, userIdSchema, workProjectIdSchema, } from './atoms.js';
|
|
3
3
|
/** The two terminal dispatch-thread statuses a close can set (ONE canonical declaration —
|
|
4
4
|
* shared by the close input and its authoritative result). */
|
|
5
5
|
export const AdminDispatchCloseStatusSchema = z.enum(['closed_resolved', 'closed_unresolved']);
|
|
@@ -24,6 +24,14 @@ export const UpdateInviteConfirmationInputSchema = z.discriminatedUnion('action'
|
|
|
24
24
|
action: z.enum(['decline', 'cancel', 'retract']),
|
|
25
25
|
}).strict(),
|
|
26
26
|
]);
|
|
27
|
+
export const UpdateGuildInviteConfirmationResultSchema = z.object({
|
|
28
|
+
success: z.literal(true),
|
|
29
|
+
status: guildInviteConversationStatusSchema,
|
|
30
|
+
workProjectId: workProjectIdSchema,
|
|
31
|
+
senderUid: userIdSchema,
|
|
32
|
+
recipientUid: userIdSchema,
|
|
33
|
+
callerUid: userIdSchema,
|
|
34
|
+
});
|
|
27
35
|
/**
|
|
28
36
|
* The payload of the `workProject.guildInviteAccepted` event the finalizing agree writes: the
|
|
29
37
|
* invite, the offer agreed to, and the account that gave the Work's agreement — the caller when
|
|
@@ -41,7 +49,15 @@ export const UpdateGuildInviteStakeSharesInputSchema = z.object({
|
|
|
41
49
|
guildInviteId: guildInviteIdSchema,
|
|
42
50
|
newStakeShares: z.number().int().min(1),
|
|
43
51
|
}).strict();
|
|
44
|
-
|
|
52
|
+
export const UpdateGuildInviteStakeSharesResultSchema = z.object({
|
|
53
|
+
success: z.literal(true),
|
|
54
|
+
newStakeShares: z.number().int(),
|
|
55
|
+
workProjectId: workProjectIdSchema,
|
|
56
|
+
senderUid: userIdSchema,
|
|
57
|
+
recipientUid: userIdSchema,
|
|
58
|
+
/** The outbox command written in the same transaction, delivered right after the commit. */
|
|
59
|
+
outboxCommandId: z.string().min(1),
|
|
60
|
+
});
|
|
45
61
|
export const UpdateAdminDispatchStatusResultSchema = z.object({
|
|
46
62
|
success: z.literal(true),
|
|
47
63
|
adminDispatchId: adminDispatchIdSchema,
|
|
@@ -50,7 +66,7 @@ export const UpdateAdminDispatchStatusResultSchema = z.object({
|
|
|
50
66
|
/** Uid of the closer (the caller) — attribution for the server-composed close line. */
|
|
51
67
|
closedBy: z.string().min(1),
|
|
52
68
|
/** Operation-receipt audit id — the `chat.adminThreadStatusChanged` event written in the same
|
|
53
|
-
* transaction.
|
|
69
|
+
* transaction. */
|
|
54
70
|
auditEventId: z.string().min(1).optional(),
|
|
55
71
|
});
|
|
56
72
|
//# sourceMappingURL=admin-dispatch-actions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-dispatch-actions.js","sourceRoot":"","sources":["../../src/schemas/admin-dispatch-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"admin-dispatch-actions.js","sourceRoot":"","sources":["../../src/schemas/admin-dispatch-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,qBAAqB,EACrB,mCAAmC,EACnC,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAEpB;8DAC8D;AAC9D,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,CAAC,CAAC;AAG/F,0FAA0F;AAC1F,6FAA6F;AAC7F,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3D,eAAe,EAAE,qBAAqB;IACtC,SAAS,EAAE,8BAA8B;CAC1C,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,4FAA4F;AAC5F,4FAA4F;AAC5F,+FAA+F;AAC/F,mFAAmF;AACnF,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAChF,CAAC,CAAC,MAAM,CAAC;QACP,aAAa,EAAE,mBAAmB;QAClC,MAAM,EAAE,CAAC,CAAC,OAAO,CAA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AC,GAAG,EAAE;IAChC,aAAa,EAAE,mBAAmB;IAClC,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,YAAY;IAC1B,4FAA4F;IAC5F,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACnC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACxB,eAAe,EAAE,qBAAqB;IACtC,wCAAwC;IACxC,SAAS,EAAE,8BAA8B;IACzC,uFAAuF;IACvF,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B;sBACkB;IAClB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport {\n adminDispatchIdSchema,\n guildInviteConversationStatusSchema,\n guildInviteIdSchema,\n userIdSchema,\n workProjectIdSchema,\n} from './atoms.js';\n\n/** The two terminal dispatch-thread statuses a close can set (ONE canonical declaration —\n * shared by the close input and its authoritative result). */\nexport const AdminDispatchCloseStatusSchema = z.enum(['closed_resolved', 'closed_unresolved']);\nexport type AdminDispatchCloseStatus = z.infer<typeof AdminDispatchCloseStatusSchema>;\n\n// The close message is composed SERVER-SIDE from the authoritative actor role; the client\n// supplies no message text (a client-supplied value would be a system-message spoof vector).\nexport const UpdateAdminDispatchStatusInputSchema = z.object({\n adminDispatchId: adminDispatchIdSchema,\n newStatus: AdminDispatchCloseStatusSchema,\n}).strict();\nexport type UpdateAdminDispatchStatusInput = z.infer<typeof UpdateAdminDispatchStatusInputSchema>;\n\n// The invite conversation is the binding agreement, so consent is pinned to specific terms:\n// an `agree` must carry the stake-share offer the member was shown, and the backend rejects\n// the action inside its transaction when the doc's current offer differs (the member re-agrees\n// against the fresh value). The other actions don't assert terms and carry no pin.\nexport const UpdateInviteConfirmationInputSchema = z.discriminatedUnion('action', [\n z.object({\n guildInviteId: guildInviteIdSchema,\n action: z.literal('agree'),\n expectedStakeShares: z.number().int().min(1),\n }).strict(),\n z.object({\n guildInviteId: guildInviteIdSchema,\n action: z.enum(['decline', 'cancel', 'retract']),\n }).strict(),\n]);\nexport type UpdateInviteConfirmationInput = z.infer<typeof UpdateInviteConfirmationInputSchema>;\n\nexport const UpdateGuildInviteConfirmationResultSchema = z.object({\n success: z.literal(true),\n status: guildInviteConversationStatusSchema,\n workProjectId: workProjectIdSchema,\n senderUid: userIdSchema,\n recipientUid: userIdSchema,\n callerUid: userIdSchema,\n});\nexport type UpdateGuildInviteConfirmationResult = z.infer<typeof UpdateGuildInviteConfirmationResultSchema>;\n\n/**\n * The payload of the `workProject.guildInviteAccepted` event the finalizing agree writes: the\n * invite, the offer agreed to, and the account that gave the Work's agreement — the caller when\n * the Work's agree finalizes, else the invite's stored `senderConfirmedBy`. Ids and numbers only\n * (BACKEND-203).\n */\nexport const GuildInviteAcceptedAuditPayloadSchema = z.object({\n workProjectId: workProjectIdSchema,\n guildInviteId: guildInviteIdSchema,\n // Whatever offer the invite held, so an anomalous stored value is still recorded.\n stakeSharesOffered: z.number(),\n senderConfirmedBy: userIdSchema,\n}).strict();\nexport type GuildInviteAcceptedAuditPayload = z.infer<typeof GuildInviteAcceptedAuditPayloadSchema>;\n\nexport const UpdateGuildInviteStakeSharesInputSchema = z.object({\n guildInviteId: guildInviteIdSchema,\n newStakeShares: z.number().int().min(1),\n}).strict();\nexport type UpdateGuildInviteStakeSharesInput = z.infer<typeof UpdateGuildInviteStakeSharesInputSchema>;\n\nexport const UpdateGuildInviteStakeSharesResultSchema = z.object({\n success: z.literal(true),\n newStakeShares: z.number().int(),\n workProjectId: workProjectIdSchema,\n senderUid: userIdSchema,\n recipientUid: userIdSchema,\n /** The outbox command written in the same transaction, delivered right after the commit. */\n outboxCommandId: z.string().min(1),\n});\nexport type UpdateGuildInviteStakeSharesResult = z.infer<typeof UpdateGuildInviteStakeSharesResultSchema>;\n\n\nexport const UpdateAdminDispatchStatusResultSchema = z.object({\n success: z.literal(true),\n adminDispatchId: adminDispatchIdSchema,\n /** The thread's status after commit. */\n newStatus: AdminDispatchCloseStatusSchema,\n /** Uid of the closer (the caller) — attribution for the server-composed close line. */\n closedBy: z.string().min(1),\n /** Operation-receipt audit id — the `chat.adminThreadStatusChanged` event written in the same\n * transaction. */\n auditEventId: z.string().min(1).optional(),\n});\nexport type UpdateAdminDispatchStatusResult = z.infer<typeof UpdateAdminDispatchStatusResultSchema>;\n"]}
|
package/dist/schemas/admin.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export declare const MarkWorkLaterInputSchema: z.ZodObject<{
|
|
|
10
10
|
extendHours: z.ZodUnion<readonly [z.ZodLiteral<24>, z.ZodLiteral<48>]>;
|
|
11
11
|
}, z.core.$strict>;
|
|
12
12
|
export type MarkWorkLaterInput = z.infer<typeof MarkWorkLaterInputSchema>;
|
|
13
|
+
export declare const MarkWorkLaterResultSchema: z.ZodObject<{
|
|
14
|
+
success: z.ZodLiteral<true>;
|
|
15
|
+
alreadyResolved: z.ZodOptional<z.ZodLiteral<true>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type MarkWorkLaterResult = z.infer<typeof MarkWorkLaterResultSchema>;
|
|
13
18
|
/** The two appeal-review decisions (ONE canonical declaration — shared by the review
|
|
14
19
|
* input and its authoritative result). */
|
|
15
20
|
export declare const ContentAppealDecisionSchema: z.ZodEnum<{
|
|
@@ -230,6 +235,11 @@ export declare const UpdateAppConfigInputSchema: z.ZodObject<{
|
|
|
230
235
|
}, z.core.$strict>;
|
|
231
236
|
}, z.core.$strict>;
|
|
232
237
|
export type UpdateAppConfigInput = z.infer<typeof UpdateAppConfigInputSchema>;
|
|
238
|
+
export declare const UpdateAppConfigResultSchema: z.ZodObject<{
|
|
239
|
+
success: z.ZodLiteral<true>;
|
|
240
|
+
updatedFields: z.ZodArray<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
export type UpdateAppConfigResult = z.infer<typeof UpdateAppConfigResultSchema>;
|
|
233
243
|
export declare const RecordAppModeFlipInputSchema: z.ZodObject<{
|
|
234
244
|
milestoneEvidence: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
235
245
|
}, z.core.$strict>;
|
|
@@ -302,6 +312,11 @@ export declare const ClearSystemVideoSlotInputSchema: z.ZodObject<{
|
|
|
302
312
|
}>;
|
|
303
313
|
}, z.core.$strict>;
|
|
304
314
|
export type ClearSystemVideoSlotInput = z.infer<typeof ClearSystemVideoSlotInputSchema>;
|
|
315
|
+
export declare const ClearSystemVideoSlotResultSchema: z.ZodObject<{
|
|
316
|
+
success: z.ZodLiteral<true>;
|
|
317
|
+
cleared: z.ZodBoolean;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
export type ClearSystemVideoSlotResult = z.infer<typeof ClearSystemVideoSlotResultSchema>;
|
|
305
320
|
export declare const UpdateSystemUidSlotInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
306
321
|
slotId: z.ZodEnum<{
|
|
307
322
|
founder: "founder";
|
|
@@ -314,6 +329,11 @@ export declare const UpdateSystemUidSlotInputSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
314
329
|
value: z.ZodArray<z.ZodString>;
|
|
315
330
|
}, z.core.$strict>]>;
|
|
316
331
|
export type UpdateSystemUidSlotInput = z.infer<typeof UpdateSystemUidSlotInputSchema>;
|
|
332
|
+
export declare const UpdateSystemUidSlotResultSchema: z.ZodObject<{
|
|
333
|
+
success: z.ZodLiteral<true>;
|
|
334
|
+
changed: z.ZodBoolean;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
export type UpdateSystemUidSlotResult = z.infer<typeof UpdateSystemUidSlotResultSchema>;
|
|
317
337
|
/**
|
|
318
338
|
* Wire input for the `updateAdminList` callable in ttt-prod.
|
|
319
339
|
* Used to grant or revoke admin / jrAdmin status on `_systemData/adminList`.
|
|
@@ -343,6 +363,13 @@ export declare const CheckTrademarkInputSchema: z.ZodObject<{
|
|
|
343
363
|
subItemTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
364
|
}, z.core.$strict>;
|
|
345
365
|
export type CheckTrademarkInput = z.infer<typeof CheckTrademarkInputSchema>;
|
|
366
|
+
export declare const CheckTrademarkResultSchema: z.ZodObject<{
|
|
367
|
+
curatedMatch: z.ZodBoolean;
|
|
368
|
+
matchedEntry: z.ZodNullable<z.ZodString>;
|
|
369
|
+
advisory: z.ZodString;
|
|
370
|
+
checkedAt: z.ZodNumber;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
export type CheckTrademarkResult = z.infer<typeof CheckTrademarkResultSchema>;
|
|
346
373
|
export declare const GetReportedContentDetailInputSchema: z.ZodObject<{
|
|
347
374
|
reportGroupId: z.ZodString;
|
|
348
375
|
}, z.core.$strict>;
|
|
@@ -431,6 +458,10 @@ export declare const HideHallSubItemInputSchema: z.ZodObject<{
|
|
|
431
458
|
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
432
459
|
}, z.core.$strict>;
|
|
433
460
|
export type HideHallSubItemInput = z.infer<typeof HideHallSubItemInputSchema>;
|
|
461
|
+
export declare const HideHallSubItemResultSchema: z.ZodObject<{
|
|
462
|
+
success: z.ZodLiteral<true>;
|
|
463
|
+
}, z.core.$strip>;
|
|
464
|
+
export type HideHallSubItemResult = z.infer<typeof HideHallSubItemResultSchema>;
|
|
434
465
|
export declare const RestoreHallSubItemInputSchema: z.ZodObject<{
|
|
435
466
|
hallItemId: z.ZodString;
|
|
436
467
|
workProjectType: z.ZodEnum<{
|
|
@@ -441,26 +472,48 @@ export declare const RestoreHallSubItemInputSchema: z.ZodObject<{
|
|
|
441
472
|
subItemId: z.ZodString;
|
|
442
473
|
}, z.core.$strict>;
|
|
443
474
|
export type RestoreHallSubItemInput = z.infer<typeof RestoreHallSubItemInputSchema>;
|
|
475
|
+
export declare const RestoreHallSubItemResultSchema: z.ZodObject<{
|
|
476
|
+
success: z.ZodLiteral<true>;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
export type RestoreHallSubItemResult = z.infer<typeof RestoreHallSubItemResultSchema>;
|
|
444
479
|
export declare const HideWorkProjectInputSchema: z.ZodObject<{
|
|
445
480
|
workProjectId: z.ZodString;
|
|
446
481
|
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
447
482
|
}, z.core.$strict>;
|
|
448
483
|
export type HideWorkProjectInput = z.infer<typeof HideWorkProjectInputSchema>;
|
|
484
|
+
export declare const HideWorkProjectResultSchema: z.ZodObject<{
|
|
485
|
+
success: z.ZodLiteral<true>;
|
|
486
|
+
cascadeId: z.ZodString;
|
|
487
|
+
}, z.core.$strip>;
|
|
488
|
+
export type HideWorkProjectResult = z.infer<typeof HideWorkProjectResultSchema>;
|
|
449
489
|
export declare const HideWorkRealmInputSchema: z.ZodObject<{
|
|
450
490
|
workRealmId: z.ZodString;
|
|
451
491
|
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
452
492
|
}, z.core.$strict>;
|
|
453
493
|
export type HideWorkRealmInput = z.infer<typeof HideWorkRealmInputSchema>;
|
|
494
|
+
export declare const HideWorkRealmResultSchema: z.ZodObject<{
|
|
495
|
+
success: z.ZodLiteral<true>;
|
|
496
|
+
cascadeId: z.ZodString;
|
|
497
|
+
}, z.core.$strip>;
|
|
498
|
+
export type HideWorkRealmResult = z.infer<typeof HideWorkRealmResultSchema>;
|
|
454
499
|
export declare const RestoreWorkProjectInputSchema: z.ZodObject<{
|
|
455
500
|
workProjectId: z.ZodString;
|
|
456
501
|
cascadeId: z.ZodOptional<z.ZodString>;
|
|
457
502
|
}, z.core.$strict>;
|
|
458
503
|
export type RestoreWorkProjectInput = z.infer<typeof RestoreWorkProjectInputSchema>;
|
|
504
|
+
export declare const RestoreWorkProjectResultSchema: z.ZodObject<{
|
|
505
|
+
success: z.ZodLiteral<true>;
|
|
506
|
+
}, z.core.$strip>;
|
|
507
|
+
export type RestoreWorkProjectResult = z.infer<typeof RestoreWorkProjectResultSchema>;
|
|
459
508
|
export declare const RestoreWorkRealmInputSchema: z.ZodObject<{
|
|
460
509
|
workRealmId: z.ZodString;
|
|
461
510
|
cascadeId: z.ZodOptional<z.ZodString>;
|
|
462
511
|
}, z.core.$strict>;
|
|
463
512
|
export type RestoreWorkRealmInput = z.infer<typeof RestoreWorkRealmInputSchema>;
|
|
513
|
+
export declare const RestoreWorkRealmResultSchema: z.ZodObject<{
|
|
514
|
+
success: z.ZodLiteral<true>;
|
|
515
|
+
}, z.core.$strip>;
|
|
516
|
+
export type RestoreWorkRealmResult = z.infer<typeof RestoreWorkRealmResultSchema>;
|
|
464
517
|
export declare const RequireWorkProjectRetitleInputSchema: z.ZodObject<{
|
|
465
518
|
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
466
519
|
workProjectId: z.ZodString;
|
|
@@ -471,6 +524,10 @@ export declare const RequireWorkRealmRetitleInputSchema: z.ZodObject<{
|
|
|
471
524
|
workRealmId: z.ZodString;
|
|
472
525
|
}, z.core.$strict>;
|
|
473
526
|
export type RequireWorkRealmRetitleInput = z.infer<typeof RequireWorkRealmRetitleInputSchema>;
|
|
527
|
+
export declare const RequireRetitleResultSchema: z.ZodObject<{
|
|
528
|
+
success: z.ZodLiteral<true>;
|
|
529
|
+
}, z.core.$strip>;
|
|
530
|
+
export type RequireRetitleResult = z.infer<typeof RequireRetitleResultSchema>;
|
|
474
531
|
declare const ModerationShellClearFieldSchema: z.ZodEnum<{
|
|
475
532
|
workingTitle: "workingTitle";
|
|
476
533
|
workingDescription: "workingDescription";
|
|
@@ -494,6 +551,10 @@ export declare const ClearWorkRealmTextInputSchema: z.ZodObject<{
|
|
|
494
551
|
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
495
552
|
}, z.core.$strict>;
|
|
496
553
|
export type ClearWorkRealmTextInput = z.infer<typeof ClearWorkRealmTextInputSchema>;
|
|
554
|
+
export declare const ClearModerationTextResultSchema: z.ZodObject<{
|
|
555
|
+
success: z.ZodLiteral<true>;
|
|
556
|
+
}, z.core.$strip>;
|
|
557
|
+
export type ClearModerationTextResult = z.infer<typeof ClearModerationTextResultSchema>;
|
|
497
558
|
declare const HallClearFieldSchema: z.ZodEnum<{
|
|
498
559
|
title: "title";
|
|
499
560
|
description: "description";
|
|
@@ -516,6 +577,10 @@ export declare const ClearHallContentTextInputSchema: z.ZodObject<{
|
|
|
516
577
|
reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
517
578
|
}, z.core.$strict>;
|
|
518
579
|
export type ClearHallContentTextInput = z.infer<typeof ClearHallContentTextInputSchema>;
|
|
580
|
+
export declare const ClearHallContentTextResultSchema: z.ZodObject<{
|
|
581
|
+
success: z.ZodLiteral<true>;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
export type ClearHallContentTextResult = z.infer<typeof ClearHallContentTextResultSchema>;
|
|
519
584
|
export declare const GetLatestHideCascadeInputSchema: z.ZodObject<{
|
|
520
585
|
entityId: z.ZodString;
|
|
521
586
|
targetType: z.ZodEnum<{
|
|
@@ -524,6 +589,16 @@ export declare const GetLatestHideCascadeInputSchema: z.ZodObject<{
|
|
|
524
589
|
}>;
|
|
525
590
|
}, z.core.$strict>;
|
|
526
591
|
export type GetLatestHideCascadeInput = z.infer<typeof GetLatestHideCascadeInputSchema>;
|
|
592
|
+
export declare const GetLatestHideCascadeResultSchema: z.ZodObject<{
|
|
593
|
+
cascadeId: z.ZodNullable<z.ZodString>;
|
|
594
|
+
}, z.core.$strip>;
|
|
595
|
+
export type GetLatestHideCascadeResult = z.infer<typeof GetLatestHideCascadeResultSchema>;
|
|
596
|
+
export declare const GetPendingGuildInviteCountInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
597
|
+
export type GetPendingGuildInviteCountInput = z.infer<typeof GetPendingGuildInviteCountInputSchema>;
|
|
598
|
+
export declare const GetPendingGuildInviteCountResultSchema: z.ZodObject<{
|
|
599
|
+
count: z.ZodNumber;
|
|
600
|
+
}, z.core.$strip>;
|
|
601
|
+
export type GetPendingGuildInviteCountResult = z.infer<typeof GetPendingGuildInviteCountResultSchema>;
|
|
527
602
|
export declare const ModerateReportedContentInputSchema: z.ZodObject<{
|
|
528
603
|
reportGroupId: z.ZodString;
|
|
529
604
|
targetType: z.ZodEnum<{
|
|
@@ -735,7 +810,12 @@ export declare const NormalReportInputSchema: z.ZodObject<{
|
|
|
735
810
|
userFacingReasonDetail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
736
811
|
adminNote: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
737
812
|
}, z.core.$strict>;
|
|
738
|
-
export type
|
|
813
|
+
export type NormalReportInput = z.infer<typeof NormalReportInputSchema>;
|
|
814
|
+
export declare const ResolveAdminTaskResultSchema: z.ZodObject<{
|
|
815
|
+
success: z.ZodLiteral<true>;
|
|
816
|
+
auditEventId: z.ZodOptional<z.ZodString>;
|
|
817
|
+
}, z.core.$strip>;
|
|
818
|
+
export type ResolveAdminTaskResult = z.infer<typeof ResolveAdminTaskResultSchema>;
|
|
739
819
|
export declare const SafetyStagedActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
740
820
|
button: z.ZodLiteral<"setReportDisposition">;
|
|
741
821
|
disposition: z.ZodEnum<{
|
|
@@ -839,6 +919,7 @@ export declare const SafetyCaseInputSchema: z.ZodObject<{
|
|
|
839
919
|
confirmation: z.ZodLiteral<"I confirm these safety actions">;
|
|
840
920
|
}, z.core.$strict>;
|
|
841
921
|
export type SafetyCaseInput = z.infer<typeof SafetyCaseInputSchema>;
|
|
922
|
+
export type ResolveAdminTaskInput = NormalReportInput | SafetyCaseInput;
|
|
842
923
|
export declare const ReopenSafetyCaseInputSchema: z.ZodObject<{
|
|
843
924
|
caseType: z.ZodEnum<{
|
|
844
925
|
csam: "csam";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/schemas/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkGxB,eAAO,MAAM,oCAAoC,iCAAwB,CAAC;AAC1E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,eAAO,MAAM,8BAA8B;;kBAEhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAItF,eAAO,MAAM,wBAAwB;;;kBAG1B,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/schemas/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkGxB,eAAO,MAAM,oCAAoC,iCAAwB,CAAC;AAC1E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,eAAO,MAAM,8BAA8B;;kBAEhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAItF,eAAO,MAAM,wBAAwB;;;kBAG1B,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAG1E,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,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