@vercel/board 0.31.0 → 0.33.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/README.md +25 -20
- package/dist/{access-CY5xVMIK.mjs → access-N3XmkKXg.mjs} +3 -3
- package/dist/access.d.mts +4 -5
- package/dist/access.mjs +5 -5
- package/dist/{actors-Bm-ojWWT.mjs → actors-ihyN47OV.mjs} +3 -3
- package/dist/{auth-DLYSt_-A.d.mts → auth-D6z3rMNj.d.mts} +11 -93
- package/dist/{auth-CyO2aw5n.mjs → auth-r-_PeZyw.mjs} +39 -151
- package/dist/{backend-Bob-5CM7.d.mts → backend-CWpyR1A7.d.mts} +81 -51
- package/dist/backend-local.d.mts +28 -0
- package/dist/backend-local.mjs +2 -0
- package/dist/{chat-provider-DkFp2hrh.mjs → chat-provider-9hCT654s.mjs} +2 -2
- package/dist/{chat-provider-BChYrrA7.d.mts → chat-provider-DJpFUaFv.d.mts} +2 -3
- package/dist/cli-commands.d.mts +1 -1
- package/dist/cli-commands.mjs +1 -1
- package/dist/cli-embedded.d.mts +2 -2
- package/dist/cli-embedded.mjs +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/{commands-DK4W3HCJ.d.mts → commands-BOBQHVqM.d.mts} +14 -0
- package/dist/{commands-L1JSGz2Z.mjs → commands-CHoMl06v.mjs} +39 -12
- package/dist/{conformance-DK43HiHf.mjs → conformance-qKmGLTAT.mjs} +40 -5
- package/dist/conformance.d.mts +1 -1
- package/dist/conformance.mjs +1 -1
- package/dist/{engine-DurYIRt8.mjs → engine-JxgZiikU.mjs} +6 -8
- package/dist/{errors-CJXhhzvT.mjs → errors-Pk0XV1hK.mjs} +56 -2
- package/dist/{events-lujPA3gQ.mjs → events-IQg0k281.mjs} +2 -2
- package/dist/exports-BuKjVq2t.d.mts +4 -0
- package/dist/exports-gHDHlg0i.mjs +3207 -0
- package/dist/{external-D3p5T57R.mjs → external-CYe424fO.mjs} +1 -1
- package/dist/{folds-DLUzfibJ.d.mts → folds-DjFTiqIM.d.mts} +38 -44
- package/dist/index-CXvvYNYj.d.mts +11 -0
- package/dist/index.d.mts +9 -8
- package/dist/index.mjs +21 -8
- package/dist/index.node.d.mts +5 -6
- package/dist/index.node.mjs +3 -3
- package/dist/inspect/app.js +95 -95
- package/dist/{internal-CvsrprnU-zZMpDiRY.mjs → internal-CvsrprnU-CEPOUpAv.mjs} +63 -43
- package/dist/local-BbLjA5vI.mjs +8818 -0
- package/dist/{main-Dz-8komG.mjs → main-CQpCZJFw.mjs} +140 -36
- package/dist/{backend-a2/store-memory.mjs → memory-7RRnLa4X.mjs} +3 -3
- package/dist/middleware-BU7rVi9F.mjs +103 -0
- package/dist/{client-COfYrgfV.d.mts → provider-BlzUvcM9.d.mts} +665 -5
- package/dist/{schemas-DBmUO6pr.mjs → schemas-BG205xds.mjs} +2 -5
- package/dist/{serve-CTmow-YH.mjs → serve-D8_W4UN6.mjs} +33 -24
- package/dist/{node-BgeGcwX0.mjs → server-BiIUXWbU.mjs} +419 -6
- package/dist/{serving-DBFRo6U_.mjs → serving-D7rcUtSC.mjs} +1 -1
- package/dist/{sql-CT5xVuGr.mjs → sql-BQzKUqQt.mjs} +349 -114
- package/dist/sqlite-DCtZFEVm.mjs +30 -0
- package/dist/{sqlite-db-0WeSOEZN.mjs → sqlite-db-qLTs52Ny.mjs} +2 -3
- package/dist/{store-codec-pAG2oPgQ-SqDXlPBR.mjs → store-N8PXxDAS-BdL4Sq-f.mjs} +6 -2
- package/dist/{store-memory-B0PkVSuQ.mjs → store-memory-CKQVEzXN.mjs} +2 -4
- package/dist/store-memory-OdGsc-t_.mjs +2 -0
- package/dist/{store-polling-BZt2Rf3D-Div-bJ_D.mjs → store-polling-BZt2Rf3D-oh3aU_An.mjs} +1 -1
- package/dist/store-sqlite-CTxAVCcz.mjs +2 -0
- package/dist/{store-sqlite-D85t3tE7.mjs → store-sqlite-D6fIszST.mjs} +3 -4
- package/dist/sync-chat-sdk.d.mts +2 -2
- package/dist/sync-chat-sdk.mjs +2 -2
- package/dist/sync-github.d.mts +2 -2
- package/dist/sync-github.mjs +2 -2
- package/dist/sync-linear.d.mts +2 -3
- package/dist/sync-linear.mjs +2 -2
- package/dist/sync-slack.d.mts +3 -3
- package/dist/sync-slack.mjs +4 -4
- package/dist/sync.d.mts +2 -2
- package/dist/sync.mjs +2 -2
- package/dist/{watchers-hash-BjwlnGD9.mjs → targets-CknPGGVi.mjs} +40 -10
- package/dist/{tokens-Dnyd_y1n.mjs → tokens-DPKjl3jf.mjs} +15 -43
- package/docs/01-board/01-mounting.md +243 -288
- package/docs/01-board/03-identity.md +41 -50
- package/docs/01-board/04-messages.md +19 -16
- package/docs/01-board/05-reading.md +3 -3
- package/docs/01-board/06-watchers.md +58 -105
- package/docs/01-board/07-schedules.md +21 -41
- package/docs/01-board/08-middleware.md +11 -17
- package/docs/01-board/09-access.md +76 -313
- package/docs/01-board/10-local.md +81 -0
- package/docs/01-quickstart.md +49 -126
- package/docs/02-sync/01-overview.md +25 -80
- package/docs/02-sync/02-functions.md +10 -16
- package/docs/02-sync/03-slack.md +13 -26
- package/docs/02-sync/04-github.md +8 -20
- package/docs/02-sync/07-linear.md +6 -10
- package/docs/03-guides/02-inspector.md +3 -3
- package/docs/03-guides/03-ci.md +88 -128
- package/docs/03-guides/04-triage.md +7 -15
- package/docs/03-guides/05-agent-factory.md +30 -36
- package/docs/04-reference/01-cli.md +118 -32
- package/docs/04-reference/02-board.md +60 -74
- package/docs/04-reference/03-http.md +119 -57
- package/docs/04-reference/05-conformance.md +31 -45
- package/docs/index.md +41 -65
- package/package.json +12 -83
- package/dist/a2-DngWY2Eb.mjs +0 -4238
- package/dist/access-DPcrKIH_.d.mts +0 -37
- package/dist/backend-a2/blob-vercel.d.mts +0 -8
- package/dist/backend-a2/blob-vercel.mjs +0 -81
- package/dist/backend-a2/contract.d.mts +0 -828
- package/dist/backend-a2/contract.mjs +0 -5
- package/dist/backend-a2/scheduler-local.d.mts +0 -11
- package/dist/backend-a2/scheduler-local.mjs +0 -2
- package/dist/backend-a2/scheduler-qstash.d.mts +0 -79
- package/dist/backend-a2/scheduler-qstash.mjs +0 -522
- package/dist/backend-a2/scheduler-vercel.d.mts +0 -38
- package/dist/backend-a2/scheduler-vercel.mjs +0 -204
- package/dist/backend-a2/store-memory.d.mts +0 -11
- package/dist/backend-a2/store-postgres.d.mts +0 -38
- package/dist/backend-a2/store-postgres.mjs +0 -2977
- package/dist/backend-a2/store-redis-http.d.mts +0 -17
- package/dist/backend-a2/store-redis-http.mjs +0 -520
- package/dist/backend-a2/store-redis.d.mts +0 -31
- package/dist/backend-a2/store-redis.mjs +0 -88
- package/dist/backend-a2/store-sqlite.d.mts +0 -12
- package/dist/backend-a2/store-sqlite.mjs +0 -31
- package/dist/backend-a2.d.mts +0 -2633
- package/dist/backend-a2.mjs +0 -3
- package/dist/backend-http-BRrRbjRx.d.mts +0 -672
- package/dist/backend-http-CvUKOn-m.mjs +0 -585
- package/dist/backend-http-D8mUzuKQ.mjs +0 -18
- package/dist/backend-http.d.mts +0 -10
- package/dist/backend-http.mjs +0 -2
- package/dist/backend-http.node.d.mts +0 -10
- package/dist/backend-http.node.mjs +0 -2
- package/dist/backend-vercel-Ba8JDtqW.mjs +0 -86
- package/dist/backend-vercel-BaSEUdwg.d.mts +0 -674
- package/dist/backend-vercel-CmY9yZ9m.mjs +0 -1656
- package/dist/backend-vercel.d.mts +0 -9
- package/dist/backend-vercel.mjs +0 -11
- package/dist/backend-vercel.node.d.mts +0 -17
- package/dist/backend-vercel.node.mjs +0 -2
- package/dist/blob-Bx8QPWEd.d.mts +0 -40
- package/dist/blob-WbB2DJKn.mjs +0 -201
- package/dist/errors-2vGs49Db.d.mts +0 -16
- package/dist/exports-CWIdN0Ub.mjs +0 -1389
- package/dist/exports-FBOQWT7O.d.mts +0 -5
- package/dist/files-SniSmeEr.mjs +0 -47
- package/dist/folds-Cu9Q9zyQ.mjs +0 -207
- package/dist/index-Ho-ayyQL.d.mts +0 -11
- package/dist/index.default-BUcwDaAe.mjs +0 -12
- package/dist/local-C76Fy5ad.mjs +0 -44
- package/dist/middleware-BavYSDUa.mjs +0 -62
- package/dist/platform-B4TnJtWu-Do3agKr5.mjs +0 -32
- package/dist/project-CQ4VUibA.mjs +0 -124
- package/dist/provider-gynDUoyW.d.mts +0 -665
- package/dist/redis-tables-DHf85ixI.mjs +0 -3895
- package/dist/reducer-Bswr11ar-P324o9vn.mjs +0 -74
- package/dist/reducer-CYPHsSmd-BXjGiptm.d.mts +0 -170
- package/dist/reducers-DcENwtwZ.mjs +0 -538
- package/dist/retryable-lazy-DZWmHpii-DpTc5PIP.mjs +0 -19
- package/dist/scheduler-task-X1SToDjP-D2Il2rln.mjs +0 -69
- package/dist/server-B9gu0qi1-DI1WvcVK.d.mts +0 -391
- package/dist/server-DG8D6VV0.mjs +0 -17
- package/dist/server-DX7mM6nm-D7N_7bug.mjs +0 -3611
- package/dist/session-clear-XJYpmUpg-2q8l_FJR.mjs +0 -63
- package/dist/store-DEzcHZOA-B-5vhxef.d.mts +0 -540
- package/dist/store-N8PXxDAS-DWWgv-Vz.mjs +0 -5
- package/dist/store-memory-4IBl0Ztu.mjs +0 -2
- package/dist/store-presence-polling-JuAy2Ck2-Dh-g_KYM.mjs +0 -109
- package/dist/store-sqlite-iBTYYKBj.mjs +0 -2
- package/dist/stream-buffer-DrTyiIuo-Be10yOBR.mjs +0 -53
- package/dist/targets-Cgjs29T0.mjs +0 -33
- package/dist/types-CmrFjpml.d.mts +0 -102
- package/dist/wait-until-Dw4XrIDQ.mjs +0 -42
- package/docs/01-board/02-database.md +0 -258
- package/docs/04-reference/04-log.md +0 -247
- package/sql/postgres/board.sql +0 -145
- package/sql/postgres/notifications.sql +0 -24
- package/sql/postgres/schema.sql +0 -451
package/dist/backend-a2.d.mts
DELETED
|
@@ -1,2633 +0,0 @@
|
|
|
1
|
-
import { _ as StoredGrant } from "./auth-DLYSt_-A.mjs";
|
|
2
|
-
import { t as Actor, x as Attachment } from "./folds-DLUzfibJ.mjs";
|
|
3
|
-
import { l as Reducer, r as ContractEvent } from "./reducer-CYPHsSmd-BXjGiptm.mjs";
|
|
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";
|
|
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";
|
|
9
|
-
import { z } from "zod";
|
|
10
|
-
//#region src/server/transport.d.ts
|
|
11
|
-
/**
|
|
12
|
-
* How a board POSTs to a URL a caller gave it: a wake-up to a board on `http()`. That URL
|
|
13
|
-
* comes from a caller, so by default it's `https` to a public address only, checked as it
|
|
14
|
-
* connects: no loopback, private, or link-local address, however its name resolves, and no
|
|
15
|
-
* redirects. Tests pass their own.
|
|
16
|
-
*/
|
|
17
|
-
type Post = (url: string, init: {
|
|
18
|
-
headers: Record<string, string>;
|
|
19
|
-
body: string;
|
|
20
|
-
signal: AbortSignal;
|
|
21
|
-
}) => Promise<Response>;
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/server/a2.d.ts
|
|
24
|
-
/**
|
|
25
|
-
* `a2()`'s options: the board in this deployment, on A2's log, and what runs it. Who may use it,
|
|
26
|
-
* and what its writes go through, are board()'s: `board({ authenticate, access, middleware })`.
|
|
27
|
-
*/
|
|
28
|
-
type A2Options = {
|
|
29
|
-
/**
|
|
30
|
-
* Where the board keeps its log and tables: `postgres()`, `redis()`, `redisHttp()`, `sqlite()`, or
|
|
31
|
-
* `memory()` from `@vercel/board/backend-a2/store-*`. Omitted: SQLite at `.a2/dev.db` in the working
|
|
32
|
-
* directory, everywhere, which suits development and a single long-running server. Serverless
|
|
33
|
-
* functions can't write there: pass a store, and the board's requests say so until you do.
|
|
34
|
-
*/
|
|
35
|
-
store?: BoardStore;
|
|
36
|
-
/**
|
|
37
|
-
* What gives the board a clock: `vercelQueues()` or `qstash()` from `@vercel/board/backend-a2/scheduler-*`,
|
|
38
|
-
* or `localScheduler()` from `@vercel/board/backend-a2/scheduler-local` in a long-running process. Mount
|
|
39
|
-
* the backend's `scheduler` as `POST` in its own route. Without one, the consumers (the tables,
|
|
40
|
-
* watchers, sync) run in the request that writes, a failure is tried again on the next write, and
|
|
41
|
-
* scheduling answers 501 `no_scheduler`.
|
|
42
|
-
*/
|
|
43
|
-
scheduler?: A2Scheduler;
|
|
44
|
-
/**
|
|
45
|
-
* Where attachments live: `vercelBlob()` from `@vercel/board/backend-a2/blob-vercel`, or `fsBlob()` and
|
|
46
|
-
* `memoryBlob()` from `@vercel/board/backend-a2`. Without one, the board keeps no files: uploads, and
|
|
47
|
-
* posts that carry them, answer 501 `no_files`, and sync links a platform's files where they are.
|
|
48
|
-
*/
|
|
49
|
-
blob?: BlobStore;
|
|
50
|
-
/** For tests: how the board POSTs wake-ups to boards on `http()`. Defaults to https to public addresses only. */
|
|
51
|
-
transport?: {
|
|
52
|
-
post?: Post;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* The board in this deployment, on A2's log: its store (SQLite at `.a2/dev.db` by default), and
|
|
57
|
-
* optionally a scheduler and somewhere for files. It's the backend itself: pass it to
|
|
58
|
-
* `board({ backend })`, and mount its `scheduler` in a route of its own. It trusts the callers
|
|
59
|
-
* board() verified; what it does outside requests, it asks board()'s policy about and writes
|
|
60
|
-
* through board(). Nothing is built or connected until board() binds it, and the default store
|
|
61
|
-
* opens on the first call.
|
|
62
|
-
*/
|
|
63
|
-
export declare function a2(options?: A2Options): {
|
|
64
|
-
discovery: (caller: Caller, input: {
|
|
65
|
-
[x: string]: never;
|
|
66
|
-
}, signal: AbortSignal) => Promise<Discovery>;
|
|
67
|
-
me: (caller: Caller, input: {
|
|
68
|
-
[x: string]: never;
|
|
69
|
-
}, signal: AbortSignal) => Promise<Me>;
|
|
70
|
-
channels: (caller: Caller, input: {
|
|
71
|
-
[x: string]: never;
|
|
72
|
-
}, signal: AbortSignal) => Promise<{
|
|
73
|
-
channels: ChannelView[];
|
|
74
|
-
cursor: string;
|
|
75
|
-
}>;
|
|
76
|
-
createChannel: (caller: Caller, input: {
|
|
77
|
-
path: string;
|
|
78
|
-
}, signal: AbortSignal) => Promise<{
|
|
79
|
-
channel: ChannelView;
|
|
80
|
-
created: boolean;
|
|
81
|
-
}>;
|
|
82
|
-
actors: (caller: Caller, input: {
|
|
83
|
-
[x: string]: never;
|
|
84
|
-
}, signal: AbortSignal) => Promise<{
|
|
85
|
-
actors: Actor[];
|
|
86
|
-
cursor: string;
|
|
87
|
-
}>;
|
|
88
|
-
messages: (caller: Caller, input: {
|
|
89
|
-
channel?: string | undefined;
|
|
90
|
-
re?: string | undefined;
|
|
91
|
-
by?: string | undefined;
|
|
92
|
-
mentions?: string | undefined;
|
|
93
|
-
label?: (readonly [string, null] | readonly [string, string[]])[] | undefined;
|
|
94
|
-
from?: string | undefined;
|
|
95
|
-
text?: string | undefined;
|
|
96
|
-
after?: string | undefined;
|
|
97
|
-
before?: string | undefined;
|
|
98
|
-
limit?: number | undefined;
|
|
99
|
-
}, signal: AbortSignal) => Promise<MessagesPage>;
|
|
100
|
-
threads: (caller: Caller, input: {
|
|
101
|
-
channel?: string | undefined;
|
|
102
|
-
re?: string | undefined;
|
|
103
|
-
by?: string | undefined;
|
|
104
|
-
mentions?: string | undefined;
|
|
105
|
-
label?: (readonly [string, null] | readonly [string, string[]])[] | undefined;
|
|
106
|
-
from?: string | undefined;
|
|
107
|
-
text?: string | undefined;
|
|
108
|
-
after?: string | undefined;
|
|
109
|
-
limit?: number | undefined;
|
|
110
|
-
}, signal: AbortSignal) => Promise<ThreadsPage>;
|
|
111
|
-
message: (caller: Caller, input: {
|
|
112
|
-
id: string;
|
|
113
|
-
}, signal: AbortSignal) => Promise<ThreadView>;
|
|
114
|
-
post: (caller: Caller, input: {
|
|
115
|
-
channel?: string | undefined;
|
|
116
|
-
re?: string | undefined;
|
|
117
|
-
text: string;
|
|
118
|
-
labels?: Record<string, string> | undefined;
|
|
119
|
-
noSync?: boolean | undefined;
|
|
120
|
-
sync?: (string | {
|
|
121
|
-
target: string;
|
|
122
|
-
kind: "channel" | "thread";
|
|
123
|
-
})[] | undefined;
|
|
124
|
-
id?: string | undefined;
|
|
125
|
-
attachments?: string[] | undefined;
|
|
126
|
-
after?: string | undefined;
|
|
127
|
-
}, signal: AbortSignal) => Promise<{
|
|
128
|
-
message: MessageView;
|
|
129
|
-
unknownMentions?: string[];
|
|
130
|
-
}>;
|
|
131
|
-
posted: (caller: Caller, input: {
|
|
132
|
-
id: string;
|
|
133
|
-
}, signal: AbortSignal) => Promise<{
|
|
134
|
-
message: MessageView;
|
|
135
|
-
}>;
|
|
136
|
-
edit: (caller: Caller, input: {
|
|
137
|
-
id: string;
|
|
138
|
-
} & {
|
|
139
|
-
text: string;
|
|
140
|
-
revision?: number | undefined;
|
|
141
|
-
}, signal: AbortSignal) => Promise<{
|
|
142
|
-
ok: true;
|
|
143
|
-
unknownMentions?: string[];
|
|
144
|
-
}>;
|
|
145
|
-
delete: (caller: Caller, input: {
|
|
146
|
-
id: string;
|
|
147
|
-
} & {
|
|
148
|
-
revision?: number | undefined;
|
|
149
|
-
}, signal: AbortSignal) => Promise<{
|
|
150
|
-
ok: true;
|
|
151
|
-
}>;
|
|
152
|
-
react: (caller: Caller, input: {
|
|
153
|
-
id: string;
|
|
154
|
-
} & {
|
|
155
|
-
emoji: string;
|
|
156
|
-
remove?: boolean | undefined;
|
|
157
|
-
}, signal: AbortSignal) => Promise<{
|
|
158
|
-
ok: true;
|
|
159
|
-
}>;
|
|
160
|
-
label: (caller: Caller, input: {
|
|
161
|
-
id: string;
|
|
162
|
-
} & {
|
|
163
|
-
set?: Record<string, string> | undefined;
|
|
164
|
-
unset?: string[] | undefined;
|
|
165
|
-
if?: Record<string, string | null> | undefined;
|
|
166
|
-
}, signal: AbortSignal) => Promise<{
|
|
167
|
-
ok: true;
|
|
168
|
-
}>;
|
|
169
|
-
schedule: (caller: Caller, input: {
|
|
170
|
-
channel?: string | undefined;
|
|
171
|
-
re?: string | undefined;
|
|
172
|
-
text: string;
|
|
173
|
-
labels?: Record<string, string> | undefined;
|
|
174
|
-
noSync?: boolean | undefined;
|
|
175
|
-
attachments?: string[] | undefined;
|
|
176
|
-
in?: string | undefined;
|
|
177
|
-
at?: string | undefined;
|
|
178
|
-
every?: string | undefined;
|
|
179
|
-
until?: string | undefined;
|
|
180
|
-
for?: string | undefined;
|
|
181
|
-
times?: number | undefined;
|
|
182
|
-
}, signal: AbortSignal) => Promise<{
|
|
183
|
-
schedule: ScheduleView;
|
|
184
|
-
unknownMentions?: string[];
|
|
185
|
-
}>;
|
|
186
|
-
schedules: (caller: Caller, input: {
|
|
187
|
-
re?: string | undefined;
|
|
188
|
-
channel?: string | undefined;
|
|
189
|
-
by?: string | undefined;
|
|
190
|
-
all?: boolean | undefined;
|
|
191
|
-
}, signal: AbortSignal) => Promise<{
|
|
192
|
-
schedules: ScheduleView[];
|
|
193
|
-
}>;
|
|
194
|
-
cancelSchedule: (caller: Caller, input: {
|
|
195
|
-
id: string;
|
|
196
|
-
}, signal: AbortSignal) => Promise<{
|
|
197
|
-
schedule: ScheduleView;
|
|
198
|
-
canceled: boolean;
|
|
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
|
-
}>;
|
|
239
|
-
upload: (caller: Caller, input: {
|
|
240
|
-
data: Uint8Array;
|
|
241
|
-
name: string | null;
|
|
242
|
-
type: string | null;
|
|
243
|
-
}, signal: AbortSignal) => Promise<{
|
|
244
|
-
attachment: Attachment;
|
|
245
|
-
}>;
|
|
246
|
-
attachment: (caller: Caller, input: {
|
|
247
|
-
id: string;
|
|
248
|
-
}, signal: AbortSignal) => Promise<{
|
|
249
|
-
attachment: Attachment;
|
|
250
|
-
data: Uint8Array | ReadableStream<Uint8Array>;
|
|
251
|
-
}>;
|
|
252
|
-
uploadStart: (caller: Caller, input: {
|
|
253
|
-
name?: string | null | undefined;
|
|
254
|
-
type?: string | null | undefined;
|
|
255
|
-
size: number;
|
|
256
|
-
sha256?: string | undefined;
|
|
257
|
-
}, signal: AbortSignal) => Promise<UploadTicket>;
|
|
258
|
-
uploadFinish: (caller: Caller, input: {
|
|
259
|
-
id: string;
|
|
260
|
-
}, signal: AbortSignal) => Promise<{
|
|
261
|
-
attachment: Attachment;
|
|
262
|
-
}>;
|
|
263
|
-
watchers: (caller: Caller, input: {
|
|
264
|
-
[x: string]: never;
|
|
265
|
-
}, signal: AbortSignal) => Promise<{
|
|
266
|
-
watchers: RegistrationView[];
|
|
267
|
-
}>;
|
|
268
|
-
register: (caller: Caller, input: {
|
|
269
|
-
watch: Record<string, {
|
|
270
|
-
tail: string;
|
|
271
|
-
when: "enters" | "matches";
|
|
272
|
-
}>;
|
|
273
|
-
sync?: {
|
|
274
|
-
key: string;
|
|
275
|
-
platform: string;
|
|
276
|
-
}[] | undefined;
|
|
277
|
-
url?: string | null | undefined;
|
|
278
|
-
path?: null | undefined;
|
|
279
|
-
branch?: null | undefined;
|
|
280
|
-
} | {
|
|
281
|
-
watch: Record<string, {
|
|
282
|
-
tail: string;
|
|
283
|
-
when: "enters" | "matches";
|
|
284
|
-
}>;
|
|
285
|
-
sync?: {
|
|
286
|
-
key: string;
|
|
287
|
-
platform: string;
|
|
288
|
-
}[] | undefined;
|
|
289
|
-
url?: null | undefined;
|
|
290
|
-
path: string;
|
|
291
|
-
branch?: string | null | undefined;
|
|
292
|
-
}, signal: AbortSignal) => Promise<RegistrationView>;
|
|
293
|
-
matches: (caller: Caller, input: {
|
|
294
|
-
limit?: number | undefined;
|
|
295
|
-
wait?: number | undefined;
|
|
296
|
-
}, signal: AbortSignal) => Promise<{
|
|
297
|
-
matches: MatchView[];
|
|
298
|
-
}>;
|
|
299
|
-
ack: (caller: Caller, input: {
|
|
300
|
-
id: string;
|
|
301
|
-
} & {
|
|
302
|
-
lease: string;
|
|
303
|
-
error?: string | undefined;
|
|
304
|
-
skip?: boolean | undefined;
|
|
305
|
-
}, signal: AbortSignal) => Promise<{
|
|
306
|
-
ok: true;
|
|
307
|
-
}>;
|
|
308
|
-
events: (caller: Caller, input: {
|
|
309
|
-
channel?: string | undefined;
|
|
310
|
-
re?: string | undefined;
|
|
311
|
-
by?: string | undefined;
|
|
312
|
-
mentions?: string | undefined;
|
|
313
|
-
label?: (readonly [string, null] | readonly [string, string[]])[] | undefined;
|
|
314
|
-
from?: string | undefined;
|
|
315
|
-
text?: string | undefined;
|
|
316
|
-
after?: string | undefined;
|
|
317
|
-
wait?: number | undefined;
|
|
318
|
-
all?: boolean | undefined;
|
|
319
|
-
}, signal: AbortSignal) => Promise<EventsPage>;
|
|
320
|
-
typing: (caller: Caller, input: {
|
|
321
|
-
id: string;
|
|
322
|
-
} & {
|
|
323
|
-
status?: string | undefined;
|
|
324
|
-
}, signal: AbortSignal) => Promise<{
|
|
325
|
-
targets: string[];
|
|
326
|
-
}>;
|
|
327
|
-
readSource: (caller: Caller, input: {
|
|
328
|
-
key: string;
|
|
329
|
-
} & {
|
|
330
|
-
target: string;
|
|
331
|
-
limit?: number | undefined;
|
|
332
|
-
after?: string | undefined;
|
|
333
|
-
}, signal: AbortSignal) => Promise<SourceRead>;
|
|
334
|
-
joinSource: (caller: Caller, input: {
|
|
335
|
-
key: string;
|
|
336
|
-
} & {
|
|
337
|
-
target: string;
|
|
338
|
-
}, signal: AbortSignal) => Promise<SourceJoin>;
|
|
339
|
-
synced: (caller: Caller, input: {
|
|
340
|
-
id: string;
|
|
341
|
-
}, signal: AbortSignal) => Promise<SyncedView>;
|
|
342
|
-
linked: (caller: Caller, input: {
|
|
343
|
-
url: string;
|
|
344
|
-
}, signal: AbortSignal) => Promise<ThreadView>;
|
|
345
|
-
syncImport: (caller: Caller, input: {
|
|
346
|
-
author: {
|
|
347
|
-
id: string;
|
|
348
|
-
handle: string;
|
|
349
|
-
name: string;
|
|
350
|
-
isBot: boolean;
|
|
351
|
-
avatar: string | null;
|
|
352
|
-
};
|
|
353
|
-
from: string | null;
|
|
354
|
-
op: "post";
|
|
355
|
-
origin: {
|
|
356
|
-
channel?: string | undefined;
|
|
357
|
-
thread: string;
|
|
358
|
-
subthread: string | null;
|
|
359
|
-
message: string;
|
|
360
|
-
context: string | null;
|
|
361
|
-
} | null;
|
|
362
|
-
source?: {
|
|
363
|
-
key: string;
|
|
364
|
-
channel: string;
|
|
365
|
-
thread: string;
|
|
366
|
-
} | undefined;
|
|
367
|
-
channel?: string | undefined;
|
|
368
|
-
re?: string | undefined;
|
|
369
|
-
text: string;
|
|
370
|
-
labels?: Record<string, string> | undefined;
|
|
371
|
-
noSync?: boolean | undefined;
|
|
372
|
-
attachments?: string[] | undefined;
|
|
373
|
-
links?: {
|
|
374
|
-
url: string;
|
|
375
|
-
snapshot: {
|
|
376
|
-
author: string;
|
|
377
|
-
text: string;
|
|
378
|
-
createdAt: string | null;
|
|
379
|
-
files: {
|
|
380
|
-
name: string;
|
|
381
|
-
url: string | null;
|
|
382
|
-
}[];
|
|
383
|
-
} | null;
|
|
384
|
-
unavailable: string | null;
|
|
385
|
-
message: string | null;
|
|
386
|
-
}[] | undefined;
|
|
387
|
-
id?: string | undefined;
|
|
388
|
-
after?: string | undefined;
|
|
389
|
-
} | {
|
|
390
|
-
author: {
|
|
391
|
-
id: string;
|
|
392
|
-
handle: string;
|
|
393
|
-
name: string;
|
|
394
|
-
isBot: boolean;
|
|
395
|
-
avatar: string | null;
|
|
396
|
-
};
|
|
397
|
-
from: string | null;
|
|
398
|
-
origin?: {
|
|
399
|
-
thread: string;
|
|
400
|
-
message?: string | undefined;
|
|
401
|
-
} | undefined;
|
|
402
|
-
message?: string | undefined;
|
|
403
|
-
op: "edit";
|
|
404
|
-
text: string;
|
|
405
|
-
source?: {
|
|
406
|
-
key: string;
|
|
407
|
-
channel: string;
|
|
408
|
-
thread: string;
|
|
409
|
-
} | undefined;
|
|
410
|
-
revision?: number | undefined;
|
|
411
|
-
} | {
|
|
412
|
-
author: {
|
|
413
|
-
id: string;
|
|
414
|
-
handle: string;
|
|
415
|
-
name: string;
|
|
416
|
-
isBot: boolean;
|
|
417
|
-
avatar: string | null;
|
|
418
|
-
};
|
|
419
|
-
from: string | null;
|
|
420
|
-
origin?: {
|
|
421
|
-
thread: string;
|
|
422
|
-
message?: string | undefined;
|
|
423
|
-
} | undefined;
|
|
424
|
-
message?: string | undefined;
|
|
425
|
-
op: "delete";
|
|
426
|
-
revision?: number | undefined;
|
|
427
|
-
} | {
|
|
428
|
-
author: {
|
|
429
|
-
id: string;
|
|
430
|
-
handle: string;
|
|
431
|
-
name: string;
|
|
432
|
-
isBot: boolean;
|
|
433
|
-
avatar: string | null;
|
|
434
|
-
};
|
|
435
|
-
from: string | null;
|
|
436
|
-
origin?: {
|
|
437
|
-
thread: string;
|
|
438
|
-
message?: string | undefined;
|
|
439
|
-
} | undefined;
|
|
440
|
-
message?: string | undefined;
|
|
441
|
-
op: "react";
|
|
442
|
-
emoji: string;
|
|
443
|
-
remove?: boolean | undefined;
|
|
444
|
-
} | {
|
|
445
|
-
author: {
|
|
446
|
-
id: string;
|
|
447
|
-
handle: string;
|
|
448
|
-
name: string;
|
|
449
|
-
isBot: boolean;
|
|
450
|
-
avatar: string | null;
|
|
451
|
-
};
|
|
452
|
-
from: string | null;
|
|
453
|
-
origin?: {
|
|
454
|
-
thread: string;
|
|
455
|
-
message?: string | undefined;
|
|
456
|
-
} | undefined;
|
|
457
|
-
message?: string | undefined;
|
|
458
|
-
op: "labels";
|
|
459
|
-
set?: Record<string, string> | undefined;
|
|
460
|
-
unset?: string[] | undefined;
|
|
461
|
-
if?: Record<string, string | null> | undefined;
|
|
462
|
-
} | {
|
|
463
|
-
author: {
|
|
464
|
-
id: string;
|
|
465
|
-
handle: string;
|
|
466
|
-
name: string;
|
|
467
|
-
isBot: boolean;
|
|
468
|
-
avatar: string | null;
|
|
469
|
-
};
|
|
470
|
-
from: string | null;
|
|
471
|
-
origin?: {
|
|
472
|
-
thread: string;
|
|
473
|
-
message?: string | undefined;
|
|
474
|
-
} | undefined;
|
|
475
|
-
message?: string | undefined;
|
|
476
|
-
op: "links";
|
|
477
|
-
links: {
|
|
478
|
-
url: string;
|
|
479
|
-
snapshot: {
|
|
480
|
-
author: string;
|
|
481
|
-
text: string;
|
|
482
|
-
createdAt: string | null;
|
|
483
|
-
files: {
|
|
484
|
-
name: string;
|
|
485
|
-
url: string | null;
|
|
486
|
-
}[];
|
|
487
|
-
} | null;
|
|
488
|
-
unavailable: string | null;
|
|
489
|
-
message: string | null;
|
|
490
|
-
}[];
|
|
491
|
-
} | {
|
|
492
|
-
op: "seen";
|
|
493
|
-
author: {
|
|
494
|
-
id: string;
|
|
495
|
-
handle: string;
|
|
496
|
-
name: string;
|
|
497
|
-
isBot: boolean;
|
|
498
|
-
avatar: string | null;
|
|
499
|
-
};
|
|
500
|
-
}, signal: AbortSignal) => Promise<{
|
|
501
|
-
message: string | null;
|
|
502
|
-
dropped?: string[];
|
|
503
|
-
}>;
|
|
504
|
-
syncReceipt: (caller: Caller, input: {
|
|
505
|
-
kind: "message";
|
|
506
|
-
message: string;
|
|
507
|
-
target: string;
|
|
508
|
-
external: {
|
|
509
|
-
thread: string;
|
|
510
|
-
message: string;
|
|
511
|
-
};
|
|
512
|
-
files?: string[] | null | undefined;
|
|
513
|
-
} | {
|
|
514
|
-
kind: "files";
|
|
515
|
-
message: string;
|
|
516
|
-
target: string;
|
|
517
|
-
files: string[] | null;
|
|
518
|
-
} | {
|
|
519
|
-
kind: "failed";
|
|
520
|
-
message: string;
|
|
521
|
-
target: string;
|
|
522
|
-
error: string;
|
|
523
|
-
} | {
|
|
524
|
-
kind: "thread";
|
|
525
|
-
message: string;
|
|
526
|
-
target: string;
|
|
527
|
-
targetKind: "channel" | "thread";
|
|
528
|
-
cause: "config" | "request";
|
|
529
|
-
}, signal: AbortSignal) => Promise<{
|
|
530
|
-
ok: true;
|
|
531
|
-
attached?: boolean;
|
|
532
|
-
}>;
|
|
533
|
-
syncThread: (caller: Caller, input: {
|
|
534
|
-
thread: string;
|
|
535
|
-
}, signal: AbortSignal) => Promise<SyncThreadView>;
|
|
536
|
-
syncFind: (caller: Caller, input: {
|
|
537
|
-
post?: string | undefined;
|
|
538
|
-
thread?: string | undefined;
|
|
539
|
-
message?: string | undefined;
|
|
540
|
-
}, signal: AbortSignal) => Promise<SyncFindView>;
|
|
541
|
-
syncCopies: (caller: Caller, input: {
|
|
542
|
-
message: string[];
|
|
543
|
-
}, signal: AbortSignal) => Promise<SyncCopiesView>;
|
|
544
|
-
inboxPush: (caller: Caller, input: {
|
|
545
|
-
key: string;
|
|
546
|
-
} & {
|
|
547
|
-
events: {
|
|
548
|
-
id: string;
|
|
549
|
-
event: {
|
|
550
|
-
channel: string;
|
|
551
|
-
thread: string;
|
|
552
|
-
subthread: string | null;
|
|
553
|
-
kind: "message";
|
|
554
|
-
message: string;
|
|
555
|
-
isRoot: boolean;
|
|
556
|
-
text: string;
|
|
557
|
-
context: string | null;
|
|
558
|
-
author: {
|
|
559
|
-
id: string;
|
|
560
|
-
handle: string;
|
|
561
|
-
name: string;
|
|
562
|
-
avatar: string | null;
|
|
563
|
-
isBot: boolean;
|
|
564
|
-
};
|
|
565
|
-
files?: {
|
|
566
|
-
type: "audio" | "file" | "image" | "video";
|
|
567
|
-
name?: string | undefined;
|
|
568
|
-
mimeType?: string | undefined;
|
|
569
|
-
size?: number | undefined;
|
|
570
|
-
url?: string | undefined;
|
|
571
|
-
fetchMetadata?: Record<string, string> | undefined;
|
|
572
|
-
}[] | undefined;
|
|
573
|
-
links?: {
|
|
574
|
-
url: string;
|
|
575
|
-
thread: string;
|
|
576
|
-
message: string;
|
|
577
|
-
snapshot: {
|
|
578
|
-
author: string;
|
|
579
|
-
text: string;
|
|
580
|
-
createdAt: string | null;
|
|
581
|
-
files: {
|
|
582
|
-
name: string;
|
|
583
|
-
url: string | null;
|
|
584
|
-
}[];
|
|
585
|
-
} | null;
|
|
586
|
-
}[] | undefined;
|
|
587
|
-
} | {
|
|
588
|
-
channel: string;
|
|
589
|
-
thread: string;
|
|
590
|
-
subthread: string | null;
|
|
591
|
-
kind: "edited";
|
|
592
|
-
message: string;
|
|
593
|
-
text: string;
|
|
594
|
-
author: {
|
|
595
|
-
id: string;
|
|
596
|
-
handle: string;
|
|
597
|
-
name: string;
|
|
598
|
-
avatar: string | null;
|
|
599
|
-
isBot: boolean;
|
|
600
|
-
};
|
|
601
|
-
links?: {
|
|
602
|
-
url: string;
|
|
603
|
-
thread: string;
|
|
604
|
-
message: string;
|
|
605
|
-
snapshot: {
|
|
606
|
-
author: string;
|
|
607
|
-
text: string;
|
|
608
|
-
createdAt: string | null;
|
|
609
|
-
files: {
|
|
610
|
-
name: string;
|
|
611
|
-
url: string | null;
|
|
612
|
-
}[];
|
|
613
|
-
} | null;
|
|
614
|
-
}[] | undefined;
|
|
615
|
-
linksOnly?: boolean | undefined;
|
|
616
|
-
} | {
|
|
617
|
-
channel: string;
|
|
618
|
-
thread: string;
|
|
619
|
-
subthread: string | null;
|
|
620
|
-
kind: "deleted";
|
|
621
|
-
message: string;
|
|
622
|
-
} | {
|
|
623
|
-
channel: string;
|
|
624
|
-
thread: string;
|
|
625
|
-
subthread: string | null;
|
|
626
|
-
kind: "reaction";
|
|
627
|
-
message: string;
|
|
628
|
-
emoji: string;
|
|
629
|
-
added: boolean;
|
|
630
|
-
author: {
|
|
631
|
-
id: string;
|
|
632
|
-
handle: string;
|
|
633
|
-
name: string;
|
|
634
|
-
avatar: string | null;
|
|
635
|
-
isBot: boolean;
|
|
636
|
-
};
|
|
637
|
-
} | {
|
|
638
|
-
channel: string;
|
|
639
|
-
thread: string;
|
|
640
|
-
kind: "lifecycle";
|
|
641
|
-
type: string;
|
|
642
|
-
title: string;
|
|
643
|
-
url: string | null;
|
|
644
|
-
body?: string | null | undefined;
|
|
645
|
-
labels: Record<string, string>;
|
|
646
|
-
unset: string[];
|
|
647
|
-
owns?: string[] | undefined;
|
|
648
|
-
reply: string | null;
|
|
649
|
-
createRoot: boolean;
|
|
650
|
-
retitled?: boolean | undefined;
|
|
651
|
-
author: {
|
|
652
|
-
id: string;
|
|
653
|
-
handle: string;
|
|
654
|
-
name: string;
|
|
655
|
-
avatar: string | null;
|
|
656
|
-
isBot: boolean;
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
raw: unknown;
|
|
660
|
-
}[];
|
|
661
|
-
}, signal: AbortSignal) => Promise<{
|
|
662
|
-
ok: true;
|
|
663
|
-
}>;
|
|
664
|
-
inboxNext: (caller: Caller, input: {
|
|
665
|
-
key: string;
|
|
666
|
-
} & {
|
|
667
|
-
limit?: number | undefined;
|
|
668
|
-
}, signal: AbortSignal) => Promise<{
|
|
669
|
-
items: InboxItem[];
|
|
670
|
-
}>;
|
|
671
|
-
inboxAck: (caller: Caller, input: {
|
|
672
|
-
key: string;
|
|
673
|
-
} & {
|
|
674
|
-
id: string;
|
|
675
|
-
} & {
|
|
676
|
-
lease: string;
|
|
677
|
-
error?: string | undefined;
|
|
678
|
-
}, signal: AbortSignal) => Promise<{
|
|
679
|
-
ok: true;
|
|
680
|
-
}>;
|
|
681
|
-
inbox: (caller: Caller, input: {
|
|
682
|
-
key: string;
|
|
683
|
-
} & {
|
|
684
|
-
channel?: string | undefined;
|
|
685
|
-
limit?: number | undefined;
|
|
686
|
-
}, signal: AbortSignal) => Promise<{
|
|
687
|
-
events: InboxEntry[];
|
|
688
|
-
}>;
|
|
689
|
-
routes: BackendRoute[];
|
|
690
|
-
keeps: boolean;
|
|
691
|
-
trust: {
|
|
692
|
-
grants: () => Promise<readonly StoredGrant[]>;
|
|
693
|
-
token: (hash: string) => Promise<StoredToken | null>;
|
|
694
|
-
live: (id: string) => Promise<boolean>;
|
|
695
|
-
};
|
|
696
|
-
bind(given: BoardBinding): void;
|
|
697
|
-
/** The scheduler's callback: `export { scheduler as POST }` from a route of its own. A board without a scheduler answers 404. */
|
|
698
|
-
scheduler: (request: Request) => Promise<Response>;
|
|
699
|
-
servers: (A2Server<{
|
|
700
|
-
'message.posted': z.ZodObject<{
|
|
701
|
-
channel: z.ZodString;
|
|
702
|
-
text: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
703
|
-
re: z.ZodNullable<z.ZodNumber>;
|
|
704
|
-
replyTo: z.ZodNullable<z.ZodNumber>;
|
|
705
|
-
thread: z.ZodString;
|
|
706
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
707
|
-
noSync: z.ZodBoolean;
|
|
708
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
709
|
-
by: z.ZodObject<{
|
|
710
|
-
actor: z.ZodString;
|
|
711
|
-
principal: z.ZodString;
|
|
712
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
713
|
-
session: z.ZodNullable<z.ZodString>;
|
|
714
|
-
}, z.core.$strip>;
|
|
715
|
-
origin: z.ZodNullable<z.ZodObject<{
|
|
716
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
717
|
-
thread: z.ZodString;
|
|
718
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
719
|
-
message: z.ZodString;
|
|
720
|
-
context: z.ZodNullable<z.ZodString>;
|
|
721
|
-
}, z.core.$strip>>;
|
|
722
|
-
from: z.ZodNullable<z.ZodString>;
|
|
723
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
724
|
-
id: z.ZodString;
|
|
725
|
-
name: z.ZodString;
|
|
726
|
-
type: z.ZodString;
|
|
727
|
-
size: z.ZodNumber;
|
|
728
|
-
}, z.core.$strip>>>;
|
|
729
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
730
|
-
url: z.ZodString;
|
|
731
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
732
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
733
|
-
author: z.ZodString;
|
|
734
|
-
text: z.ZodString;
|
|
735
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
736
|
-
files: z.ZodArray<z.ZodObject<{
|
|
737
|
-
name: z.ZodString;
|
|
738
|
-
url: z.ZodNullable<z.ZodString>;
|
|
739
|
-
}, z.core.$strip>>;
|
|
740
|
-
}, z.core.$strip>>;
|
|
741
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
742
|
-
}, z.core.$strip>>>;
|
|
743
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
744
|
-
id: z.ZodNumber;
|
|
745
|
-
n: z.ZodNumber;
|
|
746
|
-
}, z.core.$strip>>;
|
|
747
|
-
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
748
|
-
importedBy: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
759
|
-
'message.linked': z.ZodObject<{
|
|
760
|
-
id: z.ZodNumber;
|
|
761
|
-
thread: z.ZodString;
|
|
762
|
-
links: z.ZodArray<z.ZodObject<{
|
|
763
|
-
url: z.ZodString;
|
|
764
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
765
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
766
|
-
author: z.ZodString;
|
|
767
|
-
text: z.ZodString;
|
|
768
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
769
|
-
files: z.ZodArray<z.ZodObject<{
|
|
770
|
-
name: z.ZodString;
|
|
771
|
-
url: z.ZodNullable<z.ZodString>;
|
|
772
|
-
}, z.core.$strip>>;
|
|
773
|
-
}, z.core.$strip>>;
|
|
774
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
775
|
-
}, z.core.$strip>>;
|
|
776
|
-
by: z.ZodObject<{
|
|
777
|
-
actor: z.ZodString;
|
|
778
|
-
principal: z.ZodString;
|
|
779
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
780
|
-
session: z.ZodNullable<z.ZodString>;
|
|
781
|
-
}, z.core.$strip>;
|
|
782
|
-
from: z.ZodNullable<z.ZodString>;
|
|
783
|
-
}, z.core.$strip>;
|
|
784
|
-
'message.edited': z.ZodObject<{
|
|
785
|
-
id: z.ZodNumber;
|
|
786
|
-
thread: z.ZodString;
|
|
787
|
-
text: z.ZodString;
|
|
788
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
789
|
-
by: z.ZodObject<{
|
|
790
|
-
actor: z.ZodString;
|
|
791
|
-
principal: z.ZodString;
|
|
792
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
793
|
-
session: z.ZodNullable<z.ZodString>;
|
|
794
|
-
}, z.core.$strip>;
|
|
795
|
-
from: z.ZodNullable<z.ZodString>;
|
|
796
|
-
}, z.core.$strip>;
|
|
797
|
-
'message.deleted': z.ZodObject<{
|
|
798
|
-
id: z.ZodNumber;
|
|
799
|
-
thread: z.ZodString;
|
|
800
|
-
by: z.ZodObject<{
|
|
801
|
-
actor: z.ZodString;
|
|
802
|
-
principal: z.ZodString;
|
|
803
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
804
|
-
session: z.ZodNullable<z.ZodString>;
|
|
805
|
-
}, z.core.$strip>;
|
|
806
|
-
from: z.ZodNullable<z.ZodString>;
|
|
807
|
-
}, z.core.$strip>;
|
|
808
|
-
'reaction.added': z.ZodObject<{
|
|
809
|
-
id: z.ZodNumber;
|
|
810
|
-
thread: z.ZodString;
|
|
811
|
-
emoji: z.ZodString;
|
|
812
|
-
by: z.ZodObject<{
|
|
813
|
-
actor: z.ZodString;
|
|
814
|
-
principal: z.ZodString;
|
|
815
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
816
|
-
session: z.ZodNullable<z.ZodString>;
|
|
817
|
-
}, z.core.$strip>;
|
|
818
|
-
from: z.ZodNullable<z.ZodString>;
|
|
819
|
-
}, z.core.$strip>;
|
|
820
|
-
'reaction.removed': z.ZodObject<{
|
|
821
|
-
id: z.ZodNumber;
|
|
822
|
-
thread: z.ZodString;
|
|
823
|
-
emoji: z.ZodString;
|
|
824
|
-
by: z.ZodObject<{
|
|
825
|
-
actor: z.ZodString;
|
|
826
|
-
principal: z.ZodString;
|
|
827
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
828
|
-
session: z.ZodNullable<z.ZodString>;
|
|
829
|
-
}, z.core.$strip>;
|
|
830
|
-
from: z.ZodNullable<z.ZodString>;
|
|
831
|
-
}, z.core.$strip>;
|
|
832
|
-
'labels.changed': z.ZodObject<{
|
|
833
|
-
id: z.ZodNumber;
|
|
834
|
-
thread: z.ZodString;
|
|
835
|
-
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
836
|
-
unset: z.ZodArray<z.ZodString>;
|
|
837
|
-
by: z.ZodObject<{
|
|
838
|
-
actor: z.ZodString;
|
|
839
|
-
principal: z.ZodString;
|
|
840
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
841
|
-
session: z.ZodNullable<z.ZodString>;
|
|
842
|
-
}, z.core.$strip>;
|
|
843
|
-
}, z.core.$strip>;
|
|
844
|
-
'thread.synced': z.ZodObject<{
|
|
845
|
-
thread: z.ZodString;
|
|
846
|
-
target: z.ZodString;
|
|
847
|
-
cause: z.ZodEnum<{
|
|
848
|
-
config: "config";
|
|
849
|
-
request: "request";
|
|
850
|
-
}>;
|
|
851
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
852
|
-
channel: "channel";
|
|
853
|
-
thread: "thread";
|
|
854
|
-
}>>;
|
|
855
|
-
by: z.ZodObject<{
|
|
856
|
-
actor: z.ZodString;
|
|
857
|
-
principal: z.ZodString;
|
|
858
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
859
|
-
session: z.ZodNullable<z.ZodString>;
|
|
860
|
-
}, z.core.$strip>;
|
|
861
|
-
}, z.core.$strip>;
|
|
862
|
-
'message.synced': z.ZodObject<{
|
|
863
|
-
id: z.ZodNumber;
|
|
864
|
-
thread: z.ZodString;
|
|
865
|
-
target: z.ZodString;
|
|
866
|
-
external: z.ZodObject<{
|
|
867
|
-
thread: z.ZodString;
|
|
868
|
-
message: z.ZodString;
|
|
869
|
-
}, z.core.$strip>;
|
|
870
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
871
|
-
}, z.core.$strip>;
|
|
872
|
-
'message.files_synced': z.ZodObject<{
|
|
873
|
-
id: z.ZodNumber;
|
|
874
|
-
thread: z.ZodString;
|
|
875
|
-
target: z.ZodString;
|
|
876
|
-
files: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
877
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
878
|
-
}, z.core.$strip>;
|
|
879
|
-
'message.sync_failed': z.ZodObject<{
|
|
880
|
-
id: z.ZodNumber;
|
|
881
|
-
thread: z.ZodString;
|
|
882
|
-
target: z.ZodString;
|
|
883
|
-
error: z.ZodString;
|
|
884
|
-
}, z.core.$strip>;
|
|
885
|
-
'actor.seen': z.ZodObject<{
|
|
886
|
-
actor: z.ZodString;
|
|
887
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
888
|
-
agent: "agent";
|
|
889
|
-
deployment: "deployment";
|
|
890
|
-
external: "external";
|
|
891
|
-
person: "person";
|
|
892
|
-
workflow: "workflow";
|
|
893
|
-
}>, z.ZodLiteral<"profile">]>;
|
|
894
|
-
handle: z.ZodString;
|
|
895
|
-
name: z.ZodString;
|
|
896
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
897
|
-
host: z.ZodOptional<z.ZodLiteral<true>>;
|
|
898
|
-
}, z.core.$strip>;
|
|
899
|
-
}, Record<never, never>, undefined> | A2Server<{
|
|
900
|
-
'external.received': z.ZodObject<{
|
|
901
|
-
sync: z.ZodString;
|
|
902
|
-
event: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
903
|
-
channel: z.ZodString;
|
|
904
|
-
thread: z.ZodString;
|
|
905
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
906
|
-
kind: z.ZodLiteral<"message">;
|
|
907
|
-
message: z.ZodString;
|
|
908
|
-
isRoot: z.ZodBoolean;
|
|
909
|
-
text: z.ZodString;
|
|
910
|
-
context: z.ZodNullable<z.ZodString>;
|
|
911
|
-
author: z.ZodObject<{
|
|
912
|
-
id: z.ZodString;
|
|
913
|
-
handle: z.ZodString;
|
|
914
|
-
name: z.ZodString;
|
|
915
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
916
|
-
isBot: z.ZodBoolean;
|
|
917
|
-
}, z.core.$strip>;
|
|
918
|
-
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
919
|
-
type: z.ZodEnum<{
|
|
920
|
-
audio: "audio";
|
|
921
|
-
file: "file";
|
|
922
|
-
image: "image";
|
|
923
|
-
video: "video";
|
|
924
|
-
}>;
|
|
925
|
-
name: z.ZodOptional<z.ZodString>;
|
|
926
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
927
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
928
|
-
url: z.ZodOptional<z.ZodString>;
|
|
929
|
-
fetchMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
930
|
-
}, z.core.$strip>>>;
|
|
931
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
932
|
-
url: z.ZodString;
|
|
933
|
-
thread: z.ZodString;
|
|
934
|
-
message: z.ZodString;
|
|
935
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
936
|
-
author: z.ZodString;
|
|
937
|
-
text: z.ZodString;
|
|
938
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
939
|
-
files: z.ZodArray<z.ZodObject<{
|
|
940
|
-
name: z.ZodString;
|
|
941
|
-
url: z.ZodNullable<z.ZodString>;
|
|
942
|
-
}, z.core.$strip>>;
|
|
943
|
-
}, z.core.$strip>>;
|
|
944
|
-
}, z.core.$strip>>>;
|
|
945
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
946
|
-
channel: z.ZodString;
|
|
947
|
-
thread: z.ZodString;
|
|
948
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
949
|
-
kind: z.ZodLiteral<"edited">;
|
|
950
|
-
message: z.ZodString;
|
|
951
|
-
text: z.ZodString;
|
|
952
|
-
author: z.ZodObject<{
|
|
953
|
-
id: z.ZodString;
|
|
954
|
-
handle: z.ZodString;
|
|
955
|
-
name: z.ZodString;
|
|
956
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
957
|
-
isBot: z.ZodBoolean;
|
|
958
|
-
}, z.core.$strip>;
|
|
959
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
960
|
-
url: z.ZodString;
|
|
961
|
-
thread: z.ZodString;
|
|
962
|
-
message: z.ZodString;
|
|
963
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
964
|
-
author: z.ZodString;
|
|
965
|
-
text: z.ZodString;
|
|
966
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
967
|
-
files: z.ZodArray<z.ZodObject<{
|
|
968
|
-
name: z.ZodString;
|
|
969
|
-
url: z.ZodNullable<z.ZodString>;
|
|
970
|
-
}, z.core.$strip>>;
|
|
971
|
-
}, z.core.$strip>>;
|
|
972
|
-
}, z.core.$strip>>>;
|
|
973
|
-
linksOnly: z.ZodOptional<z.ZodBoolean>;
|
|
974
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
975
|
-
channel: z.ZodString;
|
|
976
|
-
thread: z.ZodString;
|
|
977
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
978
|
-
kind: z.ZodLiteral<"deleted">;
|
|
979
|
-
message: z.ZodString;
|
|
980
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
981
|
-
channel: z.ZodString;
|
|
982
|
-
thread: z.ZodString;
|
|
983
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
984
|
-
kind: z.ZodLiteral<"reaction">;
|
|
985
|
-
message: z.ZodString;
|
|
986
|
-
emoji: z.ZodString;
|
|
987
|
-
added: z.ZodBoolean;
|
|
988
|
-
author: z.ZodObject<{
|
|
989
|
-
id: z.ZodString;
|
|
990
|
-
handle: z.ZodString;
|
|
991
|
-
name: z.ZodString;
|
|
992
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
993
|
-
isBot: z.ZodBoolean;
|
|
994
|
-
}, z.core.$strip>;
|
|
995
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
996
|
-
channel: z.ZodString;
|
|
997
|
-
thread: z.ZodString;
|
|
998
|
-
kind: z.ZodLiteral<"lifecycle">;
|
|
999
|
-
type: z.ZodString;
|
|
1000
|
-
title: z.ZodString;
|
|
1001
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1002
|
-
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1003
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1004
|
-
unset: z.ZodArray<z.ZodString>;
|
|
1005
|
-
owns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1006
|
-
reply: z.ZodNullable<z.ZodString>;
|
|
1007
|
-
createRoot: z.ZodBoolean;
|
|
1008
|
-
retitled: z.ZodOptional<z.ZodBoolean>;
|
|
1009
|
-
author: z.ZodObject<{
|
|
1010
|
-
id: z.ZodString;
|
|
1011
|
-
handle: z.ZodString;
|
|
1012
|
-
name: z.ZodString;
|
|
1013
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
1014
|
-
isBot: z.ZodBoolean;
|
|
1015
|
-
}, z.core.$strip>;
|
|
1016
|
-
}, z.core.$strip>], "kind">;
|
|
1017
|
-
raw: z.ZodUnknown;
|
|
1018
|
-
}, z.core.$strip>;
|
|
1019
|
-
'inbox.opened': z.ZodObject<{
|
|
1020
|
-
channel: z.ZodString;
|
|
1021
|
-
}, z.core.$strip>;
|
|
1022
|
-
}, Record<never, never>, undefined> | A2Server<{
|
|
1023
|
-
'watch.matched': z.ZodObject<{
|
|
1024
|
-
thread: z.ZodString;
|
|
1025
|
-
event: z.ZodUnknown;
|
|
1026
|
-
watcher: z.ZodOptional<z.ZodString>;
|
|
1027
|
-
sync: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1028
|
-
inbox: z.ZodOptional<z.ZodString>;
|
|
1029
|
-
}, z.core.$strip>;
|
|
1030
|
-
'watch.failed': z.ZodObject<{
|
|
1031
|
-
matched: z.ZodString;
|
|
1032
|
-
thread: z.ZodString;
|
|
1033
|
-
error: z.ZodString;
|
|
1034
|
-
}, z.core.$strip>;
|
|
1035
|
-
'watch.leased': z.ZodObject<{
|
|
1036
|
-
matched: z.ZodString;
|
|
1037
|
-
lease: z.ZodString;
|
|
1038
|
-
until: z.ZodNumber;
|
|
1039
|
-
}, z.core.$strip>;
|
|
1040
|
-
'watch.acked': z.ZodObject<{
|
|
1041
|
-
matched: z.ZodString;
|
|
1042
|
-
lease: z.ZodString;
|
|
1043
|
-
error: z.ZodOptional<z.ZodString>;
|
|
1044
|
-
retryAt: z.ZodOptional<z.ZodNumber>;
|
|
1045
|
-
}, z.core.$strip>;
|
|
1046
|
-
'watch.expired': z.ZodObject<{
|
|
1047
|
-
matched: z.ZodString;
|
|
1048
|
-
lease: z.ZodString;
|
|
1049
|
-
}, z.core.$strip>;
|
|
1050
|
-
'watch.retry': z.ZodObject<{
|
|
1051
|
-
matched: z.ZodString;
|
|
1052
|
-
}, z.core.$strip>;
|
|
1053
|
-
'watch.skipped': z.ZodObject<{
|
|
1054
|
-
matched: z.ZodString;
|
|
1055
|
-
reason: z.ZodString;
|
|
1056
|
-
}, z.core.$strip>;
|
|
1057
|
-
'watch.armed': z.ZodObject<{
|
|
1058
|
-
at: z.ZodNumber;
|
|
1059
|
-
}, z.core.$strip>;
|
|
1060
|
-
'watch.due': z.ZodObject<{
|
|
1061
|
-
matched: z.ZodOptional<z.ZodString>;
|
|
1062
|
-
retry: z.ZodOptional<z.ZodBoolean>;
|
|
1063
|
-
sweep: z.ZodOptional<z.ZodNumber>;
|
|
1064
|
-
}, z.core.$strip>;
|
|
1065
|
-
'watch.unreachable': z.ZodObject<{
|
|
1066
|
-
failures: z.ZodNumber;
|
|
1067
|
-
until: z.ZodNumber;
|
|
1068
|
-
why: z.ZodString;
|
|
1069
|
-
}, z.core.$strip>;
|
|
1070
|
-
'watch.reachable': z.ZodObject<{
|
|
1071
|
-
by: z.ZodEnum<{
|
|
1072
|
-
pull: "pull";
|
|
1073
|
-
registration: "registration";
|
|
1074
|
-
wake: "wake";
|
|
1075
|
-
}>;
|
|
1076
|
-
}, z.core.$strip>;
|
|
1077
|
-
}, Record<never, never>, undefined> | A2Server<{
|
|
1078
|
-
'watchers.registered': z.ZodObject<{
|
|
1079
|
-
owner: z.ZodString;
|
|
1080
|
-
principal: z.ZodObject<{
|
|
1081
|
-
id: z.ZodString;
|
|
1082
|
-
kind: z.ZodEnum<{
|
|
1083
|
-
deployment: "deployment";
|
|
1084
|
-
external: "external";
|
|
1085
|
-
person: "person";
|
|
1086
|
-
workflow: "workflow";
|
|
1087
|
-
}>;
|
|
1088
|
-
handle: z.ZodString;
|
|
1089
|
-
facts: z.ZodOptional<z.ZodObject<{
|
|
1090
|
-
issuer: z.ZodEnum<{
|
|
1091
|
-
github: "github";
|
|
1092
|
-
host: "host";
|
|
1093
|
-
oidc: "oidc";
|
|
1094
|
-
vercel: "vercel";
|
|
1095
|
-
}>;
|
|
1096
|
-
iss: z.ZodString;
|
|
1097
|
-
claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1098
|
-
team: z.ZodOptional<z.ZodString>;
|
|
1099
|
-
}, z.core.$strip>>;
|
|
1100
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1101
|
-
token: z.ZodOptional<z.ZodString>;
|
|
1102
|
-
}, z.core.$strip>;
|
|
1103
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1104
|
-
watch: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1105
|
-
tail: z.ZodString;
|
|
1106
|
-
when: z.ZodEnum<{
|
|
1107
|
-
enters: "enters";
|
|
1108
|
-
matches: "matches";
|
|
1109
|
-
}>;
|
|
1110
|
-
}, z.core.$strip>>;
|
|
1111
|
-
sync: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1112
|
-
key: z.ZodString;
|
|
1113
|
-
platform: z.ZodString;
|
|
1114
|
-
}, z.core.$strip>>>;
|
|
1115
|
-
hash: z.ZodString;
|
|
1116
|
-
}, z.core.$strip>;
|
|
1117
|
-
}, Record<never, never>, undefined> | A2Server<{
|
|
1118
|
-
'schedule.created': z.ZodObject<{
|
|
1119
|
-
channel: z.ZodString;
|
|
1120
|
-
re: z.ZodNullable<z.ZodNumber>;
|
|
1121
|
-
text: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
1122
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1123
|
-
noSync: z.ZodBoolean;
|
|
1124
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1125
|
-
id: z.ZodString;
|
|
1126
|
-
name: z.ZodString;
|
|
1127
|
-
type: z.ZodString;
|
|
1128
|
-
size: z.ZodNumber;
|
|
1129
|
-
}, z.core.$strip>>>;
|
|
1130
|
-
first: z.ZodNumber;
|
|
1131
|
-
every: z.ZodNullable<z.ZodNumber>;
|
|
1132
|
-
until: z.ZodNullable<z.ZodNumber>;
|
|
1133
|
-
times: z.ZodNullable<z.ZodNumber>;
|
|
1134
|
-
as: z.ZodObject<{
|
|
1135
|
-
author: z.ZodObject<{
|
|
1136
|
-
actor: z.ZodString;
|
|
1137
|
-
principal: z.ZodString;
|
|
1138
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1139
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1140
|
-
}, z.core.$strip>;
|
|
1141
|
-
principal: z.ZodObject<{
|
|
1142
|
-
id: z.ZodString;
|
|
1143
|
-
kind: z.ZodEnum<{
|
|
1144
|
-
deployment: "deployment";
|
|
1145
|
-
external: "external";
|
|
1146
|
-
person: "person";
|
|
1147
|
-
workflow: "workflow";
|
|
1148
|
-
}>;
|
|
1149
|
-
handle: z.ZodString;
|
|
1150
|
-
facts: z.ZodOptional<z.ZodObject<{
|
|
1151
|
-
issuer: z.ZodEnum<{
|
|
1152
|
-
github: "github";
|
|
1153
|
-
host: "host";
|
|
1154
|
-
oidc: "oidc";
|
|
1155
|
-
vercel: "vercel";
|
|
1156
|
-
}>;
|
|
1157
|
-
iss: z.ZodString;
|
|
1158
|
-
claims: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1159
|
-
team: z.ZodOptional<z.ZodString>;
|
|
1160
|
-
}, z.core.$strip>>;
|
|
1161
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
1162
|
-
token: z.ZodOptional<z.ZodString>;
|
|
1163
|
-
}, z.core.$strip>;
|
|
1164
|
-
actor: z.ZodObject<{
|
|
1165
|
-
id: z.ZodString;
|
|
1166
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1167
|
-
agent: "agent";
|
|
1168
|
-
deployment: "deployment";
|
|
1169
|
-
external: "external";
|
|
1170
|
-
person: "person";
|
|
1171
|
-
workflow: "workflow";
|
|
1172
|
-
}>, z.ZodLiteral<"profile">]>;
|
|
1173
|
-
handle: z.ZodString;
|
|
1174
|
-
name: z.ZodString;
|
|
1175
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
1176
|
-
}, z.core.$strip>;
|
|
1177
|
-
}, z.core.$strip>;
|
|
1178
|
-
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1179
|
-
}, z.core.$strip>;
|
|
1180
|
-
'schedule.canceled': z.ZodObject<{
|
|
1181
|
-
id: z.ZodNumber;
|
|
1182
|
-
by: z.ZodObject<{
|
|
1183
|
-
actor: z.ZodString;
|
|
1184
|
-
principal: z.ZodString;
|
|
1185
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1186
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1187
|
-
}, z.core.$strip>;
|
|
1188
|
-
reason: z.ZodEnum<{
|
|
1189
|
-
canceled: "canceled";
|
|
1190
|
-
dropped: "dropped";
|
|
1191
|
-
revoked: "revoked";
|
|
1192
|
-
thread_deleted: "thread_deleted";
|
|
1193
|
-
}>;
|
|
1194
|
-
}, z.core.$strip>;
|
|
1195
|
-
'schedule.due': z.ZodObject<{
|
|
1196
|
-
id: z.ZodNumber;
|
|
1197
|
-
n: z.ZodNumber;
|
|
1198
|
-
at: z.ZodNumber;
|
|
1199
|
-
}, z.core.$strip>;
|
|
1200
|
-
'schedule.fired': z.ZodObject<{
|
|
1201
|
-
id: z.ZodNumber;
|
|
1202
|
-
n: z.ZodNumber;
|
|
1203
|
-
message: z.ZodNumber;
|
|
1204
|
-
next: z.ZodNullable<z.ZodNumber>;
|
|
1205
|
-
}, z.core.$strip>;
|
|
1206
|
-
'schedule.takeover': z.ZodObject<{
|
|
1207
|
-
deployment: z.ZodString;
|
|
1208
|
-
}, z.core.$strip>;
|
|
1209
|
-
}, Record<never, never>, undefined>)[];
|
|
1210
|
-
session: {
|
|
1211
|
-
readonly id: string;
|
|
1212
|
-
append: SessionAppend<{
|
|
1213
|
-
'message.posted': z.ZodObject<{
|
|
1214
|
-
channel: z.ZodString;
|
|
1215
|
-
text: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
1216
|
-
re: z.ZodNullable<z.ZodNumber>;
|
|
1217
|
-
replyTo: z.ZodNullable<z.ZodNumber>;
|
|
1218
|
-
thread: z.ZodString;
|
|
1219
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1220
|
-
noSync: z.ZodBoolean;
|
|
1221
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
1222
|
-
by: z.ZodObject<{
|
|
1223
|
-
actor: z.ZodString;
|
|
1224
|
-
principal: z.ZodString;
|
|
1225
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1226
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1227
|
-
}, z.core.$strip>;
|
|
1228
|
-
origin: z.ZodNullable<z.ZodObject<{
|
|
1229
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1230
|
-
thread: z.ZodString;
|
|
1231
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
1232
|
-
message: z.ZodString;
|
|
1233
|
-
context: z.ZodNullable<z.ZodString>;
|
|
1234
|
-
}, z.core.$strip>>;
|
|
1235
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1236
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1237
|
-
id: z.ZodString;
|
|
1238
|
-
name: z.ZodString;
|
|
1239
|
-
type: z.ZodString;
|
|
1240
|
-
size: z.ZodNumber;
|
|
1241
|
-
}, z.core.$strip>>>;
|
|
1242
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1243
|
-
url: z.ZodString;
|
|
1244
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
1245
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
1246
|
-
author: z.ZodString;
|
|
1247
|
-
text: z.ZodString;
|
|
1248
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
1249
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1250
|
-
name: z.ZodString;
|
|
1251
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1252
|
-
}, z.core.$strip>>;
|
|
1253
|
-
}, z.core.$strip>>;
|
|
1254
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
1255
|
-
}, z.core.$strip>>>;
|
|
1256
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
1257
|
-
id: z.ZodNumber;
|
|
1258
|
-
n: z.ZodNumber;
|
|
1259
|
-
}, z.core.$strip>>;
|
|
1260
|
-
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1261
|
-
importedBy: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
1272
|
-
'message.linked': z.ZodObject<{
|
|
1273
|
-
id: z.ZodNumber;
|
|
1274
|
-
thread: z.ZodString;
|
|
1275
|
-
links: z.ZodArray<z.ZodObject<{
|
|
1276
|
-
url: z.ZodString;
|
|
1277
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
1278
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
1279
|
-
author: z.ZodString;
|
|
1280
|
-
text: z.ZodString;
|
|
1281
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
1282
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1283
|
-
name: z.ZodString;
|
|
1284
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1285
|
-
}, z.core.$strip>>;
|
|
1286
|
-
}, z.core.$strip>>;
|
|
1287
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
1288
|
-
}, z.core.$strip>>;
|
|
1289
|
-
by: z.ZodObject<{
|
|
1290
|
-
actor: z.ZodString;
|
|
1291
|
-
principal: z.ZodString;
|
|
1292
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1293
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1294
|
-
}, z.core.$strip>;
|
|
1295
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1296
|
-
}, z.core.$strip>;
|
|
1297
|
-
'message.edited': z.ZodObject<{
|
|
1298
|
-
id: z.ZodNumber;
|
|
1299
|
-
thread: z.ZodString;
|
|
1300
|
-
text: z.ZodString;
|
|
1301
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
1302
|
-
by: z.ZodObject<{
|
|
1303
|
-
actor: z.ZodString;
|
|
1304
|
-
principal: z.ZodString;
|
|
1305
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1306
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1307
|
-
}, z.core.$strip>;
|
|
1308
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1309
|
-
}, z.core.$strip>;
|
|
1310
|
-
'message.deleted': z.ZodObject<{
|
|
1311
|
-
id: z.ZodNumber;
|
|
1312
|
-
thread: z.ZodString;
|
|
1313
|
-
by: z.ZodObject<{
|
|
1314
|
-
actor: z.ZodString;
|
|
1315
|
-
principal: z.ZodString;
|
|
1316
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1317
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1318
|
-
}, z.core.$strip>;
|
|
1319
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1320
|
-
}, z.core.$strip>;
|
|
1321
|
-
'reaction.added': z.ZodObject<{
|
|
1322
|
-
id: z.ZodNumber;
|
|
1323
|
-
thread: z.ZodString;
|
|
1324
|
-
emoji: z.ZodString;
|
|
1325
|
-
by: z.ZodObject<{
|
|
1326
|
-
actor: z.ZodString;
|
|
1327
|
-
principal: z.ZodString;
|
|
1328
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1329
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1330
|
-
}, z.core.$strip>;
|
|
1331
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1332
|
-
}, z.core.$strip>;
|
|
1333
|
-
'reaction.removed': z.ZodObject<{
|
|
1334
|
-
id: z.ZodNumber;
|
|
1335
|
-
thread: z.ZodString;
|
|
1336
|
-
emoji: z.ZodString;
|
|
1337
|
-
by: z.ZodObject<{
|
|
1338
|
-
actor: z.ZodString;
|
|
1339
|
-
principal: z.ZodString;
|
|
1340
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1341
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1342
|
-
}, z.core.$strip>;
|
|
1343
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1344
|
-
}, z.core.$strip>;
|
|
1345
|
-
'labels.changed': z.ZodObject<{
|
|
1346
|
-
id: z.ZodNumber;
|
|
1347
|
-
thread: z.ZodString;
|
|
1348
|
-
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1349
|
-
unset: z.ZodArray<z.ZodString>;
|
|
1350
|
-
by: z.ZodObject<{
|
|
1351
|
-
actor: z.ZodString;
|
|
1352
|
-
principal: z.ZodString;
|
|
1353
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1354
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1355
|
-
}, z.core.$strip>;
|
|
1356
|
-
}, z.core.$strip>;
|
|
1357
|
-
'thread.synced': z.ZodObject<{
|
|
1358
|
-
thread: z.ZodString;
|
|
1359
|
-
target: z.ZodString;
|
|
1360
|
-
cause: z.ZodEnum<{
|
|
1361
|
-
config: "config";
|
|
1362
|
-
request: "request";
|
|
1363
|
-
}>;
|
|
1364
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
1365
|
-
channel: "channel";
|
|
1366
|
-
thread: "thread";
|
|
1367
|
-
}>>;
|
|
1368
|
-
by: z.ZodObject<{
|
|
1369
|
-
actor: z.ZodString;
|
|
1370
|
-
principal: z.ZodString;
|
|
1371
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1372
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1373
|
-
}, z.core.$strip>;
|
|
1374
|
-
}, z.core.$strip>;
|
|
1375
|
-
'message.synced': z.ZodObject<{
|
|
1376
|
-
id: z.ZodNumber;
|
|
1377
|
-
thread: z.ZodString;
|
|
1378
|
-
target: z.ZodString;
|
|
1379
|
-
external: z.ZodObject<{
|
|
1380
|
-
thread: z.ZodString;
|
|
1381
|
-
message: z.ZodString;
|
|
1382
|
-
}, z.core.$strip>;
|
|
1383
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
1384
|
-
}, z.core.$strip>;
|
|
1385
|
-
'message.files_synced': z.ZodObject<{
|
|
1386
|
-
id: z.ZodNumber;
|
|
1387
|
-
thread: z.ZodString;
|
|
1388
|
-
target: z.ZodString;
|
|
1389
|
-
files: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1390
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
1391
|
-
}, z.core.$strip>;
|
|
1392
|
-
'message.sync_failed': z.ZodObject<{
|
|
1393
|
-
id: z.ZodNumber;
|
|
1394
|
-
thread: z.ZodString;
|
|
1395
|
-
target: z.ZodString;
|
|
1396
|
-
error: z.ZodString;
|
|
1397
|
-
}, z.core.$strip>;
|
|
1398
|
-
'actor.seen': z.ZodObject<{
|
|
1399
|
-
actor: z.ZodString;
|
|
1400
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1401
|
-
agent: "agent";
|
|
1402
|
-
deployment: "deployment";
|
|
1403
|
-
external: "external";
|
|
1404
|
-
person: "person";
|
|
1405
|
-
workflow: "workflow";
|
|
1406
|
-
}>, z.ZodLiteral<"profile">]>;
|
|
1407
|
-
handle: z.ZodString;
|
|
1408
|
-
name: z.ZodString;
|
|
1409
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
1410
|
-
host: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1411
|
-
}, z.core.$strip>;
|
|
1412
|
-
}>;
|
|
1413
|
-
schedule: SessionSchedule<{
|
|
1414
|
-
'message.posted': z.ZodObject<{
|
|
1415
|
-
channel: z.ZodString;
|
|
1416
|
-
text: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
1417
|
-
re: z.ZodNullable<z.ZodNumber>;
|
|
1418
|
-
replyTo: z.ZodNullable<z.ZodNumber>;
|
|
1419
|
-
thread: z.ZodString;
|
|
1420
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1421
|
-
noSync: z.ZodBoolean;
|
|
1422
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
1423
|
-
by: z.ZodObject<{
|
|
1424
|
-
actor: z.ZodString;
|
|
1425
|
-
principal: z.ZodString;
|
|
1426
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1427
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1428
|
-
}, z.core.$strip>;
|
|
1429
|
-
origin: z.ZodNullable<z.ZodObject<{
|
|
1430
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1431
|
-
thread: z.ZodString;
|
|
1432
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
1433
|
-
message: z.ZodString;
|
|
1434
|
-
context: z.ZodNullable<z.ZodString>;
|
|
1435
|
-
}, z.core.$strip>>;
|
|
1436
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1437
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1438
|
-
id: z.ZodString;
|
|
1439
|
-
name: z.ZodString;
|
|
1440
|
-
type: z.ZodString;
|
|
1441
|
-
size: z.ZodNumber;
|
|
1442
|
-
}, z.core.$strip>>>;
|
|
1443
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1444
|
-
url: z.ZodString;
|
|
1445
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
1446
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
1447
|
-
author: z.ZodString;
|
|
1448
|
-
text: z.ZodString;
|
|
1449
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
1450
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1451
|
-
name: z.ZodString;
|
|
1452
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1453
|
-
}, z.core.$strip>>;
|
|
1454
|
-
}, z.core.$strip>>;
|
|
1455
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
1456
|
-
}, z.core.$strip>>>;
|
|
1457
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
1458
|
-
id: z.ZodNumber;
|
|
1459
|
-
n: z.ZodNumber;
|
|
1460
|
-
}, z.core.$strip>>;
|
|
1461
|
-
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1462
|
-
importedBy: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
1473
|
-
'message.linked': z.ZodObject<{
|
|
1474
|
-
id: z.ZodNumber;
|
|
1475
|
-
thread: z.ZodString;
|
|
1476
|
-
links: z.ZodArray<z.ZodObject<{
|
|
1477
|
-
url: z.ZodString;
|
|
1478
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
1479
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
1480
|
-
author: z.ZodString;
|
|
1481
|
-
text: z.ZodString;
|
|
1482
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
1483
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1484
|
-
name: z.ZodString;
|
|
1485
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1486
|
-
}, z.core.$strip>>;
|
|
1487
|
-
}, z.core.$strip>>;
|
|
1488
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
1489
|
-
}, z.core.$strip>>;
|
|
1490
|
-
by: z.ZodObject<{
|
|
1491
|
-
actor: z.ZodString;
|
|
1492
|
-
principal: z.ZodString;
|
|
1493
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1494
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1495
|
-
}, z.core.$strip>;
|
|
1496
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1497
|
-
}, z.core.$strip>;
|
|
1498
|
-
'message.edited': z.ZodObject<{
|
|
1499
|
-
id: z.ZodNumber;
|
|
1500
|
-
thread: z.ZodString;
|
|
1501
|
-
text: z.ZodString;
|
|
1502
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
1503
|
-
by: z.ZodObject<{
|
|
1504
|
-
actor: z.ZodString;
|
|
1505
|
-
principal: z.ZodString;
|
|
1506
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1507
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1508
|
-
}, z.core.$strip>;
|
|
1509
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1510
|
-
}, z.core.$strip>;
|
|
1511
|
-
'message.deleted': z.ZodObject<{
|
|
1512
|
-
id: z.ZodNumber;
|
|
1513
|
-
thread: z.ZodString;
|
|
1514
|
-
by: z.ZodObject<{
|
|
1515
|
-
actor: z.ZodString;
|
|
1516
|
-
principal: z.ZodString;
|
|
1517
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1518
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1519
|
-
}, z.core.$strip>;
|
|
1520
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1521
|
-
}, z.core.$strip>;
|
|
1522
|
-
'reaction.added': z.ZodObject<{
|
|
1523
|
-
id: z.ZodNumber;
|
|
1524
|
-
thread: z.ZodString;
|
|
1525
|
-
emoji: z.ZodString;
|
|
1526
|
-
by: z.ZodObject<{
|
|
1527
|
-
actor: z.ZodString;
|
|
1528
|
-
principal: z.ZodString;
|
|
1529
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1530
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1531
|
-
}, z.core.$strip>;
|
|
1532
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1533
|
-
}, z.core.$strip>;
|
|
1534
|
-
'reaction.removed': z.ZodObject<{
|
|
1535
|
-
id: z.ZodNumber;
|
|
1536
|
-
thread: z.ZodString;
|
|
1537
|
-
emoji: z.ZodString;
|
|
1538
|
-
by: z.ZodObject<{
|
|
1539
|
-
actor: z.ZodString;
|
|
1540
|
-
principal: z.ZodString;
|
|
1541
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1542
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1543
|
-
}, z.core.$strip>;
|
|
1544
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1545
|
-
}, z.core.$strip>;
|
|
1546
|
-
'labels.changed': z.ZodObject<{
|
|
1547
|
-
id: z.ZodNumber;
|
|
1548
|
-
thread: z.ZodString;
|
|
1549
|
-
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1550
|
-
unset: z.ZodArray<z.ZodString>;
|
|
1551
|
-
by: z.ZodObject<{
|
|
1552
|
-
actor: z.ZodString;
|
|
1553
|
-
principal: z.ZodString;
|
|
1554
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1555
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1556
|
-
}, z.core.$strip>;
|
|
1557
|
-
}, z.core.$strip>;
|
|
1558
|
-
'thread.synced': z.ZodObject<{
|
|
1559
|
-
thread: z.ZodString;
|
|
1560
|
-
target: z.ZodString;
|
|
1561
|
-
cause: z.ZodEnum<{
|
|
1562
|
-
config: "config";
|
|
1563
|
-
request: "request";
|
|
1564
|
-
}>;
|
|
1565
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
1566
|
-
channel: "channel";
|
|
1567
|
-
thread: "thread";
|
|
1568
|
-
}>>;
|
|
1569
|
-
by: z.ZodObject<{
|
|
1570
|
-
actor: z.ZodString;
|
|
1571
|
-
principal: z.ZodString;
|
|
1572
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1573
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1574
|
-
}, z.core.$strip>;
|
|
1575
|
-
}, z.core.$strip>;
|
|
1576
|
-
'message.synced': z.ZodObject<{
|
|
1577
|
-
id: z.ZodNumber;
|
|
1578
|
-
thread: z.ZodString;
|
|
1579
|
-
target: z.ZodString;
|
|
1580
|
-
external: z.ZodObject<{
|
|
1581
|
-
thread: z.ZodString;
|
|
1582
|
-
message: z.ZodString;
|
|
1583
|
-
}, z.core.$strip>;
|
|
1584
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
1585
|
-
}, z.core.$strip>;
|
|
1586
|
-
'message.files_synced': z.ZodObject<{
|
|
1587
|
-
id: z.ZodNumber;
|
|
1588
|
-
thread: z.ZodString;
|
|
1589
|
-
target: z.ZodString;
|
|
1590
|
-
files: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1591
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
1592
|
-
}, z.core.$strip>;
|
|
1593
|
-
'message.sync_failed': z.ZodObject<{
|
|
1594
|
-
id: z.ZodNumber;
|
|
1595
|
-
thread: z.ZodString;
|
|
1596
|
-
target: z.ZodString;
|
|
1597
|
-
error: z.ZodString;
|
|
1598
|
-
}, z.core.$strip>;
|
|
1599
|
-
'actor.seen': z.ZodObject<{
|
|
1600
|
-
actor: z.ZodString;
|
|
1601
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1602
|
-
agent: "agent";
|
|
1603
|
-
deployment: "deployment";
|
|
1604
|
-
external: "external";
|
|
1605
|
-
person: "person";
|
|
1606
|
-
workflow: "workflow";
|
|
1607
|
-
}>, z.ZodLiteral<"profile">]>;
|
|
1608
|
-
handle: z.ZodString;
|
|
1609
|
-
name: z.ZodString;
|
|
1610
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
1611
|
-
host: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1612
|
-
}, z.core.$strip>;
|
|
1613
|
-
}>;
|
|
1614
|
-
clear(options?: SessionClearOptions): Promise<SessionClearResult>;
|
|
1615
|
-
history(options?: {
|
|
1616
|
-
gte?: number;
|
|
1617
|
-
lte?: number;
|
|
1618
|
-
}): Promise<ContractEvent<{
|
|
1619
|
-
'message.posted': z.ZodObject<{
|
|
1620
|
-
channel: z.ZodString;
|
|
1621
|
-
text: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
1622
|
-
re: z.ZodNullable<z.ZodNumber>;
|
|
1623
|
-
replyTo: z.ZodNullable<z.ZodNumber>;
|
|
1624
|
-
thread: z.ZodString;
|
|
1625
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1626
|
-
noSync: z.ZodBoolean;
|
|
1627
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
1628
|
-
by: z.ZodObject<{
|
|
1629
|
-
actor: z.ZodString;
|
|
1630
|
-
principal: z.ZodString;
|
|
1631
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1632
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1633
|
-
}, z.core.$strip>;
|
|
1634
|
-
origin: z.ZodNullable<z.ZodObject<{
|
|
1635
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1636
|
-
thread: z.ZodString;
|
|
1637
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
1638
|
-
message: z.ZodString;
|
|
1639
|
-
context: z.ZodNullable<z.ZodString>;
|
|
1640
|
-
}, z.core.$strip>>;
|
|
1641
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1642
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1643
|
-
id: z.ZodString;
|
|
1644
|
-
name: z.ZodString;
|
|
1645
|
-
type: z.ZodString;
|
|
1646
|
-
size: z.ZodNumber;
|
|
1647
|
-
}, z.core.$strip>>>;
|
|
1648
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1649
|
-
url: z.ZodString;
|
|
1650
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
1651
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
1652
|
-
author: z.ZodString;
|
|
1653
|
-
text: z.ZodString;
|
|
1654
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
1655
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1656
|
-
name: z.ZodString;
|
|
1657
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1658
|
-
}, z.core.$strip>>;
|
|
1659
|
-
}, z.core.$strip>>;
|
|
1660
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
1661
|
-
}, z.core.$strip>>>;
|
|
1662
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
1663
|
-
id: z.ZodNumber;
|
|
1664
|
-
n: z.ZodNumber;
|
|
1665
|
-
}, z.core.$strip>>;
|
|
1666
|
-
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1667
|
-
importedBy: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
1678
|
-
'message.linked': z.ZodObject<{
|
|
1679
|
-
id: z.ZodNumber;
|
|
1680
|
-
thread: z.ZodString;
|
|
1681
|
-
links: z.ZodArray<z.ZodObject<{
|
|
1682
|
-
url: z.ZodString;
|
|
1683
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
1684
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
1685
|
-
author: z.ZodString;
|
|
1686
|
-
text: z.ZodString;
|
|
1687
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
1688
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1689
|
-
name: z.ZodString;
|
|
1690
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1691
|
-
}, z.core.$strip>>;
|
|
1692
|
-
}, z.core.$strip>>;
|
|
1693
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
1694
|
-
}, z.core.$strip>>;
|
|
1695
|
-
by: z.ZodObject<{
|
|
1696
|
-
actor: z.ZodString;
|
|
1697
|
-
principal: z.ZodString;
|
|
1698
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1699
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1700
|
-
}, z.core.$strip>;
|
|
1701
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1702
|
-
}, z.core.$strip>;
|
|
1703
|
-
'message.edited': z.ZodObject<{
|
|
1704
|
-
id: z.ZodNumber;
|
|
1705
|
-
thread: z.ZodString;
|
|
1706
|
-
text: z.ZodString;
|
|
1707
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
1708
|
-
by: z.ZodObject<{
|
|
1709
|
-
actor: z.ZodString;
|
|
1710
|
-
principal: z.ZodString;
|
|
1711
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1712
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1713
|
-
}, z.core.$strip>;
|
|
1714
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1715
|
-
}, z.core.$strip>;
|
|
1716
|
-
'message.deleted': z.ZodObject<{
|
|
1717
|
-
id: z.ZodNumber;
|
|
1718
|
-
thread: z.ZodString;
|
|
1719
|
-
by: z.ZodObject<{
|
|
1720
|
-
actor: z.ZodString;
|
|
1721
|
-
principal: z.ZodString;
|
|
1722
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1723
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1724
|
-
}, z.core.$strip>;
|
|
1725
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1726
|
-
}, z.core.$strip>;
|
|
1727
|
-
'reaction.added': z.ZodObject<{
|
|
1728
|
-
id: z.ZodNumber;
|
|
1729
|
-
thread: z.ZodString;
|
|
1730
|
-
emoji: z.ZodString;
|
|
1731
|
-
by: z.ZodObject<{
|
|
1732
|
-
actor: z.ZodString;
|
|
1733
|
-
principal: z.ZodString;
|
|
1734
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1735
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1736
|
-
}, z.core.$strip>;
|
|
1737
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1738
|
-
}, z.core.$strip>;
|
|
1739
|
-
'reaction.removed': z.ZodObject<{
|
|
1740
|
-
id: z.ZodNumber;
|
|
1741
|
-
thread: z.ZodString;
|
|
1742
|
-
emoji: z.ZodString;
|
|
1743
|
-
by: z.ZodObject<{
|
|
1744
|
-
actor: z.ZodString;
|
|
1745
|
-
principal: z.ZodString;
|
|
1746
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1747
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1748
|
-
}, z.core.$strip>;
|
|
1749
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1750
|
-
}, z.core.$strip>;
|
|
1751
|
-
'labels.changed': z.ZodObject<{
|
|
1752
|
-
id: z.ZodNumber;
|
|
1753
|
-
thread: z.ZodString;
|
|
1754
|
-
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1755
|
-
unset: z.ZodArray<z.ZodString>;
|
|
1756
|
-
by: z.ZodObject<{
|
|
1757
|
-
actor: z.ZodString;
|
|
1758
|
-
principal: z.ZodString;
|
|
1759
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1760
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1761
|
-
}, z.core.$strip>;
|
|
1762
|
-
}, z.core.$strip>;
|
|
1763
|
-
'thread.synced': z.ZodObject<{
|
|
1764
|
-
thread: z.ZodString;
|
|
1765
|
-
target: z.ZodString;
|
|
1766
|
-
cause: z.ZodEnum<{
|
|
1767
|
-
config: "config";
|
|
1768
|
-
request: "request";
|
|
1769
|
-
}>;
|
|
1770
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
1771
|
-
channel: "channel";
|
|
1772
|
-
thread: "thread";
|
|
1773
|
-
}>>;
|
|
1774
|
-
by: z.ZodObject<{
|
|
1775
|
-
actor: z.ZodString;
|
|
1776
|
-
principal: z.ZodString;
|
|
1777
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1778
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1779
|
-
}, z.core.$strip>;
|
|
1780
|
-
}, z.core.$strip>;
|
|
1781
|
-
'message.synced': z.ZodObject<{
|
|
1782
|
-
id: z.ZodNumber;
|
|
1783
|
-
thread: z.ZodString;
|
|
1784
|
-
target: z.ZodString;
|
|
1785
|
-
external: z.ZodObject<{
|
|
1786
|
-
thread: z.ZodString;
|
|
1787
|
-
message: z.ZodString;
|
|
1788
|
-
}, z.core.$strip>;
|
|
1789
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
1790
|
-
}, z.core.$strip>;
|
|
1791
|
-
'message.files_synced': z.ZodObject<{
|
|
1792
|
-
id: z.ZodNumber;
|
|
1793
|
-
thread: z.ZodString;
|
|
1794
|
-
target: z.ZodString;
|
|
1795
|
-
files: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1796
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
1797
|
-
}, z.core.$strip>;
|
|
1798
|
-
'message.sync_failed': z.ZodObject<{
|
|
1799
|
-
id: z.ZodNumber;
|
|
1800
|
-
thread: z.ZodString;
|
|
1801
|
-
target: z.ZodString;
|
|
1802
|
-
error: z.ZodString;
|
|
1803
|
-
}, z.core.$strip>;
|
|
1804
|
-
'actor.seen': z.ZodObject<{
|
|
1805
|
-
actor: z.ZodString;
|
|
1806
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1807
|
-
agent: "agent";
|
|
1808
|
-
deployment: "deployment";
|
|
1809
|
-
external: "external";
|
|
1810
|
-
person: "person";
|
|
1811
|
-
workflow: "workflow";
|
|
1812
|
-
}>, z.ZodLiteral<"profile">]>;
|
|
1813
|
-
handle: z.ZodString;
|
|
1814
|
-
name: z.ZodString;
|
|
1815
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
1816
|
-
host: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1817
|
-
}, z.core.$strip>;
|
|
1818
|
-
}>[]>;
|
|
1819
|
-
consume(consumer: Consumer<{
|
|
1820
|
-
'message.posted': z.ZodObject<{
|
|
1821
|
-
channel: z.ZodString;
|
|
1822
|
-
text: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
1823
|
-
re: z.ZodNullable<z.ZodNumber>;
|
|
1824
|
-
replyTo: z.ZodNullable<z.ZodNumber>;
|
|
1825
|
-
thread: z.ZodString;
|
|
1826
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1827
|
-
noSync: z.ZodBoolean;
|
|
1828
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
1829
|
-
by: z.ZodObject<{
|
|
1830
|
-
actor: z.ZodString;
|
|
1831
|
-
principal: z.ZodString;
|
|
1832
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1833
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1834
|
-
}, z.core.$strip>;
|
|
1835
|
-
origin: z.ZodNullable<z.ZodObject<{
|
|
1836
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1837
|
-
thread: z.ZodString;
|
|
1838
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
1839
|
-
message: z.ZodString;
|
|
1840
|
-
context: z.ZodNullable<z.ZodString>;
|
|
1841
|
-
}, z.core.$strip>>;
|
|
1842
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1843
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1844
|
-
id: z.ZodString;
|
|
1845
|
-
name: z.ZodString;
|
|
1846
|
-
type: z.ZodString;
|
|
1847
|
-
size: z.ZodNumber;
|
|
1848
|
-
}, z.core.$strip>>>;
|
|
1849
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1850
|
-
url: z.ZodString;
|
|
1851
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
1852
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
1853
|
-
author: z.ZodString;
|
|
1854
|
-
text: z.ZodString;
|
|
1855
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
1856
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1857
|
-
name: z.ZodString;
|
|
1858
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1859
|
-
}, z.core.$strip>>;
|
|
1860
|
-
}, z.core.$strip>>;
|
|
1861
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
1862
|
-
}, z.core.$strip>>>;
|
|
1863
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
1864
|
-
id: z.ZodNumber;
|
|
1865
|
-
n: z.ZodNumber;
|
|
1866
|
-
}, z.core.$strip>>;
|
|
1867
|
-
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1868
|
-
importedBy: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
1879
|
-
'message.linked': z.ZodObject<{
|
|
1880
|
-
id: z.ZodNumber;
|
|
1881
|
-
thread: z.ZodString;
|
|
1882
|
-
links: z.ZodArray<z.ZodObject<{
|
|
1883
|
-
url: z.ZodString;
|
|
1884
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
1885
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
1886
|
-
author: z.ZodString;
|
|
1887
|
-
text: z.ZodString;
|
|
1888
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
1889
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1890
|
-
name: z.ZodString;
|
|
1891
|
-
url: z.ZodNullable<z.ZodString>;
|
|
1892
|
-
}, z.core.$strip>>;
|
|
1893
|
-
}, z.core.$strip>>;
|
|
1894
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
1895
|
-
}, z.core.$strip>>;
|
|
1896
|
-
by: z.ZodObject<{
|
|
1897
|
-
actor: z.ZodString;
|
|
1898
|
-
principal: z.ZodString;
|
|
1899
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1900
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1901
|
-
}, z.core.$strip>;
|
|
1902
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1903
|
-
}, z.core.$strip>;
|
|
1904
|
-
'message.edited': z.ZodObject<{
|
|
1905
|
-
id: z.ZodNumber;
|
|
1906
|
-
thread: z.ZodString;
|
|
1907
|
-
text: z.ZodString;
|
|
1908
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
1909
|
-
by: z.ZodObject<{
|
|
1910
|
-
actor: z.ZodString;
|
|
1911
|
-
principal: z.ZodString;
|
|
1912
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1913
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1914
|
-
}, z.core.$strip>;
|
|
1915
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1916
|
-
}, z.core.$strip>;
|
|
1917
|
-
'message.deleted': z.ZodObject<{
|
|
1918
|
-
id: z.ZodNumber;
|
|
1919
|
-
thread: z.ZodString;
|
|
1920
|
-
by: z.ZodObject<{
|
|
1921
|
-
actor: z.ZodString;
|
|
1922
|
-
principal: z.ZodString;
|
|
1923
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1924
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1925
|
-
}, z.core.$strip>;
|
|
1926
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1927
|
-
}, z.core.$strip>;
|
|
1928
|
-
'reaction.added': z.ZodObject<{
|
|
1929
|
-
id: z.ZodNumber;
|
|
1930
|
-
thread: z.ZodString;
|
|
1931
|
-
emoji: z.ZodString;
|
|
1932
|
-
by: z.ZodObject<{
|
|
1933
|
-
actor: z.ZodString;
|
|
1934
|
-
principal: z.ZodString;
|
|
1935
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1936
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1937
|
-
}, z.core.$strip>;
|
|
1938
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1939
|
-
}, z.core.$strip>;
|
|
1940
|
-
'reaction.removed': z.ZodObject<{
|
|
1941
|
-
id: z.ZodNumber;
|
|
1942
|
-
thread: z.ZodString;
|
|
1943
|
-
emoji: z.ZodString;
|
|
1944
|
-
by: z.ZodObject<{
|
|
1945
|
-
actor: z.ZodString;
|
|
1946
|
-
principal: z.ZodString;
|
|
1947
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1948
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1949
|
-
}, z.core.$strip>;
|
|
1950
|
-
from: z.ZodNullable<z.ZodString>;
|
|
1951
|
-
}, z.core.$strip>;
|
|
1952
|
-
'labels.changed': z.ZodObject<{
|
|
1953
|
-
id: z.ZodNumber;
|
|
1954
|
-
thread: z.ZodString;
|
|
1955
|
-
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1956
|
-
unset: z.ZodArray<z.ZodString>;
|
|
1957
|
-
by: z.ZodObject<{
|
|
1958
|
-
actor: z.ZodString;
|
|
1959
|
-
principal: z.ZodString;
|
|
1960
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1961
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1962
|
-
}, z.core.$strip>;
|
|
1963
|
-
}, z.core.$strip>;
|
|
1964
|
-
'thread.synced': z.ZodObject<{
|
|
1965
|
-
thread: z.ZodString;
|
|
1966
|
-
target: z.ZodString;
|
|
1967
|
-
cause: z.ZodEnum<{
|
|
1968
|
-
config: "config";
|
|
1969
|
-
request: "request";
|
|
1970
|
-
}>;
|
|
1971
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
1972
|
-
channel: "channel";
|
|
1973
|
-
thread: "thread";
|
|
1974
|
-
}>>;
|
|
1975
|
-
by: z.ZodObject<{
|
|
1976
|
-
actor: z.ZodString;
|
|
1977
|
-
principal: z.ZodString;
|
|
1978
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
1979
|
-
session: z.ZodNullable<z.ZodString>;
|
|
1980
|
-
}, z.core.$strip>;
|
|
1981
|
-
}, z.core.$strip>;
|
|
1982
|
-
'message.synced': z.ZodObject<{
|
|
1983
|
-
id: z.ZodNumber;
|
|
1984
|
-
thread: z.ZodString;
|
|
1985
|
-
target: z.ZodString;
|
|
1986
|
-
external: z.ZodObject<{
|
|
1987
|
-
thread: z.ZodString;
|
|
1988
|
-
message: z.ZodString;
|
|
1989
|
-
}, z.core.$strip>;
|
|
1990
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
1991
|
-
}, z.core.$strip>;
|
|
1992
|
-
'message.files_synced': z.ZodObject<{
|
|
1993
|
-
id: z.ZodNumber;
|
|
1994
|
-
thread: z.ZodString;
|
|
1995
|
-
target: z.ZodString;
|
|
1996
|
-
files: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
1997
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
1998
|
-
}, z.core.$strip>;
|
|
1999
|
-
'message.sync_failed': z.ZodObject<{
|
|
2000
|
-
id: z.ZodNumber;
|
|
2001
|
-
thread: z.ZodString;
|
|
2002
|
-
target: z.ZodString;
|
|
2003
|
-
error: z.ZodString;
|
|
2004
|
-
}, z.core.$strip>;
|
|
2005
|
-
'actor.seen': z.ZodObject<{
|
|
2006
|
-
actor: z.ZodString;
|
|
2007
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2008
|
-
agent: "agent";
|
|
2009
|
-
deployment: "deployment";
|
|
2010
|
-
external: "external";
|
|
2011
|
-
person: "person";
|
|
2012
|
-
workflow: "workflow";
|
|
2013
|
-
}>, z.ZodLiteral<"profile">]>;
|
|
2014
|
-
handle: z.ZodString;
|
|
2015
|
-
name: z.ZodString;
|
|
2016
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
2017
|
-
host: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2018
|
-
}, z.core.$strip>;
|
|
2019
|
-
}>, options?: SessionConsumeOptions): Promise<SessionConsumeResult>;
|
|
2020
|
-
state: <T>(reducer: Reducer<{
|
|
2021
|
-
'message.posted': z.ZodObject<{
|
|
2022
|
-
channel: z.ZodString;
|
|
2023
|
-
text: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
2024
|
-
re: z.ZodNullable<z.ZodNumber>;
|
|
2025
|
-
replyTo: z.ZodNullable<z.ZodNumber>;
|
|
2026
|
-
thread: z.ZodString;
|
|
2027
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2028
|
-
noSync: z.ZodBoolean;
|
|
2029
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
2030
|
-
by: z.ZodObject<{
|
|
2031
|
-
actor: z.ZodString;
|
|
2032
|
-
principal: z.ZodString;
|
|
2033
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2034
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2035
|
-
}, z.core.$strip>;
|
|
2036
|
-
origin: z.ZodNullable<z.ZodObject<{
|
|
2037
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
2038
|
-
thread: z.ZodString;
|
|
2039
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
2040
|
-
message: z.ZodString;
|
|
2041
|
-
context: z.ZodNullable<z.ZodString>;
|
|
2042
|
-
}, z.core.$strip>>;
|
|
2043
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2044
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2045
|
-
id: z.ZodString;
|
|
2046
|
-
name: z.ZodString;
|
|
2047
|
-
type: z.ZodString;
|
|
2048
|
-
size: z.ZodNumber;
|
|
2049
|
-
}, z.core.$strip>>>;
|
|
2050
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2051
|
-
url: z.ZodString;
|
|
2052
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
2053
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
2054
|
-
author: z.ZodString;
|
|
2055
|
-
text: z.ZodString;
|
|
2056
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
2057
|
-
files: z.ZodArray<z.ZodObject<{
|
|
2058
|
-
name: z.ZodString;
|
|
2059
|
-
url: z.ZodNullable<z.ZodString>;
|
|
2060
|
-
}, z.core.$strip>>;
|
|
2061
|
-
}, z.core.$strip>>;
|
|
2062
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
2063
|
-
}, z.core.$strip>>>;
|
|
2064
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
2065
|
-
id: z.ZodNumber;
|
|
2066
|
-
n: z.ZodNumber;
|
|
2067
|
-
}, z.core.$strip>>;
|
|
2068
|
-
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2069
|
-
importedBy: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
2080
|
-
'message.linked': z.ZodObject<{
|
|
2081
|
-
id: z.ZodNumber;
|
|
2082
|
-
thread: z.ZodString;
|
|
2083
|
-
links: z.ZodArray<z.ZodObject<{
|
|
2084
|
-
url: z.ZodString;
|
|
2085
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
2086
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
2087
|
-
author: z.ZodString;
|
|
2088
|
-
text: z.ZodString;
|
|
2089
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
2090
|
-
files: z.ZodArray<z.ZodObject<{
|
|
2091
|
-
name: z.ZodString;
|
|
2092
|
-
url: z.ZodNullable<z.ZodString>;
|
|
2093
|
-
}, z.core.$strip>>;
|
|
2094
|
-
}, z.core.$strip>>;
|
|
2095
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
2096
|
-
}, z.core.$strip>>;
|
|
2097
|
-
by: z.ZodObject<{
|
|
2098
|
-
actor: z.ZodString;
|
|
2099
|
-
principal: z.ZodString;
|
|
2100
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2101
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2102
|
-
}, z.core.$strip>;
|
|
2103
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2104
|
-
}, z.core.$strip>;
|
|
2105
|
-
'message.edited': z.ZodObject<{
|
|
2106
|
-
id: z.ZodNumber;
|
|
2107
|
-
thread: z.ZodString;
|
|
2108
|
-
text: z.ZodString;
|
|
2109
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
2110
|
-
by: z.ZodObject<{
|
|
2111
|
-
actor: z.ZodString;
|
|
2112
|
-
principal: z.ZodString;
|
|
2113
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2114
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2115
|
-
}, z.core.$strip>;
|
|
2116
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2117
|
-
}, z.core.$strip>;
|
|
2118
|
-
'message.deleted': z.ZodObject<{
|
|
2119
|
-
id: z.ZodNumber;
|
|
2120
|
-
thread: z.ZodString;
|
|
2121
|
-
by: z.ZodObject<{
|
|
2122
|
-
actor: z.ZodString;
|
|
2123
|
-
principal: z.ZodString;
|
|
2124
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2125
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2126
|
-
}, z.core.$strip>;
|
|
2127
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2128
|
-
}, z.core.$strip>;
|
|
2129
|
-
'reaction.added': z.ZodObject<{
|
|
2130
|
-
id: z.ZodNumber;
|
|
2131
|
-
thread: z.ZodString;
|
|
2132
|
-
emoji: z.ZodString;
|
|
2133
|
-
by: z.ZodObject<{
|
|
2134
|
-
actor: z.ZodString;
|
|
2135
|
-
principal: z.ZodString;
|
|
2136
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2137
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2138
|
-
}, z.core.$strip>;
|
|
2139
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2140
|
-
}, z.core.$strip>;
|
|
2141
|
-
'reaction.removed': z.ZodObject<{
|
|
2142
|
-
id: z.ZodNumber;
|
|
2143
|
-
thread: z.ZodString;
|
|
2144
|
-
emoji: z.ZodString;
|
|
2145
|
-
by: z.ZodObject<{
|
|
2146
|
-
actor: z.ZodString;
|
|
2147
|
-
principal: z.ZodString;
|
|
2148
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2149
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2150
|
-
}, z.core.$strip>;
|
|
2151
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2152
|
-
}, z.core.$strip>;
|
|
2153
|
-
'labels.changed': z.ZodObject<{
|
|
2154
|
-
id: z.ZodNumber;
|
|
2155
|
-
thread: z.ZodString;
|
|
2156
|
-
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2157
|
-
unset: z.ZodArray<z.ZodString>;
|
|
2158
|
-
by: z.ZodObject<{
|
|
2159
|
-
actor: z.ZodString;
|
|
2160
|
-
principal: z.ZodString;
|
|
2161
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2162
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2163
|
-
}, z.core.$strip>;
|
|
2164
|
-
}, z.core.$strip>;
|
|
2165
|
-
'thread.synced': z.ZodObject<{
|
|
2166
|
-
thread: z.ZodString;
|
|
2167
|
-
target: z.ZodString;
|
|
2168
|
-
cause: z.ZodEnum<{
|
|
2169
|
-
config: "config";
|
|
2170
|
-
request: "request";
|
|
2171
|
-
}>;
|
|
2172
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
2173
|
-
channel: "channel";
|
|
2174
|
-
thread: "thread";
|
|
2175
|
-
}>>;
|
|
2176
|
-
by: z.ZodObject<{
|
|
2177
|
-
actor: z.ZodString;
|
|
2178
|
-
principal: z.ZodString;
|
|
2179
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2180
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2181
|
-
}, z.core.$strip>;
|
|
2182
|
-
}, z.core.$strip>;
|
|
2183
|
-
'message.synced': z.ZodObject<{
|
|
2184
|
-
id: z.ZodNumber;
|
|
2185
|
-
thread: z.ZodString;
|
|
2186
|
-
target: z.ZodString;
|
|
2187
|
-
external: z.ZodObject<{
|
|
2188
|
-
thread: z.ZodString;
|
|
2189
|
-
message: z.ZodString;
|
|
2190
|
-
}, z.core.$strip>;
|
|
2191
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
2192
|
-
}, z.core.$strip>;
|
|
2193
|
-
'message.files_synced': z.ZodObject<{
|
|
2194
|
-
id: z.ZodNumber;
|
|
2195
|
-
thread: z.ZodString;
|
|
2196
|
-
target: z.ZodString;
|
|
2197
|
-
files: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2198
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
2199
|
-
}, z.core.$strip>;
|
|
2200
|
-
'message.sync_failed': z.ZodObject<{
|
|
2201
|
-
id: z.ZodNumber;
|
|
2202
|
-
thread: z.ZodString;
|
|
2203
|
-
target: z.ZodString;
|
|
2204
|
-
error: z.ZodString;
|
|
2205
|
-
}, z.core.$strip>;
|
|
2206
|
-
'actor.seen': z.ZodObject<{
|
|
2207
|
-
actor: z.ZodString;
|
|
2208
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2209
|
-
agent: "agent";
|
|
2210
|
-
deployment: "deployment";
|
|
2211
|
-
external: "external";
|
|
2212
|
-
person: "person";
|
|
2213
|
-
workflow: "workflow";
|
|
2214
|
-
}>, z.ZodLiteral<"profile">]>;
|
|
2215
|
-
handle: z.ZodString;
|
|
2216
|
-
name: z.ZodString;
|
|
2217
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
2218
|
-
host: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2219
|
-
}, z.core.$strip>;
|
|
2220
|
-
}, T, Record<never, never>>, options?: StateOptions) => Promise<{
|
|
2221
|
-
state: T;
|
|
2222
|
-
index: number;
|
|
2223
|
-
clearIndex?: number;
|
|
2224
|
-
}>;
|
|
2225
|
-
stream(opts?: {
|
|
2226
|
-
startAfter?: number;
|
|
2227
|
-
}): AsyncIterable<ContractEvent<{
|
|
2228
|
-
'message.posted': z.ZodObject<{
|
|
2229
|
-
channel: z.ZodString;
|
|
2230
|
-
text: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
2231
|
-
re: z.ZodNullable<z.ZodNumber>;
|
|
2232
|
-
replyTo: z.ZodNullable<z.ZodNumber>;
|
|
2233
|
-
thread: z.ZodString;
|
|
2234
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2235
|
-
noSync: z.ZodBoolean;
|
|
2236
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
2237
|
-
by: z.ZodObject<{
|
|
2238
|
-
actor: z.ZodString;
|
|
2239
|
-
principal: z.ZodString;
|
|
2240
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2241
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2242
|
-
}, z.core.$strip>;
|
|
2243
|
-
origin: z.ZodNullable<z.ZodObject<{
|
|
2244
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
2245
|
-
thread: z.ZodString;
|
|
2246
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
2247
|
-
message: z.ZodString;
|
|
2248
|
-
context: z.ZodNullable<z.ZodString>;
|
|
2249
|
-
}, z.core.$strip>>;
|
|
2250
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2251
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2252
|
-
id: z.ZodString;
|
|
2253
|
-
name: z.ZodString;
|
|
2254
|
-
type: z.ZodString;
|
|
2255
|
-
size: z.ZodNumber;
|
|
2256
|
-
}, z.core.$strip>>>;
|
|
2257
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2258
|
-
url: z.ZodString;
|
|
2259
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
2260
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
2261
|
-
author: z.ZodString;
|
|
2262
|
-
text: z.ZodString;
|
|
2263
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
2264
|
-
files: z.ZodArray<z.ZodObject<{
|
|
2265
|
-
name: z.ZodString;
|
|
2266
|
-
url: z.ZodNullable<z.ZodString>;
|
|
2267
|
-
}, z.core.$strip>>;
|
|
2268
|
-
}, z.core.$strip>>;
|
|
2269
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
2270
|
-
}, z.core.$strip>>>;
|
|
2271
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
2272
|
-
id: z.ZodNumber;
|
|
2273
|
-
n: z.ZodNumber;
|
|
2274
|
-
}, z.core.$strip>>;
|
|
2275
|
-
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2276
|
-
importedBy: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
2287
|
-
'message.linked': z.ZodObject<{
|
|
2288
|
-
id: z.ZodNumber;
|
|
2289
|
-
thread: z.ZodString;
|
|
2290
|
-
links: z.ZodArray<z.ZodObject<{
|
|
2291
|
-
url: z.ZodString;
|
|
2292
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
2293
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
2294
|
-
author: z.ZodString;
|
|
2295
|
-
text: z.ZodString;
|
|
2296
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
2297
|
-
files: z.ZodArray<z.ZodObject<{
|
|
2298
|
-
name: z.ZodString;
|
|
2299
|
-
url: z.ZodNullable<z.ZodString>;
|
|
2300
|
-
}, z.core.$strip>>;
|
|
2301
|
-
}, z.core.$strip>>;
|
|
2302
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
2303
|
-
}, z.core.$strip>>;
|
|
2304
|
-
by: z.ZodObject<{
|
|
2305
|
-
actor: z.ZodString;
|
|
2306
|
-
principal: z.ZodString;
|
|
2307
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2308
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2309
|
-
}, z.core.$strip>;
|
|
2310
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2311
|
-
}, z.core.$strip>;
|
|
2312
|
-
'message.edited': z.ZodObject<{
|
|
2313
|
-
id: z.ZodNumber;
|
|
2314
|
-
thread: z.ZodString;
|
|
2315
|
-
text: z.ZodString;
|
|
2316
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
2317
|
-
by: z.ZodObject<{
|
|
2318
|
-
actor: z.ZodString;
|
|
2319
|
-
principal: z.ZodString;
|
|
2320
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2321
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2322
|
-
}, z.core.$strip>;
|
|
2323
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2324
|
-
}, z.core.$strip>;
|
|
2325
|
-
'message.deleted': z.ZodObject<{
|
|
2326
|
-
id: z.ZodNumber;
|
|
2327
|
-
thread: z.ZodString;
|
|
2328
|
-
by: z.ZodObject<{
|
|
2329
|
-
actor: z.ZodString;
|
|
2330
|
-
principal: z.ZodString;
|
|
2331
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2332
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2333
|
-
}, z.core.$strip>;
|
|
2334
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2335
|
-
}, z.core.$strip>;
|
|
2336
|
-
'reaction.added': z.ZodObject<{
|
|
2337
|
-
id: z.ZodNumber;
|
|
2338
|
-
thread: z.ZodString;
|
|
2339
|
-
emoji: z.ZodString;
|
|
2340
|
-
by: z.ZodObject<{
|
|
2341
|
-
actor: z.ZodString;
|
|
2342
|
-
principal: z.ZodString;
|
|
2343
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2344
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2345
|
-
}, z.core.$strip>;
|
|
2346
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2347
|
-
}, z.core.$strip>;
|
|
2348
|
-
'reaction.removed': z.ZodObject<{
|
|
2349
|
-
id: z.ZodNumber;
|
|
2350
|
-
thread: z.ZodString;
|
|
2351
|
-
emoji: z.ZodString;
|
|
2352
|
-
by: z.ZodObject<{
|
|
2353
|
-
actor: z.ZodString;
|
|
2354
|
-
principal: z.ZodString;
|
|
2355
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2356
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2357
|
-
}, z.core.$strip>;
|
|
2358
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2359
|
-
}, z.core.$strip>;
|
|
2360
|
-
'labels.changed': z.ZodObject<{
|
|
2361
|
-
id: z.ZodNumber;
|
|
2362
|
-
thread: z.ZodString;
|
|
2363
|
-
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2364
|
-
unset: z.ZodArray<z.ZodString>;
|
|
2365
|
-
by: z.ZodObject<{
|
|
2366
|
-
actor: z.ZodString;
|
|
2367
|
-
principal: z.ZodString;
|
|
2368
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2369
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2370
|
-
}, z.core.$strip>;
|
|
2371
|
-
}, z.core.$strip>;
|
|
2372
|
-
'thread.synced': z.ZodObject<{
|
|
2373
|
-
thread: z.ZodString;
|
|
2374
|
-
target: z.ZodString;
|
|
2375
|
-
cause: z.ZodEnum<{
|
|
2376
|
-
config: "config";
|
|
2377
|
-
request: "request";
|
|
2378
|
-
}>;
|
|
2379
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
2380
|
-
channel: "channel";
|
|
2381
|
-
thread: "thread";
|
|
2382
|
-
}>>;
|
|
2383
|
-
by: z.ZodObject<{
|
|
2384
|
-
actor: z.ZodString;
|
|
2385
|
-
principal: z.ZodString;
|
|
2386
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2387
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2388
|
-
}, z.core.$strip>;
|
|
2389
|
-
}, z.core.$strip>;
|
|
2390
|
-
'message.synced': z.ZodObject<{
|
|
2391
|
-
id: z.ZodNumber;
|
|
2392
|
-
thread: z.ZodString;
|
|
2393
|
-
target: z.ZodString;
|
|
2394
|
-
external: z.ZodObject<{
|
|
2395
|
-
thread: z.ZodString;
|
|
2396
|
-
message: z.ZodString;
|
|
2397
|
-
}, z.core.$strip>;
|
|
2398
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
2399
|
-
}, z.core.$strip>;
|
|
2400
|
-
'message.files_synced': z.ZodObject<{
|
|
2401
|
-
id: z.ZodNumber;
|
|
2402
|
-
thread: z.ZodString;
|
|
2403
|
-
target: z.ZodString;
|
|
2404
|
-
files: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2405
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
2406
|
-
}, z.core.$strip>;
|
|
2407
|
-
'message.sync_failed': z.ZodObject<{
|
|
2408
|
-
id: z.ZodNumber;
|
|
2409
|
-
thread: z.ZodString;
|
|
2410
|
-
target: z.ZodString;
|
|
2411
|
-
error: z.ZodString;
|
|
2412
|
-
}, z.core.$strip>;
|
|
2413
|
-
'actor.seen': z.ZodObject<{
|
|
2414
|
-
actor: z.ZodString;
|
|
2415
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2416
|
-
agent: "agent";
|
|
2417
|
-
deployment: "deployment";
|
|
2418
|
-
external: "external";
|
|
2419
|
-
person: "person";
|
|
2420
|
-
workflow: "workflow";
|
|
2421
|
-
}>, z.ZodLiteral<"profile">]>;
|
|
2422
|
-
handle: z.ZodString;
|
|
2423
|
-
name: z.ZodString;
|
|
2424
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
2425
|
-
host: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2426
|
-
}, z.core.$strip>;
|
|
2427
|
-
}> | SessionCleared>;
|
|
2428
|
-
} & SessionDeadLetters<{
|
|
2429
|
-
'message.posted': z.ZodObject<{
|
|
2430
|
-
channel: z.ZodString;
|
|
2431
|
-
text: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"">]>;
|
|
2432
|
-
re: z.ZodNullable<z.ZodNumber>;
|
|
2433
|
-
replyTo: z.ZodNullable<z.ZodNumber>;
|
|
2434
|
-
thread: z.ZodString;
|
|
2435
|
-
labels: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2436
|
-
noSync: z.ZodBoolean;
|
|
2437
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
2438
|
-
by: z.ZodObject<{
|
|
2439
|
-
actor: z.ZodString;
|
|
2440
|
-
principal: z.ZodString;
|
|
2441
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2442
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2443
|
-
}, z.core.$strip>;
|
|
2444
|
-
origin: z.ZodNullable<z.ZodObject<{
|
|
2445
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
2446
|
-
thread: z.ZodString;
|
|
2447
|
-
subthread: z.ZodNullable<z.ZodString>;
|
|
2448
|
-
message: z.ZodString;
|
|
2449
|
-
context: z.ZodNullable<z.ZodString>;
|
|
2450
|
-
}, z.core.$strip>>;
|
|
2451
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2452
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2453
|
-
id: z.ZodString;
|
|
2454
|
-
name: z.ZodString;
|
|
2455
|
-
type: z.ZodString;
|
|
2456
|
-
size: z.ZodNumber;
|
|
2457
|
-
}, z.core.$strip>>>;
|
|
2458
|
-
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2459
|
-
url: z.ZodString;
|
|
2460
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
2461
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
2462
|
-
author: z.ZodString;
|
|
2463
|
-
text: z.ZodString;
|
|
2464
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
2465
|
-
files: z.ZodArray<z.ZodObject<{
|
|
2466
|
-
name: z.ZodString;
|
|
2467
|
-
url: z.ZodNullable<z.ZodString>;
|
|
2468
|
-
}, z.core.$strip>>;
|
|
2469
|
-
}, z.core.$strip>>;
|
|
2470
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
2471
|
-
}, z.core.$strip>>>;
|
|
2472
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
2473
|
-
id: z.ZodNumber;
|
|
2474
|
-
n: z.ZodNumber;
|
|
2475
|
-
}, z.core.$strip>>;
|
|
2476
|
-
blind: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2477
|
-
importedBy: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
2488
|
-
'message.linked': z.ZodObject<{
|
|
2489
|
-
id: z.ZodNumber;
|
|
2490
|
-
thread: z.ZodString;
|
|
2491
|
-
links: z.ZodArray<z.ZodObject<{
|
|
2492
|
-
url: z.ZodString;
|
|
2493
|
-
message: z.ZodNullable<z.ZodNumber>;
|
|
2494
|
-
snapshot: z.ZodNullable<z.ZodObject<{
|
|
2495
|
-
author: z.ZodString;
|
|
2496
|
-
text: z.ZodString;
|
|
2497
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
2498
|
-
files: z.ZodArray<z.ZodObject<{
|
|
2499
|
-
name: z.ZodString;
|
|
2500
|
-
url: z.ZodNullable<z.ZodString>;
|
|
2501
|
-
}, z.core.$strip>>;
|
|
2502
|
-
}, z.core.$strip>>;
|
|
2503
|
-
unavailable: z.ZodNullable<z.ZodString>;
|
|
2504
|
-
}, z.core.$strip>>;
|
|
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
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2512
|
-
}, z.core.$strip>;
|
|
2513
|
-
'message.edited': z.ZodObject<{
|
|
2514
|
-
id: z.ZodNumber;
|
|
2515
|
-
thread: z.ZodString;
|
|
2516
|
-
text: z.ZodString;
|
|
2517
|
-
mentions: z.ZodArray<z.ZodString>;
|
|
2518
|
-
by: z.ZodObject<{
|
|
2519
|
-
actor: z.ZodString;
|
|
2520
|
-
principal: z.ZodString;
|
|
2521
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2522
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2523
|
-
}, z.core.$strip>;
|
|
2524
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2525
|
-
}, z.core.$strip>;
|
|
2526
|
-
'message.deleted': z.ZodObject<{
|
|
2527
|
-
id: z.ZodNumber;
|
|
2528
|
-
thread: z.ZodString;
|
|
2529
|
-
by: z.ZodObject<{
|
|
2530
|
-
actor: z.ZodString;
|
|
2531
|
-
principal: z.ZodString;
|
|
2532
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2533
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2534
|
-
}, z.core.$strip>;
|
|
2535
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2536
|
-
}, z.core.$strip>;
|
|
2537
|
-
'reaction.added': z.ZodObject<{
|
|
2538
|
-
id: z.ZodNumber;
|
|
2539
|
-
thread: z.ZodString;
|
|
2540
|
-
emoji: z.ZodString;
|
|
2541
|
-
by: z.ZodObject<{
|
|
2542
|
-
actor: z.ZodString;
|
|
2543
|
-
principal: z.ZodString;
|
|
2544
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2545
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2546
|
-
}, z.core.$strip>;
|
|
2547
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2548
|
-
}, z.core.$strip>;
|
|
2549
|
-
'reaction.removed': z.ZodObject<{
|
|
2550
|
-
id: z.ZodNumber;
|
|
2551
|
-
thread: z.ZodString;
|
|
2552
|
-
emoji: z.ZodString;
|
|
2553
|
-
by: z.ZodObject<{
|
|
2554
|
-
actor: z.ZodString;
|
|
2555
|
-
principal: z.ZodString;
|
|
2556
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2557
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2558
|
-
}, z.core.$strip>;
|
|
2559
|
-
from: z.ZodNullable<z.ZodString>;
|
|
2560
|
-
}, z.core.$strip>;
|
|
2561
|
-
'labels.changed': z.ZodObject<{
|
|
2562
|
-
id: z.ZodNumber;
|
|
2563
|
-
thread: z.ZodString;
|
|
2564
|
-
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2565
|
-
unset: z.ZodArray<z.ZodString>;
|
|
2566
|
-
by: z.ZodObject<{
|
|
2567
|
-
actor: z.ZodString;
|
|
2568
|
-
principal: z.ZodString;
|
|
2569
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2570
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2571
|
-
}, z.core.$strip>;
|
|
2572
|
-
}, z.core.$strip>;
|
|
2573
|
-
'thread.synced': z.ZodObject<{
|
|
2574
|
-
thread: z.ZodString;
|
|
2575
|
-
target: z.ZodString;
|
|
2576
|
-
cause: z.ZodEnum<{
|
|
2577
|
-
config: "config";
|
|
2578
|
-
request: "request";
|
|
2579
|
-
}>;
|
|
2580
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
2581
|
-
channel: "channel";
|
|
2582
|
-
thread: "thread";
|
|
2583
|
-
}>>;
|
|
2584
|
-
by: z.ZodObject<{
|
|
2585
|
-
actor: z.ZodString;
|
|
2586
|
-
principal: z.ZodString;
|
|
2587
|
-
profile: z.ZodNullable<z.ZodString>;
|
|
2588
|
-
session: z.ZodNullable<z.ZodString>;
|
|
2589
|
-
}, z.core.$strip>;
|
|
2590
|
-
}, z.core.$strip>;
|
|
2591
|
-
'message.synced': z.ZodObject<{
|
|
2592
|
-
id: z.ZodNumber;
|
|
2593
|
-
thread: z.ZodString;
|
|
2594
|
-
target: z.ZodString;
|
|
2595
|
-
external: z.ZodObject<{
|
|
2596
|
-
thread: z.ZodString;
|
|
2597
|
-
message: z.ZodString;
|
|
2598
|
-
}, z.core.$strip>;
|
|
2599
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
2600
|
-
}, z.core.$strip>;
|
|
2601
|
-
'message.files_synced': z.ZodObject<{
|
|
2602
|
-
id: z.ZodNumber;
|
|
2603
|
-
thread: z.ZodString;
|
|
2604
|
-
target: z.ZodString;
|
|
2605
|
-
files: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2606
|
-
syncedBy: z.ZodOptional<z.ZodString>;
|
|
2607
|
-
}, z.core.$strip>;
|
|
2608
|
-
'message.sync_failed': z.ZodObject<{
|
|
2609
|
-
id: z.ZodNumber;
|
|
2610
|
-
thread: z.ZodString;
|
|
2611
|
-
target: z.ZodString;
|
|
2612
|
-
error: z.ZodString;
|
|
2613
|
-
}, z.core.$strip>;
|
|
2614
|
-
'actor.seen': z.ZodObject<{
|
|
2615
|
-
actor: z.ZodString;
|
|
2616
|
-
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2617
|
-
agent: "agent";
|
|
2618
|
-
deployment: "deployment";
|
|
2619
|
-
external: "external";
|
|
2620
|
-
person: "person";
|
|
2621
|
-
workflow: "workflow";
|
|
2622
|
-
}>, z.ZodLiteral<"profile">]>;
|
|
2623
|
-
handle: z.ZodString;
|
|
2624
|
-
name: z.ZodString;
|
|
2625
|
-
avatar: z.ZodNullable<z.ZodString>;
|
|
2626
|
-
host: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2627
|
-
}, z.core.$strip>;
|
|
2628
|
-
}>;
|
|
2629
|
-
store: BoardStore;
|
|
2630
|
-
};
|
|
2631
|
-
type A2Backend = ReturnType<typeof a2>;
|
|
2632
|
-
//#endregion
|
|
2633
|
-
export { type A2Backend, type A2Options, type BlobStore, type BoardStore, fsBlob, memoryBlob };
|