@aws-sdk/client-lex-runtime-v2 3.34.0 → 3.37.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 (138) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/LexRuntimeV2.js +1 -5
  3. package/{dist/cjs → dist-cjs}/LexRuntimeV2Client.js +10 -19
  4. package/dist-cjs/commands/DeleteSessionCommand.js +36 -0
  5. package/{dist/cjs → dist-cjs}/commands/GetSessionCommand.js +2 -35
  6. package/{dist/cjs → dist-cjs}/commands/PutSessionCommand.js +2 -29
  7. package/{dist/cjs → dist-cjs}/commands/RecognizeTextCommand.js +2 -31
  8. package/dist-cjs/commands/RecognizeUtteranceCommand.js +36 -0
  9. package/dist-cjs/commands/StartConversationCommand.js +38 -0
  10. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  11. package/{dist/cjs → dist-cjs}/index.js +0 -1
  12. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  13. package/{dist/cjs → dist-cjs}/models/models_0.js +2 -145
  14. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -7
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  19. package/{dist/es → dist-es}/LexRuntimeV2.js +1 -2
  20. package/{dist/es → dist-es}/LexRuntimeV2Client.js +1 -2
  21. package/{dist/es → dist-es}/commands/DeleteSessionCommand.js +2 -3
  22. package/{dist/es → dist-es}/commands/GetSessionCommand.js +2 -3
  23. package/{dist/es → dist-es}/commands/PutSessionCommand.js +2 -3
  24. package/{dist/es → dist-es}/commands/RecognizeTextCommand.js +2 -3
  25. package/{dist/es → dist-es}/commands/RecognizeUtteranceCommand.js +2 -3
  26. package/{dist/es → dist-es}/commands/StartConversationCommand.js +2 -3
  27. package/{dist/es → dist-es}/endpoints.js +1 -2
  28. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  29. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  30. package/{dist/es → dist-es}/models/models_0.js +2 -1
  31. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +1 -2
  32. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  33. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  34. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  35. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  36. package/{dist/types/ts3.4 → dist-types}/LexRuntimeV2.d.ts +223 -139
  37. package/{dist/types → dist-types}/LexRuntimeV2Client.d.ts +7 -7
  38. package/{dist/types → dist-types}/commands/DeleteSessionCommand.d.ts +2 -2
  39. package/{dist/types → dist-types}/commands/GetSessionCommand.d.ts +2 -2
  40. package/{dist/types → dist-types}/commands/PutSessionCommand.d.ts +2 -2
  41. package/{dist/types → dist-types}/commands/RecognizeTextCommand.d.ts +28 -2
  42. package/{dist/types → dist-types}/commands/RecognizeUtteranceCommand.d.ts +28 -2
  43. package/{dist/types → dist-types}/commands/StartConversationCommand.d.ts +34 -2
  44. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  45. package/{index.ts → dist-types/index.d.ts} +0 -0
  46. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  47. package/{dist/types → dist-types}/models/models_0.d.ts +15 -9
  48. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  49. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  50. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  51. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  52. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  53. package/dist-types/ts3.4/LexRuntimeV2.d.ts +35 -0
  54. package/{dist/types → dist-types}/ts3.4/LexRuntimeV2Client.d.ts +33 -103
  55. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/PutSessionCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/RecognizeTextCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +24 -0
  60. package/dist-types/ts3.4/commands/StartConversationCommand.d.ts +17 -0
  61. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  62. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  63. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +348 -0
  65. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  66. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  67. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  68. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  69. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  70. package/package.json +50 -47
  71. package/LexRuntimeV2.ts +0 -299
  72. package/LexRuntimeV2Client.ts +0 -282
  73. package/commands/DeleteSessionCommand.ts +0 -107
  74. package/commands/GetSessionCommand.ts +0 -102
  75. package/commands/PutSessionCommand.ts +0 -96
  76. package/commands/RecognizeTextCommand.ts +0 -98
  77. package/commands/RecognizeUtteranceCommand.ts +0 -139
  78. package/commands/StartConversationCommand.ts +0 -130
  79. package/dist/cjs/LexRuntimeV2.js.map +0 -1
  80. package/dist/cjs/LexRuntimeV2Client.js.map +0 -1
  81. package/dist/cjs/commands/DeleteSessionCommand.js +0 -74
  82. package/dist/cjs/commands/DeleteSessionCommand.js.map +0 -1
  83. package/dist/cjs/commands/GetSessionCommand.js.map +0 -1
  84. package/dist/cjs/commands/PutSessionCommand.js.map +0 -1
  85. package/dist/cjs/commands/RecognizeTextCommand.js.map +0 -1
  86. package/dist/cjs/commands/RecognizeUtteranceCommand.js +0 -97
  87. package/dist/cjs/commands/RecognizeUtteranceCommand.js.map +0 -1
  88. package/dist/cjs/commands/StartConversationCommand.js +0 -90
  89. package/dist/cjs/commands/StartConversationCommand.js.map +0 -1
  90. package/dist/cjs/endpoints.js.map +0 -1
  91. package/dist/cjs/index.js.map +0 -1
  92. package/dist/cjs/models/index.js.map +0 -1
  93. package/dist/cjs/models/models_0.js.map +0 -1
  94. package/dist/cjs/package.json +0 -96
  95. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  96. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  97. package/dist/cjs/runtimeConfig.js.map +0 -1
  98. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  99. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  100. package/dist/es/LexRuntimeV2.js.map +0 -1
  101. package/dist/es/LexRuntimeV2Client.js.map +0 -1
  102. package/dist/es/commands/DeleteSessionCommand.js.map +0 -1
  103. package/dist/es/commands/GetSessionCommand.js.map +0 -1
  104. package/dist/es/commands/PutSessionCommand.js.map +0 -1
  105. package/dist/es/commands/RecognizeTextCommand.js.map +0 -1
  106. package/dist/es/commands/RecognizeUtteranceCommand.js.map +0 -1
  107. package/dist/es/commands/StartConversationCommand.js.map +0 -1
  108. package/dist/es/endpoints.js.map +0 -1
  109. package/dist/es/index.js +0 -10
  110. package/dist/es/index.js.map +0 -1
  111. package/dist/es/models/index.js +0 -2
  112. package/dist/es/models/index.js.map +0 -1
  113. package/dist/es/models/models_0.js.map +0 -1
  114. package/dist/es/package.json +0 -96
  115. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  116. package/dist/es/runtimeConfig.browser.js.map +0 -1
  117. package/dist/es/runtimeConfig.js.map +0 -1
  118. package/dist/es/runtimeConfig.native.js.map +0 -1
  119. package/dist/es/runtimeConfig.shared.js.map +0 -1
  120. package/dist/types/LexRuntimeV2.d.ts +0 -139
  121. package/dist/types/ts3.4/commands/DeleteSessionCommand.d.ts +0 -48
  122. package/dist/types/ts3.4/commands/GetSessionCommand.d.ts +0 -43
  123. package/dist/types/ts3.4/commands/PutSessionCommand.d.ts +0 -37
  124. package/dist/types/ts3.4/commands/RecognizeTextCommand.d.ts +0 -39
  125. package/dist/types/ts3.4/commands/RecognizeUtteranceCommand.d.ts +0 -82
  126. package/dist/types/ts3.4/commands/StartConversationCommand.d.ts +0 -62
  127. package/dist/types/ts3.4/models/models_0.d.ts +0 -2035
  128. package/endpoints.ts +0 -57
  129. package/jest.config.js +0 -4
  130. package/models/models_0.ts +0 -2458
  131. package/protocols/Aws_restJson1.ts +0 -2458
  132. package/runtimeConfig.browser.ts +0 -45
  133. package/runtimeConfig.native.ts +0 -20
  134. package/runtimeConfig.shared.ts +0 -16
  135. package/runtimeConfig.ts +0 -49
  136. package/tsconfig.es.json +0 -10
  137. package/tsconfig.json +0 -31
  138. package/tsconfig.types.json +0 -8
package/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "runtime-v2-lex.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "runtime-v2-lex.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "runtime-v2-lex.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "runtime-v2-lex.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "runtime-v2-lex.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "lex",
55
- regionHash,
56
- partitionHash,
57
- });
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };