@vercel/board 0.30.0 → 0.31.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.
Files changed (125) hide show
  1. package/README.md +8 -17
  2. package/dist/{a2-D_28Pdip.mjs → a2-DngWY2Eb.mjs} +573 -361
  3. package/dist/{access-CQ39gqEV.mjs → access-CY5xVMIK.mjs} +19 -3
  4. package/dist/{access-CV96SYgr.d.mts → access-DPcrKIH_.d.mts} +6 -1
  5. package/dist/access.d.mts +4 -4
  6. package/dist/access.mjs +5 -4
  7. package/dist/{actors-xPiamLWk.mjs → actors-Bm-ojWWT.mjs} +2 -2
  8. package/dist/{auth-BPinwfN0.mjs → auth-CyO2aw5n.mjs} +127 -14
  9. package/dist/{auth-CU56Q2Xh.d.mts → auth-DLYSt_-A.d.mts} +32 -4
  10. package/dist/{backend-n3hajfrD.d.mts → backend-Bob-5CM7.d.mts} +86 -41
  11. package/dist/backend-a2/blob-vercel.d.mts +1 -1
  12. package/dist/backend-a2/contract.d.mts +37 -97
  13. package/dist/backend-a2/contract.mjs +1 -1
  14. package/dist/backend-a2/store-memory.d.mts +1 -1
  15. package/dist/backend-a2/store-memory.mjs +2 -2
  16. package/dist/backend-a2/store-postgres.d.mts +1 -1
  17. package/dist/backend-a2/store-postgres.mjs +1 -1
  18. package/dist/backend-a2/store-redis-http.d.mts +1 -1
  19. package/dist/backend-a2/store-redis-http.mjs +1 -1
  20. package/dist/backend-a2/store-redis.d.mts +1 -1
  21. package/dist/backend-a2/store-redis.mjs +1 -1
  22. package/dist/backend-a2/store-sqlite.d.mts +1 -1
  23. package/dist/backend-a2/store-sqlite.mjs +2 -2
  24. package/dist/backend-a2.d.mts +131 -240
  25. package/dist/backend-a2.mjs +2 -2
  26. package/dist/{backend-http-3PoBYQoo.d.mts → backend-http-BRrRbjRx.d.mts} +49 -45
  27. package/dist/{backend-http-BPaNYLWj.mjs → backend-http-CvUKOn-m.mjs} +11 -9
  28. package/dist/{backend-http-16SbvnAK.mjs → backend-http-D8mUzuKQ.mjs} +2 -2
  29. package/dist/backend-http.d.mts +1 -1
  30. package/dist/backend-http.mjs +1 -1
  31. package/dist/backend-http.node.d.mts +1 -1
  32. package/dist/backend-http.node.mjs +1 -1
  33. package/dist/{backend-vercel-Kd8nvW5A.mjs → backend-vercel-Ba8JDtqW.mjs} +3 -3
  34. package/dist/{backend-vercel-qznuDxnN.d.mts → backend-vercel-BaSEUdwg.d.mts} +49 -45
  35. package/dist/{backend-vercel-C4Kee2-K.mjs → backend-vercel-CmY9yZ9m.mjs} +80 -15
  36. package/dist/backend-vercel.d.mts +1 -1
  37. package/dist/backend-vercel.mjs +1 -1
  38. package/dist/backend-vercel.node.d.mts +1 -1
  39. package/dist/backend-vercel.node.mjs +1 -1
  40. package/dist/{blob-CqILvdmr.d.mts → blob-Bx8QPWEd.d.mts} +2 -2
  41. package/dist/{blob-DQK5prXT.mjs → blob-WbB2DJKn.mjs} +30 -11
  42. package/dist/{chat-provider-D6jVT4wS.d.mts → chat-provider-BChYrrA7.d.mts} +32 -28
  43. package/dist/{chat-provider-COtsU5jB.mjs → chat-provider-DkFp2hrh.mjs} +105 -60
  44. package/dist/cli-commands.d.mts +1 -1
  45. package/dist/cli-commands.mjs +1 -1
  46. package/dist/cli-embedded.d.mts +2 -2
  47. package/dist/cli-embedded.mjs +1 -1
  48. package/dist/cli.mjs +4 -4
  49. package/dist/{client-CjAatpV4.d.mts → client-COfYrgfV.d.mts} +184 -221
  50. package/dist/{commands-BtH69yqt.d.mts → commands-DK4W3HCJ.d.mts} +30 -10
  51. package/dist/{commands-B5DHjZKK.mjs → commands-L1JSGz2Z.mjs} +162 -45
  52. package/dist/{conformance-C7fwIvmN.mjs → conformance-DK43HiHf.mjs} +224 -20
  53. package/dist/conformance.d.mts +8 -2
  54. package/dist/conformance.mjs +1 -1
  55. package/dist/{engine-DkdkXQEy.mjs → engine-DurYIRt8.mjs} +29 -210
  56. package/dist/{errors-87TVtXeb.d.mts → errors-2vGs49Db.d.mts} +1 -1
  57. package/dist/{errors-C_5rB8Iz.mjs → errors-CJXhhzvT.mjs} +28 -23
  58. package/dist/{provider-BaVmi4Hi.mjs → events-lujPA3gQ.mjs} +80 -17
  59. package/dist/{exports-CG0P8Qi4.mjs → exports-CWIdN0Ub.mjs} +146 -80
  60. package/dist/exports-FBOQWT7O.d.mts +5 -0
  61. package/dist/{folds-DGYkMW19.mjs → folds-Cu9Q9zyQ.mjs} +2 -22
  62. package/dist/{folds-8wRRXjAt.d.mts → folds-DLUzfibJ.d.mts} +13 -40
  63. package/dist/{index-BygAXP7t.d.mts → index-Ho-ayyQL.d.mts} +2 -2
  64. package/dist/index.d.mts +7 -7
  65. package/dist/{index.default-DhkgpfR2.mjs → index.default-BUcwDaAe.mjs} +1 -1
  66. package/dist/index.mjs +5 -5
  67. package/dist/index.node.d.mts +7 -7
  68. package/dist/index.node.mjs +3 -3
  69. package/dist/inspect/app.js +62 -61
  70. package/dist/inspect/engine.js +3 -3
  71. package/dist/{main-D2s-QBOK.mjs → main-Dz-8komG.mjs} +189 -112
  72. package/dist/{middleware-DlJQYiwV.mjs → middleware-BavYSDUa.mjs} +1 -1
  73. package/dist/{node-D8Rtg1su.mjs → node-BgeGcwX0.mjs} +7 -3
  74. package/dist/{project-C_2xs57L.mjs → project-CQ4VUibA.mjs} +1 -1
  75. package/dist/{provider-Bm46LAdp.d.mts → provider-gynDUoyW.d.mts} +13 -43
  76. package/dist/{redis-tables-BWJZHUGg.mjs → redis-tables-DHf85ixI.mjs} +1 -19
  77. package/dist/{reducers-8jqLewgw.mjs → reducers-DcENwtwZ.mjs} +72 -75
  78. package/dist/{serve-lPoBDEds.mjs → serve-CTmow-YH.mjs} +6 -6
  79. package/dist/{server-D82a4uMe.mjs → server-DG8D6VV0.mjs} +4 -4
  80. package/dist/{serving-DKny38LK.mjs → serving-DBFRo6U_.mjs} +1 -1
  81. package/dist/{sql-Bj0fk6dn.mjs → sql-CT5xVuGr.mjs} +2 -8
  82. package/dist/{sqlite-db-Dc8G78XV.mjs → sqlite-db-0WeSOEZN.mjs} +1 -1
  83. package/dist/{sync-kapso.d.mts → sync-chat-sdk.d.mts} +33 -37
  84. package/dist/sync-chat-sdk.mjs +44 -0
  85. package/dist/sync-github.d.mts +5 -18
  86. package/dist/sync-github.mjs +4 -70
  87. package/dist/sync-linear.d.mts +3 -3
  88. package/dist/sync-linear.mjs +2 -3
  89. package/dist/sync-slack.d.mts +7 -7
  90. package/dist/sync-slack.mjs +33 -54
  91. package/dist/sync.d.mts +3 -3
  92. package/dist/sync.mjs +2 -4
  93. package/dist/{tokens-C5_yGRlL.mjs → tokens-Dnyd_y1n.mjs} +15 -6
  94. package/dist/{types-shZmGZ-q.d.mts → types-CmrFjpml.d.mts} +1 -3
  95. package/dist/{watchers-hash-B_5b0-ZG.mjs → watchers-hash-BjwlnGD9.mjs} +85 -105
  96. package/docs/01-board/01-mounting.md +2 -2
  97. package/docs/01-board/03-identity.md +5 -6
  98. package/docs/01-board/04-messages.md +3 -2
  99. package/docs/01-board/05-reading.md +2 -1
  100. package/docs/01-board/06-watchers.md +8 -6
  101. package/docs/01-board/08-middleware.md +1 -1
  102. package/docs/01-board/09-access.md +145 -14
  103. package/docs/02-sync/01-overview.md +19 -26
  104. package/docs/02-sync/02-functions.md +8 -9
  105. package/docs/02-sync/03-slack.md +5 -5
  106. package/docs/02-sync/04-github.md +2 -2
  107. package/docs/02-sync/06-providers.md +91 -62
  108. package/docs/03-guides/01-coding-agents.md +1 -1
  109. package/docs/03-guides/03-ci.md +7 -4
  110. package/docs/04-reference/01-cli.md +86 -41
  111. package/docs/04-reference/02-board.md +56 -23
  112. package/docs/04-reference/03-http.md +59 -32
  113. package/docs/04-reference/04-log.md +8 -11
  114. package/docs/04-reference/05-conformance.md +35 -6
  115. package/docs/index.md +2 -2
  116. package/package.json +6 -9
  117. package/sql/postgres/board.sql +1 -1
  118. package/sql/postgres/schema.sql +1 -1
  119. package/dist/events-qf5XG5VQ.mjs +0 -75
  120. package/dist/exports-CrGA5_yN.d.mts +0 -5
  121. package/dist/sync-kapso.mjs +0 -89
  122. package/dist/sync.chat.d.mts +0 -2
  123. package/dist/sync.chat.mjs +0 -2
  124. package/dist/users-yryHKFMo.mjs +0 -42
  125. package/docs/02-sync/05-whatsapp.md +0 -152
@@ -1,10 +1,11 @@
1
- import { t as Actor, x as Attachment } from "./folds-8wRRXjAt.mjs";
1
+ import { _ as StoredGrant } from "./auth-DLYSt_-A.mjs";
2
+ import { t as Actor, x as Attachment } from "./folds-DLUzfibJ.mjs";
2
3
  import { l as Reducer, r as ContractEvent } from "./reducer-CYPHsSmd-BXjGiptm.mjs";
3
4
  import { a as SessionAppend, c as SessionConsumeOptions, d as SessionSchedule, f as StateOptions, l as SessionConsumeResult, n as A2Server, o as SessionClearOptions, p as SessionCleared, r as Consumer, s as SessionClearResult, t as A2Scheduler, u as SessionDeadLetters } from "./server-B9gu0qi1-DI1WvcVK.mjs";
4
- import { A as InboxItem, Ct as SyncCopiesView, D as IdentityView, Et as SyncFindView, H as MessageView, It as ThreadView, L as LinkedAccount, Lt as ThreadsPage, Mt as SyncThreadView, Pt as SyncedView, S as EventsPage, U as MessagesPage, Ut as UploadTicket, V as Me, b as Discovery, ft as SourceJoin, ht as SourceRead, k as InboxEntry, q as PersonView, st as ScheduleView, tt as RegistrationView, v as ChannelView, xt as SyncCodeView, z as MatchView } from "./client-CjAatpV4.mjs";
5
- import { i as Caller, n as BackendRoute, r as BoardBinding } from "./backend-n3hajfrD.mjs";
6
- import { n as fsBlob, r as memoryBlob, t as BlobStore } from "./blob-CqILvdmr.mjs";
7
- import { t as BoardStore } from "./types-shZmGZ-q.mjs";
5
+ import { At as ThreadsPage, B as MatchView, C as EventsPage, Dt as SyncedView, Et as SyncThreadView, Ft as TokenView, H as Me, M as InboxItem, U as MessageView, W as MessagesPage, dt as SourceJoin, j as InboxEntry, k as GrantView, kt as ThreadView, mt as SourceRead, st as ScheduleView, tt as RegistrationView, v as ChannelView, vt as SyncCopiesView, x as Discovery, xt as SyncFindView, zt as UploadTicket } from "./client-COfYrgfV.mjs";
6
+ import { i as Caller, l as StoredToken, n as BackendRoute, r as BoardBinding } from "./backend-Bob-5CM7.mjs";
7
+ import { n as fsBlob, r as memoryBlob, t as BlobStore } from "./blob-Bx8QPWEd.mjs";
8
+ import { t as BoardStore } from "./types-CmrFjpml.mjs";
8
9
  import { z } from "zod";
9
10
  //#region src/server/transport.d.ts
10
11
  /**
@@ -72,17 +73,18 @@ export declare function a2(options?: A2Options): {
72
73
  channels: ChannelView[];
73
74
  cursor: string;
74
75
  }>;
76
+ createChannel: (caller: Caller, input: {
77
+ path: string;
78
+ }, signal: AbortSignal) => Promise<{
79
+ channel: ChannelView;
80
+ created: boolean;
81
+ }>;
75
82
  actors: (caller: Caller, input: {
76
83
  [x: string]: never;
77
84
  }, signal: AbortSignal) => Promise<{
78
- actors: (Actor & {
79
- person?: PersonView;
80
- })[];
85
+ actors: Actor[];
81
86
  cursor: string;
82
87
  }>;
83
- identity: (caller: Caller, input: {
84
- [x: string]: never;
85
- }, signal: AbortSignal) => Promise<IdentityView>;
86
88
  messages: (caller: Caller, input: {
87
89
  channel?: string | undefined;
88
90
  re?: string | undefined;
@@ -195,6 +197,45 @@ export declare function a2(options?: A2Options): {
195
197
  schedule: ScheduleView;
196
198
  canceled: boolean;
197
199
  }>;
200
+ grants: (caller: Caller, input: {
201
+ [x: string]: never;
202
+ }, signal: AbortSignal) => Promise<{
203
+ grants: GrantView[];
204
+ }>;
205
+ createGrant: (caller: Caller, input: {
206
+ issuer: string;
207
+ claims: Record<string, string | string[]>;
208
+ can?: "all" | string[] | Record<string, "all" | string[]> | undefined;
209
+ }, signal: AbortSignal) => Promise<{
210
+ grant: GrantView;
211
+ created: boolean;
212
+ }>;
213
+ revokeGrant: (caller: Caller, input: {
214
+ id: string;
215
+ }, signal: AbortSignal) => Promise<{
216
+ revoked: boolean;
217
+ }>;
218
+ tokens: (caller: Caller, input: {
219
+ [x: string]: never;
220
+ }, signal: AbortSignal) => Promise<{
221
+ tokens: TokenView[];
222
+ }>;
223
+ createToken: (caller: Caller, input: {
224
+ name: string;
225
+ can?: "all" | string[] | Record<string, "all" | string[]> | undefined;
226
+ profile?: string | undefined;
227
+ avatar?: string | undefined;
228
+ session?: string | undefined;
229
+ expires?: string | undefined;
230
+ }, signal: AbortSignal) => Promise<{
231
+ token: TokenView;
232
+ secret: string;
233
+ }>;
234
+ revokeToken: (caller: Caller, input: {
235
+ id: string;
236
+ }, signal: AbortSignal) => Promise<{
237
+ revoked: boolean;
238
+ }>;
198
239
  upload: (caller: Caller, input: {
199
240
  data: Uint8Array;
200
241
  name: string | null;
@@ -232,7 +273,6 @@ export declare function a2(options?: A2Options): {
232
273
  sync?: {
233
274
  key: string;
234
275
  platform: string;
235
- signIn: boolean;
236
276
  }[] | undefined;
237
277
  url?: string | null | undefined;
238
278
  path?: null | undefined;
@@ -245,7 +285,6 @@ export declare function a2(options?: A2Options): {
245
285
  sync?: {
246
286
  key: string;
247
287
  platform: string;
248
- signIn: boolean;
249
288
  }[] | undefined;
250
289
  url?: null | undefined;
251
290
  path: string;
@@ -469,7 +508,6 @@ export declare function a2(options?: A2Options): {
469
508
  external: {
470
509
  thread: string;
471
510
  message: string;
472
- asUser?: true | undefined;
473
511
  };
474
512
  files?: string[] | null | undefined;
475
513
  } | {
@@ -496,22 +534,13 @@ export declare function a2(options?: A2Options): {
496
534
  thread: string;
497
535
  }, signal: AbortSignal) => Promise<SyncThreadView>;
498
536
  syncFind: (caller: Caller, input: {
499
- code?: string | undefined;
500
537
  post?: string | undefined;
501
538
  thread?: string | undefined;
502
539
  message?: string | undefined;
503
- account?: string | undefined;
504
- person?: string | undefined;
505
540
  }, signal: AbortSignal) => Promise<SyncFindView>;
506
541
  syncCopies: (caller: Caller, input: {
507
542
  message: string[];
508
543
  }, signal: AbortSignal) => Promise<SyncCopiesView>;
509
- syncRoots: (caller: Caller, input: {
510
- by: string;
511
- since: number;
512
- }, signal: AbortSignal) => Promise<{
513
- roots: MessageView[];
514
- }>;
515
544
  inboxPush: (caller: Caller, input: {
516
545
  key: string;
517
546
  } & {
@@ -657,32 +686,13 @@ export declare function a2(options?: A2Options): {
657
686
  }, signal: AbortSignal) => Promise<{
658
687
  events: InboxEntry[];
659
688
  }>;
660
- syncCode: (caller: Caller, input: {
661
- sync: string;
662
- }, signal: AbortSignal) => Promise<SyncCodeView>;
663
- syncAccount: (caller: Caller, input: {
664
- sync: string;
665
- account: {
666
- id: string;
667
- handle: string;
668
- name: string;
669
- isBot: boolean;
670
- avatar: string | null;
671
- };
672
- code: string;
673
- message?: string | undefined;
674
- method?: "code" | "consent" | undefined;
675
- }, signal: AbortSignal) => Promise<{
676
- person: string;
677
- link: LinkedAccount;
678
- }>;
679
- syncUnlink: (caller: Caller, input: {
680
- account: string;
681
- }, signal: AbortSignal) => Promise<{
682
- ok: true;
683
- }>;
684
689
  routes: BackendRoute[];
685
690
  keeps: boolean;
691
+ trust: {
692
+ grants: () => Promise<readonly StoredGrant[]>;
693
+ token: (hash: string) => Promise<StoredToken | null>;
694
+ live: (id: string) => Promise<boolean>;
695
+ };
686
696
  bind(given: BoardBinding): void;
687
697
  /** The scheduler's callback: `export { scheduler as POST }` from a route of its own. A board without a scheduler answers 404. */
688
698
  scheduler: (request: Request) => Promise<Response>;
@@ -737,6 +747,15 @@ export declare function a2(options?: A2Options): {
737
747
  blind: z.ZodOptional<z.ZodLiteral<true>>;
738
748
  importedBy: z.ZodOptional<z.ZodString>;
739
749
  }, z.core.$strip>;
750
+ 'channel.created': z.ZodObject<{
751
+ channel: z.ZodString;
752
+ by: z.ZodObject<{
753
+ actor: z.ZodString;
754
+ principal: z.ZodString;
755
+ profile: z.ZodNullable<z.ZodString>;
756
+ session: z.ZodNullable<z.ZodString>;
757
+ }, z.core.$strip>;
758
+ }, z.core.$strip>;
740
759
  'message.linked': z.ZodObject<{
741
760
  id: z.ZodNumber;
742
761
  thread: z.ZodString;
@@ -847,7 +866,6 @@ export declare function a2(options?: A2Options): {
847
866
  external: z.ZodObject<{
848
867
  thread: z.ZodString;
849
868
  message: z.ZodString;
850
- asUser: z.ZodOptional<z.ZodLiteral<true>>;
851
869
  }, z.core.$strip>;
852
870
  syncedBy: z.ZodOptional<z.ZodString>;
853
871
  }, z.core.$strip>;
@@ -878,29 +896,6 @@ export declare function a2(options?: A2Options): {
878
896
  avatar: z.ZodNullable<z.ZodString>;
879
897
  host: z.ZodOptional<z.ZodLiteral<true>>;
880
898
  }, z.core.$strip>;
881
- 'actor.linked': z.ZodObject<{
882
- actor: z.ZodString;
883
- to: z.ZodString;
884
- method: z.ZodEnum<{
885
- code: "code";
886
- consent: "consent";
887
- }>;
888
- by: z.ZodObject<{
889
- actor: z.ZodString;
890
- principal: z.ZodString;
891
- profile: z.ZodNullable<z.ZodString>;
892
- session: z.ZodNullable<z.ZodString>;
893
- }, z.core.$strip>;
894
- }, z.core.$strip>;
895
- 'actor.unlinked': z.ZodObject<{
896
- actor: z.ZodString;
897
- by: z.ZodObject<{
898
- actor: z.ZodString;
899
- principal: z.ZodString;
900
- profile: z.ZodNullable<z.ZodString>;
901
- session: z.ZodNullable<z.ZodString>;
902
- }, z.core.$strip>;
903
- }, z.core.$strip>;
904
899
  }, Record<never, never>, undefined> | A2Server<{
905
900
  'external.received': z.ZodObject<{
906
901
  sync: z.ZodString;
@@ -1103,6 +1098,7 @@ export declare function a2(options?: A2Options): {
1103
1098
  team: z.ZodOptional<z.ZodString>;
1104
1099
  }, z.core.$strip>>;
1105
1100
  scope: z.ZodOptional<z.ZodString>;
1101
+ token: z.ZodOptional<z.ZodString>;
1106
1102
  }, z.core.$strip>;
1107
1103
  url: z.ZodNullable<z.ZodString>;
1108
1104
  watch: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1115,7 +1111,6 @@ export declare function a2(options?: A2Options): {
1115
1111
  sync: z.ZodOptional<z.ZodArray<z.ZodObject<{
1116
1112
  key: z.ZodString;
1117
1113
  platform: z.ZodString;
1118
- signIn: z.ZodBoolean;
1119
1114
  }, z.core.$strip>>>;
1120
1115
  hash: z.ZodString;
1121
1116
  }, z.core.$strip>;
@@ -1164,6 +1159,7 @@ export declare function a2(options?: A2Options): {
1164
1159
  team: z.ZodOptional<z.ZodString>;
1165
1160
  }, z.core.$strip>>;
1166
1161
  scope: z.ZodOptional<z.ZodString>;
1162
+ token: z.ZodOptional<z.ZodString>;
1167
1163
  }, z.core.$strip>;
1168
1164
  actor: z.ZodObject<{
1169
1165
  id: z.ZodString;
@@ -1264,6 +1260,15 @@ export declare function a2(options?: A2Options): {
1264
1260
  blind: z.ZodOptional<z.ZodLiteral<true>>;
1265
1261
  importedBy: z.ZodOptional<z.ZodString>;
1266
1262
  }, z.core.$strip>;
1263
+ 'channel.created': z.ZodObject<{
1264
+ channel: z.ZodString;
1265
+ by: z.ZodObject<{
1266
+ actor: z.ZodString;
1267
+ principal: z.ZodString;
1268
+ profile: z.ZodNullable<z.ZodString>;
1269
+ session: z.ZodNullable<z.ZodString>;
1270
+ }, z.core.$strip>;
1271
+ }, z.core.$strip>;
1267
1272
  'message.linked': z.ZodObject<{
1268
1273
  id: z.ZodNumber;
1269
1274
  thread: z.ZodString;
@@ -1374,7 +1379,6 @@ export declare function a2(options?: A2Options): {
1374
1379
  external: z.ZodObject<{
1375
1380
  thread: z.ZodString;
1376
1381
  message: z.ZodString;
1377
- asUser: z.ZodOptional<z.ZodLiteral<true>>;
1378
1382
  }, z.core.$strip>;
1379
1383
  syncedBy: z.ZodOptional<z.ZodString>;
1380
1384
  }, z.core.$strip>;
@@ -1405,29 +1409,6 @@ export declare function a2(options?: A2Options): {
1405
1409
  avatar: z.ZodNullable<z.ZodString>;
1406
1410
  host: z.ZodOptional<z.ZodLiteral<true>>;
1407
1411
  }, z.core.$strip>;
1408
- 'actor.linked': z.ZodObject<{
1409
- actor: z.ZodString;
1410
- to: z.ZodString;
1411
- method: z.ZodEnum<{
1412
- code: "code";
1413
- consent: "consent";
1414
- }>;
1415
- by: z.ZodObject<{
1416
- actor: z.ZodString;
1417
- principal: z.ZodString;
1418
- profile: z.ZodNullable<z.ZodString>;
1419
- session: z.ZodNullable<z.ZodString>;
1420
- }, z.core.$strip>;
1421
- }, z.core.$strip>;
1422
- 'actor.unlinked': z.ZodObject<{
1423
- actor: z.ZodString;
1424
- by: z.ZodObject<{
1425
- actor: z.ZodString;
1426
- principal: z.ZodString;
1427
- profile: z.ZodNullable<z.ZodString>;
1428
- session: z.ZodNullable<z.ZodString>;
1429
- }, z.core.$strip>;
1430
- }, z.core.$strip>;
1431
1412
  }>;
1432
1413
  schedule: SessionSchedule<{
1433
1414
  'message.posted': z.ZodObject<{
@@ -1480,6 +1461,15 @@ export declare function a2(options?: A2Options): {
1480
1461
  blind: z.ZodOptional<z.ZodLiteral<true>>;
1481
1462
  importedBy: z.ZodOptional<z.ZodString>;
1482
1463
  }, z.core.$strip>;
1464
+ 'channel.created': z.ZodObject<{
1465
+ channel: z.ZodString;
1466
+ by: z.ZodObject<{
1467
+ actor: z.ZodString;
1468
+ principal: z.ZodString;
1469
+ profile: z.ZodNullable<z.ZodString>;
1470
+ session: z.ZodNullable<z.ZodString>;
1471
+ }, z.core.$strip>;
1472
+ }, z.core.$strip>;
1483
1473
  'message.linked': z.ZodObject<{
1484
1474
  id: z.ZodNumber;
1485
1475
  thread: z.ZodString;
@@ -1590,7 +1580,6 @@ export declare function a2(options?: A2Options): {
1590
1580
  external: z.ZodObject<{
1591
1581
  thread: z.ZodString;
1592
1582
  message: z.ZodString;
1593
- asUser: z.ZodOptional<z.ZodLiteral<true>>;
1594
1583
  }, z.core.$strip>;
1595
1584
  syncedBy: z.ZodOptional<z.ZodString>;
1596
1585
  }, z.core.$strip>;
@@ -1621,29 +1610,6 @@ export declare function a2(options?: A2Options): {
1621
1610
  avatar: z.ZodNullable<z.ZodString>;
1622
1611
  host: z.ZodOptional<z.ZodLiteral<true>>;
1623
1612
  }, z.core.$strip>;
1624
- 'actor.linked': z.ZodObject<{
1625
- actor: z.ZodString;
1626
- to: z.ZodString;
1627
- method: z.ZodEnum<{
1628
- code: "code";
1629
- consent: "consent";
1630
- }>;
1631
- by: z.ZodObject<{
1632
- actor: z.ZodString;
1633
- principal: z.ZodString;
1634
- profile: z.ZodNullable<z.ZodString>;
1635
- session: z.ZodNullable<z.ZodString>;
1636
- }, z.core.$strip>;
1637
- }, z.core.$strip>;
1638
- 'actor.unlinked': z.ZodObject<{
1639
- actor: z.ZodString;
1640
- by: z.ZodObject<{
1641
- actor: z.ZodString;
1642
- principal: z.ZodString;
1643
- profile: z.ZodNullable<z.ZodString>;
1644
- session: z.ZodNullable<z.ZodString>;
1645
- }, z.core.$strip>;
1646
- }, z.core.$strip>;
1647
1613
  }>;
1648
1614
  clear(options?: SessionClearOptions): Promise<SessionClearResult>;
1649
1615
  history(options?: {
@@ -1700,6 +1666,15 @@ export declare function a2(options?: A2Options): {
1700
1666
  blind: z.ZodOptional<z.ZodLiteral<true>>;
1701
1667
  importedBy: z.ZodOptional<z.ZodString>;
1702
1668
  }, z.core.$strip>;
1669
+ 'channel.created': z.ZodObject<{
1670
+ channel: z.ZodString;
1671
+ by: z.ZodObject<{
1672
+ actor: z.ZodString;
1673
+ principal: z.ZodString;
1674
+ profile: z.ZodNullable<z.ZodString>;
1675
+ session: z.ZodNullable<z.ZodString>;
1676
+ }, z.core.$strip>;
1677
+ }, z.core.$strip>;
1703
1678
  'message.linked': z.ZodObject<{
1704
1679
  id: z.ZodNumber;
1705
1680
  thread: z.ZodString;
@@ -1810,7 +1785,6 @@ export declare function a2(options?: A2Options): {
1810
1785
  external: z.ZodObject<{
1811
1786
  thread: z.ZodString;
1812
1787
  message: z.ZodString;
1813
- asUser: z.ZodOptional<z.ZodLiteral<true>>;
1814
1788
  }, z.core.$strip>;
1815
1789
  syncedBy: z.ZodOptional<z.ZodString>;
1816
1790
  }, z.core.$strip>;
@@ -1841,29 +1815,6 @@ export declare function a2(options?: A2Options): {
1841
1815
  avatar: z.ZodNullable<z.ZodString>;
1842
1816
  host: z.ZodOptional<z.ZodLiteral<true>>;
1843
1817
  }, z.core.$strip>;
1844
- 'actor.linked': z.ZodObject<{
1845
- actor: z.ZodString;
1846
- to: z.ZodString;
1847
- method: z.ZodEnum<{
1848
- code: "code";
1849
- consent: "consent";
1850
- }>;
1851
- by: z.ZodObject<{
1852
- actor: z.ZodString;
1853
- principal: z.ZodString;
1854
- profile: z.ZodNullable<z.ZodString>;
1855
- session: z.ZodNullable<z.ZodString>;
1856
- }, z.core.$strip>;
1857
- }, z.core.$strip>;
1858
- 'actor.unlinked': z.ZodObject<{
1859
- actor: z.ZodString;
1860
- by: z.ZodObject<{
1861
- actor: z.ZodString;
1862
- principal: z.ZodString;
1863
- profile: z.ZodNullable<z.ZodString>;
1864
- session: z.ZodNullable<z.ZodString>;
1865
- }, z.core.$strip>;
1866
- }, z.core.$strip>;
1867
1818
  }>[]>;
1868
1819
  consume(consumer: Consumer<{
1869
1820
  'message.posted': z.ZodObject<{
@@ -1916,6 +1867,15 @@ export declare function a2(options?: A2Options): {
1916
1867
  blind: z.ZodOptional<z.ZodLiteral<true>>;
1917
1868
  importedBy: z.ZodOptional<z.ZodString>;
1918
1869
  }, z.core.$strip>;
1870
+ 'channel.created': z.ZodObject<{
1871
+ channel: z.ZodString;
1872
+ by: z.ZodObject<{
1873
+ actor: z.ZodString;
1874
+ principal: z.ZodString;
1875
+ profile: z.ZodNullable<z.ZodString>;
1876
+ session: z.ZodNullable<z.ZodString>;
1877
+ }, z.core.$strip>;
1878
+ }, z.core.$strip>;
1919
1879
  'message.linked': z.ZodObject<{
1920
1880
  id: z.ZodNumber;
1921
1881
  thread: z.ZodString;
@@ -2026,7 +1986,6 @@ export declare function a2(options?: A2Options): {
2026
1986
  external: z.ZodObject<{
2027
1987
  thread: z.ZodString;
2028
1988
  message: z.ZodString;
2029
- asUser: z.ZodOptional<z.ZodLiteral<true>>;
2030
1989
  }, z.core.$strip>;
2031
1990
  syncedBy: z.ZodOptional<z.ZodString>;
2032
1991
  }, z.core.$strip>;
@@ -2057,29 +2016,6 @@ export declare function a2(options?: A2Options): {
2057
2016
  avatar: z.ZodNullable<z.ZodString>;
2058
2017
  host: z.ZodOptional<z.ZodLiteral<true>>;
2059
2018
  }, z.core.$strip>;
2060
- 'actor.linked': z.ZodObject<{
2061
- actor: z.ZodString;
2062
- to: z.ZodString;
2063
- method: z.ZodEnum<{
2064
- code: "code";
2065
- consent: "consent";
2066
- }>;
2067
- by: z.ZodObject<{
2068
- actor: z.ZodString;
2069
- principal: z.ZodString;
2070
- profile: z.ZodNullable<z.ZodString>;
2071
- session: z.ZodNullable<z.ZodString>;
2072
- }, z.core.$strip>;
2073
- }, z.core.$strip>;
2074
- 'actor.unlinked': z.ZodObject<{
2075
- actor: z.ZodString;
2076
- by: z.ZodObject<{
2077
- actor: z.ZodString;
2078
- principal: z.ZodString;
2079
- profile: z.ZodNullable<z.ZodString>;
2080
- session: z.ZodNullable<z.ZodString>;
2081
- }, z.core.$strip>;
2082
- }, z.core.$strip>;
2083
2019
  }>, options?: SessionConsumeOptions): Promise<SessionConsumeResult>;
2084
2020
  state: <T>(reducer: Reducer<{
2085
2021
  'message.posted': z.ZodObject<{
@@ -2132,6 +2068,15 @@ export declare function a2(options?: A2Options): {
2132
2068
  blind: z.ZodOptional<z.ZodLiteral<true>>;
2133
2069
  importedBy: z.ZodOptional<z.ZodString>;
2134
2070
  }, z.core.$strip>;
2071
+ 'channel.created': z.ZodObject<{
2072
+ channel: z.ZodString;
2073
+ by: z.ZodObject<{
2074
+ actor: z.ZodString;
2075
+ principal: z.ZodString;
2076
+ profile: z.ZodNullable<z.ZodString>;
2077
+ session: z.ZodNullable<z.ZodString>;
2078
+ }, z.core.$strip>;
2079
+ }, z.core.$strip>;
2135
2080
  'message.linked': z.ZodObject<{
2136
2081
  id: z.ZodNumber;
2137
2082
  thread: z.ZodString;
@@ -2242,7 +2187,6 @@ export declare function a2(options?: A2Options): {
2242
2187
  external: z.ZodObject<{
2243
2188
  thread: z.ZodString;
2244
2189
  message: z.ZodString;
2245
- asUser: z.ZodOptional<z.ZodLiteral<true>>;
2246
2190
  }, z.core.$strip>;
2247
2191
  syncedBy: z.ZodOptional<z.ZodString>;
2248
2192
  }, z.core.$strip>;
@@ -2273,29 +2217,6 @@ export declare function a2(options?: A2Options): {
2273
2217
  avatar: z.ZodNullable<z.ZodString>;
2274
2218
  host: z.ZodOptional<z.ZodLiteral<true>>;
2275
2219
  }, z.core.$strip>;
2276
- 'actor.linked': z.ZodObject<{
2277
- actor: z.ZodString;
2278
- to: z.ZodString;
2279
- method: z.ZodEnum<{
2280
- code: "code";
2281
- consent: "consent";
2282
- }>;
2283
- by: z.ZodObject<{
2284
- actor: z.ZodString;
2285
- principal: z.ZodString;
2286
- profile: z.ZodNullable<z.ZodString>;
2287
- session: z.ZodNullable<z.ZodString>;
2288
- }, z.core.$strip>;
2289
- }, z.core.$strip>;
2290
- 'actor.unlinked': z.ZodObject<{
2291
- actor: z.ZodString;
2292
- by: z.ZodObject<{
2293
- actor: z.ZodString;
2294
- principal: z.ZodString;
2295
- profile: z.ZodNullable<z.ZodString>;
2296
- session: z.ZodNullable<z.ZodString>;
2297
- }, z.core.$strip>;
2298
- }, z.core.$strip>;
2299
2220
  }, T, Record<never, never>>, options?: StateOptions) => Promise<{
2300
2221
  state: T;
2301
2222
  index: number;
@@ -2354,6 +2275,15 @@ export declare function a2(options?: A2Options): {
2354
2275
  blind: z.ZodOptional<z.ZodLiteral<true>>;
2355
2276
  importedBy: z.ZodOptional<z.ZodString>;
2356
2277
  }, z.core.$strip>;
2278
+ 'channel.created': z.ZodObject<{
2279
+ channel: z.ZodString;
2280
+ by: z.ZodObject<{
2281
+ actor: z.ZodString;
2282
+ principal: z.ZodString;
2283
+ profile: z.ZodNullable<z.ZodString>;
2284
+ session: z.ZodNullable<z.ZodString>;
2285
+ }, z.core.$strip>;
2286
+ }, z.core.$strip>;
2357
2287
  'message.linked': z.ZodObject<{
2358
2288
  id: z.ZodNumber;
2359
2289
  thread: z.ZodString;
@@ -2464,7 +2394,6 @@ export declare function a2(options?: A2Options): {
2464
2394
  external: z.ZodObject<{
2465
2395
  thread: z.ZodString;
2466
2396
  message: z.ZodString;
2467
- asUser: z.ZodOptional<z.ZodLiteral<true>>;
2468
2397
  }, z.core.$strip>;
2469
2398
  syncedBy: z.ZodOptional<z.ZodString>;
2470
2399
  }, z.core.$strip>;
@@ -2495,29 +2424,6 @@ export declare function a2(options?: A2Options): {
2495
2424
  avatar: z.ZodNullable<z.ZodString>;
2496
2425
  host: z.ZodOptional<z.ZodLiteral<true>>;
2497
2426
  }, z.core.$strip>;
2498
- 'actor.linked': z.ZodObject<{
2499
- actor: z.ZodString;
2500
- to: z.ZodString;
2501
- method: z.ZodEnum<{
2502
- code: "code";
2503
- consent: "consent";
2504
- }>;
2505
- by: z.ZodObject<{
2506
- actor: z.ZodString;
2507
- principal: z.ZodString;
2508
- profile: z.ZodNullable<z.ZodString>;
2509
- session: z.ZodNullable<z.ZodString>;
2510
- }, z.core.$strip>;
2511
- }, z.core.$strip>;
2512
- 'actor.unlinked': z.ZodObject<{
2513
- actor: z.ZodString;
2514
- by: z.ZodObject<{
2515
- actor: z.ZodString;
2516
- principal: z.ZodString;
2517
- profile: z.ZodNullable<z.ZodString>;
2518
- session: z.ZodNullable<z.ZodString>;
2519
- }, z.core.$strip>;
2520
- }, z.core.$strip>;
2521
2427
  }> | SessionCleared>;
2522
2428
  } & SessionDeadLetters<{
2523
2429
  'message.posted': z.ZodObject<{
@@ -2570,6 +2476,15 @@ export declare function a2(options?: A2Options): {
2570
2476
  blind: z.ZodOptional<z.ZodLiteral<true>>;
2571
2477
  importedBy: z.ZodOptional<z.ZodString>;
2572
2478
  }, z.core.$strip>;
2479
+ 'channel.created': z.ZodObject<{
2480
+ channel: z.ZodString;
2481
+ by: z.ZodObject<{
2482
+ actor: z.ZodString;
2483
+ principal: z.ZodString;
2484
+ profile: z.ZodNullable<z.ZodString>;
2485
+ session: z.ZodNullable<z.ZodString>;
2486
+ }, z.core.$strip>;
2487
+ }, z.core.$strip>;
2573
2488
  'message.linked': z.ZodObject<{
2574
2489
  id: z.ZodNumber;
2575
2490
  thread: z.ZodString;
@@ -2680,7 +2595,6 @@ export declare function a2(options?: A2Options): {
2680
2595
  external: z.ZodObject<{
2681
2596
  thread: z.ZodString;
2682
2597
  message: z.ZodString;
2683
- asUser: z.ZodOptional<z.ZodLiteral<true>>;
2684
2598
  }, z.core.$strip>;
2685
2599
  syncedBy: z.ZodOptional<z.ZodString>;
2686
2600
  }, z.core.$strip>;
@@ -2711,29 +2625,6 @@ export declare function a2(options?: A2Options): {
2711
2625
  avatar: z.ZodNullable<z.ZodString>;
2712
2626
  host: z.ZodOptional<z.ZodLiteral<true>>;
2713
2627
  }, z.core.$strip>;
2714
- 'actor.linked': z.ZodObject<{
2715
- actor: z.ZodString;
2716
- to: z.ZodString;
2717
- method: z.ZodEnum<{
2718
- code: "code";
2719
- consent: "consent";
2720
- }>;
2721
- by: z.ZodObject<{
2722
- actor: z.ZodString;
2723
- principal: z.ZodString;
2724
- profile: z.ZodNullable<z.ZodString>;
2725
- session: z.ZodNullable<z.ZodString>;
2726
- }, z.core.$strip>;
2727
- }, z.core.$strip>;
2728
- 'actor.unlinked': z.ZodObject<{
2729
- actor: z.ZodString;
2730
- by: z.ZodObject<{
2731
- actor: z.ZodString;
2732
- principal: z.ZodString;
2733
- profile: z.ZodNullable<z.ZodString>;
2734
- session: z.ZodNullable<z.ZodString>;
2735
- }, z.core.$strip>;
2736
- }, z.core.$strip>;
2737
2628
  }>;
2738
2629
  store: BoardStore;
2739
2630
  };
@@ -1,3 +1,3 @@
1
- import { t as a2 } from "./a2-D_28Pdip.mjs";
2
- import { a as fsBlob, s as memoryBlob } from "./blob-DQK5prXT.mjs";
1
+ import { t as a2 } from "./a2-DngWY2Eb.mjs";
2
+ import { a as fsBlob, s as memoryBlob } from "./blob-WbB2DJKn.mjs";
3
3
  export { a2, fsBlob, memoryBlob };