@azure/web-pubsub-chat-client 1.0.0-beta.1
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/CHANGELOG.md +5 -0
- package/README.md +175 -0
- package/dist/browser/index.js +4754 -0
- package/dist/browser/index.js.map +7 -0
- package/dist/chatClient.d.ts +253 -0
- package/dist/chatClient.d.ts.map +1 -0
- package/dist/constant.d.ts +21 -0
- package/dist/constant.d.ts.map +1 -0
- package/dist/events.d.ts +70 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/generatedTypes.d.ts +406 -0
- package/dist/generatedTypes.d.ts.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2620 -0
- package/dist/index.js.map +7 -0
- package/dist/logger.d.ts +5 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/modelGuards.d.ts +2 -0
- package/dist/modelGuards.d.ts.map +1 -0
- package/dist/models.d.ts +71 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/options.d.ts +69 -0
- package/dist/options.d.ts.map +1 -0
- package/dist/utils.d.ts +11 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export type paths = Record<string, never>;
|
|
6
|
+
export type webhooks = Record<string, never>;
|
|
7
|
+
export interface components {
|
|
8
|
+
schemas: {
|
|
9
|
+
/** @enum {string} */
|
|
10
|
+
NotificationType: "MessageCreated" | "MessageUpdated" | "MessageDeleted" | "RoomJoined" | "RoomLeft" | "RoomClosed" | "RoomMemberJoined" | "RoomMemberLeft" | "AddContact";
|
|
11
|
+
Notification: {
|
|
12
|
+
notificationType: components["schemas"]["NotificationType"];
|
|
13
|
+
body: components["schemas"]["NewMessageNotificationBody"] | components["schemas"]["NewRoomNotificationBody"] | components["schemas"]["UpdateMessageNotificationBody"] | components["schemas"]["AddContactNotificationBody"] | components["schemas"]["MemberJoinedNotificationBody"] | components["schemas"]["MemberLeftNotificationBody"] | components["schemas"]["RoomLeftNotificationBody"];
|
|
14
|
+
};
|
|
15
|
+
NewMessageNotificationBody: {
|
|
16
|
+
conversation: components["schemas"]["ChatConversation"];
|
|
17
|
+
message: components["schemas"]["MessageInfo"];
|
|
18
|
+
/**
|
|
19
|
+
* @description discriminator enum property added by openapi-typescript
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
notificationType: "MessageCreated";
|
|
23
|
+
};
|
|
24
|
+
NewMessageNotification: components["schemas"]["Notification"] & {
|
|
25
|
+
/** @enum {string} */
|
|
26
|
+
notificationType?: "NewMessage";
|
|
27
|
+
};
|
|
28
|
+
NewRoomNotificationBody: {
|
|
29
|
+
roomId: string;
|
|
30
|
+
title: string;
|
|
31
|
+
defaultConversationId?: string;
|
|
32
|
+
/** @description null for now */
|
|
33
|
+
properties?: Record<string, never> | null;
|
|
34
|
+
/**
|
|
35
|
+
* @description discriminator enum property added by openapi-typescript
|
|
36
|
+
* @enum {string}
|
|
37
|
+
*/
|
|
38
|
+
notificationType: "RoomJoined";
|
|
39
|
+
};
|
|
40
|
+
NewRoomNotification: components["schemas"]["Notification"] & {
|
|
41
|
+
/** @enum {string} */
|
|
42
|
+
notificationType?: "NewRoom";
|
|
43
|
+
body?: components["schemas"]["NewRoomNotificationBody"];
|
|
44
|
+
};
|
|
45
|
+
UpdateMessageNotificationBody: {
|
|
46
|
+
conversation: components["schemas"]["ChatConversation"];
|
|
47
|
+
message: components["schemas"]["MessageInfo"];
|
|
48
|
+
/**
|
|
49
|
+
* @description discriminator enum property added by openapi-typescript
|
|
50
|
+
* @enum {string}
|
|
51
|
+
*/
|
|
52
|
+
notificationType: "MessageUpdated";
|
|
53
|
+
};
|
|
54
|
+
UpdateMessageNotification: components["schemas"]["Notification"] & {
|
|
55
|
+
/** @enum {string} */
|
|
56
|
+
notificationType?: "UpdateMessage";
|
|
57
|
+
body?: components["schemas"]["UpdateMessageNotificationBody"];
|
|
58
|
+
};
|
|
59
|
+
AddContactNotificationBody: {
|
|
60
|
+
userId: string;
|
|
61
|
+
/**
|
|
62
|
+
* @description discriminator enum property added by openapi-typescript
|
|
63
|
+
* @enum {string}
|
|
64
|
+
*/
|
|
65
|
+
notificationType: "AddContact";
|
|
66
|
+
};
|
|
67
|
+
AddContactNotification: components["schemas"]["Notification"] & {
|
|
68
|
+
/** @enum {string} */
|
|
69
|
+
notificationType?: "AddContact";
|
|
70
|
+
body?: components["schemas"]["AddContactNotificationBody"];
|
|
71
|
+
};
|
|
72
|
+
MemberJoinedNotificationBody: {
|
|
73
|
+
roomId: string;
|
|
74
|
+
title: string;
|
|
75
|
+
userId: string;
|
|
76
|
+
/**
|
|
77
|
+
* @description discriminator enum property added by openapi-typescript
|
|
78
|
+
* @enum {string}
|
|
79
|
+
*/
|
|
80
|
+
notificationType: "RoomMemberJoined";
|
|
81
|
+
};
|
|
82
|
+
MemberJoinedNotification: components["schemas"]["Notification"] & {
|
|
83
|
+
/** @enum {string} */
|
|
84
|
+
notificationType?: "MemberJoined";
|
|
85
|
+
body?: components["schemas"]["MemberJoinedNotificationBody"];
|
|
86
|
+
};
|
|
87
|
+
MemberLeftNotificationBody: {
|
|
88
|
+
roomId: string;
|
|
89
|
+
title: string;
|
|
90
|
+
userId: string;
|
|
91
|
+
/**
|
|
92
|
+
* @description discriminator enum property added by openapi-typescript
|
|
93
|
+
* @enum {string}
|
|
94
|
+
*/
|
|
95
|
+
notificationType: "RoomMemberLeft";
|
|
96
|
+
};
|
|
97
|
+
MemberLeftNotification: components["schemas"]["Notification"] & {
|
|
98
|
+
/** @enum {string} */
|
|
99
|
+
notificationType?: "MemberLeft";
|
|
100
|
+
body?: components["schemas"]["MemberLeftNotificationBody"];
|
|
101
|
+
};
|
|
102
|
+
RoomLeftNotificationBody: {
|
|
103
|
+
roomId: string;
|
|
104
|
+
title: string;
|
|
105
|
+
/**
|
|
106
|
+
* @description discriminator enum property added by openapi-typescript
|
|
107
|
+
* @enum {string}
|
|
108
|
+
*/
|
|
109
|
+
notificationType: "RoomLeft";
|
|
110
|
+
};
|
|
111
|
+
RoomLeftNotification: components["schemas"]["Notification"] & {
|
|
112
|
+
/** @enum {string} */
|
|
113
|
+
notificationType?: "RoomLeft";
|
|
114
|
+
body?: components["schemas"]["RoomLeftNotificationBody"];
|
|
115
|
+
};
|
|
116
|
+
RoomClosedNotificationBody: {
|
|
117
|
+
roomId: string;
|
|
118
|
+
title: string;
|
|
119
|
+
/**
|
|
120
|
+
* @description discriminator enum property added by openapi-typescript
|
|
121
|
+
* @enum {string}
|
|
122
|
+
*/
|
|
123
|
+
notificationType: "RoomClosed";
|
|
124
|
+
};
|
|
125
|
+
RoomClosedNotification: components["schemas"]["Notification"] & {
|
|
126
|
+
/** @enum {string} */
|
|
127
|
+
notificationType?: "RoomClosed";
|
|
128
|
+
body?: components["schemas"]["RoomClosedNotificationBody"];
|
|
129
|
+
};
|
|
130
|
+
MessageDeletedNotificationBody: {
|
|
131
|
+
conversation: components["schemas"]["ChatConversation"];
|
|
132
|
+
messageId: string;
|
|
133
|
+
/**
|
|
134
|
+
* @description discriminator enum property added by openapi-typescript
|
|
135
|
+
* @enum {string}
|
|
136
|
+
*/
|
|
137
|
+
notificationType: "MessageDeleted";
|
|
138
|
+
};
|
|
139
|
+
MessageDeletedNotification: components["schemas"]["Notification"] & {
|
|
140
|
+
/** @enum {string} */
|
|
141
|
+
notificationType?: "MessageDeleted";
|
|
142
|
+
body?: components["schemas"]["MessageDeletedNotificationBody"];
|
|
143
|
+
};
|
|
144
|
+
UserProfile: {
|
|
145
|
+
/**
|
|
146
|
+
* @description Unique identifier for the user
|
|
147
|
+
* @example user123
|
|
148
|
+
*/
|
|
149
|
+
userId: string;
|
|
150
|
+
/**
|
|
151
|
+
* @description Array of room IDs the user is in
|
|
152
|
+
* @example [
|
|
153
|
+
* "room1",
|
|
154
|
+
* "room2",
|
|
155
|
+
* "room3"
|
|
156
|
+
* ]
|
|
157
|
+
*/
|
|
158
|
+
roomIds?: string[];
|
|
159
|
+
/**
|
|
160
|
+
* @description Array of conversation IDs the user is in
|
|
161
|
+
* @example [
|
|
162
|
+
* "id1",
|
|
163
|
+
* "id2",
|
|
164
|
+
* "id3"
|
|
165
|
+
* ]
|
|
166
|
+
*/
|
|
167
|
+
conversationIds?: string[];
|
|
168
|
+
};
|
|
169
|
+
ListUserConversationRequest: {
|
|
170
|
+
continuationToken?: string | null;
|
|
171
|
+
/** @default 1000 */
|
|
172
|
+
maxCount: number | null;
|
|
173
|
+
};
|
|
174
|
+
ListUserConversationResponse: {
|
|
175
|
+
conversations: components["schemas"]["ChatConversation"][];
|
|
176
|
+
continuationToken?: string | null;
|
|
177
|
+
};
|
|
178
|
+
ChatConversation: {
|
|
179
|
+
roomId?: string | null;
|
|
180
|
+
/** @description null for now */
|
|
181
|
+
topicId?: string | null;
|
|
182
|
+
conversationId?: string | null;
|
|
183
|
+
};
|
|
184
|
+
/** @enum {string} */
|
|
185
|
+
ApprovalEnum: "AutoApprove" | "ManualApprove" | "AutoDeny";
|
|
186
|
+
UserPolicy: {
|
|
187
|
+
addContact: components["schemas"]["ApprovalEnum"];
|
|
188
|
+
/**
|
|
189
|
+
* @example [
|
|
190
|
+
* "Nickname"
|
|
191
|
+
* ]
|
|
192
|
+
*/
|
|
193
|
+
publicProperties?: string[];
|
|
194
|
+
friendProperties?: string[];
|
|
195
|
+
privateProperties?: string[];
|
|
196
|
+
};
|
|
197
|
+
/** @enum {string} */
|
|
198
|
+
ContactResultState: "OK" | "Pending" | "Failed";
|
|
199
|
+
AddContactResult: {
|
|
200
|
+
userId: string;
|
|
201
|
+
state: components["schemas"]["ContactResultState"];
|
|
202
|
+
message: string;
|
|
203
|
+
};
|
|
204
|
+
ContactRequest: {
|
|
205
|
+
userId: string;
|
|
206
|
+
message: string;
|
|
207
|
+
};
|
|
208
|
+
/** @enum {string} */
|
|
209
|
+
ContactOperation: "Approve" | "Deny" | "Block";
|
|
210
|
+
ContactRequestOperation: {
|
|
211
|
+
operation: components["schemas"]["ContactOperation"];
|
|
212
|
+
userId: string;
|
|
213
|
+
};
|
|
214
|
+
RoomInfo: {
|
|
215
|
+
roomId: string;
|
|
216
|
+
title: string;
|
|
217
|
+
defaultConversationId: string;
|
|
218
|
+
/** @description null for now */
|
|
219
|
+
properties?: Record<string, never> | null;
|
|
220
|
+
};
|
|
221
|
+
RoomInfoWithMembers: components["schemas"]["RoomInfo"] & {
|
|
222
|
+
/** @description List of user id */
|
|
223
|
+
members: string[];
|
|
224
|
+
};
|
|
225
|
+
/** @enum {string} */
|
|
226
|
+
RoomMemberJoinEnum: "AutoApprove" | "ManualApprove" | "InviteOnly";
|
|
227
|
+
/** @enum {string} */
|
|
228
|
+
RoomMessagePermissionEnum: "Allow" | "AdminOnly" | "Deny";
|
|
229
|
+
/** @enum {string} */
|
|
230
|
+
RoomReactPermissionEnum: "Allow" | "Deny";
|
|
231
|
+
RoomPolicy: {
|
|
232
|
+
memberJoin: components["schemas"]["RoomMemberJoinEnum"];
|
|
233
|
+
messageTypeText?: components["schemas"]["RoomMessagePermissionEnum"];
|
|
234
|
+
messageTypeImage?: components["schemas"]["RoomMessagePermissionEnum"];
|
|
235
|
+
react?: components["schemas"]["RoomReactPermissionEnum"];
|
|
236
|
+
};
|
|
237
|
+
MessageRangeQuery: {
|
|
238
|
+
conversation: components["schemas"]["ChatConversation"];
|
|
239
|
+
/** @description MessageId */
|
|
240
|
+
start?: string | null;
|
|
241
|
+
/** @description MessageId */
|
|
242
|
+
end?: string | null;
|
|
243
|
+
/** @default 100 */
|
|
244
|
+
maxCount: number | null;
|
|
245
|
+
};
|
|
246
|
+
MessageInfo: {
|
|
247
|
+
messageId: string;
|
|
248
|
+
/** @description UserId */
|
|
249
|
+
createdBy?: string;
|
|
250
|
+
/** Format: date-time */
|
|
251
|
+
createdAt?: string;
|
|
252
|
+
/** @example Join/Leave/Text/Emoji/File/Image/Voice/... */
|
|
253
|
+
bodyType?: string;
|
|
254
|
+
/** @example Inline/Reference/External/... */
|
|
255
|
+
messageBodyType: string;
|
|
256
|
+
content: {
|
|
257
|
+
text?: string | null;
|
|
258
|
+
/** Format: binary */
|
|
259
|
+
binary?: string | null;
|
|
260
|
+
};
|
|
261
|
+
refMessageId?: string | null;
|
|
262
|
+
};
|
|
263
|
+
CreateTextMessage: {
|
|
264
|
+
conversation: components["schemas"]["ChatConversation"];
|
|
265
|
+
message: string;
|
|
266
|
+
refMessageId?: string | null;
|
|
267
|
+
/** @description Array of UserId */
|
|
268
|
+
extMentions?: string[] | null;
|
|
269
|
+
extDeleteAfterRead?: boolean | null;
|
|
270
|
+
/** Format: date-time */
|
|
271
|
+
extScheduled?: string | null;
|
|
272
|
+
};
|
|
273
|
+
CreateMessage: {
|
|
274
|
+
conversation: components["schemas"]["ChatConversation"];
|
|
275
|
+
/** @example Text/Emoji/File/Image/Voice/... */
|
|
276
|
+
messageType: string;
|
|
277
|
+
content: {
|
|
278
|
+
text?: string | null;
|
|
279
|
+
/** Format: binary */
|
|
280
|
+
binary?: string | null;
|
|
281
|
+
};
|
|
282
|
+
refMessageId?: string | null;
|
|
283
|
+
/** @description Array of UserId */
|
|
284
|
+
extMentions?: string[] | null;
|
|
285
|
+
extDeleteAfterRead?: boolean | null;
|
|
286
|
+
/** Format: date-time */
|
|
287
|
+
extScheduled?: string | null;
|
|
288
|
+
};
|
|
289
|
+
MessageBody: {
|
|
290
|
+
conversation: components["schemas"]["ChatConversation"];
|
|
291
|
+
messageId: string;
|
|
292
|
+
/** @example Join/Leave/Text/Emoji/File/Image/Voice/... */
|
|
293
|
+
messageType: string;
|
|
294
|
+
/** @example Inline/Reference/External/... */
|
|
295
|
+
messageBodyType: string;
|
|
296
|
+
content: {
|
|
297
|
+
text?: string | null;
|
|
298
|
+
/** Format: binary */
|
|
299
|
+
binary?: string | null;
|
|
300
|
+
};
|
|
301
|
+
refMessageId?: string | null;
|
|
302
|
+
};
|
|
303
|
+
/** @enum {string} */
|
|
304
|
+
JoinRoomState: "OK" | "Pending" | "Failed";
|
|
305
|
+
JoinRoomResult: {
|
|
306
|
+
/** @description RoomId */
|
|
307
|
+
room: string;
|
|
308
|
+
state: components["schemas"]["JoinRoomState"];
|
|
309
|
+
message: string;
|
|
310
|
+
};
|
|
311
|
+
JoinRoomRequest: {
|
|
312
|
+
userId: string;
|
|
313
|
+
message: string;
|
|
314
|
+
};
|
|
315
|
+
/** @enum {string} */
|
|
316
|
+
JoinRoomOperationEnum: "Approve" | "Deny" | "Block";
|
|
317
|
+
JoinRoomOperation: {
|
|
318
|
+
/** @description RoomId */
|
|
319
|
+
room: string;
|
|
320
|
+
userId: string;
|
|
321
|
+
operation: components["schemas"]["JoinRoomOperationEnum"];
|
|
322
|
+
};
|
|
323
|
+
RoomMember: {
|
|
324
|
+
userId: string;
|
|
325
|
+
role: string;
|
|
326
|
+
};
|
|
327
|
+
/** @enum {string} */
|
|
328
|
+
RoomMemberOperationEnum: "Add" | "Delete" | "Update";
|
|
329
|
+
RoomMemberOperation: {
|
|
330
|
+
operation: components["schemas"]["RoomMemberOperationEnum"];
|
|
331
|
+
member: components["schemas"]["RoomMember"];
|
|
332
|
+
};
|
|
333
|
+
/** @enum {string} */
|
|
334
|
+
RoomMemberOperationType: "Add" | "Delete";
|
|
335
|
+
ManageRoomMemberRequest: {
|
|
336
|
+
roomId: string;
|
|
337
|
+
operation: components["schemas"]["RoomMemberOperationType"];
|
|
338
|
+
userId: string;
|
|
339
|
+
};
|
|
340
|
+
SendMessageResponse: {
|
|
341
|
+
id: string;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
responses: never;
|
|
345
|
+
parameters: never;
|
|
346
|
+
requestBodies: never;
|
|
347
|
+
headers: never;
|
|
348
|
+
pathItems: never;
|
|
349
|
+
}
|
|
350
|
+
export type $defs = Record<string, never>;
|
|
351
|
+
export type operations = Record<string, never>;
|
|
352
|
+
export type Schemas = components["schemas"];
|
|
353
|
+
export type NotificationType = Schemas["NotificationType"];
|
|
354
|
+
export type Notification = Schemas["Notification"];
|
|
355
|
+
export type NewMessageNotificationBody = Schemas["NewMessageNotificationBody"];
|
|
356
|
+
export type NewMessageNotification = Schemas["NewMessageNotification"];
|
|
357
|
+
export type NewRoomNotificationBody = Schemas["NewRoomNotificationBody"];
|
|
358
|
+
export type NewRoomNotification = Schemas["NewRoomNotification"];
|
|
359
|
+
export type UpdateMessageNotificationBody = Schemas["UpdateMessageNotificationBody"];
|
|
360
|
+
export type UpdateMessageNotification = Schemas["UpdateMessageNotification"];
|
|
361
|
+
export type AddContactNotificationBody = Schemas["AddContactNotificationBody"];
|
|
362
|
+
export type AddContactNotification = Schemas["AddContactNotification"];
|
|
363
|
+
export type MemberJoinedNotificationBody = Schemas["MemberJoinedNotificationBody"];
|
|
364
|
+
export type MemberJoinedNotification = Schemas["MemberJoinedNotification"];
|
|
365
|
+
export type MemberLeftNotificationBody = Schemas["MemberLeftNotificationBody"];
|
|
366
|
+
export type MemberLeftNotification = Schemas["MemberLeftNotification"];
|
|
367
|
+
export type RoomLeftNotificationBody = Schemas["RoomLeftNotificationBody"];
|
|
368
|
+
export type RoomLeftNotification = Schemas["RoomLeftNotification"];
|
|
369
|
+
export type RoomClosedNotificationBody = Schemas["RoomClosedNotificationBody"];
|
|
370
|
+
export type RoomClosedNotification = Schemas["RoomClosedNotification"];
|
|
371
|
+
export type MessageDeletedNotificationBody = Schemas["MessageDeletedNotificationBody"];
|
|
372
|
+
export type MessageDeletedNotification = Schemas["MessageDeletedNotification"];
|
|
373
|
+
export type UserProfile = Schemas["UserProfile"];
|
|
374
|
+
export type ListUserConversationRequest = Schemas["ListUserConversationRequest"];
|
|
375
|
+
export type ListUserConversationResponse = Schemas["ListUserConversationResponse"];
|
|
376
|
+
export type ChatConversation = Schemas["ChatConversation"];
|
|
377
|
+
export type ApprovalEnum = Schemas["ApprovalEnum"];
|
|
378
|
+
export type UserPolicy = Schemas["UserPolicy"];
|
|
379
|
+
export type ContactResultState = Schemas["ContactResultState"];
|
|
380
|
+
export type AddContactResult = Schemas["AddContactResult"];
|
|
381
|
+
export type ContactRequest = Schemas["ContactRequest"];
|
|
382
|
+
export type ContactOperation = Schemas["ContactOperation"];
|
|
383
|
+
export type ContactRequestOperation = Schemas["ContactRequestOperation"];
|
|
384
|
+
export type RoomInfo = Schemas["RoomInfo"];
|
|
385
|
+
export type RoomInfoWithMembers = Schemas["RoomInfoWithMembers"];
|
|
386
|
+
export type RoomMemberJoinEnum = Schemas["RoomMemberJoinEnum"];
|
|
387
|
+
export type RoomMessagePermissionEnum = Schemas["RoomMessagePermissionEnum"];
|
|
388
|
+
export type RoomReactPermissionEnum = Schemas["RoomReactPermissionEnum"];
|
|
389
|
+
export type RoomPolicy = Schemas["RoomPolicy"];
|
|
390
|
+
export type MessageRangeQuery = Schemas["MessageRangeQuery"];
|
|
391
|
+
export type MessageInfo = Schemas["MessageInfo"];
|
|
392
|
+
export type CreateTextMessage = Schemas["CreateTextMessage"];
|
|
393
|
+
export type CreateMessage = Schemas["CreateMessage"];
|
|
394
|
+
export type MessageBody = Schemas["MessageBody"];
|
|
395
|
+
export type JoinRoomState = Schemas["JoinRoomState"];
|
|
396
|
+
export type JoinRoomResult = Schemas["JoinRoomResult"];
|
|
397
|
+
export type JoinRoomRequest = Schemas["JoinRoomRequest"];
|
|
398
|
+
export type JoinRoomOperationEnum = Schemas["JoinRoomOperationEnum"];
|
|
399
|
+
export type JoinRoomOperation = Schemas["JoinRoomOperation"];
|
|
400
|
+
export type RoomMember = Schemas["RoomMember"];
|
|
401
|
+
export type RoomMemberOperationEnum = Schemas["RoomMemberOperationEnum"];
|
|
402
|
+
export type RoomMemberOperation = Schemas["RoomMemberOperation"];
|
|
403
|
+
export type RoomMemberOperationType = Schemas["RoomMemberOperationType"];
|
|
404
|
+
export type ManageRoomMemberRequest = Schemas["ManageRoomMemberRequest"];
|
|
405
|
+
export type SendMessageResponse = Schemas["SendMessageResponse"];
|
|
406
|
+
//# sourceMappingURL=generatedTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generatedTypes.d.ts","sourceRoot":"","sources":["../src/generatedTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAC7C,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE;QACL,qBAAqB;QACrB,gBAAgB,EAAE,gBAAgB,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,YAAY,GAAG,UAAU,GAAG,YAAY,GAAG,kBAAkB,GAAG,gBAAgB,GAAG,YAAY,CAAC;QAC3K,YAAY,EAAE;YACV,gBAAgB,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;YAC5D,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,4BAA4B,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,+BAA+B,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,4BAA4B,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,8BAA8B,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,4BAA4B,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,0BAA0B,CAAC,CAAC;SACjY,CAAC;QACF,0BAA0B,EAAE;YACxB,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;YACxD,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,aAAa,CAAC,CAAC;YAC9C;;;eAGG;YACH,gBAAgB,EAAE,gBAAgB,CAAC;SACt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BAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACjE,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACzE,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACzE,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ChatClient, ChatError } from './chatClient.js';
|
|
2
|
+
export type { MessageInfo, RoomInfo, RoomDetail, UserProfile, SendMessageResult, } from './models.js';
|
|
3
|
+
export type { ChatMessage, OnMessageArgs, OnRoomJoinedArgs, OnRoomLeftArgs, OnMemberJoinedArgs, OnMemberLeftArgs, OnStartedArgs, OnStoppedArgs, } from './events.js';
|
|
4
|
+
export type { OperationOptions, StartOptions, GetRoomDetailOptions, CreateRoomOptions, SendToRoomOptions, GetUserProfileOptions, AddUserToRoomOptions, RemoveUserFromRoomOptions, ListRoomMessagesOptions, } from './options.js';
|
|
5
|
+
/**
|
|
6
|
+
* Known values of `ChatError.code`. Following the Azure SDK
|
|
7
|
+
* `Known<Name>` convention, this is a runtime constants object whose
|
|
8
|
+
* values are the wire codes returned by the chat service. Compare
|
|
9
|
+
* `error.code` against members of this object rather than against
|
|
10
|
+
* string literals.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* try {
|
|
15
|
+
* await client.sendToRoom(roomId, "hi");
|
|
16
|
+
* } catch (err) {
|
|
17
|
+
* if (err instanceof ChatError && err.code === KnownChatErrorCode.UnknownRoom) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* The service may add codes in newer versions, so always handle the
|
|
24
|
+
* unknown-code case as well.
|
|
25
|
+
*/
|
|
26
|
+
export declare const KnownChatErrorCode: {
|
|
27
|
+
readonly RoomAlreadyExists: "RoomAlreadyExists";
|
|
28
|
+
readonly UserAlreadyInRoom: "UserAlreadyInRoom";
|
|
29
|
+
readonly NoPermissionInRoom: "NoPermissionInRoom";
|
|
30
|
+
readonly NotStarted: "NotStarted";
|
|
31
|
+
readonly UnknownRoom: "UnknownRoom";
|
|
32
|
+
readonly InvalidServerResponse: "InvalidServerResponse";
|
|
33
|
+
};
|
|
34
|
+
export { ChatClient, ChatError };
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGxD,YAAY,EACV,WAAW,EACX,QAAQ,EACR,UAAU,EACV,WAAW,EACX,iBAAiB,GAClB,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,aAAa,GACd,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AAEtB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;CAAS,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC"}
|