@band-ai/sdk 0.1.2

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 (91) hide show
  1. package/dist/CodexAdapter-A1k_LMdZ.d.ts +1278 -0
  2. package/dist/CodexAdapter-BbZD-nBd.d.cts +1278 -0
  3. package/dist/adapters.cjs +10643 -0
  4. package/dist/adapters.d.cts +217 -0
  5. package/dist/adapters.d.ts +217 -0
  6. package/dist/adapters.js +92 -0
  7. package/dist/backends-BnOLsG7w.d.cts +20 -0
  8. package/dist/backends-C4n6cKOf.d.ts +20 -0
  9. package/dist/chunk-3BKAC4OZ.js +44 -0
  10. package/dist/chunk-5CXIMAH2.js +52 -0
  11. package/dist/chunk-6AJA2OPC.js +3682 -0
  12. package/dist/chunk-A3TDK6GP.js +6674 -0
  13. package/dist/chunk-AVVDPXP4.js +39 -0
  14. package/dist/chunk-EDPKUUJL.js +177 -0
  15. package/dist/chunk-FUODYQRE.js +2562 -0
  16. package/dist/chunk-GVEQ3RAH.js +373 -0
  17. package/dist/chunk-INA6YZTZ.js +88 -0
  18. package/dist/chunk-IZPV6QS6.js +115 -0
  19. package/dist/chunk-LY55KYVI.js +0 -0
  20. package/dist/chunk-NIAQBANR.js +577 -0
  21. package/dist/chunk-OD2G5LFQ.js +78 -0
  22. package/dist/chunk-SFVKOEQH.js +103 -0
  23. package/dist/chunk-SG4WLD2H.js +1093 -0
  24. package/dist/chunk-YR3BOQNW.js +39 -0
  25. package/dist/chunk-ZZJRRBPQ.js +82 -0
  26. package/dist/claude-CcnQ5OUC.d.ts +53 -0
  27. package/dist/claude-CwTAxhwI.d.cts +53 -0
  28. package/dist/config.cjs +164 -0
  29. package/dist/config.d.cts +19 -0
  30. package/dist/config.d.ts +19 -0
  31. package/dist/config.js +9 -0
  32. package/dist/converters.cjs +1086 -0
  33. package/dist/converters.d.cts +143 -0
  34. package/dist/converters.d.ts +143 -0
  35. package/dist/converters.js +468 -0
  36. package/dist/core.cjs +185 -0
  37. package/dist/core.d.cts +22 -0
  38. package/dist/core.d.ts +22 -0
  39. package/dist/core.js +24 -0
  40. package/dist/customTools-BzF0IISO.d.cts +10 -0
  41. package/dist/customTools-BzF0IISO.d.ts +10 -0
  42. package/dist/dtos-DUpbIu8k.d.cts +163 -0
  43. package/dist/dtos-DUpbIu8k.d.ts +163 -0
  44. package/dist/history-ByessXNq.d.ts +24 -0
  45. package/dist/history-i6yN7neC.d.cts +24 -0
  46. package/dist/index.cjs +13914 -0
  47. package/dist/index.d.cts +63 -0
  48. package/dist/index.d.ts +63 -0
  49. package/dist/index.js +198 -0
  50. package/dist/linear.cjs +2207 -0
  51. package/dist/linear.d.cts +167 -0
  52. package/dist/linear.d.ts +167 -0
  53. package/dist/linear.js +2139 -0
  54. package/dist/logger-CABQOnlR.d.cts +21 -0
  55. package/dist/logger-CABQOnlR.d.ts +21 -0
  56. package/dist/mcp-claude.cjs +584 -0
  57. package/dist/mcp-claude.d.cts +4 -0
  58. package/dist/mcp-claude.d.ts +4 -0
  59. package/dist/mcp-claude.js +11 -0
  60. package/dist/mcp.cjs +1247 -0
  61. package/dist/mcp.d.cts +97 -0
  62. package/dist/mcp.d.ts +97 -0
  63. package/dist/mcp.js +27 -0
  64. package/dist/opencode-BBcDchcN.d.cts +159 -0
  65. package/dist/opencode-DthQQUsZ.d.ts +159 -0
  66. package/dist/pagination-BPiys10t.d.cts +25 -0
  67. package/dist/pagination-CcDkVFxK.d.ts +25 -0
  68. package/dist/protocols-CInhtFpA.d.cts +116 -0
  69. package/dist/protocols-DrhzOH6K.d.ts +116 -0
  70. package/dist/rest.cjs +1159 -0
  71. package/dist/rest.d.cts +144 -0
  72. package/dist/rest.d.ts +144 -0
  73. package/dist/rest.js +18 -0
  74. package/dist/runtime.cjs +5353 -0
  75. package/dist/runtime.d.cts +276 -0
  76. package/dist/runtime.d.ts +276 -0
  77. package/dist/runtime.js +274 -0
  78. package/dist/schemas-BpEBkq5V.d.cts +592 -0
  79. package/dist/schemas-vos1AaBc.d.ts +592 -0
  80. package/dist/sdk-HJUVSSWA.js +10 -0
  81. package/dist/simpleAdapter-9OE_p6QW.d.ts +29 -0
  82. package/dist/simpleAdapter-DqhvjsGr.d.cts +29 -0
  83. package/dist/testing.cjs +217 -0
  84. package/dist/testing.d.cts +126 -0
  85. package/dist/testing.d.ts +126 -0
  86. package/dist/testing.js +186 -0
  87. package/dist/types-7jVzOeOP.d.ts +446 -0
  88. package/dist/types-CSHFipIc.d.cts +331 -0
  89. package/dist/types-CovcHpYf.d.cts +446 -0
  90. package/dist/types-CxII3XkA.d.ts +331 -0
  91. package/package.json +189 -0
@@ -0,0 +1,331 @@
1
+ import { T as ToolOperationResult, M as MetadataMap, j as MentionReference, c as PaginatedList, d as PeerRecord, L as ListContactsArgs, C as ContactRecord, A as AddContactArgs, R as RemoveContactArgs, e as ListContactRequestsArgs, f as ContactRequestsResult, g as RespondContactRequestArgs, h as ListMemoriesArgs, i as MemoryRecord, S as StoreMemoryArgs, k as ContactRequestAction, l as PaginationMetadataLike } from './dtos-DUpbIu8k.cjs';
2
+
3
+ interface RestRequestOptions {
4
+ maxRetries?: number;
5
+ timeoutInSeconds?: number;
6
+ headers?: Record<string, string>;
7
+ }
8
+ declare const DEFAULT_REQUEST_OPTIONS: RestRequestOptions;
9
+
10
+ interface AgentIdentity {
11
+ id: string;
12
+ name: string;
13
+ description: string | null;
14
+ handle?: string | null;
15
+ ownerUuid?: string | null;
16
+ }
17
+ interface ChatParticipant {
18
+ id: string;
19
+ name: string;
20
+ type: string;
21
+ handle?: string | null;
22
+ }
23
+ interface ChatMessageMention {
24
+ id: string;
25
+ handle?: string;
26
+ name?: string;
27
+ username?: string;
28
+ }
29
+ interface PaginationMetadata extends PaginationMetadataLike {
30
+ }
31
+ interface PaginatedResponse<T = MetadataMap> extends PaginatedList<T> {
32
+ }
33
+ interface PlatformChatMessage {
34
+ id: string;
35
+ content: string;
36
+ sender_id: string;
37
+ sender_type: string;
38
+ sender_name?: string | null;
39
+ message_type: string;
40
+ metadata?: MetadataMap | null;
41
+ inserted_at: string;
42
+ updated_at?: string | null;
43
+ }
44
+ interface AgentProfileRestApi {
45
+ getAgentMe(options?: RestRequestOptions): Promise<AgentIdentity>;
46
+ }
47
+ interface ChatMessagingRestApi {
48
+ createChatMessage(chatId: string, message: {
49
+ content: string;
50
+ messageType?: string;
51
+ metadata?: MetadataMap;
52
+ mentions?: MentionReference[];
53
+ }, options?: RestRequestOptions): Promise<ToolOperationResult>;
54
+ createChatEvent(chatId: string, event: {
55
+ content: string;
56
+ messageType: string;
57
+ metadata?: MetadataMap;
58
+ }, options?: RestRequestOptions): Promise<ToolOperationResult>;
59
+ }
60
+ interface ChatRoomRestApi {
61
+ createChat(taskId?: string, options?: RestRequestOptions): Promise<{
62
+ id: string;
63
+ }>;
64
+ }
65
+ interface ParticipantRestApi {
66
+ listChatParticipants(chatId: string, options?: RestRequestOptions): Promise<ChatParticipant[]>;
67
+ addChatParticipant(chatId: string, participant: {
68
+ participantId: string;
69
+ role: string;
70
+ }, options?: RestRequestOptions): Promise<ToolOperationResult>;
71
+ removeChatParticipant(chatId: string, participantId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
72
+ }
73
+ interface MessageLifecycleRestApi {
74
+ markMessageProcessing(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
75
+ markMessageProcessed(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
76
+ markMessageFailed(chatId: string, messageId: string, error: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
77
+ }
78
+ interface PeerLookupRestApi {
79
+ listPeers?(_request: {
80
+ page: number;
81
+ pageSize: number;
82
+ notInChat: string;
83
+ }, _options?: RestRequestOptions): Promise<PaginatedResponse<PeerRecord>>;
84
+ }
85
+ interface ChatListingRestApi {
86
+ listChats?(_request: {
87
+ page: number;
88
+ pageSize: number;
89
+ }, _options?: RestRequestOptions): Promise<PaginatedResponse>;
90
+ }
91
+ interface ContactRestApi {
92
+ listContacts?(_request: ListContactsArgs, _options?: RestRequestOptions): Promise<PaginatedResponse<ContactRecord>>;
93
+ addContact?(_request: AddContactArgs, _options?: RestRequestOptions): Promise<ToolOperationResult>;
94
+ removeContact?(_request: RemoveContactArgs, _options?: RestRequestOptions): Promise<ToolOperationResult>;
95
+ listContactRequests?(_request: ListContactRequestsArgs, _options?: RestRequestOptions): Promise<ContactRequestsResult>;
96
+ respondContactRequest?(_request: RespondContactRequestArgs, _options?: RestRequestOptions): Promise<ToolOperationResult>;
97
+ }
98
+ interface MemoryRestApi {
99
+ listMemories?(_request: ListMemoriesArgs, _options?: RestRequestOptions): Promise<PaginatedResponse<MemoryRecord>>;
100
+ storeMemory?(_request: StoreMemoryArgs, _options?: RestRequestOptions): Promise<MemoryRecord>;
101
+ getMemory?(_memoryId: string, _options?: RestRequestOptions): Promise<MemoryRecord>;
102
+ supersedeMemory?(_memoryId: string, _options?: RestRequestOptions): Promise<ToolOperationResult>;
103
+ archiveMemory?(_memoryId: string, _options?: RestRequestOptions): Promise<ToolOperationResult>;
104
+ }
105
+ interface ContextRestApi {
106
+ getChatContext?(_request: {
107
+ chatId: string;
108
+ page?: number;
109
+ pageSize?: number;
110
+ }, _options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
111
+ }
112
+ interface MessageQueueRestApi {
113
+ listMessages?(_request: {
114
+ chatId: string;
115
+ page: number;
116
+ pageSize: number;
117
+ status?: string;
118
+ }, _options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
119
+ getNextMessage?(_request: {
120
+ chatId: string;
121
+ }, _options?: RestRequestOptions): Promise<PlatformChatMessage | null>;
122
+ }
123
+ type AgentToolsRestApi = ChatMessagingRestApi & ChatRoomRestApi & ParticipantRestApi & PeerLookupRestApi & ContactRestApi & MemoryRestApi & ContextRestApi & MessageQueueRestApi;
124
+ type ThenvoiLinkRestApi = AgentProfileRestApi & MessageLifecycleRestApi & AgentToolsRestApi & ChatListingRestApi;
125
+ interface RestApi extends ThenvoiLinkRestApi {
126
+ }
127
+ interface FernThenvoiClientLike {
128
+ agentApiIdentity?: {
129
+ getAgentMe(options?: RestRequestOptions): Promise<unknown>;
130
+ };
131
+ myProfile?: {
132
+ getMyProfile(options?: RestRequestOptions): Promise<unknown>;
133
+ };
134
+ humanApiProfile?: {
135
+ getMyProfile(options?: RestRequestOptions): Promise<unknown>;
136
+ };
137
+ agentPeers?: {
138
+ listAgentPeers?(request?: {
139
+ page?: number;
140
+ page_size?: number;
141
+ not_in_chat?: string;
142
+ }, options?: RestRequestOptions): Promise<unknown>;
143
+ };
144
+ agentApiPeers?: {
145
+ listAgentPeers?(request?: {
146
+ page?: number;
147
+ page_size?: number;
148
+ not_in_chat?: string;
149
+ }, options?: RestRequestOptions): Promise<unknown>;
150
+ };
151
+ agentContacts?: {
152
+ listAgentContacts?(request?: {
153
+ page?: number;
154
+ page_size?: number;
155
+ }, options?: RestRequestOptions): Promise<unknown>;
156
+ addAgentContact?(request: {
157
+ handle: string;
158
+ message?: string;
159
+ }, options?: RestRequestOptions): Promise<unknown>;
160
+ removeAgentContact?(request: {
161
+ handle?: string;
162
+ contact_id?: string;
163
+ }, options?: RestRequestOptions): Promise<unknown>;
164
+ listAgentContactRequests?(request?: {
165
+ page?: number;
166
+ page_size?: number;
167
+ sent_status?: string;
168
+ }, options?: RestRequestOptions): Promise<unknown>;
169
+ respondToAgentContactRequest?(request: {
170
+ action: ContactRequestAction;
171
+ handle?: string;
172
+ request_id?: string;
173
+ }, options?: RestRequestOptions): Promise<unknown>;
174
+ };
175
+ agentApiContacts?: {
176
+ listAgentContacts?(request?: {
177
+ page?: number;
178
+ page_size?: number;
179
+ }, options?: RestRequestOptions): Promise<unknown>;
180
+ addAgentContact?(request: {
181
+ handle: string;
182
+ message?: string;
183
+ }, options?: RestRequestOptions): Promise<unknown>;
184
+ removeAgentContact?(request?: {
185
+ handle?: string;
186
+ contact_id?: string;
187
+ }, options?: RestRequestOptions): Promise<unknown>;
188
+ listAgentContactRequests?(request?: {
189
+ page?: number;
190
+ page_size?: number;
191
+ sent_status?: string;
192
+ }, options?: RestRequestOptions): Promise<unknown>;
193
+ respondToAgentContactRequest?(request: {
194
+ action: ContactRequestAction;
195
+ handle?: string;
196
+ request_id?: string;
197
+ }, options?: RestRequestOptions): Promise<unknown>;
198
+ };
199
+ agentMemories?: {
200
+ listAgentMemories?(request?: ListMemoriesArgs, options?: RestRequestOptions): Promise<unknown>;
201
+ createAgentMemory?(request: {
202
+ memory: StoreMemoryArgs;
203
+ }, options?: RestRequestOptions): Promise<unknown>;
204
+ getAgentMemory?(memoryId: string, options?: RestRequestOptions): Promise<unknown>;
205
+ supersedeAgentMemory?(memoryId: string, options?: RestRequestOptions): Promise<unknown>;
206
+ archiveAgentMemory?(memoryId: string, options?: RestRequestOptions): Promise<unknown>;
207
+ };
208
+ agentApiMemories?: {
209
+ listAgentMemories?(request?: ListMemoriesArgs, options?: RestRequestOptions): Promise<unknown>;
210
+ createAgentMemory?(request: {
211
+ memory: StoreMemoryArgs;
212
+ }, options?: RestRequestOptions): Promise<unknown>;
213
+ getAgentMemory?(memoryId: string, options?: RestRequestOptions): Promise<unknown>;
214
+ supersedeAgentMemory?(memoryId: string, options?: RestRequestOptions): Promise<unknown>;
215
+ archiveAgentMemory?(memoryId: string, options?: RestRequestOptions): Promise<unknown>;
216
+ };
217
+ chatMessages?: {
218
+ listMessages?(chatId: string, request?: {
219
+ page?: number;
220
+ page_size?: number;
221
+ status?: string;
222
+ }, options?: RestRequestOptions): Promise<unknown>;
223
+ createChatMessage(chatId: string, request: {
224
+ message: {
225
+ content: string;
226
+ message_type?: string;
227
+ metadata?: MetadataMap;
228
+ mentions?: MentionReference[];
229
+ };
230
+ }, options?: RestRequestOptions): Promise<unknown>;
231
+ markMessageProcessing?(chatId: string, id: string, options?: RestRequestOptions): Promise<unknown>;
232
+ markMessageProcessed?(chatId: string, id: string, options?: RestRequestOptions): Promise<unknown>;
233
+ markMessageFailed?(chatId: string, id: string, request: {
234
+ error: string;
235
+ }, options?: RestRequestOptions): Promise<unknown>;
236
+ getNextMessage?(chatId: string, options?: RestRequestOptions): Promise<unknown>;
237
+ };
238
+ agentApiMessages?: {
239
+ listAgentMessages?(chatId: string, request?: {
240
+ page?: number;
241
+ page_size?: number;
242
+ status?: string;
243
+ }, options?: RestRequestOptions): Promise<unknown>;
244
+ createAgentChatMessage?(chatId: string, request: {
245
+ message: {
246
+ content: string;
247
+ message_type?: string;
248
+ metadata?: MetadataMap;
249
+ mentions?: MentionReference[];
250
+ };
251
+ }, options?: RestRequestOptions): Promise<unknown>;
252
+ markAgentMessageProcessing?(chatId: string, id: string, options?: RestRequestOptions): Promise<unknown>;
253
+ markAgentMessageProcessed?(chatId: string, id: string, options?: RestRequestOptions): Promise<unknown>;
254
+ markAgentMessageFailed?(chatId: string, id: string, request: {
255
+ error: string;
256
+ }, options?: RestRequestOptions): Promise<unknown>;
257
+ getAgentNextMessage?(chatId: string, options?: RestRequestOptions): Promise<unknown>;
258
+ };
259
+ agentApiEvents?: {
260
+ createAgentChatEvent?(chatId: string, request: {
261
+ event: {
262
+ content: string;
263
+ message_type: string;
264
+ metadata?: MetadataMap;
265
+ };
266
+ }, options?: RestRequestOptions): Promise<unknown>;
267
+ };
268
+ myChatMessages?: {
269
+ createMyChatMessage(chatId: string, request: {
270
+ message: {
271
+ content: string;
272
+ message_type?: string;
273
+ metadata?: MetadataMap;
274
+ mentions?: MentionReference[];
275
+ };
276
+ }, options?: RestRequestOptions): Promise<unknown>;
277
+ };
278
+ chatRooms?: {
279
+ createChat(request: {
280
+ chat: {
281
+ task_id?: string;
282
+ };
283
+ }, options?: RestRequestOptions): Promise<unknown>;
284
+ listChats?(request?: {
285
+ page?: number;
286
+ page_size?: number;
287
+ }, options?: RestRequestOptions): Promise<unknown>;
288
+ };
289
+ agentApiChats?: {
290
+ createAgentChat?(request: {
291
+ chat: {
292
+ task_id?: string;
293
+ };
294
+ }, options?: RestRequestOptions): Promise<unknown>;
295
+ listAgentChats?(request?: {
296
+ page?: number;
297
+ page_size?: number;
298
+ }, options?: RestRequestOptions): Promise<unknown>;
299
+ };
300
+ chatParticipants?: {
301
+ listChatParticipants(chatId: string, request?: {
302
+ participant_type?: "User" | "Agent";
303
+ }, options?: RestRequestOptions): Promise<unknown>;
304
+ addChatParticipant(chatId: string, request: {
305
+ participant: {
306
+ participant_id: string;
307
+ role: string;
308
+ };
309
+ }, options?: RestRequestOptions): Promise<unknown>;
310
+ removeChatParticipant(chatId: string, participantId: string, options?: RestRequestOptions): Promise<unknown>;
311
+ };
312
+ chatContext?: {
313
+ getChatContext?(chatId: string, request?: {
314
+ page?: number;
315
+ page_size?: number;
316
+ }, options?: RestRequestOptions): Promise<unknown>;
317
+ };
318
+ agentApiParticipants?: {
319
+ listAgentChatParticipants?(chatId: string, options?: RestRequestOptions): Promise<unknown>;
320
+ addAgentChatParticipant?(chatId: string, request: unknown, options?: RestRequestOptions): Promise<unknown>;
321
+ removeAgentChatParticipant?(chatId: string, participantId: string, options?: RestRequestOptions): Promise<unknown>;
322
+ };
323
+ agentApiContext?: {
324
+ getAgentChatContext?(chatId: string, request?: {
325
+ page?: number;
326
+ page_size?: number;
327
+ }, options?: RestRequestOptions): Promise<unknown>;
328
+ };
329
+ }
330
+
331
+ export { type AgentIdentity as A, type ChatParticipant as C, DEFAULT_REQUEST_OPTIONS as D, type FernThenvoiClientLike as F, type PaginatedResponse as P, type RestApi as R, type ThenvoiLinkRestApi as T, type PaginationMetadata as a, type RestRequestOptions as b, type PlatformChatMessage as c, type ChatMessageMention as d, type AgentToolsRestApi as e, type ChatMessagingRestApi as f, type ChatRoomRestApi as g, type ContactRestApi as h };