@openpeepshq/common 0.1.44 → 0.1.46

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 (77) hide show
  1. package/dist/lib/adminSections.d.ts +4 -0
  2. package/dist/lib/adminSections.js +5 -0
  3. package/dist/lib/capabilitiesHelpers.d.ts +9 -7
  4. package/dist/lib/capabilitiesHelpers.js +21 -13
  5. package/dist/lib/eventIcs.d.ts +17 -0
  6. package/dist/lib/eventIcs.js +138 -2
  7. package/dist/lib/eventRecurrence.d.ts +32 -0
  8. package/dist/lib/eventRecurrence.js +284 -0
  9. package/dist/lib/eventTime.d.ts +29 -0
  10. package/dist/lib/eventTime.js +143 -0
  11. package/dist/lib/federationHosts.d.ts +3 -0
  12. package/dist/lib/federationHosts.js +17 -0
  13. package/dist/lib/feedCursor.d.ts +14 -0
  14. package/dist/lib/feedCursor.js +22 -0
  15. package/dist/lib/feedFormat.d.ts +12 -0
  16. package/dist/lib/feedFormat.js +14 -0
  17. package/dist/lib/groupHelpers.d.ts +63 -41
  18. package/dist/lib/groupHelpers.js +155 -45
  19. package/dist/lib/groupTemplateHelpers.d.ts +16 -0
  20. package/dist/lib/groupTemplateHelpers.js +51 -0
  21. package/dist/lib/index.d.ts +11 -0
  22. package/dist/lib/index.js +11 -0
  23. package/dist/lib/jamHelpers.d.ts +38 -3
  24. package/dist/lib/jamHelpers.js +93 -8
  25. package/dist/lib/legacyThemeRoot.d.ts +3 -0
  26. package/dist/lib/legacyThemeRoot.js +10 -0
  27. package/dist/lib/markdownHelpers.d.ts +22 -0
  28. package/dist/lib/markdownHelpers.js +73 -3
  29. package/dist/lib/postHelpers.d.ts +164 -9
  30. package/dist/lib/postHelpers.js +353 -11
  31. package/dist/lib/profileHelpers.d.ts +11 -0
  32. package/dist/lib/profileHelpers.js +31 -0
  33. package/dist/lib/pushHelpers.d.ts +3 -1
  34. package/dist/lib/pushHelpers.js +13 -0
  35. package/dist/lib/reactions.d.ts +17 -0
  36. package/dist/lib/reactions.js +37 -0
  37. package/dist/lib/scopeHelpers.d.ts +31 -2
  38. package/dist/lib/scopeHelpers.js +37 -3
  39. package/dist/lib/ssoLoginUrl.d.ts +24 -0
  40. package/dist/lib/ssoLoginUrl.js +75 -0
  41. package/dist/lib/ssoProviders.d.ts +72 -0
  42. package/dist/lib/ssoProviders.js +370 -0
  43. package/dist/lib/text.d.ts +2 -0
  44. package/dist/lib/text.js +2 -0
  45. package/dist/lib/timeZone.d.ts +9 -0
  46. package/dist/lib/timeZone.js +44 -0
  47. package/dist/lib/tokenHelpers.d.ts +5 -0
  48. package/dist/lib/tokenHelpers.js +19 -0
  49. package/dist/types/analytics.d.ts +20 -0
  50. package/dist/types/analytics.js +4 -0
  51. package/dist/types/api.d.ts +42669 -10689
  52. package/dist/types/api.js +94 -16
  53. package/dist/types/auth.d.ts +22 -13
  54. package/dist/types/capabilities.d.ts +26 -5
  55. package/dist/types/capabilities.js +95 -1
  56. package/dist/types/config.d.ts +93 -6
  57. package/dist/types/config.js +56 -5
  58. package/dist/types/db.d.ts +1911 -248
  59. package/dist/types/db.js +17 -3
  60. package/dist/types/export.d.ts +120 -0
  61. package/dist/types/export.js +7 -0
  62. package/dist/types/index.d.ts +2 -0
  63. package/dist/types/index.js +2 -0
  64. package/dist/types/internal.d.ts +8313 -2675
  65. package/dist/types/internal.js +16 -1
  66. package/dist/types/models.d.ts +343 -16
  67. package/dist/types/models.js +98 -7
  68. package/dist/types/notifications.d.ts +1 -0
  69. package/dist/types/plugins.d.ts +43 -1
  70. package/dist/types/plugins.js +75 -1
  71. package/dist/types/roleDefaults.d.ts +31 -0
  72. package/dist/types/roleDefaults.js +110 -0
  73. package/dist/types/stats.d.ts +54359 -4718
  74. package/dist/types/stats.js +30 -0
  75. package/dist/types/utils.d.ts +2 -0
  76. package/dist/types/utils.js +1 -3
  77. package/package.json +1 -1
@@ -1,6 +1,8 @@
1
1
  import { z, util, ZodObject, ZodRawShape } from 'zod';
2
2
  export declare const handleRegexBase = "[a-zA-Z0-9_-]{1,16}";
3
3
  export declare const handleRegex: RegExp;
4
+ /** `@handle` using the allowed handle charset. No `\\b` — hyphens are not word chars. */
5
+ export declare const mentionHandleRegexBase = "(^|[\\s(>])@([a-zA-Z0-9_-]{1,16})(?=\\s|$|[.,!?;:])";
4
6
  export declare const forbiddenHandles: string[];
5
7
  export declare const baseSchemaShape: {
6
8
  createdAt: z.ZodISODateTime;
@@ -64,6 +66,7 @@ export type Account = Model<AccountData>;
64
66
  export declare const roleDataSchema: z.ZodObject<{
65
67
  key: z.ZodString;
66
68
  default: z.ZodBoolean;
69
+ baseVersion: z.ZodOptional<z.ZodString>;
67
70
  displayName: z.ZodString;
68
71
  description: z.ZodOptional<z.ZodString>;
69
72
  capabilities: z.ZodOptional<z.ZodObject<{
@@ -75,6 +78,7 @@ export type RoleData = z.infer<typeof roleDataSchema>;
75
78
  export declare const roleSchema: z.ZodObject<{
76
79
  key: z.ZodString;
77
80
  default: z.ZodBoolean;
81
+ baseVersion: z.ZodOptional<z.ZodString>;
78
82
  displayName: z.ZodString;
79
83
  description: z.ZodOptional<z.ZodString>;
80
84
  capabilities: z.ZodOptional<z.ZodObject<{
@@ -129,6 +133,7 @@ export type JamSettings = z.infer<typeof jamSettingsSchema>;
129
133
  export declare const profileSettingsDataSchema: z.ZodObject<{
130
134
  id: z.ZodString;
131
135
  language: z.ZodOptional<z.ZodString>;
136
+ timeZone: z.ZodOptional<z.ZodString>;
132
137
  theme: z.ZodOptional<z.ZodEnum<{
133
138
  community: "community";
134
139
  light: "light";
@@ -167,6 +172,10 @@ export declare const profileSettingsDataSchema: z.ZodObject<{
167
172
  customerId: z.ZodOptional<z.ZodString>;
168
173
  }, z.core.$strip>>;
169
174
  feedSettings: z.ZodOptional<z.ZodDefault<z.ZodObject<{
175
+ format: z.ZodOptional<z.ZodEnum<{
176
+ threaded: "threaded";
177
+ linear: "linear";
178
+ }>>;
170
179
  communityFeed: z.ZodOptional<z.ZodObject<{
171
180
  showGroupPosts: z.ZodOptional<z.ZodBoolean>;
172
181
  }, z.core.$strip>>;
@@ -175,6 +184,7 @@ export declare const profileSettingsDataSchema: z.ZodObject<{
175
184
  export type ProfileSettingsData = z.infer<typeof profileSettingsDataSchema>;
176
185
  export declare const profileSettingsSchema: z.ZodObject<{
177
186
  language: z.ZodOptional<z.ZodString>;
187
+ timeZone: z.ZodOptional<z.ZodString>;
178
188
  theme: z.ZodOptional<z.ZodEnum<{
179
189
  community: "community";
180
190
  light: "light";
@@ -213,6 +223,10 @@ export declare const profileSettingsSchema: z.ZodObject<{
213
223
  customerId: z.ZodOptional<z.ZodString>;
214
224
  }, z.core.$strip>>;
215
225
  feedSettings: z.ZodOptional<z.ZodDefault<z.ZodObject<{
226
+ format: z.ZodOptional<z.ZodEnum<{
227
+ threaded: "threaded";
228
+ linear: "linear";
229
+ }>>;
216
230
  communityFeed: z.ZodOptional<z.ZodObject<{
217
231
  showGroupPosts: z.ZodOptional<z.ZodBoolean>;
218
232
  }, z.core.$strip>>;
@@ -228,7 +242,6 @@ export declare const profileResourceTypeSchema: z.ZodEnum<{
228
242
  self: "self";
229
243
  jams: "jams";
230
244
  profiles: "profiles";
231
- jam: "jam";
232
245
  notifications: "notifications";
233
246
  posts: "posts";
234
247
  groups: "groups";
@@ -249,11 +262,10 @@ export type ResourceType = ProfileResourceType | ServiceResourceType | '*';
249
262
  export declare const resourceSchema: z.ZodObject<{
250
263
  type: z.ZodEnum<{
251
264
  self: "self";
265
+ "*": "*";
252
266
  db: "db";
253
267
  jams: "jams";
254
268
  profiles: "profiles";
255
- "*": "*";
256
- jam: "jam";
257
269
  notifications: "notifications";
258
270
  posts: "posts";
259
271
  groups: "groups";
@@ -283,11 +295,10 @@ export declare const scopeSchema: z.ZodObject<{
283
295
  resource: z.ZodObject<{
284
296
  type: z.ZodEnum<{
285
297
  self: "self";
298
+ "*": "*";
286
299
  db: "db";
287
300
  jams: "jams";
288
301
  profiles: "profiles";
289
- "*": "*";
290
- jam: "jam";
291
302
  notifications: "notifications";
292
303
  posts: "posts";
293
304
  groups: "groups";
@@ -334,6 +345,7 @@ export declare const locationSchema: z.ZodObject<{
334
345
  }, z.core.$strip>>;
335
346
  }, z.core.$strip>;
336
347
  export type Location = z.infer<typeof locationSchema>;
348
+ export declare const federatedHandleSchema: z.ZodString;
337
349
  export declare const profileDataSchema: z.ZodObject<{
338
350
  handle: z.ZodString;
339
351
  deletedHandle: z.ZodOptional<z.ZodString>;
@@ -372,11 +384,10 @@ export declare const profileDataSchema: z.ZodObject<{
372
384
  resource: z.ZodOptional<z.ZodObject<{
373
385
  type: z.ZodEnum<{
374
386
  self: "self";
387
+ "*": "*";
375
388
  db: "db";
376
389
  jams: "jams";
377
390
  profiles: "profiles";
378
- "*": "*";
379
- jam: "jam";
380
391
  notifications: "notifications";
381
392
  posts: "posts";
382
393
  groups: "groups";
@@ -388,6 +399,7 @@ export declare const profileDataSchema: z.ZodObject<{
388
399
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>>;
389
400
  }, z.core.$strip>>;
390
401
  }, z.core.$strip>>;
402
+ pinnedPostId: z.ZodOptional<z.ZodString>;
391
403
  }, z.core.$strip>;
392
404
  export type ProfileData = z.infer<typeof profileDataSchema>;
393
405
  export declare const profileSchema: z.ZodObject<{
@@ -428,11 +440,10 @@ export declare const profileSchema: z.ZodObject<{
428
440
  resource: z.ZodOptional<z.ZodObject<{
429
441
  type: z.ZodEnum<{
430
442
  self: "self";
443
+ "*": "*";
431
444
  db: "db";
432
445
  jams: "jams";
433
446
  profiles: "profiles";
434
- "*": "*";
435
- jam: "jam";
436
447
  notifications: "notifications";
437
448
  posts: "posts";
438
449
  groups: "groups";
@@ -444,6 +455,7 @@ export declare const profileSchema: z.ZodObject<{
444
455
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>>;
445
456
  }, z.core.$strip>>;
446
457
  }, z.core.$strip>>;
458
+ pinnedPostId: z.ZodOptional<z.ZodString>;
447
459
  id: z.ZodUUID;
448
460
  createdAt: z.ZodISODateTime;
449
461
  updatedAt: z.ZodISODateTime;
@@ -501,11 +513,10 @@ export declare const accountWithMetaSchema: z.ZodObject<{
501
513
  resource: z.ZodOptional<z.ZodObject<{
502
514
  type: z.ZodEnum<{
503
515
  self: "self";
516
+ "*": "*";
504
517
  db: "db";
505
518
  jams: "jams";
506
519
  profiles: "profiles";
507
- "*": "*";
508
- jam: "jam";
509
520
  notifications: "notifications";
510
521
  posts: "posts";
511
522
  groups: "groups";
@@ -517,6 +528,7 @@ export declare const accountWithMetaSchema: z.ZodObject<{
517
528
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>>;
518
529
  }, z.core.$strip>>;
519
530
  }, z.core.$strip>>;
531
+ pinnedPostId: z.ZodOptional<z.ZodString>;
520
532
  id: z.ZodUUID;
521
533
  createdAt: z.ZodISODateTime;
522
534
  updatedAt: z.ZodISODateTime;
@@ -557,12 +569,14 @@ export declare const jamSchema: z.ZodObject<{
557
569
  export type JamData = z.infer<typeof jamDataSchema>;
558
570
  export type Jam = JamData;
559
571
  export declare const followDataSchema: z.ZodObject<{
572
+ uri: z.ZodOptional<z.ZodString>;
560
573
  reblogs: z.ZodOptional<z.ZodBoolean>;
561
574
  notify: z.ZodOptional<z.ZodBoolean>;
562
575
  languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
563
576
  }, z.core.$strip>;
564
577
  export type FollowData = z.infer<typeof followDataSchema>;
565
578
  export declare const followSchema: z.ZodObject<{
579
+ uri: z.ZodOptional<z.ZodString>;
566
580
  reblogs: z.ZodOptional<z.ZodBoolean>;
567
581
  notify: z.ZodOptional<z.ZodBoolean>;
568
582
  languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -608,11 +622,10 @@ export declare const followSchema: z.ZodObject<{
608
622
  resource: z.ZodOptional<z.ZodObject<{
609
623
  type: z.ZodEnum<{
610
624
  self: "self";
625
+ "*": "*";
611
626
  db: "db";
612
627
  jams: "jams";
613
628
  profiles: "profiles";
614
- "*": "*";
615
- jam: "jam";
616
629
  notifications: "notifications";
617
630
  posts: "posts";
618
631
  groups: "groups";
@@ -624,6 +637,7 @@ export declare const followSchema: z.ZodObject<{
624
637
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>>;
625
638
  }, z.core.$strip>>;
626
639
  }, z.core.$strip>>;
640
+ pinnedPostId: z.ZodOptional<z.ZodString>;
627
641
  id: z.ZodUUID;
628
642
  createdAt: z.ZodISODateTime;
629
643
  updatedAt: z.ZodISODateTime;
@@ -667,11 +681,10 @@ export declare const followSchema: z.ZodObject<{
667
681
  resource: z.ZodOptional<z.ZodObject<{
668
682
  type: z.ZodEnum<{
669
683
  self: "self";
684
+ "*": "*";
670
685
  db: "db";
671
686
  jams: "jams";
672
687
  profiles: "profiles";
673
- "*": "*";
674
- jam: "jam";
675
688
  notifications: "notifications";
676
689
  posts: "posts";
677
690
  groups: "groups";
@@ -683,6 +696,7 @@ export declare const followSchema: z.ZodObject<{
683
696
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>>;
684
697
  }, z.core.$strip>>;
685
698
  }, z.core.$strip>>;
699
+ pinnedPostId: z.ZodOptional<z.ZodString>;
686
700
  id: z.ZodUUID;
687
701
  createdAt: z.ZodISODateTime;
688
702
  updatedAt: z.ZodISODateTime;
@@ -835,6 +849,8 @@ export declare const noteSchema: z.ZodObject<{
835
849
  }>>;
836
850
  }, z.core.$strip>;
837
851
  export type Note = z.infer<typeof noteSchema>;
852
+ /** Poll choices are stored short so they fit the vote UI on small screens. */
853
+ export declare const POLL_OPTION_MAX_LENGTH = 30;
838
854
  export declare const questionSchema: z.ZodObject<{
839
855
  content: z.ZodOptional<z.ZodString>;
840
856
  sensitive: z.ZodOptional<z.ZodBoolean>;
@@ -926,6 +942,58 @@ export declare const articleSchema: z.ZodObject<{
926
942
  title: z.ZodOptional<z.ZodString>;
927
943
  }, z.core.$strip>;
928
944
  export type Article = z.infer<typeof articleSchema>;
945
+ export declare const eventIsoDatetimeSchema: z.ZodISODateTime;
946
+ export declare const recurrenceFreqSchema: z.ZodEnum<{
947
+ DAILY: "DAILY";
948
+ WEEKLY: "WEEKLY";
949
+ MONTHLY: "MONTHLY";
950
+ }>;
951
+ export type RecurrenceFreq = z.infer<typeof recurrenceFreqSchema>;
952
+ export declare const recurrenceWeekdaySchema: z.ZodEnum<{
953
+ MO: "MO";
954
+ TU: "TU";
955
+ WE: "WE";
956
+ TH: "TH";
957
+ FR: "FR";
958
+ SA: "SA";
959
+ SU: "SU";
960
+ }>;
961
+ export type RecurrenceWeekday = z.infer<typeof recurrenceWeekdaySchema>;
962
+ export declare const eventRecurrenceSchema: z.ZodObject<{
963
+ freq: z.ZodEnum<{
964
+ DAILY: "DAILY";
965
+ WEEKLY: "WEEKLY";
966
+ MONTHLY: "MONTHLY";
967
+ }>;
968
+ interval: z.ZodOptional<z.ZodNumber>;
969
+ byDay: z.ZodOptional<z.ZodArray<z.ZodEnum<{
970
+ MO: "MO";
971
+ TU: "TU";
972
+ WE: "WE";
973
+ TH: "TH";
974
+ FR: "FR";
975
+ SA: "SA";
976
+ SU: "SU";
977
+ }>>>;
978
+ until: z.ZodOptional<z.ZodISODateTime>;
979
+ count: z.ZodOptional<z.ZodNumber>;
980
+ }, z.core.$strip>;
981
+ export type EventRecurrence = z.infer<typeof eventRecurrenceSchema>;
982
+ export declare const eventOccurrenceExceptionSchema: z.ZodObject<{
983
+ recurrenceId: z.ZodISODateTime;
984
+ cancelled: z.ZodOptional<z.ZodBoolean>;
985
+ start: z.ZodOptional<z.ZodISODateTime>;
986
+ end: z.ZodOptional<z.ZodISODateTime>;
987
+ physicalLocation: z.ZodOptional<z.ZodObject<{
988
+ text: z.ZodString;
989
+ coordinates: z.ZodOptional<z.ZodObject<{
990
+ lat: z.ZodNumber;
991
+ lng: z.ZodNumber;
992
+ alt: z.ZodOptional<z.ZodNumber>;
993
+ }, z.core.$strip>>;
994
+ }, z.core.$strip>>;
995
+ }, z.core.$strip>;
996
+ export type EventOccurrenceException = z.infer<typeof eventOccurrenceExceptionSchema>;
929
997
  export declare const eventSchema: z.ZodObject<{
930
998
  content: z.ZodOptional<z.ZodString>;
931
999
  sensitive: z.ZodOptional<z.ZodBoolean>;
@@ -997,6 +1065,39 @@ export declare const eventSchema: z.ZodObject<{
997
1065
  }, z.core.$strip>>;
998
1066
  }, z.core.$strip>>;
999
1067
  url: z.ZodOptional<z.ZodURL>;
1068
+ recurrence: z.ZodOptional<z.ZodObject<{
1069
+ freq: z.ZodEnum<{
1070
+ DAILY: "DAILY";
1071
+ WEEKLY: "WEEKLY";
1072
+ MONTHLY: "MONTHLY";
1073
+ }>;
1074
+ interval: z.ZodOptional<z.ZodNumber>;
1075
+ byDay: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1076
+ MO: "MO";
1077
+ TU: "TU";
1078
+ WE: "WE";
1079
+ TH: "TH";
1080
+ FR: "FR";
1081
+ SA: "SA";
1082
+ SU: "SU";
1083
+ }>>>;
1084
+ until: z.ZodOptional<z.ZodISODateTime>;
1085
+ count: z.ZodOptional<z.ZodNumber>;
1086
+ }, z.core.$strip>>;
1087
+ exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1088
+ recurrenceId: z.ZodISODateTime;
1089
+ cancelled: z.ZodOptional<z.ZodBoolean>;
1090
+ start: z.ZodOptional<z.ZodISODateTime>;
1091
+ end: z.ZodOptional<z.ZodISODateTime>;
1092
+ physicalLocation: z.ZodOptional<z.ZodObject<{
1093
+ text: z.ZodString;
1094
+ coordinates: z.ZodOptional<z.ZodObject<{
1095
+ lat: z.ZodNumber;
1096
+ lng: z.ZodNumber;
1097
+ alt: z.ZodOptional<z.ZodNumber>;
1098
+ }, z.core.$strip>>;
1099
+ }, z.core.$strip>>;
1100
+ }, z.core.$strip>>>;
1000
1101
  }, z.core.$strip>;
1001
1102
  export type Event = z.infer<typeof eventSchema>;
1002
1103
  export type EventWithId = z.infer<typeof eventSchema> & {
@@ -1158,6 +1259,39 @@ export declare const postDataUnionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1158
1259
  }, z.core.$strip>>;
1159
1260
  }, z.core.$strip>>;
1160
1261
  url: z.ZodOptional<z.ZodURL>;
1262
+ recurrence: z.ZodOptional<z.ZodObject<{
1263
+ freq: z.ZodEnum<{
1264
+ DAILY: "DAILY";
1265
+ WEEKLY: "WEEKLY";
1266
+ MONTHLY: "MONTHLY";
1267
+ }>;
1268
+ interval: z.ZodOptional<z.ZodNumber>;
1269
+ byDay: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1270
+ MO: "MO";
1271
+ TU: "TU";
1272
+ WE: "WE";
1273
+ TH: "TH";
1274
+ FR: "FR";
1275
+ SA: "SA";
1276
+ SU: "SU";
1277
+ }>>>;
1278
+ until: z.ZodOptional<z.ZodISODateTime>;
1279
+ count: z.ZodOptional<z.ZodNumber>;
1280
+ }, z.core.$strip>>;
1281
+ exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1282
+ recurrenceId: z.ZodISODateTime;
1283
+ cancelled: z.ZodOptional<z.ZodBoolean>;
1284
+ start: z.ZodOptional<z.ZodISODateTime>;
1285
+ end: z.ZodOptional<z.ZodISODateTime>;
1286
+ physicalLocation: z.ZodOptional<z.ZodObject<{
1287
+ text: z.ZodString;
1288
+ coordinates: z.ZodOptional<z.ZodObject<{
1289
+ lat: z.ZodNumber;
1290
+ lng: z.ZodNumber;
1291
+ alt: z.ZodOptional<z.ZodNumber>;
1292
+ }, z.core.$strip>>;
1293
+ }, z.core.$strip>>;
1294
+ }, z.core.$strip>>>;
1161
1295
  }, z.core.$strip>, z.ZodObject<{
1162
1296
  content: z.ZodOptional<z.ZodString>;
1163
1297
  sensitive: z.ZodOptional<z.ZodBoolean>;
@@ -1374,6 +1508,39 @@ export declare const postDataSchema: z.ZodObject<{
1374
1508
  }, z.core.$strip>>;
1375
1509
  }, z.core.$strip>>;
1376
1510
  url: z.ZodOptional<z.ZodURL>;
1511
+ recurrence: z.ZodOptional<z.ZodObject<{
1512
+ freq: z.ZodEnum<{
1513
+ DAILY: "DAILY";
1514
+ WEEKLY: "WEEKLY";
1515
+ MONTHLY: "MONTHLY";
1516
+ }>;
1517
+ interval: z.ZodOptional<z.ZodNumber>;
1518
+ byDay: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1519
+ MO: "MO";
1520
+ TU: "TU";
1521
+ WE: "WE";
1522
+ TH: "TH";
1523
+ FR: "FR";
1524
+ SA: "SA";
1525
+ SU: "SU";
1526
+ }>>>;
1527
+ until: z.ZodOptional<z.ZodISODateTime>;
1528
+ count: z.ZodOptional<z.ZodNumber>;
1529
+ }, z.core.$strip>>;
1530
+ exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1531
+ recurrenceId: z.ZodISODateTime;
1532
+ cancelled: z.ZodOptional<z.ZodBoolean>;
1533
+ start: z.ZodOptional<z.ZodISODateTime>;
1534
+ end: z.ZodOptional<z.ZodISODateTime>;
1535
+ physicalLocation: z.ZodOptional<z.ZodObject<{
1536
+ text: z.ZodString;
1537
+ coordinates: z.ZodOptional<z.ZodObject<{
1538
+ lat: z.ZodNumber;
1539
+ lng: z.ZodNumber;
1540
+ alt: z.ZodOptional<z.ZodNumber>;
1541
+ }, z.core.$strip>>;
1542
+ }, z.core.$strip>>;
1543
+ }, z.core.$strip>>>;
1377
1544
  }, z.core.$strip>, z.ZodObject<{
1378
1545
  content: z.ZodOptional<z.ZodString>;
1379
1546
  sensitive: z.ZodOptional<z.ZodBoolean>;
@@ -1592,6 +1759,39 @@ export declare const postSchema: z.ZodObject<{
1592
1759
  }, z.core.$strip>>;
1593
1760
  }, z.core.$strip>>;
1594
1761
  url: z.ZodOptional<z.ZodURL>;
1762
+ recurrence: z.ZodOptional<z.ZodObject<{
1763
+ freq: z.ZodEnum<{
1764
+ DAILY: "DAILY";
1765
+ WEEKLY: "WEEKLY";
1766
+ MONTHLY: "MONTHLY";
1767
+ }>;
1768
+ interval: z.ZodOptional<z.ZodNumber>;
1769
+ byDay: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1770
+ MO: "MO";
1771
+ TU: "TU";
1772
+ WE: "WE";
1773
+ TH: "TH";
1774
+ FR: "FR";
1775
+ SA: "SA";
1776
+ SU: "SU";
1777
+ }>>>;
1778
+ until: z.ZodOptional<z.ZodISODateTime>;
1779
+ count: z.ZodOptional<z.ZodNumber>;
1780
+ }, z.core.$strip>>;
1781
+ exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1782
+ recurrenceId: z.ZodISODateTime;
1783
+ cancelled: z.ZodOptional<z.ZodBoolean>;
1784
+ start: z.ZodOptional<z.ZodISODateTime>;
1785
+ end: z.ZodOptional<z.ZodISODateTime>;
1786
+ physicalLocation: z.ZodOptional<z.ZodObject<{
1787
+ text: z.ZodString;
1788
+ coordinates: z.ZodOptional<z.ZodObject<{
1789
+ lat: z.ZodNumber;
1790
+ lng: z.ZodNumber;
1791
+ alt: z.ZodOptional<z.ZodNumber>;
1792
+ }, z.core.$strip>>;
1793
+ }, z.core.$strip>>;
1794
+ }, z.core.$strip>>>;
1595
1795
  }, z.core.$strip>, z.ZodObject<{
1596
1796
  content: z.ZodOptional<z.ZodString>;
1597
1797
  sensitive: z.ZodOptional<z.ZodBoolean>;
@@ -1659,8 +1859,23 @@ export declare const rsvpSchema: z.ZodObject<{
1659
1859
  tentative: "tentative";
1660
1860
  removed: "removed";
1661
1861
  }>;
1862
+ recurrenceId: z.ZodOptional<z.ZodISODateTime>;
1662
1863
  }, z.core.$strip>;
1663
1864
  export type RSVP = z.infer<typeof rsvpSchema>;
1865
+ export declare const rsvpRequestSchema: z.ZodObject<{
1866
+ response: z.ZodEnum<{
1867
+ no: "no";
1868
+ yes: "yes";
1869
+ tentative: "tentative";
1870
+ removed: "removed";
1871
+ }>;
1872
+ recurrenceId: z.ZodOptional<z.ZodISODateTime>;
1873
+ recurrenceIds: z.ZodOptional<z.ZodArray<z.ZodISODateTime>>;
1874
+ }, z.core.$strip>;
1875
+ export type RsvpRequest = z.infer<typeof rsvpRequestSchema>;
1876
+ export declare const entryReactionDataSchema: z.ZodObject<{
1877
+ reaction: z.ZodString;
1878
+ }, z.core.$strip>;
1664
1879
  export declare const entryDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1665
1880
  type: z.ZodLiteral<"create">;
1666
1881
  data: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1819,6 +2034,39 @@ export declare const entryDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1819
2034
  }, z.core.$strip>>;
1820
2035
  }, z.core.$strip>>;
1821
2036
  url: z.ZodOptional<z.ZodURL>;
2037
+ recurrence: z.ZodOptional<z.ZodObject<{
2038
+ freq: z.ZodEnum<{
2039
+ DAILY: "DAILY";
2040
+ WEEKLY: "WEEKLY";
2041
+ MONTHLY: "MONTHLY";
2042
+ }>;
2043
+ interval: z.ZodOptional<z.ZodNumber>;
2044
+ byDay: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2045
+ MO: "MO";
2046
+ TU: "TU";
2047
+ WE: "WE";
2048
+ TH: "TH";
2049
+ FR: "FR";
2050
+ SA: "SA";
2051
+ SU: "SU";
2052
+ }>>>;
2053
+ until: z.ZodOptional<z.ZodISODateTime>;
2054
+ count: z.ZodOptional<z.ZodNumber>;
2055
+ }, z.core.$strip>>;
2056
+ exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2057
+ recurrenceId: z.ZodISODateTime;
2058
+ cancelled: z.ZodOptional<z.ZodBoolean>;
2059
+ start: z.ZodOptional<z.ZodISODateTime>;
2060
+ end: z.ZodOptional<z.ZodISODateTime>;
2061
+ physicalLocation: z.ZodOptional<z.ZodObject<{
2062
+ text: z.ZodString;
2063
+ coordinates: z.ZodOptional<z.ZodObject<{
2064
+ lat: z.ZodNumber;
2065
+ lng: z.ZodNumber;
2066
+ alt: z.ZodOptional<z.ZodNumber>;
2067
+ }, z.core.$strip>>;
2068
+ }, z.core.$strip>>;
2069
+ }, z.core.$strip>>>;
1822
2070
  }, z.core.$strip>, z.ZodObject<{
1823
2071
  content: z.ZodOptional<z.ZodString>;
1824
2072
  sensitive: z.ZodOptional<z.ZodBoolean>;
@@ -2019,6 +2267,39 @@ export declare const entryDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2019
2267
  }, z.core.$strip>>;
2020
2268
  }, z.core.$strip>>;
2021
2269
  url: z.ZodOptional<z.ZodURL>;
2270
+ recurrence: z.ZodOptional<z.ZodObject<{
2271
+ freq: z.ZodEnum<{
2272
+ DAILY: "DAILY";
2273
+ WEEKLY: "WEEKLY";
2274
+ MONTHLY: "MONTHLY";
2275
+ }>;
2276
+ interval: z.ZodOptional<z.ZodNumber>;
2277
+ byDay: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2278
+ MO: "MO";
2279
+ TU: "TU";
2280
+ WE: "WE";
2281
+ TH: "TH";
2282
+ FR: "FR";
2283
+ SA: "SA";
2284
+ SU: "SU";
2285
+ }>>>;
2286
+ until: z.ZodOptional<z.ZodISODateTime>;
2287
+ count: z.ZodOptional<z.ZodNumber>;
2288
+ }, z.core.$strip>>;
2289
+ exceptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2290
+ recurrenceId: z.ZodISODateTime;
2291
+ cancelled: z.ZodOptional<z.ZodBoolean>;
2292
+ start: z.ZodOptional<z.ZodISODateTime>;
2293
+ end: z.ZodOptional<z.ZodISODateTime>;
2294
+ physicalLocation: z.ZodOptional<z.ZodObject<{
2295
+ text: z.ZodString;
2296
+ coordinates: z.ZodOptional<z.ZodObject<{
2297
+ lat: z.ZodNumber;
2298
+ lng: z.ZodNumber;
2299
+ alt: z.ZodOptional<z.ZodNumber>;
2300
+ }, z.core.$strip>>;
2301
+ }, z.core.$strip>>;
2302
+ }, z.core.$strip>>>;
2022
2303
  }, z.core.$strip>, z.ZodObject<{
2023
2304
  content: z.ZodOptional<z.ZodString>;
2024
2305
  sensitive: z.ZodOptional<z.ZodBoolean>;
@@ -2078,7 +2359,20 @@ export declare const entryDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2078
2359
  tentative: "tentative";
2079
2360
  removed: "removed";
2080
2361
  }>;
2362
+ recurrenceId: z.ZodOptional<z.ZodISODateTime>;
2363
+ }, z.core.$strip>;
2364
+ }, z.core.$strip>, z.ZodObject<{
2365
+ type: z.ZodLiteral<"reaction">;
2366
+ data: z.ZodObject<{
2367
+ reaction: z.ZodString;
2081
2368
  }, z.core.$strip>;
2369
+ uri: z.ZodOptional<z.ZodString>;
2370
+ }, z.core.$strip>, z.ZodObject<{
2371
+ type: z.ZodLiteral<"unreaction">;
2372
+ data: z.ZodObject<{
2373
+ reaction: z.ZodString;
2374
+ }, z.core.$strip>;
2375
+ uri: z.ZodOptional<z.ZodString>;
2082
2376
  }, z.core.$strip>], "type">;
2083
2377
  export type EntryData = z.infer<typeof entryDataSchema>;
2084
2378
  export type Entry = Model<EntryData & {
@@ -2396,6 +2690,7 @@ export declare const profileStatsSchema: z.ZodObject<{
2396
2690
  followingCount: z.ZodNumber;
2397
2691
  }, z.core.$strip>;
2398
2692
  export type ProfileStats = z.infer<typeof profileStatsSchema>;
2693
+ export declare const GROUP_DISPLAY_NAME_MAX_LENGTH = 30;
2399
2694
  export declare const groupDataSchema: z.ZodObject<{
2400
2695
  handle: z.ZodString;
2401
2696
  avatar: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2435,8 +2730,9 @@ export declare const groupRoleSchema: z.ZodObject<{
2435
2730
  none: "none";
2436
2731
  local: "local";
2437
2732
  member: "member";
2438
- admin: "admin";
2439
2733
  moderator: "moderator";
2734
+ admin: "admin";
2735
+ owner: "owner";
2440
2736
  invited: "invited";
2441
2737
  }>>>>;
2442
2738
  }, z.core.$strip>;
@@ -2458,12 +2754,15 @@ export declare const jamEventDataSchema: z.ZodObject<{
2458
2754
  close: "close";
2459
2755
  recordStart: "recordStart";
2460
2756
  recordStop: "recordStop";
2757
+ streamStart: "streamStart";
2758
+ streamStop: "streamStop";
2461
2759
  }>;
2462
2760
  profileId: z.ZodString;
2463
2761
  content: z.ZodOptional<z.ZodString>;
2464
2762
  reaction: z.ZodOptional<z.ZodEnum<{
2465
2763
  "\uD83D\uDC4D": "👍";
2466
2764
  }>>;
2765
+ recurrenceId: z.ZodOptional<z.ZodISODateTime>;
2467
2766
  }, z.core.$strip>;
2468
2767
  export type JamEventData = z.infer<typeof jamEventDataSchema>;
2469
2768
  export declare const jamEventSchema: z.ZodObject<{
@@ -2477,12 +2776,15 @@ export declare const jamEventSchema: z.ZodObject<{
2477
2776
  close: "close";
2478
2777
  recordStart: "recordStart";
2479
2778
  recordStop: "recordStop";
2779
+ streamStart: "streamStart";
2780
+ streamStop: "streamStop";
2480
2781
  }>;
2481
2782
  profileId: z.ZodString;
2482
2783
  content: z.ZodOptional<z.ZodString>;
2483
2784
  reaction: z.ZodOptional<z.ZodEnum<{
2484
2785
  "\uD83D\uDC4D": "👍";
2485
2786
  }>>;
2787
+ recurrenceId: z.ZodOptional<z.ZodISODateTime>;
2486
2788
  id: z.ZodUUID;
2487
2789
  createdAt: z.ZodISODateTime;
2488
2790
  updatedAt: z.ZodISODateTime;
@@ -2534,13 +2836,32 @@ export declare const jamRecordingTypeSchema: z.ZodEnum<{
2534
2836
  streams: "streams";
2535
2837
  }>;
2536
2838
  export type JamRecordingType = z.infer<typeof jamRecordingTypeSchema>;
2839
+ export declare const jamRecordingKindSchema: z.ZodEnum<{
2840
+ file: "file";
2841
+ rtmp: "rtmp";
2842
+ }>;
2843
+ export type JamRecordingKind = z.infer<typeof jamRecordingKindSchema>;
2844
+ export declare const jamRecordingStatusSchema: z.ZodEnum<{
2845
+ active: "active";
2846
+ failed: "failed";
2847
+ requested: "requested";
2848
+ finalizing: "finalizing";
2849
+ completed: "completed";
2850
+ }>;
2851
+ export type JamRecordingStatus = z.infer<typeof jamRecordingStatusSchema>;
2537
2852
  export declare const jamRecordingDataSchema: z.ZodObject<{
2538
2853
  status: z.ZodEnum<{
2539
2854
  active: "active";
2540
2855
  failed: "failed";
2541
2856
  requested: "requested";
2857
+ finalizing: "finalizing";
2542
2858
  completed: "completed";
2543
2859
  }>;
2860
+ kind: z.ZodOptional<z.ZodEnum<{
2861
+ file: "file";
2862
+ rtmp: "rtmp";
2863
+ }>>;
2864
+ destinationHost: z.ZodOptional<z.ZodString>;
2544
2865
  egressId: z.ZodOptional<z.ZodString>;
2545
2866
  attachment: z.ZodOptional<z.ZodObject<{
2546
2867
  type: z.ZodString;
@@ -2578,8 +2899,14 @@ export declare const jamRecordingSchema: z.ZodObject<{
2578
2899
  active: "active";
2579
2900
  failed: "failed";
2580
2901
  requested: "requested";
2902
+ finalizing: "finalizing";
2581
2903
  completed: "completed";
2582
2904
  }>;
2905
+ kind: z.ZodOptional<z.ZodEnum<{
2906
+ file: "file";
2907
+ rtmp: "rtmp";
2908
+ }>>;
2909
+ destinationHost: z.ZodOptional<z.ZodString>;
2583
2910
  egressId: z.ZodOptional<z.ZodString>;
2584
2911
  attachment: z.ZodOptional<z.ZodObject<{
2585
2912
  type: z.ZodString;