@aws-sdk/client-support-app 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 (50) hide show
  1. package/dist-cjs/index.js +21 -105
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateSlackChannelConfigurationCommand.js +2 -14
  4. package/dist-es/commands/DeleteAccountAliasCommand.js +2 -14
  5. package/dist-es/commands/DeleteSlackChannelConfigurationCommand.js +2 -14
  6. package/dist-es/commands/DeleteSlackWorkspaceConfigurationCommand.js +2 -14
  7. package/dist-es/commands/GetAccountAliasCommand.js +2 -14
  8. package/dist-es/commands/ListSlackChannelConfigurationsCommand.js +2 -14
  9. package/dist-es/commands/ListSlackWorkspaceConfigurationsCommand.js +2 -14
  10. package/dist-es/commands/PutAccountAliasCommand.js +2 -14
  11. package/dist-es/commands/RegisterSlackWorkspaceForOrganizationCommand.js +2 -14
  12. package/dist-es/commands/UpdateSlackChannelConfigurationCommand.js +2 -14
  13. package/dist-es/index.js +1 -0
  14. package/dist-es/runtimeConfig.browser.js +0 -2
  15. package/dist-es/runtimeConfig.js +1 -2
  16. package/dist-es/runtimeConfig.native.js +0 -2
  17. package/dist-es/runtimeConfig.shared.js +2 -0
  18. package/dist-types/commandBuilder.d.ts +18 -0
  19. package/dist-types/commands/CreateSlackChannelConfigurationCommand.d.ts +3 -8
  20. package/dist-types/commands/DeleteAccountAliasCommand.d.ts +3 -8
  21. package/dist-types/commands/DeleteSlackChannelConfigurationCommand.d.ts +3 -8
  22. package/dist-types/commands/DeleteSlackWorkspaceConfigurationCommand.d.ts +3 -8
  23. package/dist-types/commands/GetAccountAliasCommand.d.ts +3 -8
  24. package/dist-types/commands/ListSlackChannelConfigurationsCommand.d.ts +3 -8
  25. package/dist-types/commands/ListSlackWorkspaceConfigurationsCommand.d.ts +3 -8
  26. package/dist-types/commands/PutAccountAliasCommand.d.ts +3 -8
  27. package/dist-types/commands/RegisterSlackWorkspaceForOrganizationCommand.d.ts +3 -8
  28. package/dist-types/commands/UpdateSlackChannelConfigurationCommand.d.ts +3 -8
  29. package/dist-types/index.d.ts +1 -0
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  31. package/dist-types/runtimeConfig.d.ts +1 -1
  32. package/dist-types/runtimeConfig.native.d.ts +1 -1
  33. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  34. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  35. package/dist-types/ts3.4/commands/CreateSlackChannelConfigurationCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/DeleteAccountAliasCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/DeleteSlackChannelConfigurationCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/DeleteSlackWorkspaceConfigurationCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/GetAccountAliasCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/ListSlackChannelConfigurationsCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/ListSlackWorkspaceConfigurationsCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/PutAccountAliasCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/RegisterSlackWorkspaceForOrganizationCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/UpdateSlackChannelConfigurationCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/index.d.ts +1 -0
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  50. 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 defaultSupportAppHttpAuthSchemeParametersProvider = 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
 
@@ -488,6 +490,7 @@ const getRuntimeConfig$1 = (config) => {
488
490
  serviceTarget: "SupportApp",
489
491
  },
490
492
  serviceId: config?.serviceId ?? "Support App",
493
+ sha256: config?.sha256 ?? Sha256,
491
494
  urlParser: config?.urlParser ?? parseUrl,
492
495
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
493
496
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -521,7 +524,6 @@ const getRuntimeConfig = (config) => {
521
524
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
522
525
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
523
526
  }, config),
524
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
525
527
  streamCollector: config?.streamCollector ?? streamCollector,
526
528
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
527
529
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -609,124 +611,38 @@ class SupportAppClient extends Client {
609
611
  }
610
612
  }
611
613
 
612
- class CreateSlackChannelConfigurationCommand extends Command
613
- .classBuilder()
614
- .ep(commonParams)
615
- .m(function (Command, cs, config, o) {
616
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
617
- })
618
- .s("SupportApp", "CreateSlackChannelConfiguration", {})
619
- .n("SupportAppClient", "CreateSlackChannelConfigurationCommand")
620
- .sc(CreateSlackChannelConfiguration$)
621
- .build() {
614
+ const command = makeBuilder(commonParams, "SupportApp", "SupportAppClient", getEndpointPlugin);
615
+ const _ep0 = {};
616
+ const _mw0 = (Command, cs, config, o) => [];
617
+
618
+ class CreateSlackChannelConfigurationCommand extends command(_ep0, _mw0, "CreateSlackChannelConfiguration", CreateSlackChannelConfiguration$) {
622
619
  }
623
620
 
624
- class DeleteAccountAliasCommand extends Command
625
- .classBuilder()
626
- .ep(commonParams)
627
- .m(function (Command, cs, config, o) {
628
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
629
- })
630
- .s("SupportApp", "DeleteAccountAlias", {})
631
- .n("SupportAppClient", "DeleteAccountAliasCommand")
632
- .sc(DeleteAccountAlias$)
633
- .build() {
621
+ class DeleteAccountAliasCommand extends command(_ep0, _mw0, "DeleteAccountAlias", DeleteAccountAlias$) {
634
622
  }
635
623
 
636
- class DeleteSlackChannelConfigurationCommand extends Command
637
- .classBuilder()
638
- .ep(commonParams)
639
- .m(function (Command, cs, config, o) {
640
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
641
- })
642
- .s("SupportApp", "DeleteSlackChannelConfiguration", {})
643
- .n("SupportAppClient", "DeleteSlackChannelConfigurationCommand")
644
- .sc(DeleteSlackChannelConfiguration$)
645
- .build() {
624
+ class DeleteSlackChannelConfigurationCommand extends command(_ep0, _mw0, "DeleteSlackChannelConfiguration", DeleteSlackChannelConfiguration$) {
646
625
  }
647
626
 
648
- class DeleteSlackWorkspaceConfigurationCommand extends Command
649
- .classBuilder()
650
- .ep(commonParams)
651
- .m(function (Command, cs, config, o) {
652
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
653
- })
654
- .s("SupportApp", "DeleteSlackWorkspaceConfiguration", {})
655
- .n("SupportAppClient", "DeleteSlackWorkspaceConfigurationCommand")
656
- .sc(DeleteSlackWorkspaceConfiguration$)
657
- .build() {
627
+ class DeleteSlackWorkspaceConfigurationCommand extends command(_ep0, _mw0, "DeleteSlackWorkspaceConfiguration", DeleteSlackWorkspaceConfiguration$) {
658
628
  }
659
629
 
660
- class GetAccountAliasCommand extends Command
661
- .classBuilder()
662
- .ep(commonParams)
663
- .m(function (Command, cs, config, o) {
664
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
665
- })
666
- .s("SupportApp", "GetAccountAlias", {})
667
- .n("SupportAppClient", "GetAccountAliasCommand")
668
- .sc(GetAccountAlias$)
669
- .build() {
630
+ class GetAccountAliasCommand extends command(_ep0, _mw0, "GetAccountAlias", GetAccountAlias$) {
670
631
  }
671
632
 
672
- class ListSlackChannelConfigurationsCommand extends Command
673
- .classBuilder()
674
- .ep(commonParams)
675
- .m(function (Command, cs, config, o) {
676
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
677
- })
678
- .s("SupportApp", "ListSlackChannelConfigurations", {})
679
- .n("SupportAppClient", "ListSlackChannelConfigurationsCommand")
680
- .sc(ListSlackChannelConfigurations$)
681
- .build() {
633
+ class ListSlackChannelConfigurationsCommand extends command(_ep0, _mw0, "ListSlackChannelConfigurations", ListSlackChannelConfigurations$) {
682
634
  }
683
635
 
684
- class ListSlackWorkspaceConfigurationsCommand extends Command
685
- .classBuilder()
686
- .ep(commonParams)
687
- .m(function (Command, cs, config, o) {
688
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
689
- })
690
- .s("SupportApp", "ListSlackWorkspaceConfigurations", {})
691
- .n("SupportAppClient", "ListSlackWorkspaceConfigurationsCommand")
692
- .sc(ListSlackWorkspaceConfigurations$)
693
- .build() {
636
+ class ListSlackWorkspaceConfigurationsCommand extends command(_ep0, _mw0, "ListSlackWorkspaceConfigurations", ListSlackWorkspaceConfigurations$) {
694
637
  }
695
638
 
696
- class PutAccountAliasCommand extends Command
697
- .classBuilder()
698
- .ep(commonParams)
699
- .m(function (Command, cs, config, o) {
700
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
701
- })
702
- .s("SupportApp", "PutAccountAlias", {})
703
- .n("SupportAppClient", "PutAccountAliasCommand")
704
- .sc(PutAccountAlias$)
705
- .build() {
639
+ class PutAccountAliasCommand extends command(_ep0, _mw0, "PutAccountAlias", PutAccountAlias$) {
706
640
  }
707
641
 
708
- class RegisterSlackWorkspaceForOrganizationCommand extends Command
709
- .classBuilder()
710
- .ep(commonParams)
711
- .m(function (Command, cs, config, o) {
712
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
713
- })
714
- .s("SupportApp", "RegisterSlackWorkspaceForOrganization", {})
715
- .n("SupportAppClient", "RegisterSlackWorkspaceForOrganizationCommand")
716
- .sc(RegisterSlackWorkspaceForOrganization$)
717
- .build() {
642
+ class RegisterSlackWorkspaceForOrganizationCommand extends command(_ep0, _mw0, "RegisterSlackWorkspaceForOrganization", RegisterSlackWorkspaceForOrganization$) {
718
643
  }
719
644
 
720
- class UpdateSlackChannelConfigurationCommand extends Command
721
- .classBuilder()
722
- .ep(commonParams)
723
- .m(function (Command, cs, config, o) {
724
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
725
- })
726
- .s("SupportApp", "UpdateSlackChannelConfiguration", {})
727
- .n("SupportAppClient", "UpdateSlackChannelConfigurationCommand")
728
- .sc(UpdateSlackChannelConfiguration$)
729
- .build() {
645
+ class UpdateSlackChannelConfigurationCommand extends command(_ep0, _mw0, "UpdateSlackChannelConfiguration", UpdateSlackChannelConfiguration$) {
730
646
  }
731
647
 
732
648
  const paginateListSlackChannelConfigurations = createPaginator(SupportAppClient, ListSlackChannelConfigurationsCommand, "nextToken", "nextToken", "");
@@ -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, "SupportApp", "SupportAppClient", 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 { CreateSlackChannelConfiguration$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateSlackChannelConfigurationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "CreateSlackChannelConfiguration", {})
13
- .n("SupportAppClient", "CreateSlackChannelConfigurationCommand")
14
- .sc(CreateSlackChannelConfiguration$)
15
- .build() {
3
+ export class CreateSlackChannelConfigurationCommand extends command(_ep0, _mw0, "CreateSlackChannelConfiguration", CreateSlackChannelConfiguration$) {
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 { DeleteAccountAlias$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteAccountAliasCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "DeleteAccountAlias", {})
13
- .n("SupportAppClient", "DeleteAccountAliasCommand")
14
- .sc(DeleteAccountAlias$)
15
- .build() {
3
+ export class DeleteAccountAliasCommand extends command(_ep0, _mw0, "DeleteAccountAlias", DeleteAccountAlias$) {
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 { DeleteSlackChannelConfiguration$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteSlackChannelConfigurationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "DeleteSlackChannelConfiguration", {})
13
- .n("SupportAppClient", "DeleteSlackChannelConfigurationCommand")
14
- .sc(DeleteSlackChannelConfiguration$)
15
- .build() {
3
+ export class DeleteSlackChannelConfigurationCommand extends command(_ep0, _mw0, "DeleteSlackChannelConfiguration", DeleteSlackChannelConfiguration$) {
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 { DeleteSlackWorkspaceConfiguration$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteSlackWorkspaceConfigurationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "DeleteSlackWorkspaceConfiguration", {})
13
- .n("SupportAppClient", "DeleteSlackWorkspaceConfigurationCommand")
14
- .sc(DeleteSlackWorkspaceConfiguration$)
15
- .build() {
3
+ export class DeleteSlackWorkspaceConfigurationCommand extends command(_ep0, _mw0, "DeleteSlackWorkspaceConfiguration", DeleteSlackWorkspaceConfiguration$) {
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 { GetAccountAlias$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAccountAliasCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "GetAccountAlias", {})
13
- .n("SupportAppClient", "GetAccountAliasCommand")
14
- .sc(GetAccountAlias$)
15
- .build() {
3
+ export class GetAccountAliasCommand extends command(_ep0, _mw0, "GetAccountAlias", GetAccountAlias$) {
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 { ListSlackChannelConfigurations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSlackChannelConfigurationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "ListSlackChannelConfigurations", {})
13
- .n("SupportAppClient", "ListSlackChannelConfigurationsCommand")
14
- .sc(ListSlackChannelConfigurations$)
15
- .build() {
3
+ export class ListSlackChannelConfigurationsCommand extends command(_ep0, _mw0, "ListSlackChannelConfigurations", ListSlackChannelConfigurations$) {
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 { ListSlackWorkspaceConfigurations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSlackWorkspaceConfigurationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "ListSlackWorkspaceConfigurations", {})
13
- .n("SupportAppClient", "ListSlackWorkspaceConfigurationsCommand")
14
- .sc(ListSlackWorkspaceConfigurations$)
15
- .build() {
3
+ export class ListSlackWorkspaceConfigurationsCommand extends command(_ep0, _mw0, "ListSlackWorkspaceConfigurations", ListSlackWorkspaceConfigurations$) {
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 { PutAccountAlias$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutAccountAliasCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "PutAccountAlias", {})
13
- .n("SupportAppClient", "PutAccountAliasCommand")
14
- .sc(PutAccountAlias$)
15
- .build() {
3
+ export class PutAccountAliasCommand extends command(_ep0, _mw0, "PutAccountAlias", PutAccountAlias$) {
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 { RegisterSlackWorkspaceForOrganization$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RegisterSlackWorkspaceForOrganizationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "RegisterSlackWorkspaceForOrganization", {})
13
- .n("SupportAppClient", "RegisterSlackWorkspaceForOrganizationCommand")
14
- .sc(RegisterSlackWorkspaceForOrganization$)
15
- .build() {
3
+ export class RegisterSlackWorkspaceForOrganizationCommand extends command(_ep0, _mw0, "RegisterSlackWorkspaceForOrganization", RegisterSlackWorkspaceForOrganization$) {
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 { UpdateSlackChannelConfiguration$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateSlackChannelConfigurationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("SupportApp", "UpdateSlackChannelConfiguration", {})
13
- .n("SupportAppClient", "UpdateSlackChannelConfigurationCommand")
14
- .sc(UpdateSlackChannelConfiguration$)
15
- .build() {
3
+ export class UpdateSlackChannelConfigurationCommand extends command(_ep0, _mw0, "UpdateSlackChannelConfiguration", UpdateSlackChannelConfiguration$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./SupportAppClient";
2
2
  export * from "./SupportApp";
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
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "SupportApp",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Support App",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { ServiceInputTypes, ServiceOutputTypes, SupportAppClientResolvedConfig } from "./SupportAppClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateSlackChannelConfigurationRequest, CreateSlackChannelConfigurationResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SupportAppClientResolvedConfig } from "../SupportAppClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateSlackChannelConfigurationCommandInput extends CreateSlack
22
19
  export interface CreateSlackChannelConfigurationCommandOutput extends CreateSlackChannelConfigurationResult, __MetadataBearer {
23
20
  }
24
21
  declare const CreateSlackChannelConfigurationCommand_base: {
25
- new (input: CreateSlackChannelConfigurationCommandInput): import("@smithy/core/client").CommandImpl<CreateSlackChannelConfigurationCommandInput, CreateSlackChannelConfigurationCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateSlackChannelConfigurationCommandInput): import("@smithy/core/client").CommandImpl<CreateSlackChannelConfigurationCommandInput, CreateSlackChannelConfigurationCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateSlackChannelConfigurationCommandInput): import("@smithy/core/client").CommandImpl<CreateSlackChannelConfigurationCommandInput, CreateSlackChannelConfigurationCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateSlackChannelConfigurationCommandInput): import("@smithy/core/client").CommandImpl<CreateSlackChannelConfigurationCommandInput, CreateSlackChannelConfigurationCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a Slack channel configuration for your Amazon Web Services account.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteAccountAliasRequest, DeleteAccountAliasResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SupportAppClientResolvedConfig } from "../SupportAppClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteAccountAliasCommandInput extends DeleteAccountAliasReques
22
19
  export interface DeleteAccountAliasCommandOutput extends DeleteAccountAliasResult, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteAccountAliasCommand_base: {
25
- new (input: DeleteAccountAliasCommandInput): import("@smithy/core/client").CommandImpl<DeleteAccountAliasCommandInput, DeleteAccountAliasCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [DeleteAccountAliasCommandInput]): import("@smithy/core/client").CommandImpl<DeleteAccountAliasCommandInput, DeleteAccountAliasCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteAccountAliasCommandInput): import("@smithy/core/client").CommandImpl<DeleteAccountAliasCommandInput, DeleteAccountAliasCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [DeleteAccountAliasCommandInput]): import("@smithy/core/client").CommandImpl<DeleteAccountAliasCommandInput, DeleteAccountAliasCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes an alias for an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteSlackChannelConfigurationRequest, DeleteSlackChannelConfigurationResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SupportAppClientResolvedConfig } from "../SupportAppClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteSlackChannelConfigurationCommandInput extends DeleteSlack
22
19
  export interface DeleteSlackChannelConfigurationCommandOutput extends DeleteSlackChannelConfigurationResult, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteSlackChannelConfigurationCommand_base: {
25
- new (input: DeleteSlackChannelConfigurationCommandInput): import("@smithy/core/client").CommandImpl<DeleteSlackChannelConfigurationCommandInput, DeleteSlackChannelConfigurationCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteSlackChannelConfigurationCommandInput): import("@smithy/core/client").CommandImpl<DeleteSlackChannelConfigurationCommandInput, DeleteSlackChannelConfigurationCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteSlackChannelConfigurationCommandInput): import("@smithy/core/client").CommandImpl<DeleteSlackChannelConfigurationCommandInput, DeleteSlackChannelConfigurationCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteSlackChannelConfigurationCommandInput): import("@smithy/core/client").CommandImpl<DeleteSlackChannelConfigurationCommandInput, DeleteSlackChannelConfigurationCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a Slack channel configuration from your Amazon Web Services account. This operation doesn't
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeleteSlackWorkspaceConfigurationRequest, DeleteSlackWorkspaceConfigurationResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SupportAppClientResolvedConfig } from "../SupportAppClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteSlackWorkspaceConfigurationCommandInput extends DeleteSla
22
19
  export interface DeleteSlackWorkspaceConfigurationCommandOutput extends DeleteSlackWorkspaceConfigurationResult, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteSlackWorkspaceConfigurationCommand_base: {
25
- new (input: DeleteSlackWorkspaceConfigurationCommandInput): import("@smithy/core/client").CommandImpl<DeleteSlackWorkspaceConfigurationCommandInput, DeleteSlackWorkspaceConfigurationCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteSlackWorkspaceConfigurationCommandInput): import("@smithy/core/client").CommandImpl<DeleteSlackWorkspaceConfigurationCommandInput, DeleteSlackWorkspaceConfigurationCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteSlackWorkspaceConfigurationCommandInput): import("@smithy/core/client").CommandImpl<DeleteSlackWorkspaceConfigurationCommandInput, DeleteSlackWorkspaceConfigurationCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteSlackWorkspaceConfigurationCommandInput): import("@smithy/core/client").CommandImpl<DeleteSlackWorkspaceConfigurationCommandInput, DeleteSlackWorkspaceConfigurationCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a Slack workspace configuration from your Amazon Web Services account. This operation doesn't
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { GetAccountAliasRequest, GetAccountAliasResult } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, SupportAppClientResolvedConfig } from "../SupportAppClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface GetAccountAliasCommandInput extends GetAccountAliasRequest {
22
19
  export interface GetAccountAliasCommandOutput extends GetAccountAliasResult, __MetadataBearer {
23
20
  }
24
21
  declare const GetAccountAliasCommand_base: {
25
- new (input: GetAccountAliasCommandInput): import("@smithy/core/client").CommandImpl<GetAccountAliasCommandInput, GetAccountAliasCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetAccountAliasCommandInput]): import("@smithy/core/client").CommandImpl<GetAccountAliasCommandInput, GetAccountAliasCommandOutput, SupportAppClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetAccountAliasCommandInput): import("@smithy/core/client").CommandImpl<GetAccountAliasCommandInput, GetAccountAliasCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [GetAccountAliasCommandInput]): import("@smithy/core/client").CommandImpl<GetAccountAliasCommandInput, GetAccountAliasCommandOutput, import("..").SupportAppClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Retrieves the alias from an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of