@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.
- package/dist/CodexAdapter-A1k_LMdZ.d.ts +1278 -0
- package/dist/CodexAdapter-BbZD-nBd.d.cts +1278 -0
- package/dist/adapters.cjs +10643 -0
- package/dist/adapters.d.cts +217 -0
- package/dist/adapters.d.ts +217 -0
- package/dist/adapters.js +92 -0
- package/dist/backends-BnOLsG7w.d.cts +20 -0
- package/dist/backends-C4n6cKOf.d.ts +20 -0
- package/dist/chunk-3BKAC4OZ.js +44 -0
- package/dist/chunk-5CXIMAH2.js +52 -0
- package/dist/chunk-6AJA2OPC.js +3682 -0
- package/dist/chunk-A3TDK6GP.js +6674 -0
- package/dist/chunk-AVVDPXP4.js +39 -0
- package/dist/chunk-EDPKUUJL.js +177 -0
- package/dist/chunk-FUODYQRE.js +2562 -0
- package/dist/chunk-GVEQ3RAH.js +373 -0
- package/dist/chunk-INA6YZTZ.js +88 -0
- package/dist/chunk-IZPV6QS6.js +115 -0
- package/dist/chunk-LY55KYVI.js +0 -0
- package/dist/chunk-NIAQBANR.js +577 -0
- package/dist/chunk-OD2G5LFQ.js +78 -0
- package/dist/chunk-SFVKOEQH.js +103 -0
- package/dist/chunk-SG4WLD2H.js +1093 -0
- package/dist/chunk-YR3BOQNW.js +39 -0
- package/dist/chunk-ZZJRRBPQ.js +82 -0
- package/dist/claude-CcnQ5OUC.d.ts +53 -0
- package/dist/claude-CwTAxhwI.d.cts +53 -0
- package/dist/config.cjs +164 -0
- package/dist/config.d.cts +19 -0
- package/dist/config.d.ts +19 -0
- package/dist/config.js +9 -0
- package/dist/converters.cjs +1086 -0
- package/dist/converters.d.cts +143 -0
- package/dist/converters.d.ts +143 -0
- package/dist/converters.js +468 -0
- package/dist/core.cjs +185 -0
- package/dist/core.d.cts +22 -0
- package/dist/core.d.ts +22 -0
- package/dist/core.js +24 -0
- package/dist/customTools-BzF0IISO.d.cts +10 -0
- package/dist/customTools-BzF0IISO.d.ts +10 -0
- package/dist/dtos-DUpbIu8k.d.cts +163 -0
- package/dist/dtos-DUpbIu8k.d.ts +163 -0
- package/dist/history-ByessXNq.d.ts +24 -0
- package/dist/history-i6yN7neC.d.cts +24 -0
- package/dist/index.cjs +13914 -0
- package/dist/index.d.cts +63 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.js +198 -0
- package/dist/linear.cjs +2207 -0
- package/dist/linear.d.cts +167 -0
- package/dist/linear.d.ts +167 -0
- package/dist/linear.js +2139 -0
- package/dist/logger-CABQOnlR.d.cts +21 -0
- package/dist/logger-CABQOnlR.d.ts +21 -0
- package/dist/mcp-claude.cjs +584 -0
- package/dist/mcp-claude.d.cts +4 -0
- package/dist/mcp-claude.d.ts +4 -0
- package/dist/mcp-claude.js +11 -0
- package/dist/mcp.cjs +1247 -0
- package/dist/mcp.d.cts +97 -0
- package/dist/mcp.d.ts +97 -0
- package/dist/mcp.js +27 -0
- package/dist/opencode-BBcDchcN.d.cts +159 -0
- package/dist/opencode-DthQQUsZ.d.ts +159 -0
- package/dist/pagination-BPiys10t.d.cts +25 -0
- package/dist/pagination-CcDkVFxK.d.ts +25 -0
- package/dist/protocols-CInhtFpA.d.cts +116 -0
- package/dist/protocols-DrhzOH6K.d.ts +116 -0
- package/dist/rest.cjs +1159 -0
- package/dist/rest.d.cts +144 -0
- package/dist/rest.d.ts +144 -0
- package/dist/rest.js +18 -0
- package/dist/runtime.cjs +5353 -0
- package/dist/runtime.d.cts +276 -0
- package/dist/runtime.d.ts +276 -0
- package/dist/runtime.js +274 -0
- package/dist/schemas-BpEBkq5V.d.cts +592 -0
- package/dist/schemas-vos1AaBc.d.ts +592 -0
- package/dist/sdk-HJUVSSWA.js +10 -0
- package/dist/simpleAdapter-9OE_p6QW.d.ts +29 -0
- package/dist/simpleAdapter-DqhvjsGr.d.cts +29 -0
- package/dist/testing.cjs +217 -0
- package/dist/testing.d.cts +126 -0
- package/dist/testing.d.ts +126 -0
- package/dist/testing.js +186 -0
- package/dist/types-7jVzOeOP.d.ts +446 -0
- package/dist/types-CSHFipIc.d.cts +331 -0
- package/dist/types-CovcHpYf.d.cts +446 -0
- package/dist/types-CxII3XkA.d.ts +331 -0
- package/package.json +189 -0
package/dist/rest.d.cts
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { R as RestApi, F as FernThenvoiClientLike, b as RestRequestOptions, A as AgentIdentity, C as ChatParticipant, c as PlatformChatMessage, P as PaginatedResponse } from './types-CSHFipIc.cjs';
|
|
2
|
+
export { d as ChatMessageMention, D as DEFAULT_REQUEST_OPTIONS, a as PaginationMetadata } from './types-CSHFipIc.cjs';
|
|
3
|
+
import { P as PaginationOptions } from './pagination-BPiys10t.cjs';
|
|
4
|
+
export { f as fetchPaginated, n as normalizePaginationMetadata } from './pagination-BPiys10t.cjs';
|
|
5
|
+
import { L as Logger } from './logger-CABQOnlR.cjs';
|
|
6
|
+
import { M as MetadataMap, j as MentionReference, T as ToolOperationResult, 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 } from './dtos-DUpbIu8k.cjs';
|
|
7
|
+
|
|
8
|
+
declare class FernRestAdapter implements RestApi {
|
|
9
|
+
private readonly client;
|
|
10
|
+
constructor(client: FernThenvoiClientLike);
|
|
11
|
+
getAgentMe(options?: RestRequestOptions): Promise<AgentIdentity>;
|
|
12
|
+
createChatMessage(chatId: string, message: {
|
|
13
|
+
content: string;
|
|
14
|
+
messageType?: string;
|
|
15
|
+
metadata?: MetadataMap;
|
|
16
|
+
mentions?: MentionReference[];
|
|
17
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
18
|
+
createChatEvent(chatId: string, event: {
|
|
19
|
+
content: string;
|
|
20
|
+
messageType: string;
|
|
21
|
+
metadata?: MetadataMap;
|
|
22
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
23
|
+
createChat(taskId?: string, options?: RestRequestOptions): Promise<{
|
|
24
|
+
id: string;
|
|
25
|
+
}>;
|
|
26
|
+
listChatParticipants(chatId: string, options?: RestRequestOptions): Promise<ChatParticipant[]>;
|
|
27
|
+
addChatParticipant(chatId: string, participant: {
|
|
28
|
+
participantId: string;
|
|
29
|
+
role: string;
|
|
30
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
31
|
+
removeChatParticipant(chatId: string, participantId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
32
|
+
markMessageProcessing(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
33
|
+
markMessageProcessed(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
34
|
+
markMessageFailed(chatId: string, messageId: string, error: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
35
|
+
getNextMessage(request: {
|
|
36
|
+
chatId: string;
|
|
37
|
+
}, options?: RestRequestOptions): Promise<PlatformChatMessage | null>;
|
|
38
|
+
listPeers(request: {
|
|
39
|
+
page: number;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
notInChat: string;
|
|
42
|
+
}, options?: RestRequestOptions): Promise<{
|
|
43
|
+
data: PeerRecord[];
|
|
44
|
+
metadata?: MetadataMap;
|
|
45
|
+
}>;
|
|
46
|
+
listChats(request: {
|
|
47
|
+
page: number;
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<MetadataMap>>;
|
|
50
|
+
listContacts(request: ListContactsArgs, options?: RestRequestOptions): Promise<PaginatedResponse<ContactRecord>>;
|
|
51
|
+
addContact(request: AddContactArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
52
|
+
removeContact(request: RemoveContactArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
53
|
+
listContactRequests(request: ListContactRequestsArgs, options?: RestRequestOptions): Promise<ContactRequestsResult>;
|
|
54
|
+
respondContactRequest(request: RespondContactRequestArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
55
|
+
listMemories(request: ListMemoriesArgs, options?: RestRequestOptions): Promise<PaginatedResponse<MemoryRecord>>;
|
|
56
|
+
storeMemory(request: StoreMemoryArgs, options?: RestRequestOptions): Promise<MemoryRecord>;
|
|
57
|
+
getMemory(memoryId: string, options?: RestRequestOptions): Promise<MemoryRecord>;
|
|
58
|
+
supersedeMemory(memoryId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
59
|
+
archiveMemory(memoryId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
60
|
+
listMessages(request: {
|
|
61
|
+
chatId: string;
|
|
62
|
+
page: number;
|
|
63
|
+
pageSize: number;
|
|
64
|
+
status?: string;
|
|
65
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
|
|
66
|
+
getChatContext(request: {
|
|
67
|
+
chatId: string;
|
|
68
|
+
page?: number;
|
|
69
|
+
pageSize?: number;
|
|
70
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface RestFacadeOptions {
|
|
74
|
+
api: RestApi;
|
|
75
|
+
logger?: Logger;
|
|
76
|
+
}
|
|
77
|
+
type ListAllChatsOptions = PaginationOptions;
|
|
78
|
+
declare class RestFacade implements RestApi {
|
|
79
|
+
private readonly api;
|
|
80
|
+
private readonly logger;
|
|
81
|
+
constructor(options: RestFacadeOptions);
|
|
82
|
+
getAgentMe(options?: RestRequestOptions): Promise<AgentIdentity>;
|
|
83
|
+
createChatMessage(chatId: string, message: {
|
|
84
|
+
content: string;
|
|
85
|
+
messageType?: string;
|
|
86
|
+
metadata?: MetadataMap;
|
|
87
|
+
mentions?: MentionReference[];
|
|
88
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
89
|
+
createChatEvent(chatId: string, event: {
|
|
90
|
+
content: string;
|
|
91
|
+
messageType: string;
|
|
92
|
+
metadata?: MetadataMap;
|
|
93
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
94
|
+
createChat(taskId?: string, options?: RestRequestOptions): Promise<{
|
|
95
|
+
id: string;
|
|
96
|
+
}>;
|
|
97
|
+
listChatParticipants(chatId: string, options?: RestRequestOptions): Promise<ChatParticipant[]>;
|
|
98
|
+
addChatParticipant(chatId: string, participant: {
|
|
99
|
+
participantId: string;
|
|
100
|
+
role: string;
|
|
101
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
102
|
+
removeChatParticipant(chatId: string, participantId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
103
|
+
markMessageProcessing(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
104
|
+
markMessageProcessed(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
105
|
+
markMessageFailed(chatId: string, messageId: string, error: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
106
|
+
listChats(request: {
|
|
107
|
+
page: number;
|
|
108
|
+
pageSize: number;
|
|
109
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<MetadataMap>>;
|
|
110
|
+
getChatContext(request: {
|
|
111
|
+
chatId: string;
|
|
112
|
+
page?: number;
|
|
113
|
+
pageSize?: number;
|
|
114
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
|
|
115
|
+
listMessages(request: {
|
|
116
|
+
chatId: string;
|
|
117
|
+
page: number;
|
|
118
|
+
pageSize: number;
|
|
119
|
+
status?: string;
|
|
120
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
|
|
121
|
+
getNextMessage(request: {
|
|
122
|
+
chatId: string;
|
|
123
|
+
}, options?: RestRequestOptions): Promise<PlatformChatMessage | null>;
|
|
124
|
+
addContact(request: AddContactArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
125
|
+
removeContact(request: RemoveContactArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
126
|
+
respondContactRequest(request: RespondContactRequestArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
127
|
+
storeMemory(request: StoreMemoryArgs, options?: RestRequestOptions): Promise<MemoryRecord>;
|
|
128
|
+
getMemory(memoryId: string, options?: RestRequestOptions): Promise<MemoryRecord>;
|
|
129
|
+
supersedeMemory(memoryId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
130
|
+
archiveMemory(memoryId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
131
|
+
listContacts(request: ListContactsArgs, options?: RestRequestOptions): Promise<PaginatedResponse<ContactRecord>>;
|
|
132
|
+
listMemories(request: ListMemoriesArgs, options?: RestRequestOptions): Promise<PaginatedResponse<MemoryRecord>>;
|
|
133
|
+
listPeers(request: {
|
|
134
|
+
page: number;
|
|
135
|
+
pageSize: number;
|
|
136
|
+
notInChat: string;
|
|
137
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PeerRecord>>;
|
|
138
|
+
listContactRequests(request: ListContactRequestsArgs, options?: RestRequestOptions): Promise<ContactRequestsResult>;
|
|
139
|
+
listAllChats(options?: ListAllChatsOptions, requestOptions?: RestRequestOptions): Promise<MetadataMap[]>;
|
|
140
|
+
private callOptional;
|
|
141
|
+
private forward;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export { AgentIdentity, ChatParticipant, FernRestAdapter, FernThenvoiClientLike, PaginatedResponse, PlatformChatMessage, RestApi, RestFacade };
|
package/dist/rest.d.ts
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { R as RestApi, F as FernThenvoiClientLike, b as RestRequestOptions, A as AgentIdentity, C as ChatParticipant, c as PlatformChatMessage, P as PaginatedResponse } from './types-CxII3XkA.js';
|
|
2
|
+
export { d as ChatMessageMention, D as DEFAULT_REQUEST_OPTIONS, a as PaginationMetadata } from './types-CxII3XkA.js';
|
|
3
|
+
import { P as PaginationOptions } from './pagination-CcDkVFxK.js';
|
|
4
|
+
export { f as fetchPaginated, n as normalizePaginationMetadata } from './pagination-CcDkVFxK.js';
|
|
5
|
+
import { L as Logger } from './logger-CABQOnlR.js';
|
|
6
|
+
import { M as MetadataMap, j as MentionReference, T as ToolOperationResult, 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 } from './dtos-DUpbIu8k.js';
|
|
7
|
+
|
|
8
|
+
declare class FernRestAdapter implements RestApi {
|
|
9
|
+
private readonly client;
|
|
10
|
+
constructor(client: FernThenvoiClientLike);
|
|
11
|
+
getAgentMe(options?: RestRequestOptions): Promise<AgentIdentity>;
|
|
12
|
+
createChatMessage(chatId: string, message: {
|
|
13
|
+
content: string;
|
|
14
|
+
messageType?: string;
|
|
15
|
+
metadata?: MetadataMap;
|
|
16
|
+
mentions?: MentionReference[];
|
|
17
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
18
|
+
createChatEvent(chatId: string, event: {
|
|
19
|
+
content: string;
|
|
20
|
+
messageType: string;
|
|
21
|
+
metadata?: MetadataMap;
|
|
22
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
23
|
+
createChat(taskId?: string, options?: RestRequestOptions): Promise<{
|
|
24
|
+
id: string;
|
|
25
|
+
}>;
|
|
26
|
+
listChatParticipants(chatId: string, options?: RestRequestOptions): Promise<ChatParticipant[]>;
|
|
27
|
+
addChatParticipant(chatId: string, participant: {
|
|
28
|
+
participantId: string;
|
|
29
|
+
role: string;
|
|
30
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
31
|
+
removeChatParticipant(chatId: string, participantId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
32
|
+
markMessageProcessing(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
33
|
+
markMessageProcessed(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
34
|
+
markMessageFailed(chatId: string, messageId: string, error: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
35
|
+
getNextMessage(request: {
|
|
36
|
+
chatId: string;
|
|
37
|
+
}, options?: RestRequestOptions): Promise<PlatformChatMessage | null>;
|
|
38
|
+
listPeers(request: {
|
|
39
|
+
page: number;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
notInChat: string;
|
|
42
|
+
}, options?: RestRequestOptions): Promise<{
|
|
43
|
+
data: PeerRecord[];
|
|
44
|
+
metadata?: MetadataMap;
|
|
45
|
+
}>;
|
|
46
|
+
listChats(request: {
|
|
47
|
+
page: number;
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<MetadataMap>>;
|
|
50
|
+
listContacts(request: ListContactsArgs, options?: RestRequestOptions): Promise<PaginatedResponse<ContactRecord>>;
|
|
51
|
+
addContact(request: AddContactArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
52
|
+
removeContact(request: RemoveContactArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
53
|
+
listContactRequests(request: ListContactRequestsArgs, options?: RestRequestOptions): Promise<ContactRequestsResult>;
|
|
54
|
+
respondContactRequest(request: RespondContactRequestArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
55
|
+
listMemories(request: ListMemoriesArgs, options?: RestRequestOptions): Promise<PaginatedResponse<MemoryRecord>>;
|
|
56
|
+
storeMemory(request: StoreMemoryArgs, options?: RestRequestOptions): Promise<MemoryRecord>;
|
|
57
|
+
getMemory(memoryId: string, options?: RestRequestOptions): Promise<MemoryRecord>;
|
|
58
|
+
supersedeMemory(memoryId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
59
|
+
archiveMemory(memoryId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
60
|
+
listMessages(request: {
|
|
61
|
+
chatId: string;
|
|
62
|
+
page: number;
|
|
63
|
+
pageSize: number;
|
|
64
|
+
status?: string;
|
|
65
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
|
|
66
|
+
getChatContext(request: {
|
|
67
|
+
chatId: string;
|
|
68
|
+
page?: number;
|
|
69
|
+
pageSize?: number;
|
|
70
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface RestFacadeOptions {
|
|
74
|
+
api: RestApi;
|
|
75
|
+
logger?: Logger;
|
|
76
|
+
}
|
|
77
|
+
type ListAllChatsOptions = PaginationOptions;
|
|
78
|
+
declare class RestFacade implements RestApi {
|
|
79
|
+
private readonly api;
|
|
80
|
+
private readonly logger;
|
|
81
|
+
constructor(options: RestFacadeOptions);
|
|
82
|
+
getAgentMe(options?: RestRequestOptions): Promise<AgentIdentity>;
|
|
83
|
+
createChatMessage(chatId: string, message: {
|
|
84
|
+
content: string;
|
|
85
|
+
messageType?: string;
|
|
86
|
+
metadata?: MetadataMap;
|
|
87
|
+
mentions?: MentionReference[];
|
|
88
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
89
|
+
createChatEvent(chatId: string, event: {
|
|
90
|
+
content: string;
|
|
91
|
+
messageType: string;
|
|
92
|
+
metadata?: MetadataMap;
|
|
93
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
94
|
+
createChat(taskId?: string, options?: RestRequestOptions): Promise<{
|
|
95
|
+
id: string;
|
|
96
|
+
}>;
|
|
97
|
+
listChatParticipants(chatId: string, options?: RestRequestOptions): Promise<ChatParticipant[]>;
|
|
98
|
+
addChatParticipant(chatId: string, participant: {
|
|
99
|
+
participantId: string;
|
|
100
|
+
role: string;
|
|
101
|
+
}, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
102
|
+
removeChatParticipant(chatId: string, participantId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
103
|
+
markMessageProcessing(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
104
|
+
markMessageProcessed(chatId: string, messageId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
105
|
+
markMessageFailed(chatId: string, messageId: string, error: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
106
|
+
listChats(request: {
|
|
107
|
+
page: number;
|
|
108
|
+
pageSize: number;
|
|
109
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<MetadataMap>>;
|
|
110
|
+
getChatContext(request: {
|
|
111
|
+
chatId: string;
|
|
112
|
+
page?: number;
|
|
113
|
+
pageSize?: number;
|
|
114
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
|
|
115
|
+
listMessages(request: {
|
|
116
|
+
chatId: string;
|
|
117
|
+
page: number;
|
|
118
|
+
pageSize: number;
|
|
119
|
+
status?: string;
|
|
120
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PlatformChatMessage>>;
|
|
121
|
+
getNextMessage(request: {
|
|
122
|
+
chatId: string;
|
|
123
|
+
}, options?: RestRequestOptions): Promise<PlatformChatMessage | null>;
|
|
124
|
+
addContact(request: AddContactArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
125
|
+
removeContact(request: RemoveContactArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
126
|
+
respondContactRequest(request: RespondContactRequestArgs, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
127
|
+
storeMemory(request: StoreMemoryArgs, options?: RestRequestOptions): Promise<MemoryRecord>;
|
|
128
|
+
getMemory(memoryId: string, options?: RestRequestOptions): Promise<MemoryRecord>;
|
|
129
|
+
supersedeMemory(memoryId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
130
|
+
archiveMemory(memoryId: string, options?: RestRequestOptions): Promise<ToolOperationResult>;
|
|
131
|
+
listContacts(request: ListContactsArgs, options?: RestRequestOptions): Promise<PaginatedResponse<ContactRecord>>;
|
|
132
|
+
listMemories(request: ListMemoriesArgs, options?: RestRequestOptions): Promise<PaginatedResponse<MemoryRecord>>;
|
|
133
|
+
listPeers(request: {
|
|
134
|
+
page: number;
|
|
135
|
+
pageSize: number;
|
|
136
|
+
notInChat: string;
|
|
137
|
+
}, options?: RestRequestOptions): Promise<PaginatedResponse<PeerRecord>>;
|
|
138
|
+
listContactRequests(request: ListContactRequestsArgs, options?: RestRequestOptions): Promise<ContactRequestsResult>;
|
|
139
|
+
listAllChats(options?: ListAllChatsOptions, requestOptions?: RestRequestOptions): Promise<MetadataMap[]>;
|
|
140
|
+
private callOptional;
|
|
141
|
+
private forward;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export { AgentIdentity, ChatParticipant, FernRestAdapter, FernThenvoiClientLike, PaginatedResponse, PlatformChatMessage, RestApi, RestFacade };
|
package/dist/rest.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_REQUEST_OPTIONS,
|
|
3
|
+
FernRestAdapter,
|
|
4
|
+
RestFacade,
|
|
5
|
+
fetchPaginated,
|
|
6
|
+
normalizePaginationMetadata
|
|
7
|
+
} from "./chunk-SG4WLD2H.js";
|
|
8
|
+
import "./chunk-ZZJRRBPQ.js";
|
|
9
|
+
import "./chunk-3BKAC4OZ.js";
|
|
10
|
+
import "./chunk-OD2G5LFQ.js";
|
|
11
|
+
import "./chunk-YR3BOQNW.js";
|
|
12
|
+
export {
|
|
13
|
+
DEFAULT_REQUEST_OPTIONS,
|
|
14
|
+
FernRestAdapter,
|
|
15
|
+
RestFacade,
|
|
16
|
+
fetchPaginated,
|
|
17
|
+
normalizePaginationMetadata
|
|
18
|
+
};
|