@aws-sdk/client-swf 3.312.0 → 3.316.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.
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { DefaultUndefinedFault, DomainAlreadyExistsFault, DomainDeprecatedFault, LimitExceededFault, OperationNotPermittedFault, TooManyTagsFault, TypeAlreadyExistsFault, TypeDeprecatedFault, UnknownResourceFault, WorkflowExecutionAlreadyStartedFault, } from "../models/models_0";
4
4
  import { SWFServiceException as __BaseException } from "../models/SWFServiceException";
5
5
  export const se_CountClosedWorkflowExecutionsCommand = async (input, context) => {
@@ -17,67 +17,67 @@ export const se_CountOpenWorkflowExecutionsCommand = async (input, context) => {
17
17
  export const se_CountPendingActivityTasksCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("CountPendingActivityTasks");
19
19
  let body;
20
- body = JSON.stringify(se_CountPendingActivityTasksInput(input, context));
20
+ body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  export const se_CountPendingDecisionTasksCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CountPendingDecisionTasks");
25
25
  let body;
26
- body = JSON.stringify(se_CountPendingDecisionTasksInput(input, context));
26
+ body = JSON.stringify(_json(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_DeprecateActivityTypeCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("DeprecateActivityType");
31
31
  let body;
32
- body = JSON.stringify(se_DeprecateActivityTypeInput(input, context));
32
+ body = JSON.stringify(_json(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  export const se_DeprecateDomainCommand = async (input, context) => {
36
36
  const headers = sharedHeaders("DeprecateDomain");
37
37
  let body;
38
- body = JSON.stringify(se_DeprecateDomainInput(input, context));
38
+ body = JSON.stringify(_json(input));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
41
  export const se_DeprecateWorkflowTypeCommand = async (input, context) => {
42
42
  const headers = sharedHeaders("DeprecateWorkflowType");
43
43
  let body;
44
- body = JSON.stringify(se_DeprecateWorkflowTypeInput(input, context));
44
+ body = JSON.stringify(_json(input));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
47
  export const se_DescribeActivityTypeCommand = async (input, context) => {
48
48
  const headers = sharedHeaders("DescribeActivityType");
49
49
  let body;
50
- body = JSON.stringify(se_DescribeActivityTypeInput(input, context));
50
+ body = JSON.stringify(_json(input));
51
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
52
  };
53
53
  export const se_DescribeDomainCommand = async (input, context) => {
54
54
  const headers = sharedHeaders("DescribeDomain");
55
55
  let body;
56
- body = JSON.stringify(se_DescribeDomainInput(input, context));
56
+ body = JSON.stringify(_json(input));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
59
  export const se_DescribeWorkflowExecutionCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("DescribeWorkflowExecution");
61
61
  let body;
62
- body = JSON.stringify(se_DescribeWorkflowExecutionInput(input, context));
62
+ body = JSON.stringify(_json(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  export const se_DescribeWorkflowTypeCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DescribeWorkflowType");
67
67
  let body;
68
- body = JSON.stringify(se_DescribeWorkflowTypeInput(input, context));
68
+ body = JSON.stringify(_json(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  export const se_GetWorkflowExecutionHistoryCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("GetWorkflowExecutionHistory");
73
73
  let body;
74
- body = JSON.stringify(se_GetWorkflowExecutionHistoryInput(input, context));
74
+ body = JSON.stringify(_json(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  export const se_ListActivityTypesCommand = async (input, context) => {
78
78
  const headers = sharedHeaders("ListActivityTypes");
79
79
  let body;
80
- body = JSON.stringify(se_ListActivityTypesInput(input, context));
80
+ body = JSON.stringify(_json(input));
81
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
82
  };
83
83
  export const se_ListClosedWorkflowExecutionsCommand = async (input, context) => {
@@ -89,7 +89,7 @@ export const se_ListClosedWorkflowExecutionsCommand = async (input, context) =>
89
89
  export const se_ListDomainsCommand = async (input, context) => {
90
90
  const headers = sharedHeaders("ListDomains");
91
91
  let body;
92
- body = JSON.stringify(se_ListDomainsInput(input, context));
92
+ body = JSON.stringify(_json(input));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
95
  export const se_ListOpenWorkflowExecutionsCommand = async (input, context) => {
@@ -101,127 +101,127 @@ export const se_ListOpenWorkflowExecutionsCommand = async (input, context) => {
101
101
  export const se_ListTagsForResourceCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("ListTagsForResource");
103
103
  let body;
104
- body = JSON.stringify(se_ListTagsForResourceInput(input, context));
104
+ body = JSON.stringify(_json(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  export const se_ListWorkflowTypesCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("ListWorkflowTypes");
109
109
  let body;
110
- body = JSON.stringify(se_ListWorkflowTypesInput(input, context));
110
+ body = JSON.stringify(_json(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  export const se_PollForActivityTaskCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("PollForActivityTask");
115
115
  let body;
116
- body = JSON.stringify(se_PollForActivityTaskInput(input, context));
116
+ body = JSON.stringify(_json(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  export const se_PollForDecisionTaskCommand = async (input, context) => {
120
120
  const headers = sharedHeaders("PollForDecisionTask");
121
121
  let body;
122
- body = JSON.stringify(se_PollForDecisionTaskInput(input, context));
122
+ body = JSON.stringify(_json(input));
123
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
124
124
  };
125
125
  export const se_RecordActivityTaskHeartbeatCommand = async (input, context) => {
126
126
  const headers = sharedHeaders("RecordActivityTaskHeartbeat");
127
127
  let body;
128
- body = JSON.stringify(se_RecordActivityTaskHeartbeatInput(input, context));
128
+ body = JSON.stringify(_json(input));
129
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
130
  };
131
131
  export const se_RegisterActivityTypeCommand = async (input, context) => {
132
132
  const headers = sharedHeaders("RegisterActivityType");
133
133
  let body;
134
- body = JSON.stringify(se_RegisterActivityTypeInput(input, context));
134
+ body = JSON.stringify(_json(input));
135
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
136
  };
137
137
  export const se_RegisterDomainCommand = async (input, context) => {
138
138
  const headers = sharedHeaders("RegisterDomain");
139
139
  let body;
140
- body = JSON.stringify(se_RegisterDomainInput(input, context));
140
+ body = JSON.stringify(_json(input));
141
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
142
142
  };
143
143
  export const se_RegisterWorkflowTypeCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("RegisterWorkflowType");
145
145
  let body;
146
- body = JSON.stringify(se_RegisterWorkflowTypeInput(input, context));
146
+ body = JSON.stringify(_json(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  export const se_RequestCancelWorkflowExecutionCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("RequestCancelWorkflowExecution");
151
151
  let body;
152
- body = JSON.stringify(se_RequestCancelWorkflowExecutionInput(input, context));
152
+ body = JSON.stringify(_json(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  export const se_RespondActivityTaskCanceledCommand = async (input, context) => {
156
156
  const headers = sharedHeaders("RespondActivityTaskCanceled");
157
157
  let body;
158
- body = JSON.stringify(se_RespondActivityTaskCanceledInput(input, context));
158
+ body = JSON.stringify(_json(input));
159
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
160
  };
161
161
  export const se_RespondActivityTaskCompletedCommand = async (input, context) => {
162
162
  const headers = sharedHeaders("RespondActivityTaskCompleted");
163
163
  let body;
164
- body = JSON.stringify(se_RespondActivityTaskCompletedInput(input, context));
164
+ body = JSON.stringify(_json(input));
165
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
166
  };
167
167
  export const se_RespondActivityTaskFailedCommand = async (input, context) => {
168
168
  const headers = sharedHeaders("RespondActivityTaskFailed");
169
169
  let body;
170
- body = JSON.stringify(se_RespondActivityTaskFailedInput(input, context));
170
+ body = JSON.stringify(_json(input));
171
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
172
172
  };
173
173
  export const se_RespondDecisionTaskCompletedCommand = async (input, context) => {
174
174
  const headers = sharedHeaders("RespondDecisionTaskCompleted");
175
175
  let body;
176
- body = JSON.stringify(se_RespondDecisionTaskCompletedInput(input, context));
176
+ body = JSON.stringify(_json(input));
177
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
178
  };
179
179
  export const se_SignalWorkflowExecutionCommand = async (input, context) => {
180
180
  const headers = sharedHeaders("SignalWorkflowExecution");
181
181
  let body;
182
- body = JSON.stringify(se_SignalWorkflowExecutionInput(input, context));
182
+ body = JSON.stringify(_json(input));
183
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
184
  };
185
185
  export const se_StartWorkflowExecutionCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("StartWorkflowExecution");
187
187
  let body;
188
- body = JSON.stringify(se_StartWorkflowExecutionInput(input, context));
188
+ body = JSON.stringify(_json(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  export const se_TagResourceCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("TagResource");
193
193
  let body;
194
- body = JSON.stringify(se_TagResourceInput(input, context));
194
+ body = JSON.stringify(_json(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  export const se_TerminateWorkflowExecutionCommand = async (input, context) => {
198
198
  const headers = sharedHeaders("TerminateWorkflowExecution");
199
199
  let body;
200
- body = JSON.stringify(se_TerminateWorkflowExecutionInput(input, context));
200
+ body = JSON.stringify(_json(input));
201
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
202
  };
203
203
  export const se_UndeprecateActivityTypeCommand = async (input, context) => {
204
204
  const headers = sharedHeaders("UndeprecateActivityType");
205
205
  let body;
206
- body = JSON.stringify(se_UndeprecateActivityTypeInput(input, context));
206
+ body = JSON.stringify(_json(input));
207
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
208
  };
209
209
  export const se_UndeprecateDomainCommand = async (input, context) => {
210
210
  const headers = sharedHeaders("UndeprecateDomain");
211
211
  let body;
212
- body = JSON.stringify(se_UndeprecateDomainInput(input, context));
212
+ body = JSON.stringify(_json(input));
213
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
214
214
  };
215
215
  export const se_UndeprecateWorkflowTypeCommand = async (input, context) => {
216
216
  const headers = sharedHeaders("UndeprecateWorkflowType");
217
217
  let body;
218
- body = JSON.stringify(se_UndeprecateWorkflowTypeInput(input, context));
218
+ body = JSON.stringify(_json(input));
219
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
220
  };
221
221
  export const se_UntagResourceCommand = async (input, context) => {
222
222
  const headers = sharedHeaders("UntagResource");
223
223
  let body;
224
- body = JSON.stringify(se_UntagResourceInput(input, context));
224
+ body = JSON.stringify(_json(input));
225
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
226
226
  };
227
227
  export const de_CountClosedWorkflowExecutionsCommand = async (output, context) => {
@@ -230,12 +230,12 @@ export const de_CountClosedWorkflowExecutionsCommand = async (output, context) =
230
230
  }
231
231
  const data = await parseBody(output.body, context);
232
232
  let contents = {};
233
- contents = de_WorkflowExecutionCount(data, context);
233
+ contents = _json(data);
234
234
  const response = {
235
235
  $metadata: deserializeMetadata(output),
236
236
  ...contents,
237
237
  };
238
- return Promise.resolve(response);
238
+ return response;
239
239
  };
240
240
  const de_CountClosedWorkflowExecutionsCommandError = async (output, context) => {
241
241
  const parsedOutput = {
@@ -252,10 +252,9 @@ const de_CountClosedWorkflowExecutionsCommandError = async (output, context) =>
252
252
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
253
253
  default:
254
254
  const parsedBody = parsedOutput.body;
255
- throwDefaultError({
255
+ return throwDefaultError({
256
256
  output,
257
257
  parsedBody,
258
- exceptionCtor: __BaseException,
259
258
  errorCode,
260
259
  });
261
260
  }
@@ -266,12 +265,12 @@ export const de_CountOpenWorkflowExecutionsCommand = async (output, context) =>
266
265
  }
267
266
  const data = await parseBody(output.body, context);
268
267
  let contents = {};
269
- contents = de_WorkflowExecutionCount(data, context);
268
+ contents = _json(data);
270
269
  const response = {
271
270
  $metadata: deserializeMetadata(output),
272
271
  ...contents,
273
272
  };
274
- return Promise.resolve(response);
273
+ return response;
275
274
  };
276
275
  const de_CountOpenWorkflowExecutionsCommandError = async (output, context) => {
277
276
  const parsedOutput = {
@@ -288,10 +287,9 @@ const de_CountOpenWorkflowExecutionsCommandError = async (output, context) => {
288
287
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
289
288
  default:
290
289
  const parsedBody = parsedOutput.body;
291
- throwDefaultError({
290
+ return throwDefaultError({
292
291
  output,
293
292
  parsedBody,
294
- exceptionCtor: __BaseException,
295
293
  errorCode,
296
294
  });
297
295
  }
@@ -302,12 +300,12 @@ export const de_CountPendingActivityTasksCommand = async (output, context) => {
302
300
  }
303
301
  const data = await parseBody(output.body, context);
304
302
  let contents = {};
305
- contents = de_PendingTaskCount(data, context);
303
+ contents = _json(data);
306
304
  const response = {
307
305
  $metadata: deserializeMetadata(output),
308
306
  ...contents,
309
307
  };
310
- return Promise.resolve(response);
308
+ return response;
311
309
  };
312
310
  const de_CountPendingActivityTasksCommandError = async (output, context) => {
313
311
  const parsedOutput = {
@@ -324,10 +322,9 @@ const de_CountPendingActivityTasksCommandError = async (output, context) => {
324
322
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
325
323
  default:
326
324
  const parsedBody = parsedOutput.body;
327
- throwDefaultError({
325
+ return throwDefaultError({
328
326
  output,
329
327
  parsedBody,
330
- exceptionCtor: __BaseException,
331
328
  errorCode,
332
329
  });
333
330
  }
@@ -338,12 +335,12 @@ export const de_CountPendingDecisionTasksCommand = async (output, context) => {
338
335
  }
339
336
  const data = await parseBody(output.body, context);
340
337
  let contents = {};
341
- contents = de_PendingTaskCount(data, context);
338
+ contents = _json(data);
342
339
  const response = {
343
340
  $metadata: deserializeMetadata(output),
344
341
  ...contents,
345
342
  };
346
- return Promise.resolve(response);
343
+ return response;
347
344
  };
348
345
  const de_CountPendingDecisionTasksCommandError = async (output, context) => {
349
346
  const parsedOutput = {
@@ -360,10 +357,9 @@ const de_CountPendingDecisionTasksCommandError = async (output, context) => {
360
357
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
361
358
  default:
362
359
  const parsedBody = parsedOutput.body;
363
- throwDefaultError({
360
+ return throwDefaultError({
364
361
  output,
365
362
  parsedBody,
366
- exceptionCtor: __BaseException,
367
363
  errorCode,
368
364
  });
369
365
  }
@@ -376,7 +372,7 @@ export const de_DeprecateActivityTypeCommand = async (output, context) => {
376
372
  const response = {
377
373
  $metadata: deserializeMetadata(output),
378
374
  };
379
- return Promise.resolve(response);
375
+ return response;
380
376
  };
381
377
  const de_DeprecateActivityTypeCommandError = async (output, context) => {
382
378
  const parsedOutput = {
@@ -396,10 +392,9 @@ const de_DeprecateActivityTypeCommandError = async (output, context) => {
396
392
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
397
393
  default:
398
394
  const parsedBody = parsedOutput.body;
399
- throwDefaultError({
395
+ return throwDefaultError({
400
396
  output,
401
397
  parsedBody,
402
- exceptionCtor: __BaseException,
403
398
  errorCode,
404
399
  });
405
400
  }
@@ -412,7 +407,7 @@ export const de_DeprecateDomainCommand = async (output, context) => {
412
407
  const response = {
413
408
  $metadata: deserializeMetadata(output),
414
409
  };
415
- return Promise.resolve(response);
410
+ return response;
416
411
  };
417
412
  const de_DeprecateDomainCommandError = async (output, context) => {
418
413
  const parsedOutput = {
@@ -432,10 +427,9 @@ const de_DeprecateDomainCommandError = async (output, context) => {
432
427
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
433
428
  default:
434
429
  const parsedBody = parsedOutput.body;
435
- throwDefaultError({
430
+ return throwDefaultError({
436
431
  output,
437
432
  parsedBody,
438
- exceptionCtor: __BaseException,
439
433
  errorCode,
440
434
  });
441
435
  }
@@ -448,7 +442,7 @@ export const de_DeprecateWorkflowTypeCommand = async (output, context) => {
448
442
  const response = {
449
443
  $metadata: deserializeMetadata(output),
450
444
  };
451
- return Promise.resolve(response);
445
+ return response;
452
446
  };
453
447
  const de_DeprecateWorkflowTypeCommandError = async (output, context) => {
454
448
  const parsedOutput = {
@@ -468,10 +462,9 @@ const de_DeprecateWorkflowTypeCommandError = async (output, context) => {
468
462
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
469
463
  default:
470
464
  const parsedBody = parsedOutput.body;
471
- throwDefaultError({
465
+ return throwDefaultError({
472
466
  output,
473
467
  parsedBody,
474
- exceptionCtor: __BaseException,
475
468
  errorCode,
476
469
  });
477
470
  }
@@ -487,7 +480,7 @@ export const de_DescribeActivityTypeCommand = async (output, context) => {
487
480
  $metadata: deserializeMetadata(output),
488
481
  ...contents,
489
482
  };
490
- return Promise.resolve(response);
483
+ return response;
491
484
  };
492
485
  const de_DescribeActivityTypeCommandError = async (output, context) => {
493
486
  const parsedOutput = {
@@ -504,10 +497,9 @@ const de_DescribeActivityTypeCommandError = async (output, context) => {
504
497
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
505
498
  default:
506
499
  const parsedBody = parsedOutput.body;
507
- throwDefaultError({
500
+ return throwDefaultError({
508
501
  output,
509
502
  parsedBody,
510
- exceptionCtor: __BaseException,
511
503
  errorCode,
512
504
  });
513
505
  }
@@ -518,12 +510,12 @@ export const de_DescribeDomainCommand = async (output, context) => {
518
510
  }
519
511
  const data = await parseBody(output.body, context);
520
512
  let contents = {};
521
- contents = de_DomainDetail(data, context);
513
+ contents = _json(data);
522
514
  const response = {
523
515
  $metadata: deserializeMetadata(output),
524
516
  ...contents,
525
517
  };
526
- return Promise.resolve(response);
518
+ return response;
527
519
  };
528
520
  const de_DescribeDomainCommandError = async (output, context) => {
529
521
  const parsedOutput = {
@@ -540,10 +532,9 @@ const de_DescribeDomainCommandError = async (output, context) => {
540
532
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
541
533
  default:
542
534
  const parsedBody = parsedOutput.body;
543
- throwDefaultError({
535
+ return throwDefaultError({
544
536
  output,
545
537
  parsedBody,
546
- exceptionCtor: __BaseException,
547
538
  errorCode,
548
539
  });
549
540
  }
@@ -559,7 +550,7 @@ export const de_DescribeWorkflowExecutionCommand = async (output, context) => {
559
550
  $metadata: deserializeMetadata(output),
560
551
  ...contents,
561
552
  };
562
- return Promise.resolve(response);
553
+ return response;
563
554
  };
564
555
  const de_DescribeWorkflowExecutionCommandError = async (output, context) => {
565
556
  const parsedOutput = {
@@ -576,10 +567,9 @@ const de_DescribeWorkflowExecutionCommandError = async (output, context) => {
576
567
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
577
568
  default:
578
569
  const parsedBody = parsedOutput.body;
579
- throwDefaultError({
570
+ return throwDefaultError({
580
571
  output,
581
572
  parsedBody,
582
- exceptionCtor: __BaseException,
583
573
  errorCode,
584
574
  });
585
575
  }
@@ -595,7 +585,7 @@ export const de_DescribeWorkflowTypeCommand = async (output, context) => {
595
585
  $metadata: deserializeMetadata(output),
596
586
  ...contents,
597
587
  };
598
- return Promise.resolve(response);
588
+ return response;
599
589
  };
600
590
  const de_DescribeWorkflowTypeCommandError = async (output, context) => {
601
591
  const parsedOutput = {
@@ -612,10 +602,9 @@ const de_DescribeWorkflowTypeCommandError = async (output, context) => {
612
602
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
613
603
  default:
614
604
  const parsedBody = parsedOutput.body;
615
- throwDefaultError({
605
+ return throwDefaultError({
616
606
  output,
617
607
  parsedBody,
618
- exceptionCtor: __BaseException,
619
608
  errorCode,
620
609
  });
621
610
  }
@@ -631,7 +620,7 @@ export const de_GetWorkflowExecutionHistoryCommand = async (output, context) =>
631
620
  $metadata: deserializeMetadata(output),
632
621
  ...contents,
633
622
  };
634
- return Promise.resolve(response);
623
+ return response;
635
624
  };
636
625
  const de_GetWorkflowExecutionHistoryCommandError = async (output, context) => {
637
626
  const parsedOutput = {
@@ -648,10 +637,9 @@ const de_GetWorkflowExecutionHistoryCommandError = async (output, context) => {
648
637
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
649
638
  default:
650
639
  const parsedBody = parsedOutput.body;
651
- throwDefaultError({
640
+ return throwDefaultError({
652
641
  output,
653
642
  parsedBody,
654
- exceptionCtor: __BaseException,
655
643
  errorCode,
656
644
  });
657
645
  }
@@ -667,7 +655,7 @@ export const de_ListActivityTypesCommand = async (output, context) => {
667
655
  $metadata: deserializeMetadata(output),
668
656
  ...contents,
669
657
  };
670
- return Promise.resolve(response);
658
+ return response;
671
659
  };
672
660
  const de_ListActivityTypesCommandError = async (output, context) => {
673
661
  const parsedOutput = {
@@ -684,10 +672,9 @@ const de_ListActivityTypesCommandError = async (output, context) => {
684
672
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
685
673
  default:
686
674
  const parsedBody = parsedOutput.body;
687
- throwDefaultError({
675
+ return throwDefaultError({
688
676
  output,
689
677
  parsedBody,
690
- exceptionCtor: __BaseException,
691
678
  errorCode,
692
679
  });
693
680
  }
@@ -703,7 +690,7 @@ export const de_ListClosedWorkflowExecutionsCommand = async (output, context) =>
703
690
  $metadata: deserializeMetadata(output),
704
691
  ...contents,
705
692
  };
706
- return Promise.resolve(response);
693
+ return response;
707
694
  };
708
695
  const de_ListClosedWorkflowExecutionsCommandError = async (output, context) => {
709
696
  const parsedOutput = {
@@ -720,10 +707,9 @@ const de_ListClosedWorkflowExecutionsCommandError = async (output, context) => {
720
707
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
721
708
  default:
722
709
  const parsedBody = parsedOutput.body;
723
- throwDefaultError({
710
+ return throwDefaultError({
724
711
  output,
725
712
  parsedBody,
726
- exceptionCtor: __BaseException,
727
713
  errorCode,
728
714
  });
729
715
  }
@@ -734,12 +720,12 @@ export const de_ListDomainsCommand = async (output, context) => {
734
720
  }
735
721
  const data = await parseBody(output.body, context);
736
722
  let contents = {};
737
- contents = de_DomainInfos(data, context);
723
+ contents = _json(data);
738
724
  const response = {
739
725
  $metadata: deserializeMetadata(output),
740
726
  ...contents,
741
727
  };
742
- return Promise.resolve(response);
728
+ return response;
743
729
  };
744
730
  const de_ListDomainsCommandError = async (output, context) => {
745
731
  const parsedOutput = {
@@ -753,10 +739,9 @@ const de_ListDomainsCommandError = async (output, context) => {
753
739
  throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
754
740
  default:
755
741
  const parsedBody = parsedOutput.body;
756
- throwDefaultError({
742
+ return throwDefaultError({
757
743
  output,
758
744
  parsedBody,
759
- exceptionCtor: __BaseException,
760
745
  errorCode,
761
746
  });
762
747
  }
@@ -772,7 +757,7 @@ export const de_ListOpenWorkflowExecutionsCommand = async (output, context) => {
772
757
  $metadata: deserializeMetadata(output),
773
758
  ...contents,
774
759
  };
775
- return Promise.resolve(response);
760
+ return response;
776
761
  };
777
762
  const de_ListOpenWorkflowExecutionsCommandError = async (output, context) => {
778
763
  const parsedOutput = {
@@ -789,10 +774,9 @@ const de_ListOpenWorkflowExecutionsCommandError = async (output, context) => {
789
774
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
790
775
  default:
791
776
  const parsedBody = parsedOutput.body;
792
- throwDefaultError({
777
+ return throwDefaultError({
793
778
  output,
794
779
  parsedBody,
795
- exceptionCtor: __BaseException,
796
780
  errorCode,
797
781
  });
798
782
  }
@@ -803,12 +787,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
803
787
  }
804
788
  const data = await parseBody(output.body, context);
805
789
  let contents = {};
806
- contents = de_ListTagsForResourceOutput(data, context);
790
+ contents = _json(data);
807
791
  const response = {
808
792
  $metadata: deserializeMetadata(output),
809
793
  ...contents,
810
794
  };
811
- return Promise.resolve(response);
795
+ return response;
812
796
  };
813
797
  const de_ListTagsForResourceCommandError = async (output, context) => {
814
798
  const parsedOutput = {
@@ -828,10 +812,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
828
812
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
829
813
  default:
830
814
  const parsedBody = parsedOutput.body;
831
- throwDefaultError({
815
+ return throwDefaultError({
832
816
  output,
833
817
  parsedBody,
834
- exceptionCtor: __BaseException,
835
818
  errorCode,
836
819
  });
837
820
  }
@@ -847,7 +830,7 @@ export const de_ListWorkflowTypesCommand = async (output, context) => {
847
830
  $metadata: deserializeMetadata(output),
848
831
  ...contents,
849
832
  };
850
- return Promise.resolve(response);
833
+ return response;
851
834
  };
852
835
  const de_ListWorkflowTypesCommandError = async (output, context) => {
853
836
  const parsedOutput = {
@@ -864,10 +847,9 @@ const de_ListWorkflowTypesCommandError = async (output, context) => {
864
847
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
865
848
  default:
866
849
  const parsedBody = parsedOutput.body;
867
- throwDefaultError({
850
+ return throwDefaultError({
868
851
  output,
869
852
  parsedBody,
870
- exceptionCtor: __BaseException,
871
853
  errorCode,
872
854
  });
873
855
  }
@@ -878,12 +860,12 @@ export const de_PollForActivityTaskCommand = async (output, context) => {
878
860
  }
879
861
  const data = await parseBody(output.body, context);
880
862
  let contents = {};
881
- contents = de_ActivityTask(data, context);
863
+ contents = _json(data);
882
864
  const response = {
883
865
  $metadata: deserializeMetadata(output),
884
866
  ...contents,
885
867
  };
886
- return Promise.resolve(response);
868
+ return response;
887
869
  };
888
870
  const de_PollForActivityTaskCommandError = async (output, context) => {
889
871
  const parsedOutput = {
@@ -903,10 +885,9 @@ const de_PollForActivityTaskCommandError = async (output, context) => {
903
885
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
904
886
  default:
905
887
  const parsedBody = parsedOutput.body;
906
- throwDefaultError({
888
+ return throwDefaultError({
907
889
  output,
908
890
  parsedBody,
909
- exceptionCtor: __BaseException,
910
891
  errorCode,
911
892
  });
912
893
  }
@@ -922,7 +903,7 @@ export const de_PollForDecisionTaskCommand = async (output, context) => {
922
903
  $metadata: deserializeMetadata(output),
923
904
  ...contents,
924
905
  };
925
- return Promise.resolve(response);
906
+ return response;
926
907
  };
927
908
  const de_PollForDecisionTaskCommandError = async (output, context) => {
928
909
  const parsedOutput = {
@@ -942,10 +923,9 @@ const de_PollForDecisionTaskCommandError = async (output, context) => {
942
923
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
943
924
  default:
944
925
  const parsedBody = parsedOutput.body;
945
- throwDefaultError({
926
+ return throwDefaultError({
946
927
  output,
947
928
  parsedBody,
948
- exceptionCtor: __BaseException,
949
929
  errorCode,
950
930
  });
951
931
  }
@@ -956,12 +936,12 @@ export const de_RecordActivityTaskHeartbeatCommand = async (output, context) =>
956
936
  }
957
937
  const data = await parseBody(output.body, context);
958
938
  let contents = {};
959
- contents = de_ActivityTaskStatus(data, context);
939
+ contents = _json(data);
960
940
  const response = {
961
941
  $metadata: deserializeMetadata(output),
962
942
  ...contents,
963
943
  };
964
- return Promise.resolve(response);
944
+ return response;
965
945
  };
966
946
  const de_RecordActivityTaskHeartbeatCommandError = async (output, context) => {
967
947
  const parsedOutput = {
@@ -978,10 +958,9 @@ const de_RecordActivityTaskHeartbeatCommandError = async (output, context) => {
978
958
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
979
959
  default:
980
960
  const parsedBody = parsedOutput.body;
981
- throwDefaultError({
961
+ return throwDefaultError({
982
962
  output,
983
963
  parsedBody,
984
- exceptionCtor: __BaseException,
985
964
  errorCode,
986
965
  });
987
966
  }
@@ -994,7 +973,7 @@ export const de_RegisterActivityTypeCommand = async (output, context) => {
994
973
  const response = {
995
974
  $metadata: deserializeMetadata(output),
996
975
  };
997
- return Promise.resolve(response);
976
+ return response;
998
977
  };
999
978
  const de_RegisterActivityTypeCommandError = async (output, context) => {
1000
979
  const parsedOutput = {
@@ -1017,10 +996,9 @@ const de_RegisterActivityTypeCommandError = async (output, context) => {
1017
996
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1018
997
  default:
1019
998
  const parsedBody = parsedOutput.body;
1020
- throwDefaultError({
999
+ return throwDefaultError({
1021
1000
  output,
1022
1001
  parsedBody,
1023
- exceptionCtor: __BaseException,
1024
1002
  errorCode,
1025
1003
  });
1026
1004
  }
@@ -1033,7 +1011,7 @@ export const de_RegisterDomainCommand = async (output, context) => {
1033
1011
  const response = {
1034
1012
  $metadata: deserializeMetadata(output),
1035
1013
  };
1036
- return Promise.resolve(response);
1014
+ return response;
1037
1015
  };
1038
1016
  const de_RegisterDomainCommandError = async (output, context) => {
1039
1017
  const parsedOutput = {
@@ -1056,10 +1034,9 @@ const de_RegisterDomainCommandError = async (output, context) => {
1056
1034
  throw await de_TooManyTagsFaultRes(parsedOutput, context);
1057
1035
  default:
1058
1036
  const parsedBody = parsedOutput.body;
1059
- throwDefaultError({
1037
+ return throwDefaultError({
1060
1038
  output,
1061
1039
  parsedBody,
1062
- exceptionCtor: __BaseException,
1063
1040
  errorCode,
1064
1041
  });
1065
1042
  }
@@ -1072,7 +1049,7 @@ export const de_RegisterWorkflowTypeCommand = async (output, context) => {
1072
1049
  const response = {
1073
1050
  $metadata: deserializeMetadata(output),
1074
1051
  };
1075
- return Promise.resolve(response);
1052
+ return response;
1076
1053
  };
1077
1054
  const de_RegisterWorkflowTypeCommandError = async (output, context) => {
1078
1055
  const parsedOutput = {
@@ -1095,10 +1072,9 @@ const de_RegisterWorkflowTypeCommandError = async (output, context) => {
1095
1072
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1096
1073
  default:
1097
1074
  const parsedBody = parsedOutput.body;
1098
- throwDefaultError({
1075
+ return throwDefaultError({
1099
1076
  output,
1100
1077
  parsedBody,
1101
- exceptionCtor: __BaseException,
1102
1078
  errorCode,
1103
1079
  });
1104
1080
  }
@@ -1111,7 +1087,7 @@ export const de_RequestCancelWorkflowExecutionCommand = async (output, context)
1111
1087
  const response = {
1112
1088
  $metadata: deserializeMetadata(output),
1113
1089
  };
1114
- return Promise.resolve(response);
1090
+ return response;
1115
1091
  };
1116
1092
  const de_RequestCancelWorkflowExecutionCommandError = async (output, context) => {
1117
1093
  const parsedOutput = {
@@ -1128,10 +1104,9 @@ const de_RequestCancelWorkflowExecutionCommandError = async (output, context) =>
1128
1104
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1129
1105
  default:
1130
1106
  const parsedBody = parsedOutput.body;
1131
- throwDefaultError({
1107
+ return throwDefaultError({
1132
1108
  output,
1133
1109
  parsedBody,
1134
- exceptionCtor: __BaseException,
1135
1110
  errorCode,
1136
1111
  });
1137
1112
  }
@@ -1144,7 +1119,7 @@ export const de_RespondActivityTaskCanceledCommand = async (output, context) =>
1144
1119
  const response = {
1145
1120
  $metadata: deserializeMetadata(output),
1146
1121
  };
1147
- return Promise.resolve(response);
1122
+ return response;
1148
1123
  };
1149
1124
  const de_RespondActivityTaskCanceledCommandError = async (output, context) => {
1150
1125
  const parsedOutput = {
@@ -1161,10 +1136,9 @@ const de_RespondActivityTaskCanceledCommandError = async (output, context) => {
1161
1136
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1162
1137
  default:
1163
1138
  const parsedBody = parsedOutput.body;
1164
- throwDefaultError({
1139
+ return throwDefaultError({
1165
1140
  output,
1166
1141
  parsedBody,
1167
- exceptionCtor: __BaseException,
1168
1142
  errorCode,
1169
1143
  });
1170
1144
  }
@@ -1177,7 +1151,7 @@ export const de_RespondActivityTaskCompletedCommand = async (output, context) =>
1177
1151
  const response = {
1178
1152
  $metadata: deserializeMetadata(output),
1179
1153
  };
1180
- return Promise.resolve(response);
1154
+ return response;
1181
1155
  };
1182
1156
  const de_RespondActivityTaskCompletedCommandError = async (output, context) => {
1183
1157
  const parsedOutput = {
@@ -1194,10 +1168,9 @@ const de_RespondActivityTaskCompletedCommandError = async (output, context) => {
1194
1168
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1195
1169
  default:
1196
1170
  const parsedBody = parsedOutput.body;
1197
- throwDefaultError({
1171
+ return throwDefaultError({
1198
1172
  output,
1199
1173
  parsedBody,
1200
- exceptionCtor: __BaseException,
1201
1174
  errorCode,
1202
1175
  });
1203
1176
  }
@@ -1210,7 +1183,7 @@ export const de_RespondActivityTaskFailedCommand = async (output, context) => {
1210
1183
  const response = {
1211
1184
  $metadata: deserializeMetadata(output),
1212
1185
  };
1213
- return Promise.resolve(response);
1186
+ return response;
1214
1187
  };
1215
1188
  const de_RespondActivityTaskFailedCommandError = async (output, context) => {
1216
1189
  const parsedOutput = {
@@ -1227,10 +1200,9 @@ const de_RespondActivityTaskFailedCommandError = async (output, context) => {
1227
1200
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1228
1201
  default:
1229
1202
  const parsedBody = parsedOutput.body;
1230
- throwDefaultError({
1203
+ return throwDefaultError({
1231
1204
  output,
1232
1205
  parsedBody,
1233
- exceptionCtor: __BaseException,
1234
1206
  errorCode,
1235
1207
  });
1236
1208
  }
@@ -1243,7 +1215,7 @@ export const de_RespondDecisionTaskCompletedCommand = async (output, context) =>
1243
1215
  const response = {
1244
1216
  $metadata: deserializeMetadata(output),
1245
1217
  };
1246
- return Promise.resolve(response);
1218
+ return response;
1247
1219
  };
1248
1220
  const de_RespondDecisionTaskCompletedCommandError = async (output, context) => {
1249
1221
  const parsedOutput = {
@@ -1260,10 +1232,9 @@ const de_RespondDecisionTaskCompletedCommandError = async (output, context) => {
1260
1232
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1261
1233
  default:
1262
1234
  const parsedBody = parsedOutput.body;
1263
- throwDefaultError({
1235
+ return throwDefaultError({
1264
1236
  output,
1265
1237
  parsedBody,
1266
- exceptionCtor: __BaseException,
1267
1238
  errorCode,
1268
1239
  });
1269
1240
  }
@@ -1276,7 +1247,7 @@ export const de_SignalWorkflowExecutionCommand = async (output, context) => {
1276
1247
  const response = {
1277
1248
  $metadata: deserializeMetadata(output),
1278
1249
  };
1279
- return Promise.resolve(response);
1250
+ return response;
1280
1251
  };
1281
1252
  const de_SignalWorkflowExecutionCommandError = async (output, context) => {
1282
1253
  const parsedOutput = {
@@ -1293,10 +1264,9 @@ const de_SignalWorkflowExecutionCommandError = async (output, context) => {
1293
1264
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1294
1265
  default:
1295
1266
  const parsedBody = parsedOutput.body;
1296
- throwDefaultError({
1267
+ return throwDefaultError({
1297
1268
  output,
1298
1269
  parsedBody,
1299
- exceptionCtor: __BaseException,
1300
1270
  errorCode,
1301
1271
  });
1302
1272
  }
@@ -1307,12 +1277,12 @@ export const de_StartWorkflowExecutionCommand = async (output, context) => {
1307
1277
  }
1308
1278
  const data = await parseBody(output.body, context);
1309
1279
  let contents = {};
1310
- contents = de_Run(data, context);
1280
+ contents = _json(data);
1311
1281
  const response = {
1312
1282
  $metadata: deserializeMetadata(output),
1313
1283
  ...contents,
1314
1284
  };
1315
- return Promise.resolve(response);
1285
+ return response;
1316
1286
  };
1317
1287
  const de_StartWorkflowExecutionCommandError = async (output, context) => {
1318
1288
  const parsedOutput = {
@@ -1341,10 +1311,9 @@ const de_StartWorkflowExecutionCommandError = async (output, context) => {
1341
1311
  throw await de_WorkflowExecutionAlreadyStartedFaultRes(parsedOutput, context);
1342
1312
  default:
1343
1313
  const parsedBody = parsedOutput.body;
1344
- throwDefaultError({
1314
+ return throwDefaultError({
1345
1315
  output,
1346
1316
  parsedBody,
1347
- exceptionCtor: __BaseException,
1348
1317
  errorCode,
1349
1318
  });
1350
1319
  }
@@ -1357,7 +1326,7 @@ export const de_TagResourceCommand = async (output, context) => {
1357
1326
  const response = {
1358
1327
  $metadata: deserializeMetadata(output),
1359
1328
  };
1360
- return Promise.resolve(response);
1329
+ return response;
1361
1330
  };
1362
1331
  const de_TagResourceCommandError = async (output, context) => {
1363
1332
  const parsedOutput = {
@@ -1380,10 +1349,9 @@ const de_TagResourceCommandError = async (output, context) => {
1380
1349
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1381
1350
  default:
1382
1351
  const parsedBody = parsedOutput.body;
1383
- throwDefaultError({
1352
+ return throwDefaultError({
1384
1353
  output,
1385
1354
  parsedBody,
1386
- exceptionCtor: __BaseException,
1387
1355
  errorCode,
1388
1356
  });
1389
1357
  }
@@ -1396,7 +1364,7 @@ export const de_TerminateWorkflowExecutionCommand = async (output, context) => {
1396
1364
  const response = {
1397
1365
  $metadata: deserializeMetadata(output),
1398
1366
  };
1399
- return Promise.resolve(response);
1367
+ return response;
1400
1368
  };
1401
1369
  const de_TerminateWorkflowExecutionCommandError = async (output, context) => {
1402
1370
  const parsedOutput = {
@@ -1413,10 +1381,9 @@ const de_TerminateWorkflowExecutionCommandError = async (output, context) => {
1413
1381
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1414
1382
  default:
1415
1383
  const parsedBody = parsedOutput.body;
1416
- throwDefaultError({
1384
+ return throwDefaultError({
1417
1385
  output,
1418
1386
  parsedBody,
1419
- exceptionCtor: __BaseException,
1420
1387
  errorCode,
1421
1388
  });
1422
1389
  }
@@ -1429,7 +1396,7 @@ export const de_UndeprecateActivityTypeCommand = async (output, context) => {
1429
1396
  const response = {
1430
1397
  $metadata: deserializeMetadata(output),
1431
1398
  };
1432
- return Promise.resolve(response);
1399
+ return response;
1433
1400
  };
1434
1401
  const de_UndeprecateActivityTypeCommandError = async (output, context) => {
1435
1402
  const parsedOutput = {
@@ -1449,10 +1416,9 @@ const de_UndeprecateActivityTypeCommandError = async (output, context) => {
1449
1416
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1450
1417
  default:
1451
1418
  const parsedBody = parsedOutput.body;
1452
- throwDefaultError({
1419
+ return throwDefaultError({
1453
1420
  output,
1454
1421
  parsedBody,
1455
- exceptionCtor: __BaseException,
1456
1422
  errorCode,
1457
1423
  });
1458
1424
  }
@@ -1465,7 +1431,7 @@ export const de_UndeprecateDomainCommand = async (output, context) => {
1465
1431
  const response = {
1466
1432
  $metadata: deserializeMetadata(output),
1467
1433
  };
1468
- return Promise.resolve(response);
1434
+ return response;
1469
1435
  };
1470
1436
  const de_UndeprecateDomainCommandError = async (output, context) => {
1471
1437
  const parsedOutput = {
@@ -1485,10 +1451,9 @@ const de_UndeprecateDomainCommandError = async (output, context) => {
1485
1451
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1486
1452
  default:
1487
1453
  const parsedBody = parsedOutput.body;
1488
- throwDefaultError({
1454
+ return throwDefaultError({
1489
1455
  output,
1490
1456
  parsedBody,
1491
- exceptionCtor: __BaseException,
1492
1457
  errorCode,
1493
1458
  });
1494
1459
  }
@@ -1501,7 +1466,7 @@ export const de_UndeprecateWorkflowTypeCommand = async (output, context) => {
1501
1466
  const response = {
1502
1467
  $metadata: deserializeMetadata(output),
1503
1468
  };
1504
- return Promise.resolve(response);
1469
+ return response;
1505
1470
  };
1506
1471
  const de_UndeprecateWorkflowTypeCommandError = async (output, context) => {
1507
1472
  const parsedOutput = {
@@ -1521,10 +1486,9 @@ const de_UndeprecateWorkflowTypeCommandError = async (output, context) => {
1521
1486
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1522
1487
  default:
1523
1488
  const parsedBody = parsedOutput.body;
1524
- throwDefaultError({
1489
+ return throwDefaultError({
1525
1490
  output,
1526
1491
  parsedBody,
1527
- exceptionCtor: __BaseException,
1528
1492
  errorCode,
1529
1493
  });
1530
1494
  }
@@ -1537,7 +1501,7 @@ export const de_UntagResourceCommand = async (output, context) => {
1537
1501
  const response = {
1538
1502
  $metadata: deserializeMetadata(output),
1539
1503
  };
1540
- return Promise.resolve(response);
1504
+ return response;
1541
1505
  };
1542
1506
  const de_UntagResourceCommandError = async (output, context) => {
1543
1507
  const parsedOutput = {
@@ -1557,17 +1521,16 @@ const de_UntagResourceCommandError = async (output, context) => {
1557
1521
  throw await de_UnknownResourceFaultRes(parsedOutput, context);
1558
1522
  default:
1559
1523
  const parsedBody = parsedOutput.body;
1560
- throwDefaultError({
1524
+ return throwDefaultError({
1561
1525
  output,
1562
1526
  parsedBody,
1563
- exceptionCtor: __BaseException,
1564
1527
  errorCode,
1565
1528
  });
1566
1529
  }
1567
1530
  };
1568
1531
  const de_DefaultUndefinedFaultRes = async (parsedOutput, context) => {
1569
1532
  const body = parsedOutput.body;
1570
- const deserialized = de_DefaultUndefinedFault(body, context);
1533
+ const deserialized = _json(body);
1571
1534
  const exception = new DefaultUndefinedFault({
1572
1535
  $metadata: deserializeMetadata(parsedOutput),
1573
1536
  ...deserialized,
@@ -1576,7 +1539,7 @@ const de_DefaultUndefinedFaultRes = async (parsedOutput, context) => {
1576
1539
  };
1577
1540
  const de_DomainAlreadyExistsFaultRes = async (parsedOutput, context) => {
1578
1541
  const body = parsedOutput.body;
1579
- const deserialized = de_DomainAlreadyExistsFault(body, context);
1542
+ const deserialized = _json(body);
1580
1543
  const exception = new DomainAlreadyExistsFault({
1581
1544
  $metadata: deserializeMetadata(parsedOutput),
1582
1545
  ...deserialized,
@@ -1585,7 +1548,7 @@ const de_DomainAlreadyExistsFaultRes = async (parsedOutput, context) => {
1585
1548
  };
1586
1549
  const de_DomainDeprecatedFaultRes = async (parsedOutput, context) => {
1587
1550
  const body = parsedOutput.body;
1588
- const deserialized = de_DomainDeprecatedFault(body, context);
1551
+ const deserialized = _json(body);
1589
1552
  const exception = new DomainDeprecatedFault({
1590
1553
  $metadata: deserializeMetadata(parsedOutput),
1591
1554
  ...deserialized,
@@ -1594,7 +1557,7 @@ const de_DomainDeprecatedFaultRes = async (parsedOutput, context) => {
1594
1557
  };
1595
1558
  const de_LimitExceededFaultRes = async (parsedOutput, context) => {
1596
1559
  const body = parsedOutput.body;
1597
- const deserialized = de_LimitExceededFault(body, context);
1560
+ const deserialized = _json(body);
1598
1561
  const exception = new LimitExceededFault({
1599
1562
  $metadata: deserializeMetadata(parsedOutput),
1600
1563
  ...deserialized,
@@ -1603,7 +1566,7 @@ const de_LimitExceededFaultRes = async (parsedOutput, context) => {
1603
1566
  };
1604
1567
  const de_OperationNotPermittedFaultRes = async (parsedOutput, context) => {
1605
1568
  const body = parsedOutput.body;
1606
- const deserialized = de_OperationNotPermittedFault(body, context);
1569
+ const deserialized = _json(body);
1607
1570
  const exception = new OperationNotPermittedFault({
1608
1571
  $metadata: deserializeMetadata(parsedOutput),
1609
1572
  ...deserialized,
@@ -1612,7 +1575,7 @@ const de_OperationNotPermittedFaultRes = async (parsedOutput, context) => {
1612
1575
  };
1613
1576
  const de_TooManyTagsFaultRes = async (parsedOutput, context) => {
1614
1577
  const body = parsedOutput.body;
1615
- const deserialized = de_TooManyTagsFault(body, context);
1578
+ const deserialized = _json(body);
1616
1579
  const exception = new TooManyTagsFault({
1617
1580
  $metadata: deserializeMetadata(parsedOutput),
1618
1581
  ...deserialized,
@@ -1621,7 +1584,7 @@ const de_TooManyTagsFaultRes = async (parsedOutput, context) => {
1621
1584
  };
1622
1585
  const de_TypeAlreadyExistsFaultRes = async (parsedOutput, context) => {
1623
1586
  const body = parsedOutput.body;
1624
- const deserialized = de_TypeAlreadyExistsFault(body, context);
1587
+ const deserialized = _json(body);
1625
1588
  const exception = new TypeAlreadyExistsFault({
1626
1589
  $metadata: deserializeMetadata(parsedOutput),
1627
1590
  ...deserialized,
@@ -1630,7 +1593,7 @@ const de_TypeAlreadyExistsFaultRes = async (parsedOutput, context) => {
1630
1593
  };
1631
1594
  const de_TypeDeprecatedFaultRes = async (parsedOutput, context) => {
1632
1595
  const body = parsedOutput.body;
1633
- const deserialized = de_TypeDeprecatedFault(body, context);
1596
+ const deserialized = _json(body);
1634
1597
  const exception = new TypeDeprecatedFault({
1635
1598
  $metadata: deserializeMetadata(parsedOutput),
1636
1599
  ...deserialized,
@@ -1639,7 +1602,7 @@ const de_TypeDeprecatedFaultRes = async (parsedOutput, context) => {
1639
1602
  };
1640
1603
  const de_UnknownResourceFaultRes = async (parsedOutput, context) => {
1641
1604
  const body = parsedOutput.body;
1642
- const deserialized = de_UnknownResourceFault(body, context);
1605
+ const deserialized = _json(body);
1643
1606
  const exception = new UnknownResourceFault({
1644
1607
  $metadata: deserializeMetadata(parsedOutput),
1645
1608
  ...deserialized,
@@ -1648,1542 +1611,244 @@ const de_UnknownResourceFaultRes = async (parsedOutput, context) => {
1648
1611
  };
1649
1612
  const de_WorkflowExecutionAlreadyStartedFaultRes = async (parsedOutput, context) => {
1650
1613
  const body = parsedOutput.body;
1651
- const deserialized = de_WorkflowExecutionAlreadyStartedFault(body, context);
1614
+ const deserialized = _json(body);
1652
1615
  const exception = new WorkflowExecutionAlreadyStartedFault({
1653
1616
  $metadata: deserializeMetadata(parsedOutput),
1654
1617
  ...deserialized,
1655
1618
  });
1656
1619
  return __decorateServiceException(exception, body);
1657
1620
  };
1658
- const se_ActivityType = (input, context) => {
1659
- return {
1660
- ...(input.name != null && { name: input.name }),
1661
- ...(input.version != null && { version: input.version }),
1662
- };
1663
- };
1664
- const se_CancelTimerDecisionAttributes = (input, context) => {
1665
- return {
1666
- ...(input.timerId != null && { timerId: input.timerId }),
1667
- };
1668
- };
1669
- const se_CancelWorkflowExecutionDecisionAttributes = (input, context) => {
1670
- return {
1671
- ...(input.details != null && { details: input.details }),
1672
- };
1673
- };
1674
- const se_CloseStatusFilter = (input, context) => {
1675
- return {
1676
- ...(input.status != null && { status: input.status }),
1677
- };
1678
- };
1679
- const se_CompleteWorkflowExecutionDecisionAttributes = (input, context) => {
1680
- return {
1681
- ...(input.result != null && { result: input.result }),
1682
- };
1683
- };
1684
- const se_ContinueAsNewWorkflowExecutionDecisionAttributes = (input, context) => {
1685
- return {
1686
- ...(input.childPolicy != null && { childPolicy: input.childPolicy }),
1687
- ...(input.executionStartToCloseTimeout != null && {
1688
- executionStartToCloseTimeout: input.executionStartToCloseTimeout,
1689
- }),
1690
- ...(input.input != null && { input: input.input }),
1691
- ...(input.lambdaRole != null && { lambdaRole: input.lambdaRole }),
1692
- ...(input.tagList != null && { tagList: se_TagList(input.tagList, context) }),
1693
- ...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
1694
- ...(input.taskPriority != null && { taskPriority: input.taskPriority }),
1695
- ...(input.taskStartToCloseTimeout != null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
1696
- ...(input.workflowTypeVersion != null && { workflowTypeVersion: input.workflowTypeVersion }),
1697
- };
1698
- };
1699
1621
  const se_CountClosedWorkflowExecutionsInput = (input, context) => {
1700
- return {
1701
- ...(input.closeStatusFilter != null && {
1702
- closeStatusFilter: se_CloseStatusFilter(input.closeStatusFilter, context),
1703
- }),
1704
- ...(input.closeTimeFilter != null && { closeTimeFilter: se_ExecutionTimeFilter(input.closeTimeFilter, context) }),
1705
- ...(input.domain != null && { domain: input.domain }),
1706
- ...(input.executionFilter != null && {
1707
- executionFilter: se_WorkflowExecutionFilter(input.executionFilter, context),
1708
- }),
1709
- ...(input.startTimeFilter != null && { startTimeFilter: se_ExecutionTimeFilter(input.startTimeFilter, context) }),
1710
- ...(input.tagFilter != null && { tagFilter: se_TagFilter(input.tagFilter, context) }),
1711
- ...(input.typeFilter != null && { typeFilter: se_WorkflowTypeFilter(input.typeFilter, context) }),
1712
- };
1622
+ return take(input, {
1623
+ closeStatusFilter: _json,
1624
+ closeTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
1625
+ domain: [],
1626
+ executionFilter: _json,
1627
+ startTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
1628
+ tagFilter: _json,
1629
+ typeFilter: _json,
1630
+ });
1713
1631
  };
1714
1632
  const se_CountOpenWorkflowExecutionsInput = (input, context) => {
1715
- return {
1716
- ...(input.domain != null && { domain: input.domain }),
1717
- ...(input.executionFilter != null && {
1718
- executionFilter: se_WorkflowExecutionFilter(input.executionFilter, context),
1719
- }),
1720
- ...(input.startTimeFilter != null && { startTimeFilter: se_ExecutionTimeFilter(input.startTimeFilter, context) }),
1721
- ...(input.tagFilter != null && { tagFilter: se_TagFilter(input.tagFilter, context) }),
1722
- ...(input.typeFilter != null && { typeFilter: se_WorkflowTypeFilter(input.typeFilter, context) }),
1723
- };
1724
- };
1725
- const se_CountPendingActivityTasksInput = (input, context) => {
1726
- return {
1727
- ...(input.domain != null && { domain: input.domain }),
1728
- ...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
1729
- };
1730
- };
1731
- const se_CountPendingDecisionTasksInput = (input, context) => {
1732
- return {
1733
- ...(input.domain != null && { domain: input.domain }),
1734
- ...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
1735
- };
1736
- };
1737
- const se_Decision = (input, context) => {
1738
- return {
1739
- ...(input.cancelTimerDecisionAttributes != null && {
1740
- cancelTimerDecisionAttributes: se_CancelTimerDecisionAttributes(input.cancelTimerDecisionAttributes, context),
1741
- }),
1742
- ...(input.cancelWorkflowExecutionDecisionAttributes != null && {
1743
- cancelWorkflowExecutionDecisionAttributes: se_CancelWorkflowExecutionDecisionAttributes(input.cancelWorkflowExecutionDecisionAttributes, context),
1744
- }),
1745
- ...(input.completeWorkflowExecutionDecisionAttributes != null && {
1746
- completeWorkflowExecutionDecisionAttributes: se_CompleteWorkflowExecutionDecisionAttributes(input.completeWorkflowExecutionDecisionAttributes, context),
1747
- }),
1748
- ...(input.continueAsNewWorkflowExecutionDecisionAttributes != null && {
1749
- continueAsNewWorkflowExecutionDecisionAttributes: se_ContinueAsNewWorkflowExecutionDecisionAttributes(input.continueAsNewWorkflowExecutionDecisionAttributes, context),
1750
- }),
1751
- ...(input.decisionType != null && { decisionType: input.decisionType }),
1752
- ...(input.failWorkflowExecutionDecisionAttributes != null && {
1753
- failWorkflowExecutionDecisionAttributes: se_FailWorkflowExecutionDecisionAttributes(input.failWorkflowExecutionDecisionAttributes, context),
1754
- }),
1755
- ...(input.recordMarkerDecisionAttributes != null && {
1756
- recordMarkerDecisionAttributes: se_RecordMarkerDecisionAttributes(input.recordMarkerDecisionAttributes, context),
1757
- }),
1758
- ...(input.requestCancelActivityTaskDecisionAttributes != null && {
1759
- requestCancelActivityTaskDecisionAttributes: se_RequestCancelActivityTaskDecisionAttributes(input.requestCancelActivityTaskDecisionAttributes, context),
1760
- }),
1761
- ...(input.requestCancelExternalWorkflowExecutionDecisionAttributes != null && {
1762
- requestCancelExternalWorkflowExecutionDecisionAttributes: se_RequestCancelExternalWorkflowExecutionDecisionAttributes(input.requestCancelExternalWorkflowExecutionDecisionAttributes, context),
1763
- }),
1764
- ...(input.scheduleActivityTaskDecisionAttributes != null && {
1765
- scheduleActivityTaskDecisionAttributes: se_ScheduleActivityTaskDecisionAttributes(input.scheduleActivityTaskDecisionAttributes, context),
1766
- }),
1767
- ...(input.scheduleLambdaFunctionDecisionAttributes != null && {
1768
- scheduleLambdaFunctionDecisionAttributes: se_ScheduleLambdaFunctionDecisionAttributes(input.scheduleLambdaFunctionDecisionAttributes, context),
1769
- }),
1770
- ...(input.signalExternalWorkflowExecutionDecisionAttributes != null && {
1771
- signalExternalWorkflowExecutionDecisionAttributes: se_SignalExternalWorkflowExecutionDecisionAttributes(input.signalExternalWorkflowExecutionDecisionAttributes, context),
1772
- }),
1773
- ...(input.startChildWorkflowExecutionDecisionAttributes != null && {
1774
- startChildWorkflowExecutionDecisionAttributes: se_StartChildWorkflowExecutionDecisionAttributes(input.startChildWorkflowExecutionDecisionAttributes, context),
1775
- }),
1776
- ...(input.startTimerDecisionAttributes != null && {
1777
- startTimerDecisionAttributes: se_StartTimerDecisionAttributes(input.startTimerDecisionAttributes, context),
1778
- }),
1779
- };
1780
- };
1781
- const se_DecisionList = (input, context) => {
1782
- return input
1783
- .filter((e) => e != null)
1784
- .map((entry) => {
1785
- return se_Decision(entry, context);
1633
+ return take(input, {
1634
+ domain: [],
1635
+ executionFilter: _json,
1636
+ startTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
1637
+ tagFilter: _json,
1638
+ typeFilter: _json,
1786
1639
  });
1787
1640
  };
1788
- const se_DeprecateActivityTypeInput = (input, context) => {
1789
- return {
1790
- ...(input.activityType != null && { activityType: se_ActivityType(input.activityType, context) }),
1791
- ...(input.domain != null && { domain: input.domain }),
1792
- };
1793
- };
1794
- const se_DeprecateDomainInput = (input, context) => {
1795
- return {
1796
- ...(input.name != null && { name: input.name }),
1797
- };
1798
- };
1799
- const se_DeprecateWorkflowTypeInput = (input, context) => {
1800
- return {
1801
- ...(input.domain != null && { domain: input.domain }),
1802
- ...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
1803
- };
1804
- };
1805
- const se_DescribeActivityTypeInput = (input, context) => {
1806
- return {
1807
- ...(input.activityType != null && { activityType: se_ActivityType(input.activityType, context) }),
1808
- ...(input.domain != null && { domain: input.domain }),
1809
- };
1810
- };
1811
- const se_DescribeDomainInput = (input, context) => {
1812
- return {
1813
- ...(input.name != null && { name: input.name }),
1814
- };
1815
- };
1816
- const se_DescribeWorkflowExecutionInput = (input, context) => {
1817
- return {
1818
- ...(input.domain != null && { domain: input.domain }),
1819
- ...(input.execution != null && { execution: se_WorkflowExecution(input.execution, context) }),
1820
- };
1821
- };
1822
- const se_DescribeWorkflowTypeInput = (input, context) => {
1823
- return {
1824
- ...(input.domain != null && { domain: input.domain }),
1825
- ...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
1826
- };
1827
- };
1828
1641
  const se_ExecutionTimeFilter = (input, context) => {
1829
- return {
1830
- ...(input.latestDate != null && { latestDate: Math.round(input.latestDate.getTime() / 1000) }),
1831
- ...(input.oldestDate != null && { oldestDate: Math.round(input.oldestDate.getTime() / 1000) }),
1832
- };
1833
- };
1834
- const se_FailWorkflowExecutionDecisionAttributes = (input, context) => {
1835
- return {
1836
- ...(input.details != null && { details: input.details }),
1837
- ...(input.reason != null && { reason: input.reason }),
1838
- };
1839
- };
1840
- const se_GetWorkflowExecutionHistoryInput = (input, context) => {
1841
- return {
1842
- ...(input.domain != null && { domain: input.domain }),
1843
- ...(input.execution != null && { execution: se_WorkflowExecution(input.execution, context) }),
1844
- ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
1845
- ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
1846
- ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
1847
- };
1848
- };
1849
- const se_ListActivityTypesInput = (input, context) => {
1850
- return {
1851
- ...(input.domain != null && { domain: input.domain }),
1852
- ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
1853
- ...(input.name != null && { name: input.name }),
1854
- ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
1855
- ...(input.registrationStatus != null && { registrationStatus: input.registrationStatus }),
1856
- ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
1857
- };
1858
- };
1859
- const se_ListClosedWorkflowExecutionsInput = (input, context) => {
1860
- return {
1861
- ...(input.closeStatusFilter != null && {
1862
- closeStatusFilter: se_CloseStatusFilter(input.closeStatusFilter, context),
1863
- }),
1864
- ...(input.closeTimeFilter != null && { closeTimeFilter: se_ExecutionTimeFilter(input.closeTimeFilter, context) }),
1865
- ...(input.domain != null && { domain: input.domain }),
1866
- ...(input.executionFilter != null && {
1867
- executionFilter: se_WorkflowExecutionFilter(input.executionFilter, context),
1868
- }),
1869
- ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
1870
- ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
1871
- ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
1872
- ...(input.startTimeFilter != null && { startTimeFilter: se_ExecutionTimeFilter(input.startTimeFilter, context) }),
1873
- ...(input.tagFilter != null && { tagFilter: se_TagFilter(input.tagFilter, context) }),
1874
- ...(input.typeFilter != null && { typeFilter: se_WorkflowTypeFilter(input.typeFilter, context) }),
1875
- };
1876
- };
1877
- const se_ListDomainsInput = (input, context) => {
1878
- return {
1879
- ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
1880
- ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
1881
- ...(input.registrationStatus != null && { registrationStatus: input.registrationStatus }),
1882
- ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
1883
- };
1884
- };
1885
- const se_ListOpenWorkflowExecutionsInput = (input, context) => {
1886
- return {
1887
- ...(input.domain != null && { domain: input.domain }),
1888
- ...(input.executionFilter != null && {
1889
- executionFilter: se_WorkflowExecutionFilter(input.executionFilter, context),
1890
- }),
1891
- ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
1892
- ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
1893
- ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
1894
- ...(input.startTimeFilter != null && { startTimeFilter: se_ExecutionTimeFilter(input.startTimeFilter, context) }),
1895
- ...(input.tagFilter != null && { tagFilter: se_TagFilter(input.tagFilter, context) }),
1896
- ...(input.typeFilter != null && { typeFilter: se_WorkflowTypeFilter(input.typeFilter, context) }),
1897
- };
1898
- };
1899
- const se_ListTagsForResourceInput = (input, context) => {
1900
- return {
1901
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
1902
- };
1903
- };
1904
- const se_ListWorkflowTypesInput = (input, context) => {
1905
- return {
1906
- ...(input.domain != null && { domain: input.domain }),
1907
- ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
1908
- ...(input.name != null && { name: input.name }),
1909
- ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
1910
- ...(input.registrationStatus != null && { registrationStatus: input.registrationStatus }),
1911
- ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
1912
- };
1913
- };
1914
- const se_PollForActivityTaskInput = (input, context) => {
1915
- return {
1916
- ...(input.domain != null && { domain: input.domain }),
1917
- ...(input.identity != null && { identity: input.identity }),
1918
- ...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
1919
- };
1920
- };
1921
- const se_PollForDecisionTaskInput = (input, context) => {
1922
- return {
1923
- ...(input.domain != null && { domain: input.domain }),
1924
- ...(input.identity != null && { identity: input.identity }),
1925
- ...(input.maximumPageSize != null && { maximumPageSize: input.maximumPageSize }),
1926
- ...(input.nextPageToken != null && { nextPageToken: input.nextPageToken }),
1927
- ...(input.reverseOrder != null && { reverseOrder: input.reverseOrder }),
1928
- ...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
1929
- };
1930
- };
1931
- const se_RecordActivityTaskHeartbeatInput = (input, context) => {
1932
- return {
1933
- ...(input.details != null && { details: input.details }),
1934
- ...(input.taskToken != null && { taskToken: input.taskToken }),
1935
- };
1936
- };
1937
- const se_RecordMarkerDecisionAttributes = (input, context) => {
1938
- return {
1939
- ...(input.details != null && { details: input.details }),
1940
- ...(input.markerName != null && { markerName: input.markerName }),
1941
- };
1942
- };
1943
- const se_RegisterActivityTypeInput = (input, context) => {
1944
- return {
1945
- ...(input.defaultTaskHeartbeatTimeout != null && {
1946
- defaultTaskHeartbeatTimeout: input.defaultTaskHeartbeatTimeout,
1947
- }),
1948
- ...(input.defaultTaskList != null && { defaultTaskList: se_TaskList(input.defaultTaskList, context) }),
1949
- ...(input.defaultTaskPriority != null && { defaultTaskPriority: input.defaultTaskPriority }),
1950
- ...(input.defaultTaskScheduleToCloseTimeout != null && {
1951
- defaultTaskScheduleToCloseTimeout: input.defaultTaskScheduleToCloseTimeout,
1952
- }),
1953
- ...(input.defaultTaskScheduleToStartTimeout != null && {
1954
- defaultTaskScheduleToStartTimeout: input.defaultTaskScheduleToStartTimeout,
1955
- }),
1956
- ...(input.defaultTaskStartToCloseTimeout != null && {
1957
- defaultTaskStartToCloseTimeout: input.defaultTaskStartToCloseTimeout,
1958
- }),
1959
- ...(input.description != null && { description: input.description }),
1960
- ...(input.domain != null && { domain: input.domain }),
1961
- ...(input.name != null && { name: input.name }),
1962
- ...(input.version != null && { version: input.version }),
1963
- };
1964
- };
1965
- const se_RegisterDomainInput = (input, context) => {
1966
- return {
1967
- ...(input.description != null && { description: input.description }),
1968
- ...(input.name != null && { name: input.name }),
1969
- ...(input.tags != null && { tags: se_ResourceTagList(input.tags, context) }),
1970
- ...(input.workflowExecutionRetentionPeriodInDays != null && {
1971
- workflowExecutionRetentionPeriodInDays: input.workflowExecutionRetentionPeriodInDays,
1972
- }),
1973
- };
1974
- };
1975
- const se_RegisterWorkflowTypeInput = (input, context) => {
1976
- return {
1977
- ...(input.defaultChildPolicy != null && { defaultChildPolicy: input.defaultChildPolicy }),
1978
- ...(input.defaultExecutionStartToCloseTimeout != null && {
1979
- defaultExecutionStartToCloseTimeout: input.defaultExecutionStartToCloseTimeout,
1980
- }),
1981
- ...(input.defaultLambdaRole != null && { defaultLambdaRole: input.defaultLambdaRole }),
1982
- ...(input.defaultTaskList != null && { defaultTaskList: se_TaskList(input.defaultTaskList, context) }),
1983
- ...(input.defaultTaskPriority != null && { defaultTaskPriority: input.defaultTaskPriority }),
1984
- ...(input.defaultTaskStartToCloseTimeout != null && {
1985
- defaultTaskStartToCloseTimeout: input.defaultTaskStartToCloseTimeout,
1986
- }),
1987
- ...(input.description != null && { description: input.description }),
1988
- ...(input.domain != null && { domain: input.domain }),
1989
- ...(input.name != null && { name: input.name }),
1990
- ...(input.version != null && { version: input.version }),
1991
- };
1992
- };
1993
- const se_RequestCancelActivityTaskDecisionAttributes = (input, context) => {
1994
- return {
1995
- ...(input.activityId != null && { activityId: input.activityId }),
1996
- };
1997
- };
1998
- const se_RequestCancelExternalWorkflowExecutionDecisionAttributes = (input, context) => {
1999
- return {
2000
- ...(input.control != null && { control: input.control }),
2001
- ...(input.runId != null && { runId: input.runId }),
2002
- ...(input.workflowId != null && { workflowId: input.workflowId }),
2003
- };
2004
- };
2005
- const se_RequestCancelWorkflowExecutionInput = (input, context) => {
2006
- return {
2007
- ...(input.domain != null && { domain: input.domain }),
2008
- ...(input.runId != null && { runId: input.runId }),
2009
- ...(input.workflowId != null && { workflowId: input.workflowId }),
2010
- };
2011
- };
2012
- const se_ResourceTag = (input, context) => {
2013
- return {
2014
- ...(input.key != null && { key: input.key }),
2015
- ...(input.value != null && { value: input.value }),
2016
- };
2017
- };
2018
- const se_ResourceTagKeyList = (input, context) => {
2019
- return input
2020
- .filter((e) => e != null)
2021
- .map((entry) => {
2022
- return entry;
1642
+ return take(input, {
1643
+ latestDate: (_) => Math.round(_.getTime() / 1000),
1644
+ oldestDate: (_) => Math.round(_.getTime() / 1000),
2023
1645
  });
2024
1646
  };
2025
- const se_ResourceTagList = (input, context) => {
2026
- return input
2027
- .filter((e) => e != null)
2028
- .map((entry) => {
2029
- return se_ResourceTag(entry, context);
1647
+ const se_ListClosedWorkflowExecutionsInput = (input, context) => {
1648
+ return take(input, {
1649
+ closeStatusFilter: _json,
1650
+ closeTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
1651
+ domain: [],
1652
+ executionFilter: _json,
1653
+ maximumPageSize: [],
1654
+ nextPageToken: [],
1655
+ reverseOrder: [],
1656
+ startTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
1657
+ tagFilter: _json,
1658
+ typeFilter: _json,
2030
1659
  });
2031
1660
  };
2032
- const se_RespondActivityTaskCanceledInput = (input, context) => {
2033
- return {
2034
- ...(input.details != null && { details: input.details }),
2035
- ...(input.taskToken != null && { taskToken: input.taskToken }),
2036
- };
2037
- };
2038
- const se_RespondActivityTaskCompletedInput = (input, context) => {
2039
- return {
2040
- ...(input.result != null && { result: input.result }),
2041
- ...(input.taskToken != null && { taskToken: input.taskToken }),
2042
- };
2043
- };
2044
- const se_RespondActivityTaskFailedInput = (input, context) => {
2045
- return {
2046
- ...(input.details != null && { details: input.details }),
2047
- ...(input.reason != null && { reason: input.reason }),
2048
- ...(input.taskToken != null && { taskToken: input.taskToken }),
2049
- };
2050
- };
2051
- const se_RespondDecisionTaskCompletedInput = (input, context) => {
2052
- return {
2053
- ...(input.decisions != null && { decisions: se_DecisionList(input.decisions, context) }),
2054
- ...(input.executionContext != null && { executionContext: input.executionContext }),
2055
- ...(input.taskToken != null && { taskToken: input.taskToken }),
2056
- };
2057
- };
2058
- const se_ScheduleActivityTaskDecisionAttributes = (input, context) => {
2059
- return {
2060
- ...(input.activityId != null && { activityId: input.activityId }),
2061
- ...(input.activityType != null && { activityType: se_ActivityType(input.activityType, context) }),
2062
- ...(input.control != null && { control: input.control }),
2063
- ...(input.heartbeatTimeout != null && { heartbeatTimeout: input.heartbeatTimeout }),
2064
- ...(input.input != null && { input: input.input }),
2065
- ...(input.scheduleToCloseTimeout != null && { scheduleToCloseTimeout: input.scheduleToCloseTimeout }),
2066
- ...(input.scheduleToStartTimeout != null && { scheduleToStartTimeout: input.scheduleToStartTimeout }),
2067
- ...(input.startToCloseTimeout != null && { startToCloseTimeout: input.startToCloseTimeout }),
2068
- ...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
2069
- ...(input.taskPriority != null && { taskPriority: input.taskPriority }),
2070
- };
2071
- };
2072
- const se_ScheduleLambdaFunctionDecisionAttributes = (input, context) => {
2073
- return {
2074
- ...(input.control != null && { control: input.control }),
2075
- ...(input.id != null && { id: input.id }),
2076
- ...(input.input != null && { input: input.input }),
2077
- ...(input.name != null && { name: input.name }),
2078
- ...(input.startToCloseTimeout != null && { startToCloseTimeout: input.startToCloseTimeout }),
2079
- };
2080
- };
2081
- const se_SignalExternalWorkflowExecutionDecisionAttributes = (input, context) => {
2082
- return {
2083
- ...(input.control != null && { control: input.control }),
2084
- ...(input.input != null && { input: input.input }),
2085
- ...(input.runId != null && { runId: input.runId }),
2086
- ...(input.signalName != null && { signalName: input.signalName }),
2087
- ...(input.workflowId != null && { workflowId: input.workflowId }),
2088
- };
2089
- };
2090
- const se_SignalWorkflowExecutionInput = (input, context) => {
2091
- return {
2092
- ...(input.domain != null && { domain: input.domain }),
2093
- ...(input.input != null && { input: input.input }),
2094
- ...(input.runId != null && { runId: input.runId }),
2095
- ...(input.signalName != null && { signalName: input.signalName }),
2096
- ...(input.workflowId != null && { workflowId: input.workflowId }),
2097
- };
2098
- };
2099
- const se_StartChildWorkflowExecutionDecisionAttributes = (input, context) => {
2100
- return {
2101
- ...(input.childPolicy != null && { childPolicy: input.childPolicy }),
2102
- ...(input.control != null && { control: input.control }),
2103
- ...(input.executionStartToCloseTimeout != null && {
2104
- executionStartToCloseTimeout: input.executionStartToCloseTimeout,
2105
- }),
2106
- ...(input.input != null && { input: input.input }),
2107
- ...(input.lambdaRole != null && { lambdaRole: input.lambdaRole }),
2108
- ...(input.tagList != null && { tagList: se_TagList(input.tagList, context) }),
2109
- ...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
2110
- ...(input.taskPriority != null && { taskPriority: input.taskPriority }),
2111
- ...(input.taskStartToCloseTimeout != null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
2112
- ...(input.workflowId != null && { workflowId: input.workflowId }),
2113
- ...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
2114
- };
2115
- };
2116
- const se_StartTimerDecisionAttributes = (input, context) => {
2117
- return {
2118
- ...(input.control != null && { control: input.control }),
2119
- ...(input.startToFireTimeout != null && { startToFireTimeout: input.startToFireTimeout }),
2120
- ...(input.timerId != null && { timerId: input.timerId }),
2121
- };
2122
- };
2123
- const se_StartWorkflowExecutionInput = (input, context) => {
2124
- return {
2125
- ...(input.childPolicy != null && { childPolicy: input.childPolicy }),
2126
- ...(input.domain != null && { domain: input.domain }),
2127
- ...(input.executionStartToCloseTimeout != null && {
2128
- executionStartToCloseTimeout: input.executionStartToCloseTimeout,
2129
- }),
2130
- ...(input.input != null && { input: input.input }),
2131
- ...(input.lambdaRole != null && { lambdaRole: input.lambdaRole }),
2132
- ...(input.tagList != null && { tagList: se_TagList(input.tagList, context) }),
2133
- ...(input.taskList != null && { taskList: se_TaskList(input.taskList, context) }),
2134
- ...(input.taskPriority != null && { taskPriority: input.taskPriority }),
2135
- ...(input.taskStartToCloseTimeout != null && { taskStartToCloseTimeout: input.taskStartToCloseTimeout }),
2136
- ...(input.workflowId != null && { workflowId: input.workflowId }),
2137
- ...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
2138
- };
2139
- };
2140
- const se_TagFilter = (input, context) => {
2141
- return {
2142
- ...(input.tag != null && { tag: input.tag }),
2143
- };
2144
- };
2145
- const se_TagList = (input, context) => {
2146
- return input
2147
- .filter((e) => e != null)
2148
- .map((entry) => {
2149
- return entry;
1661
+ const se_ListOpenWorkflowExecutionsInput = (input, context) => {
1662
+ return take(input, {
1663
+ domain: [],
1664
+ executionFilter: _json,
1665
+ maximumPageSize: [],
1666
+ nextPageToken: [],
1667
+ reverseOrder: [],
1668
+ startTimeFilter: (_) => se_ExecutionTimeFilter(_, context),
1669
+ tagFilter: _json,
1670
+ typeFilter: _json,
2150
1671
  });
2151
1672
  };
2152
- const se_TagResourceInput = (input, context) => {
2153
- return {
2154
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2155
- ...(input.tags != null && { tags: se_ResourceTagList(input.tags, context) }),
2156
- };
2157
- };
2158
- const se_TaskList = (input, context) => {
2159
- return {
2160
- ...(input.name != null && { name: input.name }),
2161
- };
2162
- };
2163
- const se_TerminateWorkflowExecutionInput = (input, context) => {
2164
- return {
2165
- ...(input.childPolicy != null && { childPolicy: input.childPolicy }),
2166
- ...(input.details != null && { details: input.details }),
2167
- ...(input.domain != null && { domain: input.domain }),
2168
- ...(input.reason != null && { reason: input.reason }),
2169
- ...(input.runId != null && { runId: input.runId }),
2170
- ...(input.workflowId != null && { workflowId: input.workflowId }),
2171
- };
2172
- };
2173
- const se_UndeprecateActivityTypeInput = (input, context) => {
2174
- return {
2175
- ...(input.activityType != null && { activityType: se_ActivityType(input.activityType, context) }),
2176
- ...(input.domain != null && { domain: input.domain }),
2177
- };
2178
- };
2179
- const se_UndeprecateDomainInput = (input, context) => {
2180
- return {
2181
- ...(input.name != null && { name: input.name }),
2182
- };
2183
- };
2184
- const se_UndeprecateWorkflowTypeInput = (input, context) => {
2185
- return {
2186
- ...(input.domain != null && { domain: input.domain }),
2187
- ...(input.workflowType != null && { workflowType: se_WorkflowType(input.workflowType, context) }),
2188
- };
2189
- };
2190
- const se_UntagResourceInput = (input, context) => {
2191
- return {
2192
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2193
- ...(input.tagKeys != null && { tagKeys: se_ResourceTagKeyList(input.tagKeys, context) }),
2194
- };
2195
- };
2196
- const se_WorkflowExecution = (input, context) => {
2197
- return {
2198
- ...(input.runId != null && { runId: input.runId }),
2199
- ...(input.workflowId != null && { workflowId: input.workflowId }),
2200
- };
2201
- };
2202
- const se_WorkflowExecutionFilter = (input, context) => {
2203
- return {
2204
- ...(input.workflowId != null && { workflowId: input.workflowId }),
2205
- };
2206
- };
2207
- const se_WorkflowType = (input, context) => {
2208
- return {
2209
- ...(input.name != null && { name: input.name }),
2210
- ...(input.version != null && { version: input.version }),
2211
- };
2212
- };
2213
- const se_WorkflowTypeFilter = (input, context) => {
2214
- return {
2215
- ...(input.name != null && { name: input.name }),
2216
- ...(input.version != null && { version: input.version }),
2217
- };
2218
- };
2219
- const de_ActivityTask = (output, context) => {
2220
- return {
2221
- activityId: __expectString(output.activityId),
2222
- activityType: output.activityType != null ? de_ActivityType(output.activityType, context) : undefined,
2223
- input: __expectString(output.input),
2224
- startedEventId: __expectLong(output.startedEventId),
2225
- taskToken: __expectString(output.taskToken),
2226
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2227
- };
2228
- };
2229
- const de_ActivityTaskCanceledEventAttributes = (output, context) => {
2230
- return {
2231
- details: __expectString(output.details),
2232
- latestCancelRequestedEventId: __expectLong(output.latestCancelRequestedEventId),
2233
- scheduledEventId: __expectLong(output.scheduledEventId),
2234
- startedEventId: __expectLong(output.startedEventId),
2235
- };
2236
- };
2237
- const de_ActivityTaskCancelRequestedEventAttributes = (output, context) => {
2238
- return {
2239
- activityId: __expectString(output.activityId),
2240
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2241
- };
2242
- };
2243
- const de_ActivityTaskCompletedEventAttributes = (output, context) => {
2244
- return {
2245
- result: __expectString(output.result),
2246
- scheduledEventId: __expectLong(output.scheduledEventId),
2247
- startedEventId: __expectLong(output.startedEventId),
2248
- };
2249
- };
2250
- const de_ActivityTaskFailedEventAttributes = (output, context) => {
2251
- return {
2252
- details: __expectString(output.details),
2253
- reason: __expectString(output.reason),
2254
- scheduledEventId: __expectLong(output.scheduledEventId),
2255
- startedEventId: __expectLong(output.startedEventId),
2256
- };
2257
- };
2258
- const de_ActivityTaskScheduledEventAttributes = (output, context) => {
2259
- return {
2260
- activityId: __expectString(output.activityId),
2261
- activityType: output.activityType != null ? de_ActivityType(output.activityType, context) : undefined,
2262
- control: __expectString(output.control),
2263
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2264
- heartbeatTimeout: __expectString(output.heartbeatTimeout),
2265
- input: __expectString(output.input),
2266
- scheduleToCloseTimeout: __expectString(output.scheduleToCloseTimeout),
2267
- scheduleToStartTimeout: __expectString(output.scheduleToStartTimeout),
2268
- startToCloseTimeout: __expectString(output.startToCloseTimeout),
2269
- taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
2270
- taskPriority: __expectString(output.taskPriority),
2271
- };
2272
- };
2273
- const de_ActivityTaskStartedEventAttributes = (output, context) => {
2274
- return {
2275
- identity: __expectString(output.identity),
2276
- scheduledEventId: __expectLong(output.scheduledEventId),
2277
- };
2278
- };
2279
- const de_ActivityTaskStatus = (output, context) => {
2280
- return {
2281
- cancelRequested: __expectBoolean(output.cancelRequested),
2282
- };
2283
- };
2284
- const de_ActivityTaskTimedOutEventAttributes = (output, context) => {
2285
- return {
2286
- details: __expectString(output.details),
2287
- scheduledEventId: __expectLong(output.scheduledEventId),
2288
- startedEventId: __expectLong(output.startedEventId),
2289
- timeoutType: __expectString(output.timeoutType),
2290
- };
2291
- };
2292
- const de_ActivityType = (output, context) => {
2293
- return {
2294
- name: __expectString(output.name),
2295
- version: __expectString(output.version),
2296
- };
2297
- };
2298
- const de_ActivityTypeConfiguration = (output, context) => {
2299
- return {
2300
- defaultTaskHeartbeatTimeout: __expectString(output.defaultTaskHeartbeatTimeout),
2301
- defaultTaskList: output.defaultTaskList != null ? de_TaskList(output.defaultTaskList, context) : undefined,
2302
- defaultTaskPriority: __expectString(output.defaultTaskPriority),
2303
- defaultTaskScheduleToCloseTimeout: __expectString(output.defaultTaskScheduleToCloseTimeout),
2304
- defaultTaskScheduleToStartTimeout: __expectString(output.defaultTaskScheduleToStartTimeout),
2305
- defaultTaskStartToCloseTimeout: __expectString(output.defaultTaskStartToCloseTimeout),
2306
- };
2307
- };
2308
1673
  const de_ActivityTypeDetail = (output, context) => {
2309
- return {
2310
- configuration: output.configuration != null ? de_ActivityTypeConfiguration(output.configuration, context) : undefined,
2311
- typeInfo: output.typeInfo != null ? de_ActivityTypeInfo(output.typeInfo, context) : undefined,
2312
- };
1674
+ return take(output, {
1675
+ configuration: _json,
1676
+ typeInfo: (_) => de_ActivityTypeInfo(_, context),
1677
+ });
2313
1678
  };
2314
1679
  const de_ActivityTypeInfo = (output, context) => {
2315
- return {
2316
- activityType: output.activityType != null ? de_ActivityType(output.activityType, context) : undefined,
2317
- creationDate: output.creationDate != null
2318
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
2319
- : undefined,
2320
- deprecationDate: output.deprecationDate != null
2321
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.deprecationDate)))
2322
- : undefined,
2323
- description: __expectString(output.description),
2324
- status: __expectString(output.status),
2325
- };
1680
+ return take(output, {
1681
+ activityType: _json,
1682
+ creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1683
+ deprecationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1684
+ description: __expectString,
1685
+ status: __expectString,
1686
+ });
2326
1687
  };
2327
1688
  const de_ActivityTypeInfoList = (output, context) => {
2328
1689
  const retVal = (output || [])
2329
1690
  .filter((e) => e != null)
2330
1691
  .map((entry) => {
2331
- if (entry === null) {
2332
- return null;
2333
- }
2334
1692
  return de_ActivityTypeInfo(entry, context);
2335
1693
  });
2336
1694
  return retVal;
2337
1695
  };
2338
1696
  const de_ActivityTypeInfos = (output, context) => {
2339
- return {
2340
- nextPageToken: __expectString(output.nextPageToken),
2341
- typeInfos: output.typeInfos != null ? de_ActivityTypeInfoList(output.typeInfos, context) : undefined,
2342
- };
2343
- };
2344
- const de_CancelTimerFailedEventAttributes = (output, context) => {
2345
- return {
2346
- cause: __expectString(output.cause),
2347
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2348
- timerId: __expectString(output.timerId),
2349
- };
2350
- };
2351
- const de_CancelWorkflowExecutionFailedEventAttributes = (output, context) => {
2352
- return {
2353
- cause: __expectString(output.cause),
2354
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2355
- };
2356
- };
2357
- const de_ChildWorkflowExecutionCanceledEventAttributes = (output, context) => {
2358
- return {
2359
- details: __expectString(output.details),
2360
- initiatedEventId: __expectLong(output.initiatedEventId),
2361
- startedEventId: __expectLong(output.startedEventId),
2362
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2363
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
2364
- };
2365
- };
2366
- const de_ChildWorkflowExecutionCompletedEventAttributes = (output, context) => {
2367
- return {
2368
- initiatedEventId: __expectLong(output.initiatedEventId),
2369
- result: __expectString(output.result),
2370
- startedEventId: __expectLong(output.startedEventId),
2371
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2372
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
2373
- };
2374
- };
2375
- const de_ChildWorkflowExecutionFailedEventAttributes = (output, context) => {
2376
- return {
2377
- details: __expectString(output.details),
2378
- initiatedEventId: __expectLong(output.initiatedEventId),
2379
- reason: __expectString(output.reason),
2380
- startedEventId: __expectLong(output.startedEventId),
2381
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2382
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
2383
- };
2384
- };
2385
- const de_ChildWorkflowExecutionStartedEventAttributes = (output, context) => {
2386
- return {
2387
- initiatedEventId: __expectLong(output.initiatedEventId),
2388
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2389
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
2390
- };
2391
- };
2392
- const de_ChildWorkflowExecutionTerminatedEventAttributes = (output, context) => {
2393
- return {
2394
- initiatedEventId: __expectLong(output.initiatedEventId),
2395
- startedEventId: __expectLong(output.startedEventId),
2396
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2397
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
2398
- };
2399
- };
2400
- const de_ChildWorkflowExecutionTimedOutEventAttributes = (output, context) => {
2401
- return {
2402
- initiatedEventId: __expectLong(output.initiatedEventId),
2403
- startedEventId: __expectLong(output.startedEventId),
2404
- timeoutType: __expectString(output.timeoutType),
2405
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2406
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
2407
- };
2408
- };
2409
- const de_CompleteWorkflowExecutionFailedEventAttributes = (output, context) => {
2410
- return {
2411
- cause: __expectString(output.cause),
2412
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2413
- };
2414
- };
2415
- const de_ContinueAsNewWorkflowExecutionFailedEventAttributes = (output, context) => {
2416
- return {
2417
- cause: __expectString(output.cause),
2418
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2419
- };
1697
+ return take(output, {
1698
+ nextPageToken: __expectString,
1699
+ typeInfos: (_) => de_ActivityTypeInfoList(_, context),
1700
+ });
2420
1701
  };
2421
1702
  const de_DecisionTask = (output, context) => {
2422
- return {
2423
- events: output.events != null ? de_HistoryEventList(output.events, context) : undefined,
2424
- nextPageToken: __expectString(output.nextPageToken),
2425
- previousStartedEventId: __expectLong(output.previousStartedEventId),
2426
- startedEventId: __expectLong(output.startedEventId),
2427
- taskToken: __expectString(output.taskToken),
2428
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2429
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
2430
- };
2431
- };
2432
- const de_DecisionTaskCompletedEventAttributes = (output, context) => {
2433
- return {
2434
- executionContext: __expectString(output.executionContext),
2435
- scheduledEventId: __expectLong(output.scheduledEventId),
2436
- startedEventId: __expectLong(output.startedEventId),
2437
- };
2438
- };
2439
- const de_DecisionTaskScheduledEventAttributes = (output, context) => {
2440
- return {
2441
- startToCloseTimeout: __expectString(output.startToCloseTimeout),
2442
- taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
2443
- taskPriority: __expectString(output.taskPriority),
2444
- };
2445
- };
2446
- const de_DecisionTaskStartedEventAttributes = (output, context) => {
2447
- return {
2448
- identity: __expectString(output.identity),
2449
- scheduledEventId: __expectLong(output.scheduledEventId),
2450
- };
2451
- };
2452
- const de_DecisionTaskTimedOutEventAttributes = (output, context) => {
2453
- return {
2454
- scheduledEventId: __expectLong(output.scheduledEventId),
2455
- startedEventId: __expectLong(output.startedEventId),
2456
- timeoutType: __expectString(output.timeoutType),
2457
- };
2458
- };
2459
- const de_DefaultUndefinedFault = (output, context) => {
2460
- return {
2461
- message: __expectString(output.message),
2462
- };
2463
- };
2464
- const de_DomainAlreadyExistsFault = (output, context) => {
2465
- return {
2466
- message: __expectString(output.message),
2467
- };
2468
- };
2469
- const de_DomainConfiguration = (output, context) => {
2470
- return {
2471
- workflowExecutionRetentionPeriodInDays: __expectString(output.workflowExecutionRetentionPeriodInDays),
2472
- };
2473
- };
2474
- const de_DomainDeprecatedFault = (output, context) => {
2475
- return {
2476
- message: __expectString(output.message),
2477
- };
2478
- };
2479
- const de_DomainDetail = (output, context) => {
2480
- return {
2481
- configuration: output.configuration != null ? de_DomainConfiguration(output.configuration, context) : undefined,
2482
- domainInfo: output.domainInfo != null ? de_DomainInfo(output.domainInfo, context) : undefined,
2483
- };
2484
- };
2485
- const de_DomainInfo = (output, context) => {
2486
- return {
2487
- arn: __expectString(output.arn),
2488
- description: __expectString(output.description),
2489
- name: __expectString(output.name),
2490
- status: __expectString(output.status),
2491
- };
2492
- };
2493
- const de_DomainInfoList = (output, context) => {
2494
- const retVal = (output || [])
2495
- .filter((e) => e != null)
2496
- .map((entry) => {
2497
- if (entry === null) {
2498
- return null;
2499
- }
2500
- return de_DomainInfo(entry, context);
1703
+ return take(output, {
1704
+ events: (_) => de_HistoryEventList(_, context),
1705
+ nextPageToken: __expectString,
1706
+ previousStartedEventId: __expectLong,
1707
+ startedEventId: __expectLong,
1708
+ taskToken: __expectString,
1709
+ workflowExecution: _json,
1710
+ workflowType: _json,
2501
1711
  });
2502
- return retVal;
2503
- };
2504
- const de_DomainInfos = (output, context) => {
2505
- return {
2506
- domainInfos: output.domainInfos != null ? de_DomainInfoList(output.domainInfos, context) : undefined,
2507
- nextPageToken: __expectString(output.nextPageToken),
2508
- };
2509
- };
2510
- const de_ExternalWorkflowExecutionCancelRequestedEventAttributes = (output, context) => {
2511
- return {
2512
- initiatedEventId: __expectLong(output.initiatedEventId),
2513
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2514
- };
2515
- };
2516
- const de_ExternalWorkflowExecutionSignaledEventAttributes = (output, context) => {
2517
- return {
2518
- initiatedEventId: __expectLong(output.initiatedEventId),
2519
- workflowExecution: output.workflowExecution != null ? de_WorkflowExecution(output.workflowExecution, context) : undefined,
2520
- };
2521
- };
2522
- const de_FailWorkflowExecutionFailedEventAttributes = (output, context) => {
2523
- return {
2524
- cause: __expectString(output.cause),
2525
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2526
- };
2527
1712
  };
2528
1713
  const de_History = (output, context) => {
2529
- return {
2530
- events: output.events != null ? de_HistoryEventList(output.events, context) : undefined,
2531
- nextPageToken: __expectString(output.nextPageToken),
2532
- };
1714
+ return take(output, {
1715
+ events: (_) => de_HistoryEventList(_, context),
1716
+ nextPageToken: __expectString,
1717
+ });
2533
1718
  };
2534
1719
  const de_HistoryEvent = (output, context) => {
2535
- return {
2536
- activityTaskCancelRequestedEventAttributes: output.activityTaskCancelRequestedEventAttributes != null
2537
- ? de_ActivityTaskCancelRequestedEventAttributes(output.activityTaskCancelRequestedEventAttributes, context)
2538
- : undefined,
2539
- activityTaskCanceledEventAttributes: output.activityTaskCanceledEventAttributes != null
2540
- ? de_ActivityTaskCanceledEventAttributes(output.activityTaskCanceledEventAttributes, context)
2541
- : undefined,
2542
- activityTaskCompletedEventAttributes: output.activityTaskCompletedEventAttributes != null
2543
- ? de_ActivityTaskCompletedEventAttributes(output.activityTaskCompletedEventAttributes, context)
2544
- : undefined,
2545
- activityTaskFailedEventAttributes: output.activityTaskFailedEventAttributes != null
2546
- ? de_ActivityTaskFailedEventAttributes(output.activityTaskFailedEventAttributes, context)
2547
- : undefined,
2548
- activityTaskScheduledEventAttributes: output.activityTaskScheduledEventAttributes != null
2549
- ? de_ActivityTaskScheduledEventAttributes(output.activityTaskScheduledEventAttributes, context)
2550
- : undefined,
2551
- activityTaskStartedEventAttributes: output.activityTaskStartedEventAttributes != null
2552
- ? de_ActivityTaskStartedEventAttributes(output.activityTaskStartedEventAttributes, context)
2553
- : undefined,
2554
- activityTaskTimedOutEventAttributes: output.activityTaskTimedOutEventAttributes != null
2555
- ? de_ActivityTaskTimedOutEventAttributes(output.activityTaskTimedOutEventAttributes, context)
2556
- : undefined,
2557
- cancelTimerFailedEventAttributes: output.cancelTimerFailedEventAttributes != null
2558
- ? de_CancelTimerFailedEventAttributes(output.cancelTimerFailedEventAttributes, context)
2559
- : undefined,
2560
- cancelWorkflowExecutionFailedEventAttributes: output.cancelWorkflowExecutionFailedEventAttributes != null
2561
- ? de_CancelWorkflowExecutionFailedEventAttributes(output.cancelWorkflowExecutionFailedEventAttributes, context)
2562
- : undefined,
2563
- childWorkflowExecutionCanceledEventAttributes: output.childWorkflowExecutionCanceledEventAttributes != null
2564
- ? de_ChildWorkflowExecutionCanceledEventAttributes(output.childWorkflowExecutionCanceledEventAttributes, context)
2565
- : undefined,
2566
- childWorkflowExecutionCompletedEventAttributes: output.childWorkflowExecutionCompletedEventAttributes != null
2567
- ? de_ChildWorkflowExecutionCompletedEventAttributes(output.childWorkflowExecutionCompletedEventAttributes, context)
2568
- : undefined,
2569
- childWorkflowExecutionFailedEventAttributes: output.childWorkflowExecutionFailedEventAttributes != null
2570
- ? de_ChildWorkflowExecutionFailedEventAttributes(output.childWorkflowExecutionFailedEventAttributes, context)
2571
- : undefined,
2572
- childWorkflowExecutionStartedEventAttributes: output.childWorkflowExecutionStartedEventAttributes != null
2573
- ? de_ChildWorkflowExecutionStartedEventAttributes(output.childWorkflowExecutionStartedEventAttributes, context)
2574
- : undefined,
2575
- childWorkflowExecutionTerminatedEventAttributes: output.childWorkflowExecutionTerminatedEventAttributes != null
2576
- ? de_ChildWorkflowExecutionTerminatedEventAttributes(output.childWorkflowExecutionTerminatedEventAttributes, context)
2577
- : undefined,
2578
- childWorkflowExecutionTimedOutEventAttributes: output.childWorkflowExecutionTimedOutEventAttributes != null
2579
- ? de_ChildWorkflowExecutionTimedOutEventAttributes(output.childWorkflowExecutionTimedOutEventAttributes, context)
2580
- : undefined,
2581
- completeWorkflowExecutionFailedEventAttributes: output.completeWorkflowExecutionFailedEventAttributes != null
2582
- ? de_CompleteWorkflowExecutionFailedEventAttributes(output.completeWorkflowExecutionFailedEventAttributes, context)
2583
- : undefined,
2584
- continueAsNewWorkflowExecutionFailedEventAttributes: output.continueAsNewWorkflowExecutionFailedEventAttributes != null
2585
- ? de_ContinueAsNewWorkflowExecutionFailedEventAttributes(output.continueAsNewWorkflowExecutionFailedEventAttributes, context)
2586
- : undefined,
2587
- decisionTaskCompletedEventAttributes: output.decisionTaskCompletedEventAttributes != null
2588
- ? de_DecisionTaskCompletedEventAttributes(output.decisionTaskCompletedEventAttributes, context)
2589
- : undefined,
2590
- decisionTaskScheduledEventAttributes: output.decisionTaskScheduledEventAttributes != null
2591
- ? de_DecisionTaskScheduledEventAttributes(output.decisionTaskScheduledEventAttributes, context)
2592
- : undefined,
2593
- decisionTaskStartedEventAttributes: output.decisionTaskStartedEventAttributes != null
2594
- ? de_DecisionTaskStartedEventAttributes(output.decisionTaskStartedEventAttributes, context)
2595
- : undefined,
2596
- decisionTaskTimedOutEventAttributes: output.decisionTaskTimedOutEventAttributes != null
2597
- ? de_DecisionTaskTimedOutEventAttributes(output.decisionTaskTimedOutEventAttributes, context)
2598
- : undefined,
2599
- eventId: __expectLong(output.eventId),
2600
- eventTimestamp: output.eventTimestamp != null
2601
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTimestamp)))
2602
- : undefined,
2603
- eventType: __expectString(output.eventType),
2604
- externalWorkflowExecutionCancelRequestedEventAttributes: output.externalWorkflowExecutionCancelRequestedEventAttributes != null
2605
- ? de_ExternalWorkflowExecutionCancelRequestedEventAttributes(output.externalWorkflowExecutionCancelRequestedEventAttributes, context)
2606
- : undefined,
2607
- externalWorkflowExecutionSignaledEventAttributes: output.externalWorkflowExecutionSignaledEventAttributes != null
2608
- ? de_ExternalWorkflowExecutionSignaledEventAttributes(output.externalWorkflowExecutionSignaledEventAttributes, context)
2609
- : undefined,
2610
- failWorkflowExecutionFailedEventAttributes: output.failWorkflowExecutionFailedEventAttributes != null
2611
- ? de_FailWorkflowExecutionFailedEventAttributes(output.failWorkflowExecutionFailedEventAttributes, context)
2612
- : undefined,
2613
- lambdaFunctionCompletedEventAttributes: output.lambdaFunctionCompletedEventAttributes != null
2614
- ? de_LambdaFunctionCompletedEventAttributes(output.lambdaFunctionCompletedEventAttributes, context)
2615
- : undefined,
2616
- lambdaFunctionFailedEventAttributes: output.lambdaFunctionFailedEventAttributes != null
2617
- ? de_LambdaFunctionFailedEventAttributes(output.lambdaFunctionFailedEventAttributes, context)
2618
- : undefined,
2619
- lambdaFunctionScheduledEventAttributes: output.lambdaFunctionScheduledEventAttributes != null
2620
- ? de_LambdaFunctionScheduledEventAttributes(output.lambdaFunctionScheduledEventAttributes, context)
2621
- : undefined,
2622
- lambdaFunctionStartedEventAttributes: output.lambdaFunctionStartedEventAttributes != null
2623
- ? de_LambdaFunctionStartedEventAttributes(output.lambdaFunctionStartedEventAttributes, context)
2624
- : undefined,
2625
- lambdaFunctionTimedOutEventAttributes: output.lambdaFunctionTimedOutEventAttributes != null
2626
- ? de_LambdaFunctionTimedOutEventAttributes(output.lambdaFunctionTimedOutEventAttributes, context)
2627
- : undefined,
2628
- markerRecordedEventAttributes: output.markerRecordedEventAttributes != null
2629
- ? de_MarkerRecordedEventAttributes(output.markerRecordedEventAttributes, context)
2630
- : undefined,
2631
- recordMarkerFailedEventAttributes: output.recordMarkerFailedEventAttributes != null
2632
- ? de_RecordMarkerFailedEventAttributes(output.recordMarkerFailedEventAttributes, context)
2633
- : undefined,
2634
- requestCancelActivityTaskFailedEventAttributes: output.requestCancelActivityTaskFailedEventAttributes != null
2635
- ? de_RequestCancelActivityTaskFailedEventAttributes(output.requestCancelActivityTaskFailedEventAttributes, context)
2636
- : undefined,
2637
- requestCancelExternalWorkflowExecutionFailedEventAttributes: output.requestCancelExternalWorkflowExecutionFailedEventAttributes != null
2638
- ? de_RequestCancelExternalWorkflowExecutionFailedEventAttributes(output.requestCancelExternalWorkflowExecutionFailedEventAttributes, context)
2639
- : undefined,
2640
- requestCancelExternalWorkflowExecutionInitiatedEventAttributes: output.requestCancelExternalWorkflowExecutionInitiatedEventAttributes != null
2641
- ? de_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes(output.requestCancelExternalWorkflowExecutionInitiatedEventAttributes, context)
2642
- : undefined,
2643
- scheduleActivityTaskFailedEventAttributes: output.scheduleActivityTaskFailedEventAttributes != null
2644
- ? de_ScheduleActivityTaskFailedEventAttributes(output.scheduleActivityTaskFailedEventAttributes, context)
2645
- : undefined,
2646
- scheduleLambdaFunctionFailedEventAttributes: output.scheduleLambdaFunctionFailedEventAttributes != null
2647
- ? de_ScheduleLambdaFunctionFailedEventAttributes(output.scheduleLambdaFunctionFailedEventAttributes, context)
2648
- : undefined,
2649
- signalExternalWorkflowExecutionFailedEventAttributes: output.signalExternalWorkflowExecutionFailedEventAttributes != null
2650
- ? de_SignalExternalWorkflowExecutionFailedEventAttributes(output.signalExternalWorkflowExecutionFailedEventAttributes, context)
2651
- : undefined,
2652
- signalExternalWorkflowExecutionInitiatedEventAttributes: output.signalExternalWorkflowExecutionInitiatedEventAttributes != null
2653
- ? de_SignalExternalWorkflowExecutionInitiatedEventAttributes(output.signalExternalWorkflowExecutionInitiatedEventAttributes, context)
2654
- : undefined,
2655
- startChildWorkflowExecutionFailedEventAttributes: output.startChildWorkflowExecutionFailedEventAttributes != null
2656
- ? de_StartChildWorkflowExecutionFailedEventAttributes(output.startChildWorkflowExecutionFailedEventAttributes, context)
2657
- : undefined,
2658
- startChildWorkflowExecutionInitiatedEventAttributes: output.startChildWorkflowExecutionInitiatedEventAttributes != null
2659
- ? de_StartChildWorkflowExecutionInitiatedEventAttributes(output.startChildWorkflowExecutionInitiatedEventAttributes, context)
2660
- : undefined,
2661
- startLambdaFunctionFailedEventAttributes: output.startLambdaFunctionFailedEventAttributes != null
2662
- ? de_StartLambdaFunctionFailedEventAttributes(output.startLambdaFunctionFailedEventAttributes, context)
2663
- : undefined,
2664
- startTimerFailedEventAttributes: output.startTimerFailedEventAttributes != null
2665
- ? de_StartTimerFailedEventAttributes(output.startTimerFailedEventAttributes, context)
2666
- : undefined,
2667
- timerCanceledEventAttributes: output.timerCanceledEventAttributes != null
2668
- ? de_TimerCanceledEventAttributes(output.timerCanceledEventAttributes, context)
2669
- : undefined,
2670
- timerFiredEventAttributes: output.timerFiredEventAttributes != null
2671
- ? de_TimerFiredEventAttributes(output.timerFiredEventAttributes, context)
2672
- : undefined,
2673
- timerStartedEventAttributes: output.timerStartedEventAttributes != null
2674
- ? de_TimerStartedEventAttributes(output.timerStartedEventAttributes, context)
2675
- : undefined,
2676
- workflowExecutionCancelRequestedEventAttributes: output.workflowExecutionCancelRequestedEventAttributes != null
2677
- ? de_WorkflowExecutionCancelRequestedEventAttributes(output.workflowExecutionCancelRequestedEventAttributes, context)
2678
- : undefined,
2679
- workflowExecutionCanceledEventAttributes: output.workflowExecutionCanceledEventAttributes != null
2680
- ? de_WorkflowExecutionCanceledEventAttributes(output.workflowExecutionCanceledEventAttributes, context)
2681
- : undefined,
2682
- workflowExecutionCompletedEventAttributes: output.workflowExecutionCompletedEventAttributes != null
2683
- ? de_WorkflowExecutionCompletedEventAttributes(output.workflowExecutionCompletedEventAttributes, context)
2684
- : undefined,
2685
- workflowExecutionContinuedAsNewEventAttributes: output.workflowExecutionContinuedAsNewEventAttributes != null
2686
- ? de_WorkflowExecutionContinuedAsNewEventAttributes(output.workflowExecutionContinuedAsNewEventAttributes, context)
2687
- : undefined,
2688
- workflowExecutionFailedEventAttributes: output.workflowExecutionFailedEventAttributes != null
2689
- ? de_WorkflowExecutionFailedEventAttributes(output.workflowExecutionFailedEventAttributes, context)
2690
- : undefined,
2691
- workflowExecutionSignaledEventAttributes: output.workflowExecutionSignaledEventAttributes != null
2692
- ? de_WorkflowExecutionSignaledEventAttributes(output.workflowExecutionSignaledEventAttributes, context)
2693
- : undefined,
2694
- workflowExecutionStartedEventAttributes: output.workflowExecutionStartedEventAttributes != null
2695
- ? de_WorkflowExecutionStartedEventAttributes(output.workflowExecutionStartedEventAttributes, context)
2696
- : undefined,
2697
- workflowExecutionTerminatedEventAttributes: output.workflowExecutionTerminatedEventAttributes != null
2698
- ? de_WorkflowExecutionTerminatedEventAttributes(output.workflowExecutionTerminatedEventAttributes, context)
2699
- : undefined,
2700
- workflowExecutionTimedOutEventAttributes: output.workflowExecutionTimedOutEventAttributes != null
2701
- ? de_WorkflowExecutionTimedOutEventAttributes(output.workflowExecutionTimedOutEventAttributes, context)
2702
- : undefined,
2703
- };
1720
+ return take(output, {
1721
+ activityTaskCancelRequestedEventAttributes: _json,
1722
+ activityTaskCanceledEventAttributes: _json,
1723
+ activityTaskCompletedEventAttributes: _json,
1724
+ activityTaskFailedEventAttributes: _json,
1725
+ activityTaskScheduledEventAttributes: _json,
1726
+ activityTaskStartedEventAttributes: _json,
1727
+ activityTaskTimedOutEventAttributes: _json,
1728
+ cancelTimerFailedEventAttributes: _json,
1729
+ cancelWorkflowExecutionFailedEventAttributes: _json,
1730
+ childWorkflowExecutionCanceledEventAttributes: _json,
1731
+ childWorkflowExecutionCompletedEventAttributes: _json,
1732
+ childWorkflowExecutionFailedEventAttributes: _json,
1733
+ childWorkflowExecutionStartedEventAttributes: _json,
1734
+ childWorkflowExecutionTerminatedEventAttributes: _json,
1735
+ childWorkflowExecutionTimedOutEventAttributes: _json,
1736
+ completeWorkflowExecutionFailedEventAttributes: _json,
1737
+ continueAsNewWorkflowExecutionFailedEventAttributes: _json,
1738
+ decisionTaskCompletedEventAttributes: _json,
1739
+ decisionTaskScheduledEventAttributes: _json,
1740
+ decisionTaskStartedEventAttributes: _json,
1741
+ decisionTaskTimedOutEventAttributes: _json,
1742
+ eventId: __expectLong,
1743
+ eventTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1744
+ eventType: __expectString,
1745
+ externalWorkflowExecutionCancelRequestedEventAttributes: _json,
1746
+ externalWorkflowExecutionSignaledEventAttributes: _json,
1747
+ failWorkflowExecutionFailedEventAttributes: _json,
1748
+ lambdaFunctionCompletedEventAttributes: _json,
1749
+ lambdaFunctionFailedEventAttributes: _json,
1750
+ lambdaFunctionScheduledEventAttributes: _json,
1751
+ lambdaFunctionStartedEventAttributes: _json,
1752
+ lambdaFunctionTimedOutEventAttributes: _json,
1753
+ markerRecordedEventAttributes: _json,
1754
+ recordMarkerFailedEventAttributes: _json,
1755
+ requestCancelActivityTaskFailedEventAttributes: _json,
1756
+ requestCancelExternalWorkflowExecutionFailedEventAttributes: _json,
1757
+ requestCancelExternalWorkflowExecutionInitiatedEventAttributes: _json,
1758
+ scheduleActivityTaskFailedEventAttributes: _json,
1759
+ scheduleLambdaFunctionFailedEventAttributes: _json,
1760
+ signalExternalWorkflowExecutionFailedEventAttributes: _json,
1761
+ signalExternalWorkflowExecutionInitiatedEventAttributes: _json,
1762
+ startChildWorkflowExecutionFailedEventAttributes: _json,
1763
+ startChildWorkflowExecutionInitiatedEventAttributes: _json,
1764
+ startLambdaFunctionFailedEventAttributes: _json,
1765
+ startTimerFailedEventAttributes: _json,
1766
+ timerCanceledEventAttributes: _json,
1767
+ timerFiredEventAttributes: _json,
1768
+ timerStartedEventAttributes: _json,
1769
+ workflowExecutionCancelRequestedEventAttributes: _json,
1770
+ workflowExecutionCanceledEventAttributes: _json,
1771
+ workflowExecutionCompletedEventAttributes: _json,
1772
+ workflowExecutionContinuedAsNewEventAttributes: _json,
1773
+ workflowExecutionFailedEventAttributes: _json,
1774
+ workflowExecutionSignaledEventAttributes: _json,
1775
+ workflowExecutionStartedEventAttributes: _json,
1776
+ workflowExecutionTerminatedEventAttributes: _json,
1777
+ workflowExecutionTimedOutEventAttributes: _json,
1778
+ });
2704
1779
  };
2705
1780
  const de_HistoryEventList = (output, context) => {
2706
1781
  const retVal = (output || [])
2707
1782
  .filter((e) => e != null)
2708
1783
  .map((entry) => {
2709
- if (entry === null) {
2710
- return null;
2711
- }
2712
1784
  return de_HistoryEvent(entry, context);
2713
1785
  });
2714
1786
  return retVal;
2715
1787
  };
2716
- const de_LambdaFunctionCompletedEventAttributes = (output, context) => {
2717
- return {
2718
- result: __expectString(output.result),
2719
- scheduledEventId: __expectLong(output.scheduledEventId),
2720
- startedEventId: __expectLong(output.startedEventId),
2721
- };
2722
- };
2723
- const de_LambdaFunctionFailedEventAttributes = (output, context) => {
2724
- return {
2725
- details: __expectString(output.details),
2726
- reason: __expectString(output.reason),
2727
- scheduledEventId: __expectLong(output.scheduledEventId),
2728
- startedEventId: __expectLong(output.startedEventId),
2729
- };
2730
- };
2731
- const de_LambdaFunctionScheduledEventAttributes = (output, context) => {
2732
- return {
2733
- control: __expectString(output.control),
2734
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2735
- id: __expectString(output.id),
2736
- input: __expectString(output.input),
2737
- name: __expectString(output.name),
2738
- startToCloseTimeout: __expectString(output.startToCloseTimeout),
2739
- };
2740
- };
2741
- const de_LambdaFunctionStartedEventAttributes = (output, context) => {
2742
- return {
2743
- scheduledEventId: __expectLong(output.scheduledEventId),
2744
- };
2745
- };
2746
- const de_LambdaFunctionTimedOutEventAttributes = (output, context) => {
2747
- return {
2748
- scheduledEventId: __expectLong(output.scheduledEventId),
2749
- startedEventId: __expectLong(output.startedEventId),
2750
- timeoutType: __expectString(output.timeoutType),
2751
- };
2752
- };
2753
- const de_LimitExceededFault = (output, context) => {
2754
- return {
2755
- message: __expectString(output.message),
2756
- };
2757
- };
2758
- const de_ListTagsForResourceOutput = (output, context) => {
2759
- return {
2760
- tags: output.tags != null ? de_ResourceTagList(output.tags, context) : undefined,
2761
- };
2762
- };
2763
- const de_MarkerRecordedEventAttributes = (output, context) => {
2764
- return {
2765
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2766
- details: __expectString(output.details),
2767
- markerName: __expectString(output.markerName),
2768
- };
2769
- };
2770
- const de_OperationNotPermittedFault = (output, context) => {
2771
- return {
2772
- message: __expectString(output.message),
2773
- };
2774
- };
2775
- const de_PendingTaskCount = (output, context) => {
2776
- return {
2777
- count: __expectInt32(output.count),
2778
- truncated: __expectBoolean(output.truncated),
2779
- };
2780
- };
2781
- const de_RecordMarkerFailedEventAttributes = (output, context) => {
2782
- return {
2783
- cause: __expectString(output.cause),
2784
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2785
- markerName: __expectString(output.markerName),
2786
- };
2787
- };
2788
- const de_RequestCancelActivityTaskFailedEventAttributes = (output, context) => {
2789
- return {
2790
- activityId: __expectString(output.activityId),
2791
- cause: __expectString(output.cause),
2792
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2793
- };
2794
- };
2795
- const de_RequestCancelExternalWorkflowExecutionFailedEventAttributes = (output, context) => {
2796
- return {
2797
- cause: __expectString(output.cause),
2798
- control: __expectString(output.control),
2799
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2800
- initiatedEventId: __expectLong(output.initiatedEventId),
2801
- runId: __expectString(output.runId),
2802
- workflowId: __expectString(output.workflowId),
2803
- };
2804
- };
2805
- const de_RequestCancelExternalWorkflowExecutionInitiatedEventAttributes = (output, context) => {
2806
- return {
2807
- control: __expectString(output.control),
2808
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2809
- runId: __expectString(output.runId),
2810
- workflowId: __expectString(output.workflowId),
2811
- };
2812
- };
2813
- const de_ResourceTag = (output, context) => {
2814
- return {
2815
- key: __expectString(output.key),
2816
- value: __expectString(output.value),
2817
- };
2818
- };
2819
- const de_ResourceTagList = (output, context) => {
2820
- const retVal = (output || [])
2821
- .filter((e) => e != null)
2822
- .map((entry) => {
2823
- if (entry === null) {
2824
- return null;
2825
- }
2826
- return de_ResourceTag(entry, context);
2827
- });
2828
- return retVal;
2829
- };
2830
- const de_Run = (output, context) => {
2831
- return {
2832
- runId: __expectString(output.runId),
2833
- };
2834
- };
2835
- const de_ScheduleActivityTaskFailedEventAttributes = (output, context) => {
2836
- return {
2837
- activityId: __expectString(output.activityId),
2838
- activityType: output.activityType != null ? de_ActivityType(output.activityType, context) : undefined,
2839
- cause: __expectString(output.cause),
2840
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2841
- };
2842
- };
2843
- const de_ScheduleLambdaFunctionFailedEventAttributes = (output, context) => {
2844
- return {
2845
- cause: __expectString(output.cause),
2846
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2847
- id: __expectString(output.id),
2848
- name: __expectString(output.name),
2849
- };
2850
- };
2851
- const de_SignalExternalWorkflowExecutionFailedEventAttributes = (output, context) => {
2852
- return {
2853
- cause: __expectString(output.cause),
2854
- control: __expectString(output.control),
2855
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2856
- initiatedEventId: __expectLong(output.initiatedEventId),
2857
- runId: __expectString(output.runId),
2858
- workflowId: __expectString(output.workflowId),
2859
- };
2860
- };
2861
- const de_SignalExternalWorkflowExecutionInitiatedEventAttributes = (output, context) => {
2862
- return {
2863
- control: __expectString(output.control),
2864
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2865
- input: __expectString(output.input),
2866
- runId: __expectString(output.runId),
2867
- signalName: __expectString(output.signalName),
2868
- workflowId: __expectString(output.workflowId),
2869
- };
2870
- };
2871
- const de_StartChildWorkflowExecutionFailedEventAttributes = (output, context) => {
2872
- return {
2873
- cause: __expectString(output.cause),
2874
- control: __expectString(output.control),
2875
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2876
- initiatedEventId: __expectLong(output.initiatedEventId),
2877
- workflowId: __expectString(output.workflowId),
2878
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
2879
- };
2880
- };
2881
- const de_StartChildWorkflowExecutionInitiatedEventAttributes = (output, context) => {
2882
- return {
2883
- childPolicy: __expectString(output.childPolicy),
2884
- control: __expectString(output.control),
2885
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2886
- executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout),
2887
- input: __expectString(output.input),
2888
- lambdaRole: __expectString(output.lambdaRole),
2889
- tagList: output.tagList != null ? de_TagList(output.tagList, context) : undefined,
2890
- taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
2891
- taskPriority: __expectString(output.taskPriority),
2892
- taskStartToCloseTimeout: __expectString(output.taskStartToCloseTimeout),
2893
- workflowId: __expectString(output.workflowId),
2894
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
2895
- };
2896
- };
2897
- const de_StartLambdaFunctionFailedEventAttributes = (output, context) => {
2898
- return {
2899
- cause: __expectString(output.cause),
2900
- message: __expectString(output.message),
2901
- scheduledEventId: __expectLong(output.scheduledEventId),
2902
- };
2903
- };
2904
- const de_StartTimerFailedEventAttributes = (output, context) => {
2905
- return {
2906
- cause: __expectString(output.cause),
2907
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2908
- timerId: __expectString(output.timerId),
2909
- };
2910
- };
2911
- const de_TagList = (output, context) => {
2912
- const retVal = (output || [])
2913
- .filter((e) => e != null)
2914
- .map((entry) => {
2915
- if (entry === null) {
2916
- return null;
2917
- }
2918
- return __expectString(entry);
2919
- });
2920
- return retVal;
2921
- };
2922
- const de_TaskList = (output, context) => {
2923
- return {
2924
- name: __expectString(output.name),
2925
- };
2926
- };
2927
- const de_TimerCanceledEventAttributes = (output, context) => {
2928
- return {
2929
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2930
- startedEventId: __expectLong(output.startedEventId),
2931
- timerId: __expectString(output.timerId),
2932
- };
2933
- };
2934
- const de_TimerFiredEventAttributes = (output, context) => {
2935
- return {
2936
- startedEventId: __expectLong(output.startedEventId),
2937
- timerId: __expectString(output.timerId),
2938
- };
2939
- };
2940
- const de_TimerStartedEventAttributes = (output, context) => {
2941
- return {
2942
- control: __expectString(output.control),
2943
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2944
- startToFireTimeout: __expectString(output.startToFireTimeout),
2945
- timerId: __expectString(output.timerId),
2946
- };
2947
- };
2948
- const de_TooManyTagsFault = (output, context) => {
2949
- return {
2950
- message: __expectString(output.message),
2951
- };
2952
- };
2953
- const de_TypeAlreadyExistsFault = (output, context) => {
2954
- return {
2955
- message: __expectString(output.message),
2956
- };
2957
- };
2958
- const de_TypeDeprecatedFault = (output, context) => {
2959
- return {
2960
- message: __expectString(output.message),
2961
- };
2962
- };
2963
- const de_UnknownResourceFault = (output, context) => {
2964
- return {
2965
- message: __expectString(output.message),
2966
- };
2967
- };
2968
- const de_WorkflowExecution = (output, context) => {
2969
- return {
2970
- runId: __expectString(output.runId),
2971
- workflowId: __expectString(output.workflowId),
2972
- };
2973
- };
2974
- const de_WorkflowExecutionAlreadyStartedFault = (output, context) => {
2975
- return {
2976
- message: __expectString(output.message),
2977
- };
2978
- };
2979
- const de_WorkflowExecutionCanceledEventAttributes = (output, context) => {
2980
- return {
2981
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2982
- details: __expectString(output.details),
2983
- };
2984
- };
2985
- const de_WorkflowExecutionCancelRequestedEventAttributes = (output, context) => {
2986
- return {
2987
- cause: __expectString(output.cause),
2988
- externalInitiatedEventId: __expectLong(output.externalInitiatedEventId),
2989
- externalWorkflowExecution: output.externalWorkflowExecution != null
2990
- ? de_WorkflowExecution(output.externalWorkflowExecution, context)
2991
- : undefined,
2992
- };
2993
- };
2994
- const de_WorkflowExecutionCompletedEventAttributes = (output, context) => {
2995
- return {
2996
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
2997
- result: __expectString(output.result),
2998
- };
2999
- };
3000
- const de_WorkflowExecutionConfiguration = (output, context) => {
3001
- return {
3002
- childPolicy: __expectString(output.childPolicy),
3003
- executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout),
3004
- lambdaRole: __expectString(output.lambdaRole),
3005
- taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
3006
- taskPriority: __expectString(output.taskPriority),
3007
- taskStartToCloseTimeout: __expectString(output.taskStartToCloseTimeout),
3008
- };
3009
- };
3010
- const de_WorkflowExecutionContinuedAsNewEventAttributes = (output, context) => {
3011
- return {
3012
- childPolicy: __expectString(output.childPolicy),
3013
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
3014
- executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout),
3015
- input: __expectString(output.input),
3016
- lambdaRole: __expectString(output.lambdaRole),
3017
- newExecutionRunId: __expectString(output.newExecutionRunId),
3018
- tagList: output.tagList != null ? de_TagList(output.tagList, context) : undefined,
3019
- taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
3020
- taskPriority: __expectString(output.taskPriority),
3021
- taskStartToCloseTimeout: __expectString(output.taskStartToCloseTimeout),
3022
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
3023
- };
3024
- };
3025
- const de_WorkflowExecutionCount = (output, context) => {
3026
- return {
3027
- count: __expectInt32(output.count),
3028
- truncated: __expectBoolean(output.truncated),
3029
- };
3030
- };
3031
1788
  const de_WorkflowExecutionDetail = (output, context) => {
3032
- return {
3033
- executionConfiguration: output.executionConfiguration != null
3034
- ? de_WorkflowExecutionConfiguration(output.executionConfiguration, context)
3035
- : undefined,
3036
- executionInfo: output.executionInfo != null ? de_WorkflowExecutionInfo(output.executionInfo, context) : undefined,
3037
- latestActivityTaskTimestamp: output.latestActivityTaskTimestamp != null
3038
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.latestActivityTaskTimestamp)))
3039
- : undefined,
3040
- latestExecutionContext: __expectString(output.latestExecutionContext),
3041
- openCounts: output.openCounts != null ? de_WorkflowExecutionOpenCounts(output.openCounts, context) : undefined,
3042
- };
3043
- };
3044
- const de_WorkflowExecutionFailedEventAttributes = (output, context) => {
3045
- return {
3046
- decisionTaskCompletedEventId: __expectLong(output.decisionTaskCompletedEventId),
3047
- details: __expectString(output.details),
3048
- reason: __expectString(output.reason),
3049
- };
1789
+ return take(output, {
1790
+ executionConfiguration: _json,
1791
+ executionInfo: (_) => de_WorkflowExecutionInfo(_, context),
1792
+ latestActivityTaskTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1793
+ latestExecutionContext: __expectString,
1794
+ openCounts: _json,
1795
+ });
3050
1796
  };
3051
1797
  const de_WorkflowExecutionInfo = (output, context) => {
3052
- return {
3053
- cancelRequested: __expectBoolean(output.cancelRequested),
3054
- closeStatus: __expectString(output.closeStatus),
3055
- closeTimestamp: output.closeTimestamp != null
3056
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.closeTimestamp)))
3057
- : undefined,
3058
- execution: output.execution != null ? de_WorkflowExecution(output.execution, context) : undefined,
3059
- executionStatus: __expectString(output.executionStatus),
3060
- parent: output.parent != null ? de_WorkflowExecution(output.parent, context) : undefined,
3061
- startTimestamp: output.startTimestamp != null
3062
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTimestamp)))
3063
- : undefined,
3064
- tagList: output.tagList != null ? de_TagList(output.tagList, context) : undefined,
3065
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
3066
- };
1798
+ return take(output, {
1799
+ cancelRequested: __expectBoolean,
1800
+ closeStatus: __expectString,
1801
+ closeTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1802
+ execution: _json,
1803
+ executionStatus: __expectString,
1804
+ parent: _json,
1805
+ startTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1806
+ tagList: _json,
1807
+ workflowType: _json,
1808
+ });
3067
1809
  };
3068
1810
  const de_WorkflowExecutionInfoList = (output, context) => {
3069
1811
  const retVal = (output || [])
3070
1812
  .filter((e) => e != null)
3071
1813
  .map((entry) => {
3072
- if (entry === null) {
3073
- return null;
3074
- }
3075
1814
  return de_WorkflowExecutionInfo(entry, context);
3076
1815
  });
3077
1816
  return retVal;
3078
1817
  };
3079
1818
  const de_WorkflowExecutionInfos = (output, context) => {
3080
- return {
3081
- executionInfos: output.executionInfos != null ? de_WorkflowExecutionInfoList(output.executionInfos, context) : undefined,
3082
- nextPageToken: __expectString(output.nextPageToken),
3083
- };
3084
- };
3085
- const de_WorkflowExecutionOpenCounts = (output, context) => {
3086
- return {
3087
- openActivityTasks: __expectInt32(output.openActivityTasks),
3088
- openChildWorkflowExecutions: __expectInt32(output.openChildWorkflowExecutions),
3089
- openDecisionTasks: __expectInt32(output.openDecisionTasks),
3090
- openLambdaFunctions: __expectInt32(output.openLambdaFunctions),
3091
- openTimers: __expectInt32(output.openTimers),
3092
- };
3093
- };
3094
- const de_WorkflowExecutionSignaledEventAttributes = (output, context) => {
3095
- return {
3096
- externalInitiatedEventId: __expectLong(output.externalInitiatedEventId),
3097
- externalWorkflowExecution: output.externalWorkflowExecution != null
3098
- ? de_WorkflowExecution(output.externalWorkflowExecution, context)
3099
- : undefined,
3100
- input: __expectString(output.input),
3101
- signalName: __expectString(output.signalName),
3102
- };
3103
- };
3104
- const de_WorkflowExecutionStartedEventAttributes = (output, context) => {
3105
- return {
3106
- childPolicy: __expectString(output.childPolicy),
3107
- continuedExecutionRunId: __expectString(output.continuedExecutionRunId),
3108
- executionStartToCloseTimeout: __expectString(output.executionStartToCloseTimeout),
3109
- input: __expectString(output.input),
3110
- lambdaRole: __expectString(output.lambdaRole),
3111
- parentInitiatedEventId: __expectLong(output.parentInitiatedEventId),
3112
- parentWorkflowExecution: output.parentWorkflowExecution != null
3113
- ? de_WorkflowExecution(output.parentWorkflowExecution, context)
3114
- : undefined,
3115
- tagList: output.tagList != null ? de_TagList(output.tagList, context) : undefined,
3116
- taskList: output.taskList != null ? de_TaskList(output.taskList, context) : undefined,
3117
- taskPriority: __expectString(output.taskPriority),
3118
- taskStartToCloseTimeout: __expectString(output.taskStartToCloseTimeout),
3119
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
3120
- };
3121
- };
3122
- const de_WorkflowExecutionTerminatedEventAttributes = (output, context) => {
3123
- return {
3124
- cause: __expectString(output.cause),
3125
- childPolicy: __expectString(output.childPolicy),
3126
- details: __expectString(output.details),
3127
- reason: __expectString(output.reason),
3128
- };
3129
- };
3130
- const de_WorkflowExecutionTimedOutEventAttributes = (output, context) => {
3131
- return {
3132
- childPolicy: __expectString(output.childPolicy),
3133
- timeoutType: __expectString(output.timeoutType),
3134
- };
3135
- };
3136
- const de_WorkflowType = (output, context) => {
3137
- return {
3138
- name: __expectString(output.name),
3139
- version: __expectString(output.version),
3140
- };
3141
- };
3142
- const de_WorkflowTypeConfiguration = (output, context) => {
3143
- return {
3144
- defaultChildPolicy: __expectString(output.defaultChildPolicy),
3145
- defaultExecutionStartToCloseTimeout: __expectString(output.defaultExecutionStartToCloseTimeout),
3146
- defaultLambdaRole: __expectString(output.defaultLambdaRole),
3147
- defaultTaskList: output.defaultTaskList != null ? de_TaskList(output.defaultTaskList, context) : undefined,
3148
- defaultTaskPriority: __expectString(output.defaultTaskPriority),
3149
- defaultTaskStartToCloseTimeout: __expectString(output.defaultTaskStartToCloseTimeout),
3150
- };
1819
+ return take(output, {
1820
+ executionInfos: (_) => de_WorkflowExecutionInfoList(_, context),
1821
+ nextPageToken: __expectString,
1822
+ });
3151
1823
  };
3152
1824
  const de_WorkflowTypeDetail = (output, context) => {
3153
- return {
3154
- configuration: output.configuration != null ? de_WorkflowTypeConfiguration(output.configuration, context) : undefined,
3155
- typeInfo: output.typeInfo != null ? de_WorkflowTypeInfo(output.typeInfo, context) : undefined,
3156
- };
1825
+ return take(output, {
1826
+ configuration: _json,
1827
+ typeInfo: (_) => de_WorkflowTypeInfo(_, context),
1828
+ });
3157
1829
  };
3158
1830
  const de_WorkflowTypeInfo = (output, context) => {
3159
- return {
3160
- creationDate: output.creationDate != null
3161
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
3162
- : undefined,
3163
- deprecationDate: output.deprecationDate != null
3164
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.deprecationDate)))
3165
- : undefined,
3166
- description: __expectString(output.description),
3167
- status: __expectString(output.status),
3168
- workflowType: output.workflowType != null ? de_WorkflowType(output.workflowType, context) : undefined,
3169
- };
1831
+ return take(output, {
1832
+ creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1833
+ deprecationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1834
+ description: __expectString,
1835
+ status: __expectString,
1836
+ workflowType: _json,
1837
+ });
3170
1838
  };
3171
1839
  const de_WorkflowTypeInfoList = (output, context) => {
3172
1840
  const retVal = (output || [])
3173
1841
  .filter((e) => e != null)
3174
1842
  .map((entry) => {
3175
- if (entry === null) {
3176
- return null;
3177
- }
3178
1843
  return de_WorkflowTypeInfo(entry, context);
3179
1844
  });
3180
1845
  return retVal;
3181
1846
  };
3182
1847
  const de_WorkflowTypeInfos = (output, context) => {
3183
- return {
3184
- nextPageToken: __expectString(output.nextPageToken),
3185
- typeInfos: output.typeInfos != null ? de_WorkflowTypeInfoList(output.typeInfos, context) : undefined,
3186
- };
1848
+ return take(output, {
1849
+ nextPageToken: __expectString,
1850
+ typeInfos: (_) => de_WorkflowTypeInfoList(_, context),
1851
+ });
3187
1852
  };
3188
1853
  const deserializeMetadata = (output) => ({
3189
1854
  httpStatusCode: output.statusCode,
@@ -3198,6 +1863,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3198
1863
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3199
1864
  };
3200
1865
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1866
+ const throwDefaultError = withBaseException(__BaseException);
3201
1867
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3202
1868
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3203
1869
  const contents = {