@ttt-productions/ttt-core 0.79.47 → 0.79.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/constants/business-admin.d.ts +7 -0
  2. package/dist/constants/business-admin.d.ts.map +1 -1
  3. package/dist/constants/business-admin.js +7 -0
  4. package/dist/constants/business-admin.js.map +1 -1
  5. package/dist/constants/index.d.ts +3 -0
  6. package/dist/constants/index.d.ts.map +1 -1
  7. package/dist/constants/index.js +3 -0
  8. package/dist/constants/index.js.map +1 -1
  9. package/dist/constants/legal-review-notice-state.d.ts +5 -0
  10. package/dist/constants/legal-review-notice-state.d.ts.map +1 -0
  11. package/dist/constants/legal-review-notice-state.js +19 -0
  12. package/dist/constants/legal-review-notice-state.js.map +1 -0
  13. package/dist/constants/legal-review-notice.d.ts +102 -0
  14. package/dist/constants/legal-review-notice.d.ts.map +1 -0
  15. package/dist/constants/legal-review-notice.js +171 -0
  16. package/dist/constants/legal-review-notice.js.map +1 -0
  17. package/dist/constants/public-documents.d.ts +20 -0
  18. package/dist/constants/public-documents.d.ts.map +1 -0
  19. package/dist/constants/public-documents.js +48 -0
  20. package/dist/constants/public-documents.js.map +1 -0
  21. package/dist/doc-schemas/content.d.ts +56 -0
  22. package/dist/doc-schemas/content.d.ts.map +1 -1
  23. package/dist/doc-schemas/content.js +34 -0
  24. package/dist/doc-schemas/content.js.map +1 -1
  25. package/dist/doc-schemas/index.d.ts +2 -0
  26. package/dist/doc-schemas/index.d.ts.map +1 -1
  27. package/dist/doc-schemas/index.js +2 -0
  28. package/dist/doc-schemas/index.js.map +1 -1
  29. package/dist/doc-schemas/legal-review-notice.d.ts +8 -0
  30. package/dist/doc-schemas/legal-review-notice.d.ts.map +1 -0
  31. package/dist/doc-schemas/legal-review-notice.js +14 -0
  32. package/dist/doc-schemas/legal-review-notice.js.map +1 -0
  33. package/dist/doc-schemas/notifications.d.ts +24 -8
  34. package/dist/doc-schemas/notifications.d.ts.map +1 -1
  35. package/dist/doc-schemas/notifications.js +10 -4
  36. package/dist/doc-schemas/notifications.js.map +1 -1
  37. package/dist/doc-schemas/payments.d.ts +4 -0
  38. package/dist/doc-schemas/payments.d.ts.map +1 -1
  39. package/dist/doc-schemas/payments.js +6 -0
  40. package/dist/doc-schemas/payments.js.map +1 -1
  41. package/dist/doc-schemas/public-documents.d.ts +677 -0
  42. package/dist/doc-schemas/public-documents.d.ts.map +1 -0
  43. package/dist/doc-schemas/public-documents.js +158 -0
  44. package/dist/doc-schemas/public-documents.js.map +1 -0
  45. package/dist/doc-schemas/registry.d.ts +352 -39
  46. package/dist/doc-schemas/registry.d.ts.map +1 -1
  47. package/dist/doc-schemas/registry.js +8 -1
  48. package/dist/doc-schemas/registry.js.map +1 -1
  49. package/dist/doc-schemas/safety/case.d.ts +3 -3
  50. package/dist/doc-schemas/system.d.ts +14 -0
  51. package/dist/doc-schemas/system.d.ts.map +1 -1
  52. package/dist/doc-schemas/system.js +7 -0
  53. package/dist/doc-schemas/system.js.map +1 -1
  54. package/dist/doc-schemas/user.d.ts +14 -1
  55. package/dist/doc-schemas/user.d.ts.map +1 -1
  56. package/dist/doc-schemas/user.js +13 -7
  57. package/dist/doc-schemas/user.js.map +1 -1
  58. package/dist/media/domain-events-admin.d.ts +0 -6
  59. package/dist/media/domain-events-admin.d.ts.map +1 -1
  60. package/dist/media/domain-events-admin.js +0 -10
  61. package/dist/media/domain-events-admin.js.map +1 -1
  62. package/dist/media/domain-events.d.ts +0 -5
  63. package/dist/media/domain-events.d.ts.map +1 -1
  64. package/dist/media/domain-events.js +1 -2
  65. package/dist/media/domain-events.js.map +1 -1
  66. package/dist/media/pending-media.d.ts +0 -55
  67. package/dist/media/pending-media.d.ts.map +1 -1
  68. package/dist/paths/collection-refs.d.ts +2 -0
  69. package/dist/paths/collection-refs.d.ts.map +1 -1
  70. package/dist/paths/collection-refs.js +3 -0
  71. package/dist/paths/collection-refs.js.map +1 -1
  72. package/dist/paths/collections.d.ts +5 -0
  73. package/dist/paths/collections.d.ts.map +1 -1
  74. package/dist/paths/collections.js +14 -0
  75. package/dist/paths/collections.js.map +1 -1
  76. package/dist/paths/path-builders.d.ts +8 -0
  77. package/dist/paths/path-builders.d.ts.map +1 -1
  78. package/dist/paths/path-builders.js +17 -0
  79. package/dist/paths/path-builders.js.map +1 -1
  80. package/dist/schemas/admin.d.ts +119 -42
  81. package/dist/schemas/admin.d.ts.map +1 -1
  82. package/dist/schemas/admin.js +49 -30
  83. package/dist/schemas/admin.js.map +1 -1
  84. package/dist/schemas/atoms.d.ts +8 -0
  85. package/dist/schemas/atoms.d.ts.map +1 -1
  86. package/dist/schemas/atoms.js +8 -0
  87. package/dist/schemas/atoms.js.map +1 -1
  88. package/dist/schemas/hall-library.d.ts +1 -0
  89. package/dist/schemas/hall-library.d.ts.map +1 -1
  90. package/dist/schemas/hall-library.js +6 -1
  91. package/dist/schemas/hall-library.js.map +1 -1
  92. package/dist/schemas/index.d.ts +1 -0
  93. package/dist/schemas/index.d.ts.map +1 -1
  94. package/dist/schemas/index.js +1 -0
  95. package/dist/schemas/index.js.map +1 -1
  96. package/dist/schemas/notification.d.ts +1 -1
  97. package/dist/schemas/payments.d.ts +1 -0
  98. package/dist/schemas/payments.d.ts.map +1 -1
  99. package/dist/schemas/payments.js +5 -0
  100. package/dist/schemas/payments.js.map +1 -1
  101. package/dist/schemas/public-documents.d.ts +399 -0
  102. package/dist/schemas/public-documents.d.ts.map +1 -0
  103. package/dist/schemas/public-documents.js +147 -0
  104. package/dist/schemas/public-documents.js.map +1 -0
  105. package/dist/schemas/safety.d.ts +1 -1
  106. package/dist/types/audit.d.ts +1 -1
  107. package/dist/types/audit.d.ts.map +1 -1
  108. package/dist/types/audit.js.map +1 -1
  109. package/dist/types/index.d.ts +1 -0
  110. package/dist/types/index.d.ts.map +1 -1
  111. package/dist/types/index.js +1 -0
  112. package/dist/types/index.js.map +1 -1
  113. package/dist/types/public-documents.d.ts +3 -0
  114. package/dist/types/public-documents.d.ts.map +1 -0
  115. package/dist/types/public-documents.js +2 -0
  116. package/dist/types/public-documents.js.map +1 -0
  117. package/dist/types/system.d.ts +3 -3
  118. package/dist/types/system.js.map +1 -1
  119. package/dist/utils/index.d.ts +1 -0
  120. package/dist/utils/index.d.ts.map +1 -1
  121. package/dist/utils/index.js +1 -0
  122. package/dist/utils/index.js.map +1 -1
  123. package/dist/utils/public-documents.d.ts +63 -0
  124. package/dist/utils/public-documents.d.ts.map +1 -0
  125. package/dist/utils/public-documents.js +143 -0
  126. package/dist/utils/public-documents.js.map +1 -0
  127. package/package.json +4 -4
@@ -0,0 +1,677 @@
1
+ import { z } from 'zod';
2
+ import { type PublicDocumentId } from '../constants/public-documents.js';
3
+ export declare const PublicDocumentIdSchema: z.ZodEnum<{
4
+ futurePlans: "futurePlans";
5
+ rulesAndAgreements: "rulesAndAgreements";
6
+ termsOfService: "termsOfService";
7
+ privacyPolicy: "privacyPolicy";
8
+ takeItDownPageCopy: "takeItDownPageCopy";
9
+ dmcaPolicy: "dmcaPolicy";
10
+ }>;
11
+ /** A published version number: v1 is the first. */
12
+ export declare const PublicDocumentVersionNumberSchema: z.ZodNumber;
13
+ /** An acceptance level: 0 = nothing required / nothing accepted; each requiring release adds 1. */
14
+ export declare const PublicDocumentAcceptanceLevelSchema: z.ZodNumber;
15
+ /** A document paired with one of its published versions. */
16
+ export declare const PublicDocumentVersionRefSchema: z.ZodObject<{
17
+ documentId: z.ZodEnum<{
18
+ futurePlans: "futurePlans";
19
+ rulesAndAgreements: "rulesAndAgreements";
20
+ termsOfService: "termsOfService";
21
+ privacyPolicy: "privacyPolicy";
22
+ takeItDownPageCopy: "takeItDownPageCopy";
23
+ dmcaPolicy: "dmcaPolicy";
24
+ }>;
25
+ version: z.ZodNumber;
26
+ }, z.core.$strict>;
27
+ export type PublicDocumentVersionRef = z.infer<typeof PublicDocumentVersionRefSchema>;
28
+ export declare const LegalPageContentSchema: z.ZodObject<{
29
+ sections: z.ZodArray<z.ZodObject<{
30
+ id: z.ZodString;
31
+ heading: z.ZodString;
32
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
33
+ body: z.ZodString;
34
+ order: z.ZodNumber;
35
+ }, z.core.$strip>>;
36
+ }, z.core.$strip>;
37
+ export declare const RulesAndAgreementsContentSchema: z.ZodObject<{
38
+ rules: z.ZodArray<z.ZodObject<{
39
+ id: z.ZodString;
40
+ title: z.ZodString;
41
+ description: z.ZodString;
42
+ videoUrl: z.ZodOptional<z.ZodString>;
43
+ group: z.ZodOptional<z.ZodEnum<{
44
+ workRealm: "workRealm";
45
+ workProjectType: "workProjectType";
46
+ hallWingType: "hallWingType";
47
+ generic: "generic";
48
+ merchandising: "merchandising";
49
+ }>>;
50
+ subgroup: z.ZodOptional<z.ZodEnum<{
51
+ Tales: "Tales";
52
+ Tunes: "Tunes";
53
+ Television: "Television";
54
+ entertainment: "entertainment";
55
+ educational: "educational";
56
+ newsPolitical: "newsPolitical";
57
+ }>>;
58
+ order: z.ZodNumber;
59
+ }, z.core.$strip>>;
60
+ agreements: z.ZodObject<{
61
+ tales: z.ZodOptional<z.ZodObject<{
62
+ points: z.ZodArray<z.ZodString>;
63
+ videoUrl: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strip>>;
65
+ tunes: z.ZodOptional<z.ZodObject<{
66
+ points: z.ZodArray<z.ZodString>;
67
+ videoUrl: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strip>>;
69
+ television: z.ZodOptional<z.ZodObject<{
70
+ points: z.ZodArray<z.ZodString>;
71
+ videoUrl: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strip>>;
73
+ }, z.core.$strip>;
74
+ }, z.core.$strip>;
75
+ export declare const FuturePlansContentSchema: z.ZodObject<{
76
+ plans: z.ZodArray<z.ZodObject<{
77
+ id: z.ZodString;
78
+ title: z.ZodString;
79
+ description: z.ZodString;
80
+ order: z.ZodNumber;
81
+ videoUrl: z.ZodOptional<z.ZodString>;
82
+ mediaType: z.ZodOptional<z.ZodEnum<{
83
+ image: "image";
84
+ video: "video";
85
+ audio: "audio";
86
+ other: "other";
87
+ }>>;
88
+ }, z.core.$strip>>;
89
+ }, z.core.$strip>;
90
+ export declare const TakeItDownPageCopyContentSchema: z.ZodObject<{
91
+ strings: z.ZodRecord<z.ZodString, z.ZodString>;
92
+ }, z.core.$strip>;
93
+ export declare const DmcaPolicyContentSchema: z.ZodObject<{
94
+ sections: z.ZodArray<z.ZodObject<{
95
+ id: z.ZodString;
96
+ heading: z.ZodString;
97
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
98
+ body: z.ZodString;
99
+ order: z.ZodNumber;
100
+ }, z.core.$strip>>;
101
+ intro: z.ZodString;
102
+ contactBlocks: z.ZodArray<z.ZodObject<{
103
+ id: z.ZodString;
104
+ heading: z.ZodString;
105
+ order: z.ZodNumber;
106
+ rows: z.ZodArray<z.ZodObject<{
107
+ id: z.ZodString;
108
+ label: z.ZodString;
109
+ value: z.ZodString;
110
+ order: z.ZodNumber;
111
+ }, z.core.$strip>>;
112
+ }, z.core.$strip>>;
113
+ }, z.core.$strip>;
114
+ /** Each document's stored content schema. */
115
+ export declare const PUBLIC_DOCUMENT_CONTENT_SCHEMAS: {
116
+ readonly termsOfService: z.ZodObject<{
117
+ sections: z.ZodArray<z.ZodObject<{
118
+ id: z.ZodString;
119
+ heading: z.ZodString;
120
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
121
+ body: z.ZodString;
122
+ order: z.ZodNumber;
123
+ }, z.core.$strip>>;
124
+ }, z.core.$strip>;
125
+ readonly privacyPolicy: z.ZodObject<{
126
+ sections: z.ZodArray<z.ZodObject<{
127
+ id: z.ZodString;
128
+ heading: z.ZodString;
129
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
130
+ body: z.ZodString;
131
+ order: z.ZodNumber;
132
+ }, z.core.$strip>>;
133
+ }, z.core.$strip>;
134
+ readonly rulesAndAgreements: z.ZodObject<{
135
+ rules: z.ZodArray<z.ZodObject<{
136
+ id: z.ZodString;
137
+ title: z.ZodString;
138
+ description: z.ZodString;
139
+ videoUrl: z.ZodOptional<z.ZodString>;
140
+ group: z.ZodOptional<z.ZodEnum<{
141
+ workRealm: "workRealm";
142
+ workProjectType: "workProjectType";
143
+ hallWingType: "hallWingType";
144
+ generic: "generic";
145
+ merchandising: "merchandising";
146
+ }>>;
147
+ subgroup: z.ZodOptional<z.ZodEnum<{
148
+ Tales: "Tales";
149
+ Tunes: "Tunes";
150
+ Television: "Television";
151
+ entertainment: "entertainment";
152
+ educational: "educational";
153
+ newsPolitical: "newsPolitical";
154
+ }>>;
155
+ order: z.ZodNumber;
156
+ }, z.core.$strip>>;
157
+ agreements: z.ZodObject<{
158
+ tales: z.ZodOptional<z.ZodObject<{
159
+ points: z.ZodArray<z.ZodString>;
160
+ videoUrl: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strip>>;
162
+ tunes: z.ZodOptional<z.ZodObject<{
163
+ points: z.ZodArray<z.ZodString>;
164
+ videoUrl: z.ZodOptional<z.ZodString>;
165
+ }, z.core.$strip>>;
166
+ television: z.ZodOptional<z.ZodObject<{
167
+ points: z.ZodArray<z.ZodString>;
168
+ videoUrl: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$strip>>;
170
+ }, z.core.$strip>;
171
+ }, z.core.$strip>;
172
+ readonly futurePlans: z.ZodObject<{
173
+ plans: z.ZodArray<z.ZodObject<{
174
+ id: z.ZodString;
175
+ title: z.ZodString;
176
+ description: z.ZodString;
177
+ order: z.ZodNumber;
178
+ videoUrl: z.ZodOptional<z.ZodString>;
179
+ mediaType: z.ZodOptional<z.ZodEnum<{
180
+ image: "image";
181
+ video: "video";
182
+ audio: "audio";
183
+ other: "other";
184
+ }>>;
185
+ }, z.core.$strip>>;
186
+ }, z.core.$strip>;
187
+ readonly dmcaPolicy: z.ZodObject<{
188
+ sections: z.ZodArray<z.ZodObject<{
189
+ id: z.ZodString;
190
+ heading: z.ZodString;
191
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
192
+ body: z.ZodString;
193
+ order: z.ZodNumber;
194
+ }, z.core.$strip>>;
195
+ intro: z.ZodString;
196
+ contactBlocks: z.ZodArray<z.ZodObject<{
197
+ id: z.ZodString;
198
+ heading: z.ZodString;
199
+ order: z.ZodNumber;
200
+ rows: z.ZodArray<z.ZodObject<{
201
+ id: z.ZodString;
202
+ label: z.ZodString;
203
+ value: z.ZodString;
204
+ order: z.ZodNumber;
205
+ }, z.core.$strip>>;
206
+ }, z.core.$strip>>;
207
+ }, z.core.$strip>;
208
+ readonly takeItDownPageCopy: z.ZodObject<{
209
+ strings: z.ZodRecord<z.ZodString, z.ZodString>;
210
+ }, z.core.$strip>;
211
+ };
212
+ /** The content of document `D`. */
213
+ export type PublicDocumentContent<D extends PublicDocumentId = PublicDocumentId> = z.infer<(typeof PUBLIC_DOCUMENT_CONTENT_SCHEMAS)[D]>;
214
+ /** Each document's current-projection schema (`_appConfig/{documentId}`). */
215
+ export declare const PUBLIC_DOCUMENT_PROJECTION_SCHEMAS: {
216
+ readonly termsOfService: z.ZodObject<{
217
+ version: z.ZodNumber;
218
+ lastUpdated: z.ZodNumber;
219
+ sections: z.ZodArray<z.ZodObject<{
220
+ id: z.ZodString;
221
+ heading: z.ZodString;
222
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
223
+ body: z.ZodString;
224
+ order: z.ZodNumber;
225
+ }, z.core.$strip>>;
226
+ }, z.core.$strip>;
227
+ readonly privacyPolicy: z.ZodObject<{
228
+ version: z.ZodNumber;
229
+ lastUpdated: z.ZodNumber;
230
+ sections: z.ZodArray<z.ZodObject<{
231
+ id: z.ZodString;
232
+ heading: z.ZodString;
233
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
234
+ body: z.ZodString;
235
+ order: z.ZodNumber;
236
+ }, z.core.$strip>>;
237
+ }, z.core.$strip>;
238
+ readonly rulesAndAgreements: z.ZodObject<{
239
+ rules: z.ZodArray<z.ZodObject<{
240
+ id: z.ZodString;
241
+ title: z.ZodString;
242
+ description: z.ZodString;
243
+ videoUrl: z.ZodOptional<z.ZodString>;
244
+ group: z.ZodOptional<z.ZodEnum<{
245
+ workRealm: "workRealm";
246
+ workProjectType: "workProjectType";
247
+ hallWingType: "hallWingType";
248
+ generic: "generic";
249
+ merchandising: "merchandising";
250
+ }>>;
251
+ subgroup: z.ZodOptional<z.ZodEnum<{
252
+ Tales: "Tales";
253
+ Tunes: "Tunes";
254
+ Television: "Television";
255
+ entertainment: "entertainment";
256
+ educational: "educational";
257
+ newsPolitical: "newsPolitical";
258
+ }>>;
259
+ order: z.ZodNumber;
260
+ }, z.core.$strip>>;
261
+ agreements: z.ZodObject<{
262
+ tales: z.ZodOptional<z.ZodObject<{
263
+ points: z.ZodArray<z.ZodString>;
264
+ videoUrl: z.ZodOptional<z.ZodString>;
265
+ }, z.core.$strip>>;
266
+ tunes: z.ZodOptional<z.ZodObject<{
267
+ points: z.ZodArray<z.ZodString>;
268
+ videoUrl: z.ZodOptional<z.ZodString>;
269
+ }, z.core.$strip>>;
270
+ television: z.ZodOptional<z.ZodObject<{
271
+ points: z.ZodArray<z.ZodString>;
272
+ videoUrl: z.ZodOptional<z.ZodString>;
273
+ }, z.core.$strip>>;
274
+ }, z.core.$strip>;
275
+ version: z.ZodOptional<z.ZodNumber>;
276
+ lastUpdated: z.ZodOptional<z.ZodNumber>;
277
+ }, z.core.$strip>;
278
+ readonly futurePlans: z.ZodObject<{
279
+ lastUpdated: z.ZodNumber;
280
+ plans: z.ZodArray<z.ZodObject<{
281
+ id: z.ZodString;
282
+ title: z.ZodString;
283
+ description: z.ZodString;
284
+ order: z.ZodNumber;
285
+ videoUrl: z.ZodOptional<z.ZodString>;
286
+ mediaType: z.ZodOptional<z.ZodEnum<{
287
+ image: "image";
288
+ video: "video";
289
+ audio: "audio";
290
+ other: "other";
291
+ }>>;
292
+ }, z.core.$strip>>;
293
+ version: z.ZodOptional<z.ZodNumber>;
294
+ }, z.core.$strip>;
295
+ readonly dmcaPolicy: z.ZodObject<{
296
+ version: z.ZodNumber;
297
+ lastUpdated: z.ZodNumber;
298
+ intro: z.ZodString;
299
+ contactBlocks: z.ZodArray<z.ZodObject<{
300
+ id: z.ZodString;
301
+ heading: z.ZodString;
302
+ order: z.ZodNumber;
303
+ rows: z.ZodArray<z.ZodObject<{
304
+ id: z.ZodString;
305
+ label: z.ZodString;
306
+ value: z.ZodString;
307
+ order: z.ZodNumber;
308
+ }, z.core.$strip>>;
309
+ }, z.core.$strip>>;
310
+ sections: z.ZodArray<z.ZodObject<{
311
+ id: z.ZodString;
312
+ heading: z.ZodString;
313
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
314
+ body: z.ZodString;
315
+ order: z.ZodNumber;
316
+ }, z.core.$strip>>;
317
+ }, z.core.$strip>;
318
+ readonly takeItDownPageCopy: z.ZodObject<{
319
+ version: z.ZodNumber;
320
+ lastUpdated: z.ZodNumber;
321
+ strings: z.ZodRecord<z.ZodString, z.ZodString>;
322
+ }, z.core.$strip>;
323
+ };
324
+ /**
325
+ * The current projection the publish writes for document `D`: its content plus the version and
326
+ * the publish time. Assignable to the page's existing document type.
327
+ */
328
+ export type PublicDocumentProjection<D extends PublicDocumentId = PublicDocumentId> = PublicDocumentContent<D> & {
329
+ version: number;
330
+ lastUpdated: number;
331
+ };
332
+ /**
333
+ * `publicDocuments/{documentId}/publicDocumentVersions/v{version}` — one published version,
334
+ * written once by the publish transaction and never edited: the full content, the version,
335
+ * the release that published it, the publisher's uid, and the server time.
336
+ */
337
+ export declare const PublicDocumentVersionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
338
+ documentId: z.ZodLiteral<"termsOfService">;
339
+ content: z.ZodObject<{
340
+ sections: z.ZodArray<z.ZodObject<{
341
+ id: z.ZodString;
342
+ heading: z.ZodString;
343
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
344
+ body: z.ZodString;
345
+ order: z.ZodNumber;
346
+ }, z.core.$strip>>;
347
+ }, z.core.$strip>;
348
+ version: z.ZodNumber;
349
+ releaseId: z.ZodString;
350
+ publishedBy: z.ZodString;
351
+ publishedAt: z.ZodNumber;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ documentId: z.ZodLiteral<"privacyPolicy">;
354
+ content: z.ZodObject<{
355
+ sections: z.ZodArray<z.ZodObject<{
356
+ id: z.ZodString;
357
+ heading: z.ZodString;
358
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
359
+ body: z.ZodString;
360
+ order: z.ZodNumber;
361
+ }, z.core.$strip>>;
362
+ }, z.core.$strip>;
363
+ version: z.ZodNumber;
364
+ releaseId: z.ZodString;
365
+ publishedBy: z.ZodString;
366
+ publishedAt: z.ZodNumber;
367
+ }, z.core.$strip>, z.ZodObject<{
368
+ documentId: z.ZodLiteral<"rulesAndAgreements">;
369
+ content: z.ZodObject<{
370
+ rules: z.ZodArray<z.ZodObject<{
371
+ id: z.ZodString;
372
+ title: z.ZodString;
373
+ description: z.ZodString;
374
+ videoUrl: z.ZodOptional<z.ZodString>;
375
+ group: z.ZodOptional<z.ZodEnum<{
376
+ workRealm: "workRealm";
377
+ workProjectType: "workProjectType";
378
+ hallWingType: "hallWingType";
379
+ generic: "generic";
380
+ merchandising: "merchandising";
381
+ }>>;
382
+ subgroup: z.ZodOptional<z.ZodEnum<{
383
+ Tales: "Tales";
384
+ Tunes: "Tunes";
385
+ Television: "Television";
386
+ entertainment: "entertainment";
387
+ educational: "educational";
388
+ newsPolitical: "newsPolitical";
389
+ }>>;
390
+ order: z.ZodNumber;
391
+ }, z.core.$strip>>;
392
+ agreements: z.ZodObject<{
393
+ tales: z.ZodOptional<z.ZodObject<{
394
+ points: z.ZodArray<z.ZodString>;
395
+ videoUrl: z.ZodOptional<z.ZodString>;
396
+ }, z.core.$strip>>;
397
+ tunes: z.ZodOptional<z.ZodObject<{
398
+ points: z.ZodArray<z.ZodString>;
399
+ videoUrl: z.ZodOptional<z.ZodString>;
400
+ }, z.core.$strip>>;
401
+ television: z.ZodOptional<z.ZodObject<{
402
+ points: z.ZodArray<z.ZodString>;
403
+ videoUrl: z.ZodOptional<z.ZodString>;
404
+ }, z.core.$strip>>;
405
+ }, z.core.$strip>;
406
+ }, z.core.$strip>;
407
+ version: z.ZodNumber;
408
+ releaseId: z.ZodString;
409
+ publishedBy: z.ZodString;
410
+ publishedAt: z.ZodNumber;
411
+ }, z.core.$strip>, z.ZodObject<{
412
+ documentId: z.ZodLiteral<"futurePlans">;
413
+ content: z.ZodObject<{
414
+ plans: z.ZodArray<z.ZodObject<{
415
+ id: z.ZodString;
416
+ title: z.ZodString;
417
+ description: z.ZodString;
418
+ order: z.ZodNumber;
419
+ videoUrl: z.ZodOptional<z.ZodString>;
420
+ mediaType: z.ZodOptional<z.ZodEnum<{
421
+ image: "image";
422
+ video: "video";
423
+ audio: "audio";
424
+ other: "other";
425
+ }>>;
426
+ }, z.core.$strip>>;
427
+ }, z.core.$strip>;
428
+ version: z.ZodNumber;
429
+ releaseId: z.ZodString;
430
+ publishedBy: z.ZodString;
431
+ publishedAt: z.ZodNumber;
432
+ }, z.core.$strip>, z.ZodObject<{
433
+ documentId: z.ZodLiteral<"dmcaPolicy">;
434
+ content: z.ZodObject<{
435
+ sections: z.ZodArray<z.ZodObject<{
436
+ id: z.ZodString;
437
+ heading: z.ZodString;
438
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
439
+ body: z.ZodString;
440
+ order: z.ZodNumber;
441
+ }, z.core.$strip>>;
442
+ intro: z.ZodString;
443
+ contactBlocks: z.ZodArray<z.ZodObject<{
444
+ id: z.ZodString;
445
+ heading: z.ZodString;
446
+ order: z.ZodNumber;
447
+ rows: z.ZodArray<z.ZodObject<{
448
+ id: z.ZodString;
449
+ label: z.ZodString;
450
+ value: z.ZodString;
451
+ order: z.ZodNumber;
452
+ }, z.core.$strip>>;
453
+ }, z.core.$strip>>;
454
+ }, z.core.$strip>;
455
+ version: z.ZodNumber;
456
+ releaseId: z.ZodString;
457
+ publishedBy: z.ZodString;
458
+ publishedAt: z.ZodNumber;
459
+ }, z.core.$strip>, z.ZodObject<{
460
+ documentId: z.ZodLiteral<"takeItDownPageCopy">;
461
+ content: z.ZodObject<{
462
+ strings: z.ZodRecord<z.ZodString, z.ZodString>;
463
+ }, z.core.$strip>;
464
+ version: z.ZodNumber;
465
+ releaseId: z.ZodString;
466
+ publishedBy: z.ZodString;
467
+ publishedAt: z.ZodNumber;
468
+ }, z.core.$strip>], "documentId">;
469
+ export type PublicDocumentVersion = z.infer<typeof PublicDocumentVersionSchema>;
470
+ /**
471
+ * `publicDocumentDrafts/{documentId}` — the one private working copy of a document, saved from
472
+ * its Admin editor. `baseVersion` is the published version the edit started from (0 when the
473
+ * document has never been published): the publish rejects a draft whose base is no longer the
474
+ * current version, and one whose content equals the current version.
475
+ */
476
+ export declare const PublicDocumentDraftSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
477
+ documentId: z.ZodLiteral<"termsOfService">;
478
+ content: z.ZodObject<{
479
+ sections: z.ZodArray<z.ZodObject<{
480
+ id: z.ZodString;
481
+ heading: z.ZodString;
482
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
483
+ body: z.ZodString;
484
+ order: z.ZodNumber;
485
+ }, z.core.$strip>>;
486
+ }, z.core.$strip>;
487
+ baseVersion: z.ZodNumber;
488
+ savedBy: z.ZodString;
489
+ savedAt: z.ZodNumber;
490
+ }, z.core.$strip>, z.ZodObject<{
491
+ documentId: z.ZodLiteral<"privacyPolicy">;
492
+ content: z.ZodObject<{
493
+ sections: z.ZodArray<z.ZodObject<{
494
+ id: z.ZodString;
495
+ heading: z.ZodString;
496
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
497
+ body: z.ZodString;
498
+ order: z.ZodNumber;
499
+ }, z.core.$strip>>;
500
+ }, z.core.$strip>;
501
+ baseVersion: z.ZodNumber;
502
+ savedBy: z.ZodString;
503
+ savedAt: z.ZodNumber;
504
+ }, z.core.$strip>, z.ZodObject<{
505
+ documentId: z.ZodLiteral<"rulesAndAgreements">;
506
+ content: z.ZodObject<{
507
+ rules: z.ZodArray<z.ZodObject<{
508
+ id: z.ZodString;
509
+ title: z.ZodString;
510
+ description: z.ZodString;
511
+ videoUrl: z.ZodOptional<z.ZodString>;
512
+ group: z.ZodOptional<z.ZodEnum<{
513
+ workRealm: "workRealm";
514
+ workProjectType: "workProjectType";
515
+ hallWingType: "hallWingType";
516
+ generic: "generic";
517
+ merchandising: "merchandising";
518
+ }>>;
519
+ subgroup: z.ZodOptional<z.ZodEnum<{
520
+ Tales: "Tales";
521
+ Tunes: "Tunes";
522
+ Television: "Television";
523
+ entertainment: "entertainment";
524
+ educational: "educational";
525
+ newsPolitical: "newsPolitical";
526
+ }>>;
527
+ order: z.ZodNumber;
528
+ }, z.core.$strip>>;
529
+ agreements: z.ZodObject<{
530
+ tales: z.ZodOptional<z.ZodObject<{
531
+ points: z.ZodArray<z.ZodString>;
532
+ videoUrl: z.ZodOptional<z.ZodString>;
533
+ }, z.core.$strip>>;
534
+ tunes: z.ZodOptional<z.ZodObject<{
535
+ points: z.ZodArray<z.ZodString>;
536
+ videoUrl: z.ZodOptional<z.ZodString>;
537
+ }, z.core.$strip>>;
538
+ television: z.ZodOptional<z.ZodObject<{
539
+ points: z.ZodArray<z.ZodString>;
540
+ videoUrl: z.ZodOptional<z.ZodString>;
541
+ }, z.core.$strip>>;
542
+ }, z.core.$strip>;
543
+ }, z.core.$strip>;
544
+ baseVersion: z.ZodNumber;
545
+ savedBy: z.ZodString;
546
+ savedAt: z.ZodNumber;
547
+ }, z.core.$strip>, z.ZodObject<{
548
+ documentId: z.ZodLiteral<"futurePlans">;
549
+ content: z.ZodObject<{
550
+ plans: z.ZodArray<z.ZodObject<{
551
+ id: z.ZodString;
552
+ title: z.ZodString;
553
+ description: z.ZodString;
554
+ order: z.ZodNumber;
555
+ videoUrl: z.ZodOptional<z.ZodString>;
556
+ mediaType: z.ZodOptional<z.ZodEnum<{
557
+ image: "image";
558
+ video: "video";
559
+ audio: "audio";
560
+ other: "other";
561
+ }>>;
562
+ }, z.core.$strip>>;
563
+ }, z.core.$strip>;
564
+ baseVersion: z.ZodNumber;
565
+ savedBy: z.ZodString;
566
+ savedAt: z.ZodNumber;
567
+ }, z.core.$strip>, z.ZodObject<{
568
+ documentId: z.ZodLiteral<"dmcaPolicy">;
569
+ content: z.ZodObject<{
570
+ sections: z.ZodArray<z.ZodObject<{
571
+ id: z.ZodString;
572
+ heading: z.ZodString;
573
+ level: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>;
574
+ body: z.ZodString;
575
+ order: z.ZodNumber;
576
+ }, z.core.$strip>>;
577
+ intro: z.ZodString;
578
+ contactBlocks: z.ZodArray<z.ZodObject<{
579
+ id: z.ZodString;
580
+ heading: z.ZodString;
581
+ order: z.ZodNumber;
582
+ rows: z.ZodArray<z.ZodObject<{
583
+ id: z.ZodString;
584
+ label: z.ZodString;
585
+ value: z.ZodString;
586
+ order: z.ZodNumber;
587
+ }, z.core.$strip>>;
588
+ }, z.core.$strip>>;
589
+ }, z.core.$strip>;
590
+ baseVersion: z.ZodNumber;
591
+ savedBy: z.ZodString;
592
+ savedAt: z.ZodNumber;
593
+ }, z.core.$strip>, z.ZodObject<{
594
+ documentId: z.ZodLiteral<"takeItDownPageCopy">;
595
+ content: z.ZodObject<{
596
+ strings: z.ZodRecord<z.ZodString, z.ZodString>;
597
+ }, z.core.$strip>;
598
+ baseVersion: z.ZodNumber;
599
+ savedBy: z.ZodString;
600
+ savedAt: z.ZodNumber;
601
+ }, z.core.$strip>], "documentId">;
602
+ export type PublicDocumentDraft = z.infer<typeof PublicDocumentDraftSchema>;
603
+ /**
604
+ * `publicDocumentReleases/{releaseId}` — one record per publish: which documents moved to
605
+ * which versions, whether the release requires acceptance, the required-acceptance level in
606
+ * force after it (raised by one only when it requires acceptance), and who published it when.
607
+ */
608
+ export declare const PublicDocumentReleaseSchema: z.ZodObject<{
609
+ releaseId: z.ZodString;
610
+ documents: z.ZodArray<z.ZodObject<{
611
+ documentId: z.ZodEnum<{
612
+ futurePlans: "futurePlans";
613
+ rulesAndAgreements: "rulesAndAgreements";
614
+ termsOfService: "termsOfService";
615
+ privacyPolicy: "privacyPolicy";
616
+ takeItDownPageCopy: "takeItDownPageCopy";
617
+ dmcaPolicy: "dmcaPolicy";
618
+ }>;
619
+ version: z.ZodNumber;
620
+ }, z.core.$strict>>;
621
+ requireAcceptance: z.ZodBoolean;
622
+ requiredAcceptanceLevel: z.ZodNumber;
623
+ publishedBy: z.ZodString;
624
+ publishedAt: z.ZodNumber;
625
+ }, z.core.$strip>;
626
+ export type PublicDocumentRelease = z.infer<typeof PublicDocumentReleaseSchema>;
627
+ /**
628
+ * One document's entry in the version block: its current published version and the latest
629
+ * version a release REQUIRED acceptance of (0 when none has).
630
+ */
631
+ export declare const PublicDocumentVersionStateSchema: z.ZodObject<{
632
+ currentVersion: z.ZodNumber;
633
+ requiredVersion: z.ZodNumber;
634
+ }, z.core.$strict>;
635
+ export type PublicDocumentVersionState = z.infer<typeof PublicDocumentVersionStateSchema>;
636
+ /**
637
+ * `_appConfig/app.publicDocumentVersions` — written only by the publish transaction. A document
638
+ * never published has no entry. `requiredAcceptanceLevel` rises by one with every release that
639
+ * requires acceptance; a session whose accepted level is below it is asked to accept.
640
+ */
641
+ export declare const PublicDocumentVersionBlockSchema: z.ZodObject<{
642
+ documents: z.ZodRecord<z.ZodEnum<{
643
+ futurePlans: "futurePlans";
644
+ rulesAndAgreements: "rulesAndAgreements";
645
+ termsOfService: "termsOfService";
646
+ privacyPolicy: "privacyPolicy";
647
+ takeItDownPageCopy: "takeItDownPageCopy";
648
+ dmcaPolicy: "dmcaPolicy";
649
+ }> & z.core.$partial, z.ZodObject<{
650
+ currentVersion: z.ZodNumber;
651
+ requiredVersion: z.ZodNumber;
652
+ }, z.core.$strict>>;
653
+ requiredAcceptanceLevel: z.ZodNumber;
654
+ }, z.core.$strict>;
655
+ export type PublicDocumentVersionBlock = z.infer<typeof PublicDocumentVersionBlockSchema>;
656
+ /**
657
+ * `privateData/{uid}.publicDocumentAcceptance` — the LATEST accepted version of each document
658
+ * and the accepted level, replaced whole on every acceptance (registration or the re-acceptance
659
+ * prompt). A document absent from `documentVersions` counts as version 0. The notice revision in
660
+ * force at that acceptance is recorded when the notice was active. History is not kept here — it
661
+ * is the `publicDocuments.accepted` audit events.
662
+ */
663
+ export declare const PublicDocumentAcceptanceSchema: z.ZodObject<{
664
+ documentVersions: z.ZodRecord<z.ZodEnum<{
665
+ futurePlans: "futurePlans";
666
+ rulesAndAgreements: "rulesAndAgreements";
667
+ termsOfService: "termsOfService";
668
+ privacyPolicy: "privacyPolicy";
669
+ takeItDownPageCopy: "takeItDownPageCopy";
670
+ dmcaPolicy: "dmcaPolicy";
671
+ }> & z.core.$partial, z.ZodNumber>;
672
+ acceptedLevel: z.ZodNumber;
673
+ legalReviewNoticeRevision: z.ZodOptional<z.ZodString>;
674
+ acceptedAt: z.ZodNumber;
675
+ }, z.core.$strict>;
676
+ export type PublicDocumentAcceptance = z.infer<typeof PublicDocumentAcceptanceSchema>;
677
+ //# sourceMappingURL=public-documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-documents.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/public-documents.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAU9F,eAAO,MAAM,sBAAsB;;;;;;;EAA8B,CAAC;AAElE,mDAAmD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