@openpeepshq/common 0.7.0 → 0.9.0

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/types/api.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { notificationStatsSchema, pushNotificationSchema, } from './notifications.js';
3
- import { accessTokenSchema, accountInteractionsSchema, accountNameSchema, federatedHandleSchema, accountSchema, answerSchema, applicationDataSchema, groupDataSchema, groupRoleSchema, groupSchema, guestDataSchema, hashtagSchema, inviteLinkSchema, jamRecordingStatusSchema, latLngSchema, locationSchema, mediaAttachmentSchema, mentionDataSchema, postDataUnionSchema, postTypeSchema, profileDataSchema, profileStatsSchema, reactionDataSchema, roleDataSchema, reportDataSchema, reportSchema, resourceSchema, rsvpSchema, scopeSchema, visibilityTypeSchema, } from './models.js';
3
+ import { accessTokenSchema, accountInteractionsSchema, accountNameSchema, federatedHandleSchema, accountSchema, answerSchema, applicationDataSchema, groupDataSchema, groupRoleSchema, groupSchema, guestDataSchema, hashtagSchema, inviteLinkSchema, jamRecordingStatusSchema, latLngSchema, locationSchema, mediaAttachmentSchema, mentionDataSchema, postDataInputUnionSchema, postDataUnionSchema, postTypeSchema, profileDataSchema, profileStatsSchema, reactionDataSchema, roleDataSchema, reportDataSchema, reportSchema, resourceSchema, rsvpSchema, scopeSchema, visibilityTypeSchema, } from './models.js';
4
4
  import { groupWithMetaSchema } from './internal.js';
5
5
  import { communityConfigSchema } from './config.js';
6
6
  import { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi';
@@ -474,6 +474,8 @@ export const reportCreationDataSchema = z.object({
474
474
  export const jamStateSchema = z.object({
475
475
  active: z.boolean(),
476
476
  participants: z.uuid().array(),
477
+ /** Count of hidden `EG_` sessions (observer links, recording/RTMP egress). */
478
+ observers: z.number().optional(),
477
479
  });
478
480
  export const publicReportSchema = reportSchema.extend({
479
481
  reporterProfile: publicProfileSchema,
@@ -492,6 +494,21 @@ export const offsetInfiniteQueryParamsSchema = z.object({
492
494
  offset: z.coerce.number().optional(),
493
495
  limit: z.coerce.number().optional(),
494
496
  });
497
+ /** Span cap of the date-range event feeds (events calendar). */
498
+ export const EVENT_RANGE_MAX_SPAN_MS = 62 * 24 * 60 * 60 * 1000;
499
+ /** Default page size of the date-range event feeds (events calendar). */
500
+ export const EVENT_RANGE_DEFAULT_LIMIT = 500;
501
+ /** Query params of the date-range event feeds (events calendar). */
502
+ export const eventRangeQueryParamsSchema = z
503
+ .object({
504
+ from: z.string().datetime({ offset: true }),
505
+ to: z.string().datetime({ offset: true }),
506
+ offset: z.coerce.number().optional(),
507
+ limit: z.coerce.number().optional(),
508
+ })
509
+ .refine((value) => new Date(value.from).getTime() < new Date(value.to).getTime() &&
510
+ new Date(value.to).getTime() - new Date(value.from).getTime() <=
511
+ EVENT_RANGE_MAX_SPAN_MS, { message: 'from < to with a span of at most 62 days' });
495
512
  export const searchResultItemSchema = (baseSchema) => z.object({
496
513
  score: z.number(),
497
514
  data: baseSchema,
@@ -515,7 +532,7 @@ export const directMessageSearchHitSchema = z.object({
515
532
  export const postCreationDataSchema = z.object({
516
533
  visibility: visibilityTypeSchema,
517
534
  type: postTypeSchema,
518
- data: postDataUnionSchema,
535
+ data: postDataInputUnionSchema,
519
536
  inReplyToId: z.uuid().nullable().optional(),
520
537
  mentions: mentionWithPublicProfileSchema.array().nullable().optional(),
521
538
  audience: publicProfileSchema.array().nullable().optional(),
@@ -18,9 +18,9 @@ export declare const dbNotificationSchema: z.ZodObject<{
18
18
  deletedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
19
19
  post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
20
  type: z.ZodEnum<{
21
- resource: "resource";
22
21
  note: "note";
23
22
  question: "question";
23
+ resource: "resource";
24
24
  event: "event";
25
25
  article: "article";
26
26
  }>;
@@ -338,9 +338,9 @@ export type DbReaction = ReactionData & {
338
338
  };
339
339
  export declare const dbBasePostSchema: z.ZodObject<{
340
340
  type: z.ZodEnum<{
341
- resource: "resource";
342
341
  note: "note";
343
342
  question: "question";
343
+ resource: "resource";
344
344
  event: "event";
345
345
  article: "article";
346
346
  }>;
@@ -1973,9 +1973,9 @@ export interface DbBasePost extends Post {
1973
1973
  }
1974
1974
  export declare const dbPostWithReplySchema: z.ZodObject<{
1975
1975
  type: z.ZodEnum<{
1976
- resource: "resource";
1977
1976
  note: "note";
1978
1977
  question: "question";
1978
+ resource: "resource";
1979
1979
  event: "event";
1980
1980
  article: "article";
1981
1981
  }>;
@@ -3587,9 +3587,9 @@ export declare const dbPostWithReplySchema: z.ZodObject<{
3587
3587
  seen: z.ZodOptional<z.ZodBoolean>;
3588
3588
  replyTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3589
3589
  type: z.ZodEnum<{
3590
- resource: "resource";
3591
3590
  note: "note";
3592
3591
  question: "question";
3592
+ resource: "resource";
3593
3593
  event: "event";
3594
3594
  article: "article";
3595
3595
  }>;
@@ -5204,9 +5204,9 @@ export declare const dbPostWithReplySchema: z.ZodObject<{
5204
5204
  }, z.core.$strip>;
5205
5205
  export declare const dbPostSchema: z.ZodObject<{
5206
5206
  type: z.ZodEnum<{
5207
- resource: "resource";
5208
5207
  note: "note";
5209
5208
  question: "question";
5209
+ resource: "resource";
5210
5210
  event: "event";
5211
5211
  article: "article";
5212
5212
  }>;
@@ -6818,9 +6818,9 @@ export declare const dbPostSchema: z.ZodObject<{
6818
6818
  seen: z.ZodOptional<z.ZodBoolean>;
6819
6819
  replyTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6820
6820
  type: z.ZodEnum<{
6821
- resource: "resource";
6822
6821
  note: "note";
6823
6822
  question: "question";
6823
+ resource: "resource";
6824
6824
  event: "event";
6825
6825
  article: "article";
6826
6826
  }>;
@@ -8434,9 +8434,9 @@ export declare const dbPostSchema: z.ZodObject<{
8434
8434
  inReplyToId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8435
8435
  repost: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8436
8436
  type: z.ZodEnum<{
8437
- resource: "resource";
8438
8437
  note: "note";
8439
8438
  question: "question";
8439
+ resource: "resource";
8440
8440
  event: "event";
8441
8441
  article: "article";
8442
8442
  }>;
@@ -10048,9 +10048,9 @@ export declare const dbPostSchema: z.ZodObject<{
10048
10048
  seen: z.ZodOptional<z.ZodBoolean>;
10049
10049
  replyTo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
10050
10050
  type: z.ZodEnum<{
10051
- resource: "resource";
10052
10051
  note: "note";
10053
10052
  question: "question";
10053
+ resource: "resource";
10054
10054
  event: "event";
10055
10055
  article: "article";
10056
10056
  }>;
@@ -3823,9 +3823,9 @@ export type EntryWithProfile = z.infer<typeof entryWithProfileSchema>;
3823
3823
  export declare const replyPostSchema: z.ZodObject<{
3824
3824
  id: z.ZodString;
3825
3825
  type: z.ZodEnum<{
3826
- resource: "resource";
3827
3826
  note: "note";
3828
3827
  question: "question";
3828
+ resource: "resource";
3829
3829
  event: "event";
3830
3830
  article: "article";
3831
3831
  }>;
@@ -6492,9 +6492,9 @@ export type ReplyPost = z.infer<typeof replyPostSchema> & {
6492
6492
  declare const basePostSchema: z.ZodObject<{
6493
6493
  id: z.ZodString;
6494
6494
  type: z.ZodEnum<{
6495
- resource: "resource";
6496
6495
  note: "note";
6497
6496
  question: "question";
6497
+ resource: "resource";
6498
6498
  event: "event";
6499
6499
  article: "article";
6500
6500
  }>;
@@ -10211,9 +10211,9 @@ export type BasePost = z.infer<typeof basePostSchema> & {
10211
10211
  export declare const postWithMetaSchema: z.ZodObject<{
10212
10212
  id: z.ZodString;
10213
10213
  type: z.ZodEnum<{
10214
- resource: "resource";
10215
10214
  note: "note";
10216
10215
  question: "question";
10216
+ resource: "resource";
10217
10217
  event: "event";
10218
10218
  article: "article";
10219
10219
  }>;
@@ -13924,9 +13924,9 @@ export declare const postWithMetaSchema: z.ZodObject<{
13924
13924
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
13925
13925
  id: z.ZodString;
13926
13926
  type: z.ZodEnum<{
13927
- resource: "resource";
13928
13927
  note: "note";
13929
13928
  question: "question";
13929
+ resource: "resource";
13930
13930
  event: "event";
13931
13931
  article: "article";
13932
13932
  }>;
@@ -16590,9 +16590,9 @@ export declare const postWithMetaSchema: z.ZodObject<{
16590
16590
  repost: z.ZodNullable<z.ZodOptional<z.ZodObject<{
16591
16591
  id: z.ZodString;
16592
16592
  type: z.ZodEnum<{
16593
- resource: "resource";
16594
16593
  note: "note";
16595
16594
  question: "question";
16595
+ resource: "resource";
16596
16596
  event: "event";
16597
16597
  article: "article";
16598
16598
  }>;
@@ -20858,9 +20858,9 @@ export declare const expandedNotificationSchema: z.ZodObject<{
20858
20858
  post: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20859
20859
  id: z.ZodString;
20860
20860
  type: z.ZodEnum<{
20861
- resource: "resource";
20862
20861
  note: "note";
20863
20862
  question: "question";
20863
+ resource: "resource";
20864
20864
  event: "event";
20865
20865
  article: "article";
20866
20866
  }>;
@@ -24571,9 +24571,9 @@ export declare const expandedNotificationSchema: z.ZodObject<{
24571
24571
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
24572
24572
  id: z.ZodString;
24573
24573
  type: z.ZodEnum<{
24574
- resource: "resource";
24575
24574
  note: "note";
24576
24575
  question: "question";
24576
+ resource: "resource";
24577
24577
  event: "event";
24578
24578
  article: "article";
24579
24579
  }>;
@@ -27237,9 +27237,9 @@ export declare const expandedNotificationSchema: z.ZodObject<{
27237
27237
  repost: z.ZodNullable<z.ZodOptional<z.ZodObject<{
27238
27238
  id: z.ZodString;
27239
27239
  type: z.ZodEnum<{
27240
- resource: "resource";
27241
27240
  note: "note";
27242
27241
  question: "question";
27242
+ resource: "resource";
27243
27243
  event: "event";
27244
27244
  article: "article";
27245
27245
  }>;
@@ -32277,9 +32277,9 @@ export declare const reportWithMetaSchema: z.ZodObject<{
32277
32277
  reportedPosts: z.ZodArray<z.ZodObject<{
32278
32278
  id: z.ZodString;
32279
32279
  type: z.ZodEnum<{
32280
- resource: "resource";
32281
32280
  note: "note";
32282
32281
  question: "question";
32282
+ resource: "resource";
32283
32283
  event: "event";
32284
32284
  article: "article";
32285
32285
  }>;
@@ -35990,9 +35990,9 @@ export declare const reportWithMetaSchema: z.ZodObject<{
35990
35990
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
35991
35991
  id: z.ZodString;
35992
35992
  type: z.ZodEnum<{
35993
- resource: "resource";
35994
35993
  note: "note";
35995
35994
  question: "question";
35995
+ resource: "resource";
35996
35996
  event: "event";
35997
35997
  article: "article";
35998
35998
  }>;
@@ -38656,9 +38656,9 @@ export declare const reportWithMetaSchema: z.ZodObject<{
38656
38656
  repost: z.ZodNullable<z.ZodOptional<z.ZodObject<{
38657
38657
  id: z.ZodString;
38658
38658
  type: z.ZodEnum<{
38659
- resource: "resource";
38660
38659
  note: "note";
38661
38660
  question: "question";
38661
+ resource: "resource";
38662
38662
  event: "event";
38663
38663
  article: "article";
38664
38664
  }>;
@@ -42673,9 +42673,9 @@ export declare const jamRecordingWithMetaSchema: z.ZodObject<{
42673
42673
  post: z.ZodObject<{
42674
42674
  id: z.ZodString;
42675
42675
  type: z.ZodEnum<{
42676
- resource: "resource";
42677
42676
  note: "note";
42678
42677
  question: "question";
42678
+ resource: "resource";
42679
42679
  event: "event";
42680
42680
  article: "article";
42681
42681
  }>;
@@ -46386,9 +46386,9 @@ export declare const jamRecordingWithMetaSchema: z.ZodObject<{
46386
46386
  replyTo: z.ZodNullable<z.ZodOptional<z.ZodObject<{
46387
46387
  id: z.ZodString;
46388
46388
  type: z.ZodEnum<{
46389
- resource: "resource";
46390
46389
  note: "note";
46391
46390
  question: "question";
46391
+ resource: "resource";
46392
46392
  event: "event";
46393
46393
  article: "article";
46394
46394
  }>;
@@ -49052,9 +49052,9 @@ export declare const jamRecordingWithMetaSchema: z.ZodObject<{
49052
49052
  repost: z.ZodNullable<z.ZodOptional<z.ZodObject<{
49053
49053
  id: z.ZodString;
49054
49054
  type: z.ZodEnum<{
49055
- resource: "resource";
49056
49055
  note: "note";
49057
49056
  question: "question";
49057
+ resource: "resource";
49058
49058
  event: "event";
49059
49059
  article: "article";
49060
49060
  }>;
@@ -741,9 +741,9 @@ export declare const visibilityTypeSchema: z.ZodEnum<{
741
741
  }>;
742
742
  export type VisibilityType = z.infer<typeof visibilityTypeSchema>;
743
743
  export declare const postTypeSchema: z.ZodEnum<{
744
- resource: "resource";
745
744
  note: "note";
746
745
  question: "question";
746
+ resource: "resource";
747
747
  event: "event";
748
748
  article: "article";
749
749
  }>;
@@ -933,6 +933,93 @@ export declare const questionSchema: z.ZodObject<{
933
933
  expiresAt: z.ZodOptional<z.ZodISODateTime>;
934
934
  }, z.core.$strip>;
935
935
  export type Question = z.infer<typeof questionSchema>;
936
+ export declare const noteInputSchema: z.ZodObject<{
937
+ type: z.ZodLiteral<"note">;
938
+ content: z.ZodOptional<z.ZodString>;
939
+ sensitive: z.ZodOptional<z.ZodBoolean>;
940
+ spoilerText: z.ZodOptional<z.ZodString>;
941
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
942
+ type: z.ZodString;
943
+ url: z.ZodURL;
944
+ previewUrl: z.ZodNullable<z.ZodURL>;
945
+ textUrl: z.ZodNull;
946
+ filename: z.ZodString;
947
+ meta: z.ZodObject<{
948
+ usage: z.ZodOptional<z.ZodString>;
949
+ focus: z.ZodOptional<z.ZodObject<{
950
+ x: z.ZodNumber;
951
+ y: z.ZodNumber;
952
+ }, z.core.$strip>>;
953
+ mimetype: z.ZodOptional<z.ZodString>;
954
+ size: z.ZodOptional<z.ZodNumber>;
955
+ }, z.core.$strip>;
956
+ description: z.ZodOptional<z.ZodString>;
957
+ blurhash: z.ZodOptional<z.ZodString>;
958
+ status: z.ZodOptional<z.ZodEnum<{
959
+ processing: "processing";
960
+ ready: "ready";
961
+ failed: "failed";
962
+ }>>;
963
+ error: z.ZodOptional<z.ZodString>;
964
+ }, z.core.$strip>>>;
965
+ customEmojis: z.ZodOptional<z.ZodArray<z.ZodObject<{
966
+ shortcode: z.ZodString;
967
+ url: z.ZodURL;
968
+ staticUrl: z.ZodURL;
969
+ visibleInPicker: z.ZodBoolean;
970
+ category: z.ZodString;
971
+ }, z.core.$strip>>>;
972
+ language: z.ZodOptional<z.ZodEnum<{
973
+ [x: string]: string;
974
+ }>>;
975
+ }, z.core.$strip>;
976
+ export declare const questionInputSchema: z.ZodObject<{
977
+ content: z.ZodOptional<z.ZodString>;
978
+ sensitive: z.ZodOptional<z.ZodBoolean>;
979
+ spoilerText: z.ZodOptional<z.ZodString>;
980
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
981
+ type: z.ZodString;
982
+ url: z.ZodURL;
983
+ previewUrl: z.ZodNullable<z.ZodURL>;
984
+ textUrl: z.ZodNull;
985
+ filename: z.ZodString;
986
+ meta: z.ZodObject<{
987
+ usage: z.ZodOptional<z.ZodString>;
988
+ focus: z.ZodOptional<z.ZodObject<{
989
+ x: z.ZodNumber;
990
+ y: z.ZodNumber;
991
+ }, z.core.$strip>>;
992
+ mimetype: z.ZodOptional<z.ZodString>;
993
+ size: z.ZodOptional<z.ZodNumber>;
994
+ }, z.core.$strip>;
995
+ description: z.ZodOptional<z.ZodString>;
996
+ blurhash: z.ZodOptional<z.ZodString>;
997
+ status: z.ZodOptional<z.ZodEnum<{
998
+ processing: "processing";
999
+ ready: "ready";
1000
+ failed: "failed";
1001
+ }>>;
1002
+ error: z.ZodOptional<z.ZodString>;
1003
+ }, z.core.$strip>>>;
1004
+ customEmojis: z.ZodOptional<z.ZodArray<z.ZodObject<{
1005
+ shortcode: z.ZodString;
1006
+ url: z.ZodURL;
1007
+ staticUrl: z.ZodURL;
1008
+ visibleInPicker: z.ZodBoolean;
1009
+ category: z.ZodString;
1010
+ }, z.core.$strip>>>;
1011
+ language: z.ZodOptional<z.ZodEnum<{
1012
+ [x: string]: string;
1013
+ }>>;
1014
+ type: z.ZodLiteral<"question">;
1015
+ options: z.ZodArray<z.ZodObject<{
1016
+ content: z.ZodString;
1017
+ type: z.ZodLiteral<"note">;
1018
+ }, z.core.$strip>>;
1019
+ multiple: z.ZodOptional<z.ZodBoolean>;
1020
+ votersVisible: z.ZodOptional<z.ZodBoolean>;
1021
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
1022
+ }, z.core.$strip>;
936
1023
  export declare const articleSchema: z.ZodObject<{
937
1024
  content: z.ZodOptional<z.ZodString>;
938
1025
  sensitive: z.ZodOptional<z.ZodBoolean>;
@@ -1475,11 +1562,294 @@ export declare const postDataUnionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1475
1562
  url: z.ZodOptional<z.ZodURL>;
1476
1563
  }, z.core.$strip>], "type">;
1477
1564
  export type PostDataUnion = z.infer<typeof postDataUnionSchema>;
1565
+ export declare const postDataInputUnionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1566
+ type: z.ZodLiteral<"note">;
1567
+ content: z.ZodOptional<z.ZodString>;
1568
+ sensitive: z.ZodOptional<z.ZodBoolean>;
1569
+ spoilerText: z.ZodOptional<z.ZodString>;
1570
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1571
+ type: z.ZodString;
1572
+ url: z.ZodURL;
1573
+ previewUrl: z.ZodNullable<z.ZodURL>;
1574
+ textUrl: z.ZodNull;
1575
+ filename: z.ZodString;
1576
+ meta: z.ZodObject<{
1577
+ usage: z.ZodOptional<z.ZodString>;
1578
+ focus: z.ZodOptional<z.ZodObject<{
1579
+ x: z.ZodNumber;
1580
+ y: z.ZodNumber;
1581
+ }, z.core.$strip>>;
1582
+ mimetype: z.ZodOptional<z.ZodString>;
1583
+ size: z.ZodOptional<z.ZodNumber>;
1584
+ }, z.core.$strip>;
1585
+ description: z.ZodOptional<z.ZodString>;
1586
+ blurhash: z.ZodOptional<z.ZodString>;
1587
+ status: z.ZodOptional<z.ZodEnum<{
1588
+ processing: "processing";
1589
+ ready: "ready";
1590
+ failed: "failed";
1591
+ }>>;
1592
+ error: z.ZodOptional<z.ZodString>;
1593
+ }, z.core.$strip>>>;
1594
+ customEmojis: z.ZodOptional<z.ZodArray<z.ZodObject<{
1595
+ shortcode: z.ZodString;
1596
+ url: z.ZodURL;
1597
+ staticUrl: z.ZodURL;
1598
+ visibleInPicker: z.ZodBoolean;
1599
+ category: z.ZodString;
1600
+ }, z.core.$strip>>>;
1601
+ language: z.ZodOptional<z.ZodEnum<{
1602
+ [x: string]: string;
1603
+ }>>;
1604
+ }, z.core.$strip>, z.ZodObject<{
1605
+ content: z.ZodOptional<z.ZodString>;
1606
+ sensitive: z.ZodOptional<z.ZodBoolean>;
1607
+ spoilerText: z.ZodOptional<z.ZodString>;
1608
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1609
+ type: z.ZodString;
1610
+ url: z.ZodURL;
1611
+ previewUrl: z.ZodNullable<z.ZodURL>;
1612
+ textUrl: z.ZodNull;
1613
+ filename: z.ZodString;
1614
+ meta: z.ZodObject<{
1615
+ usage: z.ZodOptional<z.ZodString>;
1616
+ focus: z.ZodOptional<z.ZodObject<{
1617
+ x: z.ZodNumber;
1618
+ y: z.ZodNumber;
1619
+ }, z.core.$strip>>;
1620
+ mimetype: z.ZodOptional<z.ZodString>;
1621
+ size: z.ZodOptional<z.ZodNumber>;
1622
+ }, z.core.$strip>;
1623
+ description: z.ZodOptional<z.ZodString>;
1624
+ blurhash: z.ZodOptional<z.ZodString>;
1625
+ status: z.ZodOptional<z.ZodEnum<{
1626
+ processing: "processing";
1627
+ ready: "ready";
1628
+ failed: "failed";
1629
+ }>>;
1630
+ error: z.ZodOptional<z.ZodString>;
1631
+ }, z.core.$strip>>>;
1632
+ customEmojis: z.ZodOptional<z.ZodArray<z.ZodObject<{
1633
+ shortcode: z.ZodString;
1634
+ url: z.ZodURL;
1635
+ staticUrl: z.ZodURL;
1636
+ visibleInPicker: z.ZodBoolean;
1637
+ category: z.ZodString;
1638
+ }, z.core.$strip>>>;
1639
+ language: z.ZodOptional<z.ZodEnum<{
1640
+ [x: string]: string;
1641
+ }>>;
1642
+ type: z.ZodLiteral<"question">;
1643
+ options: z.ZodArray<z.ZodObject<{
1644
+ content: z.ZodString;
1645
+ type: z.ZodLiteral<"note">;
1646
+ }, z.core.$strip>>;
1647
+ multiple: z.ZodOptional<z.ZodBoolean>;
1648
+ votersVisible: z.ZodOptional<z.ZodBoolean>;
1649
+ expiresAt: z.ZodOptional<z.ZodISODateTime>;
1650
+ }, z.core.$strip>, z.ZodObject<{
1651
+ content: z.ZodOptional<z.ZodString>;
1652
+ sensitive: z.ZodOptional<z.ZodBoolean>;
1653
+ spoilerText: z.ZodOptional<z.ZodString>;
1654
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1655
+ type: z.ZodString;
1656
+ url: z.ZodURL;
1657
+ previewUrl: z.ZodNullable<z.ZodURL>;
1658
+ textUrl: z.ZodNull;
1659
+ filename: z.ZodString;
1660
+ meta: z.ZodObject<{
1661
+ usage: z.ZodOptional<z.ZodString>;
1662
+ focus: z.ZodOptional<z.ZodObject<{
1663
+ x: z.ZodNumber;
1664
+ y: z.ZodNumber;
1665
+ }, z.core.$strip>>;
1666
+ mimetype: z.ZodOptional<z.ZodString>;
1667
+ size: z.ZodOptional<z.ZodNumber>;
1668
+ }, z.core.$strip>;
1669
+ description: z.ZodOptional<z.ZodString>;
1670
+ blurhash: z.ZodOptional<z.ZodString>;
1671
+ status: z.ZodOptional<z.ZodEnum<{
1672
+ processing: "processing";
1673
+ ready: "ready";
1674
+ failed: "failed";
1675
+ }>>;
1676
+ error: z.ZodOptional<z.ZodString>;
1677
+ }, z.core.$strip>>>;
1678
+ customEmojis: z.ZodOptional<z.ZodArray<z.ZodObject<{
1679
+ shortcode: z.ZodString;
1680
+ url: z.ZodURL;
1681
+ staticUrl: z.ZodURL;
1682
+ visibleInPicker: z.ZodBoolean;
1683
+ category: z.ZodString;
1684
+ }, z.core.$strip>>>;
1685
+ language: z.ZodOptional<z.ZodEnum<{
1686
+ [x: string]: string;
1687
+ }>>;
1688
+ type: z.ZodLiteral<"event">;
1689
+ name: z.ZodOptional<z.ZodString>;
1690
+ timeZone: z.ZodOptional<z.ZodString>;
1691
+ image: z.ZodOptional<z.ZodURL>;
1692
+ start: z.ZodISODateTime;
1693
+ end: z.ZodOptional<z.ZodISODateTime>;
1694
+ wholeDay: z.ZodBoolean;
1695
+ maxAttendees: z.ZodOptional<z.ZodNumber>;
1696
+ waitlistOfferMinutes: z.ZodOptional<z.ZodNumber>;
1697
+ attendeeListPublic: z.ZodOptional<z.ZodBoolean>;
1698
+ moderators: z.ZodOptional<z.ZodArray<z.ZodString>>;
1699
+ jam: z.ZodOptional<z.ZodObject<{
1700
+ moderators: z.ZodArray<z.ZodString>;
1701
+ speakers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1702
+ presenters: z.ZodOptional<z.ZodArray<z.ZodString>>;
1703
+ audience: z.ZodOptional<z.ZodArray<z.ZodString>>;
1704
+ videoEnabled: z.ZodBoolean;
1705
+ type: z.ZodEnum<{
1706
+ "video-call": "video-call";
1707
+ }>;
1708
+ maxSpeakers: z.ZodOptional<z.ZodNumber>;
1709
+ maxPresenters: z.ZodOptional<z.ZodNumber>;
1710
+ maxAudience: z.ZodOptional<z.ZodNumber>;
1711
+ waitingRoom: z.ZodOptional<z.ZodBoolean>;
1712
+ }, z.core.$strip>>;
1713
+ physicalLocation: z.ZodOptional<z.ZodObject<{
1714
+ text: z.ZodString;
1715
+ coordinates: z.ZodOptional<z.ZodObject<{
1716
+ lat: z.ZodNumber;
1717
+ lng: z.ZodNumber;
1718
+ alt: z.ZodOptional<z.ZodNumber>;
1719
+ }, z.core.$strip>>;
1720
+ }, z.core.$strip>>;
1721
+ url: z.ZodOptional<z.ZodURL>;
1722
+ recurrence: z.ZodOptional<z.ZodObject<{
1723
+ freq: z.ZodEnum<{
1724
+ DAILY: "DAILY";
1725
+ WEEKLY: "WEEKLY";
1726
+ MONTHLY: "MONTHLY";
1727
+ }>;
1728
+ interval: z.ZodOptional<z.ZodNumber>;
1729
+ byDay: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1730
+ MO: "MO";
1731
+ TU: "TU";
1732
+ WE: "WE";
1733
+ TH: "TH";
1734
+ FR: "FR";
1735
+ SA: "SA";
1736
+ SU: "SU";
1737
+ }>>>;
1738
+ until: z.ZodOptional<z.ZodISODateTime>;
1739
+ count: z.ZodOptional<z.ZodNumber>;
1740
+ }, z.core.$strip>>;
1741
+ exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1742
+ recurrenceId: z.ZodISODateTime;
1743
+ cancelled: z.ZodOptional<z.ZodBoolean>;
1744
+ start: z.ZodOptional<z.ZodISODateTime>;
1745
+ end: z.ZodOptional<z.ZodISODateTime>;
1746
+ physicalLocation: z.ZodOptional<z.ZodObject<{
1747
+ text: z.ZodString;
1748
+ coordinates: z.ZodOptional<z.ZodObject<{
1749
+ lat: z.ZodNumber;
1750
+ lng: z.ZodNumber;
1751
+ alt: z.ZodOptional<z.ZodNumber>;
1752
+ }, z.core.$strip>>;
1753
+ }, z.core.$strip>>;
1754
+ }, z.core.$strip>>>;
1755
+ }, z.core.$strip>, z.ZodObject<{
1756
+ content: z.ZodOptional<z.ZodString>;
1757
+ sensitive: z.ZodOptional<z.ZodBoolean>;
1758
+ spoilerText: z.ZodOptional<z.ZodString>;
1759
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1760
+ type: z.ZodString;
1761
+ url: z.ZodURL;
1762
+ previewUrl: z.ZodNullable<z.ZodURL>;
1763
+ textUrl: z.ZodNull;
1764
+ filename: z.ZodString;
1765
+ meta: z.ZodObject<{
1766
+ usage: z.ZodOptional<z.ZodString>;
1767
+ focus: z.ZodOptional<z.ZodObject<{
1768
+ x: z.ZodNumber;
1769
+ y: z.ZodNumber;
1770
+ }, z.core.$strip>>;
1771
+ mimetype: z.ZodOptional<z.ZodString>;
1772
+ size: z.ZodOptional<z.ZodNumber>;
1773
+ }, z.core.$strip>;
1774
+ description: z.ZodOptional<z.ZodString>;
1775
+ blurhash: z.ZodOptional<z.ZodString>;
1776
+ status: z.ZodOptional<z.ZodEnum<{
1777
+ processing: "processing";
1778
+ ready: "ready";
1779
+ failed: "failed";
1780
+ }>>;
1781
+ error: z.ZodOptional<z.ZodString>;
1782
+ }, z.core.$strip>>>;
1783
+ customEmojis: z.ZodOptional<z.ZodArray<z.ZodObject<{
1784
+ shortcode: z.ZodString;
1785
+ url: z.ZodURL;
1786
+ staticUrl: z.ZodURL;
1787
+ visibleInPicker: z.ZodBoolean;
1788
+ category: z.ZodString;
1789
+ }, z.core.$strip>>>;
1790
+ language: z.ZodOptional<z.ZodEnum<{
1791
+ [x: string]: string;
1792
+ }>>;
1793
+ type: z.ZodLiteral<"article">;
1794
+ image: z.ZodOptional<z.ZodURL>;
1795
+ title: z.ZodOptional<z.ZodString>;
1796
+ }, z.core.$strip>, z.ZodObject<{
1797
+ content: z.ZodOptional<z.ZodString>;
1798
+ sensitive: z.ZodOptional<z.ZodBoolean>;
1799
+ spoilerText: z.ZodOptional<z.ZodString>;
1800
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1801
+ type: z.ZodString;
1802
+ url: z.ZodURL;
1803
+ previewUrl: z.ZodNullable<z.ZodURL>;
1804
+ textUrl: z.ZodNull;
1805
+ filename: z.ZodString;
1806
+ meta: z.ZodObject<{
1807
+ usage: z.ZodOptional<z.ZodString>;
1808
+ focus: z.ZodOptional<z.ZodObject<{
1809
+ x: z.ZodNumber;
1810
+ y: z.ZodNumber;
1811
+ }, z.core.$strip>>;
1812
+ mimetype: z.ZodOptional<z.ZodString>;
1813
+ size: z.ZodOptional<z.ZodNumber>;
1814
+ }, z.core.$strip>;
1815
+ description: z.ZodOptional<z.ZodString>;
1816
+ blurhash: z.ZodOptional<z.ZodString>;
1817
+ status: z.ZodOptional<z.ZodEnum<{
1818
+ processing: "processing";
1819
+ ready: "ready";
1820
+ failed: "failed";
1821
+ }>>;
1822
+ error: z.ZodOptional<z.ZodString>;
1823
+ }, z.core.$strip>>>;
1824
+ customEmojis: z.ZodOptional<z.ZodArray<z.ZodObject<{
1825
+ shortcode: z.ZodString;
1826
+ url: z.ZodURL;
1827
+ staticUrl: z.ZodURL;
1828
+ visibleInPicker: z.ZodBoolean;
1829
+ category: z.ZodString;
1830
+ }, z.core.$strip>>>;
1831
+ language: z.ZodOptional<z.ZodEnum<{
1832
+ [x: string]: string;
1833
+ }>>;
1834
+ type: z.ZodLiteral<"resource">;
1835
+ title: z.ZodString;
1836
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1837
+ categoryPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
1838
+ resourceKind: z.ZodEnum<{
1839
+ file: "file";
1840
+ link: "link";
1841
+ video: "video";
1842
+ gallery: "gallery";
1843
+ audio: "audio";
1844
+ }>;
1845
+ url: z.ZodOptional<z.ZodURL>;
1846
+ }, z.core.$strip>], "type">;
1847
+ export type PostDataInputUnion = z.infer<typeof postDataInputUnionSchema>;
1478
1848
  export declare const postDataSchema: z.ZodObject<{
1479
1849
  type: z.ZodEnum<{
1480
- resource: "resource";
1481
1850
  note: "note";
1482
1851
  question: "question";
1852
+ resource: "resource";
1483
1853
  event: "event";
1484
1854
  article: "article";
1485
1855
  }>;
@@ -1780,9 +2150,9 @@ export declare const postDataSchema: z.ZodObject<{
1780
2150
  export type PostData = z.infer<typeof postDataSchema>;
1781
2151
  export declare const postSchema: z.ZodObject<{
1782
2152
  type: z.ZodEnum<{
1783
- resource: "resource";
1784
2153
  note: "note";
1785
2154
  question: "question";
2155
+ resource: "resource";
1786
2156
  event: "event";
1787
2157
  article: "article";
1788
2158
  }>;