@aws-sdk/client-swf 3.901.0 → 3.907.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +2272 -2434
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,2521 +1,2359 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- ActivityTaskTimeoutType: () => ActivityTaskTimeoutType,
25
- CancelTimerFailedCause: () => CancelTimerFailedCause,
26
- CancelWorkflowExecutionFailedCause: () => CancelWorkflowExecutionFailedCause,
27
- ChildPolicy: () => ChildPolicy,
28
- CloseStatus: () => CloseStatus,
29
- CompleteWorkflowExecutionFailedCause: () => CompleteWorkflowExecutionFailedCause,
30
- ContinueAsNewWorkflowExecutionFailedCause: () => ContinueAsNewWorkflowExecutionFailedCause,
31
- CountClosedWorkflowExecutionsCommand: () => CountClosedWorkflowExecutionsCommand,
32
- CountOpenWorkflowExecutionsCommand: () => CountOpenWorkflowExecutionsCommand,
33
- CountPendingActivityTasksCommand: () => CountPendingActivityTasksCommand,
34
- CountPendingDecisionTasksCommand: () => CountPendingDecisionTasksCommand,
35
- DecisionTaskTimeoutType: () => DecisionTaskTimeoutType,
36
- DecisionType: () => DecisionType,
37
- DefaultUndefinedFault: () => DefaultUndefinedFault,
38
- DeleteActivityTypeCommand: () => DeleteActivityTypeCommand,
39
- DeleteWorkflowTypeCommand: () => DeleteWorkflowTypeCommand,
40
- DeprecateActivityTypeCommand: () => DeprecateActivityTypeCommand,
41
- DeprecateDomainCommand: () => DeprecateDomainCommand,
42
- DeprecateWorkflowTypeCommand: () => DeprecateWorkflowTypeCommand,
43
- DescribeActivityTypeCommand: () => DescribeActivityTypeCommand,
44
- DescribeDomainCommand: () => DescribeDomainCommand,
45
- DescribeWorkflowExecutionCommand: () => DescribeWorkflowExecutionCommand,
46
- DescribeWorkflowTypeCommand: () => DescribeWorkflowTypeCommand,
47
- DomainAlreadyExistsFault: () => DomainAlreadyExistsFault,
48
- DomainDeprecatedFault: () => DomainDeprecatedFault,
49
- EventType: () => EventType,
50
- ExecutionStatus: () => ExecutionStatus,
51
- FailWorkflowExecutionFailedCause: () => FailWorkflowExecutionFailedCause,
52
- GetWorkflowExecutionHistoryCommand: () => GetWorkflowExecutionHistoryCommand,
53
- LambdaFunctionTimeoutType: () => LambdaFunctionTimeoutType,
54
- LimitExceededFault: () => LimitExceededFault,
55
- ListActivityTypesCommand: () => ListActivityTypesCommand,
56
- ListClosedWorkflowExecutionsCommand: () => ListClosedWorkflowExecutionsCommand,
57
- ListDomainsCommand: () => ListDomainsCommand,
58
- ListOpenWorkflowExecutionsCommand: () => ListOpenWorkflowExecutionsCommand,
59
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
60
- ListWorkflowTypesCommand: () => ListWorkflowTypesCommand,
61
- OperationNotPermittedFault: () => OperationNotPermittedFault,
62
- PollForActivityTaskCommand: () => PollForActivityTaskCommand,
63
- PollForDecisionTaskCommand: () => PollForDecisionTaskCommand,
64
- RecordActivityTaskHeartbeatCommand: () => RecordActivityTaskHeartbeatCommand,
65
- RecordMarkerFailedCause: () => RecordMarkerFailedCause,
66
- RegisterActivityTypeCommand: () => RegisterActivityTypeCommand,
67
- RegisterDomainCommand: () => RegisterDomainCommand,
68
- RegisterWorkflowTypeCommand: () => RegisterWorkflowTypeCommand,
69
- RegistrationStatus: () => RegistrationStatus,
70
- RequestCancelActivityTaskFailedCause: () => RequestCancelActivityTaskFailedCause,
71
- RequestCancelExternalWorkflowExecutionFailedCause: () => RequestCancelExternalWorkflowExecutionFailedCause,
72
- RequestCancelWorkflowExecutionCommand: () => RequestCancelWorkflowExecutionCommand,
73
- RespondActivityTaskCanceledCommand: () => RespondActivityTaskCanceledCommand,
74
- RespondActivityTaskCompletedCommand: () => RespondActivityTaskCompletedCommand,
75
- RespondActivityTaskFailedCommand: () => RespondActivityTaskFailedCommand,
76
- RespondDecisionTaskCompletedCommand: () => RespondDecisionTaskCompletedCommand,
77
- SWF: () => SWF,
78
- SWFClient: () => SWFClient,
79
- SWFServiceException: () => SWFServiceException,
80
- ScheduleActivityTaskFailedCause: () => ScheduleActivityTaskFailedCause,
81
- ScheduleLambdaFunctionFailedCause: () => ScheduleLambdaFunctionFailedCause,
82
- SignalExternalWorkflowExecutionFailedCause: () => SignalExternalWorkflowExecutionFailedCause,
83
- SignalWorkflowExecutionCommand: () => SignalWorkflowExecutionCommand,
84
- StartChildWorkflowExecutionFailedCause: () => StartChildWorkflowExecutionFailedCause,
85
- StartLambdaFunctionFailedCause: () => StartLambdaFunctionFailedCause,
86
- StartTimerFailedCause: () => StartTimerFailedCause,
87
- StartWorkflowExecutionCommand: () => StartWorkflowExecutionCommand,
88
- TagResourceCommand: () => TagResourceCommand,
89
- TerminateWorkflowExecutionCommand: () => TerminateWorkflowExecutionCommand,
90
- TooManyTagsFault: () => TooManyTagsFault,
91
- TypeAlreadyExistsFault: () => TypeAlreadyExistsFault,
92
- TypeDeprecatedFault: () => TypeDeprecatedFault,
93
- TypeNotDeprecatedFault: () => TypeNotDeprecatedFault,
94
- UndeprecateActivityTypeCommand: () => UndeprecateActivityTypeCommand,
95
- UndeprecateDomainCommand: () => UndeprecateDomainCommand,
96
- UndeprecateWorkflowTypeCommand: () => UndeprecateWorkflowTypeCommand,
97
- UnknownResourceFault: () => UnknownResourceFault,
98
- UntagResourceCommand: () => UntagResourceCommand,
99
- WorkflowExecutionAlreadyStartedFault: () => WorkflowExecutionAlreadyStartedFault,
100
- WorkflowExecutionCancelRequestedCause: () => WorkflowExecutionCancelRequestedCause,
101
- WorkflowExecutionTerminatedCause: () => WorkflowExecutionTerminatedCause,
102
- WorkflowExecutionTimeoutType: () => WorkflowExecutionTimeoutType,
103
- __Client: () => import_smithy_client.Client,
104
- paginateGetWorkflowExecutionHistory: () => paginateGetWorkflowExecutionHistory,
105
- paginateListActivityTypes: () => paginateListActivityTypes,
106
- paginateListClosedWorkflowExecutions: () => paginateListClosedWorkflowExecutions,
107
- paginateListDomains: () => paginateListDomains,
108
- paginateListOpenWorkflowExecutions: () => paginateListOpenWorkflowExecutions,
109
- paginateListWorkflowTypes: () => paginateListWorkflowTypes,
110
- paginatePollForDecisionTask: () => paginatePollForDecisionTask
111
- });
112
- module.exports = __toCommonJS(index_exports);
113
-
114
- // src/SWFClient.ts
115
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
116
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
117
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
118
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
119
- var import_config_resolver = require("@smithy/config-resolver");
120
- var import_core = require("@smithy/core");
121
- var import_middleware_content_length = require("@smithy/middleware-content-length");
122
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
123
- var import_middleware_retry = require("@smithy/middleware-retry");
124
-
125
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
126
-
127
- // src/endpoint/EndpointParameters.ts
128
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
129
- return Object.assign(options, {
130
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
131
- useFipsEndpoint: options.useFipsEndpoint ?? false,
132
- defaultSigningName: "swf"
133
- });
134
- }, "resolveClientEndpointParameters");
135
- var commonParams = {
136
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
137
- Endpoint: { type: "builtInParams", name: "endpoint" },
138
- Region: { type: "builtInParams", name: "region" },
139
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "swf",
25
+ });
140
26
  };
141
-
142
- // src/SWFClient.ts
143
- var import_runtimeConfig = require("././runtimeConfig");
144
-
145
- // src/runtimeExtensions.ts
146
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
147
- var import_protocol_http = require("@smithy/protocol-http");
148
- var import_smithy_client = require("@smithy/smithy-client");
149
-
150
- // src/auth/httpAuthExtensionConfiguration.ts
151
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
152
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
153
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
154
- let _credentials = runtimeConfig.credentials;
155
- return {
156
- setHttpAuthScheme(httpAuthScheme) {
157
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
158
- if (index === -1) {
159
- _httpAuthSchemes.push(httpAuthScheme);
160
- } else {
161
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
162
- }
163
- },
164
- httpAuthSchemes() {
165
- return _httpAuthSchemes;
166
- },
167
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
168
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
169
- },
170
- httpAuthSchemeProvider() {
171
- return _httpAuthSchemeProvider;
172
- },
173
- setCredentials(credentials) {
174
- _credentials = credentials;
175
- },
176
- credentials() {
177
- return _credentials;
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
+ };
33
+
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
72
+
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
78
+
79
+ class SWFClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSWFHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
178
107
  }
179
- };
180
- }, "getHttpAuthExtensionConfiguration");
181
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
182
- return {
183
- httpAuthSchemes: config.httpAuthSchemes(),
184
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
185
- credentials: config.credentials()
186
- };
187
- }, "resolveHttpAuthRuntimeConfig");
188
-
189
- // src/runtimeExtensions.ts
190
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
191
- const extensionConfiguration = Object.assign(
192
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
193
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
194
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
195
- getHttpAuthExtensionConfiguration(runtimeConfig)
196
- );
197
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
198
- return Object.assign(
199
- runtimeConfig,
200
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
201
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
202
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
203
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
204
- );
205
- }, "resolveRuntimeExtensions");
206
-
207
- // src/SWFClient.ts
208
- var SWFClient = class extends import_smithy_client.Client {
209
- static {
210
- __name(this, "SWFClient");
211
- }
212
- /**
213
- * The resolved configuration of SWFClient class. This is resolved and normalized from the {@link SWFClientConfig | constructor configuration interface}.
214
- */
215
- config;
216
- constructor(...[configuration]) {
217
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
218
- super(_config_0);
219
- this.initConfig = _config_0;
220
- const _config_1 = resolveClientEndpointParameters(_config_0);
221
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
222
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
223
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
224
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
225
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
226
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
227
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
228
- this.config = _config_8;
229
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
230
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
231
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
232
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
233
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
234
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
235
- this.middlewareStack.use(
236
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
237
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultSWFHttpAuthSchemeParametersProvider,
238
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
239
- "aws.auth#sigv4": config.credentials
240
- }), "identityProviderConfigProvider")
241
- })
242
- );
243
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
244
- }
245
- /**
246
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
247
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
248
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
249
- */
250
- destroy() {
251
- super.destroy();
252
- }
253
- };
254
-
255
- // src/SWF.ts
256
-
257
-
258
- // src/commands/CountClosedWorkflowExecutionsCommand.ts
259
-
260
- var import_middleware_serde = require("@smithy/middleware-serde");
261
-
262
-
263
- // src/protocols/Aws_json1_0.ts
264
- var import_core2 = require("@aws-sdk/core");
265
-
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
266
112
 
113
+ class SWFServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, SWFServiceException.prototype);
117
+ }
118
+ }
267
119
 
268
- // src/models/SWFServiceException.ts
120
+ const ActivityTaskTimeoutType = {
121
+ HEARTBEAT: "HEARTBEAT",
122
+ SCHEDULE_TO_CLOSE: "SCHEDULE_TO_CLOSE",
123
+ SCHEDULE_TO_START: "SCHEDULE_TO_START",
124
+ START_TO_CLOSE: "START_TO_CLOSE",
125
+ };
126
+ const RegistrationStatus = {
127
+ DEPRECATED: "DEPRECATED",
128
+ REGISTERED: "REGISTERED",
129
+ };
130
+ const CancelTimerFailedCause = {
131
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
132
+ TIMER_ID_UNKNOWN: "TIMER_ID_UNKNOWN",
133
+ };
134
+ const CancelWorkflowExecutionFailedCause = {
135
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
136
+ UNHANDLED_DECISION: "UNHANDLED_DECISION",
137
+ };
138
+ const ChildPolicy = {
139
+ ABANDON: "ABANDON",
140
+ REQUEST_CANCEL: "REQUEST_CANCEL",
141
+ TERMINATE: "TERMINATE",
142
+ };
143
+ const WorkflowExecutionTimeoutType = {
144
+ START_TO_CLOSE: "START_TO_CLOSE",
145
+ };
146
+ const CloseStatus = {
147
+ CANCELED: "CANCELED",
148
+ COMPLETED: "COMPLETED",
149
+ CONTINUED_AS_NEW: "CONTINUED_AS_NEW",
150
+ FAILED: "FAILED",
151
+ TERMINATED: "TERMINATED",
152
+ TIMED_OUT: "TIMED_OUT",
153
+ };
154
+ const CompleteWorkflowExecutionFailedCause = {
155
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
156
+ UNHANDLED_DECISION: "UNHANDLED_DECISION",
157
+ };
158
+ const ContinueAsNewWorkflowExecutionFailedCause = {
159
+ CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED: "CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED",
160
+ DEFAULT_CHILD_POLICY_UNDEFINED: "DEFAULT_CHILD_POLICY_UNDEFINED",
161
+ DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED",
162
+ DEFAULT_TASK_LIST_UNDEFINED: "DEFAULT_TASK_LIST_UNDEFINED",
163
+ DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED",
164
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
165
+ UNHANDLED_DECISION: "UNHANDLED_DECISION",
166
+ WORKFLOW_TYPE_DEPRECATED: "WORKFLOW_TYPE_DEPRECATED",
167
+ WORKFLOW_TYPE_DOES_NOT_EXIST: "WORKFLOW_TYPE_DOES_NOT_EXIST",
168
+ };
169
+ class OperationNotPermittedFault extends SWFServiceException {
170
+ name = "OperationNotPermittedFault";
171
+ $fault = "client";
172
+ constructor(opts) {
173
+ super({
174
+ name: "OperationNotPermittedFault",
175
+ $fault: "client",
176
+ ...opts,
177
+ });
178
+ Object.setPrototypeOf(this, OperationNotPermittedFault.prototype);
179
+ }
180
+ }
181
+ class UnknownResourceFault extends SWFServiceException {
182
+ name = "UnknownResourceFault";
183
+ $fault = "client";
184
+ constructor(opts) {
185
+ super({
186
+ name: "UnknownResourceFault",
187
+ $fault: "client",
188
+ ...opts,
189
+ });
190
+ Object.setPrototypeOf(this, UnknownResourceFault.prototype);
191
+ }
192
+ }
193
+ const DecisionType = {
194
+ CancelTimer: "CancelTimer",
195
+ CancelWorkflowExecution: "CancelWorkflowExecution",
196
+ CompleteWorkflowExecution: "CompleteWorkflowExecution",
197
+ ContinueAsNewWorkflowExecution: "ContinueAsNewWorkflowExecution",
198
+ FailWorkflowExecution: "FailWorkflowExecution",
199
+ RecordMarker: "RecordMarker",
200
+ RequestCancelActivityTask: "RequestCancelActivityTask",
201
+ RequestCancelExternalWorkflowExecution: "RequestCancelExternalWorkflowExecution",
202
+ ScheduleActivityTask: "ScheduleActivityTask",
203
+ ScheduleLambdaFunction: "ScheduleLambdaFunction",
204
+ SignalExternalWorkflowExecution: "SignalExternalWorkflowExecution",
205
+ StartChildWorkflowExecution: "StartChildWorkflowExecution",
206
+ StartTimer: "StartTimer",
207
+ };
208
+ const DecisionTaskTimeoutType = {
209
+ SCHEDULE_TO_START: "SCHEDULE_TO_START",
210
+ START_TO_CLOSE: "START_TO_CLOSE",
211
+ };
212
+ const EventType = {
213
+ ActivityTaskCancelRequested: "ActivityTaskCancelRequested",
214
+ ActivityTaskCanceled: "ActivityTaskCanceled",
215
+ ActivityTaskCompleted: "ActivityTaskCompleted",
216
+ ActivityTaskFailed: "ActivityTaskFailed",
217
+ ActivityTaskScheduled: "ActivityTaskScheduled",
218
+ ActivityTaskStarted: "ActivityTaskStarted",
219
+ ActivityTaskTimedOut: "ActivityTaskTimedOut",
220
+ CancelTimerFailed: "CancelTimerFailed",
221
+ CancelWorkflowExecutionFailed: "CancelWorkflowExecutionFailed",
222
+ ChildWorkflowExecutionCanceled: "ChildWorkflowExecutionCanceled",
223
+ ChildWorkflowExecutionCompleted: "ChildWorkflowExecutionCompleted",
224
+ ChildWorkflowExecutionFailed: "ChildWorkflowExecutionFailed",
225
+ ChildWorkflowExecutionStarted: "ChildWorkflowExecutionStarted",
226
+ ChildWorkflowExecutionTerminated: "ChildWorkflowExecutionTerminated",
227
+ ChildWorkflowExecutionTimedOut: "ChildWorkflowExecutionTimedOut",
228
+ CompleteWorkflowExecutionFailed: "CompleteWorkflowExecutionFailed",
229
+ ContinueAsNewWorkflowExecutionFailed: "ContinueAsNewWorkflowExecutionFailed",
230
+ DecisionTaskCompleted: "DecisionTaskCompleted",
231
+ DecisionTaskScheduled: "DecisionTaskScheduled",
232
+ DecisionTaskStarted: "DecisionTaskStarted",
233
+ DecisionTaskTimedOut: "DecisionTaskTimedOut",
234
+ ExternalWorkflowExecutionCancelRequested: "ExternalWorkflowExecutionCancelRequested",
235
+ ExternalWorkflowExecutionSignaled: "ExternalWorkflowExecutionSignaled",
236
+ FailWorkflowExecutionFailed: "FailWorkflowExecutionFailed",
237
+ LambdaFunctionCompleted: "LambdaFunctionCompleted",
238
+ LambdaFunctionFailed: "LambdaFunctionFailed",
239
+ LambdaFunctionScheduled: "LambdaFunctionScheduled",
240
+ LambdaFunctionStarted: "LambdaFunctionStarted",
241
+ LambdaFunctionTimedOut: "LambdaFunctionTimedOut",
242
+ MarkerRecorded: "MarkerRecorded",
243
+ RecordMarkerFailed: "RecordMarkerFailed",
244
+ RequestCancelActivityTaskFailed: "RequestCancelActivityTaskFailed",
245
+ RequestCancelExternalWorkflowExecutionFailed: "RequestCancelExternalWorkflowExecutionFailed",
246
+ RequestCancelExternalWorkflowExecutionInitiated: "RequestCancelExternalWorkflowExecutionInitiated",
247
+ ScheduleActivityTaskFailed: "ScheduleActivityTaskFailed",
248
+ ScheduleLambdaFunctionFailed: "ScheduleLambdaFunctionFailed",
249
+ SignalExternalWorkflowExecutionFailed: "SignalExternalWorkflowExecutionFailed",
250
+ SignalExternalWorkflowExecutionInitiated: "SignalExternalWorkflowExecutionInitiated",
251
+ StartChildWorkflowExecutionFailed: "StartChildWorkflowExecutionFailed",
252
+ StartChildWorkflowExecutionInitiated: "StartChildWorkflowExecutionInitiated",
253
+ StartLambdaFunctionFailed: "StartLambdaFunctionFailed",
254
+ StartTimerFailed: "StartTimerFailed",
255
+ TimerCanceled: "TimerCanceled",
256
+ TimerFired: "TimerFired",
257
+ TimerStarted: "TimerStarted",
258
+ WorkflowExecutionCancelRequested: "WorkflowExecutionCancelRequested",
259
+ WorkflowExecutionCanceled: "WorkflowExecutionCanceled",
260
+ WorkflowExecutionCompleted: "WorkflowExecutionCompleted",
261
+ WorkflowExecutionContinuedAsNew: "WorkflowExecutionContinuedAsNew",
262
+ WorkflowExecutionFailed: "WorkflowExecutionFailed",
263
+ WorkflowExecutionSignaled: "WorkflowExecutionSignaled",
264
+ WorkflowExecutionStarted: "WorkflowExecutionStarted",
265
+ WorkflowExecutionTerminated: "WorkflowExecutionTerminated",
266
+ WorkflowExecutionTimedOut: "WorkflowExecutionTimedOut",
267
+ };
268
+ const FailWorkflowExecutionFailedCause = {
269
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
270
+ UNHANDLED_DECISION: "UNHANDLED_DECISION",
271
+ };
272
+ const LambdaFunctionTimeoutType = {
273
+ START_TO_CLOSE: "START_TO_CLOSE",
274
+ };
275
+ const RecordMarkerFailedCause = {
276
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
277
+ };
278
+ const RequestCancelActivityTaskFailedCause = {
279
+ ACTIVITY_ID_UNKNOWN: "ACTIVITY_ID_UNKNOWN",
280
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
281
+ };
282
+ const RequestCancelExternalWorkflowExecutionFailedCause = {
283
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
284
+ REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED: "REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED",
285
+ UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION: "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION",
286
+ };
287
+ const ScheduleActivityTaskFailedCause = {
288
+ ACTIVITY_CREATION_RATE_EXCEEDED: "ACTIVITY_CREATION_RATE_EXCEEDED",
289
+ ACTIVITY_ID_ALREADY_IN_USE: "ACTIVITY_ID_ALREADY_IN_USE",
290
+ ACTIVITY_TYPE_DEPRECATED: "ACTIVITY_TYPE_DEPRECATED",
291
+ ACTIVITY_TYPE_DOES_NOT_EXIST: "ACTIVITY_TYPE_DOES_NOT_EXIST",
292
+ DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED: "DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED",
293
+ DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED",
294
+ DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED: "DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED",
295
+ DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED",
296
+ DEFAULT_TASK_LIST_UNDEFINED: "DEFAULT_TASK_LIST_UNDEFINED",
297
+ OPEN_ACTIVITIES_LIMIT_EXCEEDED: "OPEN_ACTIVITIES_LIMIT_EXCEEDED",
298
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
299
+ };
300
+ const ScheduleLambdaFunctionFailedCause = {
301
+ ID_ALREADY_IN_USE: "ID_ALREADY_IN_USE",
302
+ LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED: "LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED",
303
+ LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION: "LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION",
304
+ OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED: "OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED",
305
+ };
306
+ const SignalExternalWorkflowExecutionFailedCause = {
307
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
308
+ SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED: "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED",
309
+ UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION: "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION",
310
+ };
311
+ const StartChildWorkflowExecutionFailedCause = {
312
+ CHILD_CREATION_RATE_EXCEEDED: "CHILD_CREATION_RATE_EXCEEDED",
313
+ DEFAULT_CHILD_POLICY_UNDEFINED: "DEFAULT_CHILD_POLICY_UNDEFINED",
314
+ DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED",
315
+ DEFAULT_TASK_LIST_UNDEFINED: "DEFAULT_TASK_LIST_UNDEFINED",
316
+ DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED",
317
+ OPEN_CHILDREN_LIMIT_EXCEEDED: "OPEN_CHILDREN_LIMIT_EXCEEDED",
318
+ OPEN_WORKFLOWS_LIMIT_EXCEEDED: "OPEN_WORKFLOWS_LIMIT_EXCEEDED",
319
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
320
+ WORKFLOW_ALREADY_RUNNING: "WORKFLOW_ALREADY_RUNNING",
321
+ WORKFLOW_TYPE_DEPRECATED: "WORKFLOW_TYPE_DEPRECATED",
322
+ WORKFLOW_TYPE_DOES_NOT_EXIST: "WORKFLOW_TYPE_DOES_NOT_EXIST",
323
+ };
324
+ const StartLambdaFunctionFailedCause = {
325
+ ASSUME_ROLE_FAILED: "ASSUME_ROLE_FAILED",
326
+ };
327
+ const StartTimerFailedCause = {
328
+ OPEN_TIMERS_LIMIT_EXCEEDED: "OPEN_TIMERS_LIMIT_EXCEEDED",
329
+ OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
330
+ TIMER_CREATION_RATE_EXCEEDED: "TIMER_CREATION_RATE_EXCEEDED",
331
+ TIMER_ID_ALREADY_IN_USE: "TIMER_ID_ALREADY_IN_USE",
332
+ };
333
+ const WorkflowExecutionCancelRequestedCause = {
334
+ CHILD_POLICY_APPLIED: "CHILD_POLICY_APPLIED",
335
+ };
336
+ const WorkflowExecutionTerminatedCause = {
337
+ CHILD_POLICY_APPLIED: "CHILD_POLICY_APPLIED",
338
+ EVENT_LIMIT_EXCEEDED: "EVENT_LIMIT_EXCEEDED",
339
+ OPERATOR_INITIATED: "OPERATOR_INITIATED",
340
+ };
341
+ class DefaultUndefinedFault extends SWFServiceException {
342
+ name = "DefaultUndefinedFault";
343
+ $fault = "client";
344
+ constructor(opts) {
345
+ super({
346
+ name: "DefaultUndefinedFault",
347
+ $fault: "client",
348
+ ...opts,
349
+ });
350
+ Object.setPrototypeOf(this, DefaultUndefinedFault.prototype);
351
+ }
352
+ }
353
+ class TypeNotDeprecatedFault extends SWFServiceException {
354
+ name = "TypeNotDeprecatedFault";
355
+ $fault = "client";
356
+ constructor(opts) {
357
+ super({
358
+ name: "TypeNotDeprecatedFault",
359
+ $fault: "client",
360
+ ...opts,
361
+ });
362
+ Object.setPrototypeOf(this, TypeNotDeprecatedFault.prototype);
363
+ }
364
+ }
365
+ class TypeDeprecatedFault extends SWFServiceException {
366
+ name = "TypeDeprecatedFault";
367
+ $fault = "client";
368
+ constructor(opts) {
369
+ super({
370
+ name: "TypeDeprecatedFault",
371
+ $fault: "client",
372
+ ...opts,
373
+ });
374
+ Object.setPrototypeOf(this, TypeDeprecatedFault.prototype);
375
+ }
376
+ }
377
+ class DomainDeprecatedFault extends SWFServiceException {
378
+ name = "DomainDeprecatedFault";
379
+ $fault = "client";
380
+ constructor(opts) {
381
+ super({
382
+ name: "DomainDeprecatedFault",
383
+ $fault: "client",
384
+ ...opts,
385
+ });
386
+ Object.setPrototypeOf(this, DomainDeprecatedFault.prototype);
387
+ }
388
+ }
389
+ const ExecutionStatus = {
390
+ CLOSED: "CLOSED",
391
+ OPEN: "OPEN",
392
+ };
393
+ class DomainAlreadyExistsFault extends SWFServiceException {
394
+ name = "DomainAlreadyExistsFault";
395
+ $fault = "client";
396
+ constructor(opts) {
397
+ super({
398
+ name: "DomainAlreadyExistsFault",
399
+ $fault: "client",
400
+ ...opts,
401
+ });
402
+ Object.setPrototypeOf(this, DomainAlreadyExistsFault.prototype);
403
+ }
404
+ }
405
+ class LimitExceededFault extends SWFServiceException {
406
+ name = "LimitExceededFault";
407
+ $fault = "client";
408
+ constructor(opts) {
409
+ super({
410
+ name: "LimitExceededFault",
411
+ $fault: "client",
412
+ ...opts,
413
+ });
414
+ Object.setPrototypeOf(this, LimitExceededFault.prototype);
415
+ }
416
+ }
417
+ class TypeAlreadyExistsFault extends SWFServiceException {
418
+ name = "TypeAlreadyExistsFault";
419
+ $fault = "client";
420
+ constructor(opts) {
421
+ super({
422
+ name: "TypeAlreadyExistsFault",
423
+ $fault: "client",
424
+ ...opts,
425
+ });
426
+ Object.setPrototypeOf(this, TypeAlreadyExistsFault.prototype);
427
+ }
428
+ }
429
+ class TooManyTagsFault extends SWFServiceException {
430
+ name = "TooManyTagsFault";
431
+ $fault = "client";
432
+ constructor(opts) {
433
+ super({
434
+ name: "TooManyTagsFault",
435
+ $fault: "client",
436
+ ...opts,
437
+ });
438
+ Object.setPrototypeOf(this, TooManyTagsFault.prototype);
439
+ }
440
+ }
441
+ class WorkflowExecutionAlreadyStartedFault extends SWFServiceException {
442
+ name = "WorkflowExecutionAlreadyStartedFault";
443
+ $fault = "client";
444
+ constructor(opts) {
445
+ super({
446
+ name: "WorkflowExecutionAlreadyStartedFault",
447
+ $fault: "client",
448
+ ...opts,
449
+ });
450
+ Object.setPrototypeOf(this, WorkflowExecutionAlreadyStartedFault.prototype);
451
+ }
452
+ }
269
453
 
270
- var SWFServiceException = class _SWFServiceException extends import_smithy_client.ServiceException {
271
- static {
272
- __name(this, "SWFServiceException");
273
- }
274
- /**
275
- * @internal
276
- */
277
- constructor(options) {
278
- super(options);
279
- Object.setPrototypeOf(this, _SWFServiceException.prototype);
280
- }
454
+ const se_CountClosedWorkflowExecutionsCommand = async (input, context) => {
455
+ const headers = sharedHeaders("CountClosedWorkflowExecutions");
456
+ let body;
457
+ body = JSON.stringify(se_CountClosedWorkflowExecutionsInput(input));
458
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
459
+ };
460
+ const se_CountOpenWorkflowExecutionsCommand = async (input, context) => {
461
+ const headers = sharedHeaders("CountOpenWorkflowExecutions");
462
+ let body;
463
+ body = JSON.stringify(se_CountOpenWorkflowExecutionsInput(input));
464
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
465
+ };
466
+ const se_CountPendingActivityTasksCommand = async (input, context) => {
467
+ const headers = sharedHeaders("CountPendingActivityTasks");
468
+ let body;
469
+ body = JSON.stringify(smithyClient._json(input));
470
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
471
+ };
472
+ const se_CountPendingDecisionTasksCommand = async (input, context) => {
473
+ const headers = sharedHeaders("CountPendingDecisionTasks");
474
+ let body;
475
+ body = JSON.stringify(smithyClient._json(input));
476
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
477
+ };
478
+ const se_DeleteActivityTypeCommand = async (input, context) => {
479
+ const headers = sharedHeaders("DeleteActivityType");
480
+ let body;
481
+ body = JSON.stringify(smithyClient._json(input));
482
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
483
+ };
484
+ const se_DeleteWorkflowTypeCommand = async (input, context) => {
485
+ const headers = sharedHeaders("DeleteWorkflowType");
486
+ let body;
487
+ body = JSON.stringify(smithyClient._json(input));
488
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
489
+ };
490
+ const se_DeprecateActivityTypeCommand = async (input, context) => {
491
+ const headers = sharedHeaders("DeprecateActivityType");
492
+ let body;
493
+ body = JSON.stringify(smithyClient._json(input));
494
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
495
+ };
496
+ const se_DeprecateDomainCommand = async (input, context) => {
497
+ const headers = sharedHeaders("DeprecateDomain");
498
+ let body;
499
+ body = JSON.stringify(smithyClient._json(input));
500
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
501
+ };
502
+ const se_DeprecateWorkflowTypeCommand = async (input, context) => {
503
+ const headers = sharedHeaders("DeprecateWorkflowType");
504
+ let body;
505
+ body = JSON.stringify(smithyClient._json(input));
506
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
507
+ };
508
+ const se_DescribeActivityTypeCommand = async (input, context) => {
509
+ const headers = sharedHeaders("DescribeActivityType");
510
+ let body;
511
+ body = JSON.stringify(smithyClient._json(input));
512
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
513
+ };
514
+ const se_DescribeDomainCommand = async (input, context) => {
515
+ const headers = sharedHeaders("DescribeDomain");
516
+ let body;
517
+ body = JSON.stringify(smithyClient._json(input));
518
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
519
+ };
520
+ const se_DescribeWorkflowExecutionCommand = async (input, context) => {
521
+ const headers = sharedHeaders("DescribeWorkflowExecution");
522
+ let body;
523
+ body = JSON.stringify(smithyClient._json(input));
524
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
525
+ };
526
+ const se_DescribeWorkflowTypeCommand = async (input, context) => {
527
+ const headers = sharedHeaders("DescribeWorkflowType");
528
+ let body;
529
+ body = JSON.stringify(smithyClient._json(input));
530
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
531
+ };
532
+ const se_GetWorkflowExecutionHistoryCommand = async (input, context) => {
533
+ const headers = sharedHeaders("GetWorkflowExecutionHistory");
534
+ let body;
535
+ body = JSON.stringify(smithyClient._json(input));
536
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
537
+ };
538
+ const se_ListActivityTypesCommand = async (input, context) => {
539
+ const headers = sharedHeaders("ListActivityTypes");
540
+ let body;
541
+ body = JSON.stringify(smithyClient._json(input));
542
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
543
+ };
544
+ const se_ListClosedWorkflowExecutionsCommand = async (input, context) => {
545
+ const headers = sharedHeaders("ListClosedWorkflowExecutions");
546
+ let body;
547
+ body = JSON.stringify(se_ListClosedWorkflowExecutionsInput(input));
548
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
549
+ };
550
+ const se_ListDomainsCommand = async (input, context) => {
551
+ const headers = sharedHeaders("ListDomains");
552
+ let body;
553
+ body = JSON.stringify(smithyClient._json(input));
554
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
555
+ };
556
+ const se_ListOpenWorkflowExecutionsCommand = async (input, context) => {
557
+ const headers = sharedHeaders("ListOpenWorkflowExecutions");
558
+ let body;
559
+ body = JSON.stringify(se_ListOpenWorkflowExecutionsInput(input));
560
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
561
+ };
562
+ const se_ListTagsForResourceCommand = async (input, context) => {
563
+ const headers = sharedHeaders("ListTagsForResource");
564
+ let body;
565
+ body = JSON.stringify(smithyClient._json(input));
566
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
567
+ };
568
+ const se_ListWorkflowTypesCommand = async (input, context) => {
569
+ const headers = sharedHeaders("ListWorkflowTypes");
570
+ let body;
571
+ body = JSON.stringify(smithyClient._json(input));
572
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
573
+ };
574
+ const se_PollForActivityTaskCommand = async (input, context) => {
575
+ const headers = sharedHeaders("PollForActivityTask");
576
+ let body;
577
+ body = JSON.stringify(smithyClient._json(input));
578
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
579
+ };
580
+ const se_PollForDecisionTaskCommand = async (input, context) => {
581
+ const headers = sharedHeaders("PollForDecisionTask");
582
+ let body;
583
+ body = JSON.stringify(smithyClient._json(input));
584
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
585
+ };
586
+ const se_RecordActivityTaskHeartbeatCommand = async (input, context) => {
587
+ const headers = sharedHeaders("RecordActivityTaskHeartbeat");
588
+ let body;
589
+ body = JSON.stringify(smithyClient._json(input));
590
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
591
+ };
592
+ const se_RegisterActivityTypeCommand = async (input, context) => {
593
+ const headers = sharedHeaders("RegisterActivityType");
594
+ let body;
595
+ body = JSON.stringify(smithyClient._json(input));
596
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
597
+ };
598
+ const se_RegisterDomainCommand = async (input, context) => {
599
+ const headers = sharedHeaders("RegisterDomain");
600
+ let body;
601
+ body = JSON.stringify(smithyClient._json(input));
602
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
603
+ };
604
+ const se_RegisterWorkflowTypeCommand = async (input, context) => {
605
+ const headers = sharedHeaders("RegisterWorkflowType");
606
+ let body;
607
+ body = JSON.stringify(smithyClient._json(input));
608
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
609
+ };
610
+ const se_RequestCancelWorkflowExecutionCommand = async (input, context) => {
611
+ const headers = sharedHeaders("RequestCancelWorkflowExecution");
612
+ let body;
613
+ body = JSON.stringify(smithyClient._json(input));
614
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
615
+ };
616
+ const se_RespondActivityTaskCanceledCommand = async (input, context) => {
617
+ const headers = sharedHeaders("RespondActivityTaskCanceled");
618
+ let body;
619
+ body = JSON.stringify(smithyClient._json(input));
620
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
621
+ };
622
+ const se_RespondActivityTaskCompletedCommand = async (input, context) => {
623
+ const headers = sharedHeaders("RespondActivityTaskCompleted");
624
+ let body;
625
+ body = JSON.stringify(smithyClient._json(input));
626
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
627
+ };
628
+ const se_RespondActivityTaskFailedCommand = async (input, context) => {
629
+ const headers = sharedHeaders("RespondActivityTaskFailed");
630
+ let body;
631
+ body = JSON.stringify(smithyClient._json(input));
632
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
633
+ };
634
+ const se_RespondDecisionTaskCompletedCommand = async (input, context) => {
635
+ const headers = sharedHeaders("RespondDecisionTaskCompleted");
636
+ let body;
637
+ body = JSON.stringify(smithyClient._json(input));
638
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
639
+ };
640
+ const se_SignalWorkflowExecutionCommand = async (input, context) => {
641
+ const headers = sharedHeaders("SignalWorkflowExecution");
642
+ let body;
643
+ body = JSON.stringify(smithyClient._json(input));
644
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
645
+ };
646
+ const se_StartWorkflowExecutionCommand = async (input, context) => {
647
+ const headers = sharedHeaders("StartWorkflowExecution");
648
+ let body;
649
+ body = JSON.stringify(smithyClient._json(input));
650
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
651
+ };
652
+ const se_TagResourceCommand = async (input, context) => {
653
+ const headers = sharedHeaders("TagResource");
654
+ let body;
655
+ body = JSON.stringify(smithyClient._json(input));
656
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
657
+ };
658
+ const se_TerminateWorkflowExecutionCommand = async (input, context) => {
659
+ const headers = sharedHeaders("TerminateWorkflowExecution");
660
+ let body;
661
+ body = JSON.stringify(smithyClient._json(input));
662
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
663
+ };
664
+ const se_UndeprecateActivityTypeCommand = async (input, context) => {
665
+ const headers = sharedHeaders("UndeprecateActivityType");
666
+ let body;
667
+ body = JSON.stringify(smithyClient._json(input));
668
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
669
+ };
670
+ const se_UndeprecateDomainCommand = async (input, context) => {
671
+ const headers = sharedHeaders("UndeprecateDomain");
672
+ let body;
673
+ body = JSON.stringify(smithyClient._json(input));
674
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
675
+ };
676
+ const se_UndeprecateWorkflowTypeCommand = async (input, context) => {
677
+ const headers = sharedHeaders("UndeprecateWorkflowType");
678
+ let body;
679
+ body = JSON.stringify(smithyClient._json(input));
680
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
681
+ };
682
+ const se_UntagResourceCommand = async (input, context) => {
683
+ const headers = sharedHeaders("UntagResource");
684
+ let body;
685
+ body = JSON.stringify(smithyClient._json(input));
686
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
687
+ };
688
+ const de_CountClosedWorkflowExecutionsCommand = async (output, context) => {
689
+ if (output.statusCode >= 300) {
690
+ return de_CommandError(output, context);
691
+ }
692
+ const data = await core$1.parseJsonBody(output.body, context);
693
+ let contents = {};
694
+ contents = smithyClient._json(data);
695
+ const response = {
696
+ $metadata: deserializeMetadata(output),
697
+ ...contents,
698
+ };
699
+ return response;
700
+ };
701
+ const de_CountOpenWorkflowExecutionsCommand = async (output, context) => {
702
+ if (output.statusCode >= 300) {
703
+ return de_CommandError(output, context);
704
+ }
705
+ const data = await core$1.parseJsonBody(output.body, context);
706
+ let contents = {};
707
+ contents = smithyClient._json(data);
708
+ const response = {
709
+ $metadata: deserializeMetadata(output),
710
+ ...contents,
711
+ };
712
+ return response;
713
+ };
714
+ const de_CountPendingActivityTasksCommand = async (output, context) => {
715
+ if (output.statusCode >= 300) {
716
+ return de_CommandError(output, context);
717
+ }
718
+ const data = await core$1.parseJsonBody(output.body, context);
719
+ let contents = {};
720
+ contents = smithyClient._json(data);
721
+ const response = {
722
+ $metadata: deserializeMetadata(output),
723
+ ...contents,
724
+ };
725
+ return response;
726
+ };
727
+ const de_CountPendingDecisionTasksCommand = async (output, context) => {
728
+ if (output.statusCode >= 300) {
729
+ return de_CommandError(output, context);
730
+ }
731
+ const data = await core$1.parseJsonBody(output.body, context);
732
+ let contents = {};
733
+ contents = smithyClient._json(data);
734
+ const response = {
735
+ $metadata: deserializeMetadata(output),
736
+ ...contents,
737
+ };
738
+ return response;
739
+ };
740
+ const de_DeleteActivityTypeCommand = async (output, context) => {
741
+ if (output.statusCode >= 300) {
742
+ return de_CommandError(output, context);
743
+ }
744
+ await smithyClient.collectBody(output.body, context);
745
+ const response = {
746
+ $metadata: deserializeMetadata(output),
747
+ };
748
+ return response;
749
+ };
750
+ const de_DeleteWorkflowTypeCommand = async (output, context) => {
751
+ if (output.statusCode >= 300) {
752
+ return de_CommandError(output, context);
753
+ }
754
+ await smithyClient.collectBody(output.body, context);
755
+ const response = {
756
+ $metadata: deserializeMetadata(output),
757
+ };
758
+ return response;
759
+ };
760
+ const de_DeprecateActivityTypeCommand = async (output, context) => {
761
+ if (output.statusCode >= 300) {
762
+ return de_CommandError(output, context);
763
+ }
764
+ await smithyClient.collectBody(output.body, context);
765
+ const response = {
766
+ $metadata: deserializeMetadata(output),
767
+ };
768
+ return response;
769
+ };
770
+ const de_DeprecateDomainCommand = async (output, context) => {
771
+ if (output.statusCode >= 300) {
772
+ return de_CommandError(output, context);
773
+ }
774
+ await smithyClient.collectBody(output.body, context);
775
+ const response = {
776
+ $metadata: deserializeMetadata(output),
777
+ };
778
+ return response;
779
+ };
780
+ const de_DeprecateWorkflowTypeCommand = async (output, context) => {
781
+ if (output.statusCode >= 300) {
782
+ return de_CommandError(output, context);
783
+ }
784
+ await smithyClient.collectBody(output.body, context);
785
+ const response = {
786
+ $metadata: deserializeMetadata(output),
787
+ };
788
+ return response;
789
+ };
790
+ const de_DescribeActivityTypeCommand = async (output, context) => {
791
+ if (output.statusCode >= 300) {
792
+ return de_CommandError(output, context);
793
+ }
794
+ const data = await core$1.parseJsonBody(output.body, context);
795
+ let contents = {};
796
+ contents = de_ActivityTypeDetail(data);
797
+ const response = {
798
+ $metadata: deserializeMetadata(output),
799
+ ...contents,
800
+ };
801
+ return response;
802
+ };
803
+ const de_DescribeDomainCommand = async (output, context) => {
804
+ if (output.statusCode >= 300) {
805
+ return de_CommandError(output, context);
806
+ }
807
+ const data = await core$1.parseJsonBody(output.body, context);
808
+ let contents = {};
809
+ contents = smithyClient._json(data);
810
+ const response = {
811
+ $metadata: deserializeMetadata(output),
812
+ ...contents,
813
+ };
814
+ return response;
815
+ };
816
+ const de_DescribeWorkflowExecutionCommand = async (output, context) => {
817
+ if (output.statusCode >= 300) {
818
+ return de_CommandError(output, context);
819
+ }
820
+ const data = await core$1.parseJsonBody(output.body, context);
821
+ let contents = {};
822
+ contents = de_WorkflowExecutionDetail(data);
823
+ const response = {
824
+ $metadata: deserializeMetadata(output),
825
+ ...contents,
826
+ };
827
+ return response;
828
+ };
829
+ const de_DescribeWorkflowTypeCommand = async (output, context) => {
830
+ if (output.statusCode >= 300) {
831
+ return de_CommandError(output, context);
832
+ }
833
+ const data = await core$1.parseJsonBody(output.body, context);
834
+ let contents = {};
835
+ contents = de_WorkflowTypeDetail(data);
836
+ const response = {
837
+ $metadata: deserializeMetadata(output),
838
+ ...contents,
839
+ };
840
+ return response;
841
+ };
842
+ const de_GetWorkflowExecutionHistoryCommand = async (output, context) => {
843
+ if (output.statusCode >= 300) {
844
+ return de_CommandError(output, context);
845
+ }
846
+ const data = await core$1.parseJsonBody(output.body, context);
847
+ let contents = {};
848
+ contents = de_History(data);
849
+ const response = {
850
+ $metadata: deserializeMetadata(output),
851
+ ...contents,
852
+ };
853
+ return response;
854
+ };
855
+ const de_ListActivityTypesCommand = async (output, context) => {
856
+ if (output.statusCode >= 300) {
857
+ return de_CommandError(output, context);
858
+ }
859
+ const data = await core$1.parseJsonBody(output.body, context);
860
+ let contents = {};
861
+ contents = de_ActivityTypeInfos(data);
862
+ const response = {
863
+ $metadata: deserializeMetadata(output),
864
+ ...contents,
865
+ };
866
+ return response;
867
+ };
868
+ const de_ListClosedWorkflowExecutionsCommand = async (output, context) => {
869
+ if (output.statusCode >= 300) {
870
+ return de_CommandError(output, context);
871
+ }
872
+ const data = await core$1.parseJsonBody(output.body, context);
873
+ let contents = {};
874
+ contents = de_WorkflowExecutionInfos(data);
875
+ const response = {
876
+ $metadata: deserializeMetadata(output),
877
+ ...contents,
878
+ };
879
+ return response;
880
+ };
881
+ const de_ListDomainsCommand = async (output, context) => {
882
+ if (output.statusCode >= 300) {
883
+ return de_CommandError(output, context);
884
+ }
885
+ const data = await core$1.parseJsonBody(output.body, context);
886
+ let contents = {};
887
+ contents = smithyClient._json(data);
888
+ const response = {
889
+ $metadata: deserializeMetadata(output),
890
+ ...contents,
891
+ };
892
+ return response;
893
+ };
894
+ const de_ListOpenWorkflowExecutionsCommand = async (output, context) => {
895
+ if (output.statusCode >= 300) {
896
+ return de_CommandError(output, context);
897
+ }
898
+ const data = await core$1.parseJsonBody(output.body, context);
899
+ let contents = {};
900
+ contents = de_WorkflowExecutionInfos(data);
901
+ const response = {
902
+ $metadata: deserializeMetadata(output),
903
+ ...contents,
904
+ };
905
+ return response;
906
+ };
907
+ const de_ListTagsForResourceCommand = async (output, context) => {
908
+ if (output.statusCode >= 300) {
909
+ return de_CommandError(output, context);
910
+ }
911
+ const data = await core$1.parseJsonBody(output.body, context);
912
+ let contents = {};
913
+ contents = smithyClient._json(data);
914
+ const response = {
915
+ $metadata: deserializeMetadata(output),
916
+ ...contents,
917
+ };
918
+ return response;
919
+ };
920
+ const de_ListWorkflowTypesCommand = async (output, context) => {
921
+ if (output.statusCode >= 300) {
922
+ return de_CommandError(output, context);
923
+ }
924
+ const data = await core$1.parseJsonBody(output.body, context);
925
+ let contents = {};
926
+ contents = de_WorkflowTypeInfos(data);
927
+ const response = {
928
+ $metadata: deserializeMetadata(output),
929
+ ...contents,
930
+ };
931
+ return response;
932
+ };
933
+ const de_PollForActivityTaskCommand = async (output, context) => {
934
+ if (output.statusCode >= 300) {
935
+ return de_CommandError(output, context);
936
+ }
937
+ const data = await core$1.parseJsonBody(output.body, context);
938
+ let contents = {};
939
+ contents = smithyClient._json(data);
940
+ const response = {
941
+ $metadata: deserializeMetadata(output),
942
+ ...contents,
943
+ };
944
+ return response;
945
+ };
946
+ const de_PollForDecisionTaskCommand = async (output, context) => {
947
+ if (output.statusCode >= 300) {
948
+ return de_CommandError(output, context);
949
+ }
950
+ const data = await core$1.parseJsonBody(output.body, context);
951
+ let contents = {};
952
+ contents = de_DecisionTask(data);
953
+ const response = {
954
+ $metadata: deserializeMetadata(output),
955
+ ...contents,
956
+ };
957
+ return response;
958
+ };
959
+ const de_RecordActivityTaskHeartbeatCommand = async (output, context) => {
960
+ if (output.statusCode >= 300) {
961
+ return de_CommandError(output, context);
962
+ }
963
+ const data = await core$1.parseJsonBody(output.body, context);
964
+ let contents = {};
965
+ contents = smithyClient._json(data);
966
+ const response = {
967
+ $metadata: deserializeMetadata(output),
968
+ ...contents,
969
+ };
970
+ return response;
971
+ };
972
+ const de_RegisterActivityTypeCommand = async (output, context) => {
973
+ if (output.statusCode >= 300) {
974
+ return de_CommandError(output, context);
975
+ }
976
+ await smithyClient.collectBody(output.body, context);
977
+ const response = {
978
+ $metadata: deserializeMetadata(output),
979
+ };
980
+ return response;
981
+ };
982
+ const de_RegisterDomainCommand = async (output, context) => {
983
+ if (output.statusCode >= 300) {
984
+ return de_CommandError(output, context);
985
+ }
986
+ await smithyClient.collectBody(output.body, context);
987
+ const response = {
988
+ $metadata: deserializeMetadata(output),
989
+ };
990
+ return response;
991
+ };
992
+ const de_RegisterWorkflowTypeCommand = async (output, context) => {
993
+ if (output.statusCode >= 300) {
994
+ return de_CommandError(output, context);
995
+ }
996
+ await smithyClient.collectBody(output.body, context);
997
+ const response = {
998
+ $metadata: deserializeMetadata(output),
999
+ };
1000
+ return response;
1001
+ };
1002
+ const de_RequestCancelWorkflowExecutionCommand = async (output, context) => {
1003
+ if (output.statusCode >= 300) {
1004
+ return de_CommandError(output, context);
1005
+ }
1006
+ await smithyClient.collectBody(output.body, context);
1007
+ const response = {
1008
+ $metadata: deserializeMetadata(output),
1009
+ };
1010
+ return response;
1011
+ };
1012
+ const de_RespondActivityTaskCanceledCommand = async (output, context) => {
1013
+ if (output.statusCode >= 300) {
1014
+ return de_CommandError(output, context);
1015
+ }
1016
+ await smithyClient.collectBody(output.body, context);
1017
+ const response = {
1018
+ $metadata: deserializeMetadata(output),
1019
+ };
1020
+ return response;
1021
+ };
1022
+ const de_RespondActivityTaskCompletedCommand = async (output, context) => {
1023
+ if (output.statusCode >= 300) {
1024
+ return de_CommandError(output, context);
1025
+ }
1026
+ await smithyClient.collectBody(output.body, context);
1027
+ const response = {
1028
+ $metadata: deserializeMetadata(output),
1029
+ };
1030
+ return response;
1031
+ };
1032
+ const de_RespondActivityTaskFailedCommand = async (output, context) => {
1033
+ if (output.statusCode >= 300) {
1034
+ return de_CommandError(output, context);
1035
+ }
1036
+ await smithyClient.collectBody(output.body, context);
1037
+ const response = {
1038
+ $metadata: deserializeMetadata(output),
1039
+ };
1040
+ return response;
1041
+ };
1042
+ const de_RespondDecisionTaskCompletedCommand = async (output, context) => {
1043
+ if (output.statusCode >= 300) {
1044
+ return de_CommandError(output, context);
1045
+ }
1046
+ await smithyClient.collectBody(output.body, context);
1047
+ const response = {
1048
+ $metadata: deserializeMetadata(output),
1049
+ };
1050
+ return response;
1051
+ };
1052
+ const de_SignalWorkflowExecutionCommand = async (output, context) => {
1053
+ if (output.statusCode >= 300) {
1054
+ return de_CommandError(output, context);
1055
+ }
1056
+ await smithyClient.collectBody(output.body, context);
1057
+ const response = {
1058
+ $metadata: deserializeMetadata(output),
1059
+ };
1060
+ return response;
1061
+ };
1062
+ const de_StartWorkflowExecutionCommand = async (output, context) => {
1063
+ if (output.statusCode >= 300) {
1064
+ return de_CommandError(output, context);
1065
+ }
1066
+ const data = await core$1.parseJsonBody(output.body, context);
1067
+ let contents = {};
1068
+ contents = smithyClient._json(data);
1069
+ const response = {
1070
+ $metadata: deserializeMetadata(output),
1071
+ ...contents,
1072
+ };
1073
+ return response;
1074
+ };
1075
+ const de_TagResourceCommand = async (output, context) => {
1076
+ if (output.statusCode >= 300) {
1077
+ return de_CommandError(output, context);
1078
+ }
1079
+ await smithyClient.collectBody(output.body, context);
1080
+ const response = {
1081
+ $metadata: deserializeMetadata(output),
1082
+ };
1083
+ return response;
1084
+ };
1085
+ const de_TerminateWorkflowExecutionCommand = async (output, context) => {
1086
+ if (output.statusCode >= 300) {
1087
+ return de_CommandError(output, context);
1088
+ }
1089
+ await smithyClient.collectBody(output.body, context);
1090
+ const response = {
1091
+ $metadata: deserializeMetadata(output),
1092
+ };
1093
+ return response;
1094
+ };
1095
+ const de_UndeprecateActivityTypeCommand = async (output, context) => {
1096
+ if (output.statusCode >= 300) {
1097
+ return de_CommandError(output, context);
1098
+ }
1099
+ await smithyClient.collectBody(output.body, context);
1100
+ const response = {
1101
+ $metadata: deserializeMetadata(output),
1102
+ };
1103
+ return response;
1104
+ };
1105
+ const de_UndeprecateDomainCommand = async (output, context) => {
1106
+ if (output.statusCode >= 300) {
1107
+ return de_CommandError(output, context);
1108
+ }
1109
+ await smithyClient.collectBody(output.body, context);
1110
+ const response = {
1111
+ $metadata: deserializeMetadata(output),
1112
+ };
1113
+ return response;
1114
+ };
1115
+ const de_UndeprecateWorkflowTypeCommand = async (output, context) => {
1116
+ if (output.statusCode >= 300) {
1117
+ return de_CommandError(output, context);
1118
+ }
1119
+ await smithyClient.collectBody(output.body, context);
1120
+ const response = {
1121
+ $metadata: deserializeMetadata(output),
1122
+ };
1123
+ return response;
1124
+ };
1125
+ const de_UntagResourceCommand = async (output, context) => {
1126
+ if (output.statusCode >= 300) {
1127
+ return de_CommandError(output, context);
1128
+ }
1129
+ await smithyClient.collectBody(output.body, context);
1130
+ const response = {
1131
+ $metadata: deserializeMetadata(output),
1132
+ };
1133
+ return response;
1134
+ };
1135
+ const de_CommandError = async (output, context) => {
1136
+ const parsedOutput = {
1137
+ ...output,
1138
+ body: await core$1.parseJsonErrorBody(output.body, context),
1139
+ };
1140
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1141
+ switch (errorCode) {
1142
+ case "OperationNotPermittedFault":
1143
+ case "com.amazonaws.swf#OperationNotPermittedFault":
1144
+ throw await de_OperationNotPermittedFaultRes(parsedOutput);
1145
+ case "UnknownResourceFault":
1146
+ case "com.amazonaws.swf#UnknownResourceFault":
1147
+ throw await de_UnknownResourceFaultRes(parsedOutput);
1148
+ case "TypeNotDeprecatedFault":
1149
+ case "com.amazonaws.swf#TypeNotDeprecatedFault":
1150
+ throw await de_TypeNotDeprecatedFaultRes(parsedOutput);
1151
+ case "TypeDeprecatedFault":
1152
+ case "com.amazonaws.swf#TypeDeprecatedFault":
1153
+ throw await de_TypeDeprecatedFaultRes(parsedOutput);
1154
+ case "DomainDeprecatedFault":
1155
+ case "com.amazonaws.swf#DomainDeprecatedFault":
1156
+ throw await de_DomainDeprecatedFaultRes(parsedOutput);
1157
+ case "LimitExceededFault":
1158
+ case "com.amazonaws.swf#LimitExceededFault":
1159
+ throw await de_LimitExceededFaultRes(parsedOutput);
1160
+ case "TypeAlreadyExistsFault":
1161
+ case "com.amazonaws.swf#TypeAlreadyExistsFault":
1162
+ throw await de_TypeAlreadyExistsFaultRes(parsedOutput);
1163
+ case "DomainAlreadyExistsFault":
1164
+ case "com.amazonaws.swf#DomainAlreadyExistsFault":
1165
+ throw await de_DomainAlreadyExistsFaultRes(parsedOutput);
1166
+ case "TooManyTagsFault":
1167
+ case "com.amazonaws.swf#TooManyTagsFault":
1168
+ throw await de_TooManyTagsFaultRes(parsedOutput);
1169
+ case "DefaultUndefinedFault":
1170
+ case "com.amazonaws.swf#DefaultUndefinedFault":
1171
+ throw await de_DefaultUndefinedFaultRes(parsedOutput);
1172
+ case "WorkflowExecutionAlreadyStartedFault":
1173
+ case "com.amazonaws.swf#WorkflowExecutionAlreadyStartedFault":
1174
+ throw await de_WorkflowExecutionAlreadyStartedFaultRes(parsedOutput);
1175
+ default:
1176
+ const parsedBody = parsedOutput.body;
1177
+ return throwDefaultError({
1178
+ output,
1179
+ parsedBody,
1180
+ errorCode,
1181
+ });
1182
+ }
281
1183
  };
282
-
283
- // src/models/models_0.ts
284
- var ActivityTaskTimeoutType = {
285
- HEARTBEAT: "HEARTBEAT",
286
- SCHEDULE_TO_CLOSE: "SCHEDULE_TO_CLOSE",
287
- SCHEDULE_TO_START: "SCHEDULE_TO_START",
288
- START_TO_CLOSE: "START_TO_CLOSE"
289
- };
290
- var RegistrationStatus = {
291
- DEPRECATED: "DEPRECATED",
292
- REGISTERED: "REGISTERED"
293
- };
294
- var CancelTimerFailedCause = {
295
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
296
- TIMER_ID_UNKNOWN: "TIMER_ID_UNKNOWN"
297
- };
298
- var CancelWorkflowExecutionFailedCause = {
299
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
300
- UNHANDLED_DECISION: "UNHANDLED_DECISION"
301
- };
302
- var ChildPolicy = {
303
- ABANDON: "ABANDON",
304
- REQUEST_CANCEL: "REQUEST_CANCEL",
305
- TERMINATE: "TERMINATE"
306
- };
307
- var WorkflowExecutionTimeoutType = {
308
- START_TO_CLOSE: "START_TO_CLOSE"
309
- };
310
- var CloseStatus = {
311
- CANCELED: "CANCELED",
312
- COMPLETED: "COMPLETED",
313
- CONTINUED_AS_NEW: "CONTINUED_AS_NEW",
314
- FAILED: "FAILED",
315
- TERMINATED: "TERMINATED",
316
- TIMED_OUT: "TIMED_OUT"
317
- };
318
- var CompleteWorkflowExecutionFailedCause = {
319
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
320
- UNHANDLED_DECISION: "UNHANDLED_DECISION"
321
- };
322
- var ContinueAsNewWorkflowExecutionFailedCause = {
323
- CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED: "CONTINUE_AS_NEW_WORKFLOW_EXECUTION_RATE_EXCEEDED",
324
- DEFAULT_CHILD_POLICY_UNDEFINED: "DEFAULT_CHILD_POLICY_UNDEFINED",
325
- DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED",
326
- DEFAULT_TASK_LIST_UNDEFINED: "DEFAULT_TASK_LIST_UNDEFINED",
327
- DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED",
328
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
329
- UNHANDLED_DECISION: "UNHANDLED_DECISION",
330
- WORKFLOW_TYPE_DEPRECATED: "WORKFLOW_TYPE_DEPRECATED",
331
- WORKFLOW_TYPE_DOES_NOT_EXIST: "WORKFLOW_TYPE_DOES_NOT_EXIST"
332
- };
333
- var OperationNotPermittedFault = class _OperationNotPermittedFault extends SWFServiceException {
334
- static {
335
- __name(this, "OperationNotPermittedFault");
336
- }
337
- name = "OperationNotPermittedFault";
338
- $fault = "client";
339
- /**
340
- * @internal
341
- */
342
- constructor(opts) {
343
- super({
344
- name: "OperationNotPermittedFault",
345
- $fault: "client",
346
- ...opts
1184
+ const de_DefaultUndefinedFaultRes = async (parsedOutput, context) => {
1185
+ const body = parsedOutput.body;
1186
+ const deserialized = smithyClient._json(body);
1187
+ const exception = new DefaultUndefinedFault({
1188
+ $metadata: deserializeMetadata(parsedOutput),
1189
+ ...deserialized,
347
1190
  });
348
- Object.setPrototypeOf(this, _OperationNotPermittedFault.prototype);
349
- }
350
- };
351
- var UnknownResourceFault = class _UnknownResourceFault extends SWFServiceException {
352
- static {
353
- __name(this, "UnknownResourceFault");
354
- }
355
- name = "UnknownResourceFault";
356
- $fault = "client";
357
- /**
358
- * @internal
359
- */
360
- constructor(opts) {
361
- super({
362
- name: "UnknownResourceFault",
363
- $fault: "client",
364
- ...opts
1191
+ return smithyClient.decorateServiceException(exception, body);
1192
+ };
1193
+ const de_DomainAlreadyExistsFaultRes = async (parsedOutput, context) => {
1194
+ const body = parsedOutput.body;
1195
+ const deserialized = smithyClient._json(body);
1196
+ const exception = new DomainAlreadyExistsFault({
1197
+ $metadata: deserializeMetadata(parsedOutput),
1198
+ ...deserialized,
365
1199
  });
366
- Object.setPrototypeOf(this, _UnknownResourceFault.prototype);
367
- }
368
- };
369
- var DecisionType = {
370
- CancelTimer: "CancelTimer",
371
- CancelWorkflowExecution: "CancelWorkflowExecution",
372
- CompleteWorkflowExecution: "CompleteWorkflowExecution",
373
- ContinueAsNewWorkflowExecution: "ContinueAsNewWorkflowExecution",
374
- FailWorkflowExecution: "FailWorkflowExecution",
375
- RecordMarker: "RecordMarker",
376
- RequestCancelActivityTask: "RequestCancelActivityTask",
377
- RequestCancelExternalWorkflowExecution: "RequestCancelExternalWorkflowExecution",
378
- ScheduleActivityTask: "ScheduleActivityTask",
379
- ScheduleLambdaFunction: "ScheduleLambdaFunction",
380
- SignalExternalWorkflowExecution: "SignalExternalWorkflowExecution",
381
- StartChildWorkflowExecution: "StartChildWorkflowExecution",
382
- StartTimer: "StartTimer"
383
- };
384
- var DecisionTaskTimeoutType = {
385
- SCHEDULE_TO_START: "SCHEDULE_TO_START",
386
- START_TO_CLOSE: "START_TO_CLOSE"
387
- };
388
- var EventType = {
389
- ActivityTaskCancelRequested: "ActivityTaskCancelRequested",
390
- ActivityTaskCanceled: "ActivityTaskCanceled",
391
- ActivityTaskCompleted: "ActivityTaskCompleted",
392
- ActivityTaskFailed: "ActivityTaskFailed",
393
- ActivityTaskScheduled: "ActivityTaskScheduled",
394
- ActivityTaskStarted: "ActivityTaskStarted",
395
- ActivityTaskTimedOut: "ActivityTaskTimedOut",
396
- CancelTimerFailed: "CancelTimerFailed",
397
- CancelWorkflowExecutionFailed: "CancelWorkflowExecutionFailed",
398
- ChildWorkflowExecutionCanceled: "ChildWorkflowExecutionCanceled",
399
- ChildWorkflowExecutionCompleted: "ChildWorkflowExecutionCompleted",
400
- ChildWorkflowExecutionFailed: "ChildWorkflowExecutionFailed",
401
- ChildWorkflowExecutionStarted: "ChildWorkflowExecutionStarted",
402
- ChildWorkflowExecutionTerminated: "ChildWorkflowExecutionTerminated",
403
- ChildWorkflowExecutionTimedOut: "ChildWorkflowExecutionTimedOut",
404
- CompleteWorkflowExecutionFailed: "CompleteWorkflowExecutionFailed",
405
- ContinueAsNewWorkflowExecutionFailed: "ContinueAsNewWorkflowExecutionFailed",
406
- DecisionTaskCompleted: "DecisionTaskCompleted",
407
- DecisionTaskScheduled: "DecisionTaskScheduled",
408
- DecisionTaskStarted: "DecisionTaskStarted",
409
- DecisionTaskTimedOut: "DecisionTaskTimedOut",
410
- ExternalWorkflowExecutionCancelRequested: "ExternalWorkflowExecutionCancelRequested",
411
- ExternalWorkflowExecutionSignaled: "ExternalWorkflowExecutionSignaled",
412
- FailWorkflowExecutionFailed: "FailWorkflowExecutionFailed",
413
- LambdaFunctionCompleted: "LambdaFunctionCompleted",
414
- LambdaFunctionFailed: "LambdaFunctionFailed",
415
- LambdaFunctionScheduled: "LambdaFunctionScheduled",
416
- LambdaFunctionStarted: "LambdaFunctionStarted",
417
- LambdaFunctionTimedOut: "LambdaFunctionTimedOut",
418
- MarkerRecorded: "MarkerRecorded",
419
- RecordMarkerFailed: "RecordMarkerFailed",
420
- RequestCancelActivityTaskFailed: "RequestCancelActivityTaskFailed",
421
- RequestCancelExternalWorkflowExecutionFailed: "RequestCancelExternalWorkflowExecutionFailed",
422
- RequestCancelExternalWorkflowExecutionInitiated: "RequestCancelExternalWorkflowExecutionInitiated",
423
- ScheduleActivityTaskFailed: "ScheduleActivityTaskFailed",
424
- ScheduleLambdaFunctionFailed: "ScheduleLambdaFunctionFailed",
425
- SignalExternalWorkflowExecutionFailed: "SignalExternalWorkflowExecutionFailed",
426
- SignalExternalWorkflowExecutionInitiated: "SignalExternalWorkflowExecutionInitiated",
427
- StartChildWorkflowExecutionFailed: "StartChildWorkflowExecutionFailed",
428
- StartChildWorkflowExecutionInitiated: "StartChildWorkflowExecutionInitiated",
429
- StartLambdaFunctionFailed: "StartLambdaFunctionFailed",
430
- StartTimerFailed: "StartTimerFailed",
431
- TimerCanceled: "TimerCanceled",
432
- TimerFired: "TimerFired",
433
- TimerStarted: "TimerStarted",
434
- WorkflowExecutionCancelRequested: "WorkflowExecutionCancelRequested",
435
- WorkflowExecutionCanceled: "WorkflowExecutionCanceled",
436
- WorkflowExecutionCompleted: "WorkflowExecutionCompleted",
437
- WorkflowExecutionContinuedAsNew: "WorkflowExecutionContinuedAsNew",
438
- WorkflowExecutionFailed: "WorkflowExecutionFailed",
439
- WorkflowExecutionSignaled: "WorkflowExecutionSignaled",
440
- WorkflowExecutionStarted: "WorkflowExecutionStarted",
441
- WorkflowExecutionTerminated: "WorkflowExecutionTerminated",
442
- WorkflowExecutionTimedOut: "WorkflowExecutionTimedOut"
443
- };
444
- var FailWorkflowExecutionFailedCause = {
445
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
446
- UNHANDLED_DECISION: "UNHANDLED_DECISION"
447
- };
448
- var LambdaFunctionTimeoutType = {
449
- START_TO_CLOSE: "START_TO_CLOSE"
450
- };
451
- var RecordMarkerFailedCause = {
452
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED"
453
- };
454
- var RequestCancelActivityTaskFailedCause = {
455
- ACTIVITY_ID_UNKNOWN: "ACTIVITY_ID_UNKNOWN",
456
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED"
457
- };
458
- var RequestCancelExternalWorkflowExecutionFailedCause = {
459
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
460
- REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED: "REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED",
461
- UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION: "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"
462
- };
463
- var ScheduleActivityTaskFailedCause = {
464
- ACTIVITY_CREATION_RATE_EXCEEDED: "ACTIVITY_CREATION_RATE_EXCEEDED",
465
- ACTIVITY_ID_ALREADY_IN_USE: "ACTIVITY_ID_ALREADY_IN_USE",
466
- ACTIVITY_TYPE_DEPRECATED: "ACTIVITY_TYPE_DEPRECATED",
467
- ACTIVITY_TYPE_DOES_NOT_EXIST: "ACTIVITY_TYPE_DOES_NOT_EXIST",
468
- DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED: "DEFAULT_HEARTBEAT_TIMEOUT_UNDEFINED",
469
- DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_SCHEDULE_TO_CLOSE_TIMEOUT_UNDEFINED",
470
- DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED: "DEFAULT_SCHEDULE_TO_START_TIMEOUT_UNDEFINED",
471
- DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_START_TO_CLOSE_TIMEOUT_UNDEFINED",
472
- DEFAULT_TASK_LIST_UNDEFINED: "DEFAULT_TASK_LIST_UNDEFINED",
473
- OPEN_ACTIVITIES_LIMIT_EXCEEDED: "OPEN_ACTIVITIES_LIMIT_EXCEEDED",
474
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED"
475
- };
476
- var ScheduleLambdaFunctionFailedCause = {
477
- ID_ALREADY_IN_USE: "ID_ALREADY_IN_USE",
478
- LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED: "LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED",
479
- LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION: "LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION",
480
- OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED: "OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED"
481
- };
482
- var SignalExternalWorkflowExecutionFailedCause = {
483
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
484
- SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED: "SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_RATE_EXCEEDED",
485
- UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION: "UNKNOWN_EXTERNAL_WORKFLOW_EXECUTION"
486
- };
487
- var StartChildWorkflowExecutionFailedCause = {
488
- CHILD_CREATION_RATE_EXCEEDED: "CHILD_CREATION_RATE_EXCEEDED",
489
- DEFAULT_CHILD_POLICY_UNDEFINED: "DEFAULT_CHILD_POLICY_UNDEFINED",
490
- DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED",
491
- DEFAULT_TASK_LIST_UNDEFINED: "DEFAULT_TASK_LIST_UNDEFINED",
492
- DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED: "DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED",
493
- OPEN_CHILDREN_LIMIT_EXCEEDED: "OPEN_CHILDREN_LIMIT_EXCEEDED",
494
- OPEN_WORKFLOWS_LIMIT_EXCEEDED: "OPEN_WORKFLOWS_LIMIT_EXCEEDED",
495
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
496
- WORKFLOW_ALREADY_RUNNING: "WORKFLOW_ALREADY_RUNNING",
497
- WORKFLOW_TYPE_DEPRECATED: "WORKFLOW_TYPE_DEPRECATED",
498
- WORKFLOW_TYPE_DOES_NOT_EXIST: "WORKFLOW_TYPE_DOES_NOT_EXIST"
499
- };
500
- var StartLambdaFunctionFailedCause = {
501
- ASSUME_ROLE_FAILED: "ASSUME_ROLE_FAILED"
502
- };
503
- var StartTimerFailedCause = {
504
- OPEN_TIMERS_LIMIT_EXCEEDED: "OPEN_TIMERS_LIMIT_EXCEEDED",
505
- OPERATION_NOT_PERMITTED: "OPERATION_NOT_PERMITTED",
506
- TIMER_CREATION_RATE_EXCEEDED: "TIMER_CREATION_RATE_EXCEEDED",
507
- TIMER_ID_ALREADY_IN_USE: "TIMER_ID_ALREADY_IN_USE"
508
- };
509
- var WorkflowExecutionCancelRequestedCause = {
510
- CHILD_POLICY_APPLIED: "CHILD_POLICY_APPLIED"
511
- };
512
- var WorkflowExecutionTerminatedCause = {
513
- CHILD_POLICY_APPLIED: "CHILD_POLICY_APPLIED",
514
- EVENT_LIMIT_EXCEEDED: "EVENT_LIMIT_EXCEEDED",
515
- OPERATOR_INITIATED: "OPERATOR_INITIATED"
516
- };
517
- var DefaultUndefinedFault = class _DefaultUndefinedFault extends SWFServiceException {
518
- static {
519
- __name(this, "DefaultUndefinedFault");
520
- }
521
- name = "DefaultUndefinedFault";
522
- $fault = "client";
523
- /**
524
- * @internal
525
- */
526
- constructor(opts) {
527
- super({
528
- name: "DefaultUndefinedFault",
529
- $fault: "client",
530
- ...opts
1200
+ return smithyClient.decorateServiceException(exception, body);
1201
+ };
1202
+ const de_DomainDeprecatedFaultRes = async (parsedOutput, context) => {
1203
+ const body = parsedOutput.body;
1204
+ const deserialized = smithyClient._json(body);
1205
+ const exception = new DomainDeprecatedFault({
1206
+ $metadata: deserializeMetadata(parsedOutput),
1207
+ ...deserialized,
531
1208
  });
532
- Object.setPrototypeOf(this, _DefaultUndefinedFault.prototype);
533
- }
534
- };
535
- var TypeNotDeprecatedFault = class _TypeNotDeprecatedFault extends SWFServiceException {
536
- static {
537
- __name(this, "TypeNotDeprecatedFault");
538
- }
539
- name = "TypeNotDeprecatedFault";
540
- $fault = "client";
541
- /**
542
- * @internal
543
- */
544
- constructor(opts) {
545
- super({
546
- name: "TypeNotDeprecatedFault",
547
- $fault: "client",
548
- ...opts
1209
+ return smithyClient.decorateServiceException(exception, body);
1210
+ };
1211
+ const de_LimitExceededFaultRes = async (parsedOutput, context) => {
1212
+ const body = parsedOutput.body;
1213
+ const deserialized = smithyClient._json(body);
1214
+ const exception = new LimitExceededFault({
1215
+ $metadata: deserializeMetadata(parsedOutput),
1216
+ ...deserialized,
549
1217
  });
550
- Object.setPrototypeOf(this, _TypeNotDeprecatedFault.prototype);
551
- }
552
- };
553
- var TypeDeprecatedFault = class _TypeDeprecatedFault extends SWFServiceException {
554
- static {
555
- __name(this, "TypeDeprecatedFault");
556
- }
557
- name = "TypeDeprecatedFault";
558
- $fault = "client";
559
- /**
560
- * @internal
561
- */
562
- constructor(opts) {
563
- super({
564
- name: "TypeDeprecatedFault",
565
- $fault: "client",
566
- ...opts
1218
+ return smithyClient.decorateServiceException(exception, body);
1219
+ };
1220
+ const de_OperationNotPermittedFaultRes = async (parsedOutput, context) => {
1221
+ const body = parsedOutput.body;
1222
+ const deserialized = smithyClient._json(body);
1223
+ const exception = new OperationNotPermittedFault({
1224
+ $metadata: deserializeMetadata(parsedOutput),
1225
+ ...deserialized,
567
1226
  });
568
- Object.setPrototypeOf(this, _TypeDeprecatedFault.prototype);
569
- }
570
- };
571
- var DomainDeprecatedFault = class _DomainDeprecatedFault extends SWFServiceException {
572
- static {
573
- __name(this, "DomainDeprecatedFault");
574
- }
575
- name = "DomainDeprecatedFault";
576
- $fault = "client";
577
- /**
578
- * @internal
579
- */
580
- constructor(opts) {
581
- super({
582
- name: "DomainDeprecatedFault",
583
- $fault: "client",
584
- ...opts
1227
+ return smithyClient.decorateServiceException(exception, body);
1228
+ };
1229
+ const de_TooManyTagsFaultRes = async (parsedOutput, context) => {
1230
+ const body = parsedOutput.body;
1231
+ const deserialized = smithyClient._json(body);
1232
+ const exception = new TooManyTagsFault({
1233
+ $metadata: deserializeMetadata(parsedOutput),
1234
+ ...deserialized,
585
1235
  });
586
- Object.setPrototypeOf(this, _DomainDeprecatedFault.prototype);
587
- }
588
- };
589
- var ExecutionStatus = {
590
- CLOSED: "CLOSED",
591
- OPEN: "OPEN"
592
- };
593
- var DomainAlreadyExistsFault = class _DomainAlreadyExistsFault extends SWFServiceException {
594
- static {
595
- __name(this, "DomainAlreadyExistsFault");
596
- }
597
- name = "DomainAlreadyExistsFault";
598
- $fault = "client";
599
- /**
600
- * @internal
601
- */
602
- constructor(opts) {
603
- super({
604
- name: "DomainAlreadyExistsFault",
605
- $fault: "client",
606
- ...opts
1236
+ return smithyClient.decorateServiceException(exception, body);
1237
+ };
1238
+ const de_TypeAlreadyExistsFaultRes = async (parsedOutput, context) => {
1239
+ const body = parsedOutput.body;
1240
+ const deserialized = smithyClient._json(body);
1241
+ const exception = new TypeAlreadyExistsFault({
1242
+ $metadata: deserializeMetadata(parsedOutput),
1243
+ ...deserialized,
607
1244
  });
608
- Object.setPrototypeOf(this, _DomainAlreadyExistsFault.prototype);
609
- }
610
- };
611
- var LimitExceededFault = class _LimitExceededFault extends SWFServiceException {
612
- static {
613
- __name(this, "LimitExceededFault");
614
- }
615
- name = "LimitExceededFault";
616
- $fault = "client";
617
- /**
618
- * @internal
619
- */
620
- constructor(opts) {
621
- super({
622
- name: "LimitExceededFault",
623
- $fault: "client",
624
- ...opts
1245
+ return smithyClient.decorateServiceException(exception, body);
1246
+ };
1247
+ const de_TypeDeprecatedFaultRes = async (parsedOutput, context) => {
1248
+ const body = parsedOutput.body;
1249
+ const deserialized = smithyClient._json(body);
1250
+ const exception = new TypeDeprecatedFault({
1251
+ $metadata: deserializeMetadata(parsedOutput),
1252
+ ...deserialized,
625
1253
  });
626
- Object.setPrototypeOf(this, _LimitExceededFault.prototype);
627
- }
628
- };
629
- var TypeAlreadyExistsFault = class _TypeAlreadyExistsFault extends SWFServiceException {
630
- static {
631
- __name(this, "TypeAlreadyExistsFault");
632
- }
633
- name = "TypeAlreadyExistsFault";
634
- $fault = "client";
635
- /**
636
- * @internal
637
- */
638
- constructor(opts) {
639
- super({
640
- name: "TypeAlreadyExistsFault",
641
- $fault: "client",
642
- ...opts
1254
+ return smithyClient.decorateServiceException(exception, body);
1255
+ };
1256
+ const de_TypeNotDeprecatedFaultRes = async (parsedOutput, context) => {
1257
+ const body = parsedOutput.body;
1258
+ const deserialized = smithyClient._json(body);
1259
+ const exception = new TypeNotDeprecatedFault({
1260
+ $metadata: deserializeMetadata(parsedOutput),
1261
+ ...deserialized,
643
1262
  });
644
- Object.setPrototypeOf(this, _TypeAlreadyExistsFault.prototype);
645
- }
646
- };
647
- var TooManyTagsFault = class _TooManyTagsFault extends SWFServiceException {
648
- static {
649
- __name(this, "TooManyTagsFault");
650
- }
651
- name = "TooManyTagsFault";
652
- $fault = "client";
653
- /**
654
- * @internal
655
- */
656
- constructor(opts) {
657
- super({
658
- name: "TooManyTagsFault",
659
- $fault: "client",
660
- ...opts
1263
+ return smithyClient.decorateServiceException(exception, body);
1264
+ };
1265
+ const de_UnknownResourceFaultRes = async (parsedOutput, context) => {
1266
+ const body = parsedOutput.body;
1267
+ const deserialized = smithyClient._json(body);
1268
+ const exception = new UnknownResourceFault({
1269
+ $metadata: deserializeMetadata(parsedOutput),
1270
+ ...deserialized,
661
1271
  });
662
- Object.setPrototypeOf(this, _TooManyTagsFault.prototype);
663
- }
664
- };
665
- var WorkflowExecutionAlreadyStartedFault = class _WorkflowExecutionAlreadyStartedFault extends SWFServiceException {
666
- static {
667
- __name(this, "WorkflowExecutionAlreadyStartedFault");
668
- }
669
- name = "WorkflowExecutionAlreadyStartedFault";
670
- $fault = "client";
671
- /**
672
- * @internal
673
- */
674
- constructor(opts) {
675
- super({
676
- name: "WorkflowExecutionAlreadyStartedFault",
677
- $fault: "client",
678
- ...opts
1272
+ return smithyClient.decorateServiceException(exception, body);
1273
+ };
1274
+ const de_WorkflowExecutionAlreadyStartedFaultRes = async (parsedOutput, context) => {
1275
+ const body = parsedOutput.body;
1276
+ const deserialized = smithyClient._json(body);
1277
+ const exception = new WorkflowExecutionAlreadyStartedFault({
1278
+ $metadata: deserializeMetadata(parsedOutput),
1279
+ ...deserialized,
1280
+ });
1281
+ return smithyClient.decorateServiceException(exception, body);
1282
+ };
1283
+ const se_CountClosedWorkflowExecutionsInput = (input, context) => {
1284
+ return smithyClient.take(input, {
1285
+ closeStatusFilter: smithyClient._json,
1286
+ closeTimeFilter: (_) => se_ExecutionTimeFilter(_),
1287
+ domain: [],
1288
+ executionFilter: smithyClient._json,
1289
+ startTimeFilter: (_) => se_ExecutionTimeFilter(_),
1290
+ tagFilter: smithyClient._json,
1291
+ typeFilter: smithyClient._json,
679
1292
  });
680
- Object.setPrototypeOf(this, _WorkflowExecutionAlreadyStartedFault.prototype);
681
- }
682
- };
683
-
684
- // src/protocols/Aws_json1_0.ts
685
- var se_CountClosedWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
686
- const headers = sharedHeaders("CountClosedWorkflowExecutions");
687
- let body;
688
- body = JSON.stringify(se_CountClosedWorkflowExecutionsInput(input, context));
689
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
690
- }, "se_CountClosedWorkflowExecutionsCommand");
691
- var se_CountOpenWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
692
- const headers = sharedHeaders("CountOpenWorkflowExecutions");
693
- let body;
694
- body = JSON.stringify(se_CountOpenWorkflowExecutionsInput(input, context));
695
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
696
- }, "se_CountOpenWorkflowExecutionsCommand");
697
- var se_CountPendingActivityTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
698
- const headers = sharedHeaders("CountPendingActivityTasks");
699
- let body;
700
- body = JSON.stringify((0, import_smithy_client._json)(input));
701
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
702
- }, "se_CountPendingActivityTasksCommand");
703
- var se_CountPendingDecisionTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
704
- const headers = sharedHeaders("CountPendingDecisionTasks");
705
- let body;
706
- body = JSON.stringify((0, import_smithy_client._json)(input));
707
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
708
- }, "se_CountPendingDecisionTasksCommand");
709
- var se_DeleteActivityTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
710
- const headers = sharedHeaders("DeleteActivityType");
711
- let body;
712
- body = JSON.stringify((0, import_smithy_client._json)(input));
713
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
714
- }, "se_DeleteActivityTypeCommand");
715
- var se_DeleteWorkflowTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
716
- const headers = sharedHeaders("DeleteWorkflowType");
717
- let body;
718
- body = JSON.stringify((0, import_smithy_client._json)(input));
719
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
720
- }, "se_DeleteWorkflowTypeCommand");
721
- var se_DeprecateActivityTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
722
- const headers = sharedHeaders("DeprecateActivityType");
723
- let body;
724
- body = JSON.stringify((0, import_smithy_client._json)(input));
725
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
726
- }, "se_DeprecateActivityTypeCommand");
727
- var se_DeprecateDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
728
- const headers = sharedHeaders("DeprecateDomain");
729
- let body;
730
- body = JSON.stringify((0, import_smithy_client._json)(input));
731
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
732
- }, "se_DeprecateDomainCommand");
733
- var se_DeprecateWorkflowTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
734
- const headers = sharedHeaders("DeprecateWorkflowType");
735
- let body;
736
- body = JSON.stringify((0, import_smithy_client._json)(input));
737
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
738
- }, "se_DeprecateWorkflowTypeCommand");
739
- var se_DescribeActivityTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
740
- const headers = sharedHeaders("DescribeActivityType");
741
- let body;
742
- body = JSON.stringify((0, import_smithy_client._json)(input));
743
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
744
- }, "se_DescribeActivityTypeCommand");
745
- var se_DescribeDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
746
- const headers = sharedHeaders("DescribeDomain");
747
- let body;
748
- body = JSON.stringify((0, import_smithy_client._json)(input));
749
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
750
- }, "se_DescribeDomainCommand");
751
- var se_DescribeWorkflowExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
752
- const headers = sharedHeaders("DescribeWorkflowExecution");
753
- let body;
754
- body = JSON.stringify((0, import_smithy_client._json)(input));
755
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
756
- }, "se_DescribeWorkflowExecutionCommand");
757
- var se_DescribeWorkflowTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
758
- const headers = sharedHeaders("DescribeWorkflowType");
759
- let body;
760
- body = JSON.stringify((0, import_smithy_client._json)(input));
761
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
762
- }, "se_DescribeWorkflowTypeCommand");
763
- var se_GetWorkflowExecutionHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
764
- const headers = sharedHeaders("GetWorkflowExecutionHistory");
765
- let body;
766
- body = JSON.stringify((0, import_smithy_client._json)(input));
767
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
768
- }, "se_GetWorkflowExecutionHistoryCommand");
769
- var se_ListActivityTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
770
- const headers = sharedHeaders("ListActivityTypes");
771
- let body;
772
- body = JSON.stringify((0, import_smithy_client._json)(input));
773
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
774
- }, "se_ListActivityTypesCommand");
775
- var se_ListClosedWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
776
- const headers = sharedHeaders("ListClosedWorkflowExecutions");
777
- let body;
778
- body = JSON.stringify(se_ListClosedWorkflowExecutionsInput(input, context));
779
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
780
- }, "se_ListClosedWorkflowExecutionsCommand");
781
- var se_ListDomainsCommand = /* @__PURE__ */ __name(async (input, context) => {
782
- const headers = sharedHeaders("ListDomains");
783
- let body;
784
- body = JSON.stringify((0, import_smithy_client._json)(input));
785
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
786
- }, "se_ListDomainsCommand");
787
- var se_ListOpenWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (input, context) => {
788
- const headers = sharedHeaders("ListOpenWorkflowExecutions");
789
- let body;
790
- body = JSON.stringify(se_ListOpenWorkflowExecutionsInput(input, context));
791
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
792
- }, "se_ListOpenWorkflowExecutionsCommand");
793
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
794
- const headers = sharedHeaders("ListTagsForResource");
795
- let body;
796
- body = JSON.stringify((0, import_smithy_client._json)(input));
797
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
798
- }, "se_ListTagsForResourceCommand");
799
- var se_ListWorkflowTypesCommand = /* @__PURE__ */ __name(async (input, context) => {
800
- const headers = sharedHeaders("ListWorkflowTypes");
801
- let body;
802
- body = JSON.stringify((0, import_smithy_client._json)(input));
803
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
804
- }, "se_ListWorkflowTypesCommand");
805
- var se_PollForActivityTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
806
- const headers = sharedHeaders("PollForActivityTask");
807
- let body;
808
- body = JSON.stringify((0, import_smithy_client._json)(input));
809
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
810
- }, "se_PollForActivityTaskCommand");
811
- var se_PollForDecisionTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
812
- const headers = sharedHeaders("PollForDecisionTask");
813
- let body;
814
- body = JSON.stringify((0, import_smithy_client._json)(input));
815
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
816
- }, "se_PollForDecisionTaskCommand");
817
- var se_RecordActivityTaskHeartbeatCommand = /* @__PURE__ */ __name(async (input, context) => {
818
- const headers = sharedHeaders("RecordActivityTaskHeartbeat");
819
- let body;
820
- body = JSON.stringify((0, import_smithy_client._json)(input));
821
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
822
- }, "se_RecordActivityTaskHeartbeatCommand");
823
- var se_RegisterActivityTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
824
- const headers = sharedHeaders("RegisterActivityType");
825
- let body;
826
- body = JSON.stringify((0, import_smithy_client._json)(input));
827
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
828
- }, "se_RegisterActivityTypeCommand");
829
- var se_RegisterDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
830
- const headers = sharedHeaders("RegisterDomain");
831
- let body;
832
- body = JSON.stringify((0, import_smithy_client._json)(input));
833
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
834
- }, "se_RegisterDomainCommand");
835
- var se_RegisterWorkflowTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
836
- const headers = sharedHeaders("RegisterWorkflowType");
837
- let body;
838
- body = JSON.stringify((0, import_smithy_client._json)(input));
839
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
840
- }, "se_RegisterWorkflowTypeCommand");
841
- var se_RequestCancelWorkflowExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
842
- const headers = sharedHeaders("RequestCancelWorkflowExecution");
843
- let body;
844
- body = JSON.stringify((0, import_smithy_client._json)(input));
845
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
846
- }, "se_RequestCancelWorkflowExecutionCommand");
847
- var se_RespondActivityTaskCanceledCommand = /* @__PURE__ */ __name(async (input, context) => {
848
- const headers = sharedHeaders("RespondActivityTaskCanceled");
849
- let body;
850
- body = JSON.stringify((0, import_smithy_client._json)(input));
851
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
852
- }, "se_RespondActivityTaskCanceledCommand");
853
- var se_RespondActivityTaskCompletedCommand = /* @__PURE__ */ __name(async (input, context) => {
854
- const headers = sharedHeaders("RespondActivityTaskCompleted");
855
- let body;
856
- body = JSON.stringify((0, import_smithy_client._json)(input));
857
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
858
- }, "se_RespondActivityTaskCompletedCommand");
859
- var se_RespondActivityTaskFailedCommand = /* @__PURE__ */ __name(async (input, context) => {
860
- const headers = sharedHeaders("RespondActivityTaskFailed");
861
- let body;
862
- body = JSON.stringify((0, import_smithy_client._json)(input));
863
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
864
- }, "se_RespondActivityTaskFailedCommand");
865
- var se_RespondDecisionTaskCompletedCommand = /* @__PURE__ */ __name(async (input, context) => {
866
- const headers = sharedHeaders("RespondDecisionTaskCompleted");
867
- let body;
868
- body = JSON.stringify((0, import_smithy_client._json)(input));
869
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
870
- }, "se_RespondDecisionTaskCompletedCommand");
871
- var se_SignalWorkflowExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
872
- const headers = sharedHeaders("SignalWorkflowExecution");
873
- let body;
874
- body = JSON.stringify((0, import_smithy_client._json)(input));
875
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
876
- }, "se_SignalWorkflowExecutionCommand");
877
- var se_StartWorkflowExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
878
- const headers = sharedHeaders("StartWorkflowExecution");
879
- let body;
880
- body = JSON.stringify((0, import_smithy_client._json)(input));
881
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
882
- }, "se_StartWorkflowExecutionCommand");
883
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
884
- const headers = sharedHeaders("TagResource");
885
- let body;
886
- body = JSON.stringify((0, import_smithy_client._json)(input));
887
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
888
- }, "se_TagResourceCommand");
889
- var se_TerminateWorkflowExecutionCommand = /* @__PURE__ */ __name(async (input, context) => {
890
- const headers = sharedHeaders("TerminateWorkflowExecution");
891
- let body;
892
- body = JSON.stringify((0, import_smithy_client._json)(input));
893
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
894
- }, "se_TerminateWorkflowExecutionCommand");
895
- var se_UndeprecateActivityTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
896
- const headers = sharedHeaders("UndeprecateActivityType");
897
- let body;
898
- body = JSON.stringify((0, import_smithy_client._json)(input));
899
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
900
- }, "se_UndeprecateActivityTypeCommand");
901
- var se_UndeprecateDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
902
- const headers = sharedHeaders("UndeprecateDomain");
903
- let body;
904
- body = JSON.stringify((0, import_smithy_client._json)(input));
905
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
906
- }, "se_UndeprecateDomainCommand");
907
- var se_UndeprecateWorkflowTypeCommand = /* @__PURE__ */ __name(async (input, context) => {
908
- const headers = sharedHeaders("UndeprecateWorkflowType");
909
- let body;
910
- body = JSON.stringify((0, import_smithy_client._json)(input));
911
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
912
- }, "se_UndeprecateWorkflowTypeCommand");
913
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
914
- const headers = sharedHeaders("UntagResource");
915
- let body;
916
- body = JSON.stringify((0, import_smithy_client._json)(input));
917
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
918
- }, "se_UntagResourceCommand");
919
- var de_CountClosedWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
920
- if (output.statusCode >= 300) {
921
- return de_CommandError(output, context);
922
- }
923
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
924
- let contents = {};
925
- contents = (0, import_smithy_client._json)(data);
926
- const response = {
927
- $metadata: deserializeMetadata(output),
928
- ...contents
929
- };
930
- return response;
931
- }, "de_CountClosedWorkflowExecutionsCommand");
932
- var de_CountOpenWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
933
- if (output.statusCode >= 300) {
934
- return de_CommandError(output, context);
935
- }
936
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
937
- let contents = {};
938
- contents = (0, import_smithy_client._json)(data);
939
- const response = {
940
- $metadata: deserializeMetadata(output),
941
- ...contents
942
- };
943
- return response;
944
- }, "de_CountOpenWorkflowExecutionsCommand");
945
- var de_CountPendingActivityTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
946
- if (output.statusCode >= 300) {
947
- return de_CommandError(output, context);
948
- }
949
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
950
- let contents = {};
951
- contents = (0, import_smithy_client._json)(data);
952
- const response = {
953
- $metadata: deserializeMetadata(output),
954
- ...contents
955
- };
956
- return response;
957
- }, "de_CountPendingActivityTasksCommand");
958
- var de_CountPendingDecisionTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
959
- if (output.statusCode >= 300) {
960
- return de_CommandError(output, context);
961
- }
962
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
963
- let contents = {};
964
- contents = (0, import_smithy_client._json)(data);
965
- const response = {
966
- $metadata: deserializeMetadata(output),
967
- ...contents
968
- };
969
- return response;
970
- }, "de_CountPendingDecisionTasksCommand");
971
- var de_DeleteActivityTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
972
- if (output.statusCode >= 300) {
973
- return de_CommandError(output, context);
974
- }
975
- await (0, import_smithy_client.collectBody)(output.body, context);
976
- const response = {
977
- $metadata: deserializeMetadata(output)
978
- };
979
- return response;
980
- }, "de_DeleteActivityTypeCommand");
981
- var de_DeleteWorkflowTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
982
- if (output.statusCode >= 300) {
983
- return de_CommandError(output, context);
984
- }
985
- await (0, import_smithy_client.collectBody)(output.body, context);
986
- const response = {
987
- $metadata: deserializeMetadata(output)
988
- };
989
- return response;
990
- }, "de_DeleteWorkflowTypeCommand");
991
- var de_DeprecateActivityTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
992
- if (output.statusCode >= 300) {
993
- return de_CommandError(output, context);
994
- }
995
- await (0, import_smithy_client.collectBody)(output.body, context);
996
- const response = {
997
- $metadata: deserializeMetadata(output)
998
- };
999
- return response;
1000
- }, "de_DeprecateActivityTypeCommand");
1001
- var de_DeprecateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1002
- if (output.statusCode >= 300) {
1003
- return de_CommandError(output, context);
1004
- }
1005
- await (0, import_smithy_client.collectBody)(output.body, context);
1006
- const response = {
1007
- $metadata: deserializeMetadata(output)
1008
- };
1009
- return response;
1010
- }, "de_DeprecateDomainCommand");
1011
- var de_DeprecateWorkflowTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
1012
- if (output.statusCode >= 300) {
1013
- return de_CommandError(output, context);
1014
- }
1015
- await (0, import_smithy_client.collectBody)(output.body, context);
1016
- const response = {
1017
- $metadata: deserializeMetadata(output)
1018
- };
1019
- return response;
1020
- }, "de_DeprecateWorkflowTypeCommand");
1021
- var de_DescribeActivityTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
1022
- if (output.statusCode >= 300) {
1023
- return de_CommandError(output, context);
1024
- }
1025
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1026
- let contents = {};
1027
- contents = de_ActivityTypeDetail(data, context);
1028
- const response = {
1029
- $metadata: deserializeMetadata(output),
1030
- ...contents
1031
- };
1032
- return response;
1033
- }, "de_DescribeActivityTypeCommand");
1034
- var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1035
- if (output.statusCode >= 300) {
1036
- return de_CommandError(output, context);
1037
- }
1038
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1039
- let contents = {};
1040
- contents = (0, import_smithy_client._json)(data);
1041
- const response = {
1042
- $metadata: deserializeMetadata(output),
1043
- ...contents
1044
- };
1045
- return response;
1046
- }, "de_DescribeDomainCommand");
1047
- var de_DescribeWorkflowExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
1048
- if (output.statusCode >= 300) {
1049
- return de_CommandError(output, context);
1050
- }
1051
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1052
- let contents = {};
1053
- contents = de_WorkflowExecutionDetail(data, context);
1054
- const response = {
1055
- $metadata: deserializeMetadata(output),
1056
- ...contents
1057
- };
1058
- return response;
1059
- }, "de_DescribeWorkflowExecutionCommand");
1060
- var de_DescribeWorkflowTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
1061
- if (output.statusCode >= 300) {
1062
- return de_CommandError(output, context);
1063
- }
1064
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1065
- let contents = {};
1066
- contents = de_WorkflowTypeDetail(data, context);
1067
- const response = {
1068
- $metadata: deserializeMetadata(output),
1069
- ...contents
1070
- };
1071
- return response;
1072
- }, "de_DescribeWorkflowTypeCommand");
1073
- var de_GetWorkflowExecutionHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1074
- if (output.statusCode >= 300) {
1075
- return de_CommandError(output, context);
1076
- }
1077
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1078
- let contents = {};
1079
- contents = de_History(data, context);
1080
- const response = {
1081
- $metadata: deserializeMetadata(output),
1082
- ...contents
1083
- };
1084
- return response;
1085
- }, "de_GetWorkflowExecutionHistoryCommand");
1086
- var de_ListActivityTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
1087
- if (output.statusCode >= 300) {
1088
- return de_CommandError(output, context);
1089
- }
1090
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1091
- let contents = {};
1092
- contents = de_ActivityTypeInfos(data, context);
1093
- const response = {
1094
- $metadata: deserializeMetadata(output),
1095
- ...contents
1096
- };
1097
- return response;
1098
- }, "de_ListActivityTypesCommand");
1099
- var de_ListClosedWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1100
- if (output.statusCode >= 300) {
1101
- return de_CommandError(output, context);
1102
- }
1103
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1104
- let contents = {};
1105
- contents = de_WorkflowExecutionInfos(data, context);
1106
- const response = {
1107
- $metadata: deserializeMetadata(output),
1108
- ...contents
1109
- };
1110
- return response;
1111
- }, "de_ListClosedWorkflowExecutionsCommand");
1112
- var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
1113
- if (output.statusCode >= 300) {
1114
- return de_CommandError(output, context);
1115
- }
1116
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1117
- let contents = {};
1118
- contents = (0, import_smithy_client._json)(data);
1119
- const response = {
1120
- $metadata: deserializeMetadata(output),
1121
- ...contents
1122
- };
1123
- return response;
1124
- }, "de_ListDomainsCommand");
1125
- var de_ListOpenWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1126
- if (output.statusCode >= 300) {
1127
- return de_CommandError(output, context);
1128
- }
1129
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1130
- let contents = {};
1131
- contents = de_WorkflowExecutionInfos(data, context);
1132
- const response = {
1133
- $metadata: deserializeMetadata(output),
1134
- ...contents
1135
- };
1136
- return response;
1137
- }, "de_ListOpenWorkflowExecutionsCommand");
1138
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1139
- if (output.statusCode >= 300) {
1140
- return de_CommandError(output, context);
1141
- }
1142
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1143
- let contents = {};
1144
- contents = (0, import_smithy_client._json)(data);
1145
- const response = {
1146
- $metadata: deserializeMetadata(output),
1147
- ...contents
1148
- };
1149
- return response;
1150
- }, "de_ListTagsForResourceCommand");
1151
- var de_ListWorkflowTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
1152
- if (output.statusCode >= 300) {
1153
- return de_CommandError(output, context);
1154
- }
1155
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1156
- let contents = {};
1157
- contents = de_WorkflowTypeInfos(data, context);
1158
- const response = {
1159
- $metadata: deserializeMetadata(output),
1160
- ...contents
1161
- };
1162
- return response;
1163
- }, "de_ListWorkflowTypesCommand");
1164
- var de_PollForActivityTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1165
- if (output.statusCode >= 300) {
1166
- return de_CommandError(output, context);
1167
- }
1168
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1169
- let contents = {};
1170
- contents = (0, import_smithy_client._json)(data);
1171
- const response = {
1172
- $metadata: deserializeMetadata(output),
1173
- ...contents
1174
- };
1175
- return response;
1176
- }, "de_PollForActivityTaskCommand");
1177
- var de_PollForDecisionTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1178
- if (output.statusCode >= 300) {
1179
- return de_CommandError(output, context);
1180
- }
1181
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1182
- let contents = {};
1183
- contents = de_DecisionTask(data, context);
1184
- const response = {
1185
- $metadata: deserializeMetadata(output),
1186
- ...contents
1187
- };
1188
- return response;
1189
- }, "de_PollForDecisionTaskCommand");
1190
- var de_RecordActivityTaskHeartbeatCommand = /* @__PURE__ */ __name(async (output, context) => {
1191
- if (output.statusCode >= 300) {
1192
- return de_CommandError(output, context);
1193
- }
1194
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1195
- let contents = {};
1196
- contents = (0, import_smithy_client._json)(data);
1197
- const response = {
1198
- $metadata: deserializeMetadata(output),
1199
- ...contents
1200
- };
1201
- return response;
1202
- }, "de_RecordActivityTaskHeartbeatCommand");
1203
- var de_RegisterActivityTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
1204
- if (output.statusCode >= 300) {
1205
- return de_CommandError(output, context);
1206
- }
1207
- await (0, import_smithy_client.collectBody)(output.body, context);
1208
- const response = {
1209
- $metadata: deserializeMetadata(output)
1210
- };
1211
- return response;
1212
- }, "de_RegisterActivityTypeCommand");
1213
- var de_RegisterDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1214
- if (output.statusCode >= 300) {
1215
- return de_CommandError(output, context);
1216
- }
1217
- await (0, import_smithy_client.collectBody)(output.body, context);
1218
- const response = {
1219
- $metadata: deserializeMetadata(output)
1220
- };
1221
- return response;
1222
- }, "de_RegisterDomainCommand");
1223
- var de_RegisterWorkflowTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
1224
- if (output.statusCode >= 300) {
1225
- return de_CommandError(output, context);
1226
- }
1227
- await (0, import_smithy_client.collectBody)(output.body, context);
1228
- const response = {
1229
- $metadata: deserializeMetadata(output)
1230
- };
1231
- return response;
1232
- }, "de_RegisterWorkflowTypeCommand");
1233
- var de_RequestCancelWorkflowExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
1234
- if (output.statusCode >= 300) {
1235
- return de_CommandError(output, context);
1236
- }
1237
- await (0, import_smithy_client.collectBody)(output.body, context);
1238
- const response = {
1239
- $metadata: deserializeMetadata(output)
1240
- };
1241
- return response;
1242
- }, "de_RequestCancelWorkflowExecutionCommand");
1243
- var de_RespondActivityTaskCanceledCommand = /* @__PURE__ */ __name(async (output, context) => {
1244
- if (output.statusCode >= 300) {
1245
- return de_CommandError(output, context);
1246
- }
1247
- await (0, import_smithy_client.collectBody)(output.body, context);
1248
- const response = {
1249
- $metadata: deserializeMetadata(output)
1250
- };
1251
- return response;
1252
- }, "de_RespondActivityTaskCanceledCommand");
1253
- var de_RespondActivityTaskCompletedCommand = /* @__PURE__ */ __name(async (output, context) => {
1254
- if (output.statusCode >= 300) {
1255
- return de_CommandError(output, context);
1256
- }
1257
- await (0, import_smithy_client.collectBody)(output.body, context);
1258
- const response = {
1259
- $metadata: deserializeMetadata(output)
1260
- };
1261
- return response;
1262
- }, "de_RespondActivityTaskCompletedCommand");
1263
- var de_RespondActivityTaskFailedCommand = /* @__PURE__ */ __name(async (output, context) => {
1264
- if (output.statusCode >= 300) {
1265
- return de_CommandError(output, context);
1266
- }
1267
- await (0, import_smithy_client.collectBody)(output.body, context);
1268
- const response = {
1269
- $metadata: deserializeMetadata(output)
1270
- };
1271
- return response;
1272
- }, "de_RespondActivityTaskFailedCommand");
1273
- var de_RespondDecisionTaskCompletedCommand = /* @__PURE__ */ __name(async (output, context) => {
1274
- if (output.statusCode >= 300) {
1275
- return de_CommandError(output, context);
1276
- }
1277
- await (0, import_smithy_client.collectBody)(output.body, context);
1278
- const response = {
1279
- $metadata: deserializeMetadata(output)
1280
- };
1281
- return response;
1282
- }, "de_RespondDecisionTaskCompletedCommand");
1283
- var de_SignalWorkflowExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
1284
- if (output.statusCode >= 300) {
1285
- return de_CommandError(output, context);
1286
- }
1287
- await (0, import_smithy_client.collectBody)(output.body, context);
1288
- const response = {
1289
- $metadata: deserializeMetadata(output)
1290
- };
1291
- return response;
1292
- }, "de_SignalWorkflowExecutionCommand");
1293
- var de_StartWorkflowExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
1294
- if (output.statusCode >= 300) {
1295
- return de_CommandError(output, context);
1296
- }
1297
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1298
- let contents = {};
1299
- contents = (0, import_smithy_client._json)(data);
1300
- const response = {
1301
- $metadata: deserializeMetadata(output),
1302
- ...contents
1303
- };
1304
- return response;
1305
- }, "de_StartWorkflowExecutionCommand");
1306
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1307
- if (output.statusCode >= 300) {
1308
- return de_CommandError(output, context);
1309
- }
1310
- await (0, import_smithy_client.collectBody)(output.body, context);
1311
- const response = {
1312
- $metadata: deserializeMetadata(output)
1313
- };
1314
- return response;
1315
- }, "de_TagResourceCommand");
1316
- var de_TerminateWorkflowExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
1317
- if (output.statusCode >= 300) {
1318
- return de_CommandError(output, context);
1319
- }
1320
- await (0, import_smithy_client.collectBody)(output.body, context);
1321
- const response = {
1322
- $metadata: deserializeMetadata(output)
1323
- };
1324
- return response;
1325
- }, "de_TerminateWorkflowExecutionCommand");
1326
- var de_UndeprecateActivityTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
1327
- if (output.statusCode >= 300) {
1328
- return de_CommandError(output, context);
1329
- }
1330
- await (0, import_smithy_client.collectBody)(output.body, context);
1331
- const response = {
1332
- $metadata: deserializeMetadata(output)
1333
- };
1334
- return response;
1335
- }, "de_UndeprecateActivityTypeCommand");
1336
- var de_UndeprecateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1337
- if (output.statusCode >= 300) {
1338
- return de_CommandError(output, context);
1339
- }
1340
- await (0, import_smithy_client.collectBody)(output.body, context);
1341
- const response = {
1342
- $metadata: deserializeMetadata(output)
1343
- };
1344
- return response;
1345
- }, "de_UndeprecateDomainCommand");
1346
- var de_UndeprecateWorkflowTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
1347
- if (output.statusCode >= 300) {
1348
- return de_CommandError(output, context);
1349
- }
1350
- await (0, import_smithy_client.collectBody)(output.body, context);
1351
- const response = {
1352
- $metadata: deserializeMetadata(output)
1353
- };
1354
- return response;
1355
- }, "de_UndeprecateWorkflowTypeCommand");
1356
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1357
- if (output.statusCode >= 300) {
1358
- return de_CommandError(output, context);
1359
- }
1360
- await (0, import_smithy_client.collectBody)(output.body, context);
1361
- const response = {
1362
- $metadata: deserializeMetadata(output)
1363
- };
1364
- return response;
1365
- }, "de_UntagResourceCommand");
1366
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1367
- const parsedOutput = {
1368
- ...output,
1369
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1370
- };
1371
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1372
- switch (errorCode) {
1373
- case "OperationNotPermittedFault":
1374
- case "com.amazonaws.swf#OperationNotPermittedFault":
1375
- throw await de_OperationNotPermittedFaultRes(parsedOutput, context);
1376
- case "UnknownResourceFault":
1377
- case "com.amazonaws.swf#UnknownResourceFault":
1378
- throw await de_UnknownResourceFaultRes(parsedOutput, context);
1379
- case "TypeNotDeprecatedFault":
1380
- case "com.amazonaws.swf#TypeNotDeprecatedFault":
1381
- throw await de_TypeNotDeprecatedFaultRes(parsedOutput, context);
1382
- case "TypeDeprecatedFault":
1383
- case "com.amazonaws.swf#TypeDeprecatedFault":
1384
- throw await de_TypeDeprecatedFaultRes(parsedOutput, context);
1385
- case "DomainDeprecatedFault":
1386
- case "com.amazonaws.swf#DomainDeprecatedFault":
1387
- throw await de_DomainDeprecatedFaultRes(parsedOutput, context);
1388
- case "LimitExceededFault":
1389
- case "com.amazonaws.swf#LimitExceededFault":
1390
- throw await de_LimitExceededFaultRes(parsedOutput, context);
1391
- case "TypeAlreadyExistsFault":
1392
- case "com.amazonaws.swf#TypeAlreadyExistsFault":
1393
- throw await de_TypeAlreadyExistsFaultRes(parsedOutput, context);
1394
- case "DomainAlreadyExistsFault":
1395
- case "com.amazonaws.swf#DomainAlreadyExistsFault":
1396
- throw await de_DomainAlreadyExistsFaultRes(parsedOutput, context);
1397
- case "TooManyTagsFault":
1398
- case "com.amazonaws.swf#TooManyTagsFault":
1399
- throw await de_TooManyTagsFaultRes(parsedOutput, context);
1400
- case "DefaultUndefinedFault":
1401
- case "com.amazonaws.swf#DefaultUndefinedFault":
1402
- throw await de_DefaultUndefinedFaultRes(parsedOutput, context);
1403
- case "WorkflowExecutionAlreadyStartedFault":
1404
- case "com.amazonaws.swf#WorkflowExecutionAlreadyStartedFault":
1405
- throw await de_WorkflowExecutionAlreadyStartedFaultRes(parsedOutput, context);
1406
- default:
1407
- const parsedBody = parsedOutput.body;
1408
- return throwDefaultError({
1409
- output,
1410
- parsedBody,
1411
- errorCode
1412
- });
1413
- }
1414
- }, "de_CommandError");
1415
- var de_DefaultUndefinedFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1416
- const body = parsedOutput.body;
1417
- const deserialized = (0, import_smithy_client._json)(body);
1418
- const exception = new DefaultUndefinedFault({
1419
- $metadata: deserializeMetadata(parsedOutput),
1420
- ...deserialized
1421
- });
1422
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1423
- }, "de_DefaultUndefinedFaultRes");
1424
- var de_DomainAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1425
- const body = parsedOutput.body;
1426
- const deserialized = (0, import_smithy_client._json)(body);
1427
- const exception = new DomainAlreadyExistsFault({
1428
- $metadata: deserializeMetadata(parsedOutput),
1429
- ...deserialized
1430
- });
1431
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1432
- }, "de_DomainAlreadyExistsFaultRes");
1433
- var de_DomainDeprecatedFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1434
- const body = parsedOutput.body;
1435
- const deserialized = (0, import_smithy_client._json)(body);
1436
- const exception = new DomainDeprecatedFault({
1437
- $metadata: deserializeMetadata(parsedOutput),
1438
- ...deserialized
1439
- });
1440
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1441
- }, "de_DomainDeprecatedFaultRes");
1442
- var de_LimitExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1443
- const body = parsedOutput.body;
1444
- const deserialized = (0, import_smithy_client._json)(body);
1445
- const exception = new LimitExceededFault({
1446
- $metadata: deserializeMetadata(parsedOutput),
1447
- ...deserialized
1448
- });
1449
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1450
- }, "de_LimitExceededFaultRes");
1451
- var de_OperationNotPermittedFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1452
- const body = parsedOutput.body;
1453
- const deserialized = (0, import_smithy_client._json)(body);
1454
- const exception = new OperationNotPermittedFault({
1455
- $metadata: deserializeMetadata(parsedOutput),
1456
- ...deserialized
1457
- });
1458
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1459
- }, "de_OperationNotPermittedFaultRes");
1460
- var de_TooManyTagsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1461
- const body = parsedOutput.body;
1462
- const deserialized = (0, import_smithy_client._json)(body);
1463
- const exception = new TooManyTagsFault({
1464
- $metadata: deserializeMetadata(parsedOutput),
1465
- ...deserialized
1466
- });
1467
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1468
- }, "de_TooManyTagsFaultRes");
1469
- var de_TypeAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1470
- const body = parsedOutput.body;
1471
- const deserialized = (0, import_smithy_client._json)(body);
1472
- const exception = new TypeAlreadyExistsFault({
1473
- $metadata: deserializeMetadata(parsedOutput),
1474
- ...deserialized
1475
- });
1476
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1477
- }, "de_TypeAlreadyExistsFaultRes");
1478
- var de_TypeDeprecatedFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1479
- const body = parsedOutput.body;
1480
- const deserialized = (0, import_smithy_client._json)(body);
1481
- const exception = new TypeDeprecatedFault({
1482
- $metadata: deserializeMetadata(parsedOutput),
1483
- ...deserialized
1484
- });
1485
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1486
- }, "de_TypeDeprecatedFaultRes");
1487
- var de_TypeNotDeprecatedFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1488
- const body = parsedOutput.body;
1489
- const deserialized = (0, import_smithy_client._json)(body);
1490
- const exception = new TypeNotDeprecatedFault({
1491
- $metadata: deserializeMetadata(parsedOutput),
1492
- ...deserialized
1493
- });
1494
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1495
- }, "de_TypeNotDeprecatedFaultRes");
1496
- var de_UnknownResourceFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1497
- const body = parsedOutput.body;
1498
- const deserialized = (0, import_smithy_client._json)(body);
1499
- const exception = new UnknownResourceFault({
1500
- $metadata: deserializeMetadata(parsedOutput),
1501
- ...deserialized
1502
- });
1503
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1504
- }, "de_UnknownResourceFaultRes");
1505
- var de_WorkflowExecutionAlreadyStartedFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1506
- const body = parsedOutput.body;
1507
- const deserialized = (0, import_smithy_client._json)(body);
1508
- const exception = new WorkflowExecutionAlreadyStartedFault({
1509
- $metadata: deserializeMetadata(parsedOutput),
1510
- ...deserialized
1511
- });
1512
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1513
- }, "de_WorkflowExecutionAlreadyStartedFaultRes");
1514
- var se_CountClosedWorkflowExecutionsInput = /* @__PURE__ */ __name((input, context) => {
1515
- return (0, import_smithy_client.take)(input, {
1516
- closeStatusFilter: import_smithy_client._json,
1517
- closeTimeFilter: /* @__PURE__ */ __name((_) => se_ExecutionTimeFilter(_, context), "closeTimeFilter"),
1518
- domain: [],
1519
- executionFilter: import_smithy_client._json,
1520
- startTimeFilter: /* @__PURE__ */ __name((_) => se_ExecutionTimeFilter(_, context), "startTimeFilter"),
1521
- tagFilter: import_smithy_client._json,
1522
- typeFilter: import_smithy_client._json
1523
- });
1524
- }, "se_CountClosedWorkflowExecutionsInput");
1525
- var se_CountOpenWorkflowExecutionsInput = /* @__PURE__ */ __name((input, context) => {
1526
- return (0, import_smithy_client.take)(input, {
1527
- domain: [],
1528
- executionFilter: import_smithy_client._json,
1529
- startTimeFilter: /* @__PURE__ */ __name((_) => se_ExecutionTimeFilter(_, context), "startTimeFilter"),
1530
- tagFilter: import_smithy_client._json,
1531
- typeFilter: import_smithy_client._json
1532
- });
1533
- }, "se_CountOpenWorkflowExecutionsInput");
1534
- var se_ExecutionTimeFilter = /* @__PURE__ */ __name((input, context) => {
1535
- return (0, import_smithy_client.take)(input, {
1536
- latestDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "latestDate"),
1537
- oldestDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "oldestDate")
1538
- });
1539
- }, "se_ExecutionTimeFilter");
1540
- var se_ListClosedWorkflowExecutionsInput = /* @__PURE__ */ __name((input, context) => {
1541
- return (0, import_smithy_client.take)(input, {
1542
- closeStatusFilter: import_smithy_client._json,
1543
- closeTimeFilter: /* @__PURE__ */ __name((_) => se_ExecutionTimeFilter(_, context), "closeTimeFilter"),
1544
- domain: [],
1545
- executionFilter: import_smithy_client._json,
1546
- maximumPageSize: [],
1547
- nextPageToken: [],
1548
- reverseOrder: [],
1549
- startTimeFilter: /* @__PURE__ */ __name((_) => se_ExecutionTimeFilter(_, context), "startTimeFilter"),
1550
- tagFilter: import_smithy_client._json,
1551
- typeFilter: import_smithy_client._json
1552
- });
1553
- }, "se_ListClosedWorkflowExecutionsInput");
1554
- var se_ListOpenWorkflowExecutionsInput = /* @__PURE__ */ __name((input, context) => {
1555
- return (0, import_smithy_client.take)(input, {
1556
- domain: [],
1557
- executionFilter: import_smithy_client._json,
1558
- maximumPageSize: [],
1559
- nextPageToken: [],
1560
- reverseOrder: [],
1561
- startTimeFilter: /* @__PURE__ */ __name((_) => se_ExecutionTimeFilter(_, context), "startTimeFilter"),
1562
- tagFilter: import_smithy_client._json,
1563
- typeFilter: import_smithy_client._json
1564
- });
1565
- }, "se_ListOpenWorkflowExecutionsInput");
1566
- var de_ActivityTypeDetail = /* @__PURE__ */ __name((output, context) => {
1567
- return (0, import_smithy_client.take)(output, {
1568
- configuration: import_smithy_client._json,
1569
- typeInfo: /* @__PURE__ */ __name((_) => de_ActivityTypeInfo(_, context), "typeInfo")
1570
- });
1571
- }, "de_ActivityTypeDetail");
1572
- var de_ActivityTypeInfo = /* @__PURE__ */ __name((output, context) => {
1573
- return (0, import_smithy_client.take)(output, {
1574
- activityType: import_smithy_client._json,
1575
- creationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationDate"),
1576
- deprecationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "deprecationDate"),
1577
- description: import_smithy_client.expectString,
1578
- status: import_smithy_client.expectString
1579
- });
1580
- }, "de_ActivityTypeInfo");
1581
- var de_ActivityTypeInfoList = /* @__PURE__ */ __name((output, context) => {
1582
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1583
- return de_ActivityTypeInfo(entry, context);
1584
- });
1585
- return retVal;
1586
- }, "de_ActivityTypeInfoList");
1587
- var de_ActivityTypeInfos = /* @__PURE__ */ __name((output, context) => {
1588
- return (0, import_smithy_client.take)(output, {
1589
- nextPageToken: import_smithy_client.expectString,
1590
- typeInfos: /* @__PURE__ */ __name((_) => de_ActivityTypeInfoList(_, context), "typeInfos")
1591
- });
1592
- }, "de_ActivityTypeInfos");
1593
- var de_DecisionTask = /* @__PURE__ */ __name((output, context) => {
1594
- return (0, import_smithy_client.take)(output, {
1595
- events: /* @__PURE__ */ __name((_) => de_HistoryEventList(_, context), "events"),
1596
- nextPageToken: import_smithy_client.expectString,
1597
- previousStartedEventId: import_smithy_client.expectLong,
1598
- startedEventId: import_smithy_client.expectLong,
1599
- taskToken: import_smithy_client.expectString,
1600
- workflowExecution: import_smithy_client._json,
1601
- workflowType: import_smithy_client._json
1602
- });
1603
- }, "de_DecisionTask");
1604
- var de_History = /* @__PURE__ */ __name((output, context) => {
1605
- return (0, import_smithy_client.take)(output, {
1606
- events: /* @__PURE__ */ __name((_) => de_HistoryEventList(_, context), "events"),
1607
- nextPageToken: import_smithy_client.expectString
1608
- });
1609
- }, "de_History");
1610
- var de_HistoryEvent = /* @__PURE__ */ __name((output, context) => {
1611
- return (0, import_smithy_client.take)(output, {
1612
- activityTaskCancelRequestedEventAttributes: import_smithy_client._json,
1613
- activityTaskCanceledEventAttributes: import_smithy_client._json,
1614
- activityTaskCompletedEventAttributes: import_smithy_client._json,
1615
- activityTaskFailedEventAttributes: import_smithy_client._json,
1616
- activityTaskScheduledEventAttributes: import_smithy_client._json,
1617
- activityTaskStartedEventAttributes: import_smithy_client._json,
1618
- activityTaskTimedOutEventAttributes: import_smithy_client._json,
1619
- cancelTimerFailedEventAttributes: import_smithy_client._json,
1620
- cancelWorkflowExecutionFailedEventAttributes: import_smithy_client._json,
1621
- childWorkflowExecutionCanceledEventAttributes: import_smithy_client._json,
1622
- childWorkflowExecutionCompletedEventAttributes: import_smithy_client._json,
1623
- childWorkflowExecutionFailedEventAttributes: import_smithy_client._json,
1624
- childWorkflowExecutionStartedEventAttributes: import_smithy_client._json,
1625
- childWorkflowExecutionTerminatedEventAttributes: import_smithy_client._json,
1626
- childWorkflowExecutionTimedOutEventAttributes: import_smithy_client._json,
1627
- completeWorkflowExecutionFailedEventAttributes: import_smithy_client._json,
1628
- continueAsNewWorkflowExecutionFailedEventAttributes: import_smithy_client._json,
1629
- decisionTaskCompletedEventAttributes: import_smithy_client._json,
1630
- decisionTaskScheduledEventAttributes: import_smithy_client._json,
1631
- decisionTaskStartedEventAttributes: import_smithy_client._json,
1632
- decisionTaskTimedOutEventAttributes: import_smithy_client._json,
1633
- eventId: import_smithy_client.expectLong,
1634
- eventTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "eventTimestamp"),
1635
- eventType: import_smithy_client.expectString,
1636
- externalWorkflowExecutionCancelRequestedEventAttributes: import_smithy_client._json,
1637
- externalWorkflowExecutionSignaledEventAttributes: import_smithy_client._json,
1638
- failWorkflowExecutionFailedEventAttributes: import_smithy_client._json,
1639
- lambdaFunctionCompletedEventAttributes: import_smithy_client._json,
1640
- lambdaFunctionFailedEventAttributes: import_smithy_client._json,
1641
- lambdaFunctionScheduledEventAttributes: import_smithy_client._json,
1642
- lambdaFunctionStartedEventAttributes: import_smithy_client._json,
1643
- lambdaFunctionTimedOutEventAttributes: import_smithy_client._json,
1644
- markerRecordedEventAttributes: import_smithy_client._json,
1645
- recordMarkerFailedEventAttributes: import_smithy_client._json,
1646
- requestCancelActivityTaskFailedEventAttributes: import_smithy_client._json,
1647
- requestCancelExternalWorkflowExecutionFailedEventAttributes: import_smithy_client._json,
1648
- requestCancelExternalWorkflowExecutionInitiatedEventAttributes: import_smithy_client._json,
1649
- scheduleActivityTaskFailedEventAttributes: import_smithy_client._json,
1650
- scheduleLambdaFunctionFailedEventAttributes: import_smithy_client._json,
1651
- signalExternalWorkflowExecutionFailedEventAttributes: import_smithy_client._json,
1652
- signalExternalWorkflowExecutionInitiatedEventAttributes: import_smithy_client._json,
1653
- startChildWorkflowExecutionFailedEventAttributes: import_smithy_client._json,
1654
- startChildWorkflowExecutionInitiatedEventAttributes: import_smithy_client._json,
1655
- startLambdaFunctionFailedEventAttributes: import_smithy_client._json,
1656
- startTimerFailedEventAttributes: import_smithy_client._json,
1657
- timerCanceledEventAttributes: import_smithy_client._json,
1658
- timerFiredEventAttributes: import_smithy_client._json,
1659
- timerStartedEventAttributes: import_smithy_client._json,
1660
- workflowExecutionCancelRequestedEventAttributes: import_smithy_client._json,
1661
- workflowExecutionCanceledEventAttributes: import_smithy_client._json,
1662
- workflowExecutionCompletedEventAttributes: import_smithy_client._json,
1663
- workflowExecutionContinuedAsNewEventAttributes: import_smithy_client._json,
1664
- workflowExecutionFailedEventAttributes: import_smithy_client._json,
1665
- workflowExecutionSignaledEventAttributes: import_smithy_client._json,
1666
- workflowExecutionStartedEventAttributes: import_smithy_client._json,
1667
- workflowExecutionTerminatedEventAttributes: import_smithy_client._json,
1668
- workflowExecutionTimedOutEventAttributes: import_smithy_client._json
1669
- });
1670
- }, "de_HistoryEvent");
1671
- var de_HistoryEventList = /* @__PURE__ */ __name((output, context) => {
1672
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1673
- return de_HistoryEvent(entry, context);
1674
- });
1675
- return retVal;
1676
- }, "de_HistoryEventList");
1677
- var de_WorkflowExecutionDetail = /* @__PURE__ */ __name((output, context) => {
1678
- return (0, import_smithy_client.take)(output, {
1679
- executionConfiguration: import_smithy_client._json,
1680
- executionInfo: /* @__PURE__ */ __name((_) => de_WorkflowExecutionInfo(_, context), "executionInfo"),
1681
- latestActivityTaskTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "latestActivityTaskTimestamp"),
1682
- latestExecutionContext: import_smithy_client.expectString,
1683
- openCounts: import_smithy_client._json
1684
- });
1685
- }, "de_WorkflowExecutionDetail");
1686
- var de_WorkflowExecutionInfo = /* @__PURE__ */ __name((output, context) => {
1687
- return (0, import_smithy_client.take)(output, {
1688
- cancelRequested: import_smithy_client.expectBoolean,
1689
- closeStatus: import_smithy_client.expectString,
1690
- closeTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "closeTimestamp"),
1691
- execution: import_smithy_client._json,
1692
- executionStatus: import_smithy_client.expectString,
1693
- parent: import_smithy_client._json,
1694
- startTimestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTimestamp"),
1695
- tagList: import_smithy_client._json,
1696
- workflowType: import_smithy_client._json
1697
- });
1698
- }, "de_WorkflowExecutionInfo");
1699
- var de_WorkflowExecutionInfoList = /* @__PURE__ */ __name((output, context) => {
1700
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1701
- return de_WorkflowExecutionInfo(entry, context);
1702
- });
1703
- return retVal;
1704
- }, "de_WorkflowExecutionInfoList");
1705
- var de_WorkflowExecutionInfos = /* @__PURE__ */ __name((output, context) => {
1706
- return (0, import_smithy_client.take)(output, {
1707
- executionInfos: /* @__PURE__ */ __name((_) => de_WorkflowExecutionInfoList(_, context), "executionInfos"),
1708
- nextPageToken: import_smithy_client.expectString
1709
- });
1710
- }, "de_WorkflowExecutionInfos");
1711
- var de_WorkflowTypeDetail = /* @__PURE__ */ __name((output, context) => {
1712
- return (0, import_smithy_client.take)(output, {
1713
- configuration: import_smithy_client._json,
1714
- typeInfo: /* @__PURE__ */ __name((_) => de_WorkflowTypeInfo(_, context), "typeInfo")
1715
- });
1716
- }, "de_WorkflowTypeDetail");
1717
- var de_WorkflowTypeInfo = /* @__PURE__ */ __name((output, context) => {
1718
- return (0, import_smithy_client.take)(output, {
1719
- creationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationDate"),
1720
- deprecationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "deprecationDate"),
1721
- description: import_smithy_client.expectString,
1722
- status: import_smithy_client.expectString,
1723
- workflowType: import_smithy_client._json
1724
- });
1725
- }, "de_WorkflowTypeInfo");
1726
- var de_WorkflowTypeInfoList = /* @__PURE__ */ __name((output, context) => {
1727
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1728
- return de_WorkflowTypeInfo(entry, context);
1729
- });
1730
- return retVal;
1731
- }, "de_WorkflowTypeInfoList");
1732
- var de_WorkflowTypeInfos = /* @__PURE__ */ __name((output, context) => {
1733
- return (0, import_smithy_client.take)(output, {
1734
- nextPageToken: import_smithy_client.expectString,
1735
- typeInfos: /* @__PURE__ */ __name((_) => de_WorkflowTypeInfoList(_, context), "typeInfos")
1736
- });
1737
- }, "de_WorkflowTypeInfos");
1738
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1739
- httpStatusCode: output.statusCode,
1740
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1741
- extendedRequestId: output.headers["x-amz-id-2"],
1742
- cfId: output.headers["x-amz-cf-id"]
1743
- }), "deserializeMetadata");
1744
- var throwDefaultError = (0, import_smithy_client.withBaseException)(SWFServiceException);
1745
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1746
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1747
- const contents = {
1748
- protocol,
1749
- hostname,
1750
- port,
1751
- method: "POST",
1752
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1753
- headers
1754
- };
1755
- if (resolvedHostname !== void 0) {
1756
- contents.hostname = resolvedHostname;
1757
- }
1758
- if (body !== void 0) {
1759
- contents.body = body;
1760
- }
1761
- return new import_protocol_http.HttpRequest(contents);
1762
- }, "buildHttpRpcRequest");
1763
- function sharedHeaders(operation) {
1764
- return {
1765
- "content-type": "application/x-amz-json-1.0",
1766
- "x-amz-target": `SimpleWorkflowService.${operation}`
1767
- };
1768
- }
1769
- __name(sharedHeaders, "sharedHeaders");
1770
-
1771
- // src/commands/CountClosedWorkflowExecutionsCommand.ts
1772
- var CountClosedWorkflowExecutionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1773
- return [
1774
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1775
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1776
- ];
1777
- }).s("SimpleWorkflowService", "CountClosedWorkflowExecutions", {}).n("SWFClient", "CountClosedWorkflowExecutionsCommand").f(void 0, void 0).ser(se_CountClosedWorkflowExecutionsCommand).de(de_CountClosedWorkflowExecutionsCommand).build() {
1778
- static {
1779
- __name(this, "CountClosedWorkflowExecutionsCommand");
1780
- }
1781
- };
1782
-
1783
- // src/commands/CountOpenWorkflowExecutionsCommand.ts
1784
-
1785
-
1786
-
1787
- var CountOpenWorkflowExecutionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1788
- return [
1789
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1790
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1791
- ];
1792
- }).s("SimpleWorkflowService", "CountOpenWorkflowExecutions", {}).n("SWFClient", "CountOpenWorkflowExecutionsCommand").f(void 0, void 0).ser(se_CountOpenWorkflowExecutionsCommand).de(de_CountOpenWorkflowExecutionsCommand).build() {
1793
- static {
1794
- __name(this, "CountOpenWorkflowExecutionsCommand");
1795
- }
1796
- };
1797
-
1798
- // src/commands/CountPendingActivityTasksCommand.ts
1799
-
1800
-
1801
-
1802
- var CountPendingActivityTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1803
- return [
1804
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1805
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1806
- ];
1807
- }).s("SimpleWorkflowService", "CountPendingActivityTasks", {}).n("SWFClient", "CountPendingActivityTasksCommand").f(void 0, void 0).ser(se_CountPendingActivityTasksCommand).de(de_CountPendingActivityTasksCommand).build() {
1808
- static {
1809
- __name(this, "CountPendingActivityTasksCommand");
1810
- }
1811
- };
1812
-
1813
- // src/commands/CountPendingDecisionTasksCommand.ts
1814
-
1815
-
1816
-
1817
- var CountPendingDecisionTasksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1818
- return [
1819
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1820
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1821
- ];
1822
- }).s("SimpleWorkflowService", "CountPendingDecisionTasks", {}).n("SWFClient", "CountPendingDecisionTasksCommand").f(void 0, void 0).ser(se_CountPendingDecisionTasksCommand).de(de_CountPendingDecisionTasksCommand).build() {
1823
- static {
1824
- __name(this, "CountPendingDecisionTasksCommand");
1825
- }
1826
- };
1827
-
1828
- // src/commands/DeleteActivityTypeCommand.ts
1829
-
1830
-
1831
-
1832
- var DeleteActivityTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1833
- return [
1834
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1835
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1836
- ];
1837
- }).s("SimpleWorkflowService", "DeleteActivityType", {}).n("SWFClient", "DeleteActivityTypeCommand").f(void 0, void 0).ser(se_DeleteActivityTypeCommand).de(de_DeleteActivityTypeCommand).build() {
1838
- static {
1839
- __name(this, "DeleteActivityTypeCommand");
1840
- }
1841
- };
1842
-
1843
- // src/commands/DeleteWorkflowTypeCommand.ts
1844
-
1845
-
1846
-
1847
- var DeleteWorkflowTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1848
- return [
1849
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1850
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1851
- ];
1852
- }).s("SimpleWorkflowService", "DeleteWorkflowType", {}).n("SWFClient", "DeleteWorkflowTypeCommand").f(void 0, void 0).ser(se_DeleteWorkflowTypeCommand).de(de_DeleteWorkflowTypeCommand).build() {
1853
- static {
1854
- __name(this, "DeleteWorkflowTypeCommand");
1855
- }
1856
- };
1857
-
1858
- // src/commands/DeprecateActivityTypeCommand.ts
1859
-
1860
-
1861
-
1862
- var DeprecateActivityTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1863
- return [
1864
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1865
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1866
- ];
1867
- }).s("SimpleWorkflowService", "DeprecateActivityType", {}).n("SWFClient", "DeprecateActivityTypeCommand").f(void 0, void 0).ser(se_DeprecateActivityTypeCommand).de(de_DeprecateActivityTypeCommand).build() {
1868
- static {
1869
- __name(this, "DeprecateActivityTypeCommand");
1870
- }
1871
- };
1872
-
1873
- // src/commands/DeprecateDomainCommand.ts
1874
-
1875
-
1876
-
1877
- var DeprecateDomainCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1878
- return [
1879
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1880
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1881
- ];
1882
- }).s("SimpleWorkflowService", "DeprecateDomain", {}).n("SWFClient", "DeprecateDomainCommand").f(void 0, void 0).ser(se_DeprecateDomainCommand).de(de_DeprecateDomainCommand).build() {
1883
- static {
1884
- __name(this, "DeprecateDomainCommand");
1885
- }
1886
- };
1887
-
1888
- // src/commands/DeprecateWorkflowTypeCommand.ts
1889
-
1890
-
1891
-
1892
- var DeprecateWorkflowTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1893
- return [
1894
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1895
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1896
- ];
1897
- }).s("SimpleWorkflowService", "DeprecateWorkflowType", {}).n("SWFClient", "DeprecateWorkflowTypeCommand").f(void 0, void 0).ser(se_DeprecateWorkflowTypeCommand).de(de_DeprecateWorkflowTypeCommand).build() {
1898
- static {
1899
- __name(this, "DeprecateWorkflowTypeCommand");
1900
- }
1901
- };
1902
-
1903
- // src/commands/DescribeActivityTypeCommand.ts
1904
-
1905
-
1906
-
1907
- var DescribeActivityTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1908
- return [
1909
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1910
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1911
- ];
1912
- }).s("SimpleWorkflowService", "DescribeActivityType", {}).n("SWFClient", "DescribeActivityTypeCommand").f(void 0, void 0).ser(se_DescribeActivityTypeCommand).de(de_DescribeActivityTypeCommand).build() {
1913
- static {
1914
- __name(this, "DescribeActivityTypeCommand");
1915
- }
1916
- };
1917
-
1918
- // src/commands/DescribeDomainCommand.ts
1919
-
1920
-
1921
-
1922
- var DescribeDomainCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1923
- return [
1924
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1925
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1926
- ];
1927
- }).s("SimpleWorkflowService", "DescribeDomain", {}).n("SWFClient", "DescribeDomainCommand").f(void 0, void 0).ser(se_DescribeDomainCommand).de(de_DescribeDomainCommand).build() {
1928
- static {
1929
- __name(this, "DescribeDomainCommand");
1930
- }
1931
1293
  };
1932
-
1933
- // src/commands/DescribeWorkflowExecutionCommand.ts
1934
-
1935
-
1936
-
1937
- var DescribeWorkflowExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1938
- return [
1939
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1940
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1941
- ];
1942
- }).s("SimpleWorkflowService", "DescribeWorkflowExecution", {}).n("SWFClient", "DescribeWorkflowExecutionCommand").f(void 0, void 0).ser(se_DescribeWorkflowExecutionCommand).de(de_DescribeWorkflowExecutionCommand).build() {
1943
- static {
1944
- __name(this, "DescribeWorkflowExecutionCommand");
1945
- }
1294
+ const se_CountOpenWorkflowExecutionsInput = (input, context) => {
1295
+ return smithyClient.take(input, {
1296
+ domain: [],
1297
+ executionFilter: smithyClient._json,
1298
+ startTimeFilter: (_) => se_ExecutionTimeFilter(_),
1299
+ tagFilter: smithyClient._json,
1300
+ typeFilter: smithyClient._json,
1301
+ });
1946
1302
  };
1947
-
1948
- // src/commands/DescribeWorkflowTypeCommand.ts
1949
-
1950
-
1951
-
1952
- var DescribeWorkflowTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1953
- return [
1954
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1955
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1956
- ];
1957
- }).s("SimpleWorkflowService", "DescribeWorkflowType", {}).n("SWFClient", "DescribeWorkflowTypeCommand").f(void 0, void 0).ser(se_DescribeWorkflowTypeCommand).de(de_DescribeWorkflowTypeCommand).build() {
1958
- static {
1959
- __name(this, "DescribeWorkflowTypeCommand");
1960
- }
1303
+ const se_ExecutionTimeFilter = (input, context) => {
1304
+ return smithyClient.take(input, {
1305
+ latestDate: (_) => _.getTime() / 1_000,
1306
+ oldestDate: (_) => _.getTime() / 1_000,
1307
+ });
1961
1308
  };
1962
-
1963
- // src/commands/GetWorkflowExecutionHistoryCommand.ts
1964
-
1965
-
1966
-
1967
- var GetWorkflowExecutionHistoryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1968
- return [
1969
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1970
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1971
- ];
1972
- }).s("SimpleWorkflowService", "GetWorkflowExecutionHistory", {}).n("SWFClient", "GetWorkflowExecutionHistoryCommand").f(void 0, void 0).ser(se_GetWorkflowExecutionHistoryCommand).de(de_GetWorkflowExecutionHistoryCommand).build() {
1973
- static {
1974
- __name(this, "GetWorkflowExecutionHistoryCommand");
1975
- }
1309
+ const se_ListClosedWorkflowExecutionsInput = (input, context) => {
1310
+ return smithyClient.take(input, {
1311
+ closeStatusFilter: smithyClient._json,
1312
+ closeTimeFilter: (_) => se_ExecutionTimeFilter(_),
1313
+ domain: [],
1314
+ executionFilter: smithyClient._json,
1315
+ maximumPageSize: [],
1316
+ nextPageToken: [],
1317
+ reverseOrder: [],
1318
+ startTimeFilter: (_) => se_ExecutionTimeFilter(_),
1319
+ tagFilter: smithyClient._json,
1320
+ typeFilter: smithyClient._json,
1321
+ });
1976
1322
  };
1977
-
1978
- // src/commands/ListActivityTypesCommand.ts
1979
-
1980
-
1981
-
1982
- var ListActivityTypesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1983
- return [
1984
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1985
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1986
- ];
1987
- }).s("SimpleWorkflowService", "ListActivityTypes", {}).n("SWFClient", "ListActivityTypesCommand").f(void 0, void 0).ser(se_ListActivityTypesCommand).de(de_ListActivityTypesCommand).build() {
1988
- static {
1989
- __name(this, "ListActivityTypesCommand");
1990
- }
1323
+ const se_ListOpenWorkflowExecutionsInput = (input, context) => {
1324
+ return smithyClient.take(input, {
1325
+ domain: [],
1326
+ executionFilter: smithyClient._json,
1327
+ maximumPageSize: [],
1328
+ nextPageToken: [],
1329
+ reverseOrder: [],
1330
+ startTimeFilter: (_) => se_ExecutionTimeFilter(_),
1331
+ tagFilter: smithyClient._json,
1332
+ typeFilter: smithyClient._json,
1333
+ });
1991
1334
  };
1992
-
1993
- // src/commands/ListClosedWorkflowExecutionsCommand.ts
1994
-
1995
-
1996
-
1997
- var ListClosedWorkflowExecutionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1998
- return [
1999
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2000
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2001
- ];
2002
- }).s("SimpleWorkflowService", "ListClosedWorkflowExecutions", {}).n("SWFClient", "ListClosedWorkflowExecutionsCommand").f(void 0, void 0).ser(se_ListClosedWorkflowExecutionsCommand).de(de_ListClosedWorkflowExecutionsCommand).build() {
2003
- static {
2004
- __name(this, "ListClosedWorkflowExecutionsCommand");
2005
- }
1335
+ const de_ActivityTypeDetail = (output, context) => {
1336
+ return smithyClient.take(output, {
1337
+ configuration: smithyClient._json,
1338
+ typeInfo: (_) => de_ActivityTypeInfo(_),
1339
+ });
2006
1340
  };
2007
-
2008
- // src/commands/ListDomainsCommand.ts
2009
-
2010
-
2011
-
2012
- var ListDomainsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2013
- return [
2014
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2015
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2016
- ];
2017
- }).s("SimpleWorkflowService", "ListDomains", {}).n("SWFClient", "ListDomainsCommand").f(void 0, void 0).ser(se_ListDomainsCommand).de(de_ListDomainsCommand).build() {
2018
- static {
2019
- __name(this, "ListDomainsCommand");
2020
- }
1341
+ const de_ActivityTypeInfo = (output, context) => {
1342
+ return smithyClient.take(output, {
1343
+ activityType: smithyClient._json,
1344
+ creationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1345
+ deprecationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1346
+ description: smithyClient.expectString,
1347
+ status: smithyClient.expectString,
1348
+ });
2021
1349
  };
2022
-
2023
- // src/commands/ListOpenWorkflowExecutionsCommand.ts
2024
-
2025
-
2026
-
2027
- var ListOpenWorkflowExecutionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2028
- return [
2029
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2030
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2031
- ];
2032
- }).s("SimpleWorkflowService", "ListOpenWorkflowExecutions", {}).n("SWFClient", "ListOpenWorkflowExecutionsCommand").f(void 0, void 0).ser(se_ListOpenWorkflowExecutionsCommand).de(de_ListOpenWorkflowExecutionsCommand).build() {
2033
- static {
2034
- __name(this, "ListOpenWorkflowExecutionsCommand");
2035
- }
1350
+ const de_ActivityTypeInfoList = (output, context) => {
1351
+ const retVal = (output || [])
1352
+ .filter((e) => e != null)
1353
+ .map((entry) => {
1354
+ return de_ActivityTypeInfo(entry);
1355
+ });
1356
+ return retVal;
2036
1357
  };
2037
-
2038
- // src/commands/ListTagsForResourceCommand.ts
2039
-
2040
-
2041
-
2042
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2043
- return [
2044
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2045
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2046
- ];
2047
- }).s("SimpleWorkflowService", "ListTagsForResource", {}).n("SWFClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2048
- static {
2049
- __name(this, "ListTagsForResourceCommand");
2050
- }
1358
+ const de_ActivityTypeInfos = (output, context) => {
1359
+ return smithyClient.take(output, {
1360
+ nextPageToken: smithyClient.expectString,
1361
+ typeInfos: (_) => de_ActivityTypeInfoList(_),
1362
+ });
2051
1363
  };
2052
-
2053
- // src/commands/ListWorkflowTypesCommand.ts
2054
-
2055
-
2056
-
2057
- var ListWorkflowTypesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2058
- return [
2059
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2060
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2061
- ];
2062
- }).s("SimpleWorkflowService", "ListWorkflowTypes", {}).n("SWFClient", "ListWorkflowTypesCommand").f(void 0, void 0).ser(se_ListWorkflowTypesCommand).de(de_ListWorkflowTypesCommand).build() {
2063
- static {
2064
- __name(this, "ListWorkflowTypesCommand");
2065
- }
1364
+ const de_DecisionTask = (output, context) => {
1365
+ return smithyClient.take(output, {
1366
+ events: (_) => de_HistoryEventList(_),
1367
+ nextPageToken: smithyClient.expectString,
1368
+ previousStartedEventId: smithyClient.expectLong,
1369
+ startedEventId: smithyClient.expectLong,
1370
+ taskToken: smithyClient.expectString,
1371
+ workflowExecution: smithyClient._json,
1372
+ workflowType: smithyClient._json,
1373
+ });
2066
1374
  };
2067
-
2068
- // src/commands/PollForActivityTaskCommand.ts
2069
-
2070
-
2071
-
2072
- var PollForActivityTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2073
- return [
2074
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2075
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2076
- ];
2077
- }).s("SimpleWorkflowService", "PollForActivityTask", {}).n("SWFClient", "PollForActivityTaskCommand").f(void 0, void 0).ser(se_PollForActivityTaskCommand).de(de_PollForActivityTaskCommand).build() {
2078
- static {
2079
- __name(this, "PollForActivityTaskCommand");
2080
- }
1375
+ const de_History = (output, context) => {
1376
+ return smithyClient.take(output, {
1377
+ events: (_) => de_HistoryEventList(_),
1378
+ nextPageToken: smithyClient.expectString,
1379
+ });
2081
1380
  };
2082
-
2083
- // src/commands/PollForDecisionTaskCommand.ts
2084
-
2085
-
2086
-
2087
- var PollForDecisionTaskCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2088
- return [
2089
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2090
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2091
- ];
2092
- }).s("SimpleWorkflowService", "PollForDecisionTask", {}).n("SWFClient", "PollForDecisionTaskCommand").f(void 0, void 0).ser(se_PollForDecisionTaskCommand).de(de_PollForDecisionTaskCommand).build() {
2093
- static {
2094
- __name(this, "PollForDecisionTaskCommand");
2095
- }
1381
+ const de_HistoryEvent = (output, context) => {
1382
+ return smithyClient.take(output, {
1383
+ activityTaskCancelRequestedEventAttributes: smithyClient._json,
1384
+ activityTaskCanceledEventAttributes: smithyClient._json,
1385
+ activityTaskCompletedEventAttributes: smithyClient._json,
1386
+ activityTaskFailedEventAttributes: smithyClient._json,
1387
+ activityTaskScheduledEventAttributes: smithyClient._json,
1388
+ activityTaskStartedEventAttributes: smithyClient._json,
1389
+ activityTaskTimedOutEventAttributes: smithyClient._json,
1390
+ cancelTimerFailedEventAttributes: smithyClient._json,
1391
+ cancelWorkflowExecutionFailedEventAttributes: smithyClient._json,
1392
+ childWorkflowExecutionCanceledEventAttributes: smithyClient._json,
1393
+ childWorkflowExecutionCompletedEventAttributes: smithyClient._json,
1394
+ childWorkflowExecutionFailedEventAttributes: smithyClient._json,
1395
+ childWorkflowExecutionStartedEventAttributes: smithyClient._json,
1396
+ childWorkflowExecutionTerminatedEventAttributes: smithyClient._json,
1397
+ childWorkflowExecutionTimedOutEventAttributes: smithyClient._json,
1398
+ completeWorkflowExecutionFailedEventAttributes: smithyClient._json,
1399
+ continueAsNewWorkflowExecutionFailedEventAttributes: smithyClient._json,
1400
+ decisionTaskCompletedEventAttributes: smithyClient._json,
1401
+ decisionTaskScheduledEventAttributes: smithyClient._json,
1402
+ decisionTaskStartedEventAttributes: smithyClient._json,
1403
+ decisionTaskTimedOutEventAttributes: smithyClient._json,
1404
+ eventId: smithyClient.expectLong,
1405
+ eventTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1406
+ eventType: smithyClient.expectString,
1407
+ externalWorkflowExecutionCancelRequestedEventAttributes: smithyClient._json,
1408
+ externalWorkflowExecutionSignaledEventAttributes: smithyClient._json,
1409
+ failWorkflowExecutionFailedEventAttributes: smithyClient._json,
1410
+ lambdaFunctionCompletedEventAttributes: smithyClient._json,
1411
+ lambdaFunctionFailedEventAttributes: smithyClient._json,
1412
+ lambdaFunctionScheduledEventAttributes: smithyClient._json,
1413
+ lambdaFunctionStartedEventAttributes: smithyClient._json,
1414
+ lambdaFunctionTimedOutEventAttributes: smithyClient._json,
1415
+ markerRecordedEventAttributes: smithyClient._json,
1416
+ recordMarkerFailedEventAttributes: smithyClient._json,
1417
+ requestCancelActivityTaskFailedEventAttributes: smithyClient._json,
1418
+ requestCancelExternalWorkflowExecutionFailedEventAttributes: smithyClient._json,
1419
+ requestCancelExternalWorkflowExecutionInitiatedEventAttributes: smithyClient._json,
1420
+ scheduleActivityTaskFailedEventAttributes: smithyClient._json,
1421
+ scheduleLambdaFunctionFailedEventAttributes: smithyClient._json,
1422
+ signalExternalWorkflowExecutionFailedEventAttributes: smithyClient._json,
1423
+ signalExternalWorkflowExecutionInitiatedEventAttributes: smithyClient._json,
1424
+ startChildWorkflowExecutionFailedEventAttributes: smithyClient._json,
1425
+ startChildWorkflowExecutionInitiatedEventAttributes: smithyClient._json,
1426
+ startLambdaFunctionFailedEventAttributes: smithyClient._json,
1427
+ startTimerFailedEventAttributes: smithyClient._json,
1428
+ timerCanceledEventAttributes: smithyClient._json,
1429
+ timerFiredEventAttributes: smithyClient._json,
1430
+ timerStartedEventAttributes: smithyClient._json,
1431
+ workflowExecutionCancelRequestedEventAttributes: smithyClient._json,
1432
+ workflowExecutionCanceledEventAttributes: smithyClient._json,
1433
+ workflowExecutionCompletedEventAttributes: smithyClient._json,
1434
+ workflowExecutionContinuedAsNewEventAttributes: smithyClient._json,
1435
+ workflowExecutionFailedEventAttributes: smithyClient._json,
1436
+ workflowExecutionSignaledEventAttributes: smithyClient._json,
1437
+ workflowExecutionStartedEventAttributes: smithyClient._json,
1438
+ workflowExecutionTerminatedEventAttributes: smithyClient._json,
1439
+ workflowExecutionTimedOutEventAttributes: smithyClient._json,
1440
+ });
2096
1441
  };
2097
-
2098
- // src/commands/RecordActivityTaskHeartbeatCommand.ts
2099
-
2100
-
2101
-
2102
- var RecordActivityTaskHeartbeatCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2103
- return [
2104
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2105
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2106
- ];
2107
- }).s("SimpleWorkflowService", "RecordActivityTaskHeartbeat", {}).n("SWFClient", "RecordActivityTaskHeartbeatCommand").f(void 0, void 0).ser(se_RecordActivityTaskHeartbeatCommand).de(de_RecordActivityTaskHeartbeatCommand).build() {
2108
- static {
2109
- __name(this, "RecordActivityTaskHeartbeatCommand");
2110
- }
1442
+ const de_HistoryEventList = (output, context) => {
1443
+ const retVal = (output || [])
1444
+ .filter((e) => e != null)
1445
+ .map((entry) => {
1446
+ return de_HistoryEvent(entry);
1447
+ });
1448
+ return retVal;
1449
+ };
1450
+ const de_WorkflowExecutionDetail = (output, context) => {
1451
+ return smithyClient.take(output, {
1452
+ executionConfiguration: smithyClient._json,
1453
+ executionInfo: (_) => de_WorkflowExecutionInfo(_),
1454
+ latestActivityTaskTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1455
+ latestExecutionContext: smithyClient.expectString,
1456
+ openCounts: smithyClient._json,
1457
+ });
2111
1458
  };
2112
-
2113
- // src/commands/RegisterActivityTypeCommand.ts
2114
-
2115
-
2116
-
2117
- var RegisterActivityTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2118
- return [
2119
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2120
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2121
- ];
2122
- }).s("SimpleWorkflowService", "RegisterActivityType", {}).n("SWFClient", "RegisterActivityTypeCommand").f(void 0, void 0).ser(se_RegisterActivityTypeCommand).de(de_RegisterActivityTypeCommand).build() {
2123
- static {
2124
- __name(this, "RegisterActivityTypeCommand");
2125
- }
1459
+ const de_WorkflowExecutionInfo = (output, context) => {
1460
+ return smithyClient.take(output, {
1461
+ cancelRequested: smithyClient.expectBoolean,
1462
+ closeStatus: smithyClient.expectString,
1463
+ closeTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1464
+ execution: smithyClient._json,
1465
+ executionStatus: smithyClient.expectString,
1466
+ parent: smithyClient._json,
1467
+ startTimestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1468
+ tagList: smithyClient._json,
1469
+ workflowType: smithyClient._json,
1470
+ });
2126
1471
  };
2127
-
2128
- // src/commands/RegisterDomainCommand.ts
2129
-
2130
-
2131
-
2132
- var RegisterDomainCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2133
- return [
2134
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2135
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2136
- ];
2137
- }).s("SimpleWorkflowService", "RegisterDomain", {}).n("SWFClient", "RegisterDomainCommand").f(void 0, void 0).ser(se_RegisterDomainCommand).de(de_RegisterDomainCommand).build() {
2138
- static {
2139
- __name(this, "RegisterDomainCommand");
2140
- }
1472
+ const de_WorkflowExecutionInfoList = (output, context) => {
1473
+ const retVal = (output || [])
1474
+ .filter((e) => e != null)
1475
+ .map((entry) => {
1476
+ return de_WorkflowExecutionInfo(entry);
1477
+ });
1478
+ return retVal;
2141
1479
  };
2142
-
2143
- // src/commands/RegisterWorkflowTypeCommand.ts
2144
-
2145
-
2146
-
2147
- var RegisterWorkflowTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2148
- return [
2149
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2150
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2151
- ];
2152
- }).s("SimpleWorkflowService", "RegisterWorkflowType", {}).n("SWFClient", "RegisterWorkflowTypeCommand").f(void 0, void 0).ser(se_RegisterWorkflowTypeCommand).de(de_RegisterWorkflowTypeCommand).build() {
2153
- static {
2154
- __name(this, "RegisterWorkflowTypeCommand");
2155
- }
1480
+ const de_WorkflowExecutionInfos = (output, context) => {
1481
+ return smithyClient.take(output, {
1482
+ executionInfos: (_) => de_WorkflowExecutionInfoList(_),
1483
+ nextPageToken: smithyClient.expectString,
1484
+ });
2156
1485
  };
2157
-
2158
- // src/commands/RequestCancelWorkflowExecutionCommand.ts
2159
-
2160
-
2161
-
2162
- var RequestCancelWorkflowExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2163
- return [
2164
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2165
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2166
- ];
2167
- }).s("SimpleWorkflowService", "RequestCancelWorkflowExecution", {}).n("SWFClient", "RequestCancelWorkflowExecutionCommand").f(void 0, void 0).ser(se_RequestCancelWorkflowExecutionCommand).de(de_RequestCancelWorkflowExecutionCommand).build() {
2168
- static {
2169
- __name(this, "RequestCancelWorkflowExecutionCommand");
2170
- }
1486
+ const de_WorkflowTypeDetail = (output, context) => {
1487
+ return smithyClient.take(output, {
1488
+ configuration: smithyClient._json,
1489
+ typeInfo: (_) => de_WorkflowTypeInfo(_),
1490
+ });
2171
1491
  };
2172
-
2173
- // src/commands/RespondActivityTaskCanceledCommand.ts
2174
-
2175
-
2176
-
2177
- var RespondActivityTaskCanceledCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2178
- return [
2179
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2180
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2181
- ];
2182
- }).s("SimpleWorkflowService", "RespondActivityTaskCanceled", {}).n("SWFClient", "RespondActivityTaskCanceledCommand").f(void 0, void 0).ser(se_RespondActivityTaskCanceledCommand).de(de_RespondActivityTaskCanceledCommand).build() {
2183
- static {
2184
- __name(this, "RespondActivityTaskCanceledCommand");
2185
- }
1492
+ const de_WorkflowTypeInfo = (output, context) => {
1493
+ return smithyClient.take(output, {
1494
+ creationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1495
+ deprecationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1496
+ description: smithyClient.expectString,
1497
+ status: smithyClient.expectString,
1498
+ workflowType: smithyClient._json,
1499
+ });
2186
1500
  };
2187
-
2188
- // src/commands/RespondActivityTaskCompletedCommand.ts
2189
-
2190
-
2191
-
2192
- var RespondActivityTaskCompletedCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2193
- return [
2194
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2195
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2196
- ];
2197
- }).s("SimpleWorkflowService", "RespondActivityTaskCompleted", {}).n("SWFClient", "RespondActivityTaskCompletedCommand").f(void 0, void 0).ser(se_RespondActivityTaskCompletedCommand).de(de_RespondActivityTaskCompletedCommand).build() {
2198
- static {
2199
- __name(this, "RespondActivityTaskCompletedCommand");
2200
- }
1501
+ const de_WorkflowTypeInfoList = (output, context) => {
1502
+ const retVal = (output || [])
1503
+ .filter((e) => e != null)
1504
+ .map((entry) => {
1505
+ return de_WorkflowTypeInfo(entry);
1506
+ });
1507
+ return retVal;
2201
1508
  };
2202
-
2203
- // src/commands/RespondActivityTaskFailedCommand.ts
2204
-
2205
-
2206
-
2207
- var RespondActivityTaskFailedCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2208
- return [
2209
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2210
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2211
- ];
2212
- }).s("SimpleWorkflowService", "RespondActivityTaskFailed", {}).n("SWFClient", "RespondActivityTaskFailedCommand").f(void 0, void 0).ser(se_RespondActivityTaskFailedCommand).de(de_RespondActivityTaskFailedCommand).build() {
2213
- static {
2214
- __name(this, "RespondActivityTaskFailedCommand");
2215
- }
1509
+ const de_WorkflowTypeInfos = (output, context) => {
1510
+ return smithyClient.take(output, {
1511
+ nextPageToken: smithyClient.expectString,
1512
+ typeInfos: (_) => de_WorkflowTypeInfoList(_),
1513
+ });
2216
1514
  };
2217
-
2218
- // src/commands/RespondDecisionTaskCompletedCommand.ts
2219
-
2220
-
2221
-
2222
- var RespondDecisionTaskCompletedCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2223
- return [
2224
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2225
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2226
- ];
2227
- }).s("SimpleWorkflowService", "RespondDecisionTaskCompleted", {}).n("SWFClient", "RespondDecisionTaskCompletedCommand").f(void 0, void 0).ser(se_RespondDecisionTaskCompletedCommand).de(de_RespondDecisionTaskCompletedCommand).build() {
2228
- static {
2229
- __name(this, "RespondDecisionTaskCompletedCommand");
2230
- }
1515
+ const deserializeMetadata = (output) => ({
1516
+ httpStatusCode: output.statusCode,
1517
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1518
+ extendedRequestId: output.headers["x-amz-id-2"],
1519
+ cfId: output.headers["x-amz-cf-id"],
1520
+ });
1521
+ const throwDefaultError = smithyClient.withBaseException(SWFServiceException);
1522
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1523
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1524
+ const contents = {
1525
+ protocol,
1526
+ hostname,
1527
+ port,
1528
+ method: "POST",
1529
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1530
+ headers,
1531
+ };
1532
+ if (body !== undefined) {
1533
+ contents.body = body;
1534
+ }
1535
+ return new protocolHttp.HttpRequest(contents);
2231
1536
  };
1537
+ function sharedHeaders(operation) {
1538
+ return {
1539
+ "content-type": "application/x-amz-json-1.0",
1540
+ "x-amz-target": `SimpleWorkflowService.${operation}`,
1541
+ };
1542
+ }
2232
1543
 
2233
- // src/commands/SignalWorkflowExecutionCommand.ts
1544
+ class CountClosedWorkflowExecutionsCommand extends smithyClient.Command
1545
+ .classBuilder()
1546
+ .ep(commonParams)
1547
+ .m(function (Command, cs, config, o) {
1548
+ return [
1549
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1550
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1551
+ ];
1552
+ })
1553
+ .s("SimpleWorkflowService", "CountClosedWorkflowExecutions", {})
1554
+ .n("SWFClient", "CountClosedWorkflowExecutionsCommand")
1555
+ .f(void 0, void 0)
1556
+ .ser(se_CountClosedWorkflowExecutionsCommand)
1557
+ .de(de_CountClosedWorkflowExecutionsCommand)
1558
+ .build() {
1559
+ }
2234
1560
 
1561
+ class CountOpenWorkflowExecutionsCommand extends smithyClient.Command
1562
+ .classBuilder()
1563
+ .ep(commonParams)
1564
+ .m(function (Command, cs, config, o) {
1565
+ return [
1566
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1567
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1568
+ ];
1569
+ })
1570
+ .s("SimpleWorkflowService", "CountOpenWorkflowExecutions", {})
1571
+ .n("SWFClient", "CountOpenWorkflowExecutionsCommand")
1572
+ .f(void 0, void 0)
1573
+ .ser(se_CountOpenWorkflowExecutionsCommand)
1574
+ .de(de_CountOpenWorkflowExecutionsCommand)
1575
+ .build() {
1576
+ }
2235
1577
 
1578
+ class CountPendingActivityTasksCommand extends smithyClient.Command
1579
+ .classBuilder()
1580
+ .ep(commonParams)
1581
+ .m(function (Command, cs, config, o) {
1582
+ return [
1583
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1584
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1585
+ ];
1586
+ })
1587
+ .s("SimpleWorkflowService", "CountPendingActivityTasks", {})
1588
+ .n("SWFClient", "CountPendingActivityTasksCommand")
1589
+ .f(void 0, void 0)
1590
+ .ser(se_CountPendingActivityTasksCommand)
1591
+ .de(de_CountPendingActivityTasksCommand)
1592
+ .build() {
1593
+ }
2236
1594
 
2237
- var SignalWorkflowExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2238
- return [
2239
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2240
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2241
- ];
2242
- }).s("SimpleWorkflowService", "SignalWorkflowExecution", {}).n("SWFClient", "SignalWorkflowExecutionCommand").f(void 0, void 0).ser(se_SignalWorkflowExecutionCommand).de(de_SignalWorkflowExecutionCommand).build() {
2243
- static {
2244
- __name(this, "SignalWorkflowExecutionCommand");
2245
- }
2246
- };
1595
+ class CountPendingDecisionTasksCommand extends smithyClient.Command
1596
+ .classBuilder()
1597
+ .ep(commonParams)
1598
+ .m(function (Command, cs, config, o) {
1599
+ return [
1600
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1601
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1602
+ ];
1603
+ })
1604
+ .s("SimpleWorkflowService", "CountPendingDecisionTasks", {})
1605
+ .n("SWFClient", "CountPendingDecisionTasksCommand")
1606
+ .f(void 0, void 0)
1607
+ .ser(se_CountPendingDecisionTasksCommand)
1608
+ .de(de_CountPendingDecisionTasksCommand)
1609
+ .build() {
1610
+ }
2247
1611
 
2248
- // src/commands/StartWorkflowExecutionCommand.ts
1612
+ class DeleteActivityTypeCommand extends smithyClient.Command
1613
+ .classBuilder()
1614
+ .ep(commonParams)
1615
+ .m(function (Command, cs, config, o) {
1616
+ return [
1617
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1618
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1619
+ ];
1620
+ })
1621
+ .s("SimpleWorkflowService", "DeleteActivityType", {})
1622
+ .n("SWFClient", "DeleteActivityTypeCommand")
1623
+ .f(void 0, void 0)
1624
+ .ser(se_DeleteActivityTypeCommand)
1625
+ .de(de_DeleteActivityTypeCommand)
1626
+ .build() {
1627
+ }
2249
1628
 
1629
+ class DeleteWorkflowTypeCommand extends smithyClient.Command
1630
+ .classBuilder()
1631
+ .ep(commonParams)
1632
+ .m(function (Command, cs, config, o) {
1633
+ return [
1634
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1635
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1636
+ ];
1637
+ })
1638
+ .s("SimpleWorkflowService", "DeleteWorkflowType", {})
1639
+ .n("SWFClient", "DeleteWorkflowTypeCommand")
1640
+ .f(void 0, void 0)
1641
+ .ser(se_DeleteWorkflowTypeCommand)
1642
+ .de(de_DeleteWorkflowTypeCommand)
1643
+ .build() {
1644
+ }
2250
1645
 
1646
+ class DeprecateActivityTypeCommand extends smithyClient.Command
1647
+ .classBuilder()
1648
+ .ep(commonParams)
1649
+ .m(function (Command, cs, config, o) {
1650
+ return [
1651
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1652
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1653
+ ];
1654
+ })
1655
+ .s("SimpleWorkflowService", "DeprecateActivityType", {})
1656
+ .n("SWFClient", "DeprecateActivityTypeCommand")
1657
+ .f(void 0, void 0)
1658
+ .ser(se_DeprecateActivityTypeCommand)
1659
+ .de(de_DeprecateActivityTypeCommand)
1660
+ .build() {
1661
+ }
2251
1662
 
2252
- var StartWorkflowExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2253
- return [
2254
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2255
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2256
- ];
2257
- }).s("SimpleWorkflowService", "StartWorkflowExecution", {}).n("SWFClient", "StartWorkflowExecutionCommand").f(void 0, void 0).ser(se_StartWorkflowExecutionCommand).de(de_StartWorkflowExecutionCommand).build() {
2258
- static {
2259
- __name(this, "StartWorkflowExecutionCommand");
2260
- }
2261
- };
1663
+ class DeprecateDomainCommand extends smithyClient.Command
1664
+ .classBuilder()
1665
+ .ep(commonParams)
1666
+ .m(function (Command, cs, config, o) {
1667
+ return [
1668
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1669
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1670
+ ];
1671
+ })
1672
+ .s("SimpleWorkflowService", "DeprecateDomain", {})
1673
+ .n("SWFClient", "DeprecateDomainCommand")
1674
+ .f(void 0, void 0)
1675
+ .ser(se_DeprecateDomainCommand)
1676
+ .de(de_DeprecateDomainCommand)
1677
+ .build() {
1678
+ }
2262
1679
 
2263
- // src/commands/TagResourceCommand.ts
1680
+ class DeprecateWorkflowTypeCommand extends smithyClient.Command
1681
+ .classBuilder()
1682
+ .ep(commonParams)
1683
+ .m(function (Command, cs, config, o) {
1684
+ return [
1685
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1686
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1687
+ ];
1688
+ })
1689
+ .s("SimpleWorkflowService", "DeprecateWorkflowType", {})
1690
+ .n("SWFClient", "DeprecateWorkflowTypeCommand")
1691
+ .f(void 0, void 0)
1692
+ .ser(se_DeprecateWorkflowTypeCommand)
1693
+ .de(de_DeprecateWorkflowTypeCommand)
1694
+ .build() {
1695
+ }
2264
1696
 
1697
+ class DescribeActivityTypeCommand extends smithyClient.Command
1698
+ .classBuilder()
1699
+ .ep(commonParams)
1700
+ .m(function (Command, cs, config, o) {
1701
+ return [
1702
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1703
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1704
+ ];
1705
+ })
1706
+ .s("SimpleWorkflowService", "DescribeActivityType", {})
1707
+ .n("SWFClient", "DescribeActivityTypeCommand")
1708
+ .f(void 0, void 0)
1709
+ .ser(se_DescribeActivityTypeCommand)
1710
+ .de(de_DescribeActivityTypeCommand)
1711
+ .build() {
1712
+ }
2265
1713
 
1714
+ class DescribeDomainCommand extends smithyClient.Command
1715
+ .classBuilder()
1716
+ .ep(commonParams)
1717
+ .m(function (Command, cs, config, o) {
1718
+ return [
1719
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1720
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1721
+ ];
1722
+ })
1723
+ .s("SimpleWorkflowService", "DescribeDomain", {})
1724
+ .n("SWFClient", "DescribeDomainCommand")
1725
+ .f(void 0, void 0)
1726
+ .ser(se_DescribeDomainCommand)
1727
+ .de(de_DescribeDomainCommand)
1728
+ .build() {
1729
+ }
2266
1730
 
2267
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2268
- return [
2269
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2270
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2271
- ];
2272
- }).s("SimpleWorkflowService", "TagResource", {}).n("SWFClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2273
- static {
2274
- __name(this, "TagResourceCommand");
2275
- }
2276
- };
1731
+ class DescribeWorkflowExecutionCommand extends smithyClient.Command
1732
+ .classBuilder()
1733
+ .ep(commonParams)
1734
+ .m(function (Command, cs, config, o) {
1735
+ return [
1736
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1737
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1738
+ ];
1739
+ })
1740
+ .s("SimpleWorkflowService", "DescribeWorkflowExecution", {})
1741
+ .n("SWFClient", "DescribeWorkflowExecutionCommand")
1742
+ .f(void 0, void 0)
1743
+ .ser(se_DescribeWorkflowExecutionCommand)
1744
+ .de(de_DescribeWorkflowExecutionCommand)
1745
+ .build() {
1746
+ }
2277
1747
 
2278
- // src/commands/TerminateWorkflowExecutionCommand.ts
1748
+ class DescribeWorkflowTypeCommand extends smithyClient.Command
1749
+ .classBuilder()
1750
+ .ep(commonParams)
1751
+ .m(function (Command, cs, config, o) {
1752
+ return [
1753
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1754
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1755
+ ];
1756
+ })
1757
+ .s("SimpleWorkflowService", "DescribeWorkflowType", {})
1758
+ .n("SWFClient", "DescribeWorkflowTypeCommand")
1759
+ .f(void 0, void 0)
1760
+ .ser(se_DescribeWorkflowTypeCommand)
1761
+ .de(de_DescribeWorkflowTypeCommand)
1762
+ .build() {
1763
+ }
2279
1764
 
1765
+ class GetWorkflowExecutionHistoryCommand extends smithyClient.Command
1766
+ .classBuilder()
1767
+ .ep(commonParams)
1768
+ .m(function (Command, cs, config, o) {
1769
+ return [
1770
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1771
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1772
+ ];
1773
+ })
1774
+ .s("SimpleWorkflowService", "GetWorkflowExecutionHistory", {})
1775
+ .n("SWFClient", "GetWorkflowExecutionHistoryCommand")
1776
+ .f(void 0, void 0)
1777
+ .ser(se_GetWorkflowExecutionHistoryCommand)
1778
+ .de(de_GetWorkflowExecutionHistoryCommand)
1779
+ .build() {
1780
+ }
2280
1781
 
1782
+ class ListActivityTypesCommand extends smithyClient.Command
1783
+ .classBuilder()
1784
+ .ep(commonParams)
1785
+ .m(function (Command, cs, config, o) {
1786
+ return [
1787
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1788
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1789
+ ];
1790
+ })
1791
+ .s("SimpleWorkflowService", "ListActivityTypes", {})
1792
+ .n("SWFClient", "ListActivityTypesCommand")
1793
+ .f(void 0, void 0)
1794
+ .ser(se_ListActivityTypesCommand)
1795
+ .de(de_ListActivityTypesCommand)
1796
+ .build() {
1797
+ }
2281
1798
 
2282
- var TerminateWorkflowExecutionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2283
- return [
2284
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2285
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2286
- ];
2287
- }).s("SimpleWorkflowService", "TerminateWorkflowExecution", {}).n("SWFClient", "TerminateWorkflowExecutionCommand").f(void 0, void 0).ser(se_TerminateWorkflowExecutionCommand).de(de_TerminateWorkflowExecutionCommand).build() {
2288
- static {
2289
- __name(this, "TerminateWorkflowExecutionCommand");
2290
- }
2291
- };
1799
+ class ListClosedWorkflowExecutionsCommand extends smithyClient.Command
1800
+ .classBuilder()
1801
+ .ep(commonParams)
1802
+ .m(function (Command, cs, config, o) {
1803
+ return [
1804
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1805
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1806
+ ];
1807
+ })
1808
+ .s("SimpleWorkflowService", "ListClosedWorkflowExecutions", {})
1809
+ .n("SWFClient", "ListClosedWorkflowExecutionsCommand")
1810
+ .f(void 0, void 0)
1811
+ .ser(se_ListClosedWorkflowExecutionsCommand)
1812
+ .de(de_ListClosedWorkflowExecutionsCommand)
1813
+ .build() {
1814
+ }
2292
1815
 
2293
- // src/commands/UndeprecateActivityTypeCommand.ts
1816
+ class ListDomainsCommand extends smithyClient.Command
1817
+ .classBuilder()
1818
+ .ep(commonParams)
1819
+ .m(function (Command, cs, config, o) {
1820
+ return [
1821
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1822
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1823
+ ];
1824
+ })
1825
+ .s("SimpleWorkflowService", "ListDomains", {})
1826
+ .n("SWFClient", "ListDomainsCommand")
1827
+ .f(void 0, void 0)
1828
+ .ser(se_ListDomainsCommand)
1829
+ .de(de_ListDomainsCommand)
1830
+ .build() {
1831
+ }
2294
1832
 
1833
+ class ListOpenWorkflowExecutionsCommand extends smithyClient.Command
1834
+ .classBuilder()
1835
+ .ep(commonParams)
1836
+ .m(function (Command, cs, config, o) {
1837
+ return [
1838
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1839
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1840
+ ];
1841
+ })
1842
+ .s("SimpleWorkflowService", "ListOpenWorkflowExecutions", {})
1843
+ .n("SWFClient", "ListOpenWorkflowExecutionsCommand")
1844
+ .f(void 0, void 0)
1845
+ .ser(se_ListOpenWorkflowExecutionsCommand)
1846
+ .de(de_ListOpenWorkflowExecutionsCommand)
1847
+ .build() {
1848
+ }
2295
1849
 
1850
+ class ListTagsForResourceCommand extends smithyClient.Command
1851
+ .classBuilder()
1852
+ .ep(commonParams)
1853
+ .m(function (Command, cs, config, o) {
1854
+ return [
1855
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1856
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1857
+ ];
1858
+ })
1859
+ .s("SimpleWorkflowService", "ListTagsForResource", {})
1860
+ .n("SWFClient", "ListTagsForResourceCommand")
1861
+ .f(void 0, void 0)
1862
+ .ser(se_ListTagsForResourceCommand)
1863
+ .de(de_ListTagsForResourceCommand)
1864
+ .build() {
1865
+ }
2296
1866
 
2297
- var UndeprecateActivityTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2298
- return [
2299
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2300
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2301
- ];
2302
- }).s("SimpleWorkflowService", "UndeprecateActivityType", {}).n("SWFClient", "UndeprecateActivityTypeCommand").f(void 0, void 0).ser(se_UndeprecateActivityTypeCommand).de(de_UndeprecateActivityTypeCommand).build() {
2303
- static {
2304
- __name(this, "UndeprecateActivityTypeCommand");
2305
- }
2306
- };
1867
+ class ListWorkflowTypesCommand extends smithyClient.Command
1868
+ .classBuilder()
1869
+ .ep(commonParams)
1870
+ .m(function (Command, cs, config, o) {
1871
+ return [
1872
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1873
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1874
+ ];
1875
+ })
1876
+ .s("SimpleWorkflowService", "ListWorkflowTypes", {})
1877
+ .n("SWFClient", "ListWorkflowTypesCommand")
1878
+ .f(void 0, void 0)
1879
+ .ser(se_ListWorkflowTypesCommand)
1880
+ .de(de_ListWorkflowTypesCommand)
1881
+ .build() {
1882
+ }
2307
1883
 
2308
- // src/commands/UndeprecateDomainCommand.ts
1884
+ class PollForActivityTaskCommand extends smithyClient.Command
1885
+ .classBuilder()
1886
+ .ep(commonParams)
1887
+ .m(function (Command, cs, config, o) {
1888
+ return [
1889
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1890
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1891
+ ];
1892
+ })
1893
+ .s("SimpleWorkflowService", "PollForActivityTask", {})
1894
+ .n("SWFClient", "PollForActivityTaskCommand")
1895
+ .f(void 0, void 0)
1896
+ .ser(se_PollForActivityTaskCommand)
1897
+ .de(de_PollForActivityTaskCommand)
1898
+ .build() {
1899
+ }
2309
1900
 
1901
+ class PollForDecisionTaskCommand extends smithyClient.Command
1902
+ .classBuilder()
1903
+ .ep(commonParams)
1904
+ .m(function (Command, cs, config, o) {
1905
+ return [
1906
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1907
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1908
+ ];
1909
+ })
1910
+ .s("SimpleWorkflowService", "PollForDecisionTask", {})
1911
+ .n("SWFClient", "PollForDecisionTaskCommand")
1912
+ .f(void 0, void 0)
1913
+ .ser(se_PollForDecisionTaskCommand)
1914
+ .de(de_PollForDecisionTaskCommand)
1915
+ .build() {
1916
+ }
2310
1917
 
1918
+ class RecordActivityTaskHeartbeatCommand extends smithyClient.Command
1919
+ .classBuilder()
1920
+ .ep(commonParams)
1921
+ .m(function (Command, cs, config, o) {
1922
+ return [
1923
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1924
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1925
+ ];
1926
+ })
1927
+ .s("SimpleWorkflowService", "RecordActivityTaskHeartbeat", {})
1928
+ .n("SWFClient", "RecordActivityTaskHeartbeatCommand")
1929
+ .f(void 0, void 0)
1930
+ .ser(se_RecordActivityTaskHeartbeatCommand)
1931
+ .de(de_RecordActivityTaskHeartbeatCommand)
1932
+ .build() {
1933
+ }
2311
1934
 
2312
- var UndeprecateDomainCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2313
- return [
2314
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2315
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2316
- ];
2317
- }).s("SimpleWorkflowService", "UndeprecateDomain", {}).n("SWFClient", "UndeprecateDomainCommand").f(void 0, void 0).ser(se_UndeprecateDomainCommand).de(de_UndeprecateDomainCommand).build() {
2318
- static {
2319
- __name(this, "UndeprecateDomainCommand");
2320
- }
2321
- };
1935
+ class RegisterActivityTypeCommand extends smithyClient.Command
1936
+ .classBuilder()
1937
+ .ep(commonParams)
1938
+ .m(function (Command, cs, config, o) {
1939
+ return [
1940
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1941
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1942
+ ];
1943
+ })
1944
+ .s("SimpleWorkflowService", "RegisterActivityType", {})
1945
+ .n("SWFClient", "RegisterActivityTypeCommand")
1946
+ .f(void 0, void 0)
1947
+ .ser(se_RegisterActivityTypeCommand)
1948
+ .de(de_RegisterActivityTypeCommand)
1949
+ .build() {
1950
+ }
2322
1951
 
2323
- // src/commands/UndeprecateWorkflowTypeCommand.ts
1952
+ class RegisterDomainCommand extends smithyClient.Command
1953
+ .classBuilder()
1954
+ .ep(commonParams)
1955
+ .m(function (Command, cs, config, o) {
1956
+ return [
1957
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1958
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1959
+ ];
1960
+ })
1961
+ .s("SimpleWorkflowService", "RegisterDomain", {})
1962
+ .n("SWFClient", "RegisterDomainCommand")
1963
+ .f(void 0, void 0)
1964
+ .ser(se_RegisterDomainCommand)
1965
+ .de(de_RegisterDomainCommand)
1966
+ .build() {
1967
+ }
2324
1968
 
1969
+ class RegisterWorkflowTypeCommand extends smithyClient.Command
1970
+ .classBuilder()
1971
+ .ep(commonParams)
1972
+ .m(function (Command, cs, config, o) {
1973
+ return [
1974
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1975
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1976
+ ];
1977
+ })
1978
+ .s("SimpleWorkflowService", "RegisterWorkflowType", {})
1979
+ .n("SWFClient", "RegisterWorkflowTypeCommand")
1980
+ .f(void 0, void 0)
1981
+ .ser(se_RegisterWorkflowTypeCommand)
1982
+ .de(de_RegisterWorkflowTypeCommand)
1983
+ .build() {
1984
+ }
2325
1985
 
1986
+ class RequestCancelWorkflowExecutionCommand extends smithyClient.Command
1987
+ .classBuilder()
1988
+ .ep(commonParams)
1989
+ .m(function (Command, cs, config, o) {
1990
+ return [
1991
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1992
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1993
+ ];
1994
+ })
1995
+ .s("SimpleWorkflowService", "RequestCancelWorkflowExecution", {})
1996
+ .n("SWFClient", "RequestCancelWorkflowExecutionCommand")
1997
+ .f(void 0, void 0)
1998
+ .ser(se_RequestCancelWorkflowExecutionCommand)
1999
+ .de(de_RequestCancelWorkflowExecutionCommand)
2000
+ .build() {
2001
+ }
2326
2002
 
2327
- var UndeprecateWorkflowTypeCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2328
- return [
2329
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2330
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2331
- ];
2332
- }).s("SimpleWorkflowService", "UndeprecateWorkflowType", {}).n("SWFClient", "UndeprecateWorkflowTypeCommand").f(void 0, void 0).ser(se_UndeprecateWorkflowTypeCommand).de(de_UndeprecateWorkflowTypeCommand).build() {
2333
- static {
2334
- __name(this, "UndeprecateWorkflowTypeCommand");
2335
- }
2336
- };
2003
+ class RespondActivityTaskCanceledCommand extends smithyClient.Command
2004
+ .classBuilder()
2005
+ .ep(commonParams)
2006
+ .m(function (Command, cs, config, o) {
2007
+ return [
2008
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2009
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2010
+ ];
2011
+ })
2012
+ .s("SimpleWorkflowService", "RespondActivityTaskCanceled", {})
2013
+ .n("SWFClient", "RespondActivityTaskCanceledCommand")
2014
+ .f(void 0, void 0)
2015
+ .ser(se_RespondActivityTaskCanceledCommand)
2016
+ .de(de_RespondActivityTaskCanceledCommand)
2017
+ .build() {
2018
+ }
2337
2019
 
2338
- // src/commands/UntagResourceCommand.ts
2020
+ class RespondActivityTaskCompletedCommand extends smithyClient.Command
2021
+ .classBuilder()
2022
+ .ep(commonParams)
2023
+ .m(function (Command, cs, config, o) {
2024
+ return [
2025
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2026
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2027
+ ];
2028
+ })
2029
+ .s("SimpleWorkflowService", "RespondActivityTaskCompleted", {})
2030
+ .n("SWFClient", "RespondActivityTaskCompletedCommand")
2031
+ .f(void 0, void 0)
2032
+ .ser(se_RespondActivityTaskCompletedCommand)
2033
+ .de(de_RespondActivityTaskCompletedCommand)
2034
+ .build() {
2035
+ }
2339
2036
 
2037
+ class RespondActivityTaskFailedCommand extends smithyClient.Command
2038
+ .classBuilder()
2039
+ .ep(commonParams)
2040
+ .m(function (Command, cs, config, o) {
2041
+ return [
2042
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2043
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2044
+ ];
2045
+ })
2046
+ .s("SimpleWorkflowService", "RespondActivityTaskFailed", {})
2047
+ .n("SWFClient", "RespondActivityTaskFailedCommand")
2048
+ .f(void 0, void 0)
2049
+ .ser(se_RespondActivityTaskFailedCommand)
2050
+ .de(de_RespondActivityTaskFailedCommand)
2051
+ .build() {
2052
+ }
2340
2053
 
2054
+ class RespondDecisionTaskCompletedCommand extends smithyClient.Command
2055
+ .classBuilder()
2056
+ .ep(commonParams)
2057
+ .m(function (Command, cs, config, o) {
2058
+ return [
2059
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2060
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2061
+ ];
2062
+ })
2063
+ .s("SimpleWorkflowService", "RespondDecisionTaskCompleted", {})
2064
+ .n("SWFClient", "RespondDecisionTaskCompletedCommand")
2065
+ .f(void 0, void 0)
2066
+ .ser(se_RespondDecisionTaskCompletedCommand)
2067
+ .de(de_RespondDecisionTaskCompletedCommand)
2068
+ .build() {
2069
+ }
2341
2070
 
2342
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2343
- return [
2344
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2345
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2346
- ];
2347
- }).s("SimpleWorkflowService", "UntagResource", {}).n("SWFClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2348
- static {
2349
- __name(this, "UntagResourceCommand");
2350
- }
2351
- };
2071
+ class SignalWorkflowExecutionCommand extends smithyClient.Command
2072
+ .classBuilder()
2073
+ .ep(commonParams)
2074
+ .m(function (Command, cs, config, o) {
2075
+ return [
2076
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2077
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2078
+ ];
2079
+ })
2080
+ .s("SimpleWorkflowService", "SignalWorkflowExecution", {})
2081
+ .n("SWFClient", "SignalWorkflowExecutionCommand")
2082
+ .f(void 0, void 0)
2083
+ .ser(se_SignalWorkflowExecutionCommand)
2084
+ .de(de_SignalWorkflowExecutionCommand)
2085
+ .build() {
2086
+ }
2352
2087
 
2353
- // src/SWF.ts
2354
- var commands = {
2355
- CountClosedWorkflowExecutionsCommand,
2356
- CountOpenWorkflowExecutionsCommand,
2357
- CountPendingActivityTasksCommand,
2358
- CountPendingDecisionTasksCommand,
2359
- DeleteActivityTypeCommand,
2360
- DeleteWorkflowTypeCommand,
2361
- DeprecateActivityTypeCommand,
2362
- DeprecateDomainCommand,
2363
- DeprecateWorkflowTypeCommand,
2364
- DescribeActivityTypeCommand,
2365
- DescribeDomainCommand,
2366
- DescribeWorkflowExecutionCommand,
2367
- DescribeWorkflowTypeCommand,
2368
- GetWorkflowExecutionHistoryCommand,
2369
- ListActivityTypesCommand,
2370
- ListClosedWorkflowExecutionsCommand,
2371
- ListDomainsCommand,
2372
- ListOpenWorkflowExecutionsCommand,
2373
- ListTagsForResourceCommand,
2374
- ListWorkflowTypesCommand,
2375
- PollForActivityTaskCommand,
2376
- PollForDecisionTaskCommand,
2377
- RecordActivityTaskHeartbeatCommand,
2378
- RegisterActivityTypeCommand,
2379
- RegisterDomainCommand,
2380
- RegisterWorkflowTypeCommand,
2381
- RequestCancelWorkflowExecutionCommand,
2382
- RespondActivityTaskCanceledCommand,
2383
- RespondActivityTaskCompletedCommand,
2384
- RespondActivityTaskFailedCommand,
2385
- RespondDecisionTaskCompletedCommand,
2386
- SignalWorkflowExecutionCommand,
2387
- StartWorkflowExecutionCommand,
2388
- TagResourceCommand,
2389
- TerminateWorkflowExecutionCommand,
2390
- UndeprecateActivityTypeCommand,
2391
- UndeprecateDomainCommand,
2392
- UndeprecateWorkflowTypeCommand,
2393
- UntagResourceCommand
2394
- };
2395
- var SWF = class extends SWFClient {
2396
- static {
2397
- __name(this, "SWF");
2398
- }
2399
- };
2400
- (0, import_smithy_client.createAggregatedClient)(commands, SWF);
2088
+ class StartWorkflowExecutionCommand extends smithyClient.Command
2089
+ .classBuilder()
2090
+ .ep(commonParams)
2091
+ .m(function (Command, cs, config, o) {
2092
+ return [
2093
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2094
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2095
+ ];
2096
+ })
2097
+ .s("SimpleWorkflowService", "StartWorkflowExecution", {})
2098
+ .n("SWFClient", "StartWorkflowExecutionCommand")
2099
+ .f(void 0, void 0)
2100
+ .ser(se_StartWorkflowExecutionCommand)
2101
+ .de(de_StartWorkflowExecutionCommand)
2102
+ .build() {
2103
+ }
2401
2104
 
2402
- // src/pagination/GetWorkflowExecutionHistoryPaginator.ts
2105
+ class TagResourceCommand extends smithyClient.Command
2106
+ .classBuilder()
2107
+ .ep(commonParams)
2108
+ .m(function (Command, cs, config, o) {
2109
+ return [
2110
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2111
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2112
+ ];
2113
+ })
2114
+ .s("SimpleWorkflowService", "TagResource", {})
2115
+ .n("SWFClient", "TagResourceCommand")
2116
+ .f(void 0, void 0)
2117
+ .ser(se_TagResourceCommand)
2118
+ .de(de_TagResourceCommand)
2119
+ .build() {
2120
+ }
2403
2121
 
2404
- var paginateGetWorkflowExecutionHistory = (0, import_core.createPaginator)(SWFClient, GetWorkflowExecutionHistoryCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2122
+ class TerminateWorkflowExecutionCommand extends smithyClient.Command
2123
+ .classBuilder()
2124
+ .ep(commonParams)
2125
+ .m(function (Command, cs, config, o) {
2126
+ return [
2127
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2128
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2129
+ ];
2130
+ })
2131
+ .s("SimpleWorkflowService", "TerminateWorkflowExecution", {})
2132
+ .n("SWFClient", "TerminateWorkflowExecutionCommand")
2133
+ .f(void 0, void 0)
2134
+ .ser(se_TerminateWorkflowExecutionCommand)
2135
+ .de(de_TerminateWorkflowExecutionCommand)
2136
+ .build() {
2137
+ }
2405
2138
 
2406
- // src/pagination/ListActivityTypesPaginator.ts
2139
+ class UndeprecateActivityTypeCommand extends smithyClient.Command
2140
+ .classBuilder()
2141
+ .ep(commonParams)
2142
+ .m(function (Command, cs, config, o) {
2143
+ return [
2144
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2145
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2146
+ ];
2147
+ })
2148
+ .s("SimpleWorkflowService", "UndeprecateActivityType", {})
2149
+ .n("SWFClient", "UndeprecateActivityTypeCommand")
2150
+ .f(void 0, void 0)
2151
+ .ser(se_UndeprecateActivityTypeCommand)
2152
+ .de(de_UndeprecateActivityTypeCommand)
2153
+ .build() {
2154
+ }
2407
2155
 
2408
- var paginateListActivityTypes = (0, import_core.createPaginator)(SWFClient, ListActivityTypesCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2156
+ class UndeprecateDomainCommand extends smithyClient.Command
2157
+ .classBuilder()
2158
+ .ep(commonParams)
2159
+ .m(function (Command, cs, config, o) {
2160
+ return [
2161
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2162
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2163
+ ];
2164
+ })
2165
+ .s("SimpleWorkflowService", "UndeprecateDomain", {})
2166
+ .n("SWFClient", "UndeprecateDomainCommand")
2167
+ .f(void 0, void 0)
2168
+ .ser(se_UndeprecateDomainCommand)
2169
+ .de(de_UndeprecateDomainCommand)
2170
+ .build() {
2171
+ }
2409
2172
 
2410
- // src/pagination/ListClosedWorkflowExecutionsPaginator.ts
2173
+ class UndeprecateWorkflowTypeCommand extends smithyClient.Command
2174
+ .classBuilder()
2175
+ .ep(commonParams)
2176
+ .m(function (Command, cs, config, o) {
2177
+ return [
2178
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2179
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2180
+ ];
2181
+ })
2182
+ .s("SimpleWorkflowService", "UndeprecateWorkflowType", {})
2183
+ .n("SWFClient", "UndeprecateWorkflowTypeCommand")
2184
+ .f(void 0, void 0)
2185
+ .ser(se_UndeprecateWorkflowTypeCommand)
2186
+ .de(de_UndeprecateWorkflowTypeCommand)
2187
+ .build() {
2188
+ }
2411
2189
 
2412
- var paginateListClosedWorkflowExecutions = (0, import_core.createPaginator)(SWFClient, ListClosedWorkflowExecutionsCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2190
+ class UntagResourceCommand extends smithyClient.Command
2191
+ .classBuilder()
2192
+ .ep(commonParams)
2193
+ .m(function (Command, cs, config, o) {
2194
+ return [
2195
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2196
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2197
+ ];
2198
+ })
2199
+ .s("SimpleWorkflowService", "UntagResource", {})
2200
+ .n("SWFClient", "UntagResourceCommand")
2201
+ .f(void 0, void 0)
2202
+ .ser(se_UntagResourceCommand)
2203
+ .de(de_UntagResourceCommand)
2204
+ .build() {
2205
+ }
2413
2206
 
2414
- // src/pagination/ListDomainsPaginator.ts
2207
+ const commands = {
2208
+ CountClosedWorkflowExecutionsCommand,
2209
+ CountOpenWorkflowExecutionsCommand,
2210
+ CountPendingActivityTasksCommand,
2211
+ CountPendingDecisionTasksCommand,
2212
+ DeleteActivityTypeCommand,
2213
+ DeleteWorkflowTypeCommand,
2214
+ DeprecateActivityTypeCommand,
2215
+ DeprecateDomainCommand,
2216
+ DeprecateWorkflowTypeCommand,
2217
+ DescribeActivityTypeCommand,
2218
+ DescribeDomainCommand,
2219
+ DescribeWorkflowExecutionCommand,
2220
+ DescribeWorkflowTypeCommand,
2221
+ GetWorkflowExecutionHistoryCommand,
2222
+ ListActivityTypesCommand,
2223
+ ListClosedWorkflowExecutionsCommand,
2224
+ ListDomainsCommand,
2225
+ ListOpenWorkflowExecutionsCommand,
2226
+ ListTagsForResourceCommand,
2227
+ ListWorkflowTypesCommand,
2228
+ PollForActivityTaskCommand,
2229
+ PollForDecisionTaskCommand,
2230
+ RecordActivityTaskHeartbeatCommand,
2231
+ RegisterActivityTypeCommand,
2232
+ RegisterDomainCommand,
2233
+ RegisterWorkflowTypeCommand,
2234
+ RequestCancelWorkflowExecutionCommand,
2235
+ RespondActivityTaskCanceledCommand,
2236
+ RespondActivityTaskCompletedCommand,
2237
+ RespondActivityTaskFailedCommand,
2238
+ RespondDecisionTaskCompletedCommand,
2239
+ SignalWorkflowExecutionCommand,
2240
+ StartWorkflowExecutionCommand,
2241
+ TagResourceCommand,
2242
+ TerminateWorkflowExecutionCommand,
2243
+ UndeprecateActivityTypeCommand,
2244
+ UndeprecateDomainCommand,
2245
+ UndeprecateWorkflowTypeCommand,
2246
+ UntagResourceCommand,
2247
+ };
2248
+ class SWF extends SWFClient {
2249
+ }
2250
+ smithyClient.createAggregatedClient(commands, SWF);
2415
2251
 
2416
- var paginateListDomains = (0, import_core.createPaginator)(SWFClient, ListDomainsCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2252
+ const paginateGetWorkflowExecutionHistory = core.createPaginator(SWFClient, GetWorkflowExecutionHistoryCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2417
2253
 
2418
- // src/pagination/ListOpenWorkflowExecutionsPaginator.ts
2254
+ const paginateListActivityTypes = core.createPaginator(SWFClient, ListActivityTypesCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2419
2255
 
2420
- var paginateListOpenWorkflowExecutions = (0, import_core.createPaginator)(SWFClient, ListOpenWorkflowExecutionsCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2256
+ const paginateListClosedWorkflowExecutions = core.createPaginator(SWFClient, ListClosedWorkflowExecutionsCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2421
2257
 
2422
- // src/pagination/ListWorkflowTypesPaginator.ts
2258
+ const paginateListDomains = core.createPaginator(SWFClient, ListDomainsCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2423
2259
 
2424
- var paginateListWorkflowTypes = (0, import_core.createPaginator)(SWFClient, ListWorkflowTypesCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2260
+ const paginateListOpenWorkflowExecutions = core.createPaginator(SWFClient, ListOpenWorkflowExecutionsCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2425
2261
 
2426
- // src/pagination/PollForDecisionTaskPaginator.ts
2262
+ const paginateListWorkflowTypes = core.createPaginator(SWFClient, ListWorkflowTypesCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2427
2263
 
2428
- var paginatePollForDecisionTask = (0, import_core.createPaginator)(SWFClient, PollForDecisionTaskCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2429
- // Annotate the CommonJS export names for ESM import in node:
2264
+ const paginatePollForDecisionTask = core.createPaginator(SWFClient, PollForDecisionTaskCommand, "nextPageToken", "nextPageToken", "maximumPageSize");
2430
2265
 
2431
- 0 && (module.exports = {
2432
- SWFServiceException,
2433
- __Client,
2434
- SWFClient,
2435
- SWF,
2436
- $Command,
2437
- CountClosedWorkflowExecutionsCommand,
2438
- CountOpenWorkflowExecutionsCommand,
2439
- CountPendingActivityTasksCommand,
2440
- CountPendingDecisionTasksCommand,
2441
- DeleteActivityTypeCommand,
2442
- DeleteWorkflowTypeCommand,
2443
- DeprecateActivityTypeCommand,
2444
- DeprecateDomainCommand,
2445
- DeprecateWorkflowTypeCommand,
2446
- DescribeActivityTypeCommand,
2447
- DescribeDomainCommand,
2448
- DescribeWorkflowExecutionCommand,
2449
- DescribeWorkflowTypeCommand,
2450
- GetWorkflowExecutionHistoryCommand,
2451
- ListActivityTypesCommand,
2452
- ListClosedWorkflowExecutionsCommand,
2453
- ListDomainsCommand,
2454
- ListOpenWorkflowExecutionsCommand,
2455
- ListTagsForResourceCommand,
2456
- ListWorkflowTypesCommand,
2457
- PollForActivityTaskCommand,
2458
- PollForDecisionTaskCommand,
2459
- RecordActivityTaskHeartbeatCommand,
2460
- RegisterActivityTypeCommand,
2461
- RegisterDomainCommand,
2462
- RegisterWorkflowTypeCommand,
2463
- RequestCancelWorkflowExecutionCommand,
2464
- RespondActivityTaskCanceledCommand,
2465
- RespondActivityTaskCompletedCommand,
2466
- RespondActivityTaskFailedCommand,
2467
- RespondDecisionTaskCompletedCommand,
2468
- SignalWorkflowExecutionCommand,
2469
- StartWorkflowExecutionCommand,
2470
- TagResourceCommand,
2471
- TerminateWorkflowExecutionCommand,
2472
- UndeprecateActivityTypeCommand,
2473
- UndeprecateDomainCommand,
2474
- UndeprecateWorkflowTypeCommand,
2475
- UntagResourceCommand,
2476
- paginateGetWorkflowExecutionHistory,
2477
- paginateListActivityTypes,
2478
- paginateListClosedWorkflowExecutions,
2479
- paginateListDomains,
2480
- paginateListOpenWorkflowExecutions,
2481
- paginateListWorkflowTypes,
2482
- paginatePollForDecisionTask,
2483
- ActivityTaskTimeoutType,
2484
- RegistrationStatus,
2485
- CancelTimerFailedCause,
2486
- CancelWorkflowExecutionFailedCause,
2487
- ChildPolicy,
2488
- WorkflowExecutionTimeoutType,
2489
- CloseStatus,
2490
- CompleteWorkflowExecutionFailedCause,
2491
- ContinueAsNewWorkflowExecutionFailedCause,
2492
- OperationNotPermittedFault,
2493
- UnknownResourceFault,
2494
- DecisionType,
2495
- DecisionTaskTimeoutType,
2496
- EventType,
2497
- FailWorkflowExecutionFailedCause,
2498
- LambdaFunctionTimeoutType,
2499
- RecordMarkerFailedCause,
2500
- RequestCancelActivityTaskFailedCause,
2501
- RequestCancelExternalWorkflowExecutionFailedCause,
2502
- ScheduleActivityTaskFailedCause,
2503
- ScheduleLambdaFunctionFailedCause,
2504
- SignalExternalWorkflowExecutionFailedCause,
2505
- StartChildWorkflowExecutionFailedCause,
2506
- StartLambdaFunctionFailedCause,
2507
- StartTimerFailedCause,
2508
- WorkflowExecutionCancelRequestedCause,
2509
- WorkflowExecutionTerminatedCause,
2510
- DefaultUndefinedFault,
2511
- TypeNotDeprecatedFault,
2512
- TypeDeprecatedFault,
2513
- DomainDeprecatedFault,
2514
- ExecutionStatus,
2515
- DomainAlreadyExistsFault,
2516
- LimitExceededFault,
2517
- TypeAlreadyExistsFault,
2518
- TooManyTagsFault,
2519
- WorkflowExecutionAlreadyStartedFault
2266
+ Object.defineProperty(exports, "$Command", {
2267
+ enumerable: true,
2268
+ get: function () { return smithyClient.Command; }
2520
2269
  });
2521
-
2270
+ Object.defineProperty(exports, "__Client", {
2271
+ enumerable: true,
2272
+ get: function () { return smithyClient.Client; }
2273
+ });
2274
+ exports.ActivityTaskTimeoutType = ActivityTaskTimeoutType;
2275
+ exports.CancelTimerFailedCause = CancelTimerFailedCause;
2276
+ exports.CancelWorkflowExecutionFailedCause = CancelWorkflowExecutionFailedCause;
2277
+ exports.ChildPolicy = ChildPolicy;
2278
+ exports.CloseStatus = CloseStatus;
2279
+ exports.CompleteWorkflowExecutionFailedCause = CompleteWorkflowExecutionFailedCause;
2280
+ exports.ContinueAsNewWorkflowExecutionFailedCause = ContinueAsNewWorkflowExecutionFailedCause;
2281
+ exports.CountClosedWorkflowExecutionsCommand = CountClosedWorkflowExecutionsCommand;
2282
+ exports.CountOpenWorkflowExecutionsCommand = CountOpenWorkflowExecutionsCommand;
2283
+ exports.CountPendingActivityTasksCommand = CountPendingActivityTasksCommand;
2284
+ exports.CountPendingDecisionTasksCommand = CountPendingDecisionTasksCommand;
2285
+ exports.DecisionTaskTimeoutType = DecisionTaskTimeoutType;
2286
+ exports.DecisionType = DecisionType;
2287
+ exports.DefaultUndefinedFault = DefaultUndefinedFault;
2288
+ exports.DeleteActivityTypeCommand = DeleteActivityTypeCommand;
2289
+ exports.DeleteWorkflowTypeCommand = DeleteWorkflowTypeCommand;
2290
+ exports.DeprecateActivityTypeCommand = DeprecateActivityTypeCommand;
2291
+ exports.DeprecateDomainCommand = DeprecateDomainCommand;
2292
+ exports.DeprecateWorkflowTypeCommand = DeprecateWorkflowTypeCommand;
2293
+ exports.DescribeActivityTypeCommand = DescribeActivityTypeCommand;
2294
+ exports.DescribeDomainCommand = DescribeDomainCommand;
2295
+ exports.DescribeWorkflowExecutionCommand = DescribeWorkflowExecutionCommand;
2296
+ exports.DescribeWorkflowTypeCommand = DescribeWorkflowTypeCommand;
2297
+ exports.DomainAlreadyExistsFault = DomainAlreadyExistsFault;
2298
+ exports.DomainDeprecatedFault = DomainDeprecatedFault;
2299
+ exports.EventType = EventType;
2300
+ exports.ExecutionStatus = ExecutionStatus;
2301
+ exports.FailWorkflowExecutionFailedCause = FailWorkflowExecutionFailedCause;
2302
+ exports.GetWorkflowExecutionHistoryCommand = GetWorkflowExecutionHistoryCommand;
2303
+ exports.LambdaFunctionTimeoutType = LambdaFunctionTimeoutType;
2304
+ exports.LimitExceededFault = LimitExceededFault;
2305
+ exports.ListActivityTypesCommand = ListActivityTypesCommand;
2306
+ exports.ListClosedWorkflowExecutionsCommand = ListClosedWorkflowExecutionsCommand;
2307
+ exports.ListDomainsCommand = ListDomainsCommand;
2308
+ exports.ListOpenWorkflowExecutionsCommand = ListOpenWorkflowExecutionsCommand;
2309
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2310
+ exports.ListWorkflowTypesCommand = ListWorkflowTypesCommand;
2311
+ exports.OperationNotPermittedFault = OperationNotPermittedFault;
2312
+ exports.PollForActivityTaskCommand = PollForActivityTaskCommand;
2313
+ exports.PollForDecisionTaskCommand = PollForDecisionTaskCommand;
2314
+ exports.RecordActivityTaskHeartbeatCommand = RecordActivityTaskHeartbeatCommand;
2315
+ exports.RecordMarkerFailedCause = RecordMarkerFailedCause;
2316
+ exports.RegisterActivityTypeCommand = RegisterActivityTypeCommand;
2317
+ exports.RegisterDomainCommand = RegisterDomainCommand;
2318
+ exports.RegisterWorkflowTypeCommand = RegisterWorkflowTypeCommand;
2319
+ exports.RegistrationStatus = RegistrationStatus;
2320
+ exports.RequestCancelActivityTaskFailedCause = RequestCancelActivityTaskFailedCause;
2321
+ exports.RequestCancelExternalWorkflowExecutionFailedCause = RequestCancelExternalWorkflowExecutionFailedCause;
2322
+ exports.RequestCancelWorkflowExecutionCommand = RequestCancelWorkflowExecutionCommand;
2323
+ exports.RespondActivityTaskCanceledCommand = RespondActivityTaskCanceledCommand;
2324
+ exports.RespondActivityTaskCompletedCommand = RespondActivityTaskCompletedCommand;
2325
+ exports.RespondActivityTaskFailedCommand = RespondActivityTaskFailedCommand;
2326
+ exports.RespondDecisionTaskCompletedCommand = RespondDecisionTaskCompletedCommand;
2327
+ exports.SWF = SWF;
2328
+ exports.SWFClient = SWFClient;
2329
+ exports.SWFServiceException = SWFServiceException;
2330
+ exports.ScheduleActivityTaskFailedCause = ScheduleActivityTaskFailedCause;
2331
+ exports.ScheduleLambdaFunctionFailedCause = ScheduleLambdaFunctionFailedCause;
2332
+ exports.SignalExternalWorkflowExecutionFailedCause = SignalExternalWorkflowExecutionFailedCause;
2333
+ exports.SignalWorkflowExecutionCommand = SignalWorkflowExecutionCommand;
2334
+ exports.StartChildWorkflowExecutionFailedCause = StartChildWorkflowExecutionFailedCause;
2335
+ exports.StartLambdaFunctionFailedCause = StartLambdaFunctionFailedCause;
2336
+ exports.StartTimerFailedCause = StartTimerFailedCause;
2337
+ exports.StartWorkflowExecutionCommand = StartWorkflowExecutionCommand;
2338
+ exports.TagResourceCommand = TagResourceCommand;
2339
+ exports.TerminateWorkflowExecutionCommand = TerminateWorkflowExecutionCommand;
2340
+ exports.TooManyTagsFault = TooManyTagsFault;
2341
+ exports.TypeAlreadyExistsFault = TypeAlreadyExistsFault;
2342
+ exports.TypeDeprecatedFault = TypeDeprecatedFault;
2343
+ exports.TypeNotDeprecatedFault = TypeNotDeprecatedFault;
2344
+ exports.UndeprecateActivityTypeCommand = UndeprecateActivityTypeCommand;
2345
+ exports.UndeprecateDomainCommand = UndeprecateDomainCommand;
2346
+ exports.UndeprecateWorkflowTypeCommand = UndeprecateWorkflowTypeCommand;
2347
+ exports.UnknownResourceFault = UnknownResourceFault;
2348
+ exports.UntagResourceCommand = UntagResourceCommand;
2349
+ exports.WorkflowExecutionAlreadyStartedFault = WorkflowExecutionAlreadyStartedFault;
2350
+ exports.WorkflowExecutionCancelRequestedCause = WorkflowExecutionCancelRequestedCause;
2351
+ exports.WorkflowExecutionTerminatedCause = WorkflowExecutionTerminatedCause;
2352
+ exports.WorkflowExecutionTimeoutType = WorkflowExecutionTimeoutType;
2353
+ exports.paginateGetWorkflowExecutionHistory = paginateGetWorkflowExecutionHistory;
2354
+ exports.paginateListActivityTypes = paginateListActivityTypes;
2355
+ exports.paginateListClosedWorkflowExecutions = paginateListClosedWorkflowExecutions;
2356
+ exports.paginateListDomains = paginateListDomains;
2357
+ exports.paginateListOpenWorkflowExecutions = paginateListOpenWorkflowExecutions;
2358
+ exports.paginateListWorkflowTypes = paginateListWorkflowTypes;
2359
+ exports.paginatePollForDecisionTask = paginatePollForDecisionTask;