@aws-sdk/client-connectparticipant 3.128.0 → 3.137.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.
@@ -13,14 +13,6 @@ var AccessDeniedException = (function (_super) {
13
13
  return AccessDeniedException;
14
14
  }(__BaseException));
15
15
  export { AccessDeniedException };
16
- export var CompleteAttachmentUploadRequest;
17
- (function (CompleteAttachmentUploadRequest) {
18
- CompleteAttachmentUploadRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
19
- })(CompleteAttachmentUploadRequest || (CompleteAttachmentUploadRequest = {}));
20
- export var CompleteAttachmentUploadResponse;
21
- (function (CompleteAttachmentUploadResponse) {
22
- CompleteAttachmentUploadResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
23
- })(CompleteAttachmentUploadResponse || (CompleteAttachmentUploadResponse = {}));
24
16
  var ConflictException = (function (_super) {
25
17
  __extends(ConflictException, _super);
26
18
  function ConflictException(opts) {
@@ -91,38 +83,6 @@ export var ConnectionType;
91
83
  ConnectionType["CONNECTION_CREDENTIALS"] = "CONNECTION_CREDENTIALS";
92
84
  ConnectionType["WEBSOCKET"] = "WEBSOCKET";
93
85
  })(ConnectionType || (ConnectionType = {}));
94
- export var CreateParticipantConnectionRequest;
95
- (function (CreateParticipantConnectionRequest) {
96
- CreateParticipantConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
- })(CreateParticipantConnectionRequest || (CreateParticipantConnectionRequest = {}));
98
- export var ConnectionCredentials;
99
- (function (ConnectionCredentials) {
100
- ConnectionCredentials.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
- })(ConnectionCredentials || (ConnectionCredentials = {}));
102
- export var Websocket;
103
- (function (Websocket) {
104
- Websocket.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
105
- })(Websocket || (Websocket = {}));
106
- export var CreateParticipantConnectionResponse;
107
- (function (CreateParticipantConnectionResponse) {
108
- CreateParticipantConnectionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
109
- })(CreateParticipantConnectionResponse || (CreateParticipantConnectionResponse = {}));
110
- export var DisconnectParticipantRequest;
111
- (function (DisconnectParticipantRequest) {
112
- DisconnectParticipantRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
113
- })(DisconnectParticipantRequest || (DisconnectParticipantRequest = {}));
114
- export var DisconnectParticipantResponse;
115
- (function (DisconnectParticipantResponse) {
116
- DisconnectParticipantResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
117
- })(DisconnectParticipantResponse || (DisconnectParticipantResponse = {}));
118
- export var GetAttachmentRequest;
119
- (function (GetAttachmentRequest) {
120
- GetAttachmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
121
- })(GetAttachmentRequest || (GetAttachmentRequest = {}));
122
- export var GetAttachmentResponse;
123
- (function (GetAttachmentResponse) {
124
- GetAttachmentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
- })(GetAttachmentResponse || (GetAttachmentResponse = {}));
126
86
  export var ScanDirection;
127
87
  (function (ScanDirection) {
128
88
  ScanDirection["BACKWARD"] = "BACKWARD";
@@ -133,24 +93,12 @@ export var SortKey;
133
93
  SortKey["ASCENDING"] = "ASCENDING";
134
94
  SortKey["DESCENDING"] = "DESCENDING";
135
95
  })(SortKey || (SortKey = {}));
136
- export var StartPosition;
137
- (function (StartPosition) {
138
- StartPosition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
- })(StartPosition || (StartPosition = {}));
140
- export var GetTranscriptRequest;
141
- (function (GetTranscriptRequest) {
142
- GetTranscriptRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
- })(GetTranscriptRequest || (GetTranscriptRequest = {}));
144
96
  export var ArtifactStatus;
145
97
  (function (ArtifactStatus) {
146
98
  ArtifactStatus["APPROVED"] = "APPROVED";
147
99
  ArtifactStatus["IN_PROGRESS"] = "IN_PROGRESS";
148
100
  ArtifactStatus["REJECTED"] = "REJECTED";
149
101
  })(ArtifactStatus || (ArtifactStatus = {}));
150
- export var AttachmentItem;
151
- (function (AttachmentItem) {
152
- AttachmentItem.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
153
- })(AttachmentItem || (AttachmentItem = {}));
154
102
  export var ParticipantRole;
155
103
  (function (ParticipantRole) {
156
104
  ParticipantRole["AGENT"] = "AGENT";
@@ -170,39 +118,25 @@ export var ChatItemType;
170
118
  ChatItemType["TRANSFER_SUCCEEDED"] = "TRANSFER_SUCCEEDED";
171
119
  ChatItemType["TYPING"] = "TYPING";
172
120
  })(ChatItemType || (ChatItemType = {}));
173
- export var Item;
174
- (function (Item) {
175
- Item.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
- })(Item || (Item = {}));
177
- export var GetTranscriptResponse;
178
- (function (GetTranscriptResponse) {
179
- GetTranscriptResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
- })(GetTranscriptResponse || (GetTranscriptResponse = {}));
181
- export var SendEventRequest;
182
- (function (SendEventRequest) {
183
- SendEventRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
- })(SendEventRequest || (SendEventRequest = {}));
185
- export var SendEventResponse;
186
- (function (SendEventResponse) {
187
- SendEventResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
188
- })(SendEventResponse || (SendEventResponse = {}));
189
- export var SendMessageRequest;
190
- (function (SendMessageRequest) {
191
- SendMessageRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
192
- })(SendMessageRequest || (SendMessageRequest = {}));
193
- export var SendMessageResponse;
194
- (function (SendMessageResponse) {
195
- SendMessageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
196
- })(SendMessageResponse || (SendMessageResponse = {}));
197
- export var StartAttachmentUploadRequest;
198
- (function (StartAttachmentUploadRequest) {
199
- StartAttachmentUploadRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
200
- })(StartAttachmentUploadRequest || (StartAttachmentUploadRequest = {}));
201
- export var UploadMetadata;
202
- (function (UploadMetadata) {
203
- UploadMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
204
- })(UploadMetadata || (UploadMetadata = {}));
205
- export var StartAttachmentUploadResponse;
206
- (function (StartAttachmentUploadResponse) {
207
- StartAttachmentUploadResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
208
- })(StartAttachmentUploadResponse || (StartAttachmentUploadResponse = {}));
121
+ export var CompleteAttachmentUploadRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
122
+ export var CompleteAttachmentUploadResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
123
+ export var CreateParticipantConnectionRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
124
+ export var ConnectionCredentialsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
125
+ export var WebsocketFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
126
+ export var CreateParticipantConnectionResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
+ export var DisconnectParticipantRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
128
+ export var DisconnectParticipantResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
129
+ export var GetAttachmentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
130
+ export var GetAttachmentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
+ export var StartPositionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
+ export var GetTranscriptRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
+ export var AttachmentItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
134
+ export var ItemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
+ export var GetTranscriptResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
+ export var SendEventRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
137
+ export var SendEventResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
138
+ export var SendMessageRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
+ export var SendMessageResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
+ export var StartAttachmentUploadRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
141
+ export var UploadMetadataFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
142
+ export var StartAttachmentUploadResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -978,6 +978,9 @@ var loadRestJsonErrorCode = function (output, data) {
978
978
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
979
979
  var sanitizeErrorCode = function (rawValue) {
980
980
  var cleanValue = rawValue;
981
+ if (typeof cleanValue === "number") {
982
+ cleanValue = cleanValue.toString();
983
+ }
981
984
  if (cleanValue.indexOf(":") >= 0) {
982
985
  cleanValue = cleanValue.split(":")[0];
983
986
  }
@@ -27,20 +27,8 @@ export interface CompleteAttachmentUploadRequest {
27
27
  */
28
28
  ConnectionToken: string | undefined;
29
29
  }
30
- export declare namespace CompleteAttachmentUploadRequest {
31
- /**
32
- * @internal
33
- */
34
- const filterSensitiveLog: (obj: CompleteAttachmentUploadRequest) => any;
35
- }
36
30
  export interface CompleteAttachmentUploadResponse {
37
31
  }
38
- export declare namespace CompleteAttachmentUploadResponse {
39
- /**
40
- * @internal
41
- */
42
- const filterSensitiveLog: (obj: CompleteAttachmentUploadResponse) => any;
43
- }
44
32
  /**
45
33
  * <p>An attachment with that identifier is already being uploaded.</p>
46
34
  */
@@ -122,12 +110,6 @@ export interface CreateParticipantConnectionRequest {
122
110
  */
123
111
  ConnectParticipant?: boolean;
124
112
  }
125
- export declare namespace CreateParticipantConnectionRequest {
126
- /**
127
- * @internal
128
- */
129
- const filterSensitiveLog: (obj: CreateParticipantConnectionRequest) => any;
130
- }
131
113
  /**
132
114
  * <p>Connection credentials. </p>
133
115
  */
@@ -143,12 +125,6 @@ export interface ConnectionCredentials {
143
125
  */
144
126
  Expiry?: string;
145
127
  }
146
- export declare namespace ConnectionCredentials {
147
- /**
148
- * @internal
149
- */
150
- const filterSensitiveLog: (obj: ConnectionCredentials) => any;
151
- }
152
128
  /**
153
129
  * <p>The websocket for the participant's connection.</p>
154
130
  */
@@ -164,12 +140,6 @@ export interface Websocket {
164
140
  */
165
141
  ConnectionExpiry?: string;
166
142
  }
167
- export declare namespace Websocket {
168
- /**
169
- * @internal
170
- */
171
- const filterSensitiveLog: (obj: Websocket) => any;
172
- }
173
143
  export interface CreateParticipantConnectionResponse {
174
144
  /**
175
145
  * <p>Creates the participant's websocket connection.</p>
@@ -181,12 +151,6 @@ export interface CreateParticipantConnectionResponse {
181
151
  */
182
152
  ConnectionCredentials?: ConnectionCredentials;
183
153
  }
184
- export declare namespace CreateParticipantConnectionResponse {
185
- /**
186
- * @internal
187
- */
188
- const filterSensitiveLog: (obj: CreateParticipantConnectionResponse) => any;
189
- }
190
154
  export interface DisconnectParticipantRequest {
191
155
  /**
192
156
  * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
@@ -198,20 +162,8 @@ export interface DisconnectParticipantRequest {
198
162
  */
199
163
  ConnectionToken: string | undefined;
200
164
  }
201
- export declare namespace DisconnectParticipantRequest {
202
- /**
203
- * @internal
204
- */
205
- const filterSensitiveLog: (obj: DisconnectParticipantRequest) => any;
206
- }
207
165
  export interface DisconnectParticipantResponse {
208
166
  }
209
- export declare namespace DisconnectParticipantResponse {
210
- /**
211
- * @internal
212
- */
213
- const filterSensitiveLog: (obj: DisconnectParticipantResponse) => any;
214
- }
215
167
  export interface GetAttachmentRequest {
216
168
  /**
217
169
  * <p>A unique identifier for the attachment.</p>
@@ -222,12 +174,6 @@ export interface GetAttachmentRequest {
222
174
  */
223
175
  ConnectionToken: string | undefined;
224
176
  }
225
- export declare namespace GetAttachmentRequest {
226
- /**
227
- * @internal
228
- */
229
- const filterSensitiveLog: (obj: GetAttachmentRequest) => any;
230
- }
231
177
  export interface GetAttachmentResponse {
232
178
  /**
233
179
  * <p>This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response
@@ -239,12 +185,6 @@ export interface GetAttachmentResponse {
239
185
  */
240
186
  UrlExpiry?: string;
241
187
  }
242
- export declare namespace GetAttachmentResponse {
243
- /**
244
- * @internal
245
- */
246
- const filterSensitiveLog: (obj: GetAttachmentResponse) => any;
247
- }
248
188
  export declare enum ScanDirection {
249
189
  BACKWARD = "BACKWARD",
250
190
  FORWARD = "FORWARD"
@@ -273,12 +213,6 @@ export interface StartPosition {
273
213
  */
274
214
  MostRecent?: number;
275
215
  }
276
- export declare namespace StartPosition {
277
- /**
278
- * @internal
279
- */
280
- const filterSensitiveLog: (obj: StartPosition) => any;
281
- }
282
216
  export interface GetTranscriptRequest {
283
217
  /**
284
218
  * <p>The contactId from the current contact chain for which transcript is needed.</p>
@@ -311,12 +245,6 @@ export interface GetTranscriptRequest {
311
245
  */
312
246
  ConnectionToken: string | undefined;
313
247
  }
314
- export declare namespace GetTranscriptRequest {
315
- /**
316
- * @internal
317
- */
318
- const filterSensitiveLog: (obj: GetTranscriptRequest) => any;
319
- }
320
248
  export declare enum ArtifactStatus {
321
249
  APPROVED = "APPROVED",
322
250
  IN_PROGRESS = "IN_PROGRESS",
@@ -344,12 +272,6 @@ export interface AttachmentItem {
344
272
  */
345
273
  Status?: ArtifactStatus | string;
346
274
  }
347
- export declare namespace AttachmentItem {
348
- /**
349
- * @internal
350
- */
351
- const filterSensitiveLog: (obj: AttachmentItem) => any;
352
- }
353
275
  export declare enum ParticipantRole {
354
276
  AGENT = "AGENT",
355
277
  CUSTOMER = "CUSTOMER",
@@ -410,12 +332,6 @@ export interface Item {
410
332
  */
411
333
  Attachments?: AttachmentItem[];
412
334
  }
413
- export declare namespace Item {
414
- /**
415
- * @internal
416
- */
417
- const filterSensitiveLog: (obj: Item) => any;
418
- }
419
335
  export interface GetTranscriptResponse {
420
336
  /**
421
337
  * <p>The initial contact ID for the contact. </p>
@@ -431,12 +347,6 @@ export interface GetTranscriptResponse {
431
347
  */
432
348
  NextToken?: string;
433
349
  }
434
- export declare namespace GetTranscriptResponse {
435
- /**
436
- * @internal
437
- */
438
- const filterSensitiveLog: (obj: GetTranscriptResponse) => any;
439
- }
440
350
  export interface SendEventRequest {
441
351
  /**
442
352
  * <p>The content type of the request. Supported types are:</p>
@@ -466,12 +376,6 @@ export interface SendEventRequest {
466
376
  */
467
377
  ConnectionToken: string | undefined;
468
378
  }
469
- export declare namespace SendEventRequest {
470
- /**
471
- * @internal
472
- */
473
- const filterSensitiveLog: (obj: SendEventRequest) => any;
474
- }
475
379
  export interface SendEventResponse {
476
380
  /**
477
381
  * <p>The ID of the response.</p>
@@ -484,12 +388,6 @@ export interface SendEventResponse {
484
388
  */
485
389
  AbsoluteTime?: string;
486
390
  }
487
- export declare namespace SendEventResponse {
488
- /**
489
- * @internal
490
- */
491
- const filterSensitiveLog: (obj: SendEventResponse) => any;
492
- }
493
391
  export interface SendMessageRequest {
494
392
  /**
495
393
  * <p>The type of the content. Supported types are text/plain.</p>
@@ -509,12 +407,6 @@ export interface SendMessageRequest {
509
407
  */
510
408
  ConnectionToken: string | undefined;
511
409
  }
512
- export declare namespace SendMessageRequest {
513
- /**
514
- * @internal
515
- */
516
- const filterSensitiveLog: (obj: SendMessageRequest) => any;
517
- }
518
410
  export interface SendMessageResponse {
519
411
  /**
520
412
  * <p>The ID of the message.</p>
@@ -527,12 +419,6 @@ export interface SendMessageResponse {
527
419
  */
528
420
  AbsoluteTime?: string;
529
421
  }
530
- export declare namespace SendMessageResponse {
531
- /**
532
- * @internal
533
- */
534
- const filterSensitiveLog: (obj: SendMessageResponse) => any;
535
- }
536
422
  export interface StartAttachmentUploadRequest {
537
423
  /**
538
424
  * <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>
@@ -555,12 +441,6 @@ export interface StartAttachmentUploadRequest {
555
441
  */
556
442
  ConnectionToken: string | undefined;
557
443
  }
558
- export declare namespace StartAttachmentUploadRequest {
559
- /**
560
- * @internal
561
- */
562
- const filterSensitiveLog: (obj: StartAttachmentUploadRequest) => any;
563
- }
564
444
  /**
565
445
  * <p>Fields to be used while uploading the attachment.</p>
566
446
  */
@@ -579,12 +459,6 @@ export interface UploadMetadata {
579
459
  */
580
460
  HeadersToInclude?: Record<string, string>;
581
461
  }
582
- export declare namespace UploadMetadata {
583
- /**
584
- * @internal
585
- */
586
- const filterSensitiveLog: (obj: UploadMetadata) => any;
587
- }
588
462
  export interface StartAttachmentUploadResponse {
589
463
  /**
590
464
  * <p>A unique identifier for the attachment.</p>
@@ -595,9 +469,91 @@ export interface StartAttachmentUploadResponse {
595
469
  */
596
470
  UploadMetadata?: UploadMetadata;
597
471
  }
598
- export declare namespace StartAttachmentUploadResponse {
599
- /**
600
- * @internal
601
- */
602
- const filterSensitiveLog: (obj: StartAttachmentUploadResponse) => any;
603
- }
472
+ /**
473
+ * @internal
474
+ */
475
+ export declare const CompleteAttachmentUploadRequestFilterSensitiveLog: (obj: CompleteAttachmentUploadRequest) => any;
476
+ /**
477
+ * @internal
478
+ */
479
+ export declare const CompleteAttachmentUploadResponseFilterSensitiveLog: (obj: CompleteAttachmentUploadResponse) => any;
480
+ /**
481
+ * @internal
482
+ */
483
+ export declare const CreateParticipantConnectionRequestFilterSensitiveLog: (obj: CreateParticipantConnectionRequest) => any;
484
+ /**
485
+ * @internal
486
+ */
487
+ export declare const ConnectionCredentialsFilterSensitiveLog: (obj: ConnectionCredentials) => any;
488
+ /**
489
+ * @internal
490
+ */
491
+ export declare const WebsocketFilterSensitiveLog: (obj: Websocket) => any;
492
+ /**
493
+ * @internal
494
+ */
495
+ export declare const CreateParticipantConnectionResponseFilterSensitiveLog: (obj: CreateParticipantConnectionResponse) => any;
496
+ /**
497
+ * @internal
498
+ */
499
+ export declare const DisconnectParticipantRequestFilterSensitiveLog: (obj: DisconnectParticipantRequest) => any;
500
+ /**
501
+ * @internal
502
+ */
503
+ export declare const DisconnectParticipantResponseFilterSensitiveLog: (obj: DisconnectParticipantResponse) => any;
504
+ /**
505
+ * @internal
506
+ */
507
+ export declare const GetAttachmentRequestFilterSensitiveLog: (obj: GetAttachmentRequest) => any;
508
+ /**
509
+ * @internal
510
+ */
511
+ export declare const GetAttachmentResponseFilterSensitiveLog: (obj: GetAttachmentResponse) => any;
512
+ /**
513
+ * @internal
514
+ */
515
+ export declare const StartPositionFilterSensitiveLog: (obj: StartPosition) => any;
516
+ /**
517
+ * @internal
518
+ */
519
+ export declare const GetTranscriptRequestFilterSensitiveLog: (obj: GetTranscriptRequest) => any;
520
+ /**
521
+ * @internal
522
+ */
523
+ export declare const AttachmentItemFilterSensitiveLog: (obj: AttachmentItem) => any;
524
+ /**
525
+ * @internal
526
+ */
527
+ export declare const ItemFilterSensitiveLog: (obj: Item) => any;
528
+ /**
529
+ * @internal
530
+ */
531
+ export declare const GetTranscriptResponseFilterSensitiveLog: (obj: GetTranscriptResponse) => any;
532
+ /**
533
+ * @internal
534
+ */
535
+ export declare const SendEventRequestFilterSensitiveLog: (obj: SendEventRequest) => any;
536
+ /**
537
+ * @internal
538
+ */
539
+ export declare const SendEventResponseFilterSensitiveLog: (obj: SendEventResponse) => any;
540
+ /**
541
+ * @internal
542
+ */
543
+ export declare const SendMessageRequestFilterSensitiveLog: (obj: SendMessageRequest) => any;
544
+ /**
545
+ * @internal
546
+ */
547
+ export declare const SendMessageResponseFilterSensitiveLog: (obj: SendMessageResponse) => any;
548
+ /**
549
+ * @internal
550
+ */
551
+ export declare const StartAttachmentUploadRequestFilterSensitiveLog: (obj: StartAttachmentUploadRequest) => any;
552
+ /**
553
+ * @internal
554
+ */
555
+ export declare const UploadMetadataFilterSensitiveLog: (obj: UploadMetadata) => any;
556
+ /**
557
+ * @internal
558
+ */
559
+ export declare const StartAttachmentUploadResponseFilterSensitiveLog: (obj: StartAttachmentUploadResponse) => any;