@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,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
+ const config_resolver_1 = require("@smithy/config-resolver");
9
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
+ const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
12
+ const util_retry_1 = require("@smithy/util-retry");
13
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
15
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
+ const getRuntimeConfig = (config) => {
17
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
19
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
20
+ return {
21
+ ...clientSharedValues,
22
+ ...config,
23
+ runtime: "browser",
24
+ defaultsMode,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
34
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
37
+ };
38
+ };
39
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const core_1 = require("@aws-sdk/core");
7
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
8
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
9
+ const config_resolver_1 = require("@smithy/config-resolver");
10
+ const hash_node_1 = require("@smithy/hash-node");
11
+ const middleware_retry_1 = require("@smithy/middleware-retry");
12
+ const node_config_provider_1 = require("@smithy/node-config-provider");
13
+ const node_http_handler_1 = require("@smithy/node-http-handler");
14
+ const util_body_length_node_1 = require("@smithy/util-body-length-node");
15
+ const util_retry_1 = require("@smithy/util-retry");
16
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
+ const smithy_client_1 = require("@smithy/smithy-client");
18
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
+ const smithy_client_2 = require("@smithy/smithy-client");
20
+ const getRuntimeConfig = (config) => {
21
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
+ (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
26
+ const loaderConfig = {
27
+ profile: config?.profile,
28
+ logger: clientSharedValues.logger,
29
+ };
30
+ return {
31
+ ...clientSharedValues,
32
+ ...config,
33
+ runtime: "node",
34
+ defaultsMode,
35
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
36
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
37
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
38
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
39
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
40
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
41
+ region: config?.region ??
42
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
43
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
44
+ retryMode: config?.retryMode ??
45
+ (0, node_config_provider_1.loadConfig)({
46
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
47
+ default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
48
+ }, config),
49
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
50
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
51
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
52
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
53
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
54
+ };
55
+ };
56
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const url_parser_1 = require("@smithy/url-parser");
8
+ const util_base64_1 = require("@smithy/util-base64");
9
+ const util_utf8_1 = require("@smithy/util-utf8");
10
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const getRuntimeConfig = (config) => {
13
+ return {
14
+ apiVersion: "2025-08-22",
15
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
16
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
17
+ disableHostPrefix: config?.disableHostPrefix ?? false,
18
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
19
+ extensions: config?.extensions ?? [],
20
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultNovaActHttpAuthSchemeProvider,
21
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
22
+ {
23
+ schemeId: "aws.auth#sigv4",
24
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
25
+ signer: new core_1.AwsSdkSigV4Signer(),
26
+ },
27
+ ],
28
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.novaact" }),
30
+ serviceId: config?.serviceId ?? "Nova Act",
31
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
32
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
33
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
34
+ };
35
+ };
36
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,39 @@
1
+ import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { CreateActCommand } from "./commands/CreateActCommand";
3
+ import { CreateSessionCommand, } from "./commands/CreateSessionCommand";
4
+ import { CreateWorkflowDefinitionCommand, } from "./commands/CreateWorkflowDefinitionCommand";
5
+ import { CreateWorkflowRunCommand, } from "./commands/CreateWorkflowRunCommand";
6
+ import { DeleteWorkflowDefinitionCommand, } from "./commands/DeleteWorkflowDefinitionCommand";
7
+ import { DeleteWorkflowRunCommand, } from "./commands/DeleteWorkflowRunCommand";
8
+ import { GetWorkflowDefinitionCommand, } from "./commands/GetWorkflowDefinitionCommand";
9
+ import { GetWorkflowRunCommand, } from "./commands/GetWorkflowRunCommand";
10
+ import { InvokeActStepCommand, } from "./commands/InvokeActStepCommand";
11
+ import { ListActsCommand } from "./commands/ListActsCommand";
12
+ import { ListModelsCommand } from "./commands/ListModelsCommand";
13
+ import { ListSessionsCommand, } from "./commands/ListSessionsCommand";
14
+ import { ListWorkflowDefinitionsCommand, } from "./commands/ListWorkflowDefinitionsCommand";
15
+ import { ListWorkflowRunsCommand, } from "./commands/ListWorkflowRunsCommand";
16
+ import { UpdateActCommand } from "./commands/UpdateActCommand";
17
+ import { UpdateWorkflowRunCommand, } from "./commands/UpdateWorkflowRunCommand";
18
+ import { NovaActClient } from "./NovaActClient";
19
+ const commands = {
20
+ CreateActCommand,
21
+ CreateSessionCommand,
22
+ CreateWorkflowDefinitionCommand,
23
+ CreateWorkflowRunCommand,
24
+ DeleteWorkflowDefinitionCommand,
25
+ DeleteWorkflowRunCommand,
26
+ GetWorkflowDefinitionCommand,
27
+ GetWorkflowRunCommand,
28
+ InvokeActStepCommand,
29
+ ListActsCommand,
30
+ ListModelsCommand,
31
+ ListSessionsCommand,
32
+ ListWorkflowDefinitionsCommand,
33
+ ListWorkflowRunsCommand,
34
+ UpdateActCommand,
35
+ UpdateWorkflowRunCommand,
36
+ };
37
+ export class NovaAct extends NovaActClient {
38
+ }
39
+ createAggregatedClient(commands, NovaAct);
@@ -0,0 +1,50 @@
1
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
2
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
+ import { resolveRegionConfig } from "@smithy/config-resolver";
6
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
9
+ import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
10
+ import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
11
+ import { Client as __Client, } from "@smithy/smithy-client";
12
+ import { defaultNovaActHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
13
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
14
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
15
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
16
+ export { __Client };
17
+ export class NovaActClient extends __Client {
18
+ config;
19
+ constructor(...[configuration]) {
20
+ const _config_0 = __getRuntimeConfig(configuration || {});
21
+ super(_config_0);
22
+ this.initConfig = _config_0;
23
+ const _config_1 = resolveClientEndpointParameters(_config_0);
24
+ const _config_2 = resolveUserAgentConfig(_config_1);
25
+ const _config_3 = resolveRetryConfig(_config_2);
26
+ const _config_4 = resolveRegionConfig(_config_3);
27
+ const _config_5 = resolveHostHeaderConfig(_config_4);
28
+ const _config_6 = resolveEndpointConfig(_config_5);
29
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
30
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
31
+ this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
33
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
34
+ this.middlewareStack.use(getRetryPlugin(this.config));
35
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
36
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
37
+ this.middlewareStack.use(getLoggerPlugin(this.config));
38
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
39
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
40
+ httpAuthSchemeParametersProvider: defaultNovaActHttpAuthSchemeParametersProvider,
41
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
42
+ "aws.auth#sigv4": config.credentials,
43
+ }),
44
+ }));
45
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
46
+ }
47
+ destroy() {
48
+ super.destroy();
49
+ }
50
+ }
@@ -0,0 +1,38 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ let _credentials = runtimeConfig.credentials;
5
+ return {
6
+ setHttpAuthScheme(httpAuthScheme) {
7
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
8
+ if (index === -1) {
9
+ _httpAuthSchemes.push(httpAuthScheme);
10
+ }
11
+ else {
12
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
13
+ }
14
+ },
15
+ httpAuthSchemes() {
16
+ return _httpAuthSchemes;
17
+ },
18
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
19
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
20
+ },
21
+ httpAuthSchemeProvider() {
22
+ return _httpAuthSchemeProvider;
23
+ },
24
+ setCredentials(credentials) {
25
+ _credentials = credentials;
26
+ },
27
+ credentials() {
28
+ return _credentials;
29
+ },
30
+ };
31
+ };
32
+ export const resolveHttpAuthRuntimeConfig = (config) => {
33
+ return {
34
+ httpAuthSchemes: config.httpAuthSchemes(),
35
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
36
+ credentials: config.credentials(),
37
+ };
38
+ };
@@ -0,0 +1,41 @@
1
+ import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
+ export const defaultNovaActHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ return {
5
+ operation: getSmithyContext(context).operation,
6
+ region: (await normalizeProvider(config.region)()) ||
7
+ (() => {
8
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
+ })(),
10
+ };
11
+ };
12
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
13
+ return {
14
+ schemeId: "aws.auth#sigv4",
15
+ signingProperties: {
16
+ name: "nova-act",
17
+ region: authParameters.region,
18
+ },
19
+ propertiesExtractor: (config, context) => ({
20
+ signingProperties: {
21
+ config,
22
+ context,
23
+ },
24
+ }),
25
+ };
26
+ }
27
+ export const defaultNovaActHttpAuthSchemeProvider = (authParameters) => {
28
+ const options = [];
29
+ switch (authParameters.operation) {
30
+ default: {
31
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
32
+ }
33
+ }
34
+ return options;
35
+ };
36
+ export const resolveHttpAuthSchemeConfig = (config) => {
37
+ const config_0 = resolveAwsSdkSigV4Config(config);
38
+ return Object.assign(config_0, {
39
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
40
+ });
41
+ };
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateAct } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateActCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "CreateAct", {})
13
+ .n("NovaActClient", "CreateActCommand")
14
+ .sc(CreateAct)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateSession } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateSessionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "CreateSession", {})
13
+ .n("NovaActClient", "CreateSessionCommand")
14
+ .sc(CreateSession)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateWorkflowDefinition } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateWorkflowDefinitionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "CreateWorkflowDefinition", {})
13
+ .n("NovaActClient", "CreateWorkflowDefinitionCommand")
14
+ .sc(CreateWorkflowDefinition)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { CreateWorkflowRun } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class CreateWorkflowRunCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "CreateWorkflowRun", {})
13
+ .n("NovaActClient", "CreateWorkflowRunCommand")
14
+ .sc(CreateWorkflowRun)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteWorkflowDefinition } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteWorkflowDefinitionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "DeleteWorkflowDefinition", {})
13
+ .n("NovaActClient", "DeleteWorkflowDefinitionCommand")
14
+ .sc(DeleteWorkflowDefinition)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteWorkflowRun } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteWorkflowRunCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "DeleteWorkflowRun", {})
13
+ .n("NovaActClient", "DeleteWorkflowRunCommand")
14
+ .sc(DeleteWorkflowRun)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetWorkflowDefinition } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetWorkflowDefinitionCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "GetWorkflowDefinition", {})
13
+ .n("NovaActClient", "GetWorkflowDefinitionCommand")
14
+ .sc(GetWorkflowDefinition)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetWorkflowRun } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetWorkflowRunCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "GetWorkflowRun", {})
13
+ .n("NovaActClient", "GetWorkflowRunCommand")
14
+ .sc(GetWorkflowRun)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { InvokeActStep } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class InvokeActStepCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "InvokeActStep", {})
13
+ .n("NovaActClient", "InvokeActStepCommand")
14
+ .sc(InvokeActStep)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListActs } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListActsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "ListActs", {})
13
+ .n("NovaActClient", "ListActsCommand")
14
+ .sc(ListActs)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListModels } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListModelsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "ListModels", {})
13
+ .n("NovaActClient", "ListModelsCommand")
14
+ .sc(ListModels)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListSessions } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListSessionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "ListSessions", {})
13
+ .n("NovaActClient", "ListSessionsCommand")
14
+ .sc(ListSessions)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListWorkflowDefinitions } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListWorkflowDefinitionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "ListWorkflowDefinitions", {})
13
+ .n("NovaActClient", "ListWorkflowDefinitionsCommand")
14
+ .sc(ListWorkflowDefinitions)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListWorkflowRuns } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListWorkflowRunsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "ListWorkflowRuns", {})
13
+ .n("NovaActClient", "ListWorkflowRunsCommand")
14
+ .sc(ListWorkflowRuns)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateAct } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateActCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "UpdateAct", {})
13
+ .n("NovaActClient", "UpdateActCommand")
14
+ .sc(UpdateAct)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateWorkflowRun } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateWorkflowRunCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonNovaAgentsDataPlane", "UpdateWorkflowRun", {})
13
+ .n("NovaActClient", "UpdateWorkflowRunCommand")
14
+ .sc(UpdateWorkflowRun)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ export * from "./CreateActCommand";
2
+ export * from "./CreateSessionCommand";
3
+ export * from "./CreateWorkflowDefinitionCommand";
4
+ export * from "./CreateWorkflowRunCommand";
5
+ export * from "./DeleteWorkflowDefinitionCommand";
6
+ export * from "./DeleteWorkflowRunCommand";
7
+ export * from "./GetWorkflowDefinitionCommand";
8
+ export * from "./GetWorkflowRunCommand";
9
+ export * from "./InvokeActStepCommand";
10
+ export * from "./ListActsCommand";
11
+ export * from "./ListModelsCommand";
12
+ export * from "./ListSessionsCommand";
13
+ export * from "./ListWorkflowDefinitionsCommand";
14
+ export * from "./ListWorkflowRunsCommand";
15
+ export * from "./UpdateActCommand";
16
+ export * from "./UpdateWorkflowRunCommand";
@@ -0,0 +1,13 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
4
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
5
+ defaultSigningName: "nova-act",
6
+ });
7
+ };
8
+ export const commonParams = {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };