@mallocbaal/mcp-agent-framework-ts 0.1.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 +121 -0
- package/dist/app/app.d.ts +10 -0
- package/dist/app/app.d.ts.map +1 -0
- package/dist/app/app.js +19 -0
- package/dist/app/app.js.map +1 -0
- package/dist/contents/builders.d.ts +17 -0
- package/dist/contents/builders.d.ts.map +1 -0
- package/dist/contents/builders.js +46 -0
- package/dist/contents/builders.js.map +1 -0
- package/dist/contents/index.d.ts +3 -0
- package/dist/contents/index.d.ts.map +1 -0
- package/dist/contents/index.js +3 -0
- package/dist/contents/index.js.map +1 -0
- package/dist/contents/validators.d.ts +5 -0
- package/dist/contents/validators.d.ts.map +1 -0
- package/dist/contents/validators.js +22 -0
- package/dist/contents/validators.js.map +1 -0
- package/dist/dispatcher/dispatcher.d.ts +13 -0
- package/dist/dispatcher/dispatcher.d.ts.map +1 -0
- package/dist/dispatcher/dispatcher.js +34 -0
- package/dist/dispatcher/dispatcher.js.map +1 -0
- package/dist/events/types.d.ts +26 -0
- package/dist/events/types.d.ts.map +1 -0
- package/dist/events/types.js +11 -0
- package/dist/events/types.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/jsonrpc/endpoints.d.ts +38 -0
- package/dist/jsonrpc/endpoints.d.ts.map +1 -0
- package/dist/jsonrpc/endpoints.js +91 -0
- package/dist/jsonrpc/endpoints.js.map +1 -0
- package/dist/pipeline/pipeline.d.ts +35 -0
- package/dist/pipeline/pipeline.d.ts.map +1 -0
- package/dist/pipeline/pipeline.js +77 -0
- package/dist/pipeline/pipeline.js.map +1 -0
- package/dist/schema/generated.d.ts +701 -0
- package/dist/schema/generated.d.ts.map +1 -0
- package/dist/schema/generated.js +2 -0
- package/dist/schema/generated.js.map +1 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +2 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/transport/graphql-transport.d.ts +28 -0
- package/dist/transport/graphql-transport.d.ts.map +1 -0
- package/dist/transport/graphql-transport.js +57 -0
- package/dist/transport/graphql-transport.js.map +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
export type Maybe<T> = T | null;
|
|
2
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
3
|
+
export type Exact<T extends {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}> = {
|
|
6
|
+
[K in keyof T]: T[K];
|
|
7
|
+
};
|
|
8
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
+
};
|
|
11
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
+
};
|
|
14
|
+
export type MakeEmpty<T extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, K extends keyof T> = {
|
|
17
|
+
[_ in K]?: never;
|
|
18
|
+
};
|
|
19
|
+
export type Incremental<T> = T | {
|
|
20
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
+
};
|
|
22
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
|
+
export type Scalars = {
|
|
24
|
+
ID: {
|
|
25
|
+
input: string;
|
|
26
|
+
output: string;
|
|
27
|
+
};
|
|
28
|
+
String: {
|
|
29
|
+
input: string;
|
|
30
|
+
output: string;
|
|
31
|
+
};
|
|
32
|
+
Boolean: {
|
|
33
|
+
input: boolean;
|
|
34
|
+
output: boolean;
|
|
35
|
+
};
|
|
36
|
+
Int: {
|
|
37
|
+
input: number;
|
|
38
|
+
output: number;
|
|
39
|
+
};
|
|
40
|
+
Float: {
|
|
41
|
+
input: number;
|
|
42
|
+
output: number;
|
|
43
|
+
};
|
|
44
|
+
DateTime: {
|
|
45
|
+
input: any;
|
|
46
|
+
output: any;
|
|
47
|
+
};
|
|
48
|
+
JSON: {
|
|
49
|
+
input: any;
|
|
50
|
+
output: any;
|
|
51
|
+
};
|
|
52
|
+
UUID: {
|
|
53
|
+
input: any;
|
|
54
|
+
output: any;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export type ActivityContentData = {
|
|
58
|
+
__typename?: 'ActivityContentData';
|
|
59
|
+
chainId?: Maybe<Scalars['UUID']['output']>;
|
|
60
|
+
chainIndex?: Maybe<Scalars['Int']['output']>;
|
|
61
|
+
createdAt: Scalars['Int']['output'];
|
|
62
|
+
durationMinutes: Scalars['Int']['output'];
|
|
63
|
+
format: ActivityFormat;
|
|
64
|
+
id: Scalars['UUID']['output'];
|
|
65
|
+
price: Scalars['Int']['output'];
|
|
66
|
+
rebookings?: Maybe<Array<RebookingData>>;
|
|
67
|
+
serviceId: Scalars['UUID']['output'];
|
|
68
|
+
specialistId: Scalars['UUID']['output'];
|
|
69
|
+
startTime: Scalars['Int']['output'];
|
|
70
|
+
status: ActivityStatus;
|
|
71
|
+
updatedAt: Scalars['Int']['output'];
|
|
72
|
+
userId: Scalars['UUID']['output'];
|
|
73
|
+
};
|
|
74
|
+
export type ActivityContentDataInput = {
|
|
75
|
+
chainId?: InputMaybe<Scalars['UUID']['input']>;
|
|
76
|
+
chainIndex?: InputMaybe<Scalars['Int']['input']>;
|
|
77
|
+
createdAt: Scalars['Int']['input'];
|
|
78
|
+
durationMinutes: Scalars['Int']['input'];
|
|
79
|
+
format: ActivityFormat;
|
|
80
|
+
id: Scalars['UUID']['input'];
|
|
81
|
+
price: Scalars['Int']['input'];
|
|
82
|
+
rebookings?: InputMaybe<Array<RebookingDataInput>>;
|
|
83
|
+
serviceId: Scalars['UUID']['input'];
|
|
84
|
+
specialistId: Scalars['UUID']['input'];
|
|
85
|
+
startTime: Scalars['Int']['input'];
|
|
86
|
+
status: ActivityStatus;
|
|
87
|
+
updatedAt: Scalars['Int']['input'];
|
|
88
|
+
userId: Scalars['UUID']['input'];
|
|
89
|
+
};
|
|
90
|
+
export type ActivityFormat = 'IN_PERSON' | 'VIDEO';
|
|
91
|
+
export type ActivityStatus = 'CONFIRMED' | 'CONFIRMED_BY_SPECIALIST' | 'CONFIRMED_BY_USER' | 'DECLINED' | 'FINAL' | 'FINALIZED_BY_SPECIALIST' | 'FINALIZED_BY_USER' | 'PAID' | 'REBOOK_BY_SPECIALIST' | 'REBOOK_BY_USER' | 'WAITING';
|
|
92
|
+
export type Bot = {
|
|
93
|
+
__typename?: 'Bot';
|
|
94
|
+
connectionType: BotConnectionType;
|
|
95
|
+
createdAt: Scalars['DateTime']['output'];
|
|
96
|
+
eventStream?: Maybe<Scalars['String']['output']>;
|
|
97
|
+
id: Scalars['UUID']['output'];
|
|
98
|
+
key: Scalars['String']['output'];
|
|
99
|
+
mcpAddress?: Maybe<Scalars['String']['output']>;
|
|
100
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
101
|
+
name: Scalars['String']['output'];
|
|
102
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
103
|
+
};
|
|
104
|
+
export type BotCheckResponse = {
|
|
105
|
+
__typename?: 'BotCheckResponse';
|
|
106
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
107
|
+
exists: Scalars['Boolean']['output'];
|
|
108
|
+
id?: Maybe<Scalars['UUID']['output']>;
|
|
109
|
+
success: Scalars['Boolean']['output'];
|
|
110
|
+
};
|
|
111
|
+
export type BotConnectionType = 'MCP' | 'RABBITMQ';
|
|
112
|
+
export type BotMessageInput = {
|
|
113
|
+
botId: Scalars['UUID']['input'];
|
|
114
|
+
broadcastedForAllExcept?: InputMaybe<Scalars['UUID']['input']>;
|
|
115
|
+
chatId: Scalars['UUID']['input'];
|
|
116
|
+
contents: Array<MessageContentItemInput>;
|
|
117
|
+
messageId?: InputMaybe<Scalars['UUID']['input']>;
|
|
118
|
+
metadata?: InputMaybe<Scalars['JSON']['input']>;
|
|
119
|
+
visibleForParticipant?: InputMaybe<Scalars['UUID']['input']>;
|
|
120
|
+
};
|
|
121
|
+
export type BotResponse = {
|
|
122
|
+
__typename?: 'BotResponse';
|
|
123
|
+
bot?: Maybe<Bot>;
|
|
124
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
success: Scalars['Boolean']['output'];
|
|
126
|
+
};
|
|
127
|
+
export type BotsResponse = {
|
|
128
|
+
__typename?: 'BotsResponse';
|
|
129
|
+
bots: Array<Bot>;
|
|
130
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
131
|
+
success: Scalars['Boolean']['output'];
|
|
132
|
+
};
|
|
133
|
+
export type CallInviteContentData = {
|
|
134
|
+
__typename?: 'CallInviteContentData';
|
|
135
|
+
url: Scalars['String']['output'];
|
|
136
|
+
};
|
|
137
|
+
export type CallInviteContentDataInput = {
|
|
138
|
+
url: Scalars['String']['input'];
|
|
139
|
+
};
|
|
140
|
+
export type CardsContentData = {
|
|
141
|
+
__typename?: 'CardsContentData';
|
|
142
|
+
entity: CardsEntity;
|
|
143
|
+
ids: Array<Scalars['UUID']['output']>;
|
|
144
|
+
};
|
|
145
|
+
export type CardsContentDataInput = {
|
|
146
|
+
entity: CardsEntity;
|
|
147
|
+
ids: Array<Scalars['UUID']['input']>;
|
|
148
|
+
};
|
|
149
|
+
export type CardsEntity = 'specialist';
|
|
150
|
+
export type Chat = {
|
|
151
|
+
__typename?: 'Chat';
|
|
152
|
+
avatar?: Maybe<Scalars['String']['output']>;
|
|
153
|
+
bots: Array<Scalars['UUID']['output']>;
|
|
154
|
+
createdAt: Scalars['DateTime']['output'];
|
|
155
|
+
id: Scalars['UUID']['output'];
|
|
156
|
+
kind: ChatKind;
|
|
157
|
+
lastMessageAt?: Maybe<Scalars['DateTime']['output']>;
|
|
158
|
+
lifecycle: ChatLifecycle;
|
|
159
|
+
messageCount: Scalars['Int']['output'];
|
|
160
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
161
|
+
participantView?: Maybe<ParticipantChatView>;
|
|
162
|
+
participants: Array<ChatParticipant>;
|
|
163
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
164
|
+
unread?: Maybe<ChatUnreadState>;
|
|
165
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
166
|
+
};
|
|
167
|
+
export type ChatEventResponse = {
|
|
168
|
+
__typename?: 'ChatEventResponse';
|
|
169
|
+
action?: Maybe<Scalars['String']['output']>;
|
|
170
|
+
chatId: Scalars['UUID']['output'];
|
|
171
|
+
data?: Maybe<Scalars['JSON']['output']>;
|
|
172
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
173
|
+
eventType: ChatEventType;
|
|
174
|
+
messageId?: Maybe<Scalars['UUID']['output']>;
|
|
175
|
+
participantId?: Maybe<Scalars['UUID']['output']>;
|
|
176
|
+
success: Scalars['Boolean']['output'];
|
|
177
|
+
timestamp: Scalars['DateTime']['output'];
|
|
178
|
+
};
|
|
179
|
+
export type ChatEventType = 'BOT_INIT' | 'CHAT_ACTION' | 'CHAT_CREATED' | 'CHAT_READ' | 'CHAT_UPDATED' | 'MESSAGE_ADDED' | 'NEW_CHAT' | 'NEW_MESSAGE' | 'PARTICIPANT_UPDATED';
|
|
180
|
+
export type ChatKind = 'BOT_CHAT' | 'DIRECT' | 'THEMATIC';
|
|
181
|
+
export type ChatLifecycle = 'ACTIVE' | 'ARCHIVED' | 'PENDING';
|
|
182
|
+
export type ChatMessage = {
|
|
183
|
+
__typename?: 'ChatMessage';
|
|
184
|
+
agent: Scalars['Boolean']['output'];
|
|
185
|
+
broadcastedForAllExcept?: Maybe<Scalars['UUID']['output']>;
|
|
186
|
+
chatId: Scalars['UUID']['output'];
|
|
187
|
+
contents: Array<MessageContentItem>;
|
|
188
|
+
createdAt: Scalars['DateTime']['output'];
|
|
189
|
+
id: Scalars['UUID']['output'];
|
|
190
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
191
|
+
participantId?: Maybe<Scalars['UUID']['output']>;
|
|
192
|
+
/** @deprecated use contents */
|
|
193
|
+
payload?: Maybe<Scalars['JSON']['output']>;
|
|
194
|
+
role: MessageRole;
|
|
195
|
+
senderBotId?: Maybe<Scalars['UUID']['output']>;
|
|
196
|
+
senderParticipantId?: Maybe<Scalars['UUID']['output']>;
|
|
197
|
+
timestamp: Scalars['Int']['output'];
|
|
198
|
+
visibility?: Maybe<MessageVisibility>;
|
|
199
|
+
visibleForParticipant?: Maybe<Scalars['UUID']['output']>;
|
|
200
|
+
};
|
|
201
|
+
export type ChatParticipant = {
|
|
202
|
+
__typename?: 'ChatParticipant';
|
|
203
|
+
joinedAt: Scalars['DateTime']['output'];
|
|
204
|
+
participantId: Scalars['UUID']['output'];
|
|
205
|
+
};
|
|
206
|
+
export type ChatParticipantInput = {
|
|
207
|
+
participantId: Scalars['UUID']['input'];
|
|
208
|
+
};
|
|
209
|
+
export type ChatResponse = {
|
|
210
|
+
__typename?: 'ChatResponse';
|
|
211
|
+
chat?: Maybe<Chat>;
|
|
212
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
213
|
+
success: Scalars['Boolean']['output'];
|
|
214
|
+
};
|
|
215
|
+
export type ChatUnreadState = {
|
|
216
|
+
__typename?: 'ChatUnreadState';
|
|
217
|
+
chatId: Scalars['UUID']['output'];
|
|
218
|
+
firstUnreadAt: Scalars['DateTime']['output'];
|
|
219
|
+
lastUnreadAt: Scalars['DateTime']['output'];
|
|
220
|
+
participantId: Scalars['UUID']['output'];
|
|
221
|
+
unreadCount: Scalars['Int']['output'];
|
|
222
|
+
};
|
|
223
|
+
export type ChatWithMessages = {
|
|
224
|
+
__typename?: 'ChatWithMessages';
|
|
225
|
+
chat: Chat;
|
|
226
|
+
messages: Array<ChatMessage>;
|
|
227
|
+
pageInfo: MessagesPageInfo;
|
|
228
|
+
};
|
|
229
|
+
export type ChatWithMessagesResponse = {
|
|
230
|
+
__typename?: 'ChatWithMessagesResponse';
|
|
231
|
+
data?: Maybe<ChatWithMessages>;
|
|
232
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
233
|
+
success: Scalars['Boolean']['output'];
|
|
234
|
+
};
|
|
235
|
+
export type ContentType = 'ACTIVITY' | 'CALL_INVITE' | 'CARDS' | 'FILE' | 'IMAGE' | 'IMAGE_INPUT' | 'LDC' | 'MS_ITEM' | 'POLICY' | 'SELECTOR' | 'TEXT' | 'TICKET';
|
|
236
|
+
export type CreateChatInput = {
|
|
237
|
+
botIds?: InputMaybe<Array<Scalars['UUID']['input']>>;
|
|
238
|
+
chatId?: InputMaybe<Scalars['UUID']['input']>;
|
|
239
|
+
createdByParticipantId: Scalars['UUID']['input'];
|
|
240
|
+
ignoreSummaryEvents?: InputMaybe<Scalars['Boolean']['input']>;
|
|
241
|
+
kind: ChatKind;
|
|
242
|
+
lifecycle?: InputMaybe<ChatLifecycle>;
|
|
243
|
+
metadata?: InputMaybe<Scalars['JSON']['input']>;
|
|
244
|
+
participantIds: Array<Scalars['UUID']['input']>;
|
|
245
|
+
participantViews?: InputMaybe<Array<ParticipantChatViewInput>>;
|
|
246
|
+
};
|
|
247
|
+
export type CreateParticipantInput = {
|
|
248
|
+
avatar?: InputMaybe<Scalars['String']['input']>;
|
|
249
|
+
id: Scalars['UUID']['input'];
|
|
250
|
+
name: Scalars['String']['input'];
|
|
251
|
+
source?: InputMaybe<NameSource>;
|
|
252
|
+
};
|
|
253
|
+
export type FileContentData = {
|
|
254
|
+
__typename?: 'FileContentData';
|
|
255
|
+
checksum?: Maybe<Scalars['String']['output']>;
|
|
256
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
257
|
+
mimeType: Scalars['String']['output'];
|
|
258
|
+
name: Scalars['String']['output'];
|
|
259
|
+
size: Scalars['Int']['output'];
|
|
260
|
+
uploadedAt: Scalars['Int']['output'];
|
|
261
|
+
url: Scalars['String']['output'];
|
|
262
|
+
};
|
|
263
|
+
export type FileContentDataInput = {
|
|
264
|
+
checksum?: InputMaybe<Scalars['String']['input']>;
|
|
265
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
266
|
+
mimeType: Scalars['String']['input'];
|
|
267
|
+
name: Scalars['String']['input'];
|
|
268
|
+
size: Scalars['Int']['input'];
|
|
269
|
+
uploadedAt: Scalars['Int']['input'];
|
|
270
|
+
url: Scalars['String']['input'];
|
|
271
|
+
};
|
|
272
|
+
export type HealthStatus = {
|
|
273
|
+
__typename?: 'HealthStatus';
|
|
274
|
+
status: Scalars['String']['output'];
|
|
275
|
+
timestamp: Scalars['Int']['output'];
|
|
276
|
+
};
|
|
277
|
+
export type ImageContentData = {
|
|
278
|
+
__typename?: 'ImageContentData';
|
|
279
|
+
alt: Scalars['String']['output'];
|
|
280
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
281
|
+
height: Scalars['Int']['output'];
|
|
282
|
+
mimeType: Scalars['String']['output'];
|
|
283
|
+
size: Scalars['Int']['output'];
|
|
284
|
+
thumbnail?: Maybe<Scalars['String']['output']>;
|
|
285
|
+
uploadedAt: Scalars['Int']['output'];
|
|
286
|
+
url: Scalars['String']['output'];
|
|
287
|
+
width: Scalars['Int']['output'];
|
|
288
|
+
};
|
|
289
|
+
export type ImageContentDataInput = {
|
|
290
|
+
alt: Scalars['String']['input'];
|
|
291
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
292
|
+
height: Scalars['Int']['input'];
|
|
293
|
+
mimeType: Scalars['String']['input'];
|
|
294
|
+
size: Scalars['Int']['input'];
|
|
295
|
+
thumbnail?: InputMaybe<Scalars['String']['input']>;
|
|
296
|
+
uploadedAt: Scalars['Int']['input'];
|
|
297
|
+
url: Scalars['String']['input'];
|
|
298
|
+
width: Scalars['Int']['input'];
|
|
299
|
+
};
|
|
300
|
+
export type ImageInputContentData = {
|
|
301
|
+
__typename?: 'ImageInputContentData';
|
|
302
|
+
allowedTypes?: Maybe<Array<Scalars['String']['output']>>;
|
|
303
|
+
callback: Scalars['String']['output'];
|
|
304
|
+
maxSize?: Maybe<Scalars['Int']['output']>;
|
|
305
|
+
uploadUrl?: Maybe<Scalars['String']['output']>;
|
|
306
|
+
};
|
|
307
|
+
export type ImageInputContentDataInput = {
|
|
308
|
+
allowedTypes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
309
|
+
callback: Scalars['String']['input'];
|
|
310
|
+
maxSize?: InputMaybe<Scalars['Int']['input']>;
|
|
311
|
+
uploadUrl?: InputMaybe<Scalars['String']['input']>;
|
|
312
|
+
};
|
|
313
|
+
export type InitBotInChatInput = {
|
|
314
|
+
accountId: Scalars['UUID']['input'];
|
|
315
|
+
botId: Scalars['UUID']['input'];
|
|
316
|
+
chatId: Scalars['UUID']['input'];
|
|
317
|
+
flowId: Scalars['String']['input'];
|
|
318
|
+
metadata?: InputMaybe<Scalars['JSON']['input']>;
|
|
319
|
+
participantId: Scalars['UUID']['input'];
|
|
320
|
+
payload?: InputMaybe<Scalars['JSON']['input']>;
|
|
321
|
+
};
|
|
322
|
+
export type InvoiceCurrency = 'EUR' | 'RUB' | 'USD';
|
|
323
|
+
export type InvoiceStatus = 'CANCELLED' | 'EXPIRED' | 'FAILED' | 'PAID' | 'PENDING';
|
|
324
|
+
export type LdcContentData = {
|
|
325
|
+
__typename?: 'LdcContentData';
|
|
326
|
+
activity: ActivityContentData;
|
|
327
|
+
confidenceScore: Scalars['Int']['output'];
|
|
328
|
+
goal: Scalars['String']['output'];
|
|
329
|
+
issue: Scalars['String']['output'];
|
|
330
|
+
};
|
|
331
|
+
export type LdcContentDataInput = {
|
|
332
|
+
activity: ActivityContentDataInput;
|
|
333
|
+
confidenceScore: Scalars['Int']['input'];
|
|
334
|
+
goal: Scalars['String']['input'];
|
|
335
|
+
issue: Scalars['String']['input'];
|
|
336
|
+
};
|
|
337
|
+
export type MessageContentData = {
|
|
338
|
+
__typename?: 'MessageContentData';
|
|
339
|
+
activity?: Maybe<ActivityContentData>;
|
|
340
|
+
callInvite?: Maybe<CallInviteContentData>;
|
|
341
|
+
cards?: Maybe<CardsContentData>;
|
|
342
|
+
file?: Maybe<FileContentData>;
|
|
343
|
+
image?: Maybe<ImageContentData>;
|
|
344
|
+
imageInput?: Maybe<ImageInputContentData>;
|
|
345
|
+
ldc?: Maybe<LdcContentData>;
|
|
346
|
+
msItem?: Maybe<MsItemContentData>;
|
|
347
|
+
policy?: Maybe<PolicyContentData>;
|
|
348
|
+
selector?: Maybe<SelectorContentData>;
|
|
349
|
+
text?: Maybe<TextContentData>;
|
|
350
|
+
ticket?: Maybe<TicketContentData>;
|
|
351
|
+
};
|
|
352
|
+
export type MessageContentDataInput = {
|
|
353
|
+
activity?: InputMaybe<ActivityContentDataInput>;
|
|
354
|
+
callInvite?: InputMaybe<CallInviteContentDataInput>;
|
|
355
|
+
cards?: InputMaybe<CardsContentDataInput>;
|
|
356
|
+
file?: InputMaybe<FileContentDataInput>;
|
|
357
|
+
image?: InputMaybe<ImageContentDataInput>;
|
|
358
|
+
imageInput?: InputMaybe<ImageInputContentDataInput>;
|
|
359
|
+
ldc?: InputMaybe<LdcContentDataInput>;
|
|
360
|
+
msItem?: InputMaybe<MsItemContentDataInput>;
|
|
361
|
+
policy?: InputMaybe<PolicyContentDataInput>;
|
|
362
|
+
selector?: InputMaybe<SelectorContentDataInput>;
|
|
363
|
+
text?: InputMaybe<TextContentDataInput>;
|
|
364
|
+
ticket?: InputMaybe<TicketContentDataInput>;
|
|
365
|
+
};
|
|
366
|
+
export type MessageContentItem = {
|
|
367
|
+
__typename?: 'MessageContentItem';
|
|
368
|
+
data: MessageContentData;
|
|
369
|
+
order: Scalars['Int']['output'];
|
|
370
|
+
type: ContentType;
|
|
371
|
+
};
|
|
372
|
+
export type MessageContentItemInput = {
|
|
373
|
+
data: MessageContentDataInput;
|
|
374
|
+
order: Scalars['Int']['input'];
|
|
375
|
+
type: ContentType;
|
|
376
|
+
};
|
|
377
|
+
export type MessageResponse = {
|
|
378
|
+
__typename?: 'MessageResponse';
|
|
379
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
380
|
+
message?: Maybe<ChatMessage>;
|
|
381
|
+
success: Scalars['Boolean']['output'];
|
|
382
|
+
};
|
|
383
|
+
export type MessageRole = 'ASSISTANT' | 'PARTICIPANT' | 'SYSTEM';
|
|
384
|
+
export type MessageVisibility = 'BROADCASTED' | 'ONLY_VIEWER';
|
|
385
|
+
export type MessagesPageInfo = {
|
|
386
|
+
__typename?: 'MessagesPageInfo';
|
|
387
|
+
hasMore: Scalars['Boolean']['output'];
|
|
388
|
+
nextCursor?: Maybe<Scalars['String']['output']>;
|
|
389
|
+
};
|
|
390
|
+
export type MsItemContentData = {
|
|
391
|
+
__typename?: 'MsItemContentData';
|
|
392
|
+
avatar?: Maybe<Scalars['String']['output']>;
|
|
393
|
+
confidenceScore: Scalars['Int']['output'];
|
|
394
|
+
goal: Scalars['String']['output'];
|
|
395
|
+
issue: Scalars['String']['output'];
|
|
396
|
+
};
|
|
397
|
+
export type MsItemContentDataInput = {
|
|
398
|
+
avatar?: InputMaybe<Scalars['String']['input']>;
|
|
399
|
+
confidenceScore: Scalars['Int']['input'];
|
|
400
|
+
goal: Scalars['String']['input'];
|
|
401
|
+
issue: Scalars['String']['input'];
|
|
402
|
+
};
|
|
403
|
+
export type Mutation = {
|
|
404
|
+
__typename?: 'Mutation';
|
|
405
|
+
addBotMessage: MessageResponse;
|
|
406
|
+
addParticipantMessage: MessageResponse;
|
|
407
|
+
createChat: ChatResponse;
|
|
408
|
+
createParticipant: SuccessResponse;
|
|
409
|
+
deleteBot: SuccessResponse;
|
|
410
|
+
initBotInChat: SuccessResponse;
|
|
411
|
+
markChatAsRead: SuccessResponse;
|
|
412
|
+
registerBot: BotResponse;
|
|
413
|
+
sendBotActionToParticipant: SuccessResponse;
|
|
414
|
+
sendChatAction: SuccessResponse;
|
|
415
|
+
updateBot: BotResponse;
|
|
416
|
+
updateChatType: SuccessResponse;
|
|
417
|
+
updateParticipant: SuccessResponse;
|
|
418
|
+
};
|
|
419
|
+
export type MutationAddBotMessageArgs = {
|
|
420
|
+
input: BotMessageInput;
|
|
421
|
+
};
|
|
422
|
+
export type MutationAddParticipantMessageArgs = {
|
|
423
|
+
input: ParticipantMessageInput;
|
|
424
|
+
};
|
|
425
|
+
export type MutationCreateChatArgs = {
|
|
426
|
+
input: CreateChatInput;
|
|
427
|
+
};
|
|
428
|
+
export type MutationCreateParticipantArgs = {
|
|
429
|
+
input: CreateParticipantInput;
|
|
430
|
+
};
|
|
431
|
+
export type MutationDeleteBotArgs = {
|
|
432
|
+
id: Scalars['UUID']['input'];
|
|
433
|
+
};
|
|
434
|
+
export type MutationInitBotInChatArgs = {
|
|
435
|
+
input: InitBotInChatInput;
|
|
436
|
+
};
|
|
437
|
+
export type MutationMarkChatAsReadArgs = {
|
|
438
|
+
chatId: Scalars['UUID']['input'];
|
|
439
|
+
participantId: Scalars['UUID']['input'];
|
|
440
|
+
};
|
|
441
|
+
export type MutationRegisterBotArgs = {
|
|
442
|
+
input: RegisterBotInput;
|
|
443
|
+
};
|
|
444
|
+
export type MutationSendBotActionToParticipantArgs = {
|
|
445
|
+
input: SendBotActionToParticipantInput;
|
|
446
|
+
};
|
|
447
|
+
export type MutationSendChatActionArgs = {
|
|
448
|
+
input: SendChatActionInput;
|
|
449
|
+
};
|
|
450
|
+
export type MutationUpdateBotArgs = {
|
|
451
|
+
input: UpdateBotInput;
|
|
452
|
+
};
|
|
453
|
+
export type MutationUpdateChatTypeArgs = {
|
|
454
|
+
input: UpdateChatTypeInput;
|
|
455
|
+
};
|
|
456
|
+
export type MutationUpdateParticipantArgs = {
|
|
457
|
+
input: UpdateParticipantInput;
|
|
458
|
+
};
|
|
459
|
+
export type NameSource = 'MANUAL' | 'SUMMARIZER' | 'SYSTEM';
|
|
460
|
+
export type Participant = {
|
|
461
|
+
__typename?: 'Participant';
|
|
462
|
+
avatar?: Maybe<Scalars['String']['output']>;
|
|
463
|
+
createdAt: Scalars['DateTime']['output'];
|
|
464
|
+
id: Scalars['UUID']['output'];
|
|
465
|
+
name: Scalars['String']['output'];
|
|
466
|
+
source: NameSource;
|
|
467
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
468
|
+
};
|
|
469
|
+
export type ParticipantChatView = {
|
|
470
|
+
__typename?: 'ParticipantChatView';
|
|
471
|
+
customAvatar?: Maybe<Scalars['String']['output']>;
|
|
472
|
+
customTitle?: Maybe<Scalars['String']['output']>;
|
|
473
|
+
participantId: Scalars['UUID']['output'];
|
|
474
|
+
summary?: Maybe<Scalars['String']['output']>;
|
|
475
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
476
|
+
};
|
|
477
|
+
export type ParticipantChatViewInput = {
|
|
478
|
+
customAvatar?: InputMaybe<Scalars['String']['input']>;
|
|
479
|
+
customTitle?: InputMaybe<Scalars['String']['input']>;
|
|
480
|
+
participantId: Scalars['UUID']['input'];
|
|
481
|
+
summary?: InputMaybe<Scalars['String']['input']>;
|
|
482
|
+
};
|
|
483
|
+
export type ParticipantChatsResponse = {
|
|
484
|
+
__typename?: 'ParticipantChatsResponse';
|
|
485
|
+
chats: Array<Chat>;
|
|
486
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
487
|
+
success: Scalars['Boolean']['output'];
|
|
488
|
+
};
|
|
489
|
+
export type ParticipantMessageInput = {
|
|
490
|
+
accountId: Scalars['UUID']['input'];
|
|
491
|
+
chatId: Scalars['UUID']['input'];
|
|
492
|
+
contents: Array<MessageContentItemInput>;
|
|
493
|
+
messageId?: InputMaybe<Scalars['UUID']['input']>;
|
|
494
|
+
metadata?: InputMaybe<Scalars['JSON']['input']>;
|
|
495
|
+
participantId: Scalars['UUID']['input'];
|
|
496
|
+
};
|
|
497
|
+
export type PolicyContentData = {
|
|
498
|
+
__typename?: 'PolicyContentData';
|
|
499
|
+
callback: Scalars['String']['output'];
|
|
500
|
+
policyText?: Maybe<Scalars['String']['output']>;
|
|
501
|
+
policyUrl?: Maybe<Scalars['String']['output']>;
|
|
502
|
+
required?: Maybe<Scalars['Boolean']['output']>;
|
|
503
|
+
};
|
|
504
|
+
export type PolicyContentDataInput = {
|
|
505
|
+
callback: Scalars['String']['input'];
|
|
506
|
+
policyText?: InputMaybe<Scalars['String']['input']>;
|
|
507
|
+
policyUrl?: InputMaybe<Scalars['String']['input']>;
|
|
508
|
+
required?: InputMaybe<Scalars['Boolean']['input']>;
|
|
509
|
+
};
|
|
510
|
+
export type Query = {
|
|
511
|
+
__typename?: 'Query';
|
|
512
|
+
bot: BotResponse;
|
|
513
|
+
bots: BotsResponse;
|
|
514
|
+
chatById: ChatWithMessagesResponse;
|
|
515
|
+
checkBot: BotCheckResponse;
|
|
516
|
+
health: HealthStatus;
|
|
517
|
+
participantChats: ParticipantChatsResponse;
|
|
518
|
+
unreadChatsCount: UnreadChatsCountResponse;
|
|
519
|
+
};
|
|
520
|
+
export type QueryBotArgs = {
|
|
521
|
+
id: Scalars['UUID']['input'];
|
|
522
|
+
};
|
|
523
|
+
export type QueryChatByIdArgs = {
|
|
524
|
+
chatId: Scalars['UUID']['input'];
|
|
525
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
526
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
527
|
+
participantId: Scalars['UUID']['input'];
|
|
528
|
+
};
|
|
529
|
+
export type QueryCheckBotArgs = {
|
|
530
|
+
key: Scalars['String']['input'];
|
|
531
|
+
};
|
|
532
|
+
export type QueryParticipantChatsArgs = {
|
|
533
|
+
kinds?: InputMaybe<Array<ChatKind>>;
|
|
534
|
+
lifecycle?: InputMaybe<Array<ChatLifecycle>>;
|
|
535
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
536
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
537
|
+
participantId: Scalars['UUID']['input'];
|
|
538
|
+
};
|
|
539
|
+
export type QueryUnreadChatsCountArgs = {
|
|
540
|
+
participantId: Scalars['UUID']['input'];
|
|
541
|
+
};
|
|
542
|
+
export type RebookingData = {
|
|
543
|
+
__typename?: 'RebookingData';
|
|
544
|
+
bookingId: Scalars['UUID']['output'];
|
|
545
|
+
createdAt: Scalars['Int']['output'];
|
|
546
|
+
id: Scalars['UUID']['output'];
|
|
547
|
+
originalConfirmed: Scalars['Boolean']['output'];
|
|
548
|
+
proposedByUser: Scalars['Boolean']['output'];
|
|
549
|
+
proposedTime: Scalars['Int']['output'];
|
|
550
|
+
status: RebookingStatus;
|
|
551
|
+
updatedAt: Scalars['Int']['output'];
|
|
552
|
+
};
|
|
553
|
+
export type RebookingDataInput = {
|
|
554
|
+
bookingId: Scalars['UUID']['input'];
|
|
555
|
+
createdAt: Scalars['Int']['input'];
|
|
556
|
+
id: Scalars['UUID']['input'];
|
|
557
|
+
originalConfirmed: Scalars['Boolean']['input'];
|
|
558
|
+
proposedByUser: Scalars['Boolean']['input'];
|
|
559
|
+
proposedTime: Scalars['Int']['input'];
|
|
560
|
+
status: RebookingStatus;
|
|
561
|
+
updatedAt: Scalars['Int']['input'];
|
|
562
|
+
};
|
|
563
|
+
export type RebookingStatus = 'ACCEPTED' | 'CANCELED' | 'DECLINED' | 'PENDING';
|
|
564
|
+
export type RegisterBotInput = {
|
|
565
|
+
connectionType: BotConnectionType;
|
|
566
|
+
eventStream?: InputMaybe<Scalars['String']['input']>;
|
|
567
|
+
id?: InputMaybe<Scalars['UUID']['input']>;
|
|
568
|
+
key: Scalars['String']['input'];
|
|
569
|
+
mcpAddress?: InputMaybe<Scalars['String']['input']>;
|
|
570
|
+
metadata?: InputMaybe<Scalars['JSON']['input']>;
|
|
571
|
+
name: Scalars['String']['input'];
|
|
572
|
+
};
|
|
573
|
+
export type SelectorContentData = {
|
|
574
|
+
__typename?: 'SelectorContentData';
|
|
575
|
+
callback: Scalars['String']['output'];
|
|
576
|
+
maxSelections?: Maybe<Scalars['Int']['output']>;
|
|
577
|
+
multiple: Scalars['Boolean']['output'];
|
|
578
|
+
options: Array<Scalars['String']['output']>;
|
|
579
|
+
placeholder?: Maybe<Scalars['String']['output']>;
|
|
580
|
+
};
|
|
581
|
+
export type SelectorContentDataInput = {
|
|
582
|
+
callback: Scalars['String']['input'];
|
|
583
|
+
maxSelections?: InputMaybe<Scalars['Int']['input']>;
|
|
584
|
+
multiple: Scalars['Boolean']['input'];
|
|
585
|
+
options: Array<Scalars['String']['input']>;
|
|
586
|
+
placeholder?: InputMaybe<Scalars['String']['input']>;
|
|
587
|
+
};
|
|
588
|
+
export type SendBotActionToParticipantInput = {
|
|
589
|
+
action: Scalars['String']['input'];
|
|
590
|
+
botId: Scalars['UUID']['input'];
|
|
591
|
+
chatId: Scalars['UUID']['input'];
|
|
592
|
+
data?: InputMaybe<Scalars['JSON']['input']>;
|
|
593
|
+
participantId: Scalars['UUID']['input'];
|
|
594
|
+
};
|
|
595
|
+
export type SendChatActionInput = {
|
|
596
|
+
accountId: Scalars['UUID']['input'];
|
|
597
|
+
action: Scalars['String']['input'];
|
|
598
|
+
chatId: Scalars['UUID']['input'];
|
|
599
|
+
data?: InputMaybe<Scalars['JSON']['input']>;
|
|
600
|
+
participantId: Scalars['UUID']['input'];
|
|
601
|
+
};
|
|
602
|
+
export type Subscription = {
|
|
603
|
+
__typename?: 'Subscription';
|
|
604
|
+
chatEvents: ChatEventResponse;
|
|
605
|
+
};
|
|
606
|
+
export type SubscriptionChatEventsArgs = {
|
|
607
|
+
chatId?: InputMaybe<Scalars['UUID']['input']>;
|
|
608
|
+
participantId?: InputMaybe<Scalars['UUID']['input']>;
|
|
609
|
+
};
|
|
610
|
+
export type SuccessResponse = {
|
|
611
|
+
__typename?: 'SuccessResponse';
|
|
612
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
613
|
+
success: Scalars['Boolean']['output'];
|
|
614
|
+
};
|
|
615
|
+
export type TextContentData = {
|
|
616
|
+
__typename?: 'TextContentData';
|
|
617
|
+
text: Scalars['String']['output'];
|
|
618
|
+
};
|
|
619
|
+
export type TextContentDataInput = {
|
|
620
|
+
text: Scalars['String']['input'];
|
|
621
|
+
};
|
|
622
|
+
export type TicketContentData = {
|
|
623
|
+
__typename?: 'TicketContentData';
|
|
624
|
+
chainId?: Maybe<Scalars['UUID']['output']>;
|
|
625
|
+
chainIndex?: Maybe<Scalars['Int']['output']>;
|
|
626
|
+
createdAt: Scalars['Int']['output'];
|
|
627
|
+
durationMinutes: Scalars['Int']['output'];
|
|
628
|
+
format: ActivityFormat;
|
|
629
|
+
id: Scalars['UUID']['output'];
|
|
630
|
+
invoice: TicketInvoiceData;
|
|
631
|
+
price: Scalars['Int']['output'];
|
|
632
|
+
serviceId: Scalars['UUID']['output'];
|
|
633
|
+
specialistId: Scalars['UUID']['output'];
|
|
634
|
+
startTime: Scalars['Int']['output'];
|
|
635
|
+
status: ActivityStatus;
|
|
636
|
+
updatedAt: Scalars['Int']['output'];
|
|
637
|
+
userId: Scalars['UUID']['output'];
|
|
638
|
+
};
|
|
639
|
+
export type TicketContentDataInput = {
|
|
640
|
+
chainId?: InputMaybe<Scalars['UUID']['input']>;
|
|
641
|
+
chainIndex?: InputMaybe<Scalars['Int']['input']>;
|
|
642
|
+
createdAt: Scalars['Int']['input'];
|
|
643
|
+
durationMinutes: Scalars['Int']['input'];
|
|
644
|
+
format: ActivityFormat;
|
|
645
|
+
id: Scalars['UUID']['input'];
|
|
646
|
+
invoice: TicketInvoiceDataInput;
|
|
647
|
+
price: Scalars['Int']['input'];
|
|
648
|
+
serviceId: Scalars['UUID']['input'];
|
|
649
|
+
specialistId: Scalars['UUID']['input'];
|
|
650
|
+
startTime: Scalars['Int']['input'];
|
|
651
|
+
status: ActivityStatus;
|
|
652
|
+
updatedAt: Scalars['Int']['input'];
|
|
653
|
+
userId: Scalars['UUID']['input'];
|
|
654
|
+
};
|
|
655
|
+
export type TicketInvoiceData = {
|
|
656
|
+
__typename?: 'TicketInvoiceData';
|
|
657
|
+
amount: Scalars['Int']['output'];
|
|
658
|
+
createdAt: Scalars['Int']['output'];
|
|
659
|
+
currency: InvoiceCurrency;
|
|
660
|
+
expiresAt: Scalars['Int']['output'];
|
|
661
|
+
id: Scalars['String']['output'];
|
|
662
|
+
paymentUrl: Scalars['String']['output'];
|
|
663
|
+
status: InvoiceStatus;
|
|
664
|
+
};
|
|
665
|
+
export type TicketInvoiceDataInput = {
|
|
666
|
+
amount: Scalars['Int']['input'];
|
|
667
|
+
createdAt: Scalars['Int']['input'];
|
|
668
|
+
currency: InvoiceCurrency;
|
|
669
|
+
expiresAt: Scalars['Int']['input'];
|
|
670
|
+
id: Scalars['String']['input'];
|
|
671
|
+
paymentUrl: Scalars['String']['input'];
|
|
672
|
+
status: InvoiceStatus;
|
|
673
|
+
};
|
|
674
|
+
export type UnreadChatsCountResponse = {
|
|
675
|
+
__typename?: 'UnreadChatsCountResponse';
|
|
676
|
+
count: Scalars['Int']['output'];
|
|
677
|
+
error?: Maybe<Scalars['String']['output']>;
|
|
678
|
+
participantId: Scalars['UUID']['output'];
|
|
679
|
+
success: Scalars['Boolean']['output'];
|
|
680
|
+
};
|
|
681
|
+
export type UpdateBotInput = {
|
|
682
|
+
connectionType?: InputMaybe<BotConnectionType>;
|
|
683
|
+
eventStream?: InputMaybe<Scalars['String']['input']>;
|
|
684
|
+
id: Scalars['UUID']['input'];
|
|
685
|
+
mcpAddress?: InputMaybe<Scalars['String']['input']>;
|
|
686
|
+
metadata?: InputMaybe<Scalars['JSON']['input']>;
|
|
687
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
688
|
+
};
|
|
689
|
+
export type UpdateChatTypeInput = {
|
|
690
|
+
chatId: Scalars['UUID']['input'];
|
|
691
|
+
kind?: InputMaybe<ChatKind>;
|
|
692
|
+
lifecycle?: InputMaybe<ChatLifecycle>;
|
|
693
|
+
participantId: Scalars['UUID']['input'];
|
|
694
|
+
};
|
|
695
|
+
export type UpdateParticipantInput = {
|
|
696
|
+
avatar?: InputMaybe<Scalars['String']['input']>;
|
|
697
|
+
id: Scalars['UUID']['input'];
|
|
698
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
699
|
+
source?: InputMaybe<NameSource>;
|
|
700
|
+
};
|
|
701
|
+
//# sourceMappingURL=generated.d.ts.map
|