@aws-sdk/client-nova-act 3.943.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 (137) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +333 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +1297 -0
  7. package/dist-cjs/runtimeConfig.browser.js +39 -0
  8. package/dist-cjs/runtimeConfig.js +56 -0
  9. package/dist-cjs/runtimeConfig.native.js +15 -0
  10. package/dist-cjs/runtimeConfig.shared.js +36 -0
  11. package/dist-es/NovaAct.js +39 -0
  12. package/dist-es/NovaActClient.js +50 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  15. package/dist-es/commands/CreateActCommand.js +16 -0
  16. package/dist-es/commands/CreateSessionCommand.js +16 -0
  17. package/dist-es/commands/CreateWorkflowDefinitionCommand.js +16 -0
  18. package/dist-es/commands/CreateWorkflowRunCommand.js +16 -0
  19. package/dist-es/commands/DeleteWorkflowDefinitionCommand.js +16 -0
  20. package/dist-es/commands/DeleteWorkflowRunCommand.js +16 -0
  21. package/dist-es/commands/GetWorkflowDefinitionCommand.js +16 -0
  22. package/dist-es/commands/GetWorkflowRunCommand.js +16 -0
  23. package/dist-es/commands/InvokeActStepCommand.js +16 -0
  24. package/dist-es/commands/ListActsCommand.js +16 -0
  25. package/dist-es/commands/ListModelsCommand.js +16 -0
  26. package/dist-es/commands/ListSessionsCommand.js +16 -0
  27. package/dist-es/commands/ListWorkflowDefinitionsCommand.js +16 -0
  28. package/dist-es/commands/ListWorkflowRunsCommand.js +16 -0
  29. package/dist-es/commands/UpdateActCommand.js +16 -0
  30. package/dist-es/commands/UpdateWorkflowRunCommand.js +16 -0
  31. package/dist-es/commands/index.js +16 -0
  32. package/dist-es/endpoint/EndpointParameters.js +13 -0
  33. package/dist-es/endpoint/endpointResolver.js +14 -0
  34. package/dist-es/endpoint/ruleset.js +4 -0
  35. package/dist-es/extensionConfiguration.js +1 -0
  36. package/dist-es/index.js +7 -0
  37. package/dist-es/models/NovaActServiceException.js +8 -0
  38. package/dist-es/models/enums.js +41 -0
  39. package/dist-es/models/errors.js +119 -0
  40. package/dist-es/models/models_0.js +1 -0
  41. package/dist-es/pagination/Interfaces.js +1 -0
  42. package/dist-es/pagination/ListActsPaginator.js +4 -0
  43. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  44. package/dist-es/pagination/ListWorkflowDefinitionsPaginator.js +4 -0
  45. package/dist-es/pagination/ListWorkflowRunsPaginator.js +4 -0
  46. package/dist-es/pagination/index.js +5 -0
  47. package/dist-es/runtimeConfig.browser.js +34 -0
  48. package/dist-es/runtimeConfig.js +51 -0
  49. package/dist-es/runtimeConfig.native.js +11 -0
  50. package/dist-es/runtimeConfig.shared.js +32 -0
  51. package/dist-es/runtimeExtensions.js +9 -0
  52. package/dist-es/schemas/schemas_0.js +753 -0
  53. package/dist-types/NovaAct.d.ts +123 -0
  54. package/dist-types/NovaActClient.d.ts +212 -0
  55. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  56. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  57. package/dist-types/commands/CreateActCommand.d.ts +109 -0
  58. package/dist-types/commands/CreateSessionCommand.d.ts +97 -0
  59. package/dist-types/commands/CreateWorkflowDefinitionCommand.d.ts +98 -0
  60. package/dist-types/commands/CreateWorkflowRunCommand.d.ts +100 -0
  61. package/dist-types/commands/DeleteWorkflowDefinitionCommand.d.ts +92 -0
  62. package/dist-types/commands/DeleteWorkflowRunCommand.d.ts +93 -0
  63. package/dist-types/commands/GetWorkflowDefinitionCommand.d.ts +97 -0
  64. package/dist-types/commands/GetWorkflowRunCommand.d.ts +99 -0
  65. package/dist-types/commands/InvokeActStepCommand.d.ts +116 -0
  66. package/dist-types/commands/ListActsCommand.d.ts +111 -0
  67. package/dist-types/commands/ListModelsCommand.d.ts +105 -0
  68. package/dist-types/commands/ListSessionsCommand.d.ts +101 -0
  69. package/dist-types/commands/ListWorkflowDefinitionsCommand.d.ts +96 -0
  70. package/dist-types/commands/ListWorkflowRunsCommand.d.ts +108 -0
  71. package/dist-types/commands/UpdateActCommand.d.ts +98 -0
  72. package/dist-types/commands/UpdateWorkflowRunCommand.d.ts +92 -0
  73. package/dist-types/commands/index.d.ts +16 -0
  74. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  75. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  76. package/dist-types/endpoint/ruleset.d.ts +2 -0
  77. package/dist-types/extensionConfiguration.d.ts +9 -0
  78. package/dist-types/index.d.ts +16 -0
  79. package/dist-types/models/NovaActServiceException.d.ts +14 -0
  80. package/dist-types/models/enums.d.ts +105 -0
  81. package/dist-types/models/errors.d.ts +167 -0
  82. package/dist-types/models/models_0.d.ts +1014 -0
  83. package/dist-types/pagination/Interfaces.d.ts +8 -0
  84. package/dist-types/pagination/ListActsPaginator.d.ts +7 -0
  85. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  86. package/dist-types/pagination/ListWorkflowDefinitionsPaginator.d.ts +7 -0
  87. package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +7 -0
  88. package/dist-types/pagination/index.d.ts +5 -0
  89. package/dist-types/runtimeConfig.browser.d.ts +51 -0
  90. package/dist-types/runtimeConfig.d.ts +51 -0
  91. package/dist-types/runtimeConfig.native.d.ts +50 -0
  92. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  93. package/dist-types/runtimeExtensions.d.ts +17 -0
  94. package/dist-types/schemas/schemas_0.d.ts +93 -0
  95. package/dist-types/ts3.4/NovaAct.d.ts +278 -0
  96. package/dist-types/ts3.4/NovaActClient.d.ts +219 -0
  97. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  98. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  99. package/dist-types/ts3.4/commands/CreateActCommand.d.ts +47 -0
  100. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
  101. package/dist-types/ts3.4/commands/CreateWorkflowDefinitionCommand.d.ts +51 -0
  102. package/dist-types/ts3.4/commands/CreateWorkflowRunCommand.d.ts +51 -0
  103. package/dist-types/ts3.4/commands/DeleteWorkflowDefinitionCommand.d.ts +51 -0
  104. package/dist-types/ts3.4/commands/DeleteWorkflowRunCommand.d.ts +51 -0
  105. package/dist-types/ts3.4/commands/GetWorkflowDefinitionCommand.d.ts +51 -0
  106. package/dist-types/ts3.4/commands/GetWorkflowRunCommand.d.ts +50 -0
  107. package/dist-types/ts3.4/commands/InvokeActStepCommand.d.ts +50 -0
  108. package/dist-types/ts3.4/commands/ListActsCommand.d.ts +47 -0
  109. package/dist-types/ts3.4/commands/ListModelsCommand.d.ts +47 -0
  110. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  111. package/dist-types/ts3.4/commands/ListWorkflowDefinitionsCommand.d.ts +51 -0
  112. package/dist-types/ts3.4/commands/ListWorkflowRunsCommand.d.ts +50 -0
  113. package/dist-types/ts3.4/commands/UpdateActCommand.d.ts +47 -0
  114. package/dist-types/ts3.4/commands/UpdateWorkflowRunCommand.d.ts +51 -0
  115. package/dist-types/ts3.4/commands/index.d.ts +16 -0
  116. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  117. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  118. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  119. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  120. package/dist-types/ts3.4/index.d.ts +11 -0
  121. package/dist-types/ts3.4/models/NovaActServiceException.d.ts +9 -0
  122. package/dist-types/ts3.4/models/enums.d.ts +54 -0
  123. package/dist-types/ts3.4/models/errors.d.ts +73 -0
  124. package/dist-types/ts3.4/models/models_0.d.ts +275 -0
  125. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  126. package/dist-types/ts3.4/pagination/ListActsPaginator.d.ts +11 -0
  127. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  128. package/dist-types/ts3.4/pagination/ListWorkflowDefinitionsPaginator.d.ts +11 -0
  129. package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +11 -0
  130. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  131. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  132. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  133. package/dist-types/ts3.4/runtimeConfig.native.d.ts +100 -0
  134. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +25 -0
  135. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  136. package/dist-types/ts3.4/schemas/schemas_0.d.ts +99 -0
  137. package/package.json +99 -0
@@ -0,0 +1,1297 @@
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 schema = require('@smithy/core/schema');
10
+ var middlewareContentLength = require('@smithy/middleware-content-length');
11
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
12
+ var middlewareRetry = require('@smithy/middleware-retry');
13
+ var smithyClient = require('@smithy/smithy-client');
14
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
+ var runtimeConfig = require('./runtimeConfig');
16
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
+ var protocolHttp = require('@smithy/protocol-http');
18
+
19
+ const resolveClientEndpointParameters = (options) => {
20
+ return Object.assign(options, {
21
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
22
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
23
+ defaultSigningName: "nova-act",
24
+ });
25
+ };
26
+ const commonParams = {
27
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
28
+ Endpoint: { type: "builtInParams", name: "endpoint" },
29
+ Region: { type: "builtInParams", name: "region" },
30
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
31
+ };
32
+
33
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
34
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
35
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
36
+ let _credentials = runtimeConfig.credentials;
37
+ return {
38
+ setHttpAuthScheme(httpAuthScheme) {
39
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
40
+ if (index === -1) {
41
+ _httpAuthSchemes.push(httpAuthScheme);
42
+ }
43
+ else {
44
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
45
+ }
46
+ },
47
+ httpAuthSchemes() {
48
+ return _httpAuthSchemes;
49
+ },
50
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
51
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
52
+ },
53
+ httpAuthSchemeProvider() {
54
+ return _httpAuthSchemeProvider;
55
+ },
56
+ setCredentials(credentials) {
57
+ _credentials = credentials;
58
+ },
59
+ credentials() {
60
+ return _credentials;
61
+ },
62
+ };
63
+ };
64
+ const resolveHttpAuthRuntimeConfig = (config) => {
65
+ return {
66
+ httpAuthSchemes: config.httpAuthSchemes(),
67
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
68
+ credentials: config.credentials(),
69
+ };
70
+ };
71
+
72
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
73
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
74
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
75
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
76
+ };
77
+
78
+ class NovaActClient extends smithyClient.Client {
79
+ config;
80
+ constructor(...[configuration]) {
81
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
82
+ super(_config_0);
83
+ this.initConfig = _config_0;
84
+ const _config_1 = resolveClientEndpointParameters(_config_0);
85
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
86
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
87
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
88
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
89
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
90
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
91
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
92
+ this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
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.defaultNovaActHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
107
+ }
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
112
+
113
+ let NovaActServiceException$1 = class NovaActServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, NovaActServiceException.prototype);
117
+ }
118
+ };
119
+
120
+ let AccessDeniedException$1 = class AccessDeniedException extends NovaActServiceException$1 {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ constructor(opts) {
124
+ super({
125
+ name: "AccessDeniedException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
+ }
131
+ };
132
+ let ConflictException$1 = class ConflictException extends NovaActServiceException$1 {
133
+ name = "ConflictException";
134
+ $fault = "client";
135
+ resourceId;
136
+ resourceType;
137
+ constructor(opts) {
138
+ super({
139
+ name: "ConflictException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, ConflictException.prototype);
144
+ this.resourceId = opts.resourceId;
145
+ this.resourceType = opts.resourceType;
146
+ }
147
+ };
148
+ let InternalServerException$1 = class InternalServerException extends NovaActServiceException$1 {
149
+ name = "InternalServerException";
150
+ $fault = "server";
151
+ $retryable = {};
152
+ retryAfterSeconds;
153
+ reason;
154
+ constructor(opts) {
155
+ super({
156
+ name: "InternalServerException",
157
+ $fault: "server",
158
+ ...opts,
159
+ });
160
+ Object.setPrototypeOf(this, InternalServerException.prototype);
161
+ this.retryAfterSeconds = opts.retryAfterSeconds;
162
+ this.reason = opts.reason;
163
+ }
164
+ };
165
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends NovaActServiceException$1 {
166
+ name = "ResourceNotFoundException";
167
+ $fault = "client";
168
+ resourceId;
169
+ resourceType;
170
+ constructor(opts) {
171
+ super({
172
+ name: "ResourceNotFoundException",
173
+ $fault: "client",
174
+ ...opts,
175
+ });
176
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
177
+ this.resourceId = opts.resourceId;
178
+ this.resourceType = opts.resourceType;
179
+ }
180
+ };
181
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends NovaActServiceException$1 {
182
+ name = "ServiceQuotaExceededException";
183
+ $fault = "client";
184
+ resourceId;
185
+ resourceType;
186
+ serviceCode;
187
+ quotaCode;
188
+ constructor(opts) {
189
+ super({
190
+ name: "ServiceQuotaExceededException",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
195
+ this.resourceId = opts.resourceId;
196
+ this.resourceType = opts.resourceType;
197
+ this.serviceCode = opts.serviceCode;
198
+ this.quotaCode = opts.quotaCode;
199
+ }
200
+ };
201
+ let ThrottlingException$1 = class ThrottlingException extends NovaActServiceException$1 {
202
+ name = "ThrottlingException";
203
+ $fault = "client";
204
+ $retryable = {
205
+ throttling: true,
206
+ };
207
+ serviceCode;
208
+ quotaCode;
209
+ retryAfterSeconds;
210
+ constructor(opts) {
211
+ super({
212
+ name: "ThrottlingException",
213
+ $fault: "client",
214
+ ...opts,
215
+ });
216
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
217
+ this.serviceCode = opts.serviceCode;
218
+ this.quotaCode = opts.quotaCode;
219
+ this.retryAfterSeconds = opts.retryAfterSeconds;
220
+ }
221
+ };
222
+ let ValidationException$1 = class ValidationException extends NovaActServiceException$1 {
223
+ name = "ValidationException";
224
+ $fault = "client";
225
+ reason;
226
+ fieldList;
227
+ constructor(opts) {
228
+ super({
229
+ name: "ValidationException",
230
+ $fault: "client",
231
+ ...opts,
232
+ });
233
+ Object.setPrototypeOf(this, ValidationException.prototype);
234
+ this.reason = opts.reason;
235
+ this.fieldList = opts.fieldList;
236
+ }
237
+ };
238
+
239
+ const _ADE = "AccessDeniedException";
240
+ const _AE = "ActError";
241
+ const _AS = "ActSummary";
242
+ const _ASc = "ActSummaries";
243
+ const _C = "Call";
244
+ const _CA = "CreateAct";
245
+ const _CAR = "CreateActRequest";
246
+ const _CARr = "CreateActResponse";
247
+ const _CE = "ConflictException";
248
+ const _CI = "ClientInfo";
249
+ const _CIo = "CompatibilityInformation";
250
+ const _CR = "CallResult";
251
+ const _CRC = "CallResultContents";
252
+ const _CRCa = "CallResultContent";
253
+ const _CRa = "CallResults";
254
+ const _CS = "CreateSession";
255
+ const _CSR = "CreateSessionRequest";
256
+ const _CSRr = "CreateSessionResponse";
257
+ const _CWD = "CreateWorkflowDefinition";
258
+ const _CWDR = "CreateWorkflowDefinitionRequest";
259
+ const _CWDRr = "CreateWorkflowDefinitionResponse";
260
+ const _CWR = "CreateWorkflowRun";
261
+ const _CWRR = "CreateWorkflowRunRequest";
262
+ const _CWRRr = "CreateWorkflowRunResponse";
263
+ const _Ca = "Calls";
264
+ const _DWD = "DeleteWorkflowDefinition";
265
+ const _DWDR = "DeleteWorkflowDefinitionRequest";
266
+ const _DWDRe = "DeleteWorkflowDefinitionResponse";
267
+ const _DWR = "DeleteWorkflowRun";
268
+ const _DWRR = "DeleteWorkflowRunRequest";
269
+ const _DWRRe = "DeleteWorkflowRunResponse";
270
+ const _GWD = "GetWorkflowDefinition";
271
+ const _GWDR = "GetWorkflowDefinitionRequest";
272
+ const _GWDRe = "GetWorkflowDefinitionResponse";
273
+ const _GWR = "GetWorkflowRun";
274
+ const _GWRR = "GetWorkflowRunRequest";
275
+ const _GWRRe = "GetWorkflowRunResponse";
276
+ const _IAS = "InvokeActStep";
277
+ const _IASR = "InvokeActStepRequest";
278
+ const _IASRn = "InvokeActStepResponse";
279
+ const _ISE = "InternalServerException";
280
+ const _LA = "ListActs";
281
+ const _LAR = "ListActsRequest";
282
+ const _LARi = "ListActsResponse";
283
+ const _LM = "ListModels";
284
+ const _LMR = "ListModelsRequest";
285
+ const _LMRi = "ListModelsResponse";
286
+ const _LS = "ListSessions";
287
+ const _LSR = "ListSessionsRequest";
288
+ const _LSRi = "ListSessionsResponse";
289
+ const _LWD = "ListWorkflowDefinitions";
290
+ const _LWDR = "ListWorkflowDefinitionsRequest";
291
+ const _LWDRi = "ListWorkflowDefinitionsResponse";
292
+ const _LWR = "ListWorkflowRuns";
293
+ const _LWRR = "ListWorkflowRunsRequest";
294
+ const _LWRRi = "ListWorkflowRunsResponse";
295
+ const _MA = "ModelAlias";
296
+ const _MAo = "ModelAliases";
297
+ const _ML = "ModelLifecycle";
298
+ const _MS = "ModelSummary";
299
+ const _MSo = "ModelSummaries";
300
+ const _RA = "Retry-After";
301
+ const _RNFE = "ResourceNotFoundException";
302
+ const _SD = "SensitiveDocument";
303
+ const _SQEE = "ServiceQuotaExceededException";
304
+ const _SS = "SensitiveString";
305
+ const _SSe = "SessionSummary";
306
+ const _SSes = "SessionSummaries";
307
+ const _T = "Task";
308
+ const _TD = "ToolDescription";
309
+ const _TE = "ThrottlingException";
310
+ const _TIS = "ToolInputSchema";
311
+ const _TL = "TraceLocation";
312
+ const _TS = "ToolSpec";
313
+ const _TSo = "ToolSpecs";
314
+ const _UA = "UpdateAct";
315
+ const _UAR = "UpdateActRequest";
316
+ const _UARp = "UpdateActResponse";
317
+ const _UWR = "UpdateWorkflowRun";
318
+ const _UWRR = "UpdateWorkflowRunRequest";
319
+ const _UWRRp = "UpdateWorkflowRunResponse";
320
+ const _VE = "ValidationException";
321
+ const _VEF = "ValidationExceptionField";
322
+ const _VEFL = "ValidationExceptionFieldList";
323
+ const _WD = "WorkflowDescription";
324
+ const _WDS = "WorkflowDefinitionSummary";
325
+ const _WDSo = "WorkflowDefinitionSummaries";
326
+ const _WEC = "WorkflowExportConfig";
327
+ const _WRS = "WorkflowRunSummary";
328
+ const _WRSo = "WorkflowRunSummaries";
329
+ const _a = "arn";
330
+ const _aI = "actId";
331
+ const _aN = "aliasName";
332
+ const _aS = "actSummaries";
333
+ const _c = "client";
334
+ const _cA = "createdAt";
335
+ const _cCV = "clientCompatibilityVersion";
336
+ const _cI = "callId";
337
+ const _cIl = "clientInfo";
338
+ const _cIo = "compatibilityInformation";
339
+ const _cR = "callResults";
340
+ const _cT = "clientToken";
341
+ const _cV = "compatibilityVersion";
342
+ const _ca = "calls";
343
+ const _co = "content";
344
+ const _d = "description";
345
+ const _e = "error";
346
+ const _eA = "endedAt";
347
+ const _eC = "exportConfig";
348
+ const _fL = "fieldList";
349
+ const _h = "http";
350
+ const _hE = "httpError";
351
+ const _hH = "httpHeader";
352
+ const _hQ = "httpQuery";
353
+ const _i = "input";
354
+ const _iS = "inputSchema";
355
+ const _j = "json";
356
+ const _l = "location";
357
+ const _lGN = "logGroupName";
358
+ const _lMI = "latestModelId";
359
+ const _lT = "locationType";
360
+ const _m = "message";
361
+ const _mA = "modelAliases";
362
+ const _mCV = "minimumCompatibilityVersion";
363
+ const _mI = "modelId";
364
+ const _mL = "modelLifecycle";
365
+ const _mR = "maxResults";
366
+ const _mS = "modelSummaries";
367
+ const _n = "name";
368
+ const _nT = "nextToken";
369
+ const _pSI = "previousStepId";
370
+ const _qC = "quotaCode";
371
+ const _r = "reason";
372
+ const _rAS = "retryAfterSeconds";
373
+ const _rI = "resourceId";
374
+ const _rMI = "resolvedModelId";
375
+ const _rT = "resourceType";
376
+ const _s = "status";
377
+ const _sA = "startedAt";
378
+ const _sBN = "s3BucketName";
379
+ const _sC = "serviceCode";
380
+ const _sI = "sessionId";
381
+ const _sIt = "stepId";
382
+ const _sKP = "s3KeyPrefix";
383
+ const _sMI = "supportedModelIds";
384
+ const _sO = "sortOrder";
385
+ const _sS = "sessionSummaries";
386
+ const _sV = "sdkVersion";
387
+ const _se = "server";
388
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.novaact";
389
+ const _t = "type";
390
+ const _tL = "traceLocation";
391
+ const _tS = "toolSpecs";
392
+ const _ta = "task";
393
+ const _te = "text";
394
+ const _wDA = "workflowDefinitionArn";
395
+ const _wDN = "workflowDefinitionName";
396
+ const _wDS = "workflowDefinitionSummaries";
397
+ const _wRA = "workflowRunArn";
398
+ const _wRI = "workflowRunId";
399
+ const _wRS = "workflowRunSummaries";
400
+ const n0 = "com.amazonaws.novaact";
401
+ var SensitiveDocument = [0, n0, _SD, 8, 15];
402
+ var SensitiveString = [0, n0, _SS, 8, 0];
403
+ var Task = [0, n0, _T, 8, 0];
404
+ var ToolDescription = [0, n0, _TD, 8, 0];
405
+ var WorkflowDescription = [0, n0, _WD, 8, 0];
406
+ var AccessDeniedException = [
407
+ -3,
408
+ n0,
409
+ _ADE,
410
+ {
411
+ [_e]: _c,
412
+ [_hE]: 403,
413
+ },
414
+ [_m],
415
+ [0],
416
+ ];
417
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
418
+ var ActError = [3, n0, _AE, 0, [_m, _t], [[() => SensitiveString, 0], 0]];
419
+ var ActSummary = [
420
+ 3,
421
+ n0,
422
+ _AS,
423
+ 0,
424
+ [_wRI, _sI, _aI, _s, _sA, _eA, _tL],
425
+ [0, 0, 0, 0, 5, 5, () => TraceLocation],
426
+ ];
427
+ var Call = [3, n0, _C, 0, [_cI, _i, _n], [0, [() => SensitiveDocument, 0], 0]];
428
+ var CallResult = [3, n0, _CR, 0, [_cI, _co], [0, [() => CallResultContents, 0]]];
429
+ var ClientInfo = [3, n0, _CI, 0, [_cV, _sV], [1, 0]];
430
+ var CompatibilityInformation = [3, n0, _CIo, 0, [_cCV, _sMI, _m], [1, 64 | 0, 0]];
431
+ var ConflictException = [
432
+ -3,
433
+ n0,
434
+ _CE,
435
+ {
436
+ [_e]: _c,
437
+ [_hE]: 409,
438
+ },
439
+ [_m, _rI, _rT],
440
+ [0, 0, 0],
441
+ ];
442
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
443
+ var CreateActRequest = [
444
+ 3,
445
+ n0,
446
+ _CAR,
447
+ 0,
448
+ [_wDN, _wRI, _sI, _ta, _tS, _cT],
449
+ [
450
+ [0, 1],
451
+ [0, 1],
452
+ [0, 1],
453
+ [() => Task, 0],
454
+ [() => ToolSpecs, 0],
455
+ [0, 4],
456
+ ],
457
+ ];
458
+ var CreateActResponse = [3, n0, _CARr, 0, [_aI, _s], [0, 0]];
459
+ var CreateSessionRequest = [
460
+ 3,
461
+ n0,
462
+ _CSR,
463
+ 0,
464
+ [_wDN, _wRI, _cT],
465
+ [
466
+ [0, 1],
467
+ [0, 1],
468
+ [0, 4],
469
+ ],
470
+ ];
471
+ var CreateSessionResponse = [3, n0, _CSRr, 0, [_sI], [0]];
472
+ var CreateWorkflowDefinitionRequest = [
473
+ 3,
474
+ n0,
475
+ _CWDR,
476
+ 0,
477
+ [_n, _d, _eC, _cT],
478
+ [0, [() => WorkflowDescription, 0], () => WorkflowExportConfig, [0, 4]],
479
+ ];
480
+ var CreateWorkflowDefinitionResponse = [3, n0, _CWDRr, 0, [_s], [0]];
481
+ var CreateWorkflowRunRequest = [
482
+ 3,
483
+ n0,
484
+ _CWRR,
485
+ 0,
486
+ [_wDN, _mI, _cT, _lGN, _cIl],
487
+ [[0, 1], 0, [0, 4], 0, () => ClientInfo],
488
+ ];
489
+ var CreateWorkflowRunResponse = [3, n0, _CWRRr, 0, [_wRI, _s], [0, 0]];
490
+ var DeleteWorkflowDefinitionRequest = [3, n0, _DWDR, 0, [_wDN], [[0, 1]]];
491
+ var DeleteWorkflowDefinitionResponse = [3, n0, _DWDRe, 0, [_s], [0]];
492
+ var DeleteWorkflowRunRequest = [
493
+ 3,
494
+ n0,
495
+ _DWRR,
496
+ 0,
497
+ [_wDN, _wRI],
498
+ [
499
+ [0, 1],
500
+ [0, 1],
501
+ ],
502
+ ];
503
+ var DeleteWorkflowRunResponse = [3, n0, _DWRRe, 0, [_s], [0]];
504
+ var GetWorkflowDefinitionRequest = [3, n0, _GWDR, 0, [_wDN], [[0, 1]]];
505
+ var GetWorkflowDefinitionResponse = [
506
+ 3,
507
+ n0,
508
+ _GWDRe,
509
+ 0,
510
+ [_n, _a, _cA, _d, _eC, _s],
511
+ [0, 0, 5, [() => WorkflowDescription, 0], () => WorkflowExportConfig, 0],
512
+ ];
513
+ var GetWorkflowRunRequest = [
514
+ 3,
515
+ n0,
516
+ _GWRR,
517
+ 0,
518
+ [_wDN, _wRI],
519
+ [
520
+ [0, 1],
521
+ [0, 1],
522
+ ],
523
+ ];
524
+ var GetWorkflowRunResponse = [
525
+ 3,
526
+ n0,
527
+ _GWRRe,
528
+ 0,
529
+ [_wRA, _wRI, _s, _sA, _eA, _mI, _lGN],
530
+ [0, 0, 0, 5, 5, 0, 0],
531
+ ];
532
+ var InternalServerException = [
533
+ -3,
534
+ n0,
535
+ _ISE,
536
+ {
537
+ [_e]: _se,
538
+ [_hE]: 500,
539
+ },
540
+ [_m, _rAS, _r],
541
+ [
542
+ 0,
543
+ [
544
+ 1,
545
+ {
546
+ [_hH]: _RA,
547
+ },
548
+ ],
549
+ 0,
550
+ ],
551
+ ];
552
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
553
+ var InvokeActStepRequest = [
554
+ 3,
555
+ n0,
556
+ _IASR,
557
+ 0,
558
+ [_wDN, _wRI, _sI, _aI, _cR, _pSI],
559
+ [[0, 1], [0, 1], [0, 1], [0, 1], [() => CallResults, 0], 0],
560
+ ];
561
+ var InvokeActStepResponse = [3, n0, _IASRn, 0, [_ca, _sIt], [[() => Calls, 0], 0]];
562
+ var ListActsRequest = [
563
+ 3,
564
+ n0,
565
+ _LAR,
566
+ 0,
567
+ [_wDN, _wRI, _sI, _mR, _nT, _sO],
568
+ [
569
+ [0, 1],
570
+ [
571
+ 0,
572
+ {
573
+ [_hQ]: _wRI,
574
+ },
575
+ ],
576
+ [
577
+ 0,
578
+ {
579
+ [_hQ]: _sI,
580
+ },
581
+ ],
582
+ [
583
+ 1,
584
+ {
585
+ [_hQ]: _mR,
586
+ },
587
+ ],
588
+ [
589
+ 0,
590
+ {
591
+ [_hQ]: _nT,
592
+ },
593
+ ],
594
+ 0,
595
+ ],
596
+ ];
597
+ var ListActsResponse = [3, n0, _LARi, 0, [_aS, _nT], [() => ActSummaries, 0]];
598
+ var ListModelsRequest = [
599
+ 3,
600
+ n0,
601
+ _LMR,
602
+ 0,
603
+ [_cCV],
604
+ [
605
+ [
606
+ 1,
607
+ {
608
+ [_hQ]: _cCV,
609
+ },
610
+ ],
611
+ ],
612
+ ];
613
+ var ListModelsResponse = [
614
+ 3,
615
+ n0,
616
+ _LMRi,
617
+ 0,
618
+ [_mS, _mA, _cIo],
619
+ [() => ModelSummaries, () => ModelAliases, () => CompatibilityInformation],
620
+ ];
621
+ var ListSessionsRequest = [
622
+ 3,
623
+ n0,
624
+ _LSR,
625
+ 0,
626
+ [_wDN, _wRI, _mR, _nT, _sO],
627
+ [
628
+ [0, 1],
629
+ [0, 1],
630
+ [
631
+ 1,
632
+ {
633
+ [_hQ]: _mR,
634
+ },
635
+ ],
636
+ [
637
+ 0,
638
+ {
639
+ [_hQ]: _nT,
640
+ },
641
+ ],
642
+ 0,
643
+ ],
644
+ ];
645
+ var ListSessionsResponse = [3, n0, _LSRi, 0, [_sS, _nT], [() => SessionSummaries, 0]];
646
+ var ListWorkflowDefinitionsRequest = [
647
+ 3,
648
+ n0,
649
+ _LWDR,
650
+ 0,
651
+ [_mR, _nT, _sO],
652
+ [
653
+ [
654
+ 1,
655
+ {
656
+ [_hQ]: _mR,
657
+ },
658
+ ],
659
+ [
660
+ 0,
661
+ {
662
+ [_hQ]: _nT,
663
+ },
664
+ ],
665
+ 0,
666
+ ],
667
+ ];
668
+ var ListWorkflowDefinitionsResponse = [
669
+ 3,
670
+ n0,
671
+ _LWDRi,
672
+ 0,
673
+ [_wDS, _nT],
674
+ [() => WorkflowDefinitionSummaries, 0],
675
+ ];
676
+ var ListWorkflowRunsRequest = [
677
+ 3,
678
+ n0,
679
+ _LWRR,
680
+ 0,
681
+ [_wDN, _mR, _nT, _sO],
682
+ [
683
+ [0, 1],
684
+ [
685
+ 1,
686
+ {
687
+ [_hQ]: _mR,
688
+ },
689
+ ],
690
+ [
691
+ 0,
692
+ {
693
+ [_hQ]: _nT,
694
+ },
695
+ ],
696
+ 0,
697
+ ],
698
+ ];
699
+ var ListWorkflowRunsResponse = [
700
+ 3,
701
+ n0,
702
+ _LWRRi,
703
+ 0,
704
+ [_wRS, _nT],
705
+ [() => WorkflowRunSummaries, 0],
706
+ ];
707
+ var ModelAlias = [3, n0, _MA, 0, [_aN, _lMI, _rMI], [0, 0, 0]];
708
+ var ModelLifecycle = [3, n0, _ML, 0, [_s], [0]];
709
+ var ModelSummary = [3, n0, _MS, 0, [_mI, _mL, _mCV], [0, () => ModelLifecycle, 1]];
710
+ var ResourceNotFoundException = [
711
+ -3,
712
+ n0,
713
+ _RNFE,
714
+ {
715
+ [_e]: _c,
716
+ [_hE]: 404,
717
+ },
718
+ [_m, _rI, _rT],
719
+ [0, 0, 0],
720
+ ];
721
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
722
+ var ServiceQuotaExceededException = [
723
+ -3,
724
+ n0,
725
+ _SQEE,
726
+ {
727
+ [_e]: _c,
728
+ [_hE]: 402,
729
+ },
730
+ [_m, _rI, _rT, _sC, _qC],
731
+ [0, 0, 0, 0, 0],
732
+ ];
733
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
734
+ var SessionSummary = [3, n0, _SSe, 0, [_sI], [0]];
735
+ var ThrottlingException = [
736
+ -3,
737
+ n0,
738
+ _TE,
739
+ {
740
+ [_e]: _c,
741
+ [_hE]: 429,
742
+ },
743
+ [_m, _sC, _qC, _rAS],
744
+ [
745
+ 0,
746
+ 0,
747
+ 0,
748
+ [
749
+ 1,
750
+ {
751
+ [_hH]: _RA,
752
+ },
753
+ ],
754
+ ],
755
+ ];
756
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
757
+ var ToolSpec = [
758
+ 3,
759
+ n0,
760
+ _TS,
761
+ 0,
762
+ [_n, _d, _iS],
763
+ [0, [() => ToolDescription, 0], [() => ToolInputSchema, 0]],
764
+ ];
765
+ var TraceLocation = [3, n0, _TL, 0, [_lT, _l], [0, 0]];
766
+ var UpdateActRequest = [
767
+ 3,
768
+ n0,
769
+ _UAR,
770
+ 0,
771
+ [_wDN, _wRI, _sI, _aI, _s, _e],
772
+ [[0, 1], [0, 1], [0, 1], [0, 1], 0, [() => ActError, 0]],
773
+ ];
774
+ var UpdateActResponse = [3, n0, _UARp, 0, [], []];
775
+ var UpdateWorkflowRunRequest = [3, n0, _UWRR, 0, [_wDN, _wRI, _s], [[0, 1], [0, 1], 0]];
776
+ var UpdateWorkflowRunResponse = [3, n0, _UWRRp, 0, [], []];
777
+ var ValidationException = [
778
+ -3,
779
+ n0,
780
+ _VE,
781
+ {
782
+ [_e]: _c,
783
+ [_hE]: 400,
784
+ },
785
+ [_m, _r, _fL],
786
+ [0, 0, () => ValidationExceptionFieldList],
787
+ ];
788
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
789
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
790
+ var WorkflowDefinitionSummary = [3, n0, _WDS, 0, [_wDA, _wDN, _cA, _s], [0, 0, 5, 0]];
791
+ var WorkflowExportConfig = [3, n0, _WEC, 0, [_sBN, _sKP], [0, 0]];
792
+ var WorkflowRunSummary = [
793
+ 3,
794
+ n0,
795
+ _WRS,
796
+ 0,
797
+ [_wRA, _wRI, _s, _sA, _eA, _tL],
798
+ [0, 0, 0, 5, 5, () => TraceLocation],
799
+ ];
800
+ var NovaActServiceException = [-3, _sm, "NovaActServiceException", 0, [], []];
801
+ schema.TypeRegistry.for(_sm).registerError(NovaActServiceException, NovaActServiceException$1);
802
+ var ActSummaries = [1, n0, _ASc, 0, () => ActSummary];
803
+ var CallResultContents = [1, n0, _CRC, 0, [() => CallResultContent, 0]];
804
+ var CallResults = [1, n0, _CRa, 0, [() => CallResult, 0]];
805
+ var Calls = [1, n0, _Ca, 0, [() => Call, 0]];
806
+ var ModelAliases = [1, n0, _MAo, 0, () => ModelAlias];
807
+ var ModelSummaries = [1, n0, _MSo, 0, () => ModelSummary];
808
+ var SessionSummaries = [1, n0, _SSes, 0, () => SessionSummary];
809
+ var ToolSpecs = [1, n0, _TSo, 0, [() => ToolSpec, 0]];
810
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
811
+ var WorkflowDefinitionSummaries = [1, n0, _WDSo, 0, () => WorkflowDefinitionSummary];
812
+ var WorkflowRunSummaries = [1, n0, _WRSo, 0, () => WorkflowRunSummary];
813
+ var CallResultContent = [3, n0, _CRCa, 8, [_te], [0]];
814
+ var ToolInputSchema = [3, n0, _TIS, 8, [_j], [15]];
815
+ var CreateAct = [
816
+ 9,
817
+ n0,
818
+ _CA,
819
+ {
820
+ [_h]: [
821
+ "PUT",
822
+ "/workflow-definitions/{workflowDefinitionName}/workflow-runs/{workflowRunId}/sessions/{sessionId}/acts",
823
+ 201,
824
+ ],
825
+ },
826
+ () => CreateActRequest,
827
+ () => CreateActResponse,
828
+ ];
829
+ var CreateSession = [
830
+ 9,
831
+ n0,
832
+ _CS,
833
+ {
834
+ [_h]: ["PUT", "/workflow-definitions/{workflowDefinitionName}/workflow-runs/{workflowRunId}/sessions", 201],
835
+ },
836
+ () => CreateSessionRequest,
837
+ () => CreateSessionResponse,
838
+ ];
839
+ var CreateWorkflowDefinition = [
840
+ 9,
841
+ n0,
842
+ _CWD,
843
+ {
844
+ [_h]: ["PUT", "/workflow-definitions", 201],
845
+ },
846
+ () => CreateWorkflowDefinitionRequest,
847
+ () => CreateWorkflowDefinitionResponse,
848
+ ];
849
+ var CreateWorkflowRun = [
850
+ 9,
851
+ n0,
852
+ _CWR,
853
+ {
854
+ [_h]: ["PUT", "/workflow-definitions/{workflowDefinitionName}/workflow-runs", 201],
855
+ },
856
+ () => CreateWorkflowRunRequest,
857
+ () => CreateWorkflowRunResponse,
858
+ ];
859
+ var DeleteWorkflowDefinition = [
860
+ 9,
861
+ n0,
862
+ _DWD,
863
+ {
864
+ [_h]: ["DELETE", "/workflow-definitions/{workflowDefinitionName}", 202],
865
+ },
866
+ () => DeleteWorkflowDefinitionRequest,
867
+ () => DeleteWorkflowDefinitionResponse,
868
+ ];
869
+ var DeleteWorkflowRun = [
870
+ 9,
871
+ n0,
872
+ _DWR,
873
+ {
874
+ [_h]: ["DELETE", "/workflow-definitions/{workflowDefinitionName}/workflow-runs/{workflowRunId}", 202],
875
+ },
876
+ () => DeleteWorkflowRunRequest,
877
+ () => DeleteWorkflowRunResponse,
878
+ ];
879
+ var GetWorkflowDefinition = [
880
+ 9,
881
+ n0,
882
+ _GWD,
883
+ {
884
+ [_h]: ["GET", "/workflow-definitions/{workflowDefinitionName}", 200],
885
+ },
886
+ () => GetWorkflowDefinitionRequest,
887
+ () => GetWorkflowDefinitionResponse,
888
+ ];
889
+ var GetWorkflowRun = [
890
+ 9,
891
+ n0,
892
+ _GWR,
893
+ {
894
+ [_h]: ["GET", "/workflow-definitions/{workflowDefinitionName}/workflow-runs/{workflowRunId}", 200],
895
+ },
896
+ () => GetWorkflowRunRequest,
897
+ () => GetWorkflowRunResponse,
898
+ ];
899
+ var InvokeActStep = [
900
+ 9,
901
+ n0,
902
+ _IAS,
903
+ {
904
+ [_h]: [
905
+ "PUT",
906
+ "/workflow-definitions/{workflowDefinitionName}/workflow-runs/{workflowRunId}/sessions/{sessionId}/acts/{actId}/invoke-step/",
907
+ 200,
908
+ ],
909
+ },
910
+ () => InvokeActStepRequest,
911
+ () => InvokeActStepResponse,
912
+ ];
913
+ var ListActs = [
914
+ 9,
915
+ n0,
916
+ _LA,
917
+ {
918
+ [_h]: ["POST", "/workflow-definitions/{workflowDefinitionName}/acts", 200],
919
+ },
920
+ () => ListActsRequest,
921
+ () => ListActsResponse,
922
+ ];
923
+ var ListModels = [
924
+ 9,
925
+ n0,
926
+ _LM,
927
+ {
928
+ [_h]: ["POST", "/models", 200],
929
+ },
930
+ () => ListModelsRequest,
931
+ () => ListModelsResponse,
932
+ ];
933
+ var ListSessions = [
934
+ 9,
935
+ n0,
936
+ _LS,
937
+ {
938
+ [_h]: ["POST", "/workflow-definitions/{workflowDefinitionName}/workflow-runs/{workflowRunId}", 200],
939
+ },
940
+ () => ListSessionsRequest,
941
+ () => ListSessionsResponse,
942
+ ];
943
+ var ListWorkflowDefinitions = [
944
+ 9,
945
+ n0,
946
+ _LWD,
947
+ {
948
+ [_h]: ["POST", "/workflow-definitions", 200],
949
+ },
950
+ () => ListWorkflowDefinitionsRequest,
951
+ () => ListWorkflowDefinitionsResponse,
952
+ ];
953
+ var ListWorkflowRuns = [
954
+ 9,
955
+ n0,
956
+ _LWR,
957
+ {
958
+ [_h]: ["POST", "/workflow-definitions/{workflowDefinitionName}/workflow-runs", 200],
959
+ },
960
+ () => ListWorkflowRunsRequest,
961
+ () => ListWorkflowRunsResponse,
962
+ ];
963
+ var UpdateAct = [
964
+ 9,
965
+ n0,
966
+ _UA,
967
+ {
968
+ [_h]: [
969
+ "PUT",
970
+ "/workflow-definitions/{workflowDefinitionName}/workflow-runs/{workflowRunId}/sessions/{sessionId}/acts/{actId}",
971
+ 200,
972
+ ],
973
+ },
974
+ () => UpdateActRequest,
975
+ () => UpdateActResponse,
976
+ ];
977
+ var UpdateWorkflowRun = [
978
+ 9,
979
+ n0,
980
+ _UWR,
981
+ {
982
+ [_h]: ["PUT", "/workflow-definitions/{workflowDefinitionName}/workflow-runs/{workflowRunId}", 200],
983
+ },
984
+ () => UpdateWorkflowRunRequest,
985
+ () => UpdateWorkflowRunResponse,
986
+ ];
987
+
988
+ class CreateActCommand extends smithyClient.Command
989
+ .classBuilder()
990
+ .ep(commonParams)
991
+ .m(function (Command, cs, config, o) {
992
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
993
+ })
994
+ .s("AmazonNovaAgentsDataPlane", "CreateAct", {})
995
+ .n("NovaActClient", "CreateActCommand")
996
+ .sc(CreateAct)
997
+ .build() {
998
+ }
999
+
1000
+ class CreateSessionCommand extends smithyClient.Command
1001
+ .classBuilder()
1002
+ .ep(commonParams)
1003
+ .m(function (Command, cs, config, o) {
1004
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1005
+ })
1006
+ .s("AmazonNovaAgentsDataPlane", "CreateSession", {})
1007
+ .n("NovaActClient", "CreateSessionCommand")
1008
+ .sc(CreateSession)
1009
+ .build() {
1010
+ }
1011
+
1012
+ class CreateWorkflowDefinitionCommand extends smithyClient.Command
1013
+ .classBuilder()
1014
+ .ep(commonParams)
1015
+ .m(function (Command, cs, config, o) {
1016
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1017
+ })
1018
+ .s("AmazonNovaAgentsDataPlane", "CreateWorkflowDefinition", {})
1019
+ .n("NovaActClient", "CreateWorkflowDefinitionCommand")
1020
+ .sc(CreateWorkflowDefinition)
1021
+ .build() {
1022
+ }
1023
+
1024
+ class CreateWorkflowRunCommand extends smithyClient.Command
1025
+ .classBuilder()
1026
+ .ep(commonParams)
1027
+ .m(function (Command, cs, config, o) {
1028
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1029
+ })
1030
+ .s("AmazonNovaAgentsDataPlane", "CreateWorkflowRun", {})
1031
+ .n("NovaActClient", "CreateWorkflowRunCommand")
1032
+ .sc(CreateWorkflowRun)
1033
+ .build() {
1034
+ }
1035
+
1036
+ class DeleteWorkflowDefinitionCommand extends smithyClient.Command
1037
+ .classBuilder()
1038
+ .ep(commonParams)
1039
+ .m(function (Command, cs, config, o) {
1040
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1041
+ })
1042
+ .s("AmazonNovaAgentsDataPlane", "DeleteWorkflowDefinition", {})
1043
+ .n("NovaActClient", "DeleteWorkflowDefinitionCommand")
1044
+ .sc(DeleteWorkflowDefinition)
1045
+ .build() {
1046
+ }
1047
+
1048
+ class DeleteWorkflowRunCommand extends smithyClient.Command
1049
+ .classBuilder()
1050
+ .ep(commonParams)
1051
+ .m(function (Command, cs, config, o) {
1052
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1053
+ })
1054
+ .s("AmazonNovaAgentsDataPlane", "DeleteWorkflowRun", {})
1055
+ .n("NovaActClient", "DeleteWorkflowRunCommand")
1056
+ .sc(DeleteWorkflowRun)
1057
+ .build() {
1058
+ }
1059
+
1060
+ class GetWorkflowDefinitionCommand extends smithyClient.Command
1061
+ .classBuilder()
1062
+ .ep(commonParams)
1063
+ .m(function (Command, cs, config, o) {
1064
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1065
+ })
1066
+ .s("AmazonNovaAgentsDataPlane", "GetWorkflowDefinition", {})
1067
+ .n("NovaActClient", "GetWorkflowDefinitionCommand")
1068
+ .sc(GetWorkflowDefinition)
1069
+ .build() {
1070
+ }
1071
+
1072
+ class GetWorkflowRunCommand extends smithyClient.Command
1073
+ .classBuilder()
1074
+ .ep(commonParams)
1075
+ .m(function (Command, cs, config, o) {
1076
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1077
+ })
1078
+ .s("AmazonNovaAgentsDataPlane", "GetWorkflowRun", {})
1079
+ .n("NovaActClient", "GetWorkflowRunCommand")
1080
+ .sc(GetWorkflowRun)
1081
+ .build() {
1082
+ }
1083
+
1084
+ class InvokeActStepCommand extends smithyClient.Command
1085
+ .classBuilder()
1086
+ .ep(commonParams)
1087
+ .m(function (Command, cs, config, o) {
1088
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1089
+ })
1090
+ .s("AmazonNovaAgentsDataPlane", "InvokeActStep", {})
1091
+ .n("NovaActClient", "InvokeActStepCommand")
1092
+ .sc(InvokeActStep)
1093
+ .build() {
1094
+ }
1095
+
1096
+ class ListActsCommand extends smithyClient.Command
1097
+ .classBuilder()
1098
+ .ep(commonParams)
1099
+ .m(function (Command, cs, config, o) {
1100
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1101
+ })
1102
+ .s("AmazonNovaAgentsDataPlane", "ListActs", {})
1103
+ .n("NovaActClient", "ListActsCommand")
1104
+ .sc(ListActs)
1105
+ .build() {
1106
+ }
1107
+
1108
+ class ListModelsCommand extends smithyClient.Command
1109
+ .classBuilder()
1110
+ .ep(commonParams)
1111
+ .m(function (Command, cs, config, o) {
1112
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1113
+ })
1114
+ .s("AmazonNovaAgentsDataPlane", "ListModels", {})
1115
+ .n("NovaActClient", "ListModelsCommand")
1116
+ .sc(ListModels)
1117
+ .build() {
1118
+ }
1119
+
1120
+ class ListSessionsCommand extends smithyClient.Command
1121
+ .classBuilder()
1122
+ .ep(commonParams)
1123
+ .m(function (Command, cs, config, o) {
1124
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1125
+ })
1126
+ .s("AmazonNovaAgentsDataPlane", "ListSessions", {})
1127
+ .n("NovaActClient", "ListSessionsCommand")
1128
+ .sc(ListSessions)
1129
+ .build() {
1130
+ }
1131
+
1132
+ class ListWorkflowDefinitionsCommand extends smithyClient.Command
1133
+ .classBuilder()
1134
+ .ep(commonParams)
1135
+ .m(function (Command, cs, config, o) {
1136
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1137
+ })
1138
+ .s("AmazonNovaAgentsDataPlane", "ListWorkflowDefinitions", {})
1139
+ .n("NovaActClient", "ListWorkflowDefinitionsCommand")
1140
+ .sc(ListWorkflowDefinitions)
1141
+ .build() {
1142
+ }
1143
+
1144
+ class ListWorkflowRunsCommand extends smithyClient.Command
1145
+ .classBuilder()
1146
+ .ep(commonParams)
1147
+ .m(function (Command, cs, config, o) {
1148
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1149
+ })
1150
+ .s("AmazonNovaAgentsDataPlane", "ListWorkflowRuns", {})
1151
+ .n("NovaActClient", "ListWorkflowRunsCommand")
1152
+ .sc(ListWorkflowRuns)
1153
+ .build() {
1154
+ }
1155
+
1156
+ class UpdateActCommand extends smithyClient.Command
1157
+ .classBuilder()
1158
+ .ep(commonParams)
1159
+ .m(function (Command, cs, config, o) {
1160
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1161
+ })
1162
+ .s("AmazonNovaAgentsDataPlane", "UpdateAct", {})
1163
+ .n("NovaActClient", "UpdateActCommand")
1164
+ .sc(UpdateAct)
1165
+ .build() {
1166
+ }
1167
+
1168
+ class UpdateWorkflowRunCommand extends smithyClient.Command
1169
+ .classBuilder()
1170
+ .ep(commonParams)
1171
+ .m(function (Command, cs, config, o) {
1172
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1173
+ })
1174
+ .s("AmazonNovaAgentsDataPlane", "UpdateWorkflowRun", {})
1175
+ .n("NovaActClient", "UpdateWorkflowRunCommand")
1176
+ .sc(UpdateWorkflowRun)
1177
+ .build() {
1178
+ }
1179
+
1180
+ const commands = {
1181
+ CreateActCommand,
1182
+ CreateSessionCommand,
1183
+ CreateWorkflowDefinitionCommand,
1184
+ CreateWorkflowRunCommand,
1185
+ DeleteWorkflowDefinitionCommand,
1186
+ DeleteWorkflowRunCommand,
1187
+ GetWorkflowDefinitionCommand,
1188
+ GetWorkflowRunCommand,
1189
+ InvokeActStepCommand,
1190
+ ListActsCommand,
1191
+ ListModelsCommand,
1192
+ ListSessionsCommand,
1193
+ ListWorkflowDefinitionsCommand,
1194
+ ListWorkflowRunsCommand,
1195
+ UpdateActCommand,
1196
+ UpdateWorkflowRunCommand,
1197
+ };
1198
+ class NovaAct extends NovaActClient {
1199
+ }
1200
+ smithyClient.createAggregatedClient(commands, NovaAct);
1201
+
1202
+ const paginateListActs = core.createPaginator(NovaActClient, ListActsCommand, "nextToken", "nextToken", "maxResults");
1203
+
1204
+ const paginateListSessions = core.createPaginator(NovaActClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
1205
+
1206
+ const paginateListWorkflowDefinitions = core.createPaginator(NovaActClient, ListWorkflowDefinitionsCommand, "nextToken", "nextToken", "maxResults");
1207
+
1208
+ const paginateListWorkflowRuns = core.createPaginator(NovaActClient, ListWorkflowRunsCommand, "nextToken", "nextToken", "maxResults");
1209
+
1210
+ const ActStatus = {
1211
+ FAILED: "FAILED",
1212
+ PENDING_CLIENT_ACTION: "PENDING_CLIENT_ACTION",
1213
+ PENDING_HUMAN_ACTION: "PENDING_HUMAN_ACTION",
1214
+ RUNNING: "RUNNING",
1215
+ SUCCEEDED: "SUCCEEDED",
1216
+ TIMED_OUT: "TIMED_OUT",
1217
+ };
1218
+ const InternalServerExceptionReason = {
1219
+ INVALID_MODEL_GENERATION: "InvalidModelGeneration",
1220
+ TOKEN_LIMIT_EXCEEDED: "RequestTokenLimitExceeded",
1221
+ };
1222
+ const ValidationExceptionReason = {
1223
+ FIELD_VALIDATION_FAILED: "FieldValidationFailed",
1224
+ GUARDRAIL_INTERVENED: "GuardrailIntervened",
1225
+ INVALID_STATUS: "InvalidStatus",
1226
+ };
1227
+ const SortOrder = {
1228
+ ASC: "Ascending",
1229
+ DESC: "Descending",
1230
+ };
1231
+ const TraceLocationType = {
1232
+ S3: "S3",
1233
+ };
1234
+ const ModelStatus = {
1235
+ ACTIVE: "ACTIVE",
1236
+ DEPRECATED: "DEPRECATED",
1237
+ LEGACY: "LEGACY",
1238
+ PREVIEW: "PREVIEW",
1239
+ };
1240
+ const WorkflowDefinitionStatus = {
1241
+ ACTIVE: "ACTIVE",
1242
+ DELETING: "DELETING",
1243
+ };
1244
+ const WorkflowRunStatus = {
1245
+ DELETING: "DELETING",
1246
+ FAILED: "FAILED",
1247
+ RUNNING: "RUNNING",
1248
+ SUCCEEDED: "SUCCEEDED",
1249
+ TIMED_OUT: "TIMED_OUT",
1250
+ };
1251
+
1252
+ Object.defineProperty(exports, "$Command", {
1253
+ enumerable: true,
1254
+ get: function () { return smithyClient.Command; }
1255
+ });
1256
+ Object.defineProperty(exports, "__Client", {
1257
+ enumerable: true,
1258
+ get: function () { return smithyClient.Client; }
1259
+ });
1260
+ exports.AccessDeniedException = AccessDeniedException$1;
1261
+ exports.ActStatus = ActStatus;
1262
+ exports.ConflictException = ConflictException$1;
1263
+ exports.CreateActCommand = CreateActCommand;
1264
+ exports.CreateSessionCommand = CreateSessionCommand;
1265
+ exports.CreateWorkflowDefinitionCommand = CreateWorkflowDefinitionCommand;
1266
+ exports.CreateWorkflowRunCommand = CreateWorkflowRunCommand;
1267
+ exports.DeleteWorkflowDefinitionCommand = DeleteWorkflowDefinitionCommand;
1268
+ exports.DeleteWorkflowRunCommand = DeleteWorkflowRunCommand;
1269
+ exports.GetWorkflowDefinitionCommand = GetWorkflowDefinitionCommand;
1270
+ exports.GetWorkflowRunCommand = GetWorkflowRunCommand;
1271
+ exports.InternalServerException = InternalServerException$1;
1272
+ exports.InternalServerExceptionReason = InternalServerExceptionReason;
1273
+ exports.InvokeActStepCommand = InvokeActStepCommand;
1274
+ exports.ListActsCommand = ListActsCommand;
1275
+ exports.ListModelsCommand = ListModelsCommand;
1276
+ exports.ListSessionsCommand = ListSessionsCommand;
1277
+ exports.ListWorkflowDefinitionsCommand = ListWorkflowDefinitionsCommand;
1278
+ exports.ListWorkflowRunsCommand = ListWorkflowRunsCommand;
1279
+ exports.ModelStatus = ModelStatus;
1280
+ exports.NovaAct = NovaAct;
1281
+ exports.NovaActClient = NovaActClient;
1282
+ exports.NovaActServiceException = NovaActServiceException$1;
1283
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1284
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1285
+ exports.SortOrder = SortOrder;
1286
+ exports.ThrottlingException = ThrottlingException$1;
1287
+ exports.TraceLocationType = TraceLocationType;
1288
+ exports.UpdateActCommand = UpdateActCommand;
1289
+ exports.UpdateWorkflowRunCommand = UpdateWorkflowRunCommand;
1290
+ exports.ValidationException = ValidationException$1;
1291
+ exports.ValidationExceptionReason = ValidationExceptionReason;
1292
+ exports.WorkflowDefinitionStatus = WorkflowDefinitionStatus;
1293
+ exports.WorkflowRunStatus = WorkflowRunStatus;
1294
+ exports.paginateListActs = paginateListActs;
1295
+ exports.paginateListSessions = paginateListSessions;
1296
+ exports.paginateListWorkflowDefinitions = paginateListWorkflowDefinitions;
1297
+ exports.paginateListWorkflowRuns = paginateListWorkflowRuns;