@rivet-gg/chat 0.0.2 → 0.0.5

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 (40) hide show
  1. package/dist-cjs/ChatService.js +112 -0
  2. package/dist-cjs/ChatServiceClient.js +47 -0
  3. package/dist-cjs/commands/GetDirectThreadCommand.js +36 -0
  4. package/dist-cjs/commands/GetThreadHistoryCommand.js +36 -0
  5. package/dist-cjs/commands/GetThreadTopicCommand.js +36 -0
  6. package/dist-cjs/commands/SendChatMessageCommand.js +36 -0
  7. package/dist-cjs/commands/SetThreadReadCommand.js +36 -0
  8. package/dist-cjs/commands/SetTypingStatusCommand.js +36 -0
  9. package/dist-cjs/commands/WatchThreadCommand.js +36 -0
  10. package/dist-cjs/commands/index.js +10 -0
  11. package/dist-cjs/index.js +11 -0
  12. package/dist-cjs/models/ChatServiceServiceException.js +11 -0
  13. package/dist-cjs/models/index.js +4 -0
  14. package/dist-cjs/models/models_0.js +600 -0
  15. package/dist-cjs/protocols/Aws_restJson1.js +1055 -0
  16. package/dist-cjs/runtimeConfig.browser.js +42 -0
  17. package/dist-cjs/runtimeConfig.js +45 -0
  18. package/dist-cjs/runtimeConfig.native.js +16 -0
  19. package/dist-cjs/runtimeConfig.shared.js +14 -0
  20. package/dist-es/ChatService.js +115 -0
  21. package/dist-es/ChatServiceClient.js +49 -0
  22. package/dist-es/commands/GetDirectThreadCommand.js +39 -0
  23. package/dist-es/commands/GetThreadHistoryCommand.js +39 -0
  24. package/dist-es/commands/GetThreadTopicCommand.js +39 -0
  25. package/dist-es/commands/SendChatMessageCommand.js +39 -0
  26. package/dist-es/commands/SetThreadReadCommand.js +39 -0
  27. package/dist-es/commands/SetTypingStatusCommand.js +39 -0
  28. package/dist-es/commands/WatchThreadCommand.js +39 -0
  29. package/dist-es/commands/index.js +7 -0
  30. package/dist-es/index.js +6 -0
  31. package/dist-es/models/ChatServiceServiceException.js +12 -0
  32. package/dist-es/models/index.js +1 -0
  33. package/dist-es/models/models_0.js +492 -0
  34. package/dist-es/protocols/Aws_restJson1.js +1238 -0
  35. package/dist-es/runtimeConfig.browser.js +25 -0
  36. package/dist-es/runtimeConfig.js +28 -0
  37. package/dist-es/runtimeConfig.native.js +8 -0
  38. package/dist-es/runtimeConfig.shared.js +10 -0
  39. package/dist-types/models/models_0.d.ts +1 -1
  40. package/package.json +1 -1
@@ -0,0 +1,492 @@
1
+ import { __assign, __extends } from "tslib";
2
+ import { ChatServiceServiceException as __BaseException } from "./ChatServiceServiceException";
3
+ import { SENSITIVE_STRING, } from "@aws-sdk/smithy-client";
4
+ export var QueryDirection;
5
+ (function (QueryDirection) {
6
+ QueryDirection["AFTER"] = "after";
7
+ QueryDirection["BEFORE"] = "before";
8
+ QueryDirection["BEFORE_AND_AFTER"] = "before_and_after";
9
+ })(QueryDirection || (QueryDirection = {}));
10
+ export var GetThreadHistoryInput;
11
+ (function (GetThreadHistoryInput) {
12
+ GetThreadHistoryInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
13
+ })(GetThreadHistoryInput || (GetThreadHistoryInput = {}));
14
+ export var ChatMessageBodyChatCreate;
15
+ (function (ChatMessageBodyChatCreate) {
16
+ ChatMessageBodyChatCreate.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
17
+ })(ChatMessageBodyChatCreate || (ChatMessageBodyChatCreate = {}));
18
+ export var IdentityExternalLinks;
19
+ (function (IdentityExternalLinks) {
20
+ IdentityExternalLinks.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
21
+ })(IdentityExternalLinks || (IdentityExternalLinks = {}));
22
+ export var PartyActivityIdle;
23
+ (function (PartyActivityIdle) {
24
+ PartyActivityIdle.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
25
+ })(PartyActivityIdle || (PartyActivityIdle = {}));
26
+ export var GameHandle;
27
+ (function (GameHandle) {
28
+ GameHandle.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
29
+ })(GameHandle || (GameHandle = {}));
30
+ export var PartyActivityMatchmakerFindingLobby;
31
+ (function (PartyActivityMatchmakerFindingLobby) {
32
+ PartyActivityMatchmakerFindingLobby.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
33
+ })(PartyActivityMatchmakerFindingLobby || (PartyActivityMatchmakerFindingLobby = {}));
34
+ export var PartyMatchmakerLobby;
35
+ (function (PartyMatchmakerLobby) {
36
+ PartyMatchmakerLobby.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
+ })(PartyMatchmakerLobby || (PartyMatchmakerLobby = {}));
38
+ export var PartyActivityMatchmakerLobby;
39
+ (function (PartyActivityMatchmakerLobby) {
40
+ PartyActivityMatchmakerLobby.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
41
+ })(PartyActivityMatchmakerLobby || (PartyActivityMatchmakerLobby = {}));
42
+ export var PartyActivity;
43
+ (function (PartyActivity) {
44
+ PartyActivity.visit = function (value, visitor) {
45
+ if (value.idle !== undefined)
46
+ return visitor.idle(value.idle);
47
+ if (value.matchmakerFindingLobby !== undefined)
48
+ return visitor.matchmakerFindingLobby(value.matchmakerFindingLobby);
49
+ if (value.matchmakerLobby !== undefined)
50
+ return visitor.matchmakerLobby(value.matchmakerLobby);
51
+ return visitor._(value.$unknown[0], value.$unknown[1]);
52
+ };
53
+ PartyActivity.filterSensitiveLog = function (obj) {
54
+ var _a;
55
+ if (obj.idle !== undefined)
56
+ return { idle: PartyActivityIdle.filterSensitiveLog(obj.idle)
57
+ };
58
+ if (obj.matchmakerFindingLobby !== undefined)
59
+ return { matchmakerFindingLobby: PartyActivityMatchmakerFindingLobby.filterSensitiveLog(obj.matchmakerFindingLobby)
60
+ };
61
+ if (obj.matchmakerLobby !== undefined)
62
+ return { matchmakerLobby: PartyActivityMatchmakerLobby.filterSensitiveLog(obj.matchmakerLobby)
63
+ };
64
+ if (obj.$unknown !== undefined)
65
+ return _a = {}, _a[obj.$unknown[0]] = 'UNKNOWN', _a;
66
+ };
67
+ })(PartyActivity || (PartyActivity = {}));
68
+ export var PartyExternalLinks;
69
+ (function (PartyExternalLinks) {
70
+ PartyExternalLinks.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
71
+ })(PartyExternalLinks || (PartyExternalLinks = {}));
72
+ export var PartyHandle;
73
+ (function (PartyHandle) {
74
+ PartyHandle.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.activity && { activity: PartyActivity.filterSensitiveLog(obj.activity)
75
+ }))); };
76
+ })(PartyHandle || (PartyHandle = {}));
77
+ export var IdentityGameActivity;
78
+ (function (IdentityGameActivity) {
79
+ IdentityGameActivity.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
80
+ })(IdentityGameActivity || (IdentityGameActivity = {}));
81
+ export var IdentityStatus;
82
+ (function (IdentityStatus) {
83
+ IdentityStatus["AWAY"] = "away";
84
+ IdentityStatus["OFFLINE"] = "offline";
85
+ IdentityStatus["ONLINE"] = "online";
86
+ })(IdentityStatus || (IdentityStatus = {}));
87
+ export var IdentityPresence;
88
+ (function (IdentityPresence) {
89
+ IdentityPresence.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
+ })(IdentityPresence || (IdentityPresence = {}));
91
+ export var IdentityHandle;
92
+ (function (IdentityHandle) {
93
+ IdentityHandle.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.party && { party: PartyHandle.filterSensitiveLog(obj.party)
94
+ }))); };
95
+ })(IdentityHandle || (IdentityHandle = {}));
96
+ export var ChatMessageBodyGroupJoin;
97
+ (function (ChatMessageBodyGroupJoin) {
98
+ ChatMessageBodyGroupJoin.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.identity && { identity: IdentityHandle.filterSensitiveLog(obj.identity)
99
+ }))); };
100
+ })(ChatMessageBodyGroupJoin || (ChatMessageBodyGroupJoin = {}));
101
+ export var ChatMessageBodyGroupLeave;
102
+ (function (ChatMessageBodyGroupLeave) {
103
+ ChatMessageBodyGroupLeave.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.identity && { identity: IdentityHandle.filterSensitiveLog(obj.identity)
104
+ }))); };
105
+ })(ChatMessageBodyGroupLeave || (ChatMessageBodyGroupLeave = {}));
106
+ export var ChatMessageBodyIdentityFollow;
107
+ (function (ChatMessageBodyIdentityFollow) {
108
+ ChatMessageBodyIdentityFollow.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
109
+ })(ChatMessageBodyIdentityFollow || (ChatMessageBodyIdentityFollow = {}));
110
+ export var ChatMessageBodyPartyActivityChange;
111
+ (function (ChatMessageBodyPartyActivityChange) {
112
+ ChatMessageBodyPartyActivityChange.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
113
+ })(ChatMessageBodyPartyActivityChange || (ChatMessageBodyPartyActivityChange = {}));
114
+ export var ChatMessageBodyPartyInvite;
115
+ (function (ChatMessageBodyPartyInvite) {
116
+ ChatMessageBodyPartyInvite.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.sender && { sender: IdentityHandle.filterSensitiveLog(obj.sender)
117
+ })), (obj.party && { party: PartyHandle.filterSensitiveLog(obj.party)
118
+ })), (obj.inviteToken && { inviteToken: SENSITIVE_STRING
119
+ }))); };
120
+ })(ChatMessageBodyPartyInvite || (ChatMessageBodyPartyInvite = {}));
121
+ export var ChatMessageBodyPartyJoin;
122
+ (function (ChatMessageBodyPartyJoin) {
123
+ ChatMessageBodyPartyJoin.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.identity && { identity: IdentityHandle.filterSensitiveLog(obj.identity)
124
+ }))); };
125
+ })(ChatMessageBodyPartyJoin || (ChatMessageBodyPartyJoin = {}));
126
+ export var ChatMessageBodyPartyJoinRequest;
127
+ (function (ChatMessageBodyPartyJoinRequest) {
128
+ ChatMessageBodyPartyJoinRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.sender && { sender: IdentityHandle.filterSensitiveLog(obj.sender)
129
+ }))); };
130
+ })(ChatMessageBodyPartyJoinRequest || (ChatMessageBodyPartyJoinRequest = {}));
131
+ export var ChatMessageBodyPartyLeave;
132
+ (function (ChatMessageBodyPartyLeave) {
133
+ ChatMessageBodyPartyLeave.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.identity && { identity: IdentityHandle.filterSensitiveLog(obj.identity)
134
+ }))); };
135
+ })(ChatMessageBodyPartyLeave || (ChatMessageBodyPartyLeave = {}));
136
+ export var ChatMessageBodyText;
137
+ (function (ChatMessageBodyText) {
138
+ ChatMessageBodyText.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.sender && { sender: IdentityHandle.filterSensitiveLog(obj.sender)
139
+ }))); };
140
+ })(ChatMessageBodyText || (ChatMessageBodyText = {}));
141
+ export var ChatMessageBody;
142
+ (function (ChatMessageBody) {
143
+ ChatMessageBody.visit = function (value, visitor) {
144
+ if (value.text !== undefined)
145
+ return visitor.text(value.text);
146
+ if (value.chatCreate !== undefined)
147
+ return visitor.chatCreate(value.chatCreate);
148
+ if (value.identityFollow !== undefined)
149
+ return visitor.identityFollow(value.identityFollow);
150
+ if (value.groupJoin !== undefined)
151
+ return visitor.groupJoin(value.groupJoin);
152
+ if (value.groupLeave !== undefined)
153
+ return visitor.groupLeave(value.groupLeave);
154
+ if (value.partyInvite !== undefined)
155
+ return visitor.partyInvite(value.partyInvite);
156
+ if (value.partyJoinRequest !== undefined)
157
+ return visitor.partyJoinRequest(value.partyJoinRequest);
158
+ if (value.partyJoin !== undefined)
159
+ return visitor.partyJoin(value.partyJoin);
160
+ if (value.partyLeave !== undefined)
161
+ return visitor.partyLeave(value.partyLeave);
162
+ if (value.partyActivityChange !== undefined)
163
+ return visitor.partyActivityChange(value.partyActivityChange);
164
+ return visitor._(value.$unknown[0], value.$unknown[1]);
165
+ };
166
+ ChatMessageBody.filterSensitiveLog = function (obj) {
167
+ var _a;
168
+ if (obj.text !== undefined)
169
+ return { text: ChatMessageBodyText.filterSensitiveLog(obj.text)
170
+ };
171
+ if (obj.chatCreate !== undefined)
172
+ return { chatCreate: ChatMessageBodyChatCreate.filterSensitiveLog(obj.chatCreate)
173
+ };
174
+ if (obj.identityFollow !== undefined)
175
+ return { identityFollow: ChatMessageBodyIdentityFollow.filterSensitiveLog(obj.identityFollow)
176
+ };
177
+ if (obj.groupJoin !== undefined)
178
+ return { groupJoin: ChatMessageBodyGroupJoin.filterSensitiveLog(obj.groupJoin)
179
+ };
180
+ if (obj.groupLeave !== undefined)
181
+ return { groupLeave: ChatMessageBodyGroupLeave.filterSensitiveLog(obj.groupLeave)
182
+ };
183
+ if (obj.partyInvite !== undefined)
184
+ return { partyInvite: ChatMessageBodyPartyInvite.filterSensitiveLog(obj.partyInvite)
185
+ };
186
+ if (obj.partyJoinRequest !== undefined)
187
+ return { partyJoinRequest: ChatMessageBodyPartyJoinRequest.filterSensitiveLog(obj.partyJoinRequest)
188
+ };
189
+ if (obj.partyJoin !== undefined)
190
+ return { partyJoin: ChatMessageBodyPartyJoin.filterSensitiveLog(obj.partyJoin)
191
+ };
192
+ if (obj.partyLeave !== undefined)
193
+ return { partyLeave: ChatMessageBodyPartyLeave.filterSensitiveLog(obj.partyLeave)
194
+ };
195
+ if (obj.partyActivityChange !== undefined)
196
+ return { partyActivityChange: ChatMessageBodyPartyActivityChange.filterSensitiveLog(obj.partyActivityChange)
197
+ };
198
+ if (obj.$unknown !== undefined)
199
+ return _a = {}, _a[obj.$unknown[0]] = 'UNKNOWN', _a;
200
+ };
201
+ })(ChatMessageBody || (ChatMessageBody = {}));
202
+ export var ChatMessage;
203
+ (function (ChatMessage) {
204
+ ChatMessage.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.body && { body: ChatMessageBody.filterSensitiveLog(obj.body)
205
+ }))); };
206
+ })(ChatMessage || (ChatMessage = {}));
207
+ export var GetThreadHistoryOutput;
208
+ (function (GetThreadHistoryOutput) {
209
+ GetThreadHistoryOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.chatMessages && { chatMessages: obj.chatMessages.map(function (item) {
210
+ return ChatMessage.filterSensitiveLog(item);
211
+ })
212
+ }))); };
213
+ })(GetThreadHistoryOutput || (GetThreadHistoryOutput = {}));
214
+ export var GetThreadTopicInput;
215
+ (function (GetThreadTopicInput) {
216
+ GetThreadTopicInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
217
+ })(GetThreadTopicInput || (GetThreadTopicInput = {}));
218
+ export var ChatSimpleTopicDirect;
219
+ (function (ChatSimpleTopicDirect) {
220
+ ChatSimpleTopicDirect.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
221
+ })(ChatSimpleTopicDirect || (ChatSimpleTopicDirect = {}));
222
+ export var ChatSimpleTopicGroup;
223
+ (function (ChatSimpleTopicGroup) {
224
+ ChatSimpleTopicGroup.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
225
+ })(ChatSimpleTopicGroup || (ChatSimpleTopicGroup = {}));
226
+ export var ChatSimpleTopicParty;
227
+ (function (ChatSimpleTopicParty) {
228
+ ChatSimpleTopicParty.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
229
+ })(ChatSimpleTopicParty || (ChatSimpleTopicParty = {}));
230
+ export var ChatSimpleTopic;
231
+ (function (ChatSimpleTopic) {
232
+ ChatSimpleTopic.visit = function (value, visitor) {
233
+ if (value.group !== undefined)
234
+ return visitor.group(value.group);
235
+ if (value.party !== undefined)
236
+ return visitor.party(value.party);
237
+ if (value.direct !== undefined)
238
+ return visitor.direct(value.direct);
239
+ return visitor._(value.$unknown[0], value.$unknown[1]);
240
+ };
241
+ ChatSimpleTopic.filterSensitiveLog = function (obj) {
242
+ var _a;
243
+ if (obj.group !== undefined)
244
+ return { group: ChatSimpleTopicGroup.filterSensitiveLog(obj.group)
245
+ };
246
+ if (obj.party !== undefined)
247
+ return { party: ChatSimpleTopicParty.filterSensitiveLog(obj.party)
248
+ };
249
+ if (obj.direct !== undefined)
250
+ return { direct: ChatSimpleTopicDirect.filterSensitiveLog(obj.direct)
251
+ };
252
+ if (obj.$unknown !== undefined)
253
+ return _a = {}, _a[obj.$unknown[0]] = 'UNKNOWN', _a;
254
+ };
255
+ })(ChatSimpleTopic || (ChatSimpleTopic = {}));
256
+ export var GetThreadTopicOutput;
257
+ (function (GetThreadTopicOutput) {
258
+ GetThreadTopicOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.topic && { topic: ChatSimpleTopic.filterSensitiveLog(obj.topic)
259
+ }))); };
260
+ })(GetThreadTopicOutput || (GetThreadTopicOutput = {}));
261
+ export var SendMessageBodyPartyInvite;
262
+ (function (SendMessageBodyPartyInvite) {
263
+ SendMessageBodyPartyInvite.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.token && { token: SENSITIVE_STRING
264
+ }))); };
265
+ })(SendMessageBodyPartyInvite || (SendMessageBodyPartyInvite = {}));
266
+ export var SendMessageBodyText;
267
+ (function (SendMessageBodyText) {
268
+ SendMessageBodyText.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
269
+ })(SendMessageBodyText || (SendMessageBodyText = {}));
270
+ export var SendMessageBody;
271
+ (function (SendMessageBody) {
272
+ SendMessageBody.visit = function (value, visitor) {
273
+ if (value.text !== undefined)
274
+ return visitor.text(value.text);
275
+ if (value.partyInvite !== undefined)
276
+ return visitor.partyInvite(value.partyInvite);
277
+ return visitor._(value.$unknown[0], value.$unknown[1]);
278
+ };
279
+ SendMessageBody.filterSensitiveLog = function (obj) {
280
+ var _a;
281
+ if (obj.text !== undefined)
282
+ return { text: SendMessageBodyText.filterSensitiveLog(obj.text)
283
+ };
284
+ if (obj.partyInvite !== undefined)
285
+ return { partyInvite: SendMessageBodyPartyInvite.filterSensitiveLog(obj.partyInvite)
286
+ };
287
+ if (obj.$unknown !== undefined)
288
+ return _a = {}, _a[obj.$unknown[0]] = 'UNKNOWN', _a;
289
+ };
290
+ })(SendMessageBody || (SendMessageBody = {}));
291
+ export var SendChatTopic;
292
+ (function (SendChatTopic) {
293
+ SendChatTopic.visit = function (value, visitor) {
294
+ if (value.threadId !== undefined)
295
+ return visitor.threadId(value.threadId);
296
+ if (value.groupId !== undefined)
297
+ return visitor.groupId(value.groupId);
298
+ if (value.partyId !== undefined)
299
+ return visitor.partyId(value.partyId);
300
+ if (value.identityId !== undefined)
301
+ return visitor.identityId(value.identityId);
302
+ return visitor._(value.$unknown[0], value.$unknown[1]);
303
+ };
304
+ SendChatTopic.filterSensitiveLog = function (obj) {
305
+ var _a;
306
+ if (obj.threadId !== undefined)
307
+ return { threadId: obj.threadId
308
+ };
309
+ if (obj.groupId !== undefined)
310
+ return { groupId: obj.groupId
311
+ };
312
+ if (obj.partyId !== undefined)
313
+ return { partyId: obj.partyId
314
+ };
315
+ if (obj.identityId !== undefined)
316
+ return { identityId: obj.identityId
317
+ };
318
+ if (obj.$unknown !== undefined)
319
+ return _a = {}, _a[obj.$unknown[0]] = 'UNKNOWN', _a;
320
+ };
321
+ })(SendChatTopic || (SendChatTopic = {}));
322
+ export var SendChatMessageInput;
323
+ (function (SendChatMessageInput) {
324
+ SendChatMessageInput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.topic && { topic: SendChatTopic.filterSensitiveLog(obj.topic)
325
+ })), (obj.messageBody && { messageBody: SendMessageBody.filterSensitiveLog(obj.messageBody)
326
+ }))); };
327
+ })(SendChatMessageInput || (SendChatMessageInput = {}));
328
+ export var SendChatMessageOutput;
329
+ (function (SendChatMessageOutput) {
330
+ SendChatMessageOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
331
+ })(SendChatMessageOutput || (SendChatMessageOutput = {}));
332
+ export var SetThreadReadInput;
333
+ (function (SetThreadReadInput) {
334
+ SetThreadReadInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
335
+ })(SetThreadReadInput || (SetThreadReadInput = {}));
336
+ export var SetThreadReadOutput;
337
+ (function (SetThreadReadOutput) {
338
+ SetThreadReadOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
339
+ })(SetThreadReadOutput || (SetThreadReadOutput = {}));
340
+ export var Unit;
341
+ (function (Unit) {
342
+ Unit.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
343
+ })(Unit || (Unit = {}));
344
+ export var ChatTypingStatus;
345
+ (function (ChatTypingStatus) {
346
+ ChatTypingStatus.visit = function (value, visitor) {
347
+ if (value.idle !== undefined)
348
+ return visitor.idle(value.idle);
349
+ if (value.typing !== undefined)
350
+ return visitor.typing(value.typing);
351
+ return visitor._(value.$unknown[0], value.$unknown[1]);
352
+ };
353
+ ChatTypingStatus.filterSensitiveLog = function (obj) {
354
+ var _a;
355
+ if (obj.idle !== undefined)
356
+ return { idle: Unit.filterSensitiveLog(obj.idle)
357
+ };
358
+ if (obj.typing !== undefined)
359
+ return { typing: Unit.filterSensitiveLog(obj.typing)
360
+ };
361
+ if (obj.$unknown !== undefined)
362
+ return _a = {}, _a[obj.$unknown[0]] = 'UNKNOWN', _a;
363
+ };
364
+ })(ChatTypingStatus || (ChatTypingStatus = {}));
365
+ export var SetTypingStatusInput;
366
+ (function (SetTypingStatusInput) {
367
+ SetTypingStatusInput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.status && { status: ChatTypingStatus.filterSensitiveLog(obj.status)
368
+ }))); };
369
+ })(SetTypingStatusInput || (SetTypingStatusInput = {}));
370
+ export var SetTypingStatusOutput;
371
+ (function (SetTypingStatusOutput) {
372
+ SetTypingStatusOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
373
+ })(SetTypingStatusOutput || (SetTypingStatusOutput = {}));
374
+ export var WatchThreadInput;
375
+ (function (WatchThreadInput) {
376
+ WatchThreadInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
377
+ })(WatchThreadInput || (WatchThreadInput = {}));
378
+ export var ChatIdentityTypingStatus;
379
+ (function (ChatIdentityTypingStatus) {
380
+ ChatIdentityTypingStatus.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.identity && { identity: IdentityHandle.filterSensitiveLog(obj.identity)
381
+ })), (obj.status && { status: ChatTypingStatus.filterSensitiveLog(obj.status)
382
+ }))); };
383
+ })(ChatIdentityTypingStatus || (ChatIdentityTypingStatus = {}));
384
+ export var WatchResponse;
385
+ (function (WatchResponse) {
386
+ WatchResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
387
+ })(WatchResponse || (WatchResponse = {}));
388
+ export var WatchThreadOutput;
389
+ (function (WatchThreadOutput) {
390
+ WatchThreadOutput.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.chatMessages && { chatMessages: obj.chatMessages.map(function (item) {
391
+ return ChatMessage.filterSensitiveLog(item);
392
+ })
393
+ })), (obj.typingStatuses && { typingStatuses: obj.typingStatuses.map(function (item) {
394
+ return ChatIdentityTypingStatus.filterSensitiveLog(item);
395
+ })
396
+ }))); };
397
+ })(WatchThreadOutput || (WatchThreadOutput = {}));
398
+ export var GetDirectThreadInput;
399
+ (function (GetDirectThreadInput) {
400
+ GetDirectThreadInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
401
+ })(GetDirectThreadInput || (GetDirectThreadInput = {}));
402
+ export var GetDirectThreadOutput;
403
+ (function (GetDirectThreadOutput) {
404
+ GetDirectThreadOutput.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.identity && { identity: IdentityHandle.filterSensitiveLog(obj.identity)
405
+ }))); };
406
+ })(GetDirectThreadOutput || (GetDirectThreadOutput = {}));
407
+ var BadRequestError = (function (_super) {
408
+ __extends(BadRequestError, _super);
409
+ function BadRequestError(opts) {
410
+ var _this = _super.call(this, __assign({ name: "BadRequestError", $fault: "client" }, opts)) || this;
411
+ _this.name = "BadRequestError";
412
+ _this.$fault = "client";
413
+ Object.setPrototypeOf(_this, BadRequestError.prototype);
414
+ _this.code = opts.code;
415
+ _this.metadata = opts.metadata;
416
+ return _this;
417
+ }
418
+ return BadRequestError;
419
+ }(__BaseException));
420
+ export { BadRequestError };
421
+ var ForbiddenError = (function (_super) {
422
+ __extends(ForbiddenError, _super);
423
+ function ForbiddenError(opts) {
424
+ var _this = _super.call(this, __assign({ name: "ForbiddenError", $fault: "client" }, opts)) || this;
425
+ _this.name = "ForbiddenError";
426
+ _this.$fault = "client";
427
+ Object.setPrototypeOf(_this, ForbiddenError.prototype);
428
+ _this.code = opts.code;
429
+ _this.metadata = opts.metadata;
430
+ return _this;
431
+ }
432
+ return ForbiddenError;
433
+ }(__BaseException));
434
+ export { ForbiddenError };
435
+ var InternalError = (function (_super) {
436
+ __extends(InternalError, _super);
437
+ function InternalError(opts) {
438
+ var _this = _super.call(this, __assign({ name: "InternalError", $fault: "server" }, opts)) || this;
439
+ _this.name = "InternalError";
440
+ _this.$fault = "server";
441
+ _this.$retryable = {};
442
+ Object.setPrototypeOf(_this, InternalError.prototype);
443
+ _this.code = opts.code;
444
+ _this.metadata = opts.metadata;
445
+ return _this;
446
+ }
447
+ return InternalError;
448
+ }(__BaseException));
449
+ export { InternalError };
450
+ var NotFoundError = (function (_super) {
451
+ __extends(NotFoundError, _super);
452
+ function NotFoundError(opts) {
453
+ var _this = _super.call(this, __assign({ name: "NotFoundError", $fault: "client" }, opts)) || this;
454
+ _this.name = "NotFoundError";
455
+ _this.$fault = "client";
456
+ Object.setPrototypeOf(_this, NotFoundError.prototype);
457
+ _this.code = opts.code;
458
+ _this.metadata = opts.metadata;
459
+ return _this;
460
+ }
461
+ return NotFoundError;
462
+ }(__BaseException));
463
+ export { NotFoundError };
464
+ var RateLimitError = (function (_super) {
465
+ __extends(RateLimitError, _super);
466
+ function RateLimitError(opts) {
467
+ var _this = _super.call(this, __assign({ name: "RateLimitError", $fault: "client" }, opts)) || this;
468
+ _this.name = "RateLimitError";
469
+ _this.$fault = "client";
470
+ Object.setPrototypeOf(_this, RateLimitError.prototype);
471
+ _this.code = opts.code;
472
+ _this.metadata = opts.metadata;
473
+ return _this;
474
+ }
475
+ return RateLimitError;
476
+ }(__BaseException));
477
+ export { RateLimitError };
478
+ var UnauthorizedError = (function (_super) {
479
+ __extends(UnauthorizedError, _super);
480
+ function UnauthorizedError(opts) {
481
+ var _this = _super.call(this, __assign({ name: "UnauthorizedError", $fault: "client" }, opts)) || this;
482
+ _this.name = "UnauthorizedError";
483
+ _this.$fault = "client";
484
+ _this.$retryable = {};
485
+ Object.setPrototypeOf(_this, UnauthorizedError.prototype);
486
+ _this.code = opts.code;
487
+ _this.metadata = opts.metadata;
488
+ return _this;
489
+ }
490
+ return UnauthorizedError;
491
+ }(__BaseException));
492
+ export { UnauthorizedError };