@aws-sdk/client-lex-models-v2 3.1037.0 → 3.1038.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 (28) hide show
  1. package/dist-cjs/index.js +1 -1
  2. package/dist-es/waiters/waitForBotAliasAvailable.js +1 -1
  3. package/dist-es/waiters/waitForBotAvailable.js +1 -1
  4. package/dist-es/waiters/waitForBotExportCompleted.js +1 -1
  5. package/dist-es/waiters/waitForBotImportCompleted.js +1 -1
  6. package/dist-es/waiters/waitForBotLocaleBuilt.js +1 -1
  7. package/dist-es/waiters/waitForBotLocaleCreated.js +1 -1
  8. package/dist-es/waiters/waitForBotLocaleExpressTestingAvailable.js +1 -1
  9. package/dist-es/waiters/waitForBotVersionAvailable.js +2 -2
  10. package/dist-types/LexModelsV2.d.ts +8 -8
  11. package/dist-types/ts3.4/LexModelsV2.d.ts +8 -8
  12. package/dist-types/ts3.4/waiters/waitForBotAliasAvailable.d.ts +9 -3
  13. package/dist-types/ts3.4/waiters/waitForBotAvailable.d.ts +9 -3
  14. package/dist-types/ts3.4/waiters/waitForBotExportCompleted.d.ts +9 -3
  15. package/dist-types/ts3.4/waiters/waitForBotImportCompleted.d.ts +9 -3
  16. package/dist-types/ts3.4/waiters/waitForBotLocaleBuilt.d.ts +9 -3
  17. package/dist-types/ts3.4/waiters/waitForBotLocaleCreated.d.ts +9 -3
  18. package/dist-types/ts3.4/waiters/waitForBotLocaleExpressTestingAvailable.d.ts +9 -3
  19. package/dist-types/ts3.4/waiters/waitForBotVersionAvailable.d.ts +9 -3
  20. package/dist-types/waiters/waitForBotAliasAvailable.d.ts +4 -3
  21. package/dist-types/waiters/waitForBotAvailable.d.ts +4 -3
  22. package/dist-types/waiters/waitForBotExportCompleted.d.ts +4 -3
  23. package/dist-types/waiters/waitForBotImportCompleted.d.ts +4 -3
  24. package/dist-types/waiters/waitForBotLocaleBuilt.d.ts +4 -3
  25. package/dist-types/waiters/waitForBotLocaleCreated.d.ts +4 -3
  26. package/dist-types/waiters/waitForBotLocaleExpressTestingAvailable.d.ts +4 -3
  27. package/dist-types/waiters/waitForBotVersionAvailable.d.ts +4 -3
  28. package/package.json +8 -8
package/dist-cjs/index.js CHANGED
@@ -1883,7 +1883,7 @@ const checkState = async (client, input) => {
1883
1883
  }
1884
1884
  catch (exception) {
1885
1885
  reason = exception;
1886
- if (exception.name && exception.name == "ResourceNotFoundException") {
1886
+ if (exception.name === "ResourceNotFoundException") {
1887
1887
  return { state: utilWaiter.WaiterState.RETRY, reason };
1888
1888
  }
1889
1889
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeBotAliasCommand } from "../commands/DescribeBotAliasCommand";
2
+ import { DescribeBotAliasCommand, } from "../commands/DescribeBotAliasCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeBotCommand } from "../commands/DescribeBotCommand";
2
+ import { DescribeBotCommand, } from "../commands/DescribeBotCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeExportCommand } from "../commands/DescribeExportCommand";
2
+ import { DescribeExportCommand, } from "../commands/DescribeExportCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeImportCommand } from "../commands/DescribeImportCommand";
2
+ import { DescribeImportCommand, } from "../commands/DescribeImportCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeBotLocaleCommand } from "../commands/DescribeBotLocaleCommand";
2
+ import { DescribeBotLocaleCommand, } from "../commands/DescribeBotLocaleCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeBotLocaleCommand } from "../commands/DescribeBotLocaleCommand";
2
+ import { DescribeBotLocaleCommand, } from "../commands/DescribeBotLocaleCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeBotLocaleCommand } from "../commands/DescribeBotLocaleCommand";
2
+ import { DescribeBotLocaleCommand, } from "../commands/DescribeBotLocaleCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeBotVersionCommand } from "../commands/DescribeBotVersionCommand";
2
+ import { DescribeBotVersionCommand, } from "../commands/DescribeBotVersionCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -35,7 +35,7 @@ const checkState = async (client, input) => {
35
35
  }
36
36
  catch (exception) {
37
37
  reason = exception;
38
- if (exception.name && exception.name == "ResourceNotFoundException") {
38
+ if (exception.name === "ResourceNotFoundException") {
39
39
  return { state: WaiterState.RETRY, reason };
40
40
  }
41
41
  }
@@ -972,49 +972,49 @@ export interface LexModelsV2 {
972
972
  * @param args - command input.
973
973
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
974
974
  */
975
- waitUntilBotAvailable(args: DescribeBotCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult>;
975
+ waitUntilBotAvailable(args: DescribeBotCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult<DescribeBotCommandOutput>>;
976
976
  /**
977
977
  * @see {@link DescribeBotAliasCommand}
978
978
  * @param args - command input.
979
979
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
980
980
  */
981
- waitUntilBotAliasAvailable(args: DescribeBotAliasCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult>;
981
+ waitUntilBotAliasAvailable(args: DescribeBotAliasCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult<DescribeBotAliasCommandOutput>>;
982
982
  /**
983
983
  * @see {@link DescribeBotLocaleCommand}
984
984
  * @param args - command input.
985
985
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
986
986
  */
987
- waitUntilBotLocaleBuilt(args: DescribeBotLocaleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult>;
987
+ waitUntilBotLocaleBuilt(args: DescribeBotLocaleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
988
988
  /**
989
989
  * @see {@link DescribeBotLocaleCommand}
990
990
  * @param args - command input.
991
991
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
992
992
  */
993
- waitUntilBotLocaleCreated(args: DescribeBotLocaleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult>;
993
+ waitUntilBotLocaleCreated(args: DescribeBotLocaleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
994
994
  /**
995
995
  * @see {@link DescribeBotLocaleCommand}
996
996
  * @param args - command input.
997
997
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
998
998
  */
999
- waitUntilBotLocaleExpressTestingAvailable(args: DescribeBotLocaleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult>;
999
+ waitUntilBotLocaleExpressTestingAvailable(args: DescribeBotLocaleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
1000
1000
  /**
1001
1001
  * @see {@link DescribeBotVersionCommand}
1002
1002
  * @param args - command input.
1003
1003
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1004
1004
  */
1005
- waitUntilBotVersionAvailable(args: DescribeBotVersionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult>;
1005
+ waitUntilBotVersionAvailable(args: DescribeBotVersionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult<DescribeBotVersionCommandOutput>>;
1006
1006
  /**
1007
1007
  * @see {@link DescribeExportCommand}
1008
1008
  * @param args - command input.
1009
1009
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1010
1010
  */
1011
- waitUntilBotExportCompleted(args: DescribeExportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult>;
1011
+ waitUntilBotExportCompleted(args: DescribeExportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult<DescribeExportCommandOutput>>;
1012
1012
  /**
1013
1013
  * @see {@link DescribeImportCommand}
1014
1014
  * @param args - command input.
1015
1015
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1016
1016
  */
1017
- waitUntilBotImportCompleted(args: DescribeImportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult>;
1017
+ waitUntilBotImportCompleted(args: DescribeImportCommandInput, waiterConfig: number | Omit<WaiterConfiguration<LexModelsV2>, "client">): Promise<WaiterResult<DescribeImportCommandOutput>>;
1018
1018
  }
1019
1019
  /**
1020
1020
  * <p>Amazon Lex Model Building Service provides APIs for creating, managing, and deploying conversational bots and their components.</p>
@@ -2056,7 +2056,7 @@ export interface LexModelsV2 {
2056
2056
  WaiterConfiguration<LexModelsV2>,
2057
2057
  Exclude<keyof WaiterConfiguration<LexModelsV2>, "client">
2058
2058
  >
2059
- ): Promise<WaiterResult>;
2059
+ ): Promise<WaiterResult<DescribeBotCommandOutput>>;
2060
2060
  waitUntilBotAliasAvailable(
2061
2061
  args: DescribeBotAliasCommandInput,
2062
2062
  waiterConfig:
@@ -2065,7 +2065,7 @@ export interface LexModelsV2 {
2065
2065
  WaiterConfiguration<LexModelsV2>,
2066
2066
  Exclude<keyof WaiterConfiguration<LexModelsV2>, "client">
2067
2067
  >
2068
- ): Promise<WaiterResult>;
2068
+ ): Promise<WaiterResult<DescribeBotAliasCommandOutput>>;
2069
2069
  waitUntilBotLocaleBuilt(
2070
2070
  args: DescribeBotLocaleCommandInput,
2071
2071
  waiterConfig:
@@ -2074,7 +2074,7 @@ export interface LexModelsV2 {
2074
2074
  WaiterConfiguration<LexModelsV2>,
2075
2075
  Exclude<keyof WaiterConfiguration<LexModelsV2>, "client">
2076
2076
  >
2077
- ): Promise<WaiterResult>;
2077
+ ): Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
2078
2078
  waitUntilBotLocaleCreated(
2079
2079
  args: DescribeBotLocaleCommandInput,
2080
2080
  waiterConfig:
@@ -2083,7 +2083,7 @@ export interface LexModelsV2 {
2083
2083
  WaiterConfiguration<LexModelsV2>,
2084
2084
  Exclude<keyof WaiterConfiguration<LexModelsV2>, "client">
2085
2085
  >
2086
- ): Promise<WaiterResult>;
2086
+ ): Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
2087
2087
  waitUntilBotLocaleExpressTestingAvailable(
2088
2088
  args: DescribeBotLocaleCommandInput,
2089
2089
  waiterConfig:
@@ -2092,7 +2092,7 @@ export interface LexModelsV2 {
2092
2092
  WaiterConfiguration<LexModelsV2>,
2093
2093
  Exclude<keyof WaiterConfiguration<LexModelsV2>, "client">
2094
2094
  >
2095
- ): Promise<WaiterResult>;
2095
+ ): Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
2096
2096
  waitUntilBotVersionAvailable(
2097
2097
  args: DescribeBotVersionCommandInput,
2098
2098
  waiterConfig:
@@ -2101,7 +2101,7 @@ export interface LexModelsV2 {
2101
2101
  WaiterConfiguration<LexModelsV2>,
2102
2102
  Exclude<keyof WaiterConfiguration<LexModelsV2>, "client">
2103
2103
  >
2104
- ): Promise<WaiterResult>;
2104
+ ): Promise<WaiterResult<DescribeBotVersionCommandOutput>>;
2105
2105
  waitUntilBotExportCompleted(
2106
2106
  args: DescribeExportCommandInput,
2107
2107
  waiterConfig:
@@ -2110,7 +2110,7 @@ export interface LexModelsV2 {
2110
2110
  WaiterConfiguration<LexModelsV2>,
2111
2111
  Exclude<keyof WaiterConfiguration<LexModelsV2>, "client">
2112
2112
  >
2113
- ): Promise<WaiterResult>;
2113
+ ): Promise<WaiterResult<DescribeExportCommandOutput>>;
2114
2114
  waitUntilBotImportCompleted(
2115
2115
  args: DescribeImportCommandInput,
2116
2116
  waiterConfig:
@@ -2119,7 +2119,7 @@ export interface LexModelsV2 {
2119
2119
  WaiterConfiguration<LexModelsV2>,
2120
2120
  Exclude<keyof WaiterConfiguration<LexModelsV2>, "client">
2121
2121
  >
2122
- ): Promise<WaiterResult>;
2122
+ ): Promise<WaiterResult<DescribeImportCommandOutput>>;
2123
2123
  }
2124
2124
  export declare class LexModelsV2
2125
2125
  extends LexModelsV2Client
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeBotAliasCommandInput } from "../commands/DescribeBotAliasCommand";
2
+ import {
3
+ DescribeBotAliasCommandInput,
4
+ DescribeBotAliasCommandOutput,
5
+ } from "../commands/DescribeBotAliasCommand";
3
6
  import { LexModelsV2Client } from "../LexModelsV2Client";
7
+ import { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
8
  export declare const waitForBotAliasAvailable: (
5
9
  params: WaiterConfiguration<LexModelsV2Client>,
6
10
  input: DescribeBotAliasCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeBotAliasCommandOutput | LexModelsV2ServiceException>
13
+ >;
8
14
  export declare const waitUntilBotAliasAvailable: (
9
15
  params: WaiterConfiguration<LexModelsV2Client>,
10
16
  input: DescribeBotAliasCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeBotAliasCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeBotCommandInput } from "../commands/DescribeBotCommand";
2
+ import {
3
+ DescribeBotCommandInput,
4
+ DescribeBotCommandOutput,
5
+ } from "../commands/DescribeBotCommand";
3
6
  import { LexModelsV2Client } from "../LexModelsV2Client";
7
+ import { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
8
  export declare const waitForBotAvailable: (
5
9
  params: WaiterConfiguration<LexModelsV2Client>,
6
10
  input: DescribeBotCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeBotCommandOutput | LexModelsV2ServiceException>
13
+ >;
8
14
  export declare const waitUntilBotAvailable: (
9
15
  params: WaiterConfiguration<LexModelsV2Client>,
10
16
  input: DescribeBotCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeBotCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeExportCommandInput } from "../commands/DescribeExportCommand";
2
+ import {
3
+ DescribeExportCommandInput,
4
+ DescribeExportCommandOutput,
5
+ } from "../commands/DescribeExportCommand";
3
6
  import { LexModelsV2Client } from "../LexModelsV2Client";
7
+ import { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
8
  export declare const waitForBotExportCompleted: (
5
9
  params: WaiterConfiguration<LexModelsV2Client>,
6
10
  input: DescribeExportCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeExportCommandOutput | LexModelsV2ServiceException>
13
+ >;
8
14
  export declare const waitUntilBotExportCompleted: (
9
15
  params: WaiterConfiguration<LexModelsV2Client>,
10
16
  input: DescribeExportCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeExportCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeImportCommandInput } from "../commands/DescribeImportCommand";
2
+ import {
3
+ DescribeImportCommandInput,
4
+ DescribeImportCommandOutput,
5
+ } from "../commands/DescribeImportCommand";
3
6
  import { LexModelsV2Client } from "../LexModelsV2Client";
7
+ import { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
8
  export declare const waitForBotImportCompleted: (
5
9
  params: WaiterConfiguration<LexModelsV2Client>,
6
10
  input: DescribeImportCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeImportCommandOutput | LexModelsV2ServiceException>
13
+ >;
8
14
  export declare const waitUntilBotImportCompleted: (
9
15
  params: WaiterConfiguration<LexModelsV2Client>,
10
16
  input: DescribeImportCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeImportCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeBotLocaleCommandInput } from "../commands/DescribeBotLocaleCommand";
2
+ import {
3
+ DescribeBotLocaleCommandInput,
4
+ DescribeBotLocaleCommandOutput,
5
+ } from "../commands/DescribeBotLocaleCommand";
3
6
  import { LexModelsV2Client } from "../LexModelsV2Client";
7
+ import { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
8
  export declare const waitForBotLocaleBuilt: (
5
9
  params: WaiterConfiguration<LexModelsV2Client>,
6
10
  input: DescribeBotLocaleCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeBotLocaleCommandOutput | LexModelsV2ServiceException>
13
+ >;
8
14
  export declare const waitUntilBotLocaleBuilt: (
9
15
  params: WaiterConfiguration<LexModelsV2Client>,
10
16
  input: DescribeBotLocaleCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeBotLocaleCommandInput } from "../commands/DescribeBotLocaleCommand";
2
+ import {
3
+ DescribeBotLocaleCommandInput,
4
+ DescribeBotLocaleCommandOutput,
5
+ } from "../commands/DescribeBotLocaleCommand";
3
6
  import { LexModelsV2Client } from "../LexModelsV2Client";
7
+ import { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
8
  export declare const waitForBotLocaleCreated: (
5
9
  params: WaiterConfiguration<LexModelsV2Client>,
6
10
  input: DescribeBotLocaleCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeBotLocaleCommandOutput | LexModelsV2ServiceException>
13
+ >;
8
14
  export declare const waitUntilBotLocaleCreated: (
9
15
  params: WaiterConfiguration<LexModelsV2Client>,
10
16
  input: DescribeBotLocaleCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeBotLocaleCommandInput } from "../commands/DescribeBotLocaleCommand";
2
+ import {
3
+ DescribeBotLocaleCommandInput,
4
+ DescribeBotLocaleCommandOutput,
5
+ } from "../commands/DescribeBotLocaleCommand";
3
6
  import { LexModelsV2Client } from "../LexModelsV2Client";
7
+ import { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
8
  export declare const waitForBotLocaleExpressTestingAvailable: (
5
9
  params: WaiterConfiguration<LexModelsV2Client>,
6
10
  input: DescribeBotLocaleCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeBotLocaleCommandOutput | LexModelsV2ServiceException>
13
+ >;
8
14
  export declare const waitUntilBotLocaleExpressTestingAvailable: (
9
15
  params: WaiterConfiguration<LexModelsV2Client>,
10
16
  input: DescribeBotLocaleCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeBotVersionCommandInput } from "../commands/DescribeBotVersionCommand";
2
+ import {
3
+ DescribeBotVersionCommandInput,
4
+ DescribeBotVersionCommandOutput,
5
+ } from "../commands/DescribeBotVersionCommand";
3
6
  import { LexModelsV2Client } from "../LexModelsV2Client";
7
+ import { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
8
  export declare const waitForBotVersionAvailable: (
5
9
  params: WaiterConfiguration<LexModelsV2Client>,
6
10
  input: DescribeBotVersionCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeBotVersionCommandOutput | LexModelsV2ServiceException>
13
+ >;
8
14
  export declare const waitUntilBotVersionAvailable: (
9
15
  params: WaiterConfiguration<LexModelsV2Client>,
10
16
  input: DescribeBotVersionCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeBotVersionCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeBotAliasCommandInput } from "../commands/DescribeBotAliasCommand";
2
+ import { type DescribeBotAliasCommandInput, type DescribeBotAliasCommandOutput } from "../commands/DescribeBotAliasCommand";
3
3
  import type { LexModelsV2Client } from "../LexModelsV2Client";
4
+ import type { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
5
  /**
5
6
  * Wait until a bot alias is available
6
7
  * @deprecated Use waitUntilBotAliasAvailable instead. waitForBotAliasAvailable does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForBotAliasAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotAliasCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForBotAliasAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotAliasCommandInput) => Promise<WaiterResult<DescribeBotAliasCommandOutput | LexModelsV2ServiceException>>;
9
10
  /**
10
11
  * Wait until a bot alias is available
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeBotAliasCommand for polling.
13
14
  */
14
- export declare const waitUntilBotAliasAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotAliasCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilBotAliasAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotAliasCommandInput) => Promise<WaiterResult<DescribeBotAliasCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeBotCommandInput } from "../commands/DescribeBotCommand";
2
+ import { type DescribeBotCommandInput, type DescribeBotCommandOutput } from "../commands/DescribeBotCommand";
3
3
  import type { LexModelsV2Client } from "../LexModelsV2Client";
4
+ import type { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
5
  /**
5
6
  * Wait until a bot is available
6
7
  * @deprecated Use waitUntilBotAvailable instead. waitForBotAvailable does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForBotAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForBotAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotCommandInput) => Promise<WaiterResult<DescribeBotCommandOutput | LexModelsV2ServiceException>>;
9
10
  /**
10
11
  * Wait until a bot is available
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeBotCommand for polling.
13
14
  */
14
- export declare const waitUntilBotAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilBotAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotCommandInput) => Promise<WaiterResult<DescribeBotCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeExportCommandInput } from "../commands/DescribeExportCommand";
2
+ import { type DescribeExportCommandInput, type DescribeExportCommandOutput } from "../commands/DescribeExportCommand";
3
3
  import type { LexModelsV2Client } from "../LexModelsV2Client";
4
+ import type { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
5
  /**
5
6
  * Wait until a bot has been exported
6
7
  * @deprecated Use waitUntilBotExportCompleted instead. waitForBotExportCompleted does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForBotExportCompleted: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeExportCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForBotExportCompleted: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeExportCommandInput) => Promise<WaiterResult<DescribeExportCommandOutput | LexModelsV2ServiceException>>;
9
10
  /**
10
11
  * Wait until a bot has been exported
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeExportCommand for polling.
13
14
  */
14
- export declare const waitUntilBotExportCompleted: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeExportCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilBotExportCompleted: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeExportCommandInput) => Promise<WaiterResult<DescribeExportCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeImportCommandInput } from "../commands/DescribeImportCommand";
2
+ import { type DescribeImportCommandInput, type DescribeImportCommandOutput } from "../commands/DescribeImportCommand";
3
3
  import type { LexModelsV2Client } from "../LexModelsV2Client";
4
+ import type { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
5
  /**
5
6
  * Wait until a bot has been imported
6
7
  * @deprecated Use waitUntilBotImportCompleted instead. waitForBotImportCompleted does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForBotImportCompleted: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeImportCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForBotImportCompleted: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeImportCommandInput) => Promise<WaiterResult<DescribeImportCommandOutput | LexModelsV2ServiceException>>;
9
10
  /**
10
11
  * Wait until a bot has been imported
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeImportCommand for polling.
13
14
  */
14
- export declare const waitUntilBotImportCompleted: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeImportCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilBotImportCompleted: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeImportCommandInput) => Promise<WaiterResult<DescribeImportCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeBotLocaleCommandInput } from "../commands/DescribeBotLocaleCommand";
2
+ import { type DescribeBotLocaleCommandInput, type DescribeBotLocaleCommandOutput } from "../commands/DescribeBotLocaleCommand";
3
3
  import type { LexModelsV2Client } from "../LexModelsV2Client";
4
+ import type { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
5
  /**
5
6
  * Wait until a bot locale is built
6
7
  * @deprecated Use waitUntilBotLocaleBuilt instead. waitForBotLocaleBuilt does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForBotLocaleBuilt: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForBotLocaleBuilt: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult<DescribeBotLocaleCommandOutput | LexModelsV2ServiceException>>;
9
10
  /**
10
11
  * Wait until a bot locale is built
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeBotLocaleCommand for polling.
13
14
  */
14
- export declare const waitUntilBotLocaleBuilt: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilBotLocaleBuilt: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeBotLocaleCommandInput } from "../commands/DescribeBotLocaleCommand";
2
+ import { type DescribeBotLocaleCommandInput, type DescribeBotLocaleCommandOutput } from "../commands/DescribeBotLocaleCommand";
3
3
  import type { LexModelsV2Client } from "../LexModelsV2Client";
4
+ import type { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
5
  /**
5
6
  * Wait unit a bot locale is created
6
7
  * @deprecated Use waitUntilBotLocaleCreated instead. waitForBotLocaleCreated does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForBotLocaleCreated: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForBotLocaleCreated: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult<DescribeBotLocaleCommandOutput | LexModelsV2ServiceException>>;
9
10
  /**
10
11
  * Wait unit a bot locale is created
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeBotLocaleCommand for polling.
13
14
  */
14
- export declare const waitUntilBotLocaleCreated: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilBotLocaleCreated: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeBotLocaleCommandInput } from "../commands/DescribeBotLocaleCommand";
2
+ import { type DescribeBotLocaleCommandInput, type DescribeBotLocaleCommandOutput } from "../commands/DescribeBotLocaleCommand";
3
3
  import type { LexModelsV2Client } from "../LexModelsV2Client";
4
+ import type { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
5
  /**
5
6
  * Wait until a bot locale build is ready for express testing
6
7
  * @deprecated Use waitUntilBotLocaleExpressTestingAvailable instead. waitForBotLocaleExpressTestingAvailable does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForBotLocaleExpressTestingAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForBotLocaleExpressTestingAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult<DescribeBotLocaleCommandOutput | LexModelsV2ServiceException>>;
9
10
  /**
10
11
  * Wait until a bot locale build is ready for express testing
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeBotLocaleCommand for polling.
13
14
  */
14
- export declare const waitUntilBotLocaleExpressTestingAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilBotLocaleExpressTestingAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotLocaleCommandInput) => Promise<WaiterResult<DescribeBotLocaleCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeBotVersionCommandInput } from "../commands/DescribeBotVersionCommand";
2
+ import { type DescribeBotVersionCommandInput, type DescribeBotVersionCommandOutput } from "../commands/DescribeBotVersionCommand";
3
3
  import type { LexModelsV2Client } from "../LexModelsV2Client";
4
+ import type { LexModelsV2ServiceException } from "../models/LexModelsV2ServiceException";
4
5
  /**
5
6
  * Wait until a bot version is available
6
7
  * @deprecated Use waitUntilBotVersionAvailable instead. waitForBotVersionAvailable does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForBotVersionAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotVersionCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForBotVersionAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotVersionCommandInput) => Promise<WaiterResult<DescribeBotVersionCommandOutput | LexModelsV2ServiceException>>;
9
10
  /**
10
11
  * Wait until a bot version is available
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeBotVersionCommand for polling.
13
14
  */
14
- export declare const waitUntilBotVersionAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotVersionCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilBotVersionAvailable: (params: WaiterConfiguration<LexModelsV2Client>, input: DescribeBotVersionCommandInput) => Promise<WaiterResult<DescribeBotVersionCommandOutput>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-lex-models-v2",
3
3
  "description": "AWS SDK for JavaScript Lex Models V2 Client for Node.js, Browser and React Native",
4
- "version": "3.1037.0",
4
+ "version": "3.1038.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-lex-models-v2",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.5",
25
- "@aws-sdk/credential-provider-node": "^3.972.36",
24
+ "@aws-sdk/core": "^3.974.6",
25
+ "@aws-sdk/credential-provider-node": "^3.972.37",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.35",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.13",
31
31
  "@aws-sdk/types": "^3.973.8",
32
32
  "@aws-sdk/util-endpoints": "^3.996.8",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.21",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
35
35
  "@smithy/config-resolver": "^4.4.17",
36
36
  "@smithy/core": "^3.23.17",
37
37
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -39,7 +39,7 @@
39
39
  "@smithy/invalid-dependency": "^4.2.14",
40
40
  "@smithy/middleware-content-length": "^4.2.14",
41
41
  "@smithy/middleware-endpoint": "^4.4.32",
42
- "@smithy/middleware-retry": "^4.5.5",
42
+ "@smithy/middleware-retry": "^4.5.6",
43
43
  "@smithy/middleware-serde": "^4.2.20",
44
44
  "@smithy/middleware-stack": "^4.2.14",
45
45
  "@smithy/node-config-provider": "^4.3.14",
@@ -55,9 +55,9 @@
55
55
  "@smithy/util-defaults-mode-node": "^4.2.54",
56
56
  "@smithy/util-endpoints": "^3.4.2",
57
57
  "@smithy/util-middleware": "^4.2.14",
58
- "@smithy/util-retry": "^4.3.4",
58
+ "@smithy/util-retry": "^4.3.5",
59
59
  "@smithy/util-utf8": "^4.2.2",
60
- "@smithy/util-waiter": "^4.2.16",
60
+ "@smithy/util-waiter": "^4.3.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {