@aws-sdk/client-lex-models-v2 3.477.0 → 3.481.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 (493) hide show
  1. package/dist-cjs/commands/BatchCreateCustomVocabularyItemCommand.js +18 -41
  2. package/dist-cjs/commands/BatchDeleteCustomVocabularyItemCommand.js +18 -41
  3. package/dist-cjs/commands/BatchUpdateCustomVocabularyItemCommand.js +18 -41
  4. package/dist-cjs/commands/BuildBotLocaleCommand.js +18 -41
  5. package/dist-cjs/commands/CreateBotAliasCommand.js +18 -41
  6. package/dist-cjs/commands/CreateBotCommand.js +18 -41
  7. package/dist-cjs/commands/CreateBotLocaleCommand.js +18 -41
  8. package/dist-cjs/commands/CreateBotVersionCommand.js +18 -41
  9. package/dist-cjs/commands/CreateExportCommand.js +18 -41
  10. package/dist-cjs/commands/CreateIntentCommand.js +18 -41
  11. package/dist-cjs/commands/CreateResourcePolicyCommand.js +18 -41
  12. package/dist-cjs/commands/CreateResourcePolicyStatementCommand.js +18 -41
  13. package/dist-cjs/commands/CreateSlotCommand.js +18 -41
  14. package/dist-cjs/commands/CreateSlotTypeCommand.js +18 -41
  15. package/dist-cjs/commands/CreateTestSetDiscrepancyReportCommand.js +18 -41
  16. package/dist-cjs/commands/CreateUploadUrlCommand.js +18 -41
  17. package/dist-cjs/commands/DeleteBotAliasCommand.js +18 -41
  18. package/dist-cjs/commands/DeleteBotCommand.js +18 -41
  19. package/dist-cjs/commands/DeleteBotLocaleCommand.js +18 -41
  20. package/dist-cjs/commands/DeleteBotVersionCommand.js +18 -41
  21. package/dist-cjs/commands/DeleteCustomVocabularyCommand.js +18 -41
  22. package/dist-cjs/commands/DeleteExportCommand.js +18 -41
  23. package/dist-cjs/commands/DeleteImportCommand.js +18 -41
  24. package/dist-cjs/commands/DeleteIntentCommand.js +18 -41
  25. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +18 -41
  26. package/dist-cjs/commands/DeleteResourcePolicyStatementCommand.js +18 -41
  27. package/dist-cjs/commands/DeleteSlotCommand.js +18 -41
  28. package/dist-cjs/commands/DeleteSlotTypeCommand.js +18 -41
  29. package/dist-cjs/commands/DeleteTestSetCommand.js +18 -41
  30. package/dist-cjs/commands/DeleteUtterancesCommand.js +18 -41
  31. package/dist-cjs/commands/DescribeBotAliasCommand.js +18 -41
  32. package/dist-cjs/commands/DescribeBotCommand.js +18 -41
  33. package/dist-cjs/commands/DescribeBotLocaleCommand.js +18 -41
  34. package/dist-cjs/commands/DescribeBotRecommendationCommand.js +18 -41
  35. package/dist-cjs/commands/DescribeBotResourceGenerationCommand.js +18 -41
  36. package/dist-cjs/commands/DescribeBotVersionCommand.js +18 -41
  37. package/dist-cjs/commands/DescribeCustomVocabularyMetadataCommand.js +18 -41
  38. package/dist-cjs/commands/DescribeExportCommand.js +18 -41
  39. package/dist-cjs/commands/DescribeImportCommand.js +18 -41
  40. package/dist-cjs/commands/DescribeIntentCommand.js +18 -41
  41. package/dist-cjs/commands/DescribeResourcePolicyCommand.js +18 -41
  42. package/dist-cjs/commands/DescribeSlotCommand.js +18 -41
  43. package/dist-cjs/commands/DescribeSlotTypeCommand.js +18 -41
  44. package/dist-cjs/commands/DescribeTestExecutionCommand.js +18 -41
  45. package/dist-cjs/commands/DescribeTestSetCommand.js +18 -41
  46. package/dist-cjs/commands/DescribeTestSetDiscrepancyReportCommand.js +18 -41
  47. package/dist-cjs/commands/DescribeTestSetGenerationCommand.js +18 -41
  48. package/dist-cjs/commands/GenerateBotElementCommand.js +18 -41
  49. package/dist-cjs/commands/GetTestExecutionArtifactsUrlCommand.js +18 -41
  50. package/dist-cjs/commands/ListAggregatedUtterancesCommand.js +18 -41
  51. package/dist-cjs/commands/ListBotAliasesCommand.js +18 -41
  52. package/dist-cjs/commands/ListBotLocalesCommand.js +18 -41
  53. package/dist-cjs/commands/ListBotRecommendationsCommand.js +18 -41
  54. package/dist-cjs/commands/ListBotResourceGenerationsCommand.js +18 -41
  55. package/dist-cjs/commands/ListBotVersionsCommand.js +18 -41
  56. package/dist-cjs/commands/ListBotsCommand.js +18 -41
  57. package/dist-cjs/commands/ListBuiltInIntentsCommand.js +18 -41
  58. package/dist-cjs/commands/ListBuiltInSlotTypesCommand.js +18 -41
  59. package/dist-cjs/commands/ListCustomVocabularyItemsCommand.js +18 -41
  60. package/dist-cjs/commands/ListExportsCommand.js +18 -41
  61. package/dist-cjs/commands/ListImportsCommand.js +18 -41
  62. package/dist-cjs/commands/ListIntentMetricsCommand.js +18 -41
  63. package/dist-cjs/commands/ListIntentPathsCommand.js +18 -41
  64. package/dist-cjs/commands/ListIntentStageMetricsCommand.js +18 -41
  65. package/dist-cjs/commands/ListIntentsCommand.js +18 -41
  66. package/dist-cjs/commands/ListRecommendedIntentsCommand.js +18 -41
  67. package/dist-cjs/commands/ListSessionAnalyticsDataCommand.js +18 -41
  68. package/dist-cjs/commands/ListSessionMetricsCommand.js +18 -41
  69. package/dist-cjs/commands/ListSlotTypesCommand.js +18 -41
  70. package/dist-cjs/commands/ListSlotsCommand.js +18 -41
  71. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  72. package/dist-cjs/commands/ListTestExecutionResultItemsCommand.js +18 -41
  73. package/dist-cjs/commands/ListTestExecutionsCommand.js +18 -41
  74. package/dist-cjs/commands/ListTestSetRecordsCommand.js +18 -41
  75. package/dist-cjs/commands/ListTestSetsCommand.js +18 -41
  76. package/dist-cjs/commands/ListUtteranceAnalyticsDataCommand.js +18 -41
  77. package/dist-cjs/commands/ListUtteranceMetricsCommand.js +18 -41
  78. package/dist-cjs/commands/SearchAssociatedTranscriptsCommand.js +18 -41
  79. package/dist-cjs/commands/StartBotRecommendationCommand.js +18 -41
  80. package/dist-cjs/commands/StartBotResourceGenerationCommand.js +18 -41
  81. package/dist-cjs/commands/StartImportCommand.js +18 -41
  82. package/dist-cjs/commands/StartTestExecutionCommand.js +18 -41
  83. package/dist-cjs/commands/StartTestSetGenerationCommand.js +18 -41
  84. package/dist-cjs/commands/StopBotRecommendationCommand.js +18 -41
  85. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  86. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  87. package/dist-cjs/commands/UpdateBotAliasCommand.js +18 -41
  88. package/dist-cjs/commands/UpdateBotCommand.js +18 -41
  89. package/dist-cjs/commands/UpdateBotLocaleCommand.js +18 -41
  90. package/dist-cjs/commands/UpdateBotRecommendationCommand.js +18 -41
  91. package/dist-cjs/commands/UpdateExportCommand.js +18 -41
  92. package/dist-cjs/commands/UpdateIntentCommand.js +18 -41
  93. package/dist-cjs/commands/UpdateResourcePolicyCommand.js +18 -41
  94. package/dist-cjs/commands/UpdateSlotCommand.js +18 -41
  95. package/dist-cjs/commands/UpdateSlotTypeCommand.js +18 -41
  96. package/dist-cjs/commands/UpdateTestSetCommand.js +18 -41
  97. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  98. package/dist-cjs/pagination/ListAggregatedUtterancesPaginator.js +2 -24
  99. package/dist-cjs/pagination/ListBotAliasesPaginator.js +2 -24
  100. package/dist-cjs/pagination/ListBotLocalesPaginator.js +2 -24
  101. package/dist-cjs/pagination/ListBotRecommendationsPaginator.js +2 -24
  102. package/dist-cjs/pagination/ListBotResourceGenerationsPaginator.js +2 -24
  103. package/dist-cjs/pagination/ListBotVersionsPaginator.js +2 -24
  104. package/dist-cjs/pagination/ListBotsPaginator.js +2 -24
  105. package/dist-cjs/pagination/ListBuiltInIntentsPaginator.js +2 -24
  106. package/dist-cjs/pagination/ListBuiltInSlotTypesPaginator.js +2 -24
  107. package/dist-cjs/pagination/ListCustomVocabularyItemsPaginator.js +2 -24
  108. package/dist-cjs/pagination/ListExportsPaginator.js +2 -24
  109. package/dist-cjs/pagination/ListImportsPaginator.js +2 -24
  110. package/dist-cjs/pagination/ListIntentMetricsPaginator.js +2 -24
  111. package/dist-cjs/pagination/ListIntentStageMetricsPaginator.js +2 -24
  112. package/dist-cjs/pagination/ListIntentsPaginator.js +2 -24
  113. package/dist-cjs/pagination/ListRecommendedIntentsPaginator.js +2 -24
  114. package/dist-cjs/pagination/ListSessionAnalyticsDataPaginator.js +2 -24
  115. package/dist-cjs/pagination/ListSessionMetricsPaginator.js +2 -24
  116. package/dist-cjs/pagination/ListSlotTypesPaginator.js +2 -24
  117. package/dist-cjs/pagination/ListSlotsPaginator.js +2 -24
  118. package/dist-cjs/pagination/ListTestExecutionResultItemsPaginator.js +2 -24
  119. package/dist-cjs/pagination/ListTestExecutionsPaginator.js +2 -24
  120. package/dist-cjs/pagination/ListTestSetRecordsPaginator.js +2 -24
  121. package/dist-cjs/pagination/ListTestSetsPaginator.js +2 -24
  122. package/dist-cjs/pagination/ListUtteranceAnalyticsDataPaginator.js +2 -24
  123. package/dist-cjs/pagination/ListUtteranceMetricsPaginator.js +2 -24
  124. package/dist-es/commands/BatchCreateCustomVocabularyItemCommand.js +18 -41
  125. package/dist-es/commands/BatchDeleteCustomVocabularyItemCommand.js +18 -41
  126. package/dist-es/commands/BatchUpdateCustomVocabularyItemCommand.js +18 -41
  127. package/dist-es/commands/BuildBotLocaleCommand.js +18 -41
  128. package/dist-es/commands/CreateBotAliasCommand.js +18 -41
  129. package/dist-es/commands/CreateBotCommand.js +18 -41
  130. package/dist-es/commands/CreateBotLocaleCommand.js +18 -41
  131. package/dist-es/commands/CreateBotVersionCommand.js +18 -41
  132. package/dist-es/commands/CreateExportCommand.js +18 -41
  133. package/dist-es/commands/CreateIntentCommand.js +18 -41
  134. package/dist-es/commands/CreateResourcePolicyCommand.js +18 -41
  135. package/dist-es/commands/CreateResourcePolicyStatementCommand.js +18 -41
  136. package/dist-es/commands/CreateSlotCommand.js +18 -41
  137. package/dist-es/commands/CreateSlotTypeCommand.js +18 -41
  138. package/dist-es/commands/CreateTestSetDiscrepancyReportCommand.js +18 -41
  139. package/dist-es/commands/CreateUploadUrlCommand.js +18 -41
  140. package/dist-es/commands/DeleteBotAliasCommand.js +18 -41
  141. package/dist-es/commands/DeleteBotCommand.js +18 -41
  142. package/dist-es/commands/DeleteBotLocaleCommand.js +18 -41
  143. package/dist-es/commands/DeleteBotVersionCommand.js +18 -41
  144. package/dist-es/commands/DeleteCustomVocabularyCommand.js +18 -41
  145. package/dist-es/commands/DeleteExportCommand.js +18 -41
  146. package/dist-es/commands/DeleteImportCommand.js +18 -41
  147. package/dist-es/commands/DeleteIntentCommand.js +18 -41
  148. package/dist-es/commands/DeleteResourcePolicyCommand.js +18 -41
  149. package/dist-es/commands/DeleteResourcePolicyStatementCommand.js +18 -41
  150. package/dist-es/commands/DeleteSlotCommand.js +18 -41
  151. package/dist-es/commands/DeleteSlotTypeCommand.js +18 -41
  152. package/dist-es/commands/DeleteTestSetCommand.js +18 -41
  153. package/dist-es/commands/DeleteUtterancesCommand.js +18 -41
  154. package/dist-es/commands/DescribeBotAliasCommand.js +18 -41
  155. package/dist-es/commands/DescribeBotCommand.js +18 -41
  156. package/dist-es/commands/DescribeBotLocaleCommand.js +18 -41
  157. package/dist-es/commands/DescribeBotRecommendationCommand.js +18 -41
  158. package/dist-es/commands/DescribeBotResourceGenerationCommand.js +18 -41
  159. package/dist-es/commands/DescribeBotVersionCommand.js +18 -41
  160. package/dist-es/commands/DescribeCustomVocabularyMetadataCommand.js +18 -41
  161. package/dist-es/commands/DescribeExportCommand.js +18 -41
  162. package/dist-es/commands/DescribeImportCommand.js +18 -41
  163. package/dist-es/commands/DescribeIntentCommand.js +18 -41
  164. package/dist-es/commands/DescribeResourcePolicyCommand.js +18 -41
  165. package/dist-es/commands/DescribeSlotCommand.js +18 -41
  166. package/dist-es/commands/DescribeSlotTypeCommand.js +18 -41
  167. package/dist-es/commands/DescribeTestExecutionCommand.js +18 -41
  168. package/dist-es/commands/DescribeTestSetCommand.js +18 -41
  169. package/dist-es/commands/DescribeTestSetDiscrepancyReportCommand.js +18 -41
  170. package/dist-es/commands/DescribeTestSetGenerationCommand.js +18 -41
  171. package/dist-es/commands/GenerateBotElementCommand.js +18 -41
  172. package/dist-es/commands/GetTestExecutionArtifactsUrlCommand.js +18 -41
  173. package/dist-es/commands/ListAggregatedUtterancesCommand.js +18 -41
  174. package/dist-es/commands/ListBotAliasesCommand.js +18 -41
  175. package/dist-es/commands/ListBotLocalesCommand.js +18 -41
  176. package/dist-es/commands/ListBotRecommendationsCommand.js +18 -41
  177. package/dist-es/commands/ListBotResourceGenerationsCommand.js +18 -41
  178. package/dist-es/commands/ListBotVersionsCommand.js +18 -41
  179. package/dist-es/commands/ListBotsCommand.js +18 -41
  180. package/dist-es/commands/ListBuiltInIntentsCommand.js +18 -41
  181. package/dist-es/commands/ListBuiltInSlotTypesCommand.js +18 -41
  182. package/dist-es/commands/ListCustomVocabularyItemsCommand.js +18 -41
  183. package/dist-es/commands/ListExportsCommand.js +18 -41
  184. package/dist-es/commands/ListImportsCommand.js +18 -41
  185. package/dist-es/commands/ListIntentMetricsCommand.js +18 -41
  186. package/dist-es/commands/ListIntentPathsCommand.js +18 -41
  187. package/dist-es/commands/ListIntentStageMetricsCommand.js +18 -41
  188. package/dist-es/commands/ListIntentsCommand.js +18 -41
  189. package/dist-es/commands/ListRecommendedIntentsCommand.js +18 -41
  190. package/dist-es/commands/ListSessionAnalyticsDataCommand.js +18 -41
  191. package/dist-es/commands/ListSessionMetricsCommand.js +18 -41
  192. package/dist-es/commands/ListSlotTypesCommand.js +18 -41
  193. package/dist-es/commands/ListSlotsCommand.js +18 -41
  194. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  195. package/dist-es/commands/ListTestExecutionResultItemsCommand.js +18 -41
  196. package/dist-es/commands/ListTestExecutionsCommand.js +18 -41
  197. package/dist-es/commands/ListTestSetRecordsCommand.js +18 -41
  198. package/dist-es/commands/ListTestSetsCommand.js +18 -41
  199. package/dist-es/commands/ListUtteranceAnalyticsDataCommand.js +18 -41
  200. package/dist-es/commands/ListUtteranceMetricsCommand.js +18 -41
  201. package/dist-es/commands/SearchAssociatedTranscriptsCommand.js +18 -41
  202. package/dist-es/commands/StartBotRecommendationCommand.js +18 -41
  203. package/dist-es/commands/StartBotResourceGenerationCommand.js +18 -41
  204. package/dist-es/commands/StartImportCommand.js +18 -41
  205. package/dist-es/commands/StartTestExecutionCommand.js +18 -41
  206. package/dist-es/commands/StartTestSetGenerationCommand.js +18 -41
  207. package/dist-es/commands/StopBotRecommendationCommand.js +18 -41
  208. package/dist-es/commands/TagResourceCommand.js +18 -41
  209. package/dist-es/commands/UntagResourceCommand.js +18 -41
  210. package/dist-es/commands/UpdateBotAliasCommand.js +18 -41
  211. package/dist-es/commands/UpdateBotCommand.js +18 -41
  212. package/dist-es/commands/UpdateBotLocaleCommand.js +18 -41
  213. package/dist-es/commands/UpdateBotRecommendationCommand.js +18 -41
  214. package/dist-es/commands/UpdateExportCommand.js +18 -41
  215. package/dist-es/commands/UpdateIntentCommand.js +18 -41
  216. package/dist-es/commands/UpdateResourcePolicyCommand.js +18 -41
  217. package/dist-es/commands/UpdateSlotCommand.js +18 -41
  218. package/dist-es/commands/UpdateSlotTypeCommand.js +18 -41
  219. package/dist-es/commands/UpdateTestSetCommand.js +18 -41
  220. package/dist-es/endpoint/EndpointParameters.js +6 -0
  221. package/dist-es/pagination/ListAggregatedUtterancesPaginator.js +2 -23
  222. package/dist-es/pagination/ListBotAliasesPaginator.js +2 -23
  223. package/dist-es/pagination/ListBotLocalesPaginator.js +2 -23
  224. package/dist-es/pagination/ListBotRecommendationsPaginator.js +2 -23
  225. package/dist-es/pagination/ListBotResourceGenerationsPaginator.js +2 -23
  226. package/dist-es/pagination/ListBotVersionsPaginator.js +2 -23
  227. package/dist-es/pagination/ListBotsPaginator.js +2 -23
  228. package/dist-es/pagination/ListBuiltInIntentsPaginator.js +2 -23
  229. package/dist-es/pagination/ListBuiltInSlotTypesPaginator.js +2 -23
  230. package/dist-es/pagination/ListCustomVocabularyItemsPaginator.js +2 -23
  231. package/dist-es/pagination/ListExportsPaginator.js +2 -23
  232. package/dist-es/pagination/ListImportsPaginator.js +2 -23
  233. package/dist-es/pagination/ListIntentMetricsPaginator.js +2 -23
  234. package/dist-es/pagination/ListIntentStageMetricsPaginator.js +2 -23
  235. package/dist-es/pagination/ListIntentsPaginator.js +2 -23
  236. package/dist-es/pagination/ListRecommendedIntentsPaginator.js +2 -23
  237. package/dist-es/pagination/ListSessionAnalyticsDataPaginator.js +2 -23
  238. package/dist-es/pagination/ListSessionMetricsPaginator.js +2 -23
  239. package/dist-es/pagination/ListSlotTypesPaginator.js +2 -23
  240. package/dist-es/pagination/ListSlotsPaginator.js +2 -23
  241. package/dist-es/pagination/ListTestExecutionResultItemsPaginator.js +2 -23
  242. package/dist-es/pagination/ListTestExecutionsPaginator.js +2 -23
  243. package/dist-es/pagination/ListTestSetRecordsPaginator.js +2 -23
  244. package/dist-es/pagination/ListTestSetsPaginator.js +2 -23
  245. package/dist-es/pagination/ListUtteranceAnalyticsDataPaginator.js +2 -23
  246. package/dist-es/pagination/ListUtteranceMetricsPaginator.js +2 -23
  247. package/dist-types/commands/BatchCreateCustomVocabularyItemCommand.d.ts +6 -21
  248. package/dist-types/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +6 -21
  249. package/dist-types/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +6 -21
  250. package/dist-types/commands/BuildBotLocaleCommand.d.ts +6 -21
  251. package/dist-types/commands/CreateBotAliasCommand.d.ts +6 -21
  252. package/dist-types/commands/CreateBotCommand.d.ts +6 -21
  253. package/dist-types/commands/CreateBotLocaleCommand.d.ts +6 -21
  254. package/dist-types/commands/CreateBotVersionCommand.d.ts +6 -21
  255. package/dist-types/commands/CreateExportCommand.d.ts +6 -21
  256. package/dist-types/commands/CreateIntentCommand.d.ts +6 -21
  257. package/dist-types/commands/CreateResourcePolicyCommand.d.ts +6 -21
  258. package/dist-types/commands/CreateResourcePolicyStatementCommand.d.ts +6 -21
  259. package/dist-types/commands/CreateSlotCommand.d.ts +6 -21
  260. package/dist-types/commands/CreateSlotTypeCommand.d.ts +6 -21
  261. package/dist-types/commands/CreateTestSetDiscrepancyReportCommand.d.ts +6 -21
  262. package/dist-types/commands/CreateUploadUrlCommand.d.ts +6 -21
  263. package/dist-types/commands/DeleteBotAliasCommand.d.ts +6 -21
  264. package/dist-types/commands/DeleteBotCommand.d.ts +6 -21
  265. package/dist-types/commands/DeleteBotLocaleCommand.d.ts +6 -21
  266. package/dist-types/commands/DeleteBotVersionCommand.d.ts +6 -21
  267. package/dist-types/commands/DeleteCustomVocabularyCommand.d.ts +6 -21
  268. package/dist-types/commands/DeleteExportCommand.d.ts +6 -21
  269. package/dist-types/commands/DeleteImportCommand.d.ts +6 -21
  270. package/dist-types/commands/DeleteIntentCommand.d.ts +6 -21
  271. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +6 -21
  272. package/dist-types/commands/DeleteResourcePolicyStatementCommand.d.ts +6 -21
  273. package/dist-types/commands/DeleteSlotCommand.d.ts +6 -21
  274. package/dist-types/commands/DeleteSlotTypeCommand.d.ts +6 -21
  275. package/dist-types/commands/DeleteTestSetCommand.d.ts +6 -21
  276. package/dist-types/commands/DeleteUtterancesCommand.d.ts +6 -21
  277. package/dist-types/commands/DescribeBotAliasCommand.d.ts +6 -21
  278. package/dist-types/commands/DescribeBotCommand.d.ts +6 -21
  279. package/dist-types/commands/DescribeBotLocaleCommand.d.ts +6 -21
  280. package/dist-types/commands/DescribeBotRecommendationCommand.d.ts +6 -21
  281. package/dist-types/commands/DescribeBotResourceGenerationCommand.d.ts +6 -21
  282. package/dist-types/commands/DescribeBotVersionCommand.d.ts +6 -21
  283. package/dist-types/commands/DescribeCustomVocabularyMetadataCommand.d.ts +6 -21
  284. package/dist-types/commands/DescribeExportCommand.d.ts +6 -21
  285. package/dist-types/commands/DescribeImportCommand.d.ts +6 -21
  286. package/dist-types/commands/DescribeIntentCommand.d.ts +6 -21
  287. package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +6 -21
  288. package/dist-types/commands/DescribeSlotCommand.d.ts +6 -21
  289. package/dist-types/commands/DescribeSlotTypeCommand.d.ts +6 -21
  290. package/dist-types/commands/DescribeTestExecutionCommand.d.ts +6 -21
  291. package/dist-types/commands/DescribeTestSetCommand.d.ts +6 -21
  292. package/dist-types/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +6 -21
  293. package/dist-types/commands/DescribeTestSetGenerationCommand.d.ts +6 -21
  294. package/dist-types/commands/GenerateBotElementCommand.d.ts +6 -21
  295. package/dist-types/commands/GetTestExecutionArtifactsUrlCommand.d.ts +6 -21
  296. package/dist-types/commands/ListAggregatedUtterancesCommand.d.ts +6 -21
  297. package/dist-types/commands/ListBotAliasesCommand.d.ts +6 -21
  298. package/dist-types/commands/ListBotLocalesCommand.d.ts +6 -21
  299. package/dist-types/commands/ListBotRecommendationsCommand.d.ts +6 -21
  300. package/dist-types/commands/ListBotResourceGenerationsCommand.d.ts +6 -21
  301. package/dist-types/commands/ListBotVersionsCommand.d.ts +6 -21
  302. package/dist-types/commands/ListBotsCommand.d.ts +6 -21
  303. package/dist-types/commands/ListBuiltInIntentsCommand.d.ts +6 -21
  304. package/dist-types/commands/ListBuiltInSlotTypesCommand.d.ts +6 -21
  305. package/dist-types/commands/ListCustomVocabularyItemsCommand.d.ts +6 -21
  306. package/dist-types/commands/ListExportsCommand.d.ts +6 -21
  307. package/dist-types/commands/ListImportsCommand.d.ts +6 -21
  308. package/dist-types/commands/ListIntentMetricsCommand.d.ts +6 -21
  309. package/dist-types/commands/ListIntentPathsCommand.d.ts +6 -21
  310. package/dist-types/commands/ListIntentStageMetricsCommand.d.ts +6 -21
  311. package/dist-types/commands/ListIntentsCommand.d.ts +6 -21
  312. package/dist-types/commands/ListRecommendedIntentsCommand.d.ts +6 -21
  313. package/dist-types/commands/ListSessionAnalyticsDataCommand.d.ts +6 -21
  314. package/dist-types/commands/ListSessionMetricsCommand.d.ts +6 -21
  315. package/dist-types/commands/ListSlotTypesCommand.d.ts +6 -21
  316. package/dist-types/commands/ListSlotsCommand.d.ts +6 -21
  317. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  318. package/dist-types/commands/ListTestExecutionResultItemsCommand.d.ts +6 -21
  319. package/dist-types/commands/ListTestExecutionsCommand.d.ts +6 -21
  320. package/dist-types/commands/ListTestSetRecordsCommand.d.ts +6 -21
  321. package/dist-types/commands/ListTestSetsCommand.d.ts +6 -21
  322. package/dist-types/commands/ListUtteranceAnalyticsDataCommand.d.ts +6 -21
  323. package/dist-types/commands/ListUtteranceMetricsCommand.d.ts +6 -21
  324. package/dist-types/commands/SearchAssociatedTranscriptsCommand.d.ts +6 -21
  325. package/dist-types/commands/StartBotRecommendationCommand.d.ts +6 -21
  326. package/dist-types/commands/StartBotResourceGenerationCommand.d.ts +6 -21
  327. package/dist-types/commands/StartImportCommand.d.ts +6 -21
  328. package/dist-types/commands/StartTestExecutionCommand.d.ts +6 -21
  329. package/dist-types/commands/StartTestSetGenerationCommand.d.ts +6 -21
  330. package/dist-types/commands/StopBotRecommendationCommand.d.ts +6 -21
  331. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  332. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  333. package/dist-types/commands/UpdateBotAliasCommand.d.ts +6 -21
  334. package/dist-types/commands/UpdateBotCommand.d.ts +6 -21
  335. package/dist-types/commands/UpdateBotLocaleCommand.d.ts +6 -21
  336. package/dist-types/commands/UpdateBotRecommendationCommand.d.ts +6 -21
  337. package/dist-types/commands/UpdateExportCommand.d.ts +6 -21
  338. package/dist-types/commands/UpdateIntentCommand.d.ts +6 -21
  339. package/dist-types/commands/UpdateResourcePolicyCommand.d.ts +6 -21
  340. package/dist-types/commands/UpdateSlotCommand.d.ts +6 -21
  341. package/dist-types/commands/UpdateSlotTypeCommand.d.ts +6 -21
  342. package/dist-types/commands/UpdateTestSetCommand.d.ts +6 -21
  343. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  344. package/dist-types/pagination/ListAggregatedUtterancesPaginator.d.ts +1 -1
  345. package/dist-types/pagination/ListBotAliasesPaginator.d.ts +1 -1
  346. package/dist-types/pagination/ListBotLocalesPaginator.d.ts +1 -1
  347. package/dist-types/pagination/ListBotRecommendationsPaginator.d.ts +1 -1
  348. package/dist-types/pagination/ListBotResourceGenerationsPaginator.d.ts +1 -1
  349. package/dist-types/pagination/ListBotVersionsPaginator.d.ts +1 -1
  350. package/dist-types/pagination/ListBotsPaginator.d.ts +1 -1
  351. package/dist-types/pagination/ListBuiltInIntentsPaginator.d.ts +1 -1
  352. package/dist-types/pagination/ListBuiltInSlotTypesPaginator.d.ts +1 -1
  353. package/dist-types/pagination/ListCustomVocabularyItemsPaginator.d.ts +1 -1
  354. package/dist-types/pagination/ListExportsPaginator.d.ts +1 -1
  355. package/dist-types/pagination/ListImportsPaginator.d.ts +1 -1
  356. package/dist-types/pagination/ListIntentMetricsPaginator.d.ts +1 -1
  357. package/dist-types/pagination/ListIntentStageMetricsPaginator.d.ts +1 -1
  358. package/dist-types/pagination/ListIntentsPaginator.d.ts +1 -1
  359. package/dist-types/pagination/ListRecommendedIntentsPaginator.d.ts +1 -1
  360. package/dist-types/pagination/ListSessionAnalyticsDataPaginator.d.ts +1 -1
  361. package/dist-types/pagination/ListSessionMetricsPaginator.d.ts +1 -1
  362. package/dist-types/pagination/ListSlotTypesPaginator.d.ts +1 -1
  363. package/dist-types/pagination/ListSlotsPaginator.d.ts +1 -1
  364. package/dist-types/pagination/ListTestExecutionResultItemsPaginator.d.ts +1 -1
  365. package/dist-types/pagination/ListTestExecutionsPaginator.d.ts +1 -1
  366. package/dist-types/pagination/ListTestSetRecordsPaginator.d.ts +1 -1
  367. package/dist-types/pagination/ListTestSetsPaginator.d.ts +1 -1
  368. package/dist-types/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +1 -1
  369. package/dist-types/pagination/ListUtteranceMetricsPaginator.d.ts +1 -1
  370. package/dist-types/ts3.4/commands/BatchCreateCustomVocabularyItemCommand.d.ts +12 -24
  371. package/dist-types/ts3.4/commands/BatchDeleteCustomVocabularyItemCommand.d.ts +12 -24
  372. package/dist-types/ts3.4/commands/BatchUpdateCustomVocabularyItemCommand.d.ts +12 -24
  373. package/dist-types/ts3.4/commands/BuildBotLocaleCommand.d.ts +14 -23
  374. package/dist-types/ts3.4/commands/CreateBotAliasCommand.d.ts +14 -23
  375. package/dist-types/ts3.4/commands/CreateBotCommand.d.ts +14 -23
  376. package/dist-types/ts3.4/commands/CreateBotLocaleCommand.d.ts +14 -23
  377. package/dist-types/ts3.4/commands/CreateBotVersionCommand.d.ts +14 -23
  378. package/dist-types/ts3.4/commands/CreateExportCommand.d.ts +14 -23
  379. package/dist-types/ts3.4/commands/CreateIntentCommand.d.ts +14 -23
  380. package/dist-types/ts3.4/commands/CreateResourcePolicyCommand.d.ts +12 -24
  381. package/dist-types/ts3.4/commands/CreateResourcePolicyStatementCommand.d.ts +12 -24
  382. package/dist-types/ts3.4/commands/CreateSlotCommand.d.ts +14 -23
  383. package/dist-types/ts3.4/commands/CreateSlotTypeCommand.d.ts +14 -23
  384. package/dist-types/ts3.4/commands/CreateTestSetDiscrepancyReportCommand.d.ts +12 -24
  385. package/dist-types/ts3.4/commands/CreateUploadUrlCommand.d.ts +14 -23
  386. package/dist-types/ts3.4/commands/DeleteBotAliasCommand.d.ts +14 -23
  387. package/dist-types/ts3.4/commands/DeleteBotCommand.d.ts +14 -23
  388. package/dist-types/ts3.4/commands/DeleteBotLocaleCommand.d.ts +14 -23
  389. package/dist-types/ts3.4/commands/DeleteBotVersionCommand.d.ts +14 -23
  390. package/dist-types/ts3.4/commands/DeleteCustomVocabularyCommand.d.ts +12 -24
  391. package/dist-types/ts3.4/commands/DeleteExportCommand.d.ts +14 -23
  392. package/dist-types/ts3.4/commands/DeleteImportCommand.d.ts +14 -23
  393. package/dist-types/ts3.4/commands/DeleteIntentCommand.d.ts +14 -23
  394. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +12 -24
  395. package/dist-types/ts3.4/commands/DeleteResourcePolicyStatementCommand.d.ts +12 -24
  396. package/dist-types/ts3.4/commands/DeleteSlotCommand.d.ts +14 -23
  397. package/dist-types/ts3.4/commands/DeleteSlotTypeCommand.d.ts +14 -23
  398. package/dist-types/ts3.4/commands/DeleteTestSetCommand.d.ts +14 -23
  399. package/dist-types/ts3.4/commands/DeleteUtterancesCommand.d.ts +14 -23
  400. package/dist-types/ts3.4/commands/DescribeBotAliasCommand.d.ts +14 -23
  401. package/dist-types/ts3.4/commands/DescribeBotCommand.d.ts +14 -23
  402. package/dist-types/ts3.4/commands/DescribeBotLocaleCommand.d.ts +14 -23
  403. package/dist-types/ts3.4/commands/DescribeBotRecommendationCommand.d.ts +12 -24
  404. package/dist-types/ts3.4/commands/DescribeBotResourceGenerationCommand.d.ts +12 -24
  405. package/dist-types/ts3.4/commands/DescribeBotVersionCommand.d.ts +14 -23
  406. package/dist-types/ts3.4/commands/DescribeCustomVocabularyMetadataCommand.d.ts +12 -24
  407. package/dist-types/ts3.4/commands/DescribeExportCommand.d.ts +14 -23
  408. package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +14 -23
  409. package/dist-types/ts3.4/commands/DescribeIntentCommand.d.ts +14 -23
  410. package/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +12 -24
  411. package/dist-types/ts3.4/commands/DescribeSlotCommand.d.ts +14 -23
  412. package/dist-types/ts3.4/commands/DescribeSlotTypeCommand.d.ts +14 -23
  413. package/dist-types/ts3.4/commands/DescribeTestExecutionCommand.d.ts +12 -24
  414. package/dist-types/ts3.4/commands/DescribeTestSetCommand.d.ts +14 -23
  415. package/dist-types/ts3.4/commands/DescribeTestSetDiscrepancyReportCommand.d.ts +12 -24
  416. package/dist-types/ts3.4/commands/DescribeTestSetGenerationCommand.d.ts +12 -24
  417. package/dist-types/ts3.4/commands/GenerateBotElementCommand.d.ts +14 -23
  418. package/dist-types/ts3.4/commands/GetTestExecutionArtifactsUrlCommand.d.ts +12 -24
  419. package/dist-types/ts3.4/commands/ListAggregatedUtterancesCommand.d.ts +12 -24
  420. package/dist-types/ts3.4/commands/ListBotAliasesCommand.d.ts +14 -23
  421. package/dist-types/ts3.4/commands/ListBotLocalesCommand.d.ts +14 -23
  422. package/dist-types/ts3.4/commands/ListBotRecommendationsCommand.d.ts +12 -24
  423. package/dist-types/ts3.4/commands/ListBotResourceGenerationsCommand.d.ts +12 -24
  424. package/dist-types/ts3.4/commands/ListBotVersionsCommand.d.ts +14 -23
  425. package/dist-types/ts3.4/commands/ListBotsCommand.d.ts +14 -23
  426. package/dist-types/ts3.4/commands/ListBuiltInIntentsCommand.d.ts +14 -23
  427. package/dist-types/ts3.4/commands/ListBuiltInSlotTypesCommand.d.ts +12 -24
  428. package/dist-types/ts3.4/commands/ListCustomVocabularyItemsCommand.d.ts +12 -24
  429. package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +14 -23
  430. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +14 -23
  431. package/dist-types/ts3.4/commands/ListIntentMetricsCommand.d.ts +14 -23
  432. package/dist-types/ts3.4/commands/ListIntentPathsCommand.d.ts +14 -23
  433. package/dist-types/ts3.4/commands/ListIntentStageMetricsCommand.d.ts +12 -24
  434. package/dist-types/ts3.4/commands/ListIntentsCommand.d.ts +14 -23
  435. package/dist-types/ts3.4/commands/ListRecommendedIntentsCommand.d.ts +12 -24
  436. package/dist-types/ts3.4/commands/ListSessionAnalyticsDataCommand.d.ts +12 -24
  437. package/dist-types/ts3.4/commands/ListSessionMetricsCommand.d.ts +14 -23
  438. package/dist-types/ts3.4/commands/ListSlotTypesCommand.d.ts +14 -23
  439. package/dist-types/ts3.4/commands/ListSlotsCommand.d.ts +14 -23
  440. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  441. package/dist-types/ts3.4/commands/ListTestExecutionResultItemsCommand.d.ts +12 -24
  442. package/dist-types/ts3.4/commands/ListTestExecutionsCommand.d.ts +14 -23
  443. package/dist-types/ts3.4/commands/ListTestSetRecordsCommand.d.ts +14 -23
  444. package/dist-types/ts3.4/commands/ListTestSetsCommand.d.ts +14 -23
  445. package/dist-types/ts3.4/commands/ListUtteranceAnalyticsDataCommand.d.ts +12 -24
  446. package/dist-types/ts3.4/commands/ListUtteranceMetricsCommand.d.ts +12 -24
  447. package/dist-types/ts3.4/commands/SearchAssociatedTranscriptsCommand.d.ts +12 -24
  448. package/dist-types/ts3.4/commands/StartBotRecommendationCommand.d.ts +12 -24
  449. package/dist-types/ts3.4/commands/StartBotResourceGenerationCommand.d.ts +12 -24
  450. package/dist-types/ts3.4/commands/StartImportCommand.d.ts +14 -23
  451. package/dist-types/ts3.4/commands/StartTestExecutionCommand.d.ts +14 -23
  452. package/dist-types/ts3.4/commands/StartTestSetGenerationCommand.d.ts +12 -24
  453. package/dist-types/ts3.4/commands/StopBotRecommendationCommand.d.ts +12 -24
  454. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  455. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  456. package/dist-types/ts3.4/commands/UpdateBotAliasCommand.d.ts +14 -23
  457. package/dist-types/ts3.4/commands/UpdateBotCommand.d.ts +14 -23
  458. package/dist-types/ts3.4/commands/UpdateBotLocaleCommand.d.ts +14 -23
  459. package/dist-types/ts3.4/commands/UpdateBotRecommendationCommand.d.ts +12 -24
  460. package/dist-types/ts3.4/commands/UpdateExportCommand.d.ts +14 -23
  461. package/dist-types/ts3.4/commands/UpdateIntentCommand.d.ts +14 -23
  462. package/dist-types/ts3.4/commands/UpdateResourcePolicyCommand.d.ts +12 -24
  463. package/dist-types/ts3.4/commands/UpdateSlotCommand.d.ts +14 -23
  464. package/dist-types/ts3.4/commands/UpdateSlotTypeCommand.d.ts +14 -23
  465. package/dist-types/ts3.4/commands/UpdateTestSetCommand.d.ts +14 -23
  466. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  467. package/dist-types/ts3.4/pagination/ListAggregatedUtterancesPaginator.d.ts +3 -3
  468. package/dist-types/ts3.4/pagination/ListBotAliasesPaginator.d.ts +3 -3
  469. package/dist-types/ts3.4/pagination/ListBotLocalesPaginator.d.ts +3 -3
  470. package/dist-types/ts3.4/pagination/ListBotRecommendationsPaginator.d.ts +3 -3
  471. package/dist-types/ts3.4/pagination/ListBotResourceGenerationsPaginator.d.ts +3 -3
  472. package/dist-types/ts3.4/pagination/ListBotVersionsPaginator.d.ts +3 -3
  473. package/dist-types/ts3.4/pagination/ListBotsPaginator.d.ts +3 -3
  474. package/dist-types/ts3.4/pagination/ListBuiltInIntentsPaginator.d.ts +3 -3
  475. package/dist-types/ts3.4/pagination/ListBuiltInSlotTypesPaginator.d.ts +3 -3
  476. package/dist-types/ts3.4/pagination/ListCustomVocabularyItemsPaginator.d.ts +3 -3
  477. package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +3 -3
  478. package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +3 -3
  479. package/dist-types/ts3.4/pagination/ListIntentMetricsPaginator.d.ts +3 -3
  480. package/dist-types/ts3.4/pagination/ListIntentStageMetricsPaginator.d.ts +3 -3
  481. package/dist-types/ts3.4/pagination/ListIntentsPaginator.d.ts +3 -3
  482. package/dist-types/ts3.4/pagination/ListRecommendedIntentsPaginator.d.ts +3 -3
  483. package/dist-types/ts3.4/pagination/ListSessionAnalyticsDataPaginator.d.ts +3 -3
  484. package/dist-types/ts3.4/pagination/ListSessionMetricsPaginator.d.ts +3 -3
  485. package/dist-types/ts3.4/pagination/ListSlotTypesPaginator.d.ts +3 -3
  486. package/dist-types/ts3.4/pagination/ListSlotsPaginator.d.ts +3 -3
  487. package/dist-types/ts3.4/pagination/ListTestExecutionResultItemsPaginator.d.ts +3 -3
  488. package/dist-types/ts3.4/pagination/ListTestExecutionsPaginator.d.ts +3 -3
  489. package/dist-types/ts3.4/pagination/ListTestSetRecordsPaginator.d.ts +3 -3
  490. package/dist-types/ts3.4/pagination/ListTestSetsPaginator.d.ts +3 -3
  491. package/dist-types/ts3.4/pagination/ListUtteranceAnalyticsDataPaginator.d.ts +3 -3
  492. package/dist-types/ts3.4/pagination/ListUtteranceMetricsPaginator.d.ts +3 -3
  493. package/package.json +11 -11
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBots = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBotsCommand_1 = require("../commands/ListBotsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBotsCommand_1.ListBotsCommand(input), ...args);
8
- };
9
- async function* paginateListBots(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBots = paginateListBots;
7
+ exports.paginateListBots = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBotsCommand_1.ListBotsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBuiltInIntents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBuiltInIntentsCommand_1 = require("../commands/ListBuiltInIntentsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBuiltInIntentsCommand_1.ListBuiltInIntentsCommand(input), ...args);
8
- };
9
- async function* paginateListBuiltInIntents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBuiltInIntents = paginateListBuiltInIntents;
7
+ exports.paginateListBuiltInIntents = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBuiltInIntentsCommand_1.ListBuiltInIntentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListBuiltInSlotTypes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListBuiltInSlotTypesCommand_1 = require("../commands/ListBuiltInSlotTypesCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListBuiltInSlotTypesCommand_1.ListBuiltInSlotTypesCommand(input), ...args);
8
- };
9
- async function* paginateListBuiltInSlotTypes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListBuiltInSlotTypes = paginateListBuiltInSlotTypes;
7
+ exports.paginateListBuiltInSlotTypes = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListBuiltInSlotTypesCommand_1.ListBuiltInSlotTypesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCustomVocabularyItems = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCustomVocabularyItemsCommand_1 = require("../commands/ListCustomVocabularyItemsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCustomVocabularyItemsCommand_1.ListCustomVocabularyItemsCommand(input), ...args);
8
- };
9
- async function* paginateListCustomVocabularyItems(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCustomVocabularyItems = paginateListCustomVocabularyItems;
7
+ exports.paginateListCustomVocabularyItems = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListCustomVocabularyItemsCommand_1.ListCustomVocabularyItemsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListExports = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListExportsCommand_1 = require("../commands/ListExportsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args);
8
- };
9
- async function* paginateListExports(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListExports = paginateListExports;
7
+ exports.paginateListExports = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListExportsCommand_1.ListExportsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListImports = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListImportsCommand_1 = require("../commands/ListImportsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListImportsCommand_1.ListImportsCommand(input), ...args);
8
- };
9
- async function* paginateListImports(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListImports = paginateListImports;
7
+ exports.paginateListImports = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListImportsCommand_1.ListImportsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIntentMetrics = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIntentMetricsCommand_1 = require("../commands/ListIntentMetricsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIntentMetricsCommand_1.ListIntentMetricsCommand(input), ...args);
8
- };
9
- async function* paginateListIntentMetrics(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListIntentMetrics = paginateListIntentMetrics;
7
+ exports.paginateListIntentMetrics = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListIntentMetricsCommand_1.ListIntentMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIntentStageMetrics = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIntentStageMetricsCommand_1 = require("../commands/ListIntentStageMetricsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIntentStageMetricsCommand_1.ListIntentStageMetricsCommand(input), ...args);
8
- };
9
- async function* paginateListIntentStageMetrics(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListIntentStageMetrics = paginateListIntentStageMetrics;
7
+ exports.paginateListIntentStageMetrics = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListIntentStageMetricsCommand_1.ListIntentStageMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListIntents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListIntentsCommand_1 = require("../commands/ListIntentsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListIntentsCommand_1.ListIntentsCommand(input), ...args);
8
- };
9
- async function* paginateListIntents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListIntents = paginateListIntents;
7
+ exports.paginateListIntents = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListIntentsCommand_1.ListIntentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRecommendedIntents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRecommendedIntentsCommand_1 = require("../commands/ListRecommendedIntentsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRecommendedIntentsCommand_1.ListRecommendedIntentsCommand(input), ...args);
8
- };
9
- async function* paginateListRecommendedIntents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListRecommendedIntents = paginateListRecommendedIntents;
7
+ exports.paginateListRecommendedIntents = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListRecommendedIntentsCommand_1.ListRecommendedIntentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSessionAnalyticsData = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSessionAnalyticsDataCommand_1 = require("../commands/ListSessionAnalyticsDataCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSessionAnalyticsDataCommand_1.ListSessionAnalyticsDataCommand(input), ...args);
8
- };
9
- async function* paginateListSessionAnalyticsData(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSessionAnalyticsData = paginateListSessionAnalyticsData;
7
+ exports.paginateListSessionAnalyticsData = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListSessionAnalyticsDataCommand_1.ListSessionAnalyticsDataCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSessionMetrics = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSessionMetricsCommand_1 = require("../commands/ListSessionMetricsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSessionMetricsCommand_1.ListSessionMetricsCommand(input), ...args);
8
- };
9
- async function* paginateListSessionMetrics(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSessionMetrics = paginateListSessionMetrics;
7
+ exports.paginateListSessionMetrics = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListSessionMetricsCommand_1.ListSessionMetricsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSlotTypes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSlotTypesCommand_1 = require("../commands/ListSlotTypesCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSlotTypesCommand_1.ListSlotTypesCommand(input), ...args);
8
- };
9
- async function* paginateListSlotTypes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSlotTypes = paginateListSlotTypes;
7
+ exports.paginateListSlotTypes = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListSlotTypesCommand_1.ListSlotTypesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSlots = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSlotsCommand_1 = require("../commands/ListSlotsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSlotsCommand_1.ListSlotsCommand(input), ...args);
8
- };
9
- async function* paginateListSlots(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSlots = paginateListSlots;
7
+ exports.paginateListSlots = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListSlotsCommand_1.ListSlotsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTestExecutionResultItems = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTestExecutionResultItemsCommand_1 = require("../commands/ListTestExecutionResultItemsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTestExecutionResultItemsCommand_1.ListTestExecutionResultItemsCommand(input), ...args);
8
- };
9
- async function* paginateListTestExecutionResultItems(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListTestExecutionResultItems = paginateListTestExecutionResultItems;
7
+ exports.paginateListTestExecutionResultItems = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListTestExecutionResultItemsCommand_1.ListTestExecutionResultItemsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTestExecutions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTestExecutionsCommand_1 = require("../commands/ListTestExecutionsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTestExecutionsCommand_1.ListTestExecutionsCommand(input), ...args);
8
- };
9
- async function* paginateListTestExecutions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListTestExecutions = paginateListTestExecutions;
7
+ exports.paginateListTestExecutions = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListTestExecutionsCommand_1.ListTestExecutionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTestSetRecords = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTestSetRecordsCommand_1 = require("../commands/ListTestSetRecordsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTestSetRecordsCommand_1.ListTestSetRecordsCommand(input), ...args);
8
- };
9
- async function* paginateListTestSetRecords(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListTestSetRecords = paginateListTestSetRecords;
7
+ exports.paginateListTestSetRecords = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListTestSetRecordsCommand_1.ListTestSetRecordsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTestSets = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTestSetsCommand_1 = require("../commands/ListTestSetsCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTestSetsCommand_1.ListTestSetsCommand(input), ...args);
8
- };
9
- async function* paginateListTestSets(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListTestSets = paginateListTestSets;
7
+ exports.paginateListTestSets = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListTestSetsCommand_1.ListTestSetsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListUtteranceAnalyticsData = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListUtteranceAnalyticsDataCommand_1 = require("../commands/ListUtteranceAnalyticsDataCommand");
5
6
  const LexModelsV2Client_1 = require("../LexModelsV2Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListUtteranceAnalyticsDataCommand_1.ListUtteranceAnalyticsDataCommand(input), ...args);
8
- };
9
- async function* paginateListUtteranceAnalyticsData(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof LexModelsV2Client_1.LexModelsV2Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected LexModelsV2 | LexModelsV2Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListUtteranceAnalyticsData = paginateListUtteranceAnalyticsData;
7
+ exports.paginateListUtteranceAnalyticsData = (0, core_1.createPaginator)(LexModelsV2Client_1.LexModelsV2Client, ListUtteranceAnalyticsDataCommand_1.ListUtteranceAnalyticsDataCommand, "nextToken", "nextToken", "maxResults");