@aws-sdk/client-wafv2 3.1067.0 → 3.1069.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 (53) hide show
  1. package/README.md +28 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
  3. package/dist-cjs/endpoint/bdd.js +2 -5
  4. package/dist-cjs/endpoint/endpointResolver.js +7 -11
  5. package/dist-cjs/index.js +338 -225
  6. package/dist-cjs/models/WAFV2ServiceException.js +4 -8
  7. package/dist-cjs/models/errors.js +41 -64
  8. package/dist-cjs/runtimeConfig.browser.js +22 -26
  9. package/dist-cjs/runtimeConfig.js +30 -34
  10. package/dist-cjs/runtimeConfig.native.js +4 -7
  11. package/dist-cjs/runtimeConfig.shared.js +20 -24
  12. package/dist-cjs/schemas/schemas_0.js +970 -492
  13. package/dist-es/WAFV2.js +8 -0
  14. package/dist-es/commands/GetRevenueStatisticsCommand.js +16 -0
  15. package/dist-es/commands/GetRevenueStatisticsSummaryCommand.js +16 -0
  16. package/dist-es/commands/GetRevenueStatisticsTimeSeriesCommand.js +16 -0
  17. package/dist-es/commands/ListSettlementRecordsCommand.js +16 -0
  18. package/dist-es/commands/index.js +4 -0
  19. package/dist-es/models/enums.js +65 -0
  20. package/dist-es/schemas/schemas_0.js +216 -21
  21. package/dist-types/WAFV2.d.ts +28 -0
  22. package/dist-types/WAFV2Client.d.ts +6 -2
  23. package/dist-types/commands/CheckCapacityCommand.d.ts +12 -0
  24. package/dist-types/commands/CreateRuleGroupCommand.d.ts +29 -0
  25. package/dist-types/commands/CreateWebACLCommand.d.ts +29 -0
  26. package/dist-types/commands/DescribeManagedRuleGroupCommand.d.ts +3 -0
  27. package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +1 -1
  28. package/dist-types/commands/GetRevenueStatisticsCommand.d.ts +150 -0
  29. package/dist-types/commands/GetRevenueStatisticsSummaryCommand.d.ts +130 -0
  30. package/dist-types/commands/GetRevenueStatisticsTimeSeriesCommand.d.ts +139 -0
  31. package/dist-types/commands/GetRuleGroupCommand.d.ts +29 -0
  32. package/dist-types/commands/GetWebACLCommand.d.ts +29 -0
  33. package/dist-types/commands/GetWebACLForResourceCommand.d.ts +29 -0
  34. package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +1 -1
  35. package/dist-types/commands/ListSettlementRecordsCommand.d.ts +148 -0
  36. package/dist-types/commands/PutLoggingConfigurationCommand.d.ts +2 -2
  37. package/dist-types/commands/UpdateRuleGroupCommand.d.ts +29 -0
  38. package/dist-types/commands/UpdateWebACLCommand.d.ts +29 -0
  39. package/dist-types/commands/index.d.ts +4 -0
  40. package/dist-types/models/enums.d.ts +161 -0
  41. package/dist-types/models/models_0.d.ts +843 -114
  42. package/dist-types/schemas/schemas_0.d.ts +23 -0
  43. package/dist-types/ts3.4/WAFV2.d.ts +68 -0
  44. package/dist-types/ts3.4/WAFV2Client.d.ts +24 -0
  45. package/dist-types/ts3.4/commands/GetRevenueStatisticsCommand.d.ts +53 -0
  46. package/dist-types/ts3.4/commands/GetRevenueStatisticsSummaryCommand.d.ts +53 -0
  47. package/dist-types/ts3.4/commands/GetRevenueStatisticsTimeSeriesCommand.d.ts +53 -0
  48. package/dist-types/ts3.4/commands/ListSettlementRecordsCommand.d.ts +53 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  50. package/dist-types/ts3.4/models/enums.d.ts +83 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +154 -4
  52. package/dist-types/ts3.4/schemas/schemas_0.d.ts +23 -0
  53. package/package.json +8 -8
package/dist-es/WAFV2.js CHANGED
@@ -27,6 +27,9 @@ import { GetMobileSdkReleaseCommand, } from "./commands/GetMobileSdkReleaseComma
27
27
  import { GetPermissionPolicyCommand, } from "./commands/GetPermissionPolicyCommand";
28
28
  import { GetRateBasedStatementManagedKeysCommand, } from "./commands/GetRateBasedStatementManagedKeysCommand";
29
29
  import { GetRegexPatternSetCommand, } from "./commands/GetRegexPatternSetCommand";
30
+ import { GetRevenueStatisticsCommand, } from "./commands/GetRevenueStatisticsCommand";
31
+ import { GetRevenueStatisticsSummaryCommand, } from "./commands/GetRevenueStatisticsSummaryCommand";
32
+ import { GetRevenueStatisticsTimeSeriesCommand, } from "./commands/GetRevenueStatisticsTimeSeriesCommand";
30
33
  import { GetRuleGroupCommand, } from "./commands/GetRuleGroupCommand";
31
34
  import { GetSampledRequestsCommand, } from "./commands/GetSampledRequestsCommand";
32
35
  import { GetTopPathStatisticsByTrafficCommand, } from "./commands/GetTopPathStatisticsByTrafficCommand";
@@ -42,6 +45,7 @@ import { ListMobileSdkReleasesCommand, } from "./commands/ListMobileSdkReleasesC
42
45
  import { ListRegexPatternSetsCommand, } from "./commands/ListRegexPatternSetsCommand";
43
46
  import { ListResourcesForWebACLCommand, } from "./commands/ListResourcesForWebACLCommand";
44
47
  import { ListRuleGroupsCommand, } from "./commands/ListRuleGroupsCommand";
48
+ import { ListSettlementRecordsCommand, } from "./commands/ListSettlementRecordsCommand";
45
49
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
46
50
  import { ListWebACLsCommand, } from "./commands/ListWebACLsCommand";
47
51
  import { PutLoggingConfigurationCommand, } from "./commands/PutLoggingConfigurationCommand";
@@ -84,6 +88,9 @@ const commands = {
84
88
  GetPermissionPolicyCommand,
85
89
  GetRateBasedStatementManagedKeysCommand,
86
90
  GetRegexPatternSetCommand,
91
+ GetRevenueStatisticsCommand,
92
+ GetRevenueStatisticsSummaryCommand,
93
+ GetRevenueStatisticsTimeSeriesCommand,
87
94
  GetRuleGroupCommand,
88
95
  GetSampledRequestsCommand,
89
96
  GetTopPathStatisticsByTrafficCommand,
@@ -99,6 +106,7 @@ const commands = {
99
106
  ListRegexPatternSetsCommand,
100
107
  ListResourcesForWebACLCommand,
101
108
  ListRuleGroupsCommand,
109
+ ListSettlementRecordsCommand,
102
110
  ListTagsForResourceCommand,
103
111
  ListWebACLsCommand,
104
112
  PutLoggingConfigurationCommand,
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetRevenueStatistics$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetRevenueStatisticsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSWAF_20190729", "GetRevenueStatistics", {})
13
+ .n("WAFV2Client", "GetRevenueStatisticsCommand")
14
+ .sc(GetRevenueStatistics$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetRevenueStatisticsSummary$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetRevenueStatisticsSummaryCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSWAF_20190729", "GetRevenueStatisticsSummary", {})
13
+ .n("WAFV2Client", "GetRevenueStatisticsSummaryCommand")
14
+ .sc(GetRevenueStatisticsSummary$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetRevenueStatisticsTimeSeries$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetRevenueStatisticsTimeSeriesCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSWAF_20190729", "GetRevenueStatisticsTimeSeries", {})
13
+ .n("WAFV2Client", "GetRevenueStatisticsTimeSeriesCommand")
14
+ .sc(GetRevenueStatisticsTimeSeries$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListSettlementRecords$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListSettlementRecordsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AWSWAF_20190729", "ListSettlementRecords", {})
13
+ .n("WAFV2Client", "ListSettlementRecordsCommand")
14
+ .sc(ListSettlementRecords$)
15
+ .build() {
16
+ }
@@ -26,6 +26,9 @@ export * from "./GetMobileSdkReleaseCommand";
26
26
  export * from "./GetPermissionPolicyCommand";
27
27
  export * from "./GetRateBasedStatementManagedKeysCommand";
28
28
  export * from "./GetRegexPatternSetCommand";
29
+ export * from "./GetRevenueStatisticsCommand";
30
+ export * from "./GetRevenueStatisticsSummaryCommand";
31
+ export * from "./GetRevenueStatisticsTimeSeriesCommand";
29
32
  export * from "./GetRuleGroupCommand";
30
33
  export * from "./GetSampledRequestsCommand";
31
34
  export * from "./GetTopPathStatisticsByTrafficCommand";
@@ -41,6 +44,7 @@ export * from "./ListMobileSdkReleasesCommand";
41
44
  export * from "./ListRegexPatternSetsCommand";
42
45
  export * from "./ListResourcesForWebACLCommand";
43
46
  export * from "./ListRuleGroupsCommand";
47
+ export * from "./ListSettlementRecordsCommand";
44
48
  export * from "./ListTagsForResourceCommand";
45
49
  export * from "./ListWebACLsCommand";
46
50
  export * from "./PutLoggingConfigurationCommand";
@@ -5,6 +5,7 @@ export const ActionValue = {
5
5
  CHALLENGE: "CHALLENGE",
6
6
  COUNT: "COUNT",
7
7
  EXCLUDED_AS_COUNT: "EXCLUDED_AS_COUNT",
8
+ MONETIZE: "MONETIZE",
8
9
  };
9
10
  export const FallbackBehavior = {
10
11
  MATCH: "MATCH",
@@ -407,12 +408,15 @@ export const ParameterExceptionField = {
407
408
  MANAGED_RULE_SET_STATEMENT: "MANAGED_RULE_SET_STATEMENT",
408
409
  MAP_MATCH_SCOPE: "MAP_MATCH_SCOPE",
409
410
  METRIC_NAME: "METRIC_NAME",
411
+ MONETIZATION_CONFIG: "MONETIZATION_CONFIG",
410
412
  NOT_STATEMENT: "NOT_STATEMENT",
411
413
  OR_STATEMENT: "OR_STATEMENT",
412
414
  OVERRIDE_ACTION: "OVERRIDE_ACTION",
413
415
  OVERSIZE_HANDLING: "OVERSIZE_HANDLING",
414
416
  PAYLOAD_TYPE: "PAYLOAD_TYPE",
417
+ PAYMENT_NETWORK: "PAYMENT_NETWORK",
415
418
  POSITION: "POSITION",
419
+ PRICE_AMOUNT: "PRICE_AMOUNT",
416
420
  RATE_BASED_STATEMENT: "RATE_BASED_STATEMENT",
417
421
  REGEX_PATTERN_REFERENCE_STATEMENT: "REGEX_PATTERN_REFERENCE_STATEMENT",
418
422
  REGEX_PATTERN_SET: "REGEX_PATTERN_SET",
@@ -434,6 +438,7 @@ export const ParameterExceptionField = {
434
438
  TAG_KEYS: "TAG_KEYS",
435
439
  TEXT_TRANSFORMATION: "TEXT_TRANSFORMATION",
436
440
  TOKEN_DOMAIN: "TOKEN_DOMAIN",
441
+ WALLET_ADDRESS: "WALLET_ADDRESS",
437
442
  WEB_ACL: "WEB_ACL",
438
443
  XSS_MATCH_STATEMENT: "XSS_MATCH_STATEMENT",
439
444
  };
@@ -456,6 +461,19 @@ export const ResponseContentType = {
456
461
  TEXT_HTML: "TEXT_HTML",
457
462
  TEXT_PLAIN: "TEXT_PLAIN",
458
463
  };
464
+ export const BlockchainChain = {
465
+ BASE: "BASE",
466
+ BASE_SEPOLIA: "BASE_SEPOLIA",
467
+ SOLANA: "SOLANA",
468
+ SOLANA_DEVNET: "SOLANA_DEVNET",
469
+ };
470
+ export const CryptoCurrency = {
471
+ USDC: "USDC",
472
+ };
473
+ export const CurrencyMode = {
474
+ REAL: "REAL",
475
+ TEST: "TEST",
476
+ };
459
477
  export const DataProtectionAction = {
460
478
  HASH: "HASH",
461
479
  SUBSTITUTION: "SUBSTITUTION",
@@ -491,6 +509,39 @@ export const FilterRequirement = {
491
509
  MEETS_ALL: "MEETS_ALL",
492
510
  MEETS_ANY: "MEETS_ANY",
493
511
  };
512
+ export const Currency = {
513
+ USDC: "USDC",
514
+ };
515
+ export const GroupByType = {
516
+ CATEGORY: "CATEGORY",
517
+ INTENT: "INTENT",
518
+ NAME: "NAME",
519
+ ORGANIZATION: "ORGANIZATION",
520
+ WEBACL: "WEBACL",
521
+ };
522
+ export const RankingSortBy = {
523
+ NAME: "NAME",
524
+ PERCENTAGE: "PERCENTAGE",
525
+ REVENUE: "REVENUE",
526
+ };
527
+ export const SortOrder = {
528
+ ASC: "ASC",
529
+ DESC: "DESC",
530
+ };
531
+ export const RankingStatisticType = {
532
+ TOP_PATHS_BY_REVENUE: "TOP_PATHS_BY_REVENUE",
533
+ TOP_SOURCES_BY_REVENUE: "TOP_SOURCES_BY_REVENUE",
534
+ };
535
+ export const IntervalType = {
536
+ DAILY: "DAILY",
537
+ FIVE_MINUTELY: "FIVE_MINUTELY",
538
+ HOURLY: "HOURLY",
539
+ MINUTELY: "MINUTELY",
540
+ };
541
+ export const TimeSeriesStatisticType = {
542
+ DATE_HISTOGRAM: "DATE_HISTOGRAM",
543
+ PAYMENT_TRAFFIC: "PAYMENT_TRAFFIC",
544
+ };
494
545
  export const FailureReason = {
495
546
  TOKEN_DOMAIN_MISMATCH: "TOKEN_DOMAIN_MISMATCH",
496
547
  TOKEN_EXPIRED: "TOKEN_EXPIRED",
@@ -506,3 +557,17 @@ export const ResourceType = {
506
557
  COGNITIO_USER_POOL: "COGNITO_USER_POOL",
507
558
  VERIFIED_ACCESS_INSTANCE: "VERIFIED_ACCESS_INSTANCE",
508
559
  };
560
+ export const SettlementSortBy = {
561
+ AMOUNT: "AMOUNT",
562
+ NAME: "NAME",
563
+ STATUS: "STATUS",
564
+ TIMESTAMP: "TIMESTAMP",
565
+ };
566
+ export const SettlementStatus = {
567
+ DUPLICATE: "DUPLICATE",
568
+ FAILED: "FAILED",
569
+ PENDING: "PENDING",
570
+ SERVICE_ERROR: "SERVICE_ERROR",
571
+ SETTLED: "SETTLED",
572
+ SKIPPED_ORIGIN_ERROR: "SKIPPED_ORIGIN_ERROR",
573
+ };