@aws-sdk/client-mturk 3.926.0 → 3.928.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 (60) hide show
  1. package/dist-cjs/index.js +1084 -1367
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/MTurkClient.js +2 -0
  4. package/dist-es/commands/AcceptQualificationRequestCommand.js +3 -9
  5. package/dist-es/commands/ApproveAssignmentCommand.js +3 -9
  6. package/dist-es/commands/AssociateQualificationWithWorkerCommand.js +3 -9
  7. package/dist-es/commands/CreateAdditionalAssignmentsForHITCommand.js +3 -9
  8. package/dist-es/commands/CreateHITCommand.js +3 -9
  9. package/dist-es/commands/CreateHITTypeCommand.js +3 -9
  10. package/dist-es/commands/CreateHITWithHITTypeCommand.js +3 -9
  11. package/dist-es/commands/CreateQualificationTypeCommand.js +3 -9
  12. package/dist-es/commands/CreateWorkerBlockCommand.js +3 -9
  13. package/dist-es/commands/DeleteHITCommand.js +3 -9
  14. package/dist-es/commands/DeleteQualificationTypeCommand.js +3 -9
  15. package/dist-es/commands/DeleteWorkerBlockCommand.js +3 -9
  16. package/dist-es/commands/DisassociateQualificationFromWorkerCommand.js +3 -9
  17. package/dist-es/commands/GetAccountBalanceCommand.js +3 -9
  18. package/dist-es/commands/GetAssignmentCommand.js +3 -9
  19. package/dist-es/commands/GetFileUploadURLCommand.js +3 -9
  20. package/dist-es/commands/GetHITCommand.js +3 -9
  21. package/dist-es/commands/GetQualificationScoreCommand.js +3 -9
  22. package/dist-es/commands/GetQualificationTypeCommand.js +3 -9
  23. package/dist-es/commands/ListAssignmentsForHITCommand.js +3 -9
  24. package/dist-es/commands/ListBonusPaymentsCommand.js +3 -9
  25. package/dist-es/commands/ListHITsCommand.js +3 -9
  26. package/dist-es/commands/ListHITsForQualificationTypeCommand.js +3 -9
  27. package/dist-es/commands/ListQualificationRequestsCommand.js +3 -9
  28. package/dist-es/commands/ListQualificationTypesCommand.js +3 -9
  29. package/dist-es/commands/ListReviewPolicyResultsForHITCommand.js +3 -9
  30. package/dist-es/commands/ListReviewableHITsCommand.js +3 -9
  31. package/dist-es/commands/ListWorkerBlocksCommand.js +3 -9
  32. package/dist-es/commands/ListWorkersWithQualificationTypeCommand.js +3 -9
  33. package/dist-es/commands/NotifyWorkersCommand.js +3 -9
  34. package/dist-es/commands/RejectAssignmentCommand.js +3 -9
  35. package/dist-es/commands/RejectQualificationRequestCommand.js +3 -9
  36. package/dist-es/commands/SendBonusCommand.js +3 -9
  37. package/dist-es/commands/SendTestEventNotificationCommand.js +3 -9
  38. package/dist-es/commands/UpdateExpirationForHITCommand.js +3 -9
  39. package/dist-es/commands/UpdateHITReviewStatusCommand.js +3 -9
  40. package/dist-es/commands/UpdateHITTypeOfHITCommand.js +3 -9
  41. package/dist-es/commands/UpdateNotificationSettingsCommand.js +3 -9
  42. package/dist-es/commands/UpdateQualificationTypeCommand.js +3 -9
  43. package/dist-es/runtimeConfig.shared.js +7 -0
  44. package/dist-es/schemas/schemas_0.js +1005 -0
  45. package/dist-types/MTurkClient.d.ts +10 -1
  46. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  47. package/dist-types/runtimeConfig.d.ts +1 -0
  48. package/dist-types/runtimeConfig.native.d.ts +1 -0
  49. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  50. package/dist-types/schemas/schemas_0.d.ts +161 -0
  51. package/dist-types/ts3.4/MTurkClient.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  55. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  56. package/dist-types/ts3.4/schemas/schemas_0.d.ts +166 -0
  57. package/package.json +5 -5
  58. package/dist-es/protocols/Aws_json1_1.js +0 -1092
  59. package/dist-types/protocols/Aws_json1_1.d.ts +0 -353
  60. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -473
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -91,6 +90,7 @@ class MTurkClient extends smithyClient.Client {
91
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -110,14 +110,14 @@ class MTurkClient extends smithyClient.Client {
110
110
  }
111
111
  }
112
112
 
113
- class MTurkServiceException extends smithyClient.ServiceException {
113
+ let MTurkServiceException$1 = class MTurkServiceException extends smithyClient.ServiceException {
114
114
  constructor(options) {
115
115
  super(options);
116
116
  Object.setPrototypeOf(this, MTurkServiceException.prototype);
117
117
  }
118
- }
118
+ };
119
119
 
120
- class RequestError extends MTurkServiceException {
120
+ let RequestError$1 = class RequestError extends MTurkServiceException$1 {
121
121
  name = "RequestError";
122
122
  $fault = "client";
123
123
  Message;
@@ -132,8 +132,8 @@ class RequestError extends MTurkServiceException {
132
132
  this.Message = opts.Message;
133
133
  this.TurkErrorCode = opts.TurkErrorCode;
134
134
  }
135
- }
136
- class ServiceFault extends MTurkServiceException {
135
+ };
136
+ let ServiceFault$1 = class ServiceFault extends MTurkServiceException$1 {
137
137
  name = "ServiceFault";
138
138
  $fault = "server";
139
139
  Message;
@@ -148,7 +148,7 @@ class ServiceFault extends MTurkServiceException {
148
148
  this.Message = opts.Message;
149
149
  this.TurkErrorCode = opts.TurkErrorCode;
150
150
  }
151
- }
151
+ };
152
152
  const AssignmentStatus = {
153
153
  Approved: "Approved",
154
154
  Rejected: "Rejected",
@@ -230,1104 +230,1011 @@ const NotificationTransport = {
230
230
  SQS: "SQS",
231
231
  };
232
232
 
233
- const se_AcceptQualificationRequestCommand = async (input, context) => {
234
- const headers = sharedHeaders("AcceptQualificationRequest");
235
- let body;
236
- body = JSON.stringify(smithyClient._json(input));
237
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
- };
239
- const se_ApproveAssignmentCommand = async (input, context) => {
240
- const headers = sharedHeaders("ApproveAssignment");
241
- let body;
242
- body = JSON.stringify(smithyClient._json(input));
243
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
244
- };
245
- const se_AssociateQualificationWithWorkerCommand = async (input, context) => {
246
- const headers = sharedHeaders("AssociateQualificationWithWorker");
247
- let body;
248
- body = JSON.stringify(smithyClient._json(input));
249
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
250
- };
251
- const se_CreateAdditionalAssignmentsForHITCommand = async (input, context) => {
252
- const headers = sharedHeaders("CreateAdditionalAssignmentsForHIT");
253
- let body;
254
- body = JSON.stringify(smithyClient._json(input));
255
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
- };
257
- const se_CreateHITCommand = async (input, context) => {
258
- const headers = sharedHeaders("CreateHIT");
259
- let body;
260
- body = JSON.stringify(smithyClient._json(input));
261
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
- };
263
- const se_CreateHITTypeCommand = async (input, context) => {
264
- const headers = sharedHeaders("CreateHITType");
265
- let body;
266
- body = JSON.stringify(smithyClient._json(input));
267
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
- };
269
- const se_CreateHITWithHITTypeCommand = async (input, context) => {
270
- const headers = sharedHeaders("CreateHITWithHITType");
271
- let body;
272
- body = JSON.stringify(smithyClient._json(input));
273
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
- };
275
- const se_CreateQualificationTypeCommand = async (input, context) => {
276
- const headers = sharedHeaders("CreateQualificationType");
277
- let body;
278
- body = JSON.stringify(smithyClient._json(input));
279
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
- };
281
- const se_CreateWorkerBlockCommand = async (input, context) => {
282
- const headers = sharedHeaders("CreateWorkerBlock");
283
- let body;
284
- body = JSON.stringify(smithyClient._json(input));
285
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
286
- };
287
- const se_DeleteHITCommand = async (input, context) => {
288
- const headers = sharedHeaders("DeleteHIT");
289
- let body;
290
- body = JSON.stringify(smithyClient._json(input));
291
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
- };
293
- const se_DeleteQualificationTypeCommand = async (input, context) => {
294
- const headers = sharedHeaders("DeleteQualificationType");
295
- let body;
296
- body = JSON.stringify(smithyClient._json(input));
297
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
298
- };
299
- const se_DeleteWorkerBlockCommand = async (input, context) => {
300
- const headers = sharedHeaders("DeleteWorkerBlock");
301
- let body;
302
- body = JSON.stringify(smithyClient._json(input));
303
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
304
- };
305
- const se_DisassociateQualificationFromWorkerCommand = async (input, context) => {
306
- const headers = sharedHeaders("DisassociateQualificationFromWorker");
307
- let body;
308
- body = JSON.stringify(smithyClient._json(input));
309
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
- };
311
- const se_GetAccountBalanceCommand = async (input, context) => {
312
- const headers = sharedHeaders("GetAccountBalance");
313
- let body;
314
- body = JSON.stringify(smithyClient._json(input));
315
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
- };
317
- const se_GetAssignmentCommand = async (input, context) => {
318
- const headers = sharedHeaders("GetAssignment");
319
- let body;
320
- body = JSON.stringify(smithyClient._json(input));
321
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
322
- };
323
- const se_GetFileUploadURLCommand = async (input, context) => {
324
- const headers = sharedHeaders("GetFileUploadURL");
325
- let body;
326
- body = JSON.stringify(smithyClient._json(input));
327
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
- };
329
- const se_GetHITCommand = async (input, context) => {
330
- const headers = sharedHeaders("GetHIT");
331
- let body;
332
- body = JSON.stringify(smithyClient._json(input));
333
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
334
- };
335
- const se_GetQualificationScoreCommand = async (input, context) => {
336
- const headers = sharedHeaders("GetQualificationScore");
337
- let body;
338
- body = JSON.stringify(smithyClient._json(input));
339
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
340
- };
341
- const se_GetQualificationTypeCommand = async (input, context) => {
342
- const headers = sharedHeaders("GetQualificationType");
343
- let body;
344
- body = JSON.stringify(smithyClient._json(input));
345
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
- };
347
- const se_ListAssignmentsForHITCommand = async (input, context) => {
348
- const headers = sharedHeaders("ListAssignmentsForHIT");
349
- let body;
350
- body = JSON.stringify(smithyClient._json(input));
351
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
352
- };
353
- const se_ListBonusPaymentsCommand = async (input, context) => {
354
- const headers = sharedHeaders("ListBonusPayments");
355
- let body;
356
- body = JSON.stringify(smithyClient._json(input));
357
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
- };
359
- const se_ListHITsCommand = async (input, context) => {
360
- const headers = sharedHeaders("ListHITs");
361
- let body;
362
- body = JSON.stringify(smithyClient._json(input));
363
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
- };
365
- const se_ListHITsForQualificationTypeCommand = async (input, context) => {
366
- const headers = sharedHeaders("ListHITsForQualificationType");
367
- let body;
368
- body = JSON.stringify(smithyClient._json(input));
369
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
370
- };
371
- const se_ListQualificationRequestsCommand = async (input, context) => {
372
- const headers = sharedHeaders("ListQualificationRequests");
373
- let body;
374
- body = JSON.stringify(smithyClient._json(input));
375
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
376
- };
377
- const se_ListQualificationTypesCommand = async (input, context) => {
378
- const headers = sharedHeaders("ListQualificationTypes");
379
- let body;
380
- body = JSON.stringify(smithyClient._json(input));
381
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
382
- };
383
- const se_ListReviewableHITsCommand = async (input, context) => {
384
- const headers = sharedHeaders("ListReviewableHITs");
385
- let body;
386
- body = JSON.stringify(smithyClient._json(input));
387
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
- };
389
- const se_ListReviewPolicyResultsForHITCommand = async (input, context) => {
390
- const headers = sharedHeaders("ListReviewPolicyResultsForHIT");
391
- let body;
392
- body = JSON.stringify(smithyClient._json(input));
393
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
394
- };
395
- const se_ListWorkerBlocksCommand = async (input, context) => {
396
- const headers = sharedHeaders("ListWorkerBlocks");
397
- let body;
398
- body = JSON.stringify(smithyClient._json(input));
399
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
- };
401
- const se_ListWorkersWithQualificationTypeCommand = async (input, context) => {
402
- const headers = sharedHeaders("ListWorkersWithQualificationType");
403
- let body;
404
- body = JSON.stringify(smithyClient._json(input));
405
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
406
- };
407
- const se_NotifyWorkersCommand = async (input, context) => {
408
- const headers = sharedHeaders("NotifyWorkers");
409
- let body;
410
- body = JSON.stringify(smithyClient._json(input));
411
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
412
- };
413
- const se_RejectAssignmentCommand = async (input, context) => {
414
- const headers = sharedHeaders("RejectAssignment");
415
- let body;
416
- body = JSON.stringify(smithyClient._json(input));
417
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
- };
419
- const se_RejectQualificationRequestCommand = async (input, context) => {
420
- const headers = sharedHeaders("RejectQualificationRequest");
421
- let body;
422
- body = JSON.stringify(smithyClient._json(input));
423
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
424
- };
425
- const se_SendBonusCommand = async (input, context) => {
426
- const headers = sharedHeaders("SendBonus");
427
- let body;
428
- body = JSON.stringify(smithyClient._json(input));
429
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
430
- };
431
- const se_SendTestEventNotificationCommand = async (input, context) => {
432
- const headers = sharedHeaders("SendTestEventNotification");
433
- let body;
434
- body = JSON.stringify(smithyClient._json(input));
435
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
436
- };
437
- const se_UpdateExpirationForHITCommand = async (input, context) => {
438
- const headers = sharedHeaders("UpdateExpirationForHIT");
439
- let body;
440
- body = JSON.stringify(se_UpdateExpirationForHITRequest(input));
441
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
442
- };
443
- const se_UpdateHITReviewStatusCommand = async (input, context) => {
444
- const headers = sharedHeaders("UpdateHITReviewStatus");
445
- let body;
446
- body = JSON.stringify(smithyClient._json(input));
447
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
448
- };
449
- const se_UpdateHITTypeOfHITCommand = async (input, context) => {
450
- const headers = sharedHeaders("UpdateHITTypeOfHIT");
451
- let body;
452
- body = JSON.stringify(smithyClient._json(input));
453
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
454
- };
455
- const se_UpdateNotificationSettingsCommand = async (input, context) => {
456
- const headers = sharedHeaders("UpdateNotificationSettings");
457
- let body;
458
- body = JSON.stringify(smithyClient._json(input));
459
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
460
- };
461
- const se_UpdateQualificationTypeCommand = async (input, context) => {
462
- const headers = sharedHeaders("UpdateQualificationType");
463
- let body;
464
- body = JSON.stringify(smithyClient._json(input));
465
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
466
- };
467
- const de_AcceptQualificationRequestCommand = async (output, context) => {
468
- if (output.statusCode >= 300) {
469
- return de_CommandError(output, context);
470
- }
471
- const data = await core$1.parseJsonBody(output.body, context);
472
- let contents = {};
473
- contents = smithyClient._json(data);
474
- const response = {
475
- $metadata: deserializeMetadata(output),
476
- ...contents,
477
- };
478
- return response;
479
- };
480
- const de_ApproveAssignmentCommand = async (output, context) => {
481
- if (output.statusCode >= 300) {
482
- return de_CommandError(output, context);
483
- }
484
- const data = await core$1.parseJsonBody(output.body, context);
485
- let contents = {};
486
- contents = smithyClient._json(data);
487
- const response = {
488
- $metadata: deserializeMetadata(output),
489
- ...contents,
490
- };
491
- return response;
492
- };
493
- const de_AssociateQualificationWithWorkerCommand = async (output, context) => {
494
- if (output.statusCode >= 300) {
495
- return de_CommandError(output, context);
496
- }
497
- const data = await core$1.parseJsonBody(output.body, context);
498
- let contents = {};
499
- contents = smithyClient._json(data);
500
- const response = {
501
- $metadata: deserializeMetadata(output),
502
- ...contents,
503
- };
504
- return response;
505
- };
506
- const de_CreateAdditionalAssignmentsForHITCommand = async (output, context) => {
507
- if (output.statusCode >= 300) {
508
- return de_CommandError(output, context);
509
- }
510
- const data = await core$1.parseJsonBody(output.body, context);
511
- let contents = {};
512
- contents = smithyClient._json(data);
513
- const response = {
514
- $metadata: deserializeMetadata(output),
515
- ...contents,
516
- };
517
- return response;
518
- };
519
- const de_CreateHITCommand = async (output, context) => {
520
- if (output.statusCode >= 300) {
521
- return de_CommandError(output, context);
522
- }
523
- const data = await core$1.parseJsonBody(output.body, context);
524
- let contents = {};
525
- contents = de_CreateHITResponse(data);
526
- const response = {
527
- $metadata: deserializeMetadata(output),
528
- ...contents,
529
- };
530
- return response;
531
- };
532
- const de_CreateHITTypeCommand = async (output, context) => {
533
- if (output.statusCode >= 300) {
534
- return de_CommandError(output, context);
535
- }
536
- const data = await core$1.parseJsonBody(output.body, context);
537
- let contents = {};
538
- contents = smithyClient._json(data);
539
- const response = {
540
- $metadata: deserializeMetadata(output),
541
- ...contents,
542
- };
543
- return response;
544
- };
545
- const de_CreateHITWithHITTypeCommand = async (output, context) => {
546
- if (output.statusCode >= 300) {
547
- return de_CommandError(output, context);
548
- }
549
- const data = await core$1.parseJsonBody(output.body, context);
550
- let contents = {};
551
- contents = de_CreateHITWithHITTypeResponse(data);
552
- const response = {
553
- $metadata: deserializeMetadata(output),
554
- ...contents,
555
- };
556
- return response;
557
- };
558
- const de_CreateQualificationTypeCommand = async (output, context) => {
559
- if (output.statusCode >= 300) {
560
- return de_CommandError(output, context);
561
- }
562
- const data = await core$1.parseJsonBody(output.body, context);
563
- let contents = {};
564
- contents = de_CreateQualificationTypeResponse(data);
565
- const response = {
566
- $metadata: deserializeMetadata(output),
567
- ...contents,
568
- };
569
- return response;
570
- };
571
- const de_CreateWorkerBlockCommand = async (output, context) => {
572
- if (output.statusCode >= 300) {
573
- return de_CommandError(output, context);
574
- }
575
- const data = await core$1.parseJsonBody(output.body, context);
576
- let contents = {};
577
- contents = smithyClient._json(data);
578
- const response = {
579
- $metadata: deserializeMetadata(output),
580
- ...contents,
581
- };
582
- return response;
583
- };
584
- const de_DeleteHITCommand = async (output, context) => {
585
- if (output.statusCode >= 300) {
586
- return de_CommandError(output, context);
587
- }
588
- const data = await core$1.parseJsonBody(output.body, context);
589
- let contents = {};
590
- contents = smithyClient._json(data);
591
- const response = {
592
- $metadata: deserializeMetadata(output),
593
- ...contents,
594
- };
595
- return response;
596
- };
597
- const de_DeleteQualificationTypeCommand = async (output, context) => {
598
- if (output.statusCode >= 300) {
599
- return de_CommandError(output, context);
600
- }
601
- const data = await core$1.parseJsonBody(output.body, context);
602
- let contents = {};
603
- contents = smithyClient._json(data);
604
- const response = {
605
- $metadata: deserializeMetadata(output),
606
- ...contents,
607
- };
608
- return response;
609
- };
610
- const de_DeleteWorkerBlockCommand = async (output, context) => {
611
- if (output.statusCode >= 300) {
612
- return de_CommandError(output, context);
613
- }
614
- const data = await core$1.parseJsonBody(output.body, context);
615
- let contents = {};
616
- contents = smithyClient._json(data);
617
- const response = {
618
- $metadata: deserializeMetadata(output),
619
- ...contents,
620
- };
621
- return response;
622
- };
623
- const de_DisassociateQualificationFromWorkerCommand = async (output, context) => {
624
- if (output.statusCode >= 300) {
625
- return de_CommandError(output, context);
626
- }
627
- const data = await core$1.parseJsonBody(output.body, context);
628
- let contents = {};
629
- contents = smithyClient._json(data);
630
- const response = {
631
- $metadata: deserializeMetadata(output),
632
- ...contents,
633
- };
634
- return response;
635
- };
636
- const de_GetAccountBalanceCommand = async (output, context) => {
637
- if (output.statusCode >= 300) {
638
- return de_CommandError(output, context);
639
- }
640
- const data = await core$1.parseJsonBody(output.body, context);
641
- let contents = {};
642
- contents = smithyClient._json(data);
643
- const response = {
644
- $metadata: deserializeMetadata(output),
645
- ...contents,
646
- };
647
- return response;
648
- };
649
- const de_GetAssignmentCommand = async (output, context) => {
650
- if (output.statusCode >= 300) {
651
- return de_CommandError(output, context);
652
- }
653
- const data = await core$1.parseJsonBody(output.body, context);
654
- let contents = {};
655
- contents = de_GetAssignmentResponse(data);
656
- const response = {
657
- $metadata: deserializeMetadata(output),
658
- ...contents,
659
- };
660
- return response;
661
- };
662
- const de_GetFileUploadURLCommand = async (output, context) => {
663
- if (output.statusCode >= 300) {
664
- return de_CommandError(output, context);
665
- }
666
- const data = await core$1.parseJsonBody(output.body, context);
667
- let contents = {};
668
- contents = smithyClient._json(data);
669
- const response = {
670
- $metadata: deserializeMetadata(output),
671
- ...contents,
672
- };
673
- return response;
674
- };
675
- const de_GetHITCommand = async (output, context) => {
676
- if (output.statusCode >= 300) {
677
- return de_CommandError(output, context);
678
- }
679
- const data = await core$1.parseJsonBody(output.body, context);
680
- let contents = {};
681
- contents = de_GetHITResponse(data);
682
- const response = {
683
- $metadata: deserializeMetadata(output),
684
- ...contents,
685
- };
686
- return response;
687
- };
688
- const de_GetQualificationScoreCommand = async (output, context) => {
689
- if (output.statusCode >= 300) {
690
- return de_CommandError(output, context);
691
- }
692
- const data = await core$1.parseJsonBody(output.body, context);
693
- let contents = {};
694
- contents = de_GetQualificationScoreResponse(data);
695
- const response = {
696
- $metadata: deserializeMetadata(output),
697
- ...contents,
698
- };
699
- return response;
700
- };
701
- const de_GetQualificationTypeCommand = async (output, context) => {
702
- if (output.statusCode >= 300) {
703
- return de_CommandError(output, context);
704
- }
705
- const data = await core$1.parseJsonBody(output.body, context);
706
- let contents = {};
707
- contents = de_GetQualificationTypeResponse(data);
708
- const response = {
709
- $metadata: deserializeMetadata(output),
710
- ...contents,
711
- };
712
- return response;
713
- };
714
- const de_ListAssignmentsForHITCommand = async (output, context) => {
715
- if (output.statusCode >= 300) {
716
- return de_CommandError(output, context);
717
- }
718
- const data = await core$1.parseJsonBody(output.body, context);
719
- let contents = {};
720
- contents = de_ListAssignmentsForHITResponse(data);
721
- const response = {
722
- $metadata: deserializeMetadata(output),
723
- ...contents,
724
- };
725
- return response;
726
- };
727
- const de_ListBonusPaymentsCommand = async (output, context) => {
728
- if (output.statusCode >= 300) {
729
- return de_CommandError(output, context);
730
- }
731
- const data = await core$1.parseJsonBody(output.body, context);
732
- let contents = {};
733
- contents = de_ListBonusPaymentsResponse(data);
734
- const response = {
735
- $metadata: deserializeMetadata(output),
736
- ...contents,
737
- };
738
- return response;
739
- };
740
- const de_ListHITsCommand = async (output, context) => {
741
- if (output.statusCode >= 300) {
742
- return de_CommandError(output, context);
743
- }
744
- const data = await core$1.parseJsonBody(output.body, context);
745
- let contents = {};
746
- contents = de_ListHITsResponse(data);
747
- const response = {
748
- $metadata: deserializeMetadata(output),
749
- ...contents,
750
- };
751
- return response;
752
- };
753
- const de_ListHITsForQualificationTypeCommand = async (output, context) => {
754
- if (output.statusCode >= 300) {
755
- return de_CommandError(output, context);
756
- }
757
- const data = await core$1.parseJsonBody(output.body, context);
758
- let contents = {};
759
- contents = de_ListHITsForQualificationTypeResponse(data);
760
- const response = {
761
- $metadata: deserializeMetadata(output),
762
- ...contents,
763
- };
764
- return response;
765
- };
766
- const de_ListQualificationRequestsCommand = async (output, context) => {
767
- if (output.statusCode >= 300) {
768
- return de_CommandError(output, context);
769
- }
770
- const data = await core$1.parseJsonBody(output.body, context);
771
- let contents = {};
772
- contents = de_ListQualificationRequestsResponse(data);
773
- const response = {
774
- $metadata: deserializeMetadata(output),
775
- ...contents,
776
- };
777
- return response;
778
- };
779
- const de_ListQualificationTypesCommand = async (output, context) => {
780
- if (output.statusCode >= 300) {
781
- return de_CommandError(output, context);
782
- }
783
- const data = await core$1.parseJsonBody(output.body, context);
784
- let contents = {};
785
- contents = de_ListQualificationTypesResponse(data);
786
- const response = {
787
- $metadata: deserializeMetadata(output),
788
- ...contents,
789
- };
790
- return response;
791
- };
792
- const de_ListReviewableHITsCommand = async (output, context) => {
793
- if (output.statusCode >= 300) {
794
- return de_CommandError(output, context);
795
- }
796
- const data = await core$1.parseJsonBody(output.body, context);
797
- let contents = {};
798
- contents = de_ListReviewableHITsResponse(data);
799
- const response = {
800
- $metadata: deserializeMetadata(output),
801
- ...contents,
802
- };
803
- return response;
804
- };
805
- const de_ListReviewPolicyResultsForHITCommand = async (output, context) => {
806
- if (output.statusCode >= 300) {
807
- return de_CommandError(output, context);
808
- }
809
- const data = await core$1.parseJsonBody(output.body, context);
810
- let contents = {};
811
- contents = de_ListReviewPolicyResultsForHITResponse(data);
812
- const response = {
813
- $metadata: deserializeMetadata(output),
814
- ...contents,
815
- };
816
- return response;
817
- };
818
- const de_ListWorkerBlocksCommand = async (output, context) => {
819
- if (output.statusCode >= 300) {
820
- return de_CommandError(output, context);
821
- }
822
- const data = await core$1.parseJsonBody(output.body, context);
823
- let contents = {};
824
- contents = smithyClient._json(data);
825
- const response = {
826
- $metadata: deserializeMetadata(output),
827
- ...contents,
828
- };
829
- return response;
830
- };
831
- const de_ListWorkersWithQualificationTypeCommand = async (output, context) => {
832
- if (output.statusCode >= 300) {
833
- return de_CommandError(output, context);
834
- }
835
- const data = await core$1.parseJsonBody(output.body, context);
836
- let contents = {};
837
- contents = de_ListWorkersWithQualificationTypeResponse(data);
838
- const response = {
839
- $metadata: deserializeMetadata(output),
840
- ...contents,
841
- };
842
- return response;
843
- };
844
- const de_NotifyWorkersCommand = async (output, context) => {
845
- if (output.statusCode >= 300) {
846
- return de_CommandError(output, context);
847
- }
848
- const data = await core$1.parseJsonBody(output.body, context);
849
- let contents = {};
850
- contents = smithyClient._json(data);
851
- const response = {
852
- $metadata: deserializeMetadata(output),
853
- ...contents,
854
- };
855
- return response;
856
- };
857
- const de_RejectAssignmentCommand = async (output, context) => {
858
- if (output.statusCode >= 300) {
859
- return de_CommandError(output, context);
860
- }
861
- const data = await core$1.parseJsonBody(output.body, context);
862
- let contents = {};
863
- contents = smithyClient._json(data);
864
- const response = {
865
- $metadata: deserializeMetadata(output),
866
- ...contents,
867
- };
868
- return response;
869
- };
870
- const de_RejectQualificationRequestCommand = async (output, context) => {
871
- if (output.statusCode >= 300) {
872
- return de_CommandError(output, context);
873
- }
874
- const data = await core$1.parseJsonBody(output.body, context);
875
- let contents = {};
876
- contents = smithyClient._json(data);
877
- const response = {
878
- $metadata: deserializeMetadata(output),
879
- ...contents,
880
- };
881
- return response;
882
- };
883
- const de_SendBonusCommand = async (output, context) => {
884
- if (output.statusCode >= 300) {
885
- return de_CommandError(output, context);
886
- }
887
- const data = await core$1.parseJsonBody(output.body, context);
888
- let contents = {};
889
- contents = smithyClient._json(data);
890
- const response = {
891
- $metadata: deserializeMetadata(output),
892
- ...contents,
893
- };
894
- return response;
895
- };
896
- const de_SendTestEventNotificationCommand = async (output, context) => {
897
- if (output.statusCode >= 300) {
898
- return de_CommandError(output, context);
899
- }
900
- const data = await core$1.parseJsonBody(output.body, context);
901
- let contents = {};
902
- contents = smithyClient._json(data);
903
- const response = {
904
- $metadata: deserializeMetadata(output),
905
- ...contents,
906
- };
907
- return response;
908
- };
909
- const de_UpdateExpirationForHITCommand = async (output, context) => {
910
- if (output.statusCode >= 300) {
911
- return de_CommandError(output, context);
912
- }
913
- const data = await core$1.parseJsonBody(output.body, context);
914
- let contents = {};
915
- contents = smithyClient._json(data);
916
- const response = {
917
- $metadata: deserializeMetadata(output),
918
- ...contents,
919
- };
920
- return response;
921
- };
922
- const de_UpdateHITReviewStatusCommand = async (output, context) => {
923
- if (output.statusCode >= 300) {
924
- return de_CommandError(output, context);
925
- }
926
- const data = await core$1.parseJsonBody(output.body, context);
927
- let contents = {};
928
- contents = smithyClient._json(data);
929
- const response = {
930
- $metadata: deserializeMetadata(output),
931
- ...contents,
932
- };
933
- return response;
934
- };
935
- const de_UpdateHITTypeOfHITCommand = async (output, context) => {
936
- if (output.statusCode >= 300) {
937
- return de_CommandError(output, context);
938
- }
939
- const data = await core$1.parseJsonBody(output.body, context);
940
- let contents = {};
941
- contents = smithyClient._json(data);
942
- const response = {
943
- $metadata: deserializeMetadata(output),
944
- ...contents,
945
- };
946
- return response;
947
- };
948
- const de_UpdateNotificationSettingsCommand = async (output, context) => {
949
- if (output.statusCode >= 300) {
950
- return de_CommandError(output, context);
951
- }
952
- const data = await core$1.parseJsonBody(output.body, context);
953
- let contents = {};
954
- contents = smithyClient._json(data);
955
- const response = {
956
- $metadata: deserializeMetadata(output),
957
- ...contents,
958
- };
959
- return response;
960
- };
961
- const de_UpdateQualificationTypeCommand = async (output, context) => {
962
- if (output.statusCode >= 300) {
963
- return de_CommandError(output, context);
964
- }
965
- const data = await core$1.parseJsonBody(output.body, context);
966
- let contents = {};
967
- contents = de_UpdateQualificationTypeResponse(data);
968
- const response = {
969
- $metadata: deserializeMetadata(output),
970
- ...contents,
971
- };
972
- return response;
973
- };
974
- const de_CommandError = async (output, context) => {
975
- const parsedOutput = {
976
- ...output,
977
- body: await core$1.parseJsonErrorBody(output.body, context),
978
- };
979
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
980
- switch (errorCode) {
981
- case "RequestError":
982
- case "com.amazonaws.mturk#RequestError":
983
- throw await de_RequestErrorRes(parsedOutput);
984
- case "ServiceFault":
985
- case "com.amazonaws.mturk#ServiceFault":
986
- throw await de_ServiceFaultRes(parsedOutput);
987
- default:
988
- const parsedBody = parsedOutput.body;
989
- return throwDefaultError({
990
- output,
991
- parsedBody,
992
- errorCode,
993
- });
994
- }
995
- };
996
- const de_RequestErrorRes = async (parsedOutput, context) => {
997
- const body = parsedOutput.body;
998
- const deserialized = smithyClient._json(body);
999
- const exception = new RequestError({
1000
- $metadata: deserializeMetadata(parsedOutput),
1001
- ...deserialized,
1002
- });
1003
- return smithyClient.decorateServiceException(exception, body);
1004
- };
1005
- const de_ServiceFaultRes = async (parsedOutput, context) => {
1006
- const body = parsedOutput.body;
1007
- const deserialized = smithyClient._json(body);
1008
- const exception = new ServiceFault({
1009
- $metadata: deserializeMetadata(parsedOutput),
1010
- ...deserialized,
1011
- });
1012
- return smithyClient.decorateServiceException(exception, body);
1013
- };
1014
- const se_UpdateExpirationForHITRequest = (input, context) => {
1015
- return smithyClient.take(input, {
1016
- ExpireAt: (_) => _.getTime() / 1_000,
1017
- HITId: [],
1018
- });
1019
- };
1020
- const de_Assignment = (output, context) => {
1021
- return smithyClient.take(output, {
1022
- AcceptTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1023
- Answer: smithyClient.expectString,
1024
- ApprovalTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1025
- AssignmentId: smithyClient.expectString,
1026
- AssignmentStatus: smithyClient.expectString,
1027
- AutoApprovalTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1028
- Deadline: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1029
- HITId: smithyClient.expectString,
1030
- RejectionTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1031
- RequesterFeedback: smithyClient.expectString,
1032
- SubmitTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1033
- WorkerId: smithyClient.expectString,
1034
- });
1035
- };
1036
- const de_AssignmentList = (output, context) => {
1037
- const retVal = (output || [])
1038
- .filter((e) => e != null)
1039
- .map((entry) => {
1040
- return de_Assignment(entry);
1041
- });
1042
- return retVal;
1043
- };
1044
- const de_BonusPayment = (output, context) => {
1045
- return smithyClient.take(output, {
1046
- AssignmentId: smithyClient.expectString,
1047
- BonusAmount: smithyClient.expectString,
1048
- GrantTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1049
- Reason: smithyClient.expectString,
1050
- WorkerId: smithyClient.expectString,
1051
- });
1052
- };
1053
- const de_BonusPaymentList = (output, context) => {
1054
- const retVal = (output || [])
1055
- .filter((e) => e != null)
1056
- .map((entry) => {
1057
- return de_BonusPayment(entry);
1058
- });
1059
- return retVal;
1060
- };
1061
- const de_CreateHITResponse = (output, context) => {
1062
- return smithyClient.take(output, {
1063
- HIT: (_) => de_HIT(_),
1064
- });
1065
- };
1066
- const de_CreateHITWithHITTypeResponse = (output, context) => {
1067
- return smithyClient.take(output, {
1068
- HIT: (_) => de_HIT(_),
1069
- });
1070
- };
1071
- const de_CreateQualificationTypeResponse = (output, context) => {
1072
- return smithyClient.take(output, {
1073
- QualificationType: (_) => de_QualificationType(_),
1074
- });
1075
- };
1076
- const de_GetAssignmentResponse = (output, context) => {
1077
- return smithyClient.take(output, {
1078
- Assignment: (_) => de_Assignment(_),
1079
- HIT: (_) => de_HIT(_),
1080
- });
1081
- };
1082
- const de_GetHITResponse = (output, context) => {
1083
- return smithyClient.take(output, {
1084
- HIT: (_) => de_HIT(_),
1085
- });
1086
- };
1087
- const de_GetQualificationScoreResponse = (output, context) => {
1088
- return smithyClient.take(output, {
1089
- Qualification: (_) => de_Qualification(_),
1090
- });
1091
- };
1092
- const de_GetQualificationTypeResponse = (output, context) => {
1093
- return smithyClient.take(output, {
1094
- QualificationType: (_) => de_QualificationType(_),
1095
- });
1096
- };
1097
- const de_HIT = (output, context) => {
1098
- return smithyClient.take(output, {
1099
- AssignmentDurationInSeconds: smithyClient.expectLong,
1100
- AutoApprovalDelayInSeconds: smithyClient.expectLong,
1101
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1102
- Description: smithyClient.expectString,
1103
- Expiration: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1104
- HITGroupId: smithyClient.expectString,
1105
- HITId: smithyClient.expectString,
1106
- HITLayoutId: smithyClient.expectString,
1107
- HITReviewStatus: smithyClient.expectString,
1108
- HITStatus: smithyClient.expectString,
1109
- HITTypeId: smithyClient.expectString,
1110
- Keywords: smithyClient.expectString,
1111
- MaxAssignments: smithyClient.expectInt32,
1112
- NumberOfAssignmentsAvailable: smithyClient.expectInt32,
1113
- NumberOfAssignmentsCompleted: smithyClient.expectInt32,
1114
- NumberOfAssignmentsPending: smithyClient.expectInt32,
1115
- QualificationRequirements: smithyClient._json,
1116
- Question: smithyClient.expectString,
1117
- RequesterAnnotation: smithyClient.expectString,
1118
- Reward: smithyClient.expectString,
1119
- Title: smithyClient.expectString,
1120
- });
1121
- };
1122
- const de_HITList = (output, context) => {
1123
- const retVal = (output || [])
1124
- .filter((e) => e != null)
1125
- .map((entry) => {
1126
- return de_HIT(entry);
1127
- });
1128
- return retVal;
1129
- };
1130
- const de_ListAssignmentsForHITResponse = (output, context) => {
1131
- return smithyClient.take(output, {
1132
- Assignments: (_) => de_AssignmentList(_),
1133
- NextToken: smithyClient.expectString,
1134
- NumResults: smithyClient.expectInt32,
1135
- });
1136
- };
1137
- const de_ListBonusPaymentsResponse = (output, context) => {
1138
- return smithyClient.take(output, {
1139
- BonusPayments: (_) => de_BonusPaymentList(_),
1140
- NextToken: smithyClient.expectString,
1141
- NumResults: smithyClient.expectInt32,
1142
- });
1143
- };
1144
- const de_ListHITsForQualificationTypeResponse = (output, context) => {
1145
- return smithyClient.take(output, {
1146
- HITs: (_) => de_HITList(_),
1147
- NextToken: smithyClient.expectString,
1148
- NumResults: smithyClient.expectInt32,
1149
- });
1150
- };
1151
- const de_ListHITsResponse = (output, context) => {
1152
- return smithyClient.take(output, {
1153
- HITs: (_) => de_HITList(_),
1154
- NextToken: smithyClient.expectString,
1155
- NumResults: smithyClient.expectInt32,
1156
- });
1157
- };
1158
- const de_ListQualificationRequestsResponse = (output, context) => {
1159
- return smithyClient.take(output, {
1160
- NextToken: smithyClient.expectString,
1161
- NumResults: smithyClient.expectInt32,
1162
- QualificationRequests: (_) => de_QualificationRequestList(_),
1163
- });
1164
- };
1165
- const de_ListQualificationTypesResponse = (output, context) => {
1166
- return smithyClient.take(output, {
1167
- NextToken: smithyClient.expectString,
1168
- NumResults: smithyClient.expectInt32,
1169
- QualificationTypes: (_) => de_QualificationTypeList(_),
1170
- });
1171
- };
1172
- const de_ListReviewableHITsResponse = (output, context) => {
1173
- return smithyClient.take(output, {
1174
- HITs: (_) => de_HITList(_),
1175
- NextToken: smithyClient.expectString,
1176
- NumResults: smithyClient.expectInt32,
1177
- });
1178
- };
1179
- const de_ListReviewPolicyResultsForHITResponse = (output, context) => {
1180
- return smithyClient.take(output, {
1181
- AssignmentReviewPolicy: smithyClient._json,
1182
- AssignmentReviewReport: (_) => de_ReviewReport(_),
1183
- HITId: smithyClient.expectString,
1184
- HITReviewPolicy: smithyClient._json,
1185
- HITReviewReport: (_) => de_ReviewReport(_),
1186
- NextToken: smithyClient.expectString,
1187
- });
1188
- };
1189
- const de_ListWorkersWithQualificationTypeResponse = (output, context) => {
1190
- return smithyClient.take(output, {
1191
- NextToken: smithyClient.expectString,
1192
- NumResults: smithyClient.expectInt32,
1193
- Qualifications: (_) => de_QualificationList(_),
1194
- });
1195
- };
1196
- const de_Qualification = (output, context) => {
1197
- return smithyClient.take(output, {
1198
- GrantTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1199
- IntegerValue: smithyClient.expectInt32,
1200
- LocaleValue: smithyClient._json,
1201
- QualificationTypeId: smithyClient.expectString,
1202
- Status: smithyClient.expectString,
1203
- WorkerId: smithyClient.expectString,
1204
- });
1205
- };
1206
- const de_QualificationList = (output, context) => {
1207
- const retVal = (output || [])
1208
- .filter((e) => e != null)
1209
- .map((entry) => {
1210
- return de_Qualification(entry);
1211
- });
1212
- return retVal;
1213
- };
1214
- const de_QualificationRequest = (output, context) => {
1215
- return smithyClient.take(output, {
1216
- Answer: smithyClient.expectString,
1217
- QualificationRequestId: smithyClient.expectString,
1218
- QualificationTypeId: smithyClient.expectString,
1219
- SubmitTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1220
- Test: smithyClient.expectString,
1221
- WorkerId: smithyClient.expectString,
1222
- });
1223
- };
1224
- const de_QualificationRequestList = (output, context) => {
1225
- const retVal = (output || [])
1226
- .filter((e) => e != null)
1227
- .map((entry) => {
1228
- return de_QualificationRequest(entry);
1229
- });
1230
- return retVal;
1231
- };
1232
- const de_QualificationType = (output, context) => {
1233
- return smithyClient.take(output, {
1234
- AnswerKey: smithyClient.expectString,
1235
- AutoGranted: smithyClient.expectBoolean,
1236
- AutoGrantedValue: smithyClient.expectInt32,
1237
- CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1238
- Description: smithyClient.expectString,
1239
- IsRequestable: smithyClient.expectBoolean,
1240
- Keywords: smithyClient.expectString,
1241
- Name: smithyClient.expectString,
1242
- QualificationTypeId: smithyClient.expectString,
1243
- QualificationTypeStatus: smithyClient.expectString,
1244
- RetryDelayInSeconds: smithyClient.expectLong,
1245
- Test: smithyClient.expectString,
1246
- TestDurationInSeconds: smithyClient.expectLong,
1247
- });
1248
- };
1249
- const de_QualificationTypeList = (output, context) => {
1250
- const retVal = (output || [])
1251
- .filter((e) => e != null)
1252
- .map((entry) => {
1253
- return de_QualificationType(entry);
1254
- });
1255
- return retVal;
1256
- };
1257
- const de_ReviewActionDetail = (output, context) => {
1258
- return smithyClient.take(output, {
1259
- ActionId: smithyClient.expectString,
1260
- ActionName: smithyClient.expectString,
1261
- CompleteTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1262
- ErrorCode: smithyClient.expectString,
1263
- Result: smithyClient.expectString,
1264
- Status: smithyClient.expectString,
1265
- TargetId: smithyClient.expectString,
1266
- TargetType: smithyClient.expectString,
1267
- });
1268
- };
1269
- const de_ReviewActionDetailList = (output, context) => {
1270
- const retVal = (output || [])
1271
- .filter((e) => e != null)
1272
- .map((entry) => {
1273
- return de_ReviewActionDetail(entry);
1274
- });
1275
- return retVal;
1276
- };
1277
- const de_ReviewReport = (output, context) => {
1278
- return smithyClient.take(output, {
1279
- ReviewActions: (_) => de_ReviewActionDetailList(_),
1280
- ReviewResults: smithyClient._json,
1281
- });
1282
- };
1283
- const de_UpdateQualificationTypeResponse = (output, context) => {
1284
- return smithyClient.take(output, {
1285
- QualificationType: (_) => de_QualificationType(_),
1286
- });
1287
- };
1288
- const deserializeMetadata = (output) => ({
1289
- httpStatusCode: output.statusCode,
1290
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1291
- extendedRequestId: output.headers["x-amz-id-2"],
1292
- cfId: output.headers["x-amz-cf-id"],
1293
- });
1294
- const throwDefaultError = smithyClient.withBaseException(MTurkServiceException);
1295
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1296
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1297
- const contents = {
1298
- protocol,
1299
- hostname,
1300
- port,
1301
- method: "POST",
1302
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1303
- headers,
1304
- };
1305
- if (body !== undefined) {
1306
- contents.body = body;
1307
- }
1308
- return new protocolHttp.HttpRequest(contents);
1309
- };
1310
- function sharedHeaders(operation) {
1311
- return {
1312
- "content-type": "application/x-amz-json-1.1",
1313
- "x-amz-target": `MTurkRequesterServiceV20170117.${operation}`,
1314
- };
1315
- }
233
+ const _A = "Assignment";
234
+ const _AA = "ApproveAssignment";
235
+ const _AADIS = "AutoApprovalDelayInSeconds";
236
+ const _AAR = "ApproveAssignmentRequest";
237
+ const _AARp = "ApproveAssignmentResponse";
238
+ const _AAT = "AutoApprovalTime";
239
+ const _AB = "AvailableBalance";
240
+ const _ADIS = "AssignmentDurationInSeconds";
241
+ const _AG = "AutoGranted";
242
+ const _AGV = "AutoGrantedValue";
243
+ const _AGc = "ActionsGuarded";
244
+ const _AI = "AssignmentId";
245
+ const _AIc = "ActionId";
246
+ const _AK = "AnswerKey";
247
+ const _AL = "AssignmentList";
248
+ const _AN = "ActionName";
249
+ const _AQR = "AcceptQualificationRequest";
250
+ const _AQRR = "AcceptQualificationRequestRequest";
251
+ const _AQRRc = "AcceptQualificationRequestResponse";
252
+ const _AQWW = "AssociateQualificationWithWorker";
253
+ const _AQWWR = "AssociateQualificationWithWorkerRequest";
254
+ const _AQWWRs = "AssociateQualificationWithWorkerResponse";
255
+ const _ARP = "AssignmentReviewPolicy";
256
+ const _ARR = "AssignmentReviewReport";
257
+ const _AS = "AssignmentStatus";
258
+ const _ASs = "AssignmentStatuses";
259
+ const _AT = "AcceptTime";
260
+ const _ATp = "ApprovalTime";
261
+ const _Ac = "Active";
262
+ const _An = "Answer";
263
+ const _As = "Assignments";
264
+ const _BA = "BonusAmount";
265
+ const _BP = "BonusPayment";
266
+ const _BPL = "BonusPaymentList";
267
+ const _BPo = "BonusPayments";
268
+ const _C = "Country";
269
+ const _CAAFHIT = "CreateAdditionalAssignmentsForHIT";
270
+ const _CAAFHITR = "CreateAdditionalAssignmentsForHITRequest";
271
+ const _CAAFHITRr = "CreateAdditionalAssignmentsForHITResponse";
272
+ const _CHIT = "CreateHIT";
273
+ const _CHITR = "CreateHITRequest";
274
+ const _CHITRr = "CreateHITResponse";
275
+ const _CHITT = "CreateHITType";
276
+ const _CHITTR = "CreateHITTypeRequest";
277
+ const _CHITTRr = "CreateHITTypeResponse";
278
+ const _CHITWHITT = "CreateHITWithHITType";
279
+ const _CHITWHITTR = "CreateHITWithHITTypeRequest";
280
+ const _CHITWHITTRr = "CreateHITWithHITTypeResponse";
281
+ const _CQT = "CreateQualificationType";
282
+ const _CQTR = "CreateQualificationTypeRequest";
283
+ const _CQTRr = "CreateQualificationTypeResponse";
284
+ const _CT = "CreationTime";
285
+ const _CTo = "CompleteTime";
286
+ const _CWB = "CreateWorkerBlock";
287
+ const _CWBR = "CreateWorkerBlockRequest";
288
+ const _CWBRr = "CreateWorkerBlockResponse";
289
+ const _Co = "Comparator";
290
+ const _D = "Deadline";
291
+ const _DHIT = "DeleteHIT";
292
+ const _DHITR = "DeleteHITRequest";
293
+ const _DHITRe = "DeleteHITResponse";
294
+ const _DQFW = "DisassociateQualificationFromWorker";
295
+ const _DQFWR = "DisassociateQualificationFromWorkerRequest";
296
+ const _DQFWRi = "DisassociateQualificationFromWorkerResponse";
297
+ const _DQT = "DeleteQualificationType";
298
+ const _DQTR = "DeleteQualificationTypeRequest";
299
+ const _DQTRe = "DeleteQualificationTypeResponse";
300
+ const _DWB = "DeleteWorkerBlock";
301
+ const _DWBR = "DeleteWorkerBlockRequest";
302
+ const _DWBRe = "DeleteWorkerBlockResponse";
303
+ const _De = "Description";
304
+ const _Des = "Destination";
305
+ const _E = "Expiration";
306
+ const _EA = "ExpireAt";
307
+ const _EC = "ErrorCode";
308
+ const _ET = "EventTypes";
309
+ const _FUURL = "FileUploadURL";
310
+ const _GA = "GetAssignment";
311
+ const _GAB = "GetAccountBalance";
312
+ const _GABR = "GetAccountBalanceRequest";
313
+ const _GABRe = "GetAccountBalanceResponse";
314
+ const _GAR = "GetAssignmentRequest";
315
+ const _GARe = "GetAssignmentResponse";
316
+ const _GFUURL = "GetFileUploadURL";
317
+ const _GFUURLR = "GetFileUploadURLRequest";
318
+ const _GFUURLRe = "GetFileUploadURLResponse";
319
+ const _GHIT = "GetHIT";
320
+ const _GHITR = "GetHITRequest";
321
+ const _GHITRe = "GetHITResponse";
322
+ const _GQS = "GetQualificationScore";
323
+ const _GQSR = "GetQualificationScoreRequest";
324
+ const _GQSRe = "GetQualificationScoreResponse";
325
+ const _GQT = "GetQualificationType";
326
+ const _GQTR = "GetQualificationTypeRequest";
327
+ const _GQTRe = "GetQualificationTypeResponse";
328
+ const _GT = "GrantTime";
329
+ const _HIT = "HIT";
330
+ const _HITGI = "HITGroupId";
331
+ const _HITI = "HITId";
332
+ const _HITL = "HITList";
333
+ const _HITLI = "HITLayoutId";
334
+ const _HITLP = "HITLayoutParameters";
335
+ const _HITLPL = "HITLayoutParameterList";
336
+ const _HITLPa = "HITLayoutParameter";
337
+ const _HITRP = "HITReviewPolicy";
338
+ const _HITRR = "HITReviewReport";
339
+ const _HITRS = "HITReviewStatus";
340
+ const _HITS = "HITStatus";
341
+ const _HITTI = "HITTypeId";
342
+ const _HITs = "HITs";
343
+ const _IR = "IsRequestable";
344
+ const _IV = "IntegerValue";
345
+ const _IVn = "IntegerValues";
346
+ const _K = "Keywords";
347
+ const _Ke = "Key";
348
+ const _L = "Locale";
349
+ const _LAFHIT = "ListAssignmentsForHIT";
350
+ const _LAFHITR = "ListAssignmentsForHITRequest";
351
+ const _LAFHITRi = "ListAssignmentsForHITResponse";
352
+ const _LBP = "ListBonusPayments";
353
+ const _LBPR = "ListBonusPaymentsRequest";
354
+ const _LBPRi = "ListBonusPaymentsResponse";
355
+ const _LHIT = "ListHITs";
356
+ const _LHITFQT = "ListHITsForQualificationType";
357
+ const _LHITFQTR = "ListHITsForQualificationTypeRequest";
358
+ const _LHITFQTRi = "ListHITsForQualificationTypeResponse";
359
+ const _LHITR = "ListHITsRequest";
360
+ const _LHITRi = "ListHITsResponse";
361
+ const _LIS = "LifetimeInSeconds";
362
+ const _LL = "LocaleList";
363
+ const _LQR = "ListQualificationRequests";
364
+ const _LQRR = "ListQualificationRequestsRequest";
365
+ const _LQRRi = "ListQualificationRequestsResponse";
366
+ const _LQT = "ListQualificationTypes";
367
+ const _LQTR = "ListQualificationTypesRequest";
368
+ const _LQTRi = "ListQualificationTypesResponse";
369
+ const _LRHIT = "ListReviewableHITs";
370
+ const _LRHITR = "ListReviewableHITsRequest";
371
+ const _LRHITRi = "ListReviewableHITsResponse";
372
+ const _LRPRFHIT = "ListReviewPolicyResultsForHIT";
373
+ const _LRPRFHITR = "ListReviewPolicyResultsForHITRequest";
374
+ const _LRPRFHITRi = "ListReviewPolicyResultsForHITResponse";
375
+ const _LV = "LocaleValue";
376
+ const _LVo = "LocaleValues";
377
+ const _LWB = "ListWorkerBlocks";
378
+ const _LWBR = "ListWorkerBlocksRequest";
379
+ const _LWBRi = "ListWorkerBlocksResponse";
380
+ const _LWWQT = "ListWorkersWithQualificationType";
381
+ const _LWWQTR = "ListWorkersWithQualificationTypeRequest";
382
+ const _LWWQTRi = "ListWorkersWithQualificationTypeResponse";
383
+ const _M = "Message";
384
+ const _MA = "MaxAssignments";
385
+ const _MBOBC = "MustBeOwnedByCaller";
386
+ const _MBR = "MustBeRequestable";
387
+ const _ME = "MapEntries";
388
+ const _MR = "MaxResults";
389
+ const _MT = "MessageText";
390
+ const _N = "Name";
391
+ const _NOAA = "NumberOfAdditionalAssignments";
392
+ const _NOAAu = "NumberOfAssignmentsAvailable";
393
+ const _NOAC = "NumberOfAssignmentsCompleted";
394
+ const _NOAP = "NumberOfAssignmentsPending";
395
+ const _NR = "NumResults";
396
+ const _NS = "NotificationSpecification";
397
+ const _NT = "NextToken";
398
+ const _NW = "NotifyWorkers";
399
+ const _NWFC = "NotifyWorkersFailureCode";
400
+ const _NWFM = "NotifyWorkersFailureMessage";
401
+ const _NWFS = "NotifyWorkersFailureStatus";
402
+ const _NWFSL = "NotifyWorkersFailureStatusList";
403
+ const _NWFSo = "NotifyWorkersFailureStatuses";
404
+ const _NWR = "NotifyWorkersRequest";
405
+ const _NWRo = "NotifyWorkersResponse";
406
+ const _No = "Notification";
407
+ const _OHB = "OnHoldBalance";
408
+ const _OR = "OverrideRejection";
409
+ const _P = "Parameters";
410
+ const _PL = "PolicyLevels";
411
+ const _PME = "ParameterMapEntry";
412
+ const _PMEL = "ParameterMapEntryList";
413
+ const _PN = "PolicyName";
414
+ const _PP = "PolicyParameter";
415
+ const _PPL = "PolicyParameterList";
416
+ const _Q = "Question";
417
+ const _QI = "QuestionIdentifier";
418
+ const _QIu = "QuestionId";
419
+ const _QL = "QualificationList";
420
+ const _QR = "QualificationRequirements";
421
+ const _QRI = "QualificationRequestId";
422
+ const _QRL = "QualificationRequestList";
423
+ const _QRLu = "QualificationRequirementList";
424
+ const _QRu = "QualificationRequests";
425
+ const _QRua = "QualificationRequest";
426
+ const _QRual = "QualificationRequirement";
427
+ const _QT = "QualificationType";
428
+ const _QTI = "QualificationTypeId";
429
+ const _QTL = "QualificationTypeList";
430
+ const _QTS = "QualificationTypeStatus";
431
+ const _QTu = "QualificationTypes";
432
+ const _Qu = "Qualification";
433
+ const _Qua = "Qualifications";
434
+ const _Que = "Query";
435
+ const _R = "Reason";
436
+ const _RA = "RequesterAnnotation";
437
+ const _RAD = "ReviewActionDetail";
438
+ const _RADL = "ReviewActionDetailList";
439
+ const _RAR = "RejectAssignmentRequest";
440
+ const _RARe = "RejectAssignmentResponse";
441
+ const _RAe = "RetrieveActions";
442
+ const _RAej = "RejectAssignment";
443
+ const _RAev = "ReviewActions";
444
+ const _RDIS = "RetryDelayInSeconds";
445
+ const _RE = "RequestError";
446
+ const _RF = "RequesterFeedback";
447
+ const _RP = "ReviewPolicy";
448
+ const _RQR = "RejectQualificationRequest";
449
+ const _RQRR = "RejectQualificationRequestRequest";
450
+ const _RQRRe = "RejectQualificationRequestResponse";
451
+ const _RR = "RetrieveResults";
452
+ const _RRD = "ReviewResultDetail";
453
+ const _RRDL = "ReviewResultDetailList";
454
+ const _RRe = "ReviewReport";
455
+ const _RRev = "ReviewResults";
456
+ const _RT = "RejectionTime";
457
+ const _RTP = "RequiredToPreview";
458
+ const _Re = "Reward";
459
+ const _Res = "Result";
460
+ const _Rev = "Revert";
461
+ const _S = "Status";
462
+ const _SB = "SendBonus";
463
+ const _SBR = "SendBonusRequest";
464
+ const _SBRe = "SendBonusResponse";
465
+ const _SF = "ServiceFault";
466
+ const _SI = "SubjectId";
467
+ const _SN = "SendNotification";
468
+ const _ST = "SubmitTime";
469
+ const _STEN = "SendTestEventNotification";
470
+ const _STENR = "SendTestEventNotificationRequest";
471
+ const _STENRe = "SendTestEventNotificationResponse";
472
+ const _STu = "SubjectType";
473
+ const _Su = "Subdivision";
474
+ const _Sub = "Subject";
475
+ const _T = "Title";
476
+ const _TDIS = "TestDurationInSeconds";
477
+ const _TEC = "TurkErrorCode";
478
+ const _TET = "TestEventType";
479
+ const _TI = "TargetId";
480
+ const _TT = "TargetType";
481
+ const _Te = "Test";
482
+ const _Tr = "Transport";
483
+ const _UEFHIT = "UpdateExpirationForHIT";
484
+ const _UEFHITR = "UpdateExpirationForHITRequest";
485
+ const _UEFHITRp = "UpdateExpirationForHITResponse";
486
+ const _UHITRS = "UpdateHITReviewStatus";
487
+ const _UHITRSR = "UpdateHITReviewStatusRequest";
488
+ const _UHITRSRp = "UpdateHITReviewStatusResponse";
489
+ const _UHITTOHIT = "UpdateHITTypeOfHIT";
490
+ const _UHITTOHITR = "UpdateHITTypeOfHITRequest";
491
+ const _UHITTOHITRp = "UpdateHITTypeOfHITResponse";
492
+ const _UNS = "UpdateNotificationSettings";
493
+ const _UNSR = "UpdateNotificationSettingsRequest";
494
+ const _UNSRp = "UpdateNotificationSettingsResponse";
495
+ const _UQT = "UpdateQualificationType";
496
+ const _UQTR = "UpdateQualificationTypeRequest";
497
+ const _UQTRp = "UpdateQualificationTypeResponse";
498
+ const _URT = "UniqueRequestToken";
499
+ const _V = "Value";
500
+ const _Va = "Values";
501
+ const _Ve = "Version";
502
+ const _WB = "WorkerBlocks";
503
+ const _WBL = "WorkerBlockList";
504
+ const _WBo = "WorkerBlock";
505
+ const _WI = "WorkerId";
506
+ const _WIo = "WorkerIds";
507
+ const _aQE = "awsQueryError";
508
+ const _c = "client";
509
+ const _e = "error";
510
+ const _hE = "httpError";
511
+ const _s = "server";
512
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.mturk";
513
+ const n0 = "com.amazonaws.mturk";
514
+ var AcceptQualificationRequestRequest = [3, n0, _AQRR, 0, [_QRI, _IV], [0, 1]];
515
+ var AcceptQualificationRequestResponse = [3, n0, _AQRRc, 0, [], []];
516
+ var ApproveAssignmentRequest = [3, n0, _AAR, 0, [_AI, _RF, _OR], [0, 0, 2]];
517
+ var ApproveAssignmentResponse = [3, n0, _AARp, 0, [], []];
518
+ var Assignment = [
519
+ 3,
520
+ n0,
521
+ _A,
522
+ 0,
523
+ [_AI, _WI, _HITI, _AS, _AAT, _AT, _ST, _ATp, _RT, _D, _An, _RF],
524
+ [0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 0, 0],
525
+ ];
526
+ var AssociateQualificationWithWorkerRequest = [
527
+ 3,
528
+ n0,
529
+ _AQWWR,
530
+ 0,
531
+ [_QTI, _WI, _IV, _SN],
532
+ [0, 0, 1, 2],
533
+ ];
534
+ var AssociateQualificationWithWorkerResponse = [3, n0, _AQWWRs, 0, [], []];
535
+ var BonusPayment = [3, n0, _BP, 0, [_WI, _BA, _AI, _R, _GT], [0, 0, 0, 0, 4]];
536
+ var CreateAdditionalAssignmentsForHITRequest = [
537
+ 3,
538
+ n0,
539
+ _CAAFHITR,
540
+ 0,
541
+ [_HITI, _NOAA, _URT],
542
+ [0, 1, 0],
543
+ ];
544
+ var CreateAdditionalAssignmentsForHITResponse = [3, n0, _CAAFHITRr, 0, [], []];
545
+ var CreateHITRequest = [
546
+ 3,
547
+ n0,
548
+ _CHITR,
549
+ 0,
550
+ [_MA, _AADIS, _LIS, _ADIS, _Re, _T, _K, _De, _Q, _RA, _QR, _URT, _ARP, _HITRP, _HITLI, _HITLP],
551
+ [
552
+ 1,
553
+ 1,
554
+ 1,
555
+ 1,
556
+ 0,
557
+ 0,
558
+ 0,
559
+ 0,
560
+ 0,
561
+ 0,
562
+ () => QualificationRequirementList,
563
+ 0,
564
+ () => ReviewPolicy,
565
+ () => ReviewPolicy,
566
+ 0,
567
+ () => HITLayoutParameterList,
568
+ ],
569
+ ];
570
+ var CreateHITResponse = [3, n0, _CHITRr, 0, [_HIT], [() => HIT]];
571
+ var CreateHITTypeRequest = [
572
+ 3,
573
+ n0,
574
+ _CHITTR,
575
+ 0,
576
+ [_AADIS, _ADIS, _Re, _T, _K, _De, _QR],
577
+ [1, 1, 0, 0, 0, 0, () => QualificationRequirementList],
578
+ ];
579
+ var CreateHITTypeResponse = [3, n0, _CHITTRr, 0, [_HITTI], [0]];
580
+ var CreateHITWithHITTypeRequest = [
581
+ 3,
582
+ n0,
583
+ _CHITWHITTR,
584
+ 0,
585
+ [_HITTI, _MA, _LIS, _Q, _RA, _URT, _ARP, _HITRP, _HITLI, _HITLP],
586
+ [0, 1, 1, 0, 0, 0, () => ReviewPolicy, () => ReviewPolicy, 0, () => HITLayoutParameterList],
587
+ ];
588
+ var CreateHITWithHITTypeResponse = [3, n0, _CHITWHITTRr, 0, [_HIT], [() => HIT]];
589
+ var CreateQualificationTypeRequest = [
590
+ 3,
591
+ n0,
592
+ _CQTR,
593
+ 0,
594
+ [_N, _K, _De, _QTS, _RDIS, _Te, _AK, _TDIS, _AG, _AGV],
595
+ [0, 0, 0, 0, 1, 0, 0, 1, 2, 1],
596
+ ];
597
+ var CreateQualificationTypeResponse = [
598
+ 3,
599
+ n0,
600
+ _CQTRr,
601
+ 0,
602
+ [_QT],
603
+ [() => QualificationType],
604
+ ];
605
+ var CreateWorkerBlockRequest = [3, n0, _CWBR, 0, [_WI, _R], [0, 0]];
606
+ var CreateWorkerBlockResponse = [3, n0, _CWBRr, 0, [], []];
607
+ var DeleteHITRequest = [3, n0, _DHITR, 0, [_HITI], [0]];
608
+ var DeleteHITResponse = [3, n0, _DHITRe, 0, [], []];
609
+ var DeleteQualificationTypeRequest = [3, n0, _DQTR, 0, [_QTI], [0]];
610
+ var DeleteQualificationTypeResponse = [3, n0, _DQTRe, 0, [], []];
611
+ var DeleteWorkerBlockRequest = [3, n0, _DWBR, 0, [_WI, _R], [0, 0]];
612
+ var DeleteWorkerBlockResponse = [3, n0, _DWBRe, 0, [], []];
613
+ var DisassociateQualificationFromWorkerRequest = [
614
+ 3,
615
+ n0,
616
+ _DQFWR,
617
+ 0,
618
+ [_WI, _QTI, _R],
619
+ [0, 0, 0],
620
+ ];
621
+ var DisassociateQualificationFromWorkerResponse = [3, n0, _DQFWRi, 0, [], []];
622
+ var GetAccountBalanceRequest = [3, n0, _GABR, 0, [], []];
623
+ var GetAccountBalanceResponse = [3, n0, _GABRe, 0, [_AB, _OHB], [0, 0]];
624
+ var GetAssignmentRequest = [3, n0, _GAR, 0, [_AI], [0]];
625
+ var GetAssignmentResponse = [3, n0, _GARe, 0, [_A, _HIT], [() => Assignment, () => HIT]];
626
+ var GetFileUploadURLRequest = [3, n0, _GFUURLR, 0, [_AI, _QI], [0, 0]];
627
+ var GetFileUploadURLResponse = [3, n0, _GFUURLRe, 0, [_FUURL], [0]];
628
+ var GetHITRequest = [3, n0, _GHITR, 0, [_HITI], [0]];
629
+ var GetHITResponse = [3, n0, _GHITRe, 0, [_HIT], [() => HIT]];
630
+ var GetQualificationScoreRequest = [3, n0, _GQSR, 0, [_QTI, _WI], [0, 0]];
631
+ var GetQualificationScoreResponse = [3, n0, _GQSRe, 0, [_Qu], [() => Qualification]];
632
+ var GetQualificationTypeRequest = [3, n0, _GQTR, 0, [_QTI], [0]];
633
+ var GetQualificationTypeResponse = [3, n0, _GQTRe, 0, [_QT], [() => QualificationType]];
634
+ var HIT = [
635
+ 3,
636
+ n0,
637
+ _HIT,
638
+ 0,
639
+ [
640
+ _HITI,
641
+ _HITTI,
642
+ _HITGI,
643
+ _HITLI,
644
+ _CT,
645
+ _T,
646
+ _De,
647
+ _Q,
648
+ _K,
649
+ _HITS,
650
+ _MA,
651
+ _Re,
652
+ _AADIS,
653
+ _E,
654
+ _ADIS,
655
+ _RA,
656
+ _QR,
657
+ _HITRS,
658
+ _NOAP,
659
+ _NOAAu,
660
+ _NOAC,
661
+ ],
662
+ [0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 1, 0, 1, 4, 1, 0, () => QualificationRequirementList, 0, 1, 1, 1],
663
+ ];
664
+ var HITLayoutParameter = [3, n0, _HITLPa, 0, [_N, _V], [0, 0]];
665
+ var ListAssignmentsForHITRequest = [
666
+ 3,
667
+ n0,
668
+ _LAFHITR,
669
+ 0,
670
+ [_HITI, _NT, _MR, _ASs],
671
+ [0, 0, 1, 64 | 0],
672
+ ];
673
+ var ListAssignmentsForHITResponse = [
674
+ 3,
675
+ n0,
676
+ _LAFHITRi,
677
+ 0,
678
+ [_NT, _NR, _As],
679
+ [0, 1, () => AssignmentList],
680
+ ];
681
+ var ListBonusPaymentsRequest = [3, n0, _LBPR, 0, [_HITI, _AI, _NT, _MR], [0, 0, 0, 1]];
682
+ var ListBonusPaymentsResponse = [
683
+ 3,
684
+ n0,
685
+ _LBPRi,
686
+ 0,
687
+ [_NR, _NT, _BPo],
688
+ [1, 0, () => BonusPaymentList],
689
+ ];
690
+ var ListHITsForQualificationTypeRequest = [
691
+ 3,
692
+ n0,
693
+ _LHITFQTR,
694
+ 0,
695
+ [_QTI, _NT, _MR],
696
+ [0, 0, 1],
697
+ ];
698
+ var ListHITsForQualificationTypeResponse = [
699
+ 3,
700
+ n0,
701
+ _LHITFQTRi,
702
+ 0,
703
+ [_NT, _NR, _HITs],
704
+ [0, 1, () => HITList],
705
+ ];
706
+ var ListHITsRequest = [3, n0, _LHITR, 0, [_NT, _MR], [0, 1]];
707
+ var ListHITsResponse = [3, n0, _LHITRi, 0, [_NT, _NR, _HITs], [0, 1, () => HITList]];
708
+ var ListQualificationRequestsRequest = [3, n0, _LQRR, 0, [_QTI, _NT, _MR], [0, 0, 1]];
709
+ var ListQualificationRequestsResponse = [
710
+ 3,
711
+ n0,
712
+ _LQRRi,
713
+ 0,
714
+ [_NR, _NT, _QRu],
715
+ [1, 0, () => QualificationRequestList],
716
+ ];
717
+ var ListQualificationTypesRequest = [
718
+ 3,
719
+ n0,
720
+ _LQTR,
721
+ 0,
722
+ [_Que, _MBR, _MBOBC, _NT, _MR],
723
+ [0, 2, 2, 0, 1],
724
+ ];
725
+ var ListQualificationTypesResponse = [
726
+ 3,
727
+ n0,
728
+ _LQTRi,
729
+ 0,
730
+ [_NR, _NT, _QTu],
731
+ [1, 0, () => QualificationTypeList],
732
+ ];
733
+ var ListReviewableHITsRequest = [3, n0, _LRHITR, 0, [_HITTI, _S, _NT, _MR], [0, 0, 0, 1]];
734
+ var ListReviewableHITsResponse = [
735
+ 3,
736
+ n0,
737
+ _LRHITRi,
738
+ 0,
739
+ [_NT, _NR, _HITs],
740
+ [0, 1, () => HITList],
741
+ ];
742
+ var ListReviewPolicyResultsForHITRequest = [
743
+ 3,
744
+ n0,
745
+ _LRPRFHITR,
746
+ 0,
747
+ [_HITI, _PL, _RAe, _RR, _NT, _MR],
748
+ [0, 64 | 0, 2, 2, 0, 1],
749
+ ];
750
+ var ListReviewPolicyResultsForHITResponse = [
751
+ 3,
752
+ n0,
753
+ _LRPRFHITRi,
754
+ 0,
755
+ [_HITI, _ARP, _HITRP, _ARR, _HITRR, _NT],
756
+ [0, () => ReviewPolicy, () => ReviewPolicy, () => ReviewReport, () => ReviewReport, 0],
757
+ ];
758
+ var ListWorkerBlocksRequest = [3, n0, _LWBR, 0, [_NT, _MR], [0, 1]];
759
+ var ListWorkerBlocksResponse = [
760
+ 3,
761
+ n0,
762
+ _LWBRi,
763
+ 0,
764
+ [_NT, _NR, _WB],
765
+ [0, 1, () => WorkerBlockList],
766
+ ];
767
+ var ListWorkersWithQualificationTypeRequest = [
768
+ 3,
769
+ n0,
770
+ _LWWQTR,
771
+ 0,
772
+ [_QTI, _S, _NT, _MR],
773
+ [0, 0, 0, 1],
774
+ ];
775
+ var ListWorkersWithQualificationTypeResponse = [
776
+ 3,
777
+ n0,
778
+ _LWWQTRi,
779
+ 0,
780
+ [_NT, _NR, _Qua],
781
+ [0, 1, () => QualificationList],
782
+ ];
783
+ var Locale = [3, n0, _L, 0, [_C, _Su], [0, 0]];
784
+ var NotificationSpecification = [3, n0, _NS, 0, [_Des, _Tr, _Ve, _ET], [0, 0, 0, 64 | 0]];
785
+ var NotifyWorkersFailureStatus = [3, n0, _NWFS, 0, [_NWFC, _NWFM, _WI], [0, 0, 0]];
786
+ var NotifyWorkersRequest = [3, n0, _NWR, 0, [_Sub, _MT, _WIo], [0, 0, 64 | 0]];
787
+ var NotifyWorkersResponse = [
788
+ 3,
789
+ n0,
790
+ _NWRo,
791
+ 0,
792
+ [_NWFSo],
793
+ [() => NotifyWorkersFailureStatusList],
794
+ ];
795
+ var ParameterMapEntry = [3, n0, _PME, 0, [_Ke, _Va], [0, 64 | 0]];
796
+ var PolicyParameter = [
797
+ 3,
798
+ n0,
799
+ _PP,
800
+ 0,
801
+ [_Ke, _Va, _ME],
802
+ [0, 64 | 0, () => ParameterMapEntryList],
803
+ ];
804
+ var Qualification = [
805
+ 3,
806
+ n0,
807
+ _Qu,
808
+ 0,
809
+ [_QTI, _WI, _GT, _IV, _LV, _S],
810
+ [0, 0, 4, 1, () => Locale, 0],
811
+ ];
812
+ var QualificationRequest = [
813
+ 3,
814
+ n0,
815
+ _QRua,
816
+ 0,
817
+ [_QRI, _QTI, _WI, _Te, _An, _ST],
818
+ [0, 0, 0, 0, 0, 4],
819
+ ];
820
+ var QualificationRequirement = [
821
+ 3,
822
+ n0,
823
+ _QRual,
824
+ 0,
825
+ [_QTI, _Co, _IVn, _LVo, _RTP, _AGc],
826
+ [0, 0, 64 | 1, () => LocaleList, 2, 0],
827
+ ];
828
+ var QualificationType = [
829
+ 3,
830
+ n0,
831
+ _QT,
832
+ 0,
833
+ [_QTI, _CT, _N, _De, _K, _QTS, _Te, _TDIS, _AK, _RDIS, _IR, _AG, _AGV],
834
+ [0, 4, 0, 0, 0, 0, 0, 1, 0, 1, 2, 2, 1],
835
+ ];
836
+ var RejectAssignmentRequest = [3, n0, _RAR, 0, [_AI, _RF], [0, 0]];
837
+ var RejectAssignmentResponse = [3, n0, _RARe, 0, [], []];
838
+ var RejectQualificationRequestRequest = [3, n0, _RQRR, 0, [_QRI, _R], [0, 0]];
839
+ var RejectQualificationRequestResponse = [3, n0, _RQRRe, 0, [], []];
840
+ var RequestError = [
841
+ -3,
842
+ n0,
843
+ _RE,
844
+ {
845
+ [_e]: _c,
846
+ [_hE]: 400,
847
+ [_aQE]: [`RequestError`, 400],
848
+ },
849
+ [_M, _TEC],
850
+ [0, 0],
851
+ ];
852
+ schema.TypeRegistry.for(n0).registerError(RequestError, RequestError$1);
853
+ var ReviewActionDetail = [
854
+ 3,
855
+ n0,
856
+ _RAD,
857
+ 0,
858
+ [_AIc, _AN, _TI, _TT, _S, _CTo, _Res, _EC],
859
+ [0, 0, 0, 0, 0, 4, 0, 0],
860
+ ];
861
+ var ReviewPolicy = [3, n0, _RP, 0, [_PN, _P], [0, () => PolicyParameterList]];
862
+ var ReviewReport = [
863
+ 3,
864
+ n0,
865
+ _RRe,
866
+ 0,
867
+ [_RRev, _RAev],
868
+ [() => ReviewResultDetailList, () => ReviewActionDetailList],
869
+ ];
870
+ var ReviewResultDetail = [
871
+ 3,
872
+ n0,
873
+ _RRD,
874
+ 0,
875
+ [_AIc, _SI, _STu, _QIu, _Ke, _V],
876
+ [0, 0, 0, 0, 0, 0],
877
+ ];
878
+ var SendBonusRequest = [3, n0, _SBR, 0, [_WI, _BA, _AI, _R, _URT], [0, 0, 0, 0, 0]];
879
+ var SendBonusResponse = [3, n0, _SBRe, 0, [], []];
880
+ var SendTestEventNotificationRequest = [
881
+ 3,
882
+ n0,
883
+ _STENR,
884
+ 0,
885
+ [_No, _TET],
886
+ [() => NotificationSpecification, 0],
887
+ ];
888
+ var SendTestEventNotificationResponse = [3, n0, _STENRe, 0, [], []];
889
+ var ServiceFault = [
890
+ -3,
891
+ n0,
892
+ _SF,
893
+ {
894
+ [_e]: _s,
895
+ [_hE]: 500,
896
+ [_aQE]: [`ServiceFault`, 500],
897
+ },
898
+ [_M, _TEC],
899
+ [0, 0],
900
+ ];
901
+ schema.TypeRegistry.for(n0).registerError(ServiceFault, ServiceFault$1);
902
+ var UpdateExpirationForHITRequest = [3, n0, _UEFHITR, 0, [_HITI, _EA], [0, 4]];
903
+ var UpdateExpirationForHITResponse = [3, n0, _UEFHITRp, 0, [], []];
904
+ var UpdateHITReviewStatusRequest = [3, n0, _UHITRSR, 0, [_HITI, _Rev], [0, 2]];
905
+ var UpdateHITReviewStatusResponse = [3, n0, _UHITRSRp, 0, [], []];
906
+ var UpdateHITTypeOfHITRequest = [3, n0, _UHITTOHITR, 0, [_HITI, _HITTI], [0, 0]];
907
+ var UpdateHITTypeOfHITResponse = [3, n0, _UHITTOHITRp, 0, [], []];
908
+ var UpdateNotificationSettingsRequest = [
909
+ 3,
910
+ n0,
911
+ _UNSR,
912
+ 0,
913
+ [_HITTI, _No, _Ac],
914
+ [0, () => NotificationSpecification, 2],
915
+ ];
916
+ var UpdateNotificationSettingsResponse = [3, n0, _UNSRp, 0, [], []];
917
+ var UpdateQualificationTypeRequest = [
918
+ 3,
919
+ n0,
920
+ _UQTR,
921
+ 0,
922
+ [_QTI, _De, _QTS, _Te, _AK, _TDIS, _RDIS, _AG, _AGV],
923
+ [0, 0, 0, 0, 0, 1, 1, 2, 1],
924
+ ];
925
+ var UpdateQualificationTypeResponse = [
926
+ 3,
927
+ n0,
928
+ _UQTRp,
929
+ 0,
930
+ [_QT],
931
+ [() => QualificationType],
932
+ ];
933
+ var WorkerBlock = [3, n0, _WBo, 0, [_WI, _R], [0, 0]];
934
+ var MTurkServiceException = [-3, _sm, "MTurkServiceException", 0, [], []];
935
+ schema.TypeRegistry.for(_sm).registerError(MTurkServiceException, MTurkServiceException$1);
936
+ var AssignmentList = [1, n0, _AL, 0, () => Assignment];
937
+ var BonusPaymentList = [1, n0, _BPL, 0, () => BonusPayment];
938
+ var HITLayoutParameterList = [1, n0, _HITLPL, 0, () => HITLayoutParameter];
939
+ var HITList = [1, n0, _HITL, 0, () => HIT];
940
+ var LocaleList = [1, n0, _LL, 0, () => Locale];
941
+ var NotifyWorkersFailureStatusList = [1, n0, _NWFSL, 0, () => NotifyWorkersFailureStatus];
942
+ var ParameterMapEntryList = [1, n0, _PMEL, 0, () => ParameterMapEntry];
943
+ var PolicyParameterList = [1, n0, _PPL, 0, () => PolicyParameter];
944
+ var QualificationList = [1, n0, _QL, 0, () => Qualification];
945
+ var QualificationRequestList = [1, n0, _QRL, 0, () => QualificationRequest];
946
+ var QualificationRequirementList = [1, n0, _QRLu, 0, () => QualificationRequirement];
947
+ var QualificationTypeList = [1, n0, _QTL, 0, () => QualificationType];
948
+ var ReviewActionDetailList = [1, n0, _RADL, 0, () => ReviewActionDetail];
949
+ var ReviewResultDetailList = [1, n0, _RRDL, 0, () => ReviewResultDetail];
950
+ var WorkerBlockList = [1, n0, _WBL, 0, () => WorkerBlock];
951
+ var AcceptQualificationRequest = [
952
+ 9,
953
+ n0,
954
+ _AQR,
955
+ 0,
956
+ () => AcceptQualificationRequestRequest,
957
+ () => AcceptQualificationRequestResponse,
958
+ ];
959
+ var ApproveAssignment = [
960
+ 9,
961
+ n0,
962
+ _AA,
963
+ 2,
964
+ () => ApproveAssignmentRequest,
965
+ () => ApproveAssignmentResponse,
966
+ ];
967
+ var AssociateQualificationWithWorker = [
968
+ 9,
969
+ n0,
970
+ _AQWW,
971
+ 0,
972
+ () => AssociateQualificationWithWorkerRequest,
973
+ () => AssociateQualificationWithWorkerResponse,
974
+ ];
975
+ var CreateAdditionalAssignmentsForHIT = [
976
+ 9,
977
+ n0,
978
+ _CAAFHIT,
979
+ 0,
980
+ () => CreateAdditionalAssignmentsForHITRequest,
981
+ () => CreateAdditionalAssignmentsForHITResponse,
982
+ ];
983
+ var CreateHIT = [9, n0, _CHIT, 0, () => CreateHITRequest, () => CreateHITResponse];
984
+ var CreateHITType = [
985
+ 9,
986
+ n0,
987
+ _CHITT,
988
+ 2,
989
+ () => CreateHITTypeRequest,
990
+ () => CreateHITTypeResponse,
991
+ ];
992
+ var CreateHITWithHITType = [
993
+ 9,
994
+ n0,
995
+ _CHITWHITT,
996
+ 0,
997
+ () => CreateHITWithHITTypeRequest,
998
+ () => CreateHITWithHITTypeResponse,
999
+ ];
1000
+ var CreateQualificationType = [
1001
+ 9,
1002
+ n0,
1003
+ _CQT,
1004
+ 0,
1005
+ () => CreateQualificationTypeRequest,
1006
+ () => CreateQualificationTypeResponse,
1007
+ ];
1008
+ var CreateWorkerBlock = [
1009
+ 9,
1010
+ n0,
1011
+ _CWB,
1012
+ 0,
1013
+ () => CreateWorkerBlockRequest,
1014
+ () => CreateWorkerBlockResponse,
1015
+ ];
1016
+ var DeleteHIT = [9, n0, _DHIT, 2, () => DeleteHITRequest, () => DeleteHITResponse];
1017
+ var DeleteQualificationType = [
1018
+ 9,
1019
+ n0,
1020
+ _DQT,
1021
+ 2,
1022
+ () => DeleteQualificationTypeRequest,
1023
+ () => DeleteQualificationTypeResponse,
1024
+ ];
1025
+ var DeleteWorkerBlock = [
1026
+ 9,
1027
+ n0,
1028
+ _DWB,
1029
+ 2,
1030
+ () => DeleteWorkerBlockRequest,
1031
+ () => DeleteWorkerBlockResponse,
1032
+ ];
1033
+ var DisassociateQualificationFromWorker = [
1034
+ 9,
1035
+ n0,
1036
+ _DQFW,
1037
+ 0,
1038
+ () => DisassociateQualificationFromWorkerRequest,
1039
+ () => DisassociateQualificationFromWorkerResponse,
1040
+ ];
1041
+ var GetAccountBalance = [
1042
+ 9,
1043
+ n0,
1044
+ _GAB,
1045
+ 2,
1046
+ () => GetAccountBalanceRequest,
1047
+ () => GetAccountBalanceResponse,
1048
+ ];
1049
+ var GetAssignment = [
1050
+ 9,
1051
+ n0,
1052
+ _GA,
1053
+ 2,
1054
+ () => GetAssignmentRequest,
1055
+ () => GetAssignmentResponse,
1056
+ ];
1057
+ var GetFileUploadURL = [
1058
+ 9,
1059
+ n0,
1060
+ _GFUURL,
1061
+ 2,
1062
+ () => GetFileUploadURLRequest,
1063
+ () => GetFileUploadURLResponse,
1064
+ ];
1065
+ var GetHIT = [9, n0, _GHIT, 2, () => GetHITRequest, () => GetHITResponse];
1066
+ var GetQualificationScore = [
1067
+ 9,
1068
+ n0,
1069
+ _GQS,
1070
+ 2,
1071
+ () => GetQualificationScoreRequest,
1072
+ () => GetQualificationScoreResponse,
1073
+ ];
1074
+ var GetQualificationType = [
1075
+ 9,
1076
+ n0,
1077
+ _GQT,
1078
+ 2,
1079
+ () => GetQualificationTypeRequest,
1080
+ () => GetQualificationTypeResponse,
1081
+ ];
1082
+ var ListAssignmentsForHIT = [
1083
+ 9,
1084
+ n0,
1085
+ _LAFHIT,
1086
+ 2,
1087
+ () => ListAssignmentsForHITRequest,
1088
+ () => ListAssignmentsForHITResponse,
1089
+ ];
1090
+ var ListBonusPayments = [
1091
+ 9,
1092
+ n0,
1093
+ _LBP,
1094
+ 2,
1095
+ () => ListBonusPaymentsRequest,
1096
+ () => ListBonusPaymentsResponse,
1097
+ ];
1098
+ var ListHITs = [9, n0, _LHIT, 2, () => ListHITsRequest, () => ListHITsResponse];
1099
+ var ListHITsForQualificationType = [
1100
+ 9,
1101
+ n0,
1102
+ _LHITFQT,
1103
+ 2,
1104
+ () => ListHITsForQualificationTypeRequest,
1105
+ () => ListHITsForQualificationTypeResponse,
1106
+ ];
1107
+ var ListQualificationRequests = [
1108
+ 9,
1109
+ n0,
1110
+ _LQR,
1111
+ 2,
1112
+ () => ListQualificationRequestsRequest,
1113
+ () => ListQualificationRequestsResponse,
1114
+ ];
1115
+ var ListQualificationTypes = [
1116
+ 9,
1117
+ n0,
1118
+ _LQT,
1119
+ 2,
1120
+ () => ListQualificationTypesRequest,
1121
+ () => ListQualificationTypesResponse,
1122
+ ];
1123
+ var ListReviewableHITs = [
1124
+ 9,
1125
+ n0,
1126
+ _LRHIT,
1127
+ 2,
1128
+ () => ListReviewableHITsRequest,
1129
+ () => ListReviewableHITsResponse,
1130
+ ];
1131
+ var ListReviewPolicyResultsForHIT = [
1132
+ 9,
1133
+ n0,
1134
+ _LRPRFHIT,
1135
+ 2,
1136
+ () => ListReviewPolicyResultsForHITRequest,
1137
+ () => ListReviewPolicyResultsForHITResponse,
1138
+ ];
1139
+ var ListWorkerBlocks = [
1140
+ 9,
1141
+ n0,
1142
+ _LWB,
1143
+ 2,
1144
+ () => ListWorkerBlocksRequest,
1145
+ () => ListWorkerBlocksResponse,
1146
+ ];
1147
+ var ListWorkersWithQualificationType = [
1148
+ 9,
1149
+ n0,
1150
+ _LWWQT,
1151
+ 2,
1152
+ () => ListWorkersWithQualificationTypeRequest,
1153
+ () => ListWorkersWithQualificationTypeResponse,
1154
+ ];
1155
+ var NotifyWorkers = [
1156
+ 9,
1157
+ n0,
1158
+ _NW,
1159
+ 0,
1160
+ () => NotifyWorkersRequest,
1161
+ () => NotifyWorkersResponse,
1162
+ ];
1163
+ var RejectAssignment = [
1164
+ 9,
1165
+ n0,
1166
+ _RAej,
1167
+ 2,
1168
+ () => RejectAssignmentRequest,
1169
+ () => RejectAssignmentResponse,
1170
+ ];
1171
+ var RejectQualificationRequest = [
1172
+ 9,
1173
+ n0,
1174
+ _RQR,
1175
+ 0,
1176
+ () => RejectQualificationRequestRequest,
1177
+ () => RejectQualificationRequestResponse,
1178
+ ];
1179
+ var SendBonus = [9, n0, _SB, 0, () => SendBonusRequest, () => SendBonusResponse];
1180
+ var SendTestEventNotification = [
1181
+ 9,
1182
+ n0,
1183
+ _STEN,
1184
+ 0,
1185
+ () => SendTestEventNotificationRequest,
1186
+ () => SendTestEventNotificationResponse,
1187
+ ];
1188
+ var UpdateExpirationForHIT = [
1189
+ 9,
1190
+ n0,
1191
+ _UEFHIT,
1192
+ 2,
1193
+ () => UpdateExpirationForHITRequest,
1194
+ () => UpdateExpirationForHITResponse,
1195
+ ];
1196
+ var UpdateHITReviewStatus = [
1197
+ 9,
1198
+ n0,
1199
+ _UHITRS,
1200
+ 2,
1201
+ () => UpdateHITReviewStatusRequest,
1202
+ () => UpdateHITReviewStatusResponse,
1203
+ ];
1204
+ var UpdateHITTypeOfHIT = [
1205
+ 9,
1206
+ n0,
1207
+ _UHITTOHIT,
1208
+ 2,
1209
+ () => UpdateHITTypeOfHITRequest,
1210
+ () => UpdateHITTypeOfHITResponse,
1211
+ ];
1212
+ var UpdateNotificationSettings = [
1213
+ 9,
1214
+ n0,
1215
+ _UNS,
1216
+ 2,
1217
+ () => UpdateNotificationSettingsRequest,
1218
+ () => UpdateNotificationSettingsResponse,
1219
+ ];
1220
+ var UpdateQualificationType = [
1221
+ 9,
1222
+ n0,
1223
+ _UQT,
1224
+ 0,
1225
+ () => UpdateQualificationTypeRequest,
1226
+ () => UpdateQualificationTypeResponse,
1227
+ ];
1316
1228
 
1317
1229
  class AcceptQualificationRequestCommand extends smithyClient.Command
1318
1230
  .classBuilder()
1319
1231
  .ep(commonParams)
1320
1232
  .m(function (Command, cs, config, o) {
1321
- return [
1322
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1323
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1324
- ];
1233
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1325
1234
  })
1326
1235
  .s("MTurkRequesterServiceV20170117", "AcceptQualificationRequest", {})
1327
1236
  .n("MTurkClient", "AcceptQualificationRequestCommand")
1328
- .f(void 0, void 0)
1329
- .ser(se_AcceptQualificationRequestCommand)
1330
- .de(de_AcceptQualificationRequestCommand)
1237
+ .sc(AcceptQualificationRequest)
1331
1238
  .build() {
1332
1239
  }
1333
1240
 
@@ -1335,16 +1242,11 @@ class ApproveAssignmentCommand extends smithyClient.Command
1335
1242
  .classBuilder()
1336
1243
  .ep(commonParams)
1337
1244
  .m(function (Command, cs, config, o) {
1338
- return [
1339
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1340
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1341
- ];
1245
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1342
1246
  })
1343
1247
  .s("MTurkRequesterServiceV20170117", "ApproveAssignment", {})
1344
1248
  .n("MTurkClient", "ApproveAssignmentCommand")
1345
- .f(void 0, void 0)
1346
- .ser(se_ApproveAssignmentCommand)
1347
- .de(de_ApproveAssignmentCommand)
1249
+ .sc(ApproveAssignment)
1348
1250
  .build() {
1349
1251
  }
1350
1252
 
@@ -1352,16 +1254,11 @@ class AssociateQualificationWithWorkerCommand extends smithyClient.Command
1352
1254
  .classBuilder()
1353
1255
  .ep(commonParams)
1354
1256
  .m(function (Command, cs, config, o) {
1355
- return [
1356
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1357
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1358
- ];
1257
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1359
1258
  })
1360
1259
  .s("MTurkRequesterServiceV20170117", "AssociateQualificationWithWorker", {})
1361
1260
  .n("MTurkClient", "AssociateQualificationWithWorkerCommand")
1362
- .f(void 0, void 0)
1363
- .ser(se_AssociateQualificationWithWorkerCommand)
1364
- .de(de_AssociateQualificationWithWorkerCommand)
1261
+ .sc(AssociateQualificationWithWorker)
1365
1262
  .build() {
1366
1263
  }
1367
1264
 
@@ -1369,16 +1266,11 @@ class CreateAdditionalAssignmentsForHITCommand extends smithyClient.Command
1369
1266
  .classBuilder()
1370
1267
  .ep(commonParams)
1371
1268
  .m(function (Command, cs, config, o) {
1372
- return [
1373
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1374
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1375
- ];
1269
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1376
1270
  })
1377
1271
  .s("MTurkRequesterServiceV20170117", "CreateAdditionalAssignmentsForHIT", {})
1378
1272
  .n("MTurkClient", "CreateAdditionalAssignmentsForHITCommand")
1379
- .f(void 0, void 0)
1380
- .ser(se_CreateAdditionalAssignmentsForHITCommand)
1381
- .de(de_CreateAdditionalAssignmentsForHITCommand)
1273
+ .sc(CreateAdditionalAssignmentsForHIT)
1382
1274
  .build() {
1383
1275
  }
1384
1276
 
@@ -1386,16 +1278,11 @@ class CreateHITCommand extends smithyClient.Command
1386
1278
  .classBuilder()
1387
1279
  .ep(commonParams)
1388
1280
  .m(function (Command, cs, config, o) {
1389
- return [
1390
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1391
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1392
- ];
1281
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1393
1282
  })
1394
1283
  .s("MTurkRequesterServiceV20170117", "CreateHIT", {})
1395
1284
  .n("MTurkClient", "CreateHITCommand")
1396
- .f(void 0, void 0)
1397
- .ser(se_CreateHITCommand)
1398
- .de(de_CreateHITCommand)
1285
+ .sc(CreateHIT)
1399
1286
  .build() {
1400
1287
  }
1401
1288
 
@@ -1403,16 +1290,11 @@ class CreateHITTypeCommand extends smithyClient.Command
1403
1290
  .classBuilder()
1404
1291
  .ep(commonParams)
1405
1292
  .m(function (Command, cs, config, o) {
1406
- return [
1407
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1408
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1409
- ];
1293
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1410
1294
  })
1411
1295
  .s("MTurkRequesterServiceV20170117", "CreateHITType", {})
1412
1296
  .n("MTurkClient", "CreateHITTypeCommand")
1413
- .f(void 0, void 0)
1414
- .ser(se_CreateHITTypeCommand)
1415
- .de(de_CreateHITTypeCommand)
1297
+ .sc(CreateHITType)
1416
1298
  .build() {
1417
1299
  }
1418
1300
 
@@ -1420,16 +1302,11 @@ class CreateHITWithHITTypeCommand extends smithyClient.Command
1420
1302
  .classBuilder()
1421
1303
  .ep(commonParams)
1422
1304
  .m(function (Command, cs, config, o) {
1423
- return [
1424
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1425
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1426
- ];
1305
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1427
1306
  })
1428
1307
  .s("MTurkRequesterServiceV20170117", "CreateHITWithHITType", {})
1429
1308
  .n("MTurkClient", "CreateHITWithHITTypeCommand")
1430
- .f(void 0, void 0)
1431
- .ser(se_CreateHITWithHITTypeCommand)
1432
- .de(de_CreateHITWithHITTypeCommand)
1309
+ .sc(CreateHITWithHITType)
1433
1310
  .build() {
1434
1311
  }
1435
1312
 
@@ -1437,16 +1314,11 @@ class CreateQualificationTypeCommand extends smithyClient.Command
1437
1314
  .classBuilder()
1438
1315
  .ep(commonParams)
1439
1316
  .m(function (Command, cs, config, o) {
1440
- return [
1441
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1442
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1443
- ];
1317
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1444
1318
  })
1445
1319
  .s("MTurkRequesterServiceV20170117", "CreateQualificationType", {})
1446
1320
  .n("MTurkClient", "CreateQualificationTypeCommand")
1447
- .f(void 0, void 0)
1448
- .ser(se_CreateQualificationTypeCommand)
1449
- .de(de_CreateQualificationTypeCommand)
1321
+ .sc(CreateQualificationType)
1450
1322
  .build() {
1451
1323
  }
1452
1324
 
@@ -1454,16 +1326,11 @@ class CreateWorkerBlockCommand extends smithyClient.Command
1454
1326
  .classBuilder()
1455
1327
  .ep(commonParams)
1456
1328
  .m(function (Command, cs, config, o) {
1457
- return [
1458
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1459
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1460
- ];
1329
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1461
1330
  })
1462
1331
  .s("MTurkRequesterServiceV20170117", "CreateWorkerBlock", {})
1463
1332
  .n("MTurkClient", "CreateWorkerBlockCommand")
1464
- .f(void 0, void 0)
1465
- .ser(se_CreateWorkerBlockCommand)
1466
- .de(de_CreateWorkerBlockCommand)
1333
+ .sc(CreateWorkerBlock)
1467
1334
  .build() {
1468
1335
  }
1469
1336
 
@@ -1471,16 +1338,11 @@ class DeleteHITCommand extends smithyClient.Command
1471
1338
  .classBuilder()
1472
1339
  .ep(commonParams)
1473
1340
  .m(function (Command, cs, config, o) {
1474
- return [
1475
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1476
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1477
- ];
1341
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1478
1342
  })
1479
1343
  .s("MTurkRequesterServiceV20170117", "DeleteHIT", {})
1480
1344
  .n("MTurkClient", "DeleteHITCommand")
1481
- .f(void 0, void 0)
1482
- .ser(se_DeleteHITCommand)
1483
- .de(de_DeleteHITCommand)
1345
+ .sc(DeleteHIT)
1484
1346
  .build() {
1485
1347
  }
1486
1348
 
@@ -1488,16 +1350,11 @@ class DeleteQualificationTypeCommand extends smithyClient.Command
1488
1350
  .classBuilder()
1489
1351
  .ep(commonParams)
1490
1352
  .m(function (Command, cs, config, o) {
1491
- return [
1492
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1493
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1494
- ];
1353
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1495
1354
  })
1496
1355
  .s("MTurkRequesterServiceV20170117", "DeleteQualificationType", {})
1497
1356
  .n("MTurkClient", "DeleteQualificationTypeCommand")
1498
- .f(void 0, void 0)
1499
- .ser(se_DeleteQualificationTypeCommand)
1500
- .de(de_DeleteQualificationTypeCommand)
1357
+ .sc(DeleteQualificationType)
1501
1358
  .build() {
1502
1359
  }
1503
1360
 
@@ -1505,16 +1362,11 @@ class DeleteWorkerBlockCommand extends smithyClient.Command
1505
1362
  .classBuilder()
1506
1363
  .ep(commonParams)
1507
1364
  .m(function (Command, cs, config, o) {
1508
- return [
1509
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1510
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1511
- ];
1365
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1512
1366
  })
1513
1367
  .s("MTurkRequesterServiceV20170117", "DeleteWorkerBlock", {})
1514
1368
  .n("MTurkClient", "DeleteWorkerBlockCommand")
1515
- .f(void 0, void 0)
1516
- .ser(se_DeleteWorkerBlockCommand)
1517
- .de(de_DeleteWorkerBlockCommand)
1369
+ .sc(DeleteWorkerBlock)
1518
1370
  .build() {
1519
1371
  }
1520
1372
 
@@ -1522,16 +1374,11 @@ class DisassociateQualificationFromWorkerCommand extends smithyClient.Command
1522
1374
  .classBuilder()
1523
1375
  .ep(commonParams)
1524
1376
  .m(function (Command, cs, config, o) {
1525
- return [
1526
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1527
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1528
- ];
1377
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1529
1378
  })
1530
1379
  .s("MTurkRequesterServiceV20170117", "DisassociateQualificationFromWorker", {})
1531
1380
  .n("MTurkClient", "DisassociateQualificationFromWorkerCommand")
1532
- .f(void 0, void 0)
1533
- .ser(se_DisassociateQualificationFromWorkerCommand)
1534
- .de(de_DisassociateQualificationFromWorkerCommand)
1381
+ .sc(DisassociateQualificationFromWorker)
1535
1382
  .build() {
1536
1383
  }
1537
1384
 
@@ -1539,16 +1386,11 @@ class GetAccountBalanceCommand extends smithyClient.Command
1539
1386
  .classBuilder()
1540
1387
  .ep(commonParams)
1541
1388
  .m(function (Command, cs, config, o) {
1542
- return [
1543
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1544
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1545
- ];
1389
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1546
1390
  })
1547
1391
  .s("MTurkRequesterServiceV20170117", "GetAccountBalance", {})
1548
1392
  .n("MTurkClient", "GetAccountBalanceCommand")
1549
- .f(void 0, void 0)
1550
- .ser(se_GetAccountBalanceCommand)
1551
- .de(de_GetAccountBalanceCommand)
1393
+ .sc(GetAccountBalance)
1552
1394
  .build() {
1553
1395
  }
1554
1396
 
@@ -1556,16 +1398,11 @@ class GetAssignmentCommand extends smithyClient.Command
1556
1398
  .classBuilder()
1557
1399
  .ep(commonParams)
1558
1400
  .m(function (Command, cs, config, o) {
1559
- return [
1560
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1561
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1562
- ];
1401
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1563
1402
  })
1564
1403
  .s("MTurkRequesterServiceV20170117", "GetAssignment", {})
1565
1404
  .n("MTurkClient", "GetAssignmentCommand")
1566
- .f(void 0, void 0)
1567
- .ser(se_GetAssignmentCommand)
1568
- .de(de_GetAssignmentCommand)
1405
+ .sc(GetAssignment)
1569
1406
  .build() {
1570
1407
  }
1571
1408
 
@@ -1573,16 +1410,11 @@ class GetFileUploadURLCommand extends smithyClient.Command
1573
1410
  .classBuilder()
1574
1411
  .ep(commonParams)
1575
1412
  .m(function (Command, cs, config, o) {
1576
- return [
1577
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1578
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1579
- ];
1413
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1580
1414
  })
1581
1415
  .s("MTurkRequesterServiceV20170117", "GetFileUploadURL", {})
1582
1416
  .n("MTurkClient", "GetFileUploadURLCommand")
1583
- .f(void 0, void 0)
1584
- .ser(se_GetFileUploadURLCommand)
1585
- .de(de_GetFileUploadURLCommand)
1417
+ .sc(GetFileUploadURL)
1586
1418
  .build() {
1587
1419
  }
1588
1420
 
@@ -1590,16 +1422,11 @@ class GetHITCommand extends smithyClient.Command
1590
1422
  .classBuilder()
1591
1423
  .ep(commonParams)
1592
1424
  .m(function (Command, cs, config, o) {
1593
- return [
1594
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1595
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1596
- ];
1425
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1597
1426
  })
1598
1427
  .s("MTurkRequesterServiceV20170117", "GetHIT", {})
1599
1428
  .n("MTurkClient", "GetHITCommand")
1600
- .f(void 0, void 0)
1601
- .ser(se_GetHITCommand)
1602
- .de(de_GetHITCommand)
1429
+ .sc(GetHIT)
1603
1430
  .build() {
1604
1431
  }
1605
1432
 
@@ -1607,16 +1434,11 @@ class GetQualificationScoreCommand extends smithyClient.Command
1607
1434
  .classBuilder()
1608
1435
  .ep(commonParams)
1609
1436
  .m(function (Command, cs, config, o) {
1610
- return [
1611
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1612
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1613
- ];
1437
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1614
1438
  })
1615
1439
  .s("MTurkRequesterServiceV20170117", "GetQualificationScore", {})
1616
1440
  .n("MTurkClient", "GetQualificationScoreCommand")
1617
- .f(void 0, void 0)
1618
- .ser(se_GetQualificationScoreCommand)
1619
- .de(de_GetQualificationScoreCommand)
1441
+ .sc(GetQualificationScore)
1620
1442
  .build() {
1621
1443
  }
1622
1444
 
@@ -1624,16 +1446,11 @@ class GetQualificationTypeCommand extends smithyClient.Command
1624
1446
  .classBuilder()
1625
1447
  .ep(commonParams)
1626
1448
  .m(function (Command, cs, config, o) {
1627
- return [
1628
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1629
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1630
- ];
1449
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1631
1450
  })
1632
1451
  .s("MTurkRequesterServiceV20170117", "GetQualificationType", {})
1633
1452
  .n("MTurkClient", "GetQualificationTypeCommand")
1634
- .f(void 0, void 0)
1635
- .ser(se_GetQualificationTypeCommand)
1636
- .de(de_GetQualificationTypeCommand)
1453
+ .sc(GetQualificationType)
1637
1454
  .build() {
1638
1455
  }
1639
1456
 
@@ -1641,16 +1458,11 @@ class ListAssignmentsForHITCommand extends smithyClient.Command
1641
1458
  .classBuilder()
1642
1459
  .ep(commonParams)
1643
1460
  .m(function (Command, cs, config, o) {
1644
- return [
1645
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1646
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1647
- ];
1461
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1648
1462
  })
1649
1463
  .s("MTurkRequesterServiceV20170117", "ListAssignmentsForHIT", {})
1650
1464
  .n("MTurkClient", "ListAssignmentsForHITCommand")
1651
- .f(void 0, void 0)
1652
- .ser(se_ListAssignmentsForHITCommand)
1653
- .de(de_ListAssignmentsForHITCommand)
1465
+ .sc(ListAssignmentsForHIT)
1654
1466
  .build() {
1655
1467
  }
1656
1468
 
@@ -1658,16 +1470,11 @@ class ListBonusPaymentsCommand extends smithyClient.Command
1658
1470
  .classBuilder()
1659
1471
  .ep(commonParams)
1660
1472
  .m(function (Command, cs, config, o) {
1661
- return [
1662
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1663
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1664
- ];
1473
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1665
1474
  })
1666
1475
  .s("MTurkRequesterServiceV20170117", "ListBonusPayments", {})
1667
1476
  .n("MTurkClient", "ListBonusPaymentsCommand")
1668
- .f(void 0, void 0)
1669
- .ser(se_ListBonusPaymentsCommand)
1670
- .de(de_ListBonusPaymentsCommand)
1477
+ .sc(ListBonusPayments)
1671
1478
  .build() {
1672
1479
  }
1673
1480
 
@@ -1675,16 +1482,11 @@ class ListHITsCommand extends smithyClient.Command
1675
1482
  .classBuilder()
1676
1483
  .ep(commonParams)
1677
1484
  .m(function (Command, cs, config, o) {
1678
- return [
1679
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1680
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1681
- ];
1485
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1682
1486
  })
1683
1487
  .s("MTurkRequesterServiceV20170117", "ListHITs", {})
1684
1488
  .n("MTurkClient", "ListHITsCommand")
1685
- .f(void 0, void 0)
1686
- .ser(se_ListHITsCommand)
1687
- .de(de_ListHITsCommand)
1489
+ .sc(ListHITs)
1688
1490
  .build() {
1689
1491
  }
1690
1492
 
@@ -1692,16 +1494,11 @@ class ListHITsForQualificationTypeCommand extends smithyClient.Command
1692
1494
  .classBuilder()
1693
1495
  .ep(commonParams)
1694
1496
  .m(function (Command, cs, config, o) {
1695
- return [
1696
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1697
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1698
- ];
1497
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1699
1498
  })
1700
1499
  .s("MTurkRequesterServiceV20170117", "ListHITsForQualificationType", {})
1701
1500
  .n("MTurkClient", "ListHITsForQualificationTypeCommand")
1702
- .f(void 0, void 0)
1703
- .ser(se_ListHITsForQualificationTypeCommand)
1704
- .de(de_ListHITsForQualificationTypeCommand)
1501
+ .sc(ListHITsForQualificationType)
1705
1502
  .build() {
1706
1503
  }
1707
1504
 
@@ -1709,16 +1506,11 @@ class ListQualificationRequestsCommand extends smithyClient.Command
1709
1506
  .classBuilder()
1710
1507
  .ep(commonParams)
1711
1508
  .m(function (Command, cs, config, o) {
1712
- return [
1713
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1714
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1715
- ];
1509
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1716
1510
  })
1717
1511
  .s("MTurkRequesterServiceV20170117", "ListQualificationRequests", {})
1718
1512
  .n("MTurkClient", "ListQualificationRequestsCommand")
1719
- .f(void 0, void 0)
1720
- .ser(se_ListQualificationRequestsCommand)
1721
- .de(de_ListQualificationRequestsCommand)
1513
+ .sc(ListQualificationRequests)
1722
1514
  .build() {
1723
1515
  }
1724
1516
 
@@ -1726,16 +1518,11 @@ class ListQualificationTypesCommand extends smithyClient.Command
1726
1518
  .classBuilder()
1727
1519
  .ep(commonParams)
1728
1520
  .m(function (Command, cs, config, o) {
1729
- return [
1730
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1731
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1732
- ];
1521
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1733
1522
  })
1734
1523
  .s("MTurkRequesterServiceV20170117", "ListQualificationTypes", {})
1735
1524
  .n("MTurkClient", "ListQualificationTypesCommand")
1736
- .f(void 0, void 0)
1737
- .ser(se_ListQualificationTypesCommand)
1738
- .de(de_ListQualificationTypesCommand)
1525
+ .sc(ListQualificationTypes)
1739
1526
  .build() {
1740
1527
  }
1741
1528
 
@@ -1743,16 +1530,11 @@ class ListReviewableHITsCommand extends smithyClient.Command
1743
1530
  .classBuilder()
1744
1531
  .ep(commonParams)
1745
1532
  .m(function (Command, cs, config, o) {
1746
- return [
1747
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1748
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1749
- ];
1533
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1750
1534
  })
1751
1535
  .s("MTurkRequesterServiceV20170117", "ListReviewableHITs", {})
1752
1536
  .n("MTurkClient", "ListReviewableHITsCommand")
1753
- .f(void 0, void 0)
1754
- .ser(se_ListReviewableHITsCommand)
1755
- .de(de_ListReviewableHITsCommand)
1537
+ .sc(ListReviewableHITs)
1756
1538
  .build() {
1757
1539
  }
1758
1540
 
@@ -1760,16 +1542,11 @@ class ListReviewPolicyResultsForHITCommand extends smithyClient.Command
1760
1542
  .classBuilder()
1761
1543
  .ep(commonParams)
1762
1544
  .m(function (Command, cs, config, o) {
1763
- return [
1764
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1765
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1766
- ];
1545
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1767
1546
  })
1768
1547
  .s("MTurkRequesterServiceV20170117", "ListReviewPolicyResultsForHIT", {})
1769
1548
  .n("MTurkClient", "ListReviewPolicyResultsForHITCommand")
1770
- .f(void 0, void 0)
1771
- .ser(se_ListReviewPolicyResultsForHITCommand)
1772
- .de(de_ListReviewPolicyResultsForHITCommand)
1549
+ .sc(ListReviewPolicyResultsForHIT)
1773
1550
  .build() {
1774
1551
  }
1775
1552
 
@@ -1777,16 +1554,11 @@ class ListWorkerBlocksCommand extends smithyClient.Command
1777
1554
  .classBuilder()
1778
1555
  .ep(commonParams)
1779
1556
  .m(function (Command, cs, config, o) {
1780
- return [
1781
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1782
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1783
- ];
1557
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1784
1558
  })
1785
1559
  .s("MTurkRequesterServiceV20170117", "ListWorkerBlocks", {})
1786
1560
  .n("MTurkClient", "ListWorkerBlocksCommand")
1787
- .f(void 0, void 0)
1788
- .ser(se_ListWorkerBlocksCommand)
1789
- .de(de_ListWorkerBlocksCommand)
1561
+ .sc(ListWorkerBlocks)
1790
1562
  .build() {
1791
1563
  }
1792
1564
 
@@ -1794,16 +1566,11 @@ class ListWorkersWithQualificationTypeCommand extends smithyClient.Command
1794
1566
  .classBuilder()
1795
1567
  .ep(commonParams)
1796
1568
  .m(function (Command, cs, config, o) {
1797
- return [
1798
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1799
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1800
- ];
1569
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1801
1570
  })
1802
1571
  .s("MTurkRequesterServiceV20170117", "ListWorkersWithQualificationType", {})
1803
1572
  .n("MTurkClient", "ListWorkersWithQualificationTypeCommand")
1804
- .f(void 0, void 0)
1805
- .ser(se_ListWorkersWithQualificationTypeCommand)
1806
- .de(de_ListWorkersWithQualificationTypeCommand)
1573
+ .sc(ListWorkersWithQualificationType)
1807
1574
  .build() {
1808
1575
  }
1809
1576
 
@@ -1811,16 +1578,11 @@ class NotifyWorkersCommand extends smithyClient.Command
1811
1578
  .classBuilder()
1812
1579
  .ep(commonParams)
1813
1580
  .m(function (Command, cs, config, o) {
1814
- return [
1815
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1816
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1817
- ];
1581
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1818
1582
  })
1819
1583
  .s("MTurkRequesterServiceV20170117", "NotifyWorkers", {})
1820
1584
  .n("MTurkClient", "NotifyWorkersCommand")
1821
- .f(void 0, void 0)
1822
- .ser(se_NotifyWorkersCommand)
1823
- .de(de_NotifyWorkersCommand)
1585
+ .sc(NotifyWorkers)
1824
1586
  .build() {
1825
1587
  }
1826
1588
 
@@ -1828,16 +1590,11 @@ class RejectAssignmentCommand extends smithyClient.Command
1828
1590
  .classBuilder()
1829
1591
  .ep(commonParams)
1830
1592
  .m(function (Command, cs, config, o) {
1831
- return [
1832
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1833
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1834
- ];
1593
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1835
1594
  })
1836
1595
  .s("MTurkRequesterServiceV20170117", "RejectAssignment", {})
1837
1596
  .n("MTurkClient", "RejectAssignmentCommand")
1838
- .f(void 0, void 0)
1839
- .ser(se_RejectAssignmentCommand)
1840
- .de(de_RejectAssignmentCommand)
1597
+ .sc(RejectAssignment)
1841
1598
  .build() {
1842
1599
  }
1843
1600
 
@@ -1845,16 +1602,11 @@ class RejectQualificationRequestCommand extends smithyClient.Command
1845
1602
  .classBuilder()
1846
1603
  .ep(commonParams)
1847
1604
  .m(function (Command, cs, config, o) {
1848
- return [
1849
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1850
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1851
- ];
1605
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1852
1606
  })
1853
1607
  .s("MTurkRequesterServiceV20170117", "RejectQualificationRequest", {})
1854
1608
  .n("MTurkClient", "RejectQualificationRequestCommand")
1855
- .f(void 0, void 0)
1856
- .ser(se_RejectQualificationRequestCommand)
1857
- .de(de_RejectQualificationRequestCommand)
1609
+ .sc(RejectQualificationRequest)
1858
1610
  .build() {
1859
1611
  }
1860
1612
 
@@ -1862,16 +1614,11 @@ class SendBonusCommand extends smithyClient.Command
1862
1614
  .classBuilder()
1863
1615
  .ep(commonParams)
1864
1616
  .m(function (Command, cs, config, o) {
1865
- return [
1866
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1867
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1868
- ];
1617
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1869
1618
  })
1870
1619
  .s("MTurkRequesterServiceV20170117", "SendBonus", {})
1871
1620
  .n("MTurkClient", "SendBonusCommand")
1872
- .f(void 0, void 0)
1873
- .ser(se_SendBonusCommand)
1874
- .de(de_SendBonusCommand)
1621
+ .sc(SendBonus)
1875
1622
  .build() {
1876
1623
  }
1877
1624
 
@@ -1879,16 +1626,11 @@ class SendTestEventNotificationCommand extends smithyClient.Command
1879
1626
  .classBuilder()
1880
1627
  .ep(commonParams)
1881
1628
  .m(function (Command, cs, config, o) {
1882
- return [
1883
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1884
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1885
- ];
1629
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1886
1630
  })
1887
1631
  .s("MTurkRequesterServiceV20170117", "SendTestEventNotification", {})
1888
1632
  .n("MTurkClient", "SendTestEventNotificationCommand")
1889
- .f(void 0, void 0)
1890
- .ser(se_SendTestEventNotificationCommand)
1891
- .de(de_SendTestEventNotificationCommand)
1633
+ .sc(SendTestEventNotification)
1892
1634
  .build() {
1893
1635
  }
1894
1636
 
@@ -1896,16 +1638,11 @@ class UpdateExpirationForHITCommand extends smithyClient.Command
1896
1638
  .classBuilder()
1897
1639
  .ep(commonParams)
1898
1640
  .m(function (Command, cs, config, o) {
1899
- return [
1900
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1901
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1902
- ];
1641
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1903
1642
  })
1904
1643
  .s("MTurkRequesterServiceV20170117", "UpdateExpirationForHIT", {})
1905
1644
  .n("MTurkClient", "UpdateExpirationForHITCommand")
1906
- .f(void 0, void 0)
1907
- .ser(se_UpdateExpirationForHITCommand)
1908
- .de(de_UpdateExpirationForHITCommand)
1645
+ .sc(UpdateExpirationForHIT)
1909
1646
  .build() {
1910
1647
  }
1911
1648
 
@@ -1913,16 +1650,11 @@ class UpdateHITReviewStatusCommand extends smithyClient.Command
1913
1650
  .classBuilder()
1914
1651
  .ep(commonParams)
1915
1652
  .m(function (Command, cs, config, o) {
1916
- return [
1917
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1918
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1919
- ];
1653
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1920
1654
  })
1921
1655
  .s("MTurkRequesterServiceV20170117", "UpdateHITReviewStatus", {})
1922
1656
  .n("MTurkClient", "UpdateHITReviewStatusCommand")
1923
- .f(void 0, void 0)
1924
- .ser(se_UpdateHITReviewStatusCommand)
1925
- .de(de_UpdateHITReviewStatusCommand)
1657
+ .sc(UpdateHITReviewStatus)
1926
1658
  .build() {
1927
1659
  }
1928
1660
 
@@ -1930,16 +1662,11 @@ class UpdateHITTypeOfHITCommand extends smithyClient.Command
1930
1662
  .classBuilder()
1931
1663
  .ep(commonParams)
1932
1664
  .m(function (Command, cs, config, o) {
1933
- return [
1934
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1935
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1936
- ];
1665
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1937
1666
  })
1938
1667
  .s("MTurkRequesterServiceV20170117", "UpdateHITTypeOfHIT", {})
1939
1668
  .n("MTurkClient", "UpdateHITTypeOfHITCommand")
1940
- .f(void 0, void 0)
1941
- .ser(se_UpdateHITTypeOfHITCommand)
1942
- .de(de_UpdateHITTypeOfHITCommand)
1669
+ .sc(UpdateHITTypeOfHIT)
1943
1670
  .build() {
1944
1671
  }
1945
1672
 
@@ -1947,16 +1674,11 @@ class UpdateNotificationSettingsCommand extends smithyClient.Command
1947
1674
  .classBuilder()
1948
1675
  .ep(commonParams)
1949
1676
  .m(function (Command, cs, config, o) {
1950
- return [
1951
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1952
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1953
- ];
1677
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1954
1678
  })
1955
1679
  .s("MTurkRequesterServiceV20170117", "UpdateNotificationSettings", {})
1956
1680
  .n("MTurkClient", "UpdateNotificationSettingsCommand")
1957
- .f(void 0, void 0)
1958
- .ser(se_UpdateNotificationSettingsCommand)
1959
- .de(de_UpdateNotificationSettingsCommand)
1681
+ .sc(UpdateNotificationSettings)
1960
1682
  .build() {
1961
1683
  }
1962
1684
 
@@ -1964,16 +1686,11 @@ class UpdateQualificationTypeCommand extends smithyClient.Command
1964
1686
  .classBuilder()
1965
1687
  .ep(commonParams)
1966
1688
  .m(function (Command, cs, config, o) {
1967
- return [
1968
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1969
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1970
- ];
1689
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1971
1690
  })
1972
1691
  .s("MTurkRequesterServiceV20170117", "UpdateQualificationType", {})
1973
1692
  .n("MTurkClient", "UpdateQualificationTypeCommand")
1974
- .f(void 0, void 0)
1975
- .ser(se_UpdateQualificationTypeCommand)
1976
- .de(de_UpdateQualificationTypeCommand)
1693
+ .sc(UpdateQualificationType)
1977
1694
  .build() {
1978
1695
  }
1979
1696
 
@@ -2087,7 +1804,7 @@ exports.ListWorkerBlocksCommand = ListWorkerBlocksCommand;
2087
1804
  exports.ListWorkersWithQualificationTypeCommand = ListWorkersWithQualificationTypeCommand;
2088
1805
  exports.MTurk = MTurk;
2089
1806
  exports.MTurkClient = MTurkClient;
2090
- exports.MTurkServiceException = MTurkServiceException;
1807
+ exports.MTurkServiceException = MTurkServiceException$1;
2091
1808
  exports.NotificationTransport = NotificationTransport;
2092
1809
  exports.NotifyWorkersCommand = NotifyWorkersCommand;
2093
1810
  exports.NotifyWorkersFailureCode = NotifyWorkersFailureCode;
@@ -2095,13 +1812,13 @@ exports.QualificationStatus = QualificationStatus;
2095
1812
  exports.QualificationTypeStatus = QualificationTypeStatus;
2096
1813
  exports.RejectAssignmentCommand = RejectAssignmentCommand;
2097
1814
  exports.RejectQualificationRequestCommand = RejectQualificationRequestCommand;
2098
- exports.RequestError = RequestError;
1815
+ exports.RequestError = RequestError$1;
2099
1816
  exports.ReviewActionStatus = ReviewActionStatus;
2100
1817
  exports.ReviewPolicyLevel = ReviewPolicyLevel;
2101
1818
  exports.ReviewableHITStatus = ReviewableHITStatus;
2102
1819
  exports.SendBonusCommand = SendBonusCommand;
2103
1820
  exports.SendTestEventNotificationCommand = SendTestEventNotificationCommand;
2104
- exports.ServiceFault = ServiceFault;
1821
+ exports.ServiceFault = ServiceFault$1;
2105
1822
  exports.UpdateExpirationForHITCommand = UpdateExpirationForHITCommand;
2106
1823
  exports.UpdateHITReviewStatusCommand = UpdateHITReviewStatusCommand;
2107
1824
  exports.UpdateHITTypeOfHITCommand = UpdateHITTypeOfHITCommand;