@band-ai/sdk 0.3.4 → 0.4.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 +54 -1
- package/dist/{ClaudeSDKAdapter-CXud2DBE.d.ts → CopilotACPAdapter-BCpbHFB0.d.ts} +240 -19
- package/dist/{ClaudeSDKAdapter-Cx6zhSaG.d.cts → CopilotACPAdapter-D4VWg8lJ.d.cts} +240 -19
- package/dist/{opencode-2YdscIc1.d.cts → acp-client-D-I_5lK-.d.cts} +23 -4
- package/dist/{opencode-Bld62x5t.d.ts → acp-client-DUXyczlF.d.ts} +23 -4
- package/dist/acp-server-BlcYMxKt.d.ts +17 -0
- package/dist/acp-server-CJhclo6P.d.cts +17 -0
- package/dist/adapters.cjs +2205 -969
- package/dist/adapters.d.cts +21 -132
- package/dist/adapters.d.ts +21 -132
- package/dist/adapters.js +26 -1922
- package/dist/{backends-D-dBdDm-.d.ts → backends-CgsPQa9B.d.ts} +2 -2
- package/dist/{backends-ZLxmQrTZ.d.cts → backends-Dh2WXcHQ.d.cts} +2 -2
- package/dist/{chunk-JY75VSQK.js → chunk-4OVNFDD7.js} +14 -1
- package/dist/chunk-6BE2EG5P.js +128 -0
- package/dist/{chunk-U6AFCLYZ.js → chunk-6TGXV5TE.js} +1824 -514
- package/dist/{chunk-OH6VVVKT.js → chunk-CBCHTTUY.js} +10 -0
- package/dist/{chunk-K5KAEYPF.js → chunk-HNWZZXAE.js} +288 -120
- package/dist/chunk-I34SXMTJ.js +6 -0
- package/dist/{chunk-XWHWJP4I.js → chunk-JDW5WSGF.js} +2 -2
- package/dist/{chunk-KXJ74J73.js → chunk-JIZE4EC6.js} +4 -10
- package/dist/chunk-OGOXY43L.js +119 -0
- package/dist/{chunk-W5IAI6Z4.js → chunk-OVXVZUPO.js} +5 -5
- package/dist/{chunk-YJ42AZO4.js → chunk-RJNJUISR.js} +5 -2
- package/dist/{chunk-MQY74R7D.js → chunk-SHZBLLDQ.js} +21 -9
- package/dist/{chunk-JADCAMZY.js → chunk-TGDDFBYS.js} +45 -0
- package/dist/{chunk-US226AS4.js → chunk-UENIC5FJ.js} +14 -11
- package/dist/{chunk-WA7CHXUS.js → chunk-UL3Y5C4J.js} +2 -2
- package/dist/{chunk-WL2HNJZ6.js → chunk-VOMJRQOM.js} +3 -3
- package/dist/{chunk-MQBBWYRP.js → chunk-YF7K4UB3.js} +3352 -572
- package/dist/{chunk-OD2G5LFQ.js → chunk-ZYOXI4JL.js} +41 -2
- package/dist/config.cjs +2 -12
- package/dist/config.js +2 -2
- package/dist/converters.cjs +36 -11
- package/dist/converters.d.cts +7 -5
- package/dist/converters.d.ts +7 -5
- package/dist/converters.js +11 -13
- package/dist/core.cjs +239 -5
- package/dist/core.d.cts +71 -6
- package/dist/core.d.ts +71 -6
- package/dist/core.js +31 -6
- package/dist/{customTools-BzF0IISO.d.cts → customTools-Bfecd0mJ.d.cts} +1 -1
- package/dist/{customTools-BzF0IISO.d.ts → customTools-Bfecd0mJ.d.ts} +1 -1
- package/dist/{disconnectReason-IuADl6TH.d.ts → disconnectReason-Cctmg1SN.d.cts} +1 -1
- package/dist/{disconnectReason-IuADl6TH.d.cts → disconnectReason-Cctmg1SN.d.ts} +1 -1
- package/dist/{dtos-B8KU_q4d.d.ts → dtos-CjQsN1_h.d.cts} +5 -12
- package/dist/{dtos-B8KU_q4d.d.cts → dtos-CjQsN1_h.d.ts} +5 -12
- package/dist/index.cjs +5237 -1474
- package/dist/index.d.cts +61 -22
- package/dist/index.d.ts +61 -22
- package/dist/index.js +151 -43
- package/dist/linear.cjs +45 -7
- package/dist/linear.d.cts +4 -3
- package/dist/linear.d.ts +4 -3
- package/dist/linear.js +10 -10
- package/dist/mcp-claude.cjs +11 -6
- package/dist/mcp-claude.d.cts +4 -3
- package/dist/mcp-claude.d.ts +4 -3
- package/dist/mcp-claude.js +4 -5
- package/dist/mcp.cjs +13 -7
- package/dist/mcp.d.cts +6 -5
- package/dist/mcp.d.ts +6 -5
- package/dist/mcp.js +5 -6
- package/dist/{pagination-DqdkQArT.d.cts → pagination-BZDhB_nO.d.cts} +2 -2
- package/dist/{pagination-BgEx-HeL.d.ts → pagination-CPz0J_vQ.d.ts} +2 -2
- package/dist/{protocols-Bz1rxcUg.d.cts → protocols-CabgO52c.d.cts} +38 -3
- package/dist/{protocols-Bwwcql0h.d.ts → protocols-Dpci6uae.d.ts} +38 -3
- package/dist/rest.cjs +43 -1
- package/dist/rest.d.cts +6 -5
- package/dist/rest.d.ts +6 -5
- package/dist/rest.js +6 -5
- package/dist/runtime.cjs +2113 -597
- package/dist/runtime.d.cts +44 -25
- package/dist/runtime.d.ts +44 -25
- package/dist/runtime.js +11 -11
- package/dist/{schemas-BgJhlqqO.d.cts → schemas-BKnh4fKR.d.cts} +209 -24
- package/dist/{schemas-C4mK1WSs.d.ts → schemas-CDa3V_I5.d.ts} +209 -24
- package/dist/{sdk-BTciSLRQ.d.cts → sdk-CXNqzoY1.d.cts} +1 -1
- package/dist/{sdk-qKJtMma_.d.ts → sdk-Cin80BTC.d.ts} +1 -1
- package/dist/{simpleAdapter-BpT4XbZC.d.cts → simpleAdapter-D75rcz9n.d.cts} +3 -1
- package/dist/{simpleAdapter--wznuoOw.d.ts → simpleAdapter-eLvsAQNo.d.ts} +3 -1
- package/dist/testing.cjs +25 -7
- package/dist/testing.d.cts +5 -3
- package/dist/testing.d.ts +5 -3
- package/dist/testing.js +9 -6
- package/dist/{types-BivGO7I9.d.ts → types-42-HWeX8.d.cts} +10 -4
- package/dist/types-CKU1N0SK.d.ts +137 -0
- package/dist/{types-BgYFd_Yw.d.cts → types-CjxZekMH.d.ts} +10 -4
- package/dist/types-DtcOLALn.d.cts +137 -0
- package/package.json +25 -26
- package/dist/acp-server-CiUqN3G3.d.ts +0 -24
- package/dist/acp-server-Dlj7D563.d.cts +0 -24
- package/dist/chunk-AVVDPXP4.js +0 -39
- package/dist/chunk-F63TPOI3.js +0 -29
- package/dist/chunk-V5TSWS7P.js +0 -62
- package/dist/types-BNNtOXu3.d.cts +0 -446
- package/dist/types-DFUtpxah.d.ts +0 -446
|
@@ -1,446 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { P as ParticipantRecord } from './dtos-B8KU_q4d.cjs';
|
|
3
|
-
import { g as PlatformMessageLike, A as AdapterToolsProtocol, b as FrameworkAdapterInput, H as HistoryConverter } from './protocols-Bz1rxcUg.cjs';
|
|
4
|
-
|
|
5
|
-
declare const messageCreatedPayloadSchema: z.ZodObject<{
|
|
6
|
-
id: z.ZodString;
|
|
7
|
-
content: z.ZodString;
|
|
8
|
-
message_type: z.ZodString;
|
|
9
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
-
mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
21
|
-
id: z.ZodString;
|
|
22
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
26
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
27
|
-
mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
28
|
-
id: z.ZodString;
|
|
29
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
33
|
-
id: z.ZodString;
|
|
34
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
38
|
-
id: z.ZodString;
|
|
39
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
43
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
44
|
-
mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
45
|
-
id: z.ZodString;
|
|
46
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
50
|
-
id: z.ZodString;
|
|
51
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
55
|
-
id: z.ZodString;
|
|
56
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
60
|
-
}, z.ZodTypeAny, "passthrough">>>>;
|
|
61
|
-
sender_id: z.ZodString;
|
|
62
|
-
sender_type: z.ZodString;
|
|
63
|
-
sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
chat_room_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
-
inserted_at: z.ZodString;
|
|
66
|
-
updated_at: z.ZodString;
|
|
67
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
68
|
-
id: z.ZodString;
|
|
69
|
-
content: z.ZodString;
|
|
70
|
-
message_type: z.ZodString;
|
|
71
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
72
|
-
mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
73
|
-
id: z.ZodString;
|
|
74
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
78
|
-
id: z.ZodString;
|
|
79
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
83
|
-
id: z.ZodString;
|
|
84
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
88
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
89
|
-
mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
90
|
-
id: z.ZodString;
|
|
91
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
95
|
-
id: z.ZodString;
|
|
96
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
100
|
-
id: z.ZodString;
|
|
101
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
105
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
106
|
-
mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
107
|
-
id: z.ZodString;
|
|
108
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
112
|
-
id: z.ZodString;
|
|
113
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
117
|
-
id: z.ZodString;
|
|
118
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
122
|
-
}, z.ZodTypeAny, "passthrough">>>>;
|
|
123
|
-
sender_id: z.ZodString;
|
|
124
|
-
sender_type: z.ZodString;
|
|
125
|
-
sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
-
chat_room_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
-
inserted_at: z.ZodString;
|
|
128
|
-
updated_at: z.ZodString;
|
|
129
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
130
|
-
id: z.ZodString;
|
|
131
|
-
content: z.ZodString;
|
|
132
|
-
message_type: z.ZodString;
|
|
133
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
134
|
-
mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
135
|
-
id: z.ZodString;
|
|
136
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
140
|
-
id: z.ZodString;
|
|
141
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
145
|
-
id: z.ZodString;
|
|
146
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
150
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
151
|
-
mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
152
|
-
id: z.ZodString;
|
|
153
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
156
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
157
|
-
id: z.ZodString;
|
|
158
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
162
|
-
id: z.ZodString;
|
|
163
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
167
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
168
|
-
mentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
169
|
-
id: z.ZodString;
|
|
170
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
171
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
174
|
-
id: z.ZodString;
|
|
175
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
179
|
-
id: z.ZodString;
|
|
180
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
|
-
username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
183
|
-
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
184
|
-
}, z.ZodTypeAny, "passthrough">>>>;
|
|
185
|
-
sender_id: z.ZodString;
|
|
186
|
-
sender_type: z.ZodString;
|
|
187
|
-
sender_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
-
chat_room_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
189
|
-
inserted_at: z.ZodString;
|
|
190
|
-
updated_at: z.ZodString;
|
|
191
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
192
|
-
declare const roomAddedPayloadSchema: z.ZodObject<{
|
|
193
|
-
id: z.ZodString;
|
|
194
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
|
-
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
196
|
-
inserted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
-
owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
199
|
-
id: z.ZodString;
|
|
200
|
-
name: z.ZodString;
|
|
201
|
-
type: z.ZodString;
|
|
202
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
203
|
-
id: z.ZodString;
|
|
204
|
-
name: z.ZodString;
|
|
205
|
-
type: z.ZodString;
|
|
206
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
207
|
-
id: z.ZodString;
|
|
208
|
-
name: z.ZodString;
|
|
209
|
-
type: z.ZodString;
|
|
210
|
-
}, z.ZodTypeAny, "passthrough">>>>;
|
|
211
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
|
-
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
-
participant_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
216
|
-
id: z.ZodString;
|
|
217
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
-
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
-
inserted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
221
|
-
owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
222
|
-
id: z.ZodString;
|
|
223
|
-
name: z.ZodString;
|
|
224
|
-
type: z.ZodString;
|
|
225
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
226
|
-
id: z.ZodString;
|
|
227
|
-
name: z.ZodString;
|
|
228
|
-
type: z.ZodString;
|
|
229
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
230
|
-
id: z.ZodString;
|
|
231
|
-
name: z.ZodString;
|
|
232
|
-
type: z.ZodString;
|
|
233
|
-
}, z.ZodTypeAny, "passthrough">>>>;
|
|
234
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
-
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
236
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
|
-
participant_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
239
|
-
id: z.ZodString;
|
|
240
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
-
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
-
inserted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
|
-
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
-
owner: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
245
|
-
id: z.ZodString;
|
|
246
|
-
name: z.ZodString;
|
|
247
|
-
type: z.ZodString;
|
|
248
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
249
|
-
id: z.ZodString;
|
|
250
|
-
name: z.ZodString;
|
|
251
|
-
type: z.ZodString;
|
|
252
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
253
|
-
id: z.ZodString;
|
|
254
|
-
name: z.ZodString;
|
|
255
|
-
type: z.ZodString;
|
|
256
|
-
}, z.ZodTypeAny, "passthrough">>>>;
|
|
257
|
-
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
|
-
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
259
|
-
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
-
participant_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
261
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
262
|
-
declare const roomRemovedPayloadSchema: z.ZodObject<{
|
|
263
|
-
id: z.ZodString;
|
|
264
|
-
status: z.ZodString;
|
|
265
|
-
type: z.ZodString;
|
|
266
|
-
title: z.ZodString;
|
|
267
|
-
removed_at: z.ZodString;
|
|
268
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
269
|
-
id: z.ZodString;
|
|
270
|
-
status: z.ZodString;
|
|
271
|
-
type: z.ZodString;
|
|
272
|
-
title: z.ZodString;
|
|
273
|
-
removed_at: z.ZodString;
|
|
274
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
275
|
-
id: z.ZodString;
|
|
276
|
-
status: z.ZodString;
|
|
277
|
-
type: z.ZodString;
|
|
278
|
-
title: z.ZodString;
|
|
279
|
-
removed_at: z.ZodString;
|
|
280
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
281
|
-
declare const participantAddedPayloadSchema: z.ZodObject<{
|
|
282
|
-
id: z.ZodString;
|
|
283
|
-
name: z.ZodString;
|
|
284
|
-
type: z.ZodString;
|
|
285
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
287
|
-
id: z.ZodString;
|
|
288
|
-
name: z.ZodString;
|
|
289
|
-
type: z.ZodString;
|
|
290
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
292
|
-
id: z.ZodString;
|
|
293
|
-
name: z.ZodString;
|
|
294
|
-
type: z.ZodString;
|
|
295
|
-
handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
297
|
-
declare const participantRemovedPayloadSchema: z.ZodObject<{
|
|
298
|
-
id: z.ZodString;
|
|
299
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
300
|
-
id: z.ZodString;
|
|
301
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
302
|
-
id: z.ZodString;
|
|
303
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
304
|
-
declare const roomDeletedPayloadSchema: z.ZodObject<{
|
|
305
|
-
id: z.ZodString;
|
|
306
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
307
|
-
id: z.ZodString;
|
|
308
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
309
|
-
id: z.ZodString;
|
|
310
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
311
|
-
declare const contactRequestReceivedPayloadSchema: z.ZodObject<{
|
|
312
|
-
id: z.ZodString;
|
|
313
|
-
from_handle: z.ZodString;
|
|
314
|
-
from_name: z.ZodString;
|
|
315
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
|
-
status: z.ZodString;
|
|
317
|
-
inserted_at: z.ZodString;
|
|
318
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
319
|
-
id: z.ZodString;
|
|
320
|
-
from_handle: z.ZodString;
|
|
321
|
-
from_name: z.ZodString;
|
|
322
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
-
status: z.ZodString;
|
|
324
|
-
inserted_at: z.ZodString;
|
|
325
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
326
|
-
id: z.ZodString;
|
|
327
|
-
from_handle: z.ZodString;
|
|
328
|
-
from_name: z.ZodString;
|
|
329
|
-
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
|
-
status: z.ZodString;
|
|
331
|
-
inserted_at: z.ZodString;
|
|
332
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
333
|
-
declare const contactRequestUpdatedPayloadSchema: z.ZodObject<{
|
|
334
|
-
id: z.ZodString;
|
|
335
|
-
status: z.ZodString;
|
|
336
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
337
|
-
id: z.ZodString;
|
|
338
|
-
status: z.ZodString;
|
|
339
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
340
|
-
id: z.ZodString;
|
|
341
|
-
status: z.ZodString;
|
|
342
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
343
|
-
declare const contactAddedPayloadSchema: z.ZodObject<{
|
|
344
|
-
id: z.ZodString;
|
|
345
|
-
handle: z.ZodString;
|
|
346
|
-
name: z.ZodString;
|
|
347
|
-
type: z.ZodString;
|
|
348
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
349
|
-
is_external: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
350
|
-
inserted_at: z.ZodString;
|
|
351
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
352
|
-
id: z.ZodString;
|
|
353
|
-
handle: z.ZodString;
|
|
354
|
-
name: z.ZodString;
|
|
355
|
-
type: z.ZodString;
|
|
356
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
|
-
is_external: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
358
|
-
inserted_at: z.ZodString;
|
|
359
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
360
|
-
id: z.ZodString;
|
|
361
|
-
handle: z.ZodString;
|
|
362
|
-
name: z.ZodString;
|
|
363
|
-
type: z.ZodString;
|
|
364
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
365
|
-
is_external: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
366
|
-
inserted_at: z.ZodString;
|
|
367
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
368
|
-
declare const contactRemovedPayloadSchema: z.ZodObject<{
|
|
369
|
-
id: z.ZodString;
|
|
370
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
371
|
-
id: z.ZodString;
|
|
372
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
373
|
-
id: z.ZodString;
|
|
374
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
375
|
-
type MessageCreatedPayload = z.infer<typeof messageCreatedPayloadSchema>;
|
|
376
|
-
type RoomAddedPayload = z.infer<typeof roomAddedPayloadSchema>;
|
|
377
|
-
type RoomRemovedPayload = z.infer<typeof roomRemovedPayloadSchema>;
|
|
378
|
-
type ParticipantAddedPayload = z.infer<typeof participantAddedPayloadSchema>;
|
|
379
|
-
type ParticipantRemovedPayload = z.infer<typeof participantRemovedPayloadSchema>;
|
|
380
|
-
type RoomDeletedPayload = z.infer<typeof roomDeletedPayloadSchema>;
|
|
381
|
-
type ContactRequestReceivedPayload = z.infer<typeof contactRequestReceivedPayloadSchema>;
|
|
382
|
-
type ContactRequestUpdatedPayload = z.infer<typeof contactRequestUpdatedPayloadSchema>;
|
|
383
|
-
type ContactAddedPayload = z.infer<typeof contactAddedPayloadSchema>;
|
|
384
|
-
type ContactRemovedPayload = z.infer<typeof contactRemovedPayloadSchema>;
|
|
385
|
-
|
|
386
|
-
interface BaseEvent<TType extends string, TPayload> {
|
|
387
|
-
type: TType;
|
|
388
|
-
roomId: string | null;
|
|
389
|
-
payload: TPayload;
|
|
390
|
-
raw?: Record<string, unknown>;
|
|
391
|
-
}
|
|
392
|
-
type MessageEvent = BaseEvent<"message_created", MessageCreatedPayload>;
|
|
393
|
-
type RoomAddedEvent = BaseEvent<"room_added", RoomAddedPayload>;
|
|
394
|
-
type RoomRemovedEvent = BaseEvent<"room_removed", RoomRemovedPayload>;
|
|
395
|
-
type ParticipantAddedEvent = BaseEvent<"participant_added", ParticipantAddedPayload>;
|
|
396
|
-
type ParticipantRemovedEvent = BaseEvent<"participant_removed", ParticipantRemovedPayload>;
|
|
397
|
-
type RoomDeletedEvent = BaseEvent<"room_deleted", RoomDeletedPayload>;
|
|
398
|
-
type ContactRequestReceivedEvent = BaseEvent<"contact_request_received", ContactRequestReceivedPayload>;
|
|
399
|
-
type ContactRequestUpdatedEvent = BaseEvent<"contact_request_updated", ContactRequestUpdatedPayload>;
|
|
400
|
-
type ContactAddedEvent = BaseEvent<"contact_added", ContactAddedPayload>;
|
|
401
|
-
type ContactRemovedEvent = BaseEvent<"contact_removed", ContactRemovedPayload>;
|
|
402
|
-
type ContactEvent = ContactRequestReceivedEvent | ContactRequestUpdatedEvent | ContactAddedEvent | ContactRemovedEvent;
|
|
403
|
-
type PlatformEvent = MessageEvent | RoomAddedEvent | RoomRemovedEvent | RoomDeletedEvent | ParticipantAddedEvent | ParticipantRemovedEvent | ContactRequestReceivedEvent | ContactRequestUpdatedEvent | ContactAddedEvent | ContactRemovedEvent;
|
|
404
|
-
|
|
405
|
-
interface AgentConfig {
|
|
406
|
-
autoSubscribeExistingRooms?: boolean;
|
|
407
|
-
}
|
|
408
|
-
interface SessionConfig {
|
|
409
|
-
enableContextCache?: boolean;
|
|
410
|
-
contextCacheTtlSeconds?: number;
|
|
411
|
-
maxContextMessages?: number;
|
|
412
|
-
maxMessageRetries?: number;
|
|
413
|
-
enableContextHydration?: boolean;
|
|
414
|
-
}
|
|
415
|
-
type ContactEventStrategy = "disabled" | "callback" | "hub_room";
|
|
416
|
-
type ContactEventCallback = (event: ContactEvent, tools: AdapterToolsProtocol) => Promise<void>;
|
|
417
|
-
interface ContactEventConfig {
|
|
418
|
-
strategy?: ContactEventStrategy;
|
|
419
|
-
hubTaskId?: string;
|
|
420
|
-
broadcastChanges?: boolean;
|
|
421
|
-
onEvent?: ContactEventCallback;
|
|
422
|
-
}
|
|
423
|
-
type PlatformMessage = PlatformMessageLike;
|
|
424
|
-
interface ConversationContext {
|
|
425
|
-
roomId: string;
|
|
426
|
-
messages: Array<Record<string, unknown>>;
|
|
427
|
-
participants: ParticipantRecord[];
|
|
428
|
-
hydratedAt: Date;
|
|
429
|
-
}
|
|
430
|
-
type MessageHandler = (message: PlatformMessage, tools: AdapterToolsProtocol) => Promise<void>;
|
|
431
|
-
declare class HistoryProvider {
|
|
432
|
-
readonly raw: Array<Record<string, unknown>>;
|
|
433
|
-
constructor(raw: Array<Record<string, unknown>>);
|
|
434
|
-
convert<T>(converter: HistoryConverter<T>): T;
|
|
435
|
-
get length(): number;
|
|
436
|
-
}
|
|
437
|
-
interface AgentInput extends Omit<FrameworkAdapterInput, "message" | "history"> {
|
|
438
|
-
message: PlatformMessage;
|
|
439
|
-
history: HistoryProvider;
|
|
440
|
-
}
|
|
441
|
-
declare const SYNTHETIC_SENDER_TYPE = "System";
|
|
442
|
-
declare const SYNTHETIC_CONTACT_EVENTS_SENDER_ID = "contact-events";
|
|
443
|
-
declare const SYNTHETIC_CONTACT_EVENTS_SENDER_NAME = "Contact Events";
|
|
444
|
-
declare function ensureHandlePrefix(handle: string | null | undefined): string | null;
|
|
445
|
-
|
|
446
|
-
export { type AgentConfig as A, type ContactEvent as C, HistoryProvider as H, type MessageHandler as M, type PlatformMessage as P, type SessionConfig as S, type AgentInput as a, type ContactEventCallback as b, type ContactEventConfig as c, type ContactEventStrategy as d, type ConversationContext as e, type PlatformEvent as f, type MessageEvent as g, type ParticipantAddedEvent as h, type ParticipantRemovedEvent as i, SYNTHETIC_CONTACT_EVENTS_SENDER_ID as j, SYNTHETIC_CONTACT_EVENTS_SENDER_NAME as k, SYNTHETIC_SENDER_TYPE as l, ensureHandlePrefix as m };
|