@aws-sdk/client-connectparticipant 3.35.0 → 3.38.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.
Files changed (136) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/ConnectParticipant.js +0 -9
  3. package/dist-cjs/ConnectParticipantClient.js +0 -14
  4. package/dist-cjs/commands/CompleteAttachmentUploadCommand.js +0 -26
  5. package/dist-cjs/commands/CreateParticipantConnectionCommand.js +0 -47
  6. package/dist-cjs/commands/DisconnectParticipantCommand.js +0 -28
  7. package/dist-cjs/commands/GetAttachmentCommand.js +0 -26
  8. package/dist-cjs/commands/GetTranscriptCommand.js +0 -28
  9. package/dist-cjs/commands/SendEventCommand.js +0 -28
  10. package/dist-cjs/commands/SendMessageCommand.js +0 -30
  11. package/dist-cjs/commands/StartAttachmentUploadCommand.js +0 -26
  12. package/dist-cjs/commands/index.js +11 -0
  13. package/dist-cjs/endpoints.js +1 -2
  14. package/dist-cjs/index.js +4 -13
  15. package/dist-cjs/models/index.js +0 -1
  16. package/dist-cjs/models/models_0.js +0 -85
  17. package/dist-cjs/pagination/GetTranscriptPaginator.js +0 -11
  18. package/dist-cjs/pagination/Interfaces.js +0 -1
  19. package/dist-cjs/pagination/index.js +5 -0
  20. package/dist-cjs/protocols/Aws_restJson1.js +0 -6
  21. package/dist-cjs/runtimeConfig.browser.js +1 -6
  22. package/dist-cjs/runtimeConfig.js +2 -7
  23. package/dist-cjs/runtimeConfig.native.js +0 -4
  24. package/dist-cjs/runtimeConfig.shared.js +0 -4
  25. package/dist-es/ConnectParticipant.js +0 -1
  26. package/dist-es/ConnectParticipantClient.js +0 -1
  27. package/dist-es/commands/CompleteAttachmentUploadCommand.js +0 -1
  28. package/dist-es/commands/CreateParticipantConnectionCommand.js +0 -1
  29. package/dist-es/commands/DisconnectParticipantCommand.js +0 -1
  30. package/dist-es/commands/GetAttachmentCommand.js +0 -1
  31. package/dist-es/commands/GetTranscriptCommand.js +0 -1
  32. package/dist-es/commands/SendEventCommand.js +0 -1
  33. package/dist-es/commands/SendMessageCommand.js +0 -1
  34. package/dist-es/commands/StartAttachmentUploadCommand.js +0 -1
  35. package/dist-es/commands/index.js +8 -0
  36. package/dist-es/endpoints.js +1 -2
  37. package/dist-es/index.js +4 -13
  38. package/dist-es/models/index.js +0 -1
  39. package/dist-es/models/models_0.js +0 -1
  40. package/dist-es/pagination/GetTranscriptPaginator.js +0 -1
  41. package/dist-es/pagination/Interfaces.js +0 -1
  42. package/dist-es/pagination/index.js +2 -0
  43. package/dist-es/protocols/Aws_restJson1.js +0 -1
  44. package/dist-es/runtimeConfig.browser.js +1 -2
  45. package/dist-es/runtimeConfig.js +2 -3
  46. package/dist-es/runtimeConfig.native.js +0 -1
  47. package/dist-es/runtimeConfig.shared.js +0 -1
  48. package/dist-types/commands/index.d.ts +8 -0
  49. package/dist-types/index.d.ts +4 -12
  50. package/dist-types/pagination/index.d.ts +2 -0
  51. package/dist-types/ts3.4/ConnectParticipant.d.ts +9 -71
  52. package/dist-types/ts3.4/ConnectParticipantClient.d.ts +24 -94
  53. package/dist-types/ts3.4/commands/CompleteAttachmentUploadCommand.d.ts +2 -21
  54. package/dist-types/ts3.4/commands/CreateParticipantConnectionCommand.d.ts +2 -42
  55. package/dist-types/ts3.4/commands/DisconnectParticipantCommand.d.ts +2 -23
  56. package/dist-types/ts3.4/commands/GetAttachmentCommand.d.ts +2 -21
  57. package/dist-types/ts3.4/commands/GetTranscriptCommand.d.ts +2 -23
  58. package/dist-types/ts3.4/commands/SendEventCommand.d.ts +2 -23
  59. package/dist-types/ts3.4/commands/SendMessageCommand.d.ts +2 -25
  60. package/dist-types/ts3.4/commands/StartAttachmentUploadCommand.d.ts +2 -21
  61. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  62. package/dist-types/ts3.4/index.d.ts +4 -12
  63. package/dist-types/ts3.4/models/models_0.d.ts +105 -349
  64. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  65. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  66. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  67. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  68. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  69. package/package.json +33 -30
  70. package/dist-cjs/ConnectParticipant.js.map +0 -1
  71. package/dist-cjs/ConnectParticipantClient.js.map +0 -1
  72. package/dist-cjs/commands/CompleteAttachmentUploadCommand.js.map +0 -1
  73. package/dist-cjs/commands/CreateParticipantConnectionCommand.js.map +0 -1
  74. package/dist-cjs/commands/DisconnectParticipantCommand.js.map +0 -1
  75. package/dist-cjs/commands/GetAttachmentCommand.js.map +0 -1
  76. package/dist-cjs/commands/GetTranscriptCommand.js.map +0 -1
  77. package/dist-cjs/commands/SendEventCommand.js.map +0 -1
  78. package/dist-cjs/commands/SendMessageCommand.js.map +0 -1
  79. package/dist-cjs/commands/StartAttachmentUploadCommand.js.map +0 -1
  80. package/dist-cjs/endpoints.js.map +0 -1
  81. package/dist-cjs/index.js.map +0 -1
  82. package/dist-cjs/models/index.js.map +0 -1
  83. package/dist-cjs/models/models_0.js.map +0 -1
  84. package/dist-cjs/pagination/GetTranscriptPaginator.js.map +0 -1
  85. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  86. package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
  87. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  88. package/dist-cjs/runtimeConfig.js.map +0 -1
  89. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  90. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  91. package/dist-es/ConnectParticipant.js.map +0 -1
  92. package/dist-es/ConnectParticipantClient.js.map +0 -1
  93. package/dist-es/commands/CompleteAttachmentUploadCommand.js.map +0 -1
  94. package/dist-es/commands/CreateParticipantConnectionCommand.js.map +0 -1
  95. package/dist-es/commands/DisconnectParticipantCommand.js.map +0 -1
  96. package/dist-es/commands/GetAttachmentCommand.js.map +0 -1
  97. package/dist-es/commands/GetTranscriptCommand.js.map +0 -1
  98. package/dist-es/commands/SendEventCommand.js.map +0 -1
  99. package/dist-es/commands/SendMessageCommand.js.map +0 -1
  100. package/dist-es/commands/StartAttachmentUploadCommand.js.map +0 -1
  101. package/dist-es/endpoints.js.map +0 -1
  102. package/dist-es/index.js.map +0 -1
  103. package/dist-es/models/index.js.map +0 -1
  104. package/dist-es/models/models_0.js.map +0 -1
  105. package/dist-es/pagination/GetTranscriptPaginator.js.map +0 -1
  106. package/dist-es/pagination/Interfaces.js.map +0 -1
  107. package/dist-es/protocols/Aws_restJson1.js.map +0 -1
  108. package/dist-es/runtimeConfig.browser.js.map +0 -1
  109. package/dist-es/runtimeConfig.js.map +0 -1
  110. package/dist-es/runtimeConfig.native.js.map +0 -1
  111. package/dist-es/runtimeConfig.shared.js.map +0 -1
  112. package/jest.config.js +0 -4
  113. package/src/ConnectParticipant.ts +0 -328
  114. package/src/ConnectParticipantClient.ts +0 -284
  115. package/src/commands/CompleteAttachmentUploadCommand.ts +0 -100
  116. package/src/commands/CreateParticipantConnectionCommand.ts +0 -126
  117. package/src/commands/DisconnectParticipantCommand.ts +0 -102
  118. package/src/commands/GetAttachmentCommand.ts +0 -100
  119. package/src/commands/GetTranscriptCommand.ts +0 -102
  120. package/src/commands/SendEventCommand.ts +0 -102
  121. package/src/commands/SendMessageCommand.ts +0 -104
  122. package/src/commands/StartAttachmentUploadCommand.ts +0 -100
  123. package/src/endpoints.ts +0 -57
  124. package/src/index.ts +0 -13
  125. package/src/models/index.ts +0 -1
  126. package/src/models/models_0.ts +0 -768
  127. package/src/pagination/GetTranscriptPaginator.ts +0 -59
  128. package/src/pagination/Interfaces.ts +0 -8
  129. package/src/protocols/Aws_restJson1.ts +0 -1241
  130. package/src/runtimeConfig.browser.ts +0 -41
  131. package/src/runtimeConfig.native.ts +0 -17
  132. package/src/runtimeConfig.shared.ts +0 -17
  133. package/src/runtimeConfig.ts +0 -46
  134. package/tsconfig.es.json +0 -10
  135. package/tsconfig.json +0 -33
  136. package/tsconfig.types.json +0 -9
@@ -1,768 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
-
3
- /**
4
- * <p>You do not have sufficient access to perform this action.</p>
5
- */
6
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
7
- name: "AccessDeniedException";
8
- $fault: "client";
9
- Message: string | undefined;
10
- }
11
-
12
- export namespace AccessDeniedException {
13
- /**
14
- * @internal
15
- */
16
- export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
17
- ...obj,
18
- });
19
- }
20
-
21
- export interface CompleteAttachmentUploadRequest {
22
- /**
23
- * <p>A list of unique identifiers for the attachments.</p>
24
- */
25
- AttachmentIds: string[] | undefined;
26
-
27
- /**
28
- * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
29
- * request.</p>
30
- */
31
- ClientToken?: string;
32
-
33
- /**
34
- * <p>The authentication token associated with the participant's connection.</p>
35
- */
36
- ConnectionToken: string | undefined;
37
- }
38
-
39
- export namespace CompleteAttachmentUploadRequest {
40
- /**
41
- * @internal
42
- */
43
- export const filterSensitiveLog = (obj: CompleteAttachmentUploadRequest): any => ({
44
- ...obj,
45
- });
46
- }
47
-
48
- export interface CompleteAttachmentUploadResponse {}
49
-
50
- export namespace CompleteAttachmentUploadResponse {
51
- /**
52
- * @internal
53
- */
54
- export const filterSensitiveLog = (obj: CompleteAttachmentUploadResponse): any => ({
55
- ...obj,
56
- });
57
- }
58
-
59
- /**
60
- * <p>An attachment with that identifier is already being uploaded.</p>
61
- */
62
- export interface ConflictException extends __SmithyException, $MetadataBearer {
63
- name: "ConflictException";
64
- $fault: "client";
65
- Message: string | undefined;
66
- }
67
-
68
- export namespace ConflictException {
69
- /**
70
- * @internal
71
- */
72
- export const filterSensitiveLog = (obj: ConflictException): any => ({
73
- ...obj,
74
- });
75
- }
76
-
77
- /**
78
- * <p>This exception occurs when there is an internal failure in the Amazon Connect service.</p>
79
- */
80
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
81
- name: "InternalServerException";
82
- $fault: "server";
83
- Message: string | undefined;
84
- }
85
-
86
- export namespace InternalServerException {
87
- /**
88
- * @internal
89
- */
90
- export const filterSensitiveLog = (obj: InternalServerException): any => ({
91
- ...obj,
92
- });
93
- }
94
-
95
- /**
96
- * <p>The number of attachments per contact exceeds the quota.</p>
97
- */
98
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
99
- name: "ServiceQuotaExceededException";
100
- $fault: "client";
101
- Message: string | undefined;
102
- }
103
-
104
- export namespace ServiceQuotaExceededException {
105
- /**
106
- * @internal
107
- */
108
- export const filterSensitiveLog = (obj: ServiceQuotaExceededException): any => ({
109
- ...obj,
110
- });
111
- }
112
-
113
- /**
114
- * <p>The request was denied due to request throttling.</p>
115
- */
116
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
117
- name: "ThrottlingException";
118
- $fault: "client";
119
- Message: string | undefined;
120
- }
121
-
122
- export namespace ThrottlingException {
123
- /**
124
- * @internal
125
- */
126
- export const filterSensitiveLog = (obj: ThrottlingException): any => ({
127
- ...obj,
128
- });
129
- }
130
-
131
- /**
132
- * <p>The input fails to satisfy the constraints specified by Amazon Connect.</p>
133
- */
134
- export interface ValidationException extends __SmithyException, $MetadataBearer {
135
- name: "ValidationException";
136
- $fault: "client";
137
- Message: string | undefined;
138
- }
139
-
140
- export namespace ValidationException {
141
- /**
142
- * @internal
143
- */
144
- export const filterSensitiveLog = (obj: ValidationException): any => ({
145
- ...obj,
146
- });
147
- }
148
-
149
- export enum ConnectionType {
150
- CONNECTION_CREDENTIALS = "CONNECTION_CREDENTIALS",
151
- WEBSOCKET = "WEBSOCKET",
152
- }
153
-
154
- export interface CreateParticipantConnectionRequest {
155
- /**
156
- * <p>Type of connection information required.</p>
157
- */
158
- Type: (ConnectionType | string)[] | undefined;
159
-
160
- /**
161
- * <p>This is a header parameter.</p>
162
- * <p>The Participant Token as obtained from <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_StartChatContact.html">StartChatContact</a>
163
- * API response.</p>
164
- */
165
- ParticipantToken: string | undefined;
166
- }
167
-
168
- export namespace CreateParticipantConnectionRequest {
169
- /**
170
- * @internal
171
- */
172
- export const filterSensitiveLog = (obj: CreateParticipantConnectionRequest): any => ({
173
- ...obj,
174
- });
175
- }
176
-
177
- /**
178
- * <p>Connection credentials. </p>
179
- */
180
- export interface ConnectionCredentials {
181
- /**
182
- * <p>The connection token.</p>
183
- */
184
- ConnectionToken?: string;
185
-
186
- /**
187
- * <p>The expiration of the token.</p>
188
- * <p>It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example,
189
- * 2019-11-08T02:41:28.172Z.</p>
190
- */
191
- Expiry?: string;
192
- }
193
-
194
- export namespace ConnectionCredentials {
195
- /**
196
- * @internal
197
- */
198
- export const filterSensitiveLog = (obj: ConnectionCredentials): any => ({
199
- ...obj,
200
- });
201
- }
202
-
203
- /**
204
- * <p>The websocket for the participant's connection.</p>
205
- */
206
- export interface Websocket {
207
- /**
208
- * <p>The URL of the websocket.</p>
209
- */
210
- Url?: string;
211
-
212
- /**
213
- * <p>The URL expiration timestamp in ISO date format.</p>
214
- * <p>It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example,
215
- * 2019-11-08T02:41:28.172Z.</p>
216
- */
217
- ConnectionExpiry?: string;
218
- }
219
-
220
- export namespace Websocket {
221
- /**
222
- * @internal
223
- */
224
- export const filterSensitiveLog = (obj: Websocket): any => ({
225
- ...obj,
226
- });
227
- }
228
-
229
- export interface CreateParticipantConnectionResponse {
230
- /**
231
- * <p>Creates the participant's websocket connection.</p>
232
- */
233
- Websocket?: Websocket;
234
-
235
- /**
236
- * <p>Creates the participant's connection credentials. The authentication token associated
237
- * with the participant's connection.</p>
238
- */
239
- ConnectionCredentials?: ConnectionCredentials;
240
- }
241
-
242
- export namespace CreateParticipantConnectionResponse {
243
- /**
244
- * @internal
245
- */
246
- export const filterSensitiveLog = (obj: CreateParticipantConnectionResponse): any => ({
247
- ...obj,
248
- });
249
- }
250
-
251
- export interface DisconnectParticipantRequest {
252
- /**
253
- * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
254
- * request.</p>
255
- */
256
- ClientToken?: string;
257
-
258
- /**
259
- * <p>The authentication token associated with the participant's connection.</p>
260
- */
261
- ConnectionToken: string | undefined;
262
- }
263
-
264
- export namespace DisconnectParticipantRequest {
265
- /**
266
- * @internal
267
- */
268
- export const filterSensitiveLog = (obj: DisconnectParticipantRequest): any => ({
269
- ...obj,
270
- });
271
- }
272
-
273
- export interface DisconnectParticipantResponse {}
274
-
275
- export namespace DisconnectParticipantResponse {
276
- /**
277
- * @internal
278
- */
279
- export const filterSensitiveLog = (obj: DisconnectParticipantResponse): any => ({
280
- ...obj,
281
- });
282
- }
283
-
284
- export interface GetAttachmentRequest {
285
- /**
286
- * <p>A unique identifier for the attachment.</p>
287
- */
288
- AttachmentId: string | undefined;
289
-
290
- /**
291
- * <p>The authentication token associated with the participant's connection.</p>
292
- */
293
- ConnectionToken: string | undefined;
294
- }
295
-
296
- export namespace GetAttachmentRequest {
297
- /**
298
- * @internal
299
- */
300
- export const filterSensitiveLog = (obj: GetAttachmentRequest): any => ({
301
- ...obj,
302
- });
303
- }
304
-
305
- export interface GetAttachmentResponse {
306
- /**
307
- * <p>The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.</p>
308
- */
309
- Url?: string;
310
-
311
- /**
312
- * <p>The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.</p>
313
- */
314
- UrlExpiry?: string;
315
- }
316
-
317
- export namespace GetAttachmentResponse {
318
- /**
319
- * @internal
320
- */
321
- export const filterSensitiveLog = (obj: GetAttachmentResponse): any => ({
322
- ...obj,
323
- });
324
- }
325
-
326
- export enum ScanDirection {
327
- BACKWARD = "BACKWARD",
328
- FORWARD = "FORWARD",
329
- }
330
-
331
- export enum SortKey {
332
- ASCENDING = "ASCENDING",
333
- DESCENDING = "DESCENDING",
334
- }
335
-
336
- /**
337
- * <p>A filtering option for where to start. For example, if you sent 100 messages, start
338
- * with message 50. </p>
339
- */
340
- export interface StartPosition {
341
- /**
342
- * <p>The ID of the message or event where to start. </p>
343
- */
344
- Id?: string;
345
-
346
- /**
347
- * <p>The time in ISO format where to start.</p>
348
- * <p>It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example,
349
- * 2019-11-08T02:41:28.172Z.</p>
350
- */
351
- AbsoluteTime?: string;
352
-
353
- /**
354
- * <p>The start position of the most recent message where you want to start. </p>
355
- */
356
- MostRecent?: number;
357
- }
358
-
359
- export namespace StartPosition {
360
- /**
361
- * @internal
362
- */
363
- export const filterSensitiveLog = (obj: StartPosition): any => ({
364
- ...obj,
365
- });
366
- }
367
-
368
- export interface GetTranscriptRequest {
369
- /**
370
- * <p>The contactId from the current contact chain for which transcript is needed.</p>
371
- */
372
- ContactId?: string;
373
-
374
- /**
375
- * <p>The maximum number of results to return in the page. Default: 10. </p>
376
- */
377
- MaxResults?: number;
378
-
379
- /**
380
- * <p>The pagination token. Use the value returned previously in the next subsequent request
381
- * to retrieve the next set of results.</p>
382
- */
383
- NextToken?: string;
384
-
385
- /**
386
- * <p>The direction from StartPosition from which to retrieve message. Default: BACKWARD
387
- * when no StartPosition is provided, FORWARD with StartPosition. </p>
388
- */
389
- ScanDirection?: ScanDirection | string;
390
-
391
- /**
392
- * <p>The sort order for the records. Default: DESCENDING.</p>
393
- */
394
- SortOrder?: SortKey | string;
395
-
396
- /**
397
- * <p>A filtering option for where to start.</p>
398
- */
399
- StartPosition?: StartPosition;
400
-
401
- /**
402
- * <p>The authentication token associated with the participant's connection.</p>
403
- */
404
- ConnectionToken: string | undefined;
405
- }
406
-
407
- export namespace GetTranscriptRequest {
408
- /**
409
- * @internal
410
- */
411
- export const filterSensitiveLog = (obj: GetTranscriptRequest): any => ({
412
- ...obj,
413
- });
414
- }
415
-
416
- export enum ArtifactStatus {
417
- APPROVED = "APPROVED",
418
- IN_PROGRESS = "IN_PROGRESS",
419
- REJECTED = "REJECTED",
420
- }
421
-
422
- /**
423
- * <p>The case-insensitive input to indicate standard MIME type that describes the format of the file
424
- * that will be uploaded.</p>
425
- */
426
- export interface AttachmentItem {
427
- /**
428
- * <p>Describes the MIME file type of the attachment. For a list of supported file types, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#feature-limits">Feature specifications</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
429
- */
430
- ContentType?: string;
431
-
432
- /**
433
- * <p>A unique identifier for the attachment.</p>
434
- */
435
- AttachmentId?: string;
436
-
437
- /**
438
- * <p>A case-sensitive name of the attachment being uploaded.</p>
439
- */
440
- AttachmentName?: string;
441
-
442
- /**
443
- * <p>Status of the attachment.</p>
444
- */
445
- Status?: ArtifactStatus | string;
446
- }
447
-
448
- export namespace AttachmentItem {
449
- /**
450
- * @internal
451
- */
452
- export const filterSensitiveLog = (obj: AttachmentItem): any => ({
453
- ...obj,
454
- });
455
- }
456
-
457
- export enum ParticipantRole {
458
- AGENT = "AGENT",
459
- CUSTOMER = "CUSTOMER",
460
- SYSTEM = "SYSTEM",
461
- }
462
-
463
- export enum ChatItemType {
464
- ATTACHMENT = "ATTACHMENT",
465
- CHAT_ENDED = "CHAT_ENDED",
466
- CONNECTION_ACK = "CONNECTION_ACK",
467
- EVENT = "EVENT",
468
- MESSAGE = "MESSAGE",
469
- PARTICIPANT_JOINED = "PARTICIPANT_JOINED",
470
- PARTICIPANT_LEFT = "PARTICIPANT_LEFT",
471
- TRANSFER_FAILED = "TRANSFER_FAILED",
472
- TRANSFER_SUCCEEDED = "TRANSFER_SUCCEEDED",
473
- TYPING = "TYPING",
474
- }
475
-
476
- /**
477
- * <p>An item - message or event - that has been sent. </p>
478
- */
479
- export interface Item {
480
- /**
481
- * <p>The time when the message or event was sent.</p>
482
- * <p>It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example,
483
- * 2019-11-08T02:41:28.172Z.</p>
484
- */
485
- AbsoluteTime?: string;
486
-
487
- /**
488
- * <p>The content of the message or event.</p>
489
- */
490
- Content?: string;
491
-
492
- /**
493
- * <p>The type of content of the item.</p>
494
- */
495
- ContentType?: string;
496
-
497
- /**
498
- * <p>The ID of the item.</p>
499
- */
500
- Id?: string;
501
-
502
- /**
503
- * <p>Type of the item: message or event. </p>
504
- */
505
- Type?: ChatItemType | string;
506
-
507
- /**
508
- * <p>The ID of the sender in the session.</p>
509
- */
510
- ParticipantId?: string;
511
-
512
- /**
513
- * <p>The chat display name of the sender.</p>
514
- */
515
- DisplayName?: string;
516
-
517
- /**
518
- * <p>The role of the sender. For example, is it a customer, agent, or system.</p>
519
- */
520
- ParticipantRole?: ParticipantRole | string;
521
-
522
- /**
523
- * <p>Provides information about the attachments.</p>
524
- */
525
- Attachments?: AttachmentItem[];
526
- }
527
-
528
- export namespace Item {
529
- /**
530
- * @internal
531
- */
532
- export const filterSensitiveLog = (obj: Item): any => ({
533
- ...obj,
534
- });
535
- }
536
-
537
- export interface GetTranscriptResponse {
538
- /**
539
- * <p>The initial contact ID for the contact. </p>
540
- */
541
- InitialContactId?: string;
542
-
543
- /**
544
- * <p>The list of messages in the session.</p>
545
- */
546
- Transcript?: Item[];
547
-
548
- /**
549
- * <p>The pagination token. Use the value returned previously in the next subsequent request
550
- * to retrieve the next set of results.</p>
551
- */
552
- NextToken?: string;
553
- }
554
-
555
- export namespace GetTranscriptResponse {
556
- /**
557
- * @internal
558
- */
559
- export const filterSensitiveLog = (obj: GetTranscriptResponse): any => ({
560
- ...obj,
561
- });
562
- }
563
-
564
- export interface SendEventRequest {
565
- /**
566
- * <p>The content type of the request. Supported types are:</p>
567
- *
568
- * <ul>
569
- * <li>
570
- * <p>application/vnd.amazonaws.connect.event.typing</p>
571
- * </li>
572
- * <li>
573
- * <p>application/vnd.amazonaws.connect.event.connection.acknowledged</p>
574
- * </li>
575
- * </ul>
576
- */
577
- ContentType: string | undefined;
578
-
579
- /**
580
- * <p>The content of the event to be sent (for example, message text). This is not yet
581
- * supported.</p>
582
- */
583
- Content?: string;
584
-
585
- /**
586
- * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
587
- * request.</p>
588
- */
589
- ClientToken?: string;
590
-
591
- /**
592
- * <p>The authentication token associated with the participant's connection.</p>
593
- */
594
- ConnectionToken: string | undefined;
595
- }
596
-
597
- export namespace SendEventRequest {
598
- /**
599
- * @internal
600
- */
601
- export const filterSensitiveLog = (obj: SendEventRequest): any => ({
602
- ...obj,
603
- });
604
- }
605
-
606
- export interface SendEventResponse {
607
- /**
608
- * <p>The ID of the response.</p>
609
- */
610
- Id?: string;
611
-
612
- /**
613
- * <p>The time when the event was sent.</p>
614
- * <p>It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example,
615
- * 2019-11-08T02:41:28.172Z.</p>
616
- */
617
- AbsoluteTime?: string;
618
- }
619
-
620
- export namespace SendEventResponse {
621
- /**
622
- * @internal
623
- */
624
- export const filterSensitiveLog = (obj: SendEventResponse): any => ({
625
- ...obj,
626
- });
627
- }
628
-
629
- export interface SendMessageRequest {
630
- /**
631
- * <p>The type of the content. Supported types are text/plain.</p>
632
- */
633
- ContentType: string | undefined;
634
-
635
- /**
636
- * <p>The content of the message.</p>
637
- */
638
- Content: string | undefined;
639
-
640
- /**
641
- * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
642
- * request.</p>
643
- */
644
- ClientToken?: string;
645
-
646
- /**
647
- * <p>The authentication token associated with the connection.</p>
648
- */
649
- ConnectionToken: string | undefined;
650
- }
651
-
652
- export namespace SendMessageRequest {
653
- /**
654
- * @internal
655
- */
656
- export const filterSensitiveLog = (obj: SendMessageRequest): any => ({
657
- ...obj,
658
- });
659
- }
660
-
661
- export interface SendMessageResponse {
662
- /**
663
- * <p>The ID of the message.</p>
664
- */
665
- Id?: string;
666
-
667
- /**
668
- * <p>The time when the message was sent.</p>
669
- * <p>It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example,
670
- * 2019-11-08T02:41:28.172Z.</p>
671
- */
672
- AbsoluteTime?: string;
673
- }
674
-
675
- export namespace SendMessageResponse {
676
- /**
677
- * @internal
678
- */
679
- export const filterSensitiveLog = (obj: SendMessageResponse): any => ({
680
- ...obj,
681
- });
682
- }
683
-
684
- export interface StartAttachmentUploadRequest {
685
- /**
686
- * <p>Describes the MIME file type of the attachment. For a list of supported file types, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#feature-limits">Feature specifications</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
687
- */
688
- ContentType: string | undefined;
689
-
690
- /**
691
- * <p>The size of the attachment in bytes.</p>
692
- */
693
- AttachmentSizeInBytes: number | undefined;
694
-
695
- /**
696
- * <p>A case-sensitive name of the attachment being uploaded.</p>
697
- */
698
- AttachmentName: string | undefined;
699
-
700
- /**
701
- * <p>A unique case sensitive identifier to support idempotency of request.</p>
702
- */
703
- ClientToken?: string;
704
-
705
- /**
706
- * <p>The authentication token associated with the participant's connection.</p>
707
- */
708
- ConnectionToken: string | undefined;
709
- }
710
-
711
- export namespace StartAttachmentUploadRequest {
712
- /**
713
- * @internal
714
- */
715
- export const filterSensitiveLog = (obj: StartAttachmentUploadRequest): any => ({
716
- ...obj,
717
- });
718
- }
719
-
720
- /**
721
- * <p>Fields to be used while uploading the attachment.</p>
722
- */
723
- export interface UploadMetadata {
724
- /**
725
- * <p>The pre-signed URL using which file would be downloaded from Amazon S3 by the API caller.</p>
726
- */
727
- Url?: string;
728
-
729
- /**
730
- * <p>The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.</p>
731
- */
732
- UrlExpiry?: string;
733
-
734
- /**
735
- * <p>The headers to be provided while uploading the file to the URL.</p>
736
- */
737
- HeadersToInclude?: { [key: string]: string };
738
- }
739
-
740
- export namespace UploadMetadata {
741
- /**
742
- * @internal
743
- */
744
- export const filterSensitiveLog = (obj: UploadMetadata): any => ({
745
- ...obj,
746
- });
747
- }
748
-
749
- export interface StartAttachmentUploadResponse {
750
- /**
751
- * <p>A unique identifier for the attachment.</p>
752
- */
753
- AttachmentId?: string;
754
-
755
- /**
756
- * <p>Fields to be used while uploading the attachment.</p>
757
- */
758
- UploadMetadata?: UploadMetadata;
759
- }
760
-
761
- export namespace StartAttachmentUploadResponse {
762
- /**
763
- * @internal
764
- */
765
- export const filterSensitiveLog = (obj: StartAttachmentUploadResponse): any => ({
766
- ...obj,
767
- });
768
- }