@vercel/board 0.32.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.
Files changed (166) hide show
  1. package/README.md +25 -20
  2. package/dist/{access-CY5xVMIK.mjs → access-N3XmkKXg.mjs} +3 -3
  3. package/dist/access.d.mts +4 -5
  4. package/dist/access.mjs +5 -5
  5. package/dist/{actors-Bm-ojWWT.mjs → actors-ihyN47OV.mjs} +3 -3
  6. package/dist/{auth-K8dY1nBY.d.mts → auth-D6z3rMNj.d.mts} +7 -93
  7. package/dist/{auth-8pRZnF1M.mjs → auth-r-_PeZyw.mjs} +32 -148
  8. package/dist/{backend-DxE9wGKm.d.mts → backend-CWpyR1A7.d.mts} +81 -51
  9. package/dist/backend-local.d.mts +28 -0
  10. package/dist/backend-local.mjs +2 -0
  11. package/dist/{chat-provider-DkFp2hrh.mjs → chat-provider-9hCT654s.mjs} +2 -2
  12. package/dist/{chat-provider-BChYrrA7.d.mts → chat-provider-DJpFUaFv.d.mts} +2 -3
  13. package/dist/cli-commands.d.mts +1 -1
  14. package/dist/cli-commands.mjs +1 -1
  15. package/dist/cli-embedded.d.mts +2 -2
  16. package/dist/cli-embedded.mjs +1 -1
  17. package/dist/cli.mjs +6 -6
  18. package/dist/{commands-CpyPV_tk.d.mts → commands-BOBQHVqM.d.mts} +9 -0
  19. package/dist/{commands-DsnQKTdB.mjs → commands-CHoMl06v.mjs} +12 -1
  20. package/dist/{conformance-3RBKxwbp.mjs → conformance-qKmGLTAT.mjs} +5 -5
  21. package/dist/conformance.d.mts +1 -1
  22. package/dist/conformance.mjs +1 -1
  23. package/dist/{engine-DurYIRt8.mjs → engine-JxgZiikU.mjs} +6 -8
  24. package/dist/{errors-CJXhhzvT.mjs → errors-Pk0XV1hK.mjs} +56 -2
  25. package/dist/{events-lujPA3gQ.mjs → events-IQg0k281.mjs} +2 -2
  26. package/dist/exports-BuKjVq2t.d.mts +4 -0
  27. package/dist/exports-gHDHlg0i.mjs +3207 -0
  28. package/dist/{external-D3p5T57R.mjs → external-CYe424fO.mjs} +1 -1
  29. package/dist/{folds-DLUzfibJ.d.mts → folds-DjFTiqIM.d.mts} +38 -44
  30. package/dist/index-CXvvYNYj.d.mts +11 -0
  31. package/dist/index.d.mts +9 -8
  32. package/dist/index.mjs +21 -8
  33. package/dist/index.node.d.mts +5 -6
  34. package/dist/index.node.mjs +3 -3
  35. package/dist/inspect/app.js +95 -95
  36. package/dist/{internal-CvsrprnU-zZMpDiRY.mjs → internal-CvsrprnU-CEPOUpAv.mjs} +63 -43
  37. package/dist/local-BbLjA5vI.mjs +8818 -0
  38. package/dist/{main-CcYDo9Hb.mjs → main-CQpCZJFw.mjs} +91 -23
  39. package/dist/{backend-a2/store-memory.mjs → memory-7RRnLa4X.mjs} +3 -3
  40. package/dist/middleware-BU7rVi9F.mjs +103 -0
  41. package/dist/{client-COfYrgfV.d.mts → provider-BlzUvcM9.d.mts} +665 -5
  42. package/dist/{schemas-DBmUO6pr.mjs → schemas-BG205xds.mjs} +2 -5
  43. package/dist/{serve-Bplieh0C.mjs → serve-D8_W4UN6.mjs} +33 -24
  44. package/dist/{node-BgeGcwX0.mjs → server-BiIUXWbU.mjs} +419 -6
  45. package/dist/{serving-Y7s7VDjB.mjs → serving-D7rcUtSC.mjs} +1 -1
  46. package/dist/{sql-E1K5g_ih.mjs → sql-BQzKUqQt.mjs} +349 -114
  47. package/dist/sqlite-DCtZFEVm.mjs +30 -0
  48. package/dist/{sqlite-db-CzcD_FW8.mjs → sqlite-db-qLTs52Ny.mjs} +2 -3
  49. package/dist/{store-codec-pAG2oPgQ-SqDXlPBR.mjs → store-N8PXxDAS-BdL4Sq-f.mjs} +6 -2
  50. package/dist/{store-memory-B0PkVSuQ.mjs → store-memory-CKQVEzXN.mjs} +2 -4
  51. package/dist/store-memory-OdGsc-t_.mjs +2 -0
  52. package/dist/{store-polling-BZt2Rf3D-Div-bJ_D.mjs → store-polling-BZt2Rf3D-oh3aU_An.mjs} +1 -1
  53. package/dist/store-sqlite-CTxAVCcz.mjs +2 -0
  54. package/dist/{store-sqlite-D85t3tE7.mjs → store-sqlite-D6fIszST.mjs} +3 -4
  55. package/dist/sync-chat-sdk.d.mts +2 -2
  56. package/dist/sync-chat-sdk.mjs +2 -2
  57. package/dist/sync-github.d.mts +2 -2
  58. package/dist/sync-github.mjs +2 -2
  59. package/dist/sync-linear.d.mts +2 -3
  60. package/dist/sync-linear.mjs +2 -2
  61. package/dist/sync-slack.d.mts +3 -3
  62. package/dist/sync-slack.mjs +4 -4
  63. package/dist/sync.d.mts +2 -2
  64. package/dist/sync.mjs +2 -2
  65. package/dist/{watchers-hash-CurCzwhe.mjs → targets-CknPGGVi.mjs} +40 -10
  66. package/dist/{tokens-C7kYyrAG.mjs → tokens-DPKjl3jf.mjs} +15 -43
  67. package/docs/01-board/01-mounting.md +243 -288
  68. package/docs/01-board/03-identity.md +41 -50
  69. package/docs/01-board/04-messages.md +15 -14
  70. package/docs/01-board/05-reading.md +3 -3
  71. package/docs/01-board/06-watchers.md +58 -105
  72. package/docs/01-board/07-schedules.md +21 -41
  73. package/docs/01-board/08-middleware.md +11 -17
  74. package/docs/01-board/09-access.md +76 -313
  75. package/docs/01-board/10-local.md +81 -0
  76. package/docs/01-quickstart.md +49 -126
  77. package/docs/02-sync/01-overview.md +25 -80
  78. package/docs/02-sync/02-functions.md +10 -16
  79. package/docs/02-sync/03-slack.md +13 -26
  80. package/docs/02-sync/04-github.md +8 -20
  81. package/docs/02-sync/07-linear.md +6 -10
  82. package/docs/03-guides/02-inspector.md +3 -3
  83. package/docs/03-guides/03-ci.md +88 -128
  84. package/docs/03-guides/04-triage.md +7 -15
  85. package/docs/03-guides/05-agent-factory.md +30 -36
  86. package/docs/04-reference/01-cli.md +104 -22
  87. package/docs/04-reference/02-board.md +60 -74
  88. package/docs/04-reference/03-http.md +119 -57
  89. package/docs/04-reference/05-conformance.md +31 -45
  90. package/docs/index.md +41 -65
  91. package/package.json +12 -83
  92. package/dist/a2-DiDc77Uf.mjs +0 -4238
  93. package/dist/access-DPcrKIH_.d.mts +0 -37
  94. package/dist/backend-a2/blob-vercel.d.mts +0 -8
  95. package/dist/backend-a2/blob-vercel.mjs +0 -81
  96. package/dist/backend-a2/contract.d.mts +0 -828
  97. package/dist/backend-a2/contract.mjs +0 -5
  98. package/dist/backend-a2/scheduler-local.d.mts +0 -11
  99. package/dist/backend-a2/scheduler-local.mjs +0 -2
  100. package/dist/backend-a2/scheduler-qstash.d.mts +0 -79
  101. package/dist/backend-a2/scheduler-qstash.mjs +0 -522
  102. package/dist/backend-a2/scheduler-vercel.d.mts +0 -38
  103. package/dist/backend-a2/scheduler-vercel.mjs +0 -204
  104. package/dist/backend-a2/store-memory.d.mts +0 -11
  105. package/dist/backend-a2/store-postgres.d.mts +0 -38
  106. package/dist/backend-a2/store-postgres.mjs +0 -2977
  107. package/dist/backend-a2/store-redis-http.d.mts +0 -17
  108. package/dist/backend-a2/store-redis-http.mjs +0 -520
  109. package/dist/backend-a2/store-redis.d.mts +0 -31
  110. package/dist/backend-a2/store-redis.mjs +0 -88
  111. package/dist/backend-a2/store-sqlite.d.mts +0 -12
  112. package/dist/backend-a2/store-sqlite.mjs +0 -31
  113. package/dist/backend-a2.d.mts +0 -2633
  114. package/dist/backend-a2.mjs +0 -3
  115. package/dist/backend-http-CaN06CaD.d.mts +0 -672
  116. package/dist/backend-http-CoaCghuJ.mjs +0 -18
  117. package/dist/backend-http-l5A8UmL-.mjs +0 -585
  118. package/dist/backend-http.d.mts +0 -10
  119. package/dist/backend-http.mjs +0 -2
  120. package/dist/backend-http.node.d.mts +0 -10
  121. package/dist/backend-http.node.mjs +0 -2
  122. package/dist/backend-vercel-BE65okBC.mjs +0 -86
  123. package/dist/backend-vercel-CVxoTNF2.mjs +0 -1744
  124. package/dist/backend-vercel-jg-6PAgD.d.mts +0 -674
  125. package/dist/backend-vercel.d.mts +0 -9
  126. package/dist/backend-vercel.mjs +0 -11
  127. package/dist/backend-vercel.node.d.mts +0 -17
  128. package/dist/backend-vercel.node.mjs +0 -2
  129. package/dist/blob-Bx8QPWEd.d.mts +0 -40
  130. package/dist/blob-WbB2DJKn.mjs +0 -201
  131. package/dist/errors-2vGs49Db.d.mts +0 -16
  132. package/dist/exports-BnUZuRm9.mjs +0 -1389
  133. package/dist/exports-u5mApVvn.d.mts +0 -5
  134. package/dist/files-SniSmeEr.mjs +0 -47
  135. package/dist/folds-DsWfIftc.mjs +0 -208
  136. package/dist/index-UXpTPWNc.d.mts +0 -11
  137. package/dist/index.default-Dp8gexln.mjs +0 -12
  138. package/dist/local-C76Fy5ad.mjs +0 -44
  139. package/dist/middleware-BavYSDUa.mjs +0 -62
  140. package/dist/platform-B4TnJtWu-Do3agKr5.mjs +0 -32
  141. package/dist/project-4Vl7_uy5.mjs +0 -124
  142. package/dist/provider-gynDUoyW.d.mts +0 -665
  143. package/dist/redis-tables-BFRj_SEJ.mjs +0 -3895
  144. package/dist/reducer-Bswr11ar-P324o9vn.mjs +0 -74
  145. package/dist/reducer-CYPHsSmd-BXjGiptm.d.mts +0 -170
  146. package/dist/reducers-DQVSP3kk.mjs +0 -538
  147. package/dist/retryable-lazy-DZWmHpii-DpTc5PIP.mjs +0 -19
  148. package/dist/scheduler-task-X1SToDjP-D2Il2rln.mjs +0 -69
  149. package/dist/server-B9gu0qi1-DI1WvcVK.d.mts +0 -391
  150. package/dist/server-DX7mM6nm-D7N_7bug.mjs +0 -3611
  151. package/dist/server-wIpAEjpX.mjs +0 -17
  152. package/dist/session-clear-XJYpmUpg-2q8l_FJR.mjs +0 -63
  153. package/dist/store-DEzcHZOA-B-5vhxef.d.mts +0 -540
  154. package/dist/store-N8PXxDAS-DWWgv-Vz.mjs +0 -5
  155. package/dist/store-memory-4IBl0Ztu.mjs +0 -2
  156. package/dist/store-presence-polling-JuAy2Ck2-Dh-g_KYM.mjs +0 -109
  157. package/dist/store-sqlite-iBTYYKBj.mjs +0 -2
  158. package/dist/stream-buffer-DrTyiIuo-Be10yOBR.mjs +0 -53
  159. package/dist/targets-Cgjs29T0.mjs +0 -33
  160. package/dist/types-CmrFjpml.d.mts +0 -102
  161. package/dist/wait-until-Dw4XrIDQ.mjs +0 -42
  162. package/docs/01-board/02-database.md +0 -258
  163. package/docs/04-reference/04-log.md +0 -247
  164. package/sql/postgres/board.sql +0 -145
  165. package/sql/postgres/notifications.sql +0 -24
  166. package/sql/postgres/schema.sql +0 -451
@@ -1,674 +0,0 @@
1
- import { t as Actor, x as Attachment } from "./folds-DLUzfibJ.mjs";
2
- 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, o as ProfileOption, 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";
3
- import { i as Caller, n as BackendRoute, r as BoardBinding } from "./backend-DxE9wGKm.mjs";
4
- //#region src/server/backend-vercel.d.ts
5
- type VercelOptions = {
6
- /** The team whose board it is: its ID (`team_…`) or its slug. In Node, by default your deployment's, or `VERCEL_ORG_ID`. */
7
- team?: string;
8
- /** The board's ID. By default the team's board, which `GET /boards` names. */
9
- board?: string;
10
- /** Vercel's API, `https://api.vercel.com` by default. */
11
- api?: string;
12
- /**
13
- * How requests reach the API, with credentials it takes. In Node it defaults to `VERCEL_TOKEN`,
14
- * a deployment's OIDC token, or your `vercel login`. Elsewhere, pass one that sends them.
15
- */
16
- fetch?: typeof fetch;
17
- /** How files reach Vercel's storage, on URLs the API signs: `fetch` by default, never with credentials. */
18
- files?: typeof fetch;
19
- };
20
- /** What finds the API's credentials and the team, in the Node build. A browser has none. */
21
- type VercelEnvironment = {
22
- /** A fetch that adds the credentials. */
23
- fetch(): typeof fetch;
24
- /** The team, when the environment says which. */
25
- team(): Promise<string | null>;
26
- /** The profile the environment picks (`BOARD_AS`, or the coding agent it runs in), and that agent's session. */
27
- profile(): {
28
- profile: ProfileOption;
29
- session: string | null;
30
- };
31
- };
32
- /**
33
- * Vercel's board for your team, in Vercel's API: this deployment keeps nothing and reads and writes
34
- * it as itself, its people as themselves. Messages, threads, reactions, labels, a channel's
35
- * changes, schedules, files, and watchers work; what the API keeps none of yet (sync) answers 501.
36
- */
37
- declare function createVercel(options: VercelOptions, environment: VercelEnvironment | null): {
38
- discovery: (caller: Caller, input: {
39
- [x: string]: never;
40
- }, signal: AbortSignal) => Promise<Discovery>;
41
- me: (caller: Caller, input: {
42
- [x: string]: never;
43
- }, signal: AbortSignal) => Promise<Me>;
44
- channels: (caller: Caller, input: {
45
- [x: string]: never;
46
- }, signal: AbortSignal) => Promise<{
47
- channels: ChannelView[];
48
- cursor: string;
49
- }>;
50
- createChannel: (caller: Caller, input: {
51
- path: string;
52
- }, signal: AbortSignal) => Promise<{
53
- channel: ChannelView;
54
- created: boolean;
55
- }>;
56
- actors: (caller: Caller, input: {
57
- [x: string]: never;
58
- }, signal: AbortSignal) => Promise<{
59
- actors: Actor[];
60
- cursor: string;
61
- }>;
62
- messages: (caller: Caller, input: {
63
- channel?: string | undefined;
64
- re?: string | undefined;
65
- by?: string | undefined;
66
- mentions?: string | undefined;
67
- label?: (readonly [string, null] | readonly [string, string[]])[] | undefined;
68
- from?: string | undefined;
69
- text?: string | undefined;
70
- after?: string | undefined;
71
- before?: string | undefined;
72
- limit?: number | undefined;
73
- }, signal: AbortSignal) => Promise<MessagesPage>;
74
- threads: (caller: Caller, input: {
75
- channel?: string | undefined;
76
- re?: string | undefined;
77
- by?: string | undefined;
78
- mentions?: string | undefined;
79
- label?: (readonly [string, null] | readonly [string, string[]])[] | undefined;
80
- from?: string | undefined;
81
- text?: string | undefined;
82
- after?: string | undefined;
83
- limit?: number | undefined;
84
- }, signal: AbortSignal) => Promise<ThreadsPage>;
85
- message: (caller: Caller, input: {
86
- id: string;
87
- }, signal: AbortSignal) => Promise<ThreadView>;
88
- post: (caller: Caller, input: {
89
- channel?: string | undefined;
90
- re?: string | undefined;
91
- text: string;
92
- labels?: Record<string, string> | undefined;
93
- noSync?: boolean | undefined;
94
- sync?: (string | {
95
- target: string;
96
- kind: "channel" | "thread";
97
- })[] | undefined;
98
- id?: string | undefined;
99
- attachments?: string[] | undefined;
100
- after?: string | undefined;
101
- }, signal: AbortSignal) => Promise<{
102
- message: MessageView;
103
- unknownMentions?: string[];
104
- }>;
105
- posted: (caller: Caller, input: {
106
- id: string;
107
- }, signal: AbortSignal) => Promise<{
108
- message: MessageView;
109
- }>;
110
- edit: (caller: Caller, input: {
111
- id: string;
112
- } & {
113
- text: string;
114
- revision?: number | undefined;
115
- }, signal: AbortSignal) => Promise<{
116
- ok: true;
117
- unknownMentions?: string[];
118
- }>;
119
- delete: (caller: Caller, input: {
120
- id: string;
121
- } & {
122
- revision?: number | undefined;
123
- }, signal: AbortSignal) => Promise<{
124
- ok: true;
125
- }>;
126
- react: (caller: Caller, input: {
127
- id: string;
128
- } & {
129
- emoji: string;
130
- remove?: boolean | undefined;
131
- }, signal: AbortSignal) => Promise<{
132
- ok: true;
133
- }>;
134
- label: (caller: Caller, input: {
135
- id: string;
136
- } & {
137
- set?: Record<string, string> | undefined;
138
- unset?: string[] | undefined;
139
- if?: Record<string, string | null> | undefined;
140
- }, signal: AbortSignal) => Promise<{
141
- ok: true;
142
- }>;
143
- schedule: (caller: Caller, input: {
144
- channel?: string | undefined;
145
- re?: string | undefined;
146
- text: string;
147
- labels?: Record<string, string> | undefined;
148
- noSync?: boolean | undefined;
149
- attachments?: string[] | undefined;
150
- in?: string | undefined;
151
- at?: string | undefined;
152
- every?: string | undefined;
153
- until?: string | undefined;
154
- for?: string | undefined;
155
- times?: number | undefined;
156
- }, signal: AbortSignal) => Promise<{
157
- schedule: ScheduleView;
158
- unknownMentions?: string[];
159
- }>;
160
- schedules: (caller: Caller, input: {
161
- re?: string | undefined;
162
- channel?: string | undefined;
163
- by?: string | undefined;
164
- all?: boolean | undefined;
165
- }, signal: AbortSignal) => Promise<{
166
- schedules: ScheduleView[];
167
- }>;
168
- cancelSchedule: (caller: Caller, input: {
169
- id: string;
170
- }, signal: AbortSignal) => Promise<{
171
- schedule: ScheduleView;
172
- canceled: boolean;
173
- }>;
174
- grants: (caller: Caller, input: {
175
- [x: string]: never;
176
- }, signal: AbortSignal) => Promise<{
177
- grants: GrantView[];
178
- }>;
179
- createGrant: (caller: Caller, input: {
180
- issuer: string;
181
- claims: Record<string, string | string[]>;
182
- can?: "all" | string[] | Record<string, "all" | string[]> | undefined;
183
- }, signal: AbortSignal) => Promise<{
184
- grant: GrantView;
185
- created: boolean;
186
- }>;
187
- revokeGrant: (caller: Caller, input: {
188
- id: string;
189
- }, signal: AbortSignal) => Promise<{
190
- revoked: boolean;
191
- }>;
192
- tokens: (caller: Caller, input: {
193
- [x: string]: never;
194
- }, signal: AbortSignal) => Promise<{
195
- tokens: TokenView[];
196
- }>;
197
- createToken: (caller: Caller, input: {
198
- name: string;
199
- can?: "all" | string[] | Record<string, "all" | string[]> | undefined;
200
- profile?: string | undefined;
201
- avatar?: string | undefined;
202
- session?: string | undefined;
203
- expires?: string | undefined;
204
- }, signal: AbortSignal) => Promise<{
205
- token: TokenView;
206
- secret: string;
207
- }>;
208
- revokeToken: (caller: Caller, input: {
209
- id: string;
210
- }, signal: AbortSignal) => Promise<{
211
- revoked: boolean;
212
- }>;
213
- upload: (caller: Caller, input: {
214
- data: Uint8Array;
215
- name: string | null;
216
- type: string | null;
217
- }, signal: AbortSignal) => Promise<{
218
- attachment: Attachment;
219
- }>;
220
- attachment: (caller: Caller, input: {
221
- id: string;
222
- }, signal: AbortSignal) => Promise<{
223
- attachment: Attachment;
224
- data: Uint8Array | ReadableStream<Uint8Array>;
225
- }>;
226
- uploadStart: (caller: Caller, input: {
227
- name?: string | null | undefined;
228
- type?: string | null | undefined;
229
- size: number;
230
- sha256?: string | undefined;
231
- }, signal: AbortSignal) => Promise<UploadTicket>;
232
- uploadFinish: (caller: Caller, input: {
233
- id: string;
234
- }, signal: AbortSignal) => Promise<{
235
- attachment: Attachment;
236
- }>;
237
- watchers: (caller: Caller, input: {
238
- [x: string]: never;
239
- }, signal: AbortSignal) => Promise<{
240
- watchers: RegistrationView[];
241
- }>;
242
- register: (caller: Caller, input: {
243
- watch: Record<string, {
244
- tail: string;
245
- when: "enters" | "matches";
246
- }>;
247
- sync?: {
248
- key: string;
249
- platform: string;
250
- }[] | undefined;
251
- url?: string | null | undefined;
252
- path?: null | undefined;
253
- branch?: null | undefined;
254
- } | {
255
- watch: Record<string, {
256
- tail: string;
257
- when: "enters" | "matches";
258
- }>;
259
- sync?: {
260
- key: string;
261
- platform: string;
262
- }[] | undefined;
263
- url?: null | undefined;
264
- path: string;
265
- branch?: string | null | undefined;
266
- }, signal: AbortSignal) => Promise<RegistrationView>;
267
- matches: (caller: Caller, input: {
268
- limit?: number | undefined;
269
- wait?: number | undefined;
270
- }, signal: AbortSignal) => Promise<{
271
- matches: MatchView[];
272
- }>;
273
- ack: (caller: Caller, input: {
274
- id: string;
275
- } & {
276
- lease: string;
277
- error?: string | undefined;
278
- skip?: boolean | undefined;
279
- }, signal: AbortSignal) => Promise<{
280
- ok: true;
281
- }>;
282
- events: (caller: Caller, input: {
283
- channel?: string | undefined;
284
- re?: string | undefined;
285
- by?: string | undefined;
286
- mentions?: string | undefined;
287
- label?: (readonly [string, null] | readonly [string, string[]])[] | undefined;
288
- from?: string | undefined;
289
- text?: string | undefined;
290
- after?: string | undefined;
291
- wait?: number | undefined;
292
- all?: boolean | undefined;
293
- }, signal: AbortSignal) => Promise<EventsPage>;
294
- typing: (caller: Caller, input: {
295
- id: string;
296
- } & {
297
- status?: string | undefined;
298
- }, signal: AbortSignal) => Promise<{
299
- targets: string[];
300
- }>;
301
- readSource: (caller: Caller, input: {
302
- key: string;
303
- } & {
304
- target: string;
305
- limit?: number | undefined;
306
- after?: string | undefined;
307
- }, signal: AbortSignal) => Promise<SourceRead>;
308
- joinSource: (caller: Caller, input: {
309
- key: string;
310
- } & {
311
- target: string;
312
- }, signal: AbortSignal) => Promise<SourceJoin>;
313
- synced: (caller: Caller, input: {
314
- id: string;
315
- }, signal: AbortSignal) => Promise<SyncedView>;
316
- linked: (caller: Caller, input: {
317
- url: string;
318
- }, signal: AbortSignal) => Promise<ThreadView>;
319
- syncImport: (caller: Caller, input: {
320
- author: {
321
- id: string;
322
- handle: string;
323
- name: string;
324
- isBot: boolean;
325
- avatar: string | null;
326
- };
327
- from: string | null;
328
- op: "post";
329
- origin: {
330
- channel?: string | undefined;
331
- thread: string;
332
- subthread: string | null;
333
- message: string;
334
- context: string | null;
335
- } | null;
336
- source?: {
337
- key: string;
338
- channel: string;
339
- thread: string;
340
- } | undefined;
341
- channel?: string | undefined;
342
- re?: string | undefined;
343
- text: string;
344
- labels?: Record<string, string> | undefined;
345
- noSync?: boolean | undefined;
346
- attachments?: string[] | undefined;
347
- links?: {
348
- url: string;
349
- snapshot: {
350
- author: string;
351
- text: string;
352
- createdAt: string | null;
353
- files: {
354
- name: string;
355
- url: string | null;
356
- }[];
357
- } | null;
358
- unavailable: string | null;
359
- message: string | null;
360
- }[] | undefined;
361
- id?: string | undefined;
362
- after?: string | undefined;
363
- } | {
364
- author: {
365
- id: string;
366
- handle: string;
367
- name: string;
368
- isBot: boolean;
369
- avatar: string | null;
370
- };
371
- from: string | null;
372
- origin?: {
373
- thread: string;
374
- message?: string | undefined;
375
- } | undefined;
376
- message?: string | undefined;
377
- op: "edit";
378
- text: string;
379
- source?: {
380
- key: string;
381
- channel: string;
382
- thread: string;
383
- } | undefined;
384
- revision?: number | undefined;
385
- } | {
386
- author: {
387
- id: string;
388
- handle: string;
389
- name: string;
390
- isBot: boolean;
391
- avatar: string | null;
392
- };
393
- from: string | null;
394
- origin?: {
395
- thread: string;
396
- message?: string | undefined;
397
- } | undefined;
398
- message?: string | undefined;
399
- op: "delete";
400
- revision?: number | undefined;
401
- } | {
402
- author: {
403
- id: string;
404
- handle: string;
405
- name: string;
406
- isBot: boolean;
407
- avatar: string | null;
408
- };
409
- from: string | null;
410
- origin?: {
411
- thread: string;
412
- message?: string | undefined;
413
- } | undefined;
414
- message?: string | undefined;
415
- op: "react";
416
- emoji: string;
417
- remove?: boolean | undefined;
418
- } | {
419
- author: {
420
- id: string;
421
- handle: string;
422
- name: string;
423
- isBot: boolean;
424
- avatar: string | null;
425
- };
426
- from: string | null;
427
- origin?: {
428
- thread: string;
429
- message?: string | undefined;
430
- } | undefined;
431
- message?: string | undefined;
432
- op: "labels";
433
- set?: Record<string, string> | undefined;
434
- unset?: string[] | undefined;
435
- if?: Record<string, string | null> | undefined;
436
- } | {
437
- author: {
438
- id: string;
439
- handle: string;
440
- name: string;
441
- isBot: boolean;
442
- avatar: string | null;
443
- };
444
- from: string | null;
445
- origin?: {
446
- thread: string;
447
- message?: string | undefined;
448
- } | undefined;
449
- message?: string | undefined;
450
- op: "links";
451
- links: {
452
- url: string;
453
- snapshot: {
454
- author: string;
455
- text: string;
456
- createdAt: string | null;
457
- files: {
458
- name: string;
459
- url: string | null;
460
- }[];
461
- } | null;
462
- unavailable: string | null;
463
- message: string | null;
464
- }[];
465
- } | {
466
- op: "seen";
467
- author: {
468
- id: string;
469
- handle: string;
470
- name: string;
471
- isBot: boolean;
472
- avatar: string | null;
473
- };
474
- }, signal: AbortSignal) => Promise<{
475
- message: string | null;
476
- dropped?: string[];
477
- }>;
478
- syncReceipt: (caller: Caller, input: {
479
- kind: "message";
480
- message: string;
481
- target: string;
482
- external: {
483
- thread: string;
484
- message: string;
485
- };
486
- files?: string[] | null | undefined;
487
- } | {
488
- kind: "files";
489
- message: string;
490
- target: string;
491
- files: string[] | null;
492
- } | {
493
- kind: "failed";
494
- message: string;
495
- target: string;
496
- error: string;
497
- } | {
498
- kind: "thread";
499
- message: string;
500
- target: string;
501
- targetKind: "channel" | "thread";
502
- cause: "config" | "request";
503
- }, signal: AbortSignal) => Promise<{
504
- ok: true;
505
- attached?: boolean;
506
- }>;
507
- syncThread: (caller: Caller, input: {
508
- thread: string;
509
- }, signal: AbortSignal) => Promise<SyncThreadView>;
510
- syncFind: (caller: Caller, input: {
511
- post?: string | undefined;
512
- thread?: string | undefined;
513
- message?: string | undefined;
514
- }, signal: AbortSignal) => Promise<SyncFindView>;
515
- syncCopies: (caller: Caller, input: {
516
- message: string[];
517
- }, signal: AbortSignal) => Promise<SyncCopiesView>;
518
- inboxPush: (caller: Caller, input: {
519
- key: string;
520
- } & {
521
- events: {
522
- id: string;
523
- event: {
524
- channel: string;
525
- thread: string;
526
- subthread: string | null;
527
- kind: "message";
528
- message: string;
529
- isRoot: boolean;
530
- text: string;
531
- context: string | null;
532
- author: {
533
- id: string;
534
- handle: string;
535
- name: string;
536
- avatar: string | null;
537
- isBot: boolean;
538
- };
539
- files?: {
540
- type: "audio" | "file" | "image" | "video";
541
- name?: string | undefined;
542
- mimeType?: string | undefined;
543
- size?: number | undefined;
544
- url?: string | undefined;
545
- fetchMetadata?: Record<string, string> | undefined;
546
- }[] | undefined;
547
- links?: {
548
- url: string;
549
- thread: string;
550
- message: string;
551
- snapshot: {
552
- author: string;
553
- text: string;
554
- createdAt: string | null;
555
- files: {
556
- name: string;
557
- url: string | null;
558
- }[];
559
- } | null;
560
- }[] | undefined;
561
- } | {
562
- channel: string;
563
- thread: string;
564
- subthread: string | null;
565
- kind: "edited";
566
- message: string;
567
- text: string;
568
- author: {
569
- id: string;
570
- handle: string;
571
- name: string;
572
- avatar: string | null;
573
- isBot: boolean;
574
- };
575
- links?: {
576
- url: string;
577
- thread: string;
578
- message: string;
579
- snapshot: {
580
- author: string;
581
- text: string;
582
- createdAt: string | null;
583
- files: {
584
- name: string;
585
- url: string | null;
586
- }[];
587
- } | null;
588
- }[] | undefined;
589
- linksOnly?: boolean | undefined;
590
- } | {
591
- channel: string;
592
- thread: string;
593
- subthread: string | null;
594
- kind: "deleted";
595
- message: string;
596
- } | {
597
- channel: string;
598
- thread: string;
599
- subthread: string | null;
600
- kind: "reaction";
601
- message: string;
602
- emoji: string;
603
- added: boolean;
604
- author: {
605
- id: string;
606
- handle: string;
607
- name: string;
608
- avatar: string | null;
609
- isBot: boolean;
610
- };
611
- } | {
612
- channel: string;
613
- thread: string;
614
- kind: "lifecycle";
615
- type: string;
616
- title: string;
617
- url: string | null;
618
- body?: string | null | undefined;
619
- labels: Record<string, string>;
620
- unset: string[];
621
- owns?: string[] | undefined;
622
- reply: string | null;
623
- createRoot: boolean;
624
- retitled?: boolean | undefined;
625
- author: {
626
- id: string;
627
- handle: string;
628
- name: string;
629
- avatar: string | null;
630
- isBot: boolean;
631
- };
632
- };
633
- raw: unknown;
634
- }[];
635
- }, signal: AbortSignal) => Promise<{
636
- ok: true;
637
- }>;
638
- inboxNext: (caller: Caller, input: {
639
- key: string;
640
- } & {
641
- limit?: number | undefined;
642
- }, signal: AbortSignal) => Promise<{
643
- items: InboxItem[];
644
- }>;
645
- inboxAck: (caller: Caller, input: {
646
- key: string;
647
- } & {
648
- id: string;
649
- } & {
650
- lease: string;
651
- error?: string | undefined;
652
- }, signal: AbortSignal) => Promise<{
653
- ok: true;
654
- }>;
655
- inbox: (caller: Caller, input: {
656
- key: string;
657
- } & {
658
- channel?: string | undefined;
659
- limit?: number | undefined;
660
- }, signal: AbortSignal) => Promise<{
661
- events: InboxEntry[];
662
- }>;
663
- routes: BackendRoute[];
664
- keeps: boolean;
665
- sendsSchedulesHere: boolean;
666
- bind(next: BoardBinding): void;
667
- /** Registers this board's watchers with Vercel's API now, as `POST /watchers` does. */
668
- registerWatchers: () => Promise<RegistrationView>;
669
- /** Stops pulling, for a board that pulls on its own. */
670
- close: () => void;
671
- };
672
- type VercelBackend = ReturnType<typeof createVercel>;
673
- //#endregion
674
- export { VercelOptions as n, VercelBackend as t };
@@ -1,9 +0,0 @@
1
- import { n as VercelOptions, t as VercelBackend } from "./backend-vercel-jg-6PAgD.mjs";
2
- //#region src/backend-vercel/index.default.d.ts
3
- /**
4
- * Your team's board, in Vercel's API. Outside Node there's no environment to find credentials or
5
- * the team in: pass `team`, and a `fetch` that sends a token Vercel's API takes.
6
- */
7
- export declare function vercel(options?: VercelOptions): VercelBackend;
8
- //#endregion
9
- export type { VercelBackend, VercelOptions };
@@ -1,11 +0,0 @@
1
- import { t as createVercel } from "./backend-vercel-CVxoTNF2.mjs";
2
- //#region src/backend-vercel/index.default.ts
3
- /**
4
- * Your team's board, in Vercel's API. Outside Node there's no environment to find credentials or
5
- * the team in: pass `team`, and a `fetch` that sends a token Vercel's API takes.
6
- */
7
- function vercel(options = {}) {
8
- return createVercel(options, null);
9
- }
10
- //#endregion
11
- export { vercel };
@@ -1,17 +0,0 @@
1
- import { n as VercelOptions, t as VercelBackend } from "./backend-vercel-jg-6PAgD.mjs";
2
- //#region src/backend-vercel/index.d.ts
3
- /** Where `token` comes from, in words: what `vb whoami` says. */
4
- export declare function credentialSource(): string;
5
- /**
6
- * Hands board the team to use when nothing names one (`--scope` still wins), resolved as the app
7
- * resolves its own and asked for only when a request needs it. Null takes it back.
8
- */
9
- export declare function handTeam(resolve: (() => Promise<string | null>) | null): void;
10
- /**
11
- * Your team's board, in Vercel's API: this board keeps nothing, and reads and writes that one as
12
- * this deployment's project, or as you. Without `board`, the team's board; without `fetch`, it
13
- * sends the credentials the Vercel CLI or the deployment has.
14
- */
15
- export declare function vercel(options?: VercelOptions): VercelBackend;
16
- //#endregion
17
- export type { VercelBackend, VercelOptions };
@@ -1,2 +0,0 @@
1
- import { n as handTeam, r as vercel, t as credentialSource } from "./backend-vercel-BE65okBC.mjs";
2
- export { credentialSource, handTeam, vercel };