@aws-sdk/client-nova-act 3.1076.0 → 3.1078.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 (68) hide show
  1. package/dist-cjs/index.js +27 -165
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateActCommand.js +2 -14
  4. package/dist-es/commands/CreateSessionCommand.js +2 -14
  5. package/dist-es/commands/CreateWorkflowDefinitionCommand.js +2 -14
  6. package/dist-es/commands/CreateWorkflowRunCommand.js +2 -14
  7. package/dist-es/commands/DeleteWorkflowDefinitionCommand.js +2 -14
  8. package/dist-es/commands/DeleteWorkflowRunCommand.js +2 -14
  9. package/dist-es/commands/GetWorkflowDefinitionCommand.js +2 -14
  10. package/dist-es/commands/GetWorkflowRunCommand.js +2 -14
  11. package/dist-es/commands/InvokeActStepCommand.js +2 -14
  12. package/dist-es/commands/ListActsCommand.js +2 -14
  13. package/dist-es/commands/ListModelsCommand.js +2 -14
  14. package/dist-es/commands/ListSessionsCommand.js +2 -14
  15. package/dist-es/commands/ListWorkflowDefinitionsCommand.js +2 -14
  16. package/dist-es/commands/ListWorkflowRunsCommand.js +2 -14
  17. package/dist-es/commands/UpdateActCommand.js +2 -14
  18. package/dist-es/commands/UpdateWorkflowRunCommand.js +2 -14
  19. package/dist-es/index.js +1 -0
  20. package/dist-es/runtimeConfig.browser.js +0 -2
  21. package/dist-es/runtimeConfig.js +1 -2
  22. package/dist-es/runtimeConfig.native.js +0 -2
  23. package/dist-es/runtimeConfig.shared.js +2 -0
  24. package/dist-types/commandBuilder.d.ts +18 -0
  25. package/dist-types/commands/CreateActCommand.d.ts +3 -8
  26. package/dist-types/commands/CreateSessionCommand.d.ts +3 -8
  27. package/dist-types/commands/CreateWorkflowDefinitionCommand.d.ts +3 -8
  28. package/dist-types/commands/CreateWorkflowRunCommand.d.ts +3 -8
  29. package/dist-types/commands/DeleteWorkflowDefinitionCommand.d.ts +3 -8
  30. package/dist-types/commands/DeleteWorkflowRunCommand.d.ts +3 -8
  31. package/dist-types/commands/GetWorkflowDefinitionCommand.d.ts +3 -8
  32. package/dist-types/commands/GetWorkflowRunCommand.d.ts +3 -8
  33. package/dist-types/commands/InvokeActStepCommand.d.ts +3 -8
  34. package/dist-types/commands/ListActsCommand.d.ts +3 -8
  35. package/dist-types/commands/ListModelsCommand.d.ts +3 -8
  36. package/dist-types/commands/ListSessionsCommand.d.ts +3 -8
  37. package/dist-types/commands/ListWorkflowDefinitionsCommand.d.ts +3 -8
  38. package/dist-types/commands/ListWorkflowRunsCommand.d.ts +3 -8
  39. package/dist-types/commands/UpdateActCommand.d.ts +3 -8
  40. package/dist-types/commands/UpdateWorkflowRunCommand.d.ts +3 -8
  41. package/dist-types/index.d.ts +1 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  43. package/dist-types/runtimeConfig.d.ts +1 -1
  44. package/dist-types/runtimeConfig.native.d.ts +1 -1
  45. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  46. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  47. package/dist-types/ts3.4/commands/CreateActCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/CreateWorkflowDefinitionCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/CreateWorkflowRunCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/DeleteWorkflowDefinitionCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/DeleteWorkflowRunCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/GetWorkflowDefinitionCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/GetWorkflowRunCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/InvokeActStepCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/ListActsCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/ListModelsCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/ListWorkflowDefinitionsCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/ListWorkflowRunsCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/UpdateActCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/UpdateWorkflowRunCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/index.d.ts +1 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  67. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  68. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultNovaActHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -833,6 +835,7 @@ const getRuntimeConfig$1 = (config) => {
833
835
  serviceTarget: "AmazonNovaAgentsDataPlane",
834
836
  },
835
837
  serviceId: config?.serviceId ?? "Nova Act",
838
+ sha256: config?.sha256 ?? Sha256,
836
839
  urlParser: config?.urlParser ?? parseUrl,
837
840
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
838
841
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -866,7 +869,6 @@ const getRuntimeConfig = (config) => {
866
869
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
867
870
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
868
871
  }, config),
869
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
870
872
  streamCollector: config?.streamCollector ?? streamCollector,
871
873
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
872
874
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -954,196 +956,56 @@ class NovaActClient extends Client {
954
956
  }
955
957
  }
956
958
 
957
- class CreateActCommand extends Command
958
- .classBuilder()
959
- .ep(commonParams)
960
- .m(function (Command, cs, config, o) {
961
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
962
- })
963
- .s("AmazonNovaAgentsDataPlane", "CreateAct", {})
964
- .n("NovaActClient", "CreateActCommand")
965
- .sc(CreateAct$)
966
- .build() {
959
+ const command = makeBuilder(commonParams, "AmazonNovaAgentsDataPlane", "NovaActClient", getEndpointPlugin);
960
+ const _ep0 = {};
961
+ const _mw0 = (Command, cs, config, o) => [];
962
+
963
+ class CreateActCommand extends command(_ep0, _mw0, "CreateAct", CreateAct$) {
967
964
  }
968
965
 
969
- class CreateSessionCommand extends Command
970
- .classBuilder()
971
- .ep(commonParams)
972
- .m(function (Command, cs, config, o) {
973
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
974
- })
975
- .s("AmazonNovaAgentsDataPlane", "CreateSession", {})
976
- .n("NovaActClient", "CreateSessionCommand")
977
- .sc(CreateSession$)
978
- .build() {
966
+ class CreateSessionCommand extends command(_ep0, _mw0, "CreateSession", CreateSession$) {
979
967
  }
980
968
 
981
- class CreateWorkflowDefinitionCommand extends Command
982
- .classBuilder()
983
- .ep(commonParams)
984
- .m(function (Command, cs, config, o) {
985
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
986
- })
987
- .s("AmazonNovaAgentsDataPlane", "CreateWorkflowDefinition", {})
988
- .n("NovaActClient", "CreateWorkflowDefinitionCommand")
989
- .sc(CreateWorkflowDefinition$)
990
- .build() {
969
+ class CreateWorkflowDefinitionCommand extends command(_ep0, _mw0, "CreateWorkflowDefinition", CreateWorkflowDefinition$) {
991
970
  }
992
971
 
993
- class CreateWorkflowRunCommand extends Command
994
- .classBuilder()
995
- .ep(commonParams)
996
- .m(function (Command, cs, config, o) {
997
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
998
- })
999
- .s("AmazonNovaAgentsDataPlane", "CreateWorkflowRun", {})
1000
- .n("NovaActClient", "CreateWorkflowRunCommand")
1001
- .sc(CreateWorkflowRun$)
1002
- .build() {
972
+ class CreateWorkflowRunCommand extends command(_ep0, _mw0, "CreateWorkflowRun", CreateWorkflowRun$) {
1003
973
  }
1004
974
 
1005
- class DeleteWorkflowDefinitionCommand extends Command
1006
- .classBuilder()
1007
- .ep(commonParams)
1008
- .m(function (Command, cs, config, o) {
1009
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1010
- })
1011
- .s("AmazonNovaAgentsDataPlane", "DeleteWorkflowDefinition", {})
1012
- .n("NovaActClient", "DeleteWorkflowDefinitionCommand")
1013
- .sc(DeleteWorkflowDefinition$)
1014
- .build() {
975
+ class DeleteWorkflowDefinitionCommand extends command(_ep0, _mw0, "DeleteWorkflowDefinition", DeleteWorkflowDefinition$) {
1015
976
  }
1016
977
 
1017
- class DeleteWorkflowRunCommand extends Command
1018
- .classBuilder()
1019
- .ep(commonParams)
1020
- .m(function (Command, cs, config, o) {
1021
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1022
- })
1023
- .s("AmazonNovaAgentsDataPlane", "DeleteWorkflowRun", {})
1024
- .n("NovaActClient", "DeleteWorkflowRunCommand")
1025
- .sc(DeleteWorkflowRun$)
1026
- .build() {
978
+ class DeleteWorkflowRunCommand extends command(_ep0, _mw0, "DeleteWorkflowRun", DeleteWorkflowRun$) {
1027
979
  }
1028
980
 
1029
- class GetWorkflowDefinitionCommand extends Command
1030
- .classBuilder()
1031
- .ep(commonParams)
1032
- .m(function (Command, cs, config, o) {
1033
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1034
- })
1035
- .s("AmazonNovaAgentsDataPlane", "GetWorkflowDefinition", {})
1036
- .n("NovaActClient", "GetWorkflowDefinitionCommand")
1037
- .sc(GetWorkflowDefinition$)
1038
- .build() {
981
+ class GetWorkflowDefinitionCommand extends command(_ep0, _mw0, "GetWorkflowDefinition", GetWorkflowDefinition$) {
1039
982
  }
1040
983
 
1041
- class GetWorkflowRunCommand extends Command
1042
- .classBuilder()
1043
- .ep(commonParams)
1044
- .m(function (Command, cs, config, o) {
1045
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1046
- })
1047
- .s("AmazonNovaAgentsDataPlane", "GetWorkflowRun", {})
1048
- .n("NovaActClient", "GetWorkflowRunCommand")
1049
- .sc(GetWorkflowRun$)
1050
- .build() {
984
+ class GetWorkflowRunCommand extends command(_ep0, _mw0, "GetWorkflowRun", GetWorkflowRun$) {
1051
985
  }
1052
986
 
1053
- class InvokeActStepCommand extends Command
1054
- .classBuilder()
1055
- .ep(commonParams)
1056
- .m(function (Command, cs, config, o) {
1057
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1058
- })
1059
- .s("AmazonNovaAgentsDataPlane", "InvokeActStep", {})
1060
- .n("NovaActClient", "InvokeActStepCommand")
1061
- .sc(InvokeActStep$)
1062
- .build() {
987
+ class InvokeActStepCommand extends command(_ep0, _mw0, "InvokeActStep", InvokeActStep$) {
1063
988
  }
1064
989
 
1065
- class ListActsCommand extends Command
1066
- .classBuilder()
1067
- .ep(commonParams)
1068
- .m(function (Command, cs, config, o) {
1069
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1070
- })
1071
- .s("AmazonNovaAgentsDataPlane", "ListActs", {})
1072
- .n("NovaActClient", "ListActsCommand")
1073
- .sc(ListActs$)
1074
- .build() {
990
+ class ListActsCommand extends command(_ep0, _mw0, "ListActs", ListActs$) {
1075
991
  }
1076
992
 
1077
- class ListModelsCommand extends Command
1078
- .classBuilder()
1079
- .ep(commonParams)
1080
- .m(function (Command, cs, config, o) {
1081
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1082
- })
1083
- .s("AmazonNovaAgentsDataPlane", "ListModels", {})
1084
- .n("NovaActClient", "ListModelsCommand")
1085
- .sc(ListModels$)
1086
- .build() {
993
+ class ListModelsCommand extends command(_ep0, _mw0, "ListModels", ListModels$) {
1087
994
  }
1088
995
 
1089
- class ListSessionsCommand extends Command
1090
- .classBuilder()
1091
- .ep(commonParams)
1092
- .m(function (Command, cs, config, o) {
1093
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1094
- })
1095
- .s("AmazonNovaAgentsDataPlane", "ListSessions", {})
1096
- .n("NovaActClient", "ListSessionsCommand")
1097
- .sc(ListSessions$)
1098
- .build() {
996
+ class ListSessionsCommand extends command(_ep0, _mw0, "ListSessions", ListSessions$) {
1099
997
  }
1100
998
 
1101
- class ListWorkflowDefinitionsCommand extends Command
1102
- .classBuilder()
1103
- .ep(commonParams)
1104
- .m(function (Command, cs, config, o) {
1105
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1106
- })
1107
- .s("AmazonNovaAgentsDataPlane", "ListWorkflowDefinitions", {})
1108
- .n("NovaActClient", "ListWorkflowDefinitionsCommand")
1109
- .sc(ListWorkflowDefinitions$)
1110
- .build() {
999
+ class ListWorkflowDefinitionsCommand extends command(_ep0, _mw0, "ListWorkflowDefinitions", ListWorkflowDefinitions$) {
1111
1000
  }
1112
1001
 
1113
- class ListWorkflowRunsCommand extends Command
1114
- .classBuilder()
1115
- .ep(commonParams)
1116
- .m(function (Command, cs, config, o) {
1117
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1118
- })
1119
- .s("AmazonNovaAgentsDataPlane", "ListWorkflowRuns", {})
1120
- .n("NovaActClient", "ListWorkflowRunsCommand")
1121
- .sc(ListWorkflowRuns$)
1122
- .build() {
1002
+ class ListWorkflowRunsCommand extends command(_ep0, _mw0, "ListWorkflowRuns", ListWorkflowRuns$) {
1123
1003
  }
1124
1004
 
1125
- class UpdateActCommand extends Command
1126
- .classBuilder()
1127
- .ep(commonParams)
1128
- .m(function (Command, cs, config, o) {
1129
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1130
- })
1131
- .s("AmazonNovaAgentsDataPlane", "UpdateAct", {})
1132
- .n("NovaActClient", "UpdateActCommand")
1133
- .sc(UpdateAct$)
1134
- .build() {
1005
+ class UpdateActCommand extends command(_ep0, _mw0, "UpdateAct", UpdateAct$) {
1135
1006
  }
1136
1007
 
1137
- class UpdateWorkflowRunCommand extends Command
1138
- .classBuilder()
1139
- .ep(commonParams)
1140
- .m(function (Command, cs, config, o) {
1141
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1142
- })
1143
- .s("AmazonNovaAgentsDataPlane", "UpdateWorkflowRun", {})
1144
- .n("NovaActClient", "UpdateWorkflowRunCommand")
1145
- .sc(UpdateWorkflowRun$)
1146
- .build() {
1008
+ class UpdateWorkflowRunCommand extends command(_ep0, _mw0, "UpdateWorkflowRun", UpdateWorkflowRun$) {
1147
1009
  }
1148
1010
 
1149
1011
  const paginateListActs = createPaginator(NovaActClient, ListActsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AmazonNovaAgentsDataPlane", "NovaActClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class CreateActCommand extends command(_ep0, _mw0, "CreateAct", CreateAct$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class CreateSessionCommand extends command(_ep0, _mw0, "CreateSession", CreateSession$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class CreateWorkflowDefinitionCommand extends command(_ep0, _mw0, "CreateWorkflowDefinition", CreateWorkflowDefinition$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class CreateWorkflowRunCommand extends command(_ep0, _mw0, "CreateWorkflowRun", CreateWorkflowRun$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class DeleteWorkflowDefinitionCommand extends command(_ep0, _mw0, "DeleteWorkflowDefinition", DeleteWorkflowDefinition$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class DeleteWorkflowRunCommand extends command(_ep0, _mw0, "DeleteWorkflowRun", DeleteWorkflowRun$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class GetWorkflowDefinitionCommand extends command(_ep0, _mw0, "GetWorkflowDefinition", GetWorkflowDefinition$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class GetWorkflowRunCommand extends command(_ep0, _mw0, "GetWorkflowRun", GetWorkflowRun$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class InvokeActStepCommand extends command(_ep0, _mw0, "InvokeActStep", InvokeActStep$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class ListActsCommand extends command(_ep0, _mw0, "ListActs", ListActs$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class ListModelsCommand extends command(_ep0, _mw0, "ListModels", ListModels$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class ListSessionsCommand extends command(_ep0, _mw0, "ListSessions", ListSessions$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class ListWorkflowDefinitionsCommand extends command(_ep0, _mw0, "ListWorkflowDefinitions", ListWorkflowDefinitions$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class ListWorkflowRunsCommand extends command(_ep0, _mw0, "ListWorkflowRuns", ListWorkflowRuns$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class UpdateActCommand extends command(_ep0, _mw0, "UpdateAct", UpdateAct$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  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() {
3
+ export class UpdateWorkflowRunCommand extends command(_ep0, _mw0, "UpdateWorkflowRun", UpdateWorkflowRun$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./NovaActClient";
2
2
  export * from "./NovaAct";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };