@coveo/platform-client 35.0.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 (831) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +245 -0
  3. package/dist/APICore.js +266 -0
  4. package/dist/APICore.js.map +1 -0
  5. package/dist/ConfigurationInterfaces.js +3 -0
  6. package/dist/ConfigurationInterfaces.js.map +1 -0
  7. package/dist/Endpoints.js +41 -0
  8. package/dist/Endpoints.js.map +1 -0
  9. package/dist/Entry.js +13 -0
  10. package/dist/Entry.js.map +1 -0
  11. package/dist/PlatformClient.js +45 -0
  12. package/dist/PlatformClient.js.map +1 -0
  13. package/dist/definitions/APICore.d.ts +31 -0
  14. package/dist/definitions/ConfigurationInterfaces.d.ts +14 -0
  15. package/dist/definitions/Endpoints.d.ts +13 -0
  16. package/dist/definitions/Entry.d.ts +9 -0
  17. package/dist/definitions/PlatformClient.d.ts +18 -0
  18. package/dist/definitions/handlers/ResponseHandlerInterfaces.d.ts +4 -0
  19. package/dist/definitions/handlers/ResponseHandlers.d.ts +10 -0
  20. package/dist/definitions/handlers/index.d.ts +2 -0
  21. package/dist/definitions/resources/AWS/AWS.d.ts +9 -0
  22. package/dist/definitions/resources/AWS/AWSInterfaces.d.ts +18 -0
  23. package/dist/definitions/resources/AWS/index.d.ts +2 -0
  24. package/dist/definitions/resources/ApiKeys/ApiKeys.d.ts +12 -0
  25. package/dist/definitions/resources/ApiKeys/ApiKeysInterfaces.d.ts +133 -0
  26. package/dist/definitions/resources/ApiKeys/index.d.ts +2 -0
  27. package/dist/definitions/resources/BaseInterfaces.d.ts +51 -0
  28. package/dist/definitions/resources/CaseAssistConfigs/CaseAssistConfig.d.ts +16 -0
  29. package/dist/definitions/resources/CaseAssistConfigs/CaseAssistConfigInterfaces.d.ts +59 -0
  30. package/dist/definitions/resources/CaseAssistConfigs/CaseAssistPreviewInterfaces.d.ts +27 -0
  31. package/dist/definitions/resources/CaseAssistConfigs/index.d.ts +3 -0
  32. package/dist/definitions/resources/Catalogs/Catalog.d.ts +21 -0
  33. package/dist/definitions/resources/Catalogs/CatalogConfiguration.d.ts +11 -0
  34. package/dist/definitions/resources/Catalogs/CatalogInterfaces.d.ts +338 -0
  35. package/dist/definitions/resources/Catalogs/ProductListing.d.ts +14 -0
  36. package/dist/definitions/resources/Catalogs/ProductListingInterfaces.d.ts +76 -0
  37. package/dist/definitions/resources/Catalogs/index.d.ts +5 -0
  38. package/dist/definitions/resources/Clusters/Agents/ClusterAgent.d.ts +9 -0
  39. package/dist/definitions/resources/Clusters/Agents/ClusterAgentInterfaces.d.ts +9 -0
  40. package/dist/definitions/resources/Clusters/Agents/index.d.ts +2 -0
  41. package/dist/definitions/resources/Clusters/Cluster.d.ts +18 -0
  42. package/dist/definitions/resources/Clusters/ClusterInterfaces.d.ts +92 -0
  43. package/dist/definitions/resources/Clusters/Nodes/ClusterNode.d.ts +12 -0
  44. package/dist/definitions/resources/Clusters/Nodes/ClusterNodeInterfaces.d.ts +20 -0
  45. package/dist/definitions/resources/Clusters/Nodes/index.d.ts +2 -0
  46. package/dist/definitions/resources/Clusters/index.d.ts +4 -0
  47. package/dist/definitions/resources/Connectivity/Connectivity.d.ts +7 -0
  48. package/dist/definitions/resources/Connectivity/ConnectivityInterface.d.ts +16 -0
  49. package/dist/definitions/resources/Connectivity/index.d.ts +2 -0
  50. package/dist/definitions/resources/CrawlingModule/CrawlingModule.d.ts +11 -0
  51. package/dist/definitions/resources/CrawlingModule/CrawlingModuleInterfaces.d.ts +28 -0
  52. package/dist/definitions/resources/CrawlingModule/index.d.ts +2 -0
  53. package/dist/definitions/resources/Enums.d.ts +976 -0
  54. package/dist/definitions/resources/Extensions/Extensions.d.ts +12 -0
  55. package/dist/definitions/resources/Extensions/ExtensionsInterfaces.d.ts +55 -0
  56. package/dist/definitions/resources/Extensions/index.d.ts +2 -0
  57. package/dist/definitions/resources/Fields/Fields.d.ts +19 -0
  58. package/dist/definitions/resources/Fields/FieldsInterfaces.d.ts +70 -0
  59. package/dist/definitions/resources/Fields/index.d.ts +2 -0
  60. package/dist/definitions/resources/Global/Global.d.ts +11 -0
  61. package/dist/definitions/resources/Global/OrganizationConfigurations/OrganizationConfiguration.d.ts +8 -0
  62. package/dist/definitions/resources/Global/OrganizationConfigurations/OrganizationConfigurationInterfaces.d.ts +6 -0
  63. package/dist/definitions/resources/Global/OrganizationConfigurations/index.d.ts +2 -0
  64. package/dist/definitions/resources/Global/RegionConfigurations/RegionConfiguration.d.ts +7 -0
  65. package/dist/definitions/resources/Global/RegionConfigurations/RegionConfigurationInterfaces.d.ts +10 -0
  66. package/dist/definitions/resources/Global/RegionConfigurations/index.d.ts +2 -0
  67. package/dist/definitions/resources/Global/index.d.ts +3 -0
  68. package/dist/definitions/resources/GlobalGroups/GlobalGroup.d.ts +13 -0
  69. package/dist/definitions/resources/GlobalGroups/GlobalGroupInterfaces.d.ts +18 -0
  70. package/dist/definitions/resources/GlobalGroups/index.d.ts +2 -0
  71. package/dist/definitions/resources/Groups/Groups.d.ts +24 -0
  72. package/dist/definitions/resources/Groups/GroupsInterfaces.d.ts +21 -0
  73. package/dist/definitions/resources/Groups/Invites/GroupInvite.d.ts +11 -0
  74. package/dist/definitions/resources/Groups/Invites/GroupInviteInterfaces.d.ts +35 -0
  75. package/dist/definitions/resources/Groups/Invites/index.d.ts +2 -0
  76. package/dist/definitions/resources/Groups/Members/GroupMember.d.ts +9 -0
  77. package/dist/definitions/resources/Groups/Members/GroupMemberInterfaces.d.ts +13 -0
  78. package/dist/definitions/resources/Groups/Members/index.d.ts +2 -0
  79. package/dist/definitions/resources/Groups/Realms/GroupRealm.d.ts +9 -0
  80. package/dist/definitions/resources/Groups/Realms/GroupRealmInterfaces.d.ts +7 -0
  81. package/dist/definitions/resources/Groups/Realms/index.d.ts +2 -0
  82. package/dist/definitions/resources/Groups/index.d.ts +5 -0
  83. package/dist/definitions/resources/InProductExperiences/InProductExperiences.d.ts +31 -0
  84. package/dist/definitions/resources/InProductExperiences/InProductExperiencesInterfaces.d.ts +327 -0
  85. package/dist/definitions/resources/InProductExperiences/index.d.ts +2 -0
  86. package/dist/definitions/resources/Indexes/Indexes.d.ts +26 -0
  87. package/dist/definitions/resources/Indexes/IndexesInterface.d.ts +198 -0
  88. package/dist/definitions/resources/Indexes/index.d.ts +2 -0
  89. package/dist/definitions/resources/InsightPanelConfigs/InsightPanelConfig.d.ts +11 -0
  90. package/dist/definitions/resources/InsightPanelConfigs/InsightPanelConfigInterfaces.d.ts +158 -0
  91. package/dist/definitions/resources/InsightPanelConfigs/index.d.ts +2 -0
  92. package/dist/definitions/resources/InsightPanelInterfaces/InsightPanelInterface.d.ts +11 -0
  93. package/dist/definitions/resources/InsightPanelInterfaces/InsightPanelInterface.model.d.ts +240 -0
  94. package/dist/definitions/resources/InsightPanelInterfaces/index.d.ts +2 -0
  95. package/dist/definitions/resources/InternalBaseInterface.d.ts +12 -0
  96. package/dist/definitions/resources/License/License.d.ts +12 -0
  97. package/dist/definitions/resources/License/LicenseInterfaces.d.ts +194 -0
  98. package/dist/definitions/resources/License/index.d.ts +2 -0
  99. package/dist/definitions/resources/Limits/Limits.d.ts +12 -0
  100. package/dist/definitions/resources/Limits/LimitsInterfaces.d.ts +38 -0
  101. package/dist/definitions/resources/Limits/index.d.ts +2 -0
  102. package/dist/definitions/resources/Links/Links.d.ts +5 -0
  103. package/dist/definitions/resources/Links/index.d.ts +1 -0
  104. package/dist/definitions/resources/Logs/Logs.d.ts +8 -0
  105. package/dist/definitions/resources/Logs/LogsInterfaces.d.ts +47 -0
  106. package/dist/definitions/resources/Logs/index.d.ts +2 -0
  107. package/dist/definitions/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.d.ts +15 -0
  108. package/dist/definitions/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfigurationInterfaces.d.ts +147 -0
  109. package/dist/definitions/resources/MachineLearning/CaseClassificationConfiguration/index.d.ts +2 -0
  110. package/dist/definitions/resources/MachineLearning/DNEConfiguration/DNEConfiguration.d.ts +15 -0
  111. package/dist/definitions/resources/MachineLearning/DNEConfiguration/DNEConfigurationInterfaces.d.ts +41 -0
  112. package/dist/definitions/resources/MachineLearning/DNEConfiguration/index.d.ts +2 -0
  113. package/dist/definitions/resources/MachineLearning/FilterConditions.d.ts +18 -0
  114. package/dist/definitions/resources/MachineLearning/MachineLearning.d.ts +26 -0
  115. package/dist/definitions/resources/MachineLearning/MachineLearningInterfaces.d.ts +65 -0
  116. package/dist/definitions/resources/MachineLearning/ModelConfiguration/ModelConfiguration.d.ts +7 -0
  117. package/dist/definitions/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.d.ts +10 -0
  118. package/dist/definitions/resources/MachineLearning/ModelConfiguration/index.d.ts +2 -0
  119. package/dist/definitions/resources/MachineLearning/ModelInformation/ModelInformation.d.ts +10 -0
  120. package/dist/definitions/resources/MachineLearning/ModelInformation/ModelInformationInterfaces.d.ts +252 -0
  121. package/dist/definitions/resources/MachineLearning/ModelInformation/index.d.ts +2 -0
  122. package/dist/definitions/resources/MachineLearning/Models/Models.d.ts +13 -0
  123. package/dist/definitions/resources/MachineLearning/Models/ModelsInterfaces.d.ts +49 -0
  124. package/dist/definitions/resources/MachineLearning/Models/index.d.ts +2 -0
  125. package/dist/definitions/resources/MachineLearning/PQSConfiguration/PQSConfiguration.d.ts +6 -0
  126. package/dist/definitions/resources/MachineLearning/PQSConfiguration/PQSConfigurationInterfaces.d.ts +40 -0
  127. package/dist/definitions/resources/MachineLearning/PQSConfiguration/index.d.ts +2 -0
  128. package/dist/definitions/resources/MachineLearning/SmartSnippetsConfiguration/SmartSnippetsConfiguration.d.ts +17 -0
  129. package/dist/definitions/resources/MachineLearning/SmartSnippetsConfiguration/SmartSnippetsConfigurationInterfaces.d.ts +131 -0
  130. package/dist/definitions/resources/MachineLearning/SmartSnippetsConfiguration/index.d.ts +2 -0
  131. package/dist/definitions/resources/MachineLearning/UserActionHistoryConfiguration/UserActionHistoryConfiguration.d.ts +7 -0
  132. package/dist/definitions/resources/MachineLearning/UserActionHistoryConfiguration/index.d.ts +1 -0
  133. package/dist/definitions/resources/MachineLearning/index.d.ts +11 -0
  134. package/dist/definitions/resources/ModifierTemplates/ModifierTemplateInterfaces.d.ts +71 -0
  135. package/dist/definitions/resources/ModifierTemplates/ModifierTemplates.d.ts +7 -0
  136. package/dist/definitions/resources/ModifierTemplates/index.d.ts +2 -0
  137. package/dist/definitions/resources/Notification/Subscription/Subscription.d.ts +21 -0
  138. package/dist/definitions/resources/Notification/Subscription/SubscriptionInterfaces.d.ts +41 -0
  139. package/dist/definitions/resources/Notification/Subscription/index.d.ts +2 -0
  140. package/dist/definitions/resources/Notification/index.d.ts +2 -0
  141. package/dist/definitions/resources/Notification/notification.d.ts +9 -0
  142. package/dist/definitions/resources/OrganizationAccess/Access.d.ts +7 -0
  143. package/dist/definitions/resources/OrganizationAccess/AccessInterfaces.d.ts +13 -0
  144. package/dist/definitions/resources/OrganizationAccess/index.d.ts +2 -0
  145. package/dist/definitions/resources/Organizations/Members/Members.d.ts +8 -0
  146. package/dist/definitions/resources/Organizations/Members/MembersInterface.d.ts +37 -0
  147. package/dist/definitions/resources/Organizations/Members/index.d.ts +2 -0
  148. package/dist/definitions/resources/Organizations/Organization.d.ts +42 -0
  149. package/dist/definitions/resources/Organizations/OrganizationInterfaces.d.ts +176 -0
  150. package/dist/definitions/resources/Organizations/index.d.ts +3 -0
  151. package/dist/definitions/resources/Pipelines/Conditions/Condition.d.ts +11 -0
  152. package/dist/definitions/resources/Pipelines/Conditions/ConditionInterfaces.d.ts +25 -0
  153. package/dist/definitions/resources/Pipelines/Conditions/index.d.ts +2 -0
  154. package/dist/definitions/resources/Pipelines/FacetStateRules/FacetStateRules.d.ts +11 -0
  155. package/dist/definitions/resources/Pipelines/FacetStateRules/FacetStateRulesInterface.d.ts +45 -0
  156. package/dist/definitions/resources/Pipelines/FacetStateRules/index.d.ts +2 -0
  157. package/dist/definitions/resources/Pipelines/MLAssociations/MLAssociations.d.ts +13 -0
  158. package/dist/definitions/resources/Pipelines/MLAssociations/MLAssociationsInterfaces.d.ts +57 -0
  159. package/dist/definitions/resources/Pipelines/MLAssociations/index.d.ts +2 -0
  160. package/dist/definitions/resources/Pipelines/Pipelines.d.ts +30 -0
  161. package/dist/definitions/resources/Pipelines/PipelinesInterfaces.d.ts +183 -0
  162. package/dist/definitions/resources/Pipelines/ResultRankings/ResultRankings.d.ts +15 -0
  163. package/dist/definitions/resources/Pipelines/ResultRankings/ResultRankingsInterfaces.d.ts +266 -0
  164. package/dist/definitions/resources/Pipelines/ResultRankings/index.d.ts +2 -0
  165. package/dist/definitions/resources/Pipelines/StatementGroups/StatementGroups.d.ts +13 -0
  166. package/dist/definitions/resources/Pipelines/StatementGroups/StatementGroupsInterfaces.d.ts +230 -0
  167. package/dist/definitions/resources/Pipelines/StatementGroups/index.d.ts +2 -0
  168. package/dist/definitions/resources/Pipelines/Statements/Statements.d.ts +16 -0
  169. package/dist/definitions/resources/Pipelines/Statements/StatementsInterfaces.d.ts +139 -0
  170. package/dist/definitions/resources/Pipelines/Statements/index.d.ts +2 -0
  171. package/dist/definitions/resources/Pipelines/index.d.ts +8 -0
  172. package/dist/definitions/resources/PlatformResources.d.ts +95 -0
  173. package/dist/definitions/resources/PrivilegeEvaluator/PrivilegeEvaluator.d.ts +11 -0
  174. package/dist/definitions/resources/PrivilegeEvaluator/PrivilegeEvaluatorInterfaces.d.ts +29 -0
  175. package/dist/definitions/resources/PrivilegeEvaluator/index.d.ts +2 -0
  176. package/dist/definitions/resources/Products/Product.d.ts +7 -0
  177. package/dist/definitions/resources/Products/ProductInterfaces.d.ts +209 -0
  178. package/dist/definitions/resources/Products/index.d.ts +2 -0
  179. package/dist/definitions/resources/PushApi/PushApi.d.ts +10 -0
  180. package/dist/definitions/resources/PushApi/PushApiInterfaces.d.ts +37 -0
  181. package/dist/definitions/resources/PushApi/index.d.ts +2 -0
  182. package/dist/definitions/resources/Resource.d.ts +10 -0
  183. package/dist/definitions/resources/ResourceSnapshots/ResourceSnapshots.d.ts +61 -0
  184. package/dist/definitions/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.d.ts +309 -0
  185. package/dist/definitions/resources/ResourceSnapshots/index.d.ts +2 -0
  186. package/dist/definitions/resources/Saml/Saml.d.ts +14 -0
  187. package/dist/definitions/resources/Saml/SamlInterfaces.d.ts +13 -0
  188. package/dist/definitions/resources/Saml/index.d.ts +2 -0
  189. package/dist/definitions/resources/SchemaService/SchemaService.d.ts +60 -0
  190. package/dist/definitions/resources/SchemaService/SchemaServiceInterfaces.d.ts +155 -0
  191. package/dist/definitions/resources/SchemaService/index.d.ts +2 -0
  192. package/dist/definitions/resources/Search/Search.d.ts +10 -0
  193. package/dist/definitions/resources/Search/SearchInterfaces.d.ts +2140 -0
  194. package/dist/definitions/resources/Search/index.d.ts +2 -0
  195. package/dist/definitions/resources/SearchInterfaces/SearchInterfaces.d.ts +17 -0
  196. package/dist/definitions/resources/SearchInterfaces/SearchInterfaces.model.d.ts +179 -0
  197. package/dist/definitions/resources/SearchInterfaces/index.d.ts +2 -0
  198. package/dist/definitions/resources/SearchPages/SearchPages.d.ts +20 -0
  199. package/dist/definitions/resources/SearchPages/SearchPagesInterfaces.d.ts +42 -0
  200. package/dist/definitions/resources/SearchPages/index.d.ts +2 -0
  201. package/dist/definitions/resources/SearchUsageMetrics/LicenseMetrics/LicenseMetrics.d.ts +7 -0
  202. package/dist/definitions/resources/SearchUsageMetrics/LicenseMetrics/LicenseMetricsInterface.d.ts +49 -0
  203. package/dist/definitions/resources/SearchUsageMetrics/LicenseMetrics/index.d.ts +2 -0
  204. package/dist/definitions/resources/SearchUsageMetrics/RawMetrics/RawMetrics.d.ts +10 -0
  205. package/dist/definitions/resources/SearchUsageMetrics/RawMetrics/RawMetricsInterface.d.ts +127 -0
  206. package/dist/definitions/resources/SearchUsageMetrics/RawMetrics/index.d.ts +2 -0
  207. package/dist/definitions/resources/SearchUsageMetrics/SearchHubs/SearchHubs.d.ts +11 -0
  208. package/dist/definitions/resources/SearchUsageMetrics/SearchHubs/SearchHubsInterface.d.ts +64 -0
  209. package/dist/definitions/resources/SearchUsageMetrics/SearchHubs/index.d.ts +2 -0
  210. package/dist/definitions/resources/SearchUsageMetrics/SearchUsageMetrics.d.ts +13 -0
  211. package/dist/definitions/resources/SearchUsageMetrics/index.d.ts +4 -0
  212. package/dist/definitions/resources/SecurityCache/SecurityCache.d.ts +26 -0
  213. package/dist/definitions/resources/SecurityCache/SecurityCacheInterfaces.d.ts +137 -0
  214. package/dist/definitions/resources/SecurityCache/index.d.ts +2 -0
  215. package/dist/definitions/resources/Sources/Sources.d.ts +67 -0
  216. package/dist/definitions/resources/Sources/SourcesDatasets/SourcesDatasets.d.ts +8 -0
  217. package/dist/definitions/resources/Sources/SourcesDatasets/SourcesDatasetsInterfaces.d.ts +24 -0
  218. package/dist/definitions/resources/Sources/SourcesDatasets/index.d.ts +2 -0
  219. package/dist/definitions/resources/Sources/SourcesFields/SourcesFields.d.ts +10 -0
  220. package/dist/definitions/resources/Sources/SourcesFields/SourcesFieldsInterfaces.d.ts +15 -0
  221. package/dist/definitions/resources/Sources/SourcesFields/index.d.ts +2 -0
  222. package/dist/definitions/resources/Sources/SourcesInterfaces.d.ts +114 -0
  223. package/dist/definitions/resources/Sources/SourcesMappings/SourcesMappings.d.ts +7 -0
  224. package/dist/definitions/resources/Sources/SourcesMappings/SourcesMappingsInterfaces.d.ts +72 -0
  225. package/dist/definitions/resources/Sources/SourcesMappings/index.d.ts +2 -0
  226. package/dist/definitions/resources/Sources/SourcesMetadata/SourcesMetadata.d.ts +9 -0
  227. package/dist/definitions/resources/Sources/SourcesMetadata/SourcesMetadataInterfaces.d.ts +55 -0
  228. package/dist/definitions/resources/Sources/SourcesMetadata/index.d.ts +2 -0
  229. package/dist/definitions/resources/Sources/SourcesSubInterfaces/Address.d.ts +6 -0
  230. package/dist/definitions/resources/Sources/SourcesSubInterfaces/Authentification.d.ts +37 -0
  231. package/dist/definitions/resources/Sources/SourcesSubInterfaces/Document.d.ts +104 -0
  232. package/dist/definitions/resources/Sources/SourcesSubInterfaces/Error.d.ts +4 -0
  233. package/dist/definitions/resources/Sources/SourcesSubInterfaces/ExtendedDataFile.d.ts +5 -0
  234. package/dist/definitions/resources/Sources/SourcesSubInterfaces/Extension.d.ts +9 -0
  235. package/dist/definitions/resources/Sources/SourcesSubInterfaces/Information.d.ts +59 -0
  236. package/dist/definitions/resources/Sources/SourcesSubInterfaces/Parameter.d.ts +4 -0
  237. package/dist/definitions/resources/Sources/SourcesSubInterfaces/Permission.d.ts +42 -0
  238. package/dist/definitions/resources/Sources/SourcesSubInterfaces/Url.d.ts +6 -0
  239. package/dist/definitions/resources/Sources/SourcesSubInterfaces/User.d.ts +5 -0
  240. package/dist/definitions/resources/Sources/SourcesSubInterfaces/index.d.ts +11 -0
  241. package/dist/definitions/resources/Sources/index.d.ts +6 -0
  242. package/dist/definitions/resources/TableauService/ContentQuery/ContentQuery.d.ts +8 -0
  243. package/dist/definitions/resources/TableauService/ContentQuery/ContentQueryInterfaces.d.ts +58 -0
  244. package/dist/definitions/resources/TableauService/ContentQuery/index.d.ts +2 -0
  245. package/dist/definitions/resources/TableauService/TableauService.d.ts +9 -0
  246. package/dist/definitions/resources/TableauService/index.d.ts +2 -0
  247. package/dist/definitions/resources/UsageAnalytics/Read/Administration/Administration.d.ts +10 -0
  248. package/dist/definitions/resources/UsageAnalytics/Read/Administration/AdministrationInterfaces.d.ts +21 -0
  249. package/dist/definitions/resources/UsageAnalytics/Read/Administration/index.d.ts +2 -0
  250. package/dist/definitions/resources/UsageAnalytics/Read/DataShare/DataShare.d.ts +9 -0
  251. package/dist/definitions/resources/UsageAnalytics/Read/DataShare/DataShareInterfaces.d.ts +43 -0
  252. package/dist/definitions/resources/UsageAnalytics/Read/DataShare/index.d.ts +2 -0
  253. package/dist/definitions/resources/UsageAnalytics/Read/Dimensions/Dimensions.d.ts +21 -0
  254. package/dist/definitions/resources/UsageAnalytics/Read/Dimensions/DimensionsInterfaces.d.ts +101 -0
  255. package/dist/definitions/resources/UsageAnalytics/Read/Dimensions/index.d.ts +2 -0
  256. package/dist/definitions/resources/UsageAnalytics/Read/Exports/Exports.d.ts +20 -0
  257. package/dist/definitions/resources/UsageAnalytics/Read/Exports/ExportsInterfaces.d.ts +101 -0
  258. package/dist/definitions/resources/UsageAnalytics/Read/Exports/index.d.ts +2 -0
  259. package/dist/definitions/resources/UsageAnalytics/Read/Filters/Filters.d.ts +71 -0
  260. package/dist/definitions/resources/UsageAnalytics/Read/Filters/FiltersInterfaces.d.ts +67 -0
  261. package/dist/definitions/resources/UsageAnalytics/Read/Filters/index.d.ts +2 -0
  262. package/dist/definitions/resources/UsageAnalytics/Read/Reports/Reports.d.ts +58 -0
  263. package/dist/definitions/resources/UsageAnalytics/Read/Reports/ReportsInterfaces.d.ts +99 -0
  264. package/dist/definitions/resources/UsageAnalytics/Read/Reports/index.d.ts +2 -0
  265. package/dist/definitions/resources/UsageAnalytics/Read/Snowflake/Snowflake.d.ts +16 -0
  266. package/dist/definitions/resources/UsageAnalytics/Read/Snowflake/SnowflakeInterfaces.d.ts +49 -0
  267. package/dist/definitions/resources/UsageAnalytics/Read/Snowflake/index.d.ts +2 -0
  268. package/dist/definitions/resources/UsageAnalytics/Read/Statistics/Statistics.d.ts +18 -0
  269. package/dist/definitions/resources/UsageAnalytics/Read/Statistics/StatisticsInterfaces.d.ts +186 -0
  270. package/dist/definitions/resources/UsageAnalytics/Read/Statistics/index.d.ts +2 -0
  271. package/dist/definitions/resources/UsageAnalytics/Read/Users/Users.d.ts +12 -0
  272. package/dist/definitions/resources/UsageAnalytics/Read/Users/UsersInterfaces.d.ts +113 -0
  273. package/dist/definitions/resources/UsageAnalytics/Read/Users/index.d.ts +2 -0
  274. package/dist/definitions/resources/UsageAnalytics/Read/index.d.ts +9 -0
  275. package/dist/definitions/resources/UsageAnalytics/UsageAnalytics.d.ts +23 -0
  276. package/dist/definitions/resources/UsageAnalytics/index.d.ts +2 -0
  277. package/dist/definitions/resources/Users/User.d.ts +9 -0
  278. package/dist/definitions/resources/Users/UserInterfaces.d.ts +29 -0
  279. package/dist/definitions/resources/Users/index.d.ts +2 -0
  280. package/dist/definitions/resources/Vaults/Vaults.d.ts +33 -0
  281. package/dist/definitions/resources/Vaults/VaultsInterfaces.d.ts +29 -0
  282. package/dist/definitions/resources/Vaults/index.d.ts +2 -0
  283. package/dist/definitions/resources/index.d.ts +44 -0
  284. package/dist/definitions/utils/FormData.d.ts +1 -0
  285. package/dist/definitions/utils/Retriever.d.ts +3 -0
  286. package/dist/definitions/utils/WithRequired.d.ts +3 -0
  287. package/dist/definitions/utils/index.d.ts +2 -0
  288. package/dist/definitions/utils/normalizePaginatedOptions.d.ts +3 -0
  289. package/dist/handlers/ResponseHandlerInterfaces.js +3 -0
  290. package/dist/handlers/ResponseHandlerInterfaces.js.map +1 -0
  291. package/dist/handlers/ResponseHandlers.js +46 -0
  292. package/dist/handlers/ResponseHandlers.js.map +1 -0
  293. package/dist/handlers/index.js +6 -0
  294. package/dist/handlers/index.js.map +1 -0
  295. package/dist/resources/AWS/AWS.js +18 -0
  296. package/dist/resources/AWS/AWS.js.map +1 -0
  297. package/dist/resources/AWS/AWSInterfaces.js +3 -0
  298. package/dist/resources/AWS/AWSInterfaces.js.map +1 -0
  299. package/dist/resources/AWS/index.js +6 -0
  300. package/dist/resources/AWS/index.js.map +1 -0
  301. package/dist/resources/ApiKeys/ApiKeys.js +34 -0
  302. package/dist/resources/ApiKeys/ApiKeys.js.map +1 -0
  303. package/dist/resources/ApiKeys/ApiKeysInterfaces.js +3 -0
  304. package/dist/resources/ApiKeys/ApiKeysInterfaces.js.map +1 -0
  305. package/dist/resources/ApiKeys/index.js +6 -0
  306. package/dist/resources/ApiKeys/index.js.map +1 -0
  307. package/dist/resources/BaseInterfaces.js +3 -0
  308. package/dist/resources/BaseInterfaces.js.map +1 -0
  309. package/dist/resources/CaseAssistConfigs/CaseAssistConfig.js +42 -0
  310. package/dist/resources/CaseAssistConfigs/CaseAssistConfig.js.map +1 -0
  311. package/dist/resources/CaseAssistConfigs/CaseAssistConfigInterfaces.js +18 -0
  312. package/dist/resources/CaseAssistConfigs/CaseAssistConfigInterfaces.js.map +1 -0
  313. package/dist/resources/CaseAssistConfigs/CaseAssistPreviewInterfaces.js +3 -0
  314. package/dist/resources/CaseAssistConfigs/CaseAssistPreviewInterfaces.js.map +1 -0
  315. package/dist/resources/CaseAssistConfigs/index.js +7 -0
  316. package/dist/resources/CaseAssistConfigs/index.js.map +1 -0
  317. package/dist/resources/Catalogs/Catalog.js +43 -0
  318. package/dist/resources/Catalogs/Catalog.js.map +1 -0
  319. package/dist/resources/Catalogs/CatalogConfiguration.js +30 -0
  320. package/dist/resources/Catalogs/CatalogConfiguration.js.map +1 -0
  321. package/dist/resources/Catalogs/CatalogInterfaces.js +3 -0
  322. package/dist/resources/Catalogs/CatalogInterfaces.js.map +1 -0
  323. package/dist/resources/Catalogs/ProductListing.js +39 -0
  324. package/dist/resources/Catalogs/ProductListing.js.map +1 -0
  325. package/dist/resources/Catalogs/ProductListingInterfaces.js +3 -0
  326. package/dist/resources/Catalogs/ProductListingInterfaces.js.map +1 -0
  327. package/dist/resources/Catalogs/index.js +9 -0
  328. package/dist/resources/Catalogs/index.js.map +1 -0
  329. package/dist/resources/Clusters/Agents/ClusterAgent.js +21 -0
  330. package/dist/resources/Clusters/Agents/ClusterAgent.js.map +1 -0
  331. package/dist/resources/Clusters/Agents/ClusterAgentInterfaces.js +3 -0
  332. package/dist/resources/Clusters/Agents/ClusterAgentInterfaces.js.map +1 -0
  333. package/dist/resources/Clusters/Agents/index.js +6 -0
  334. package/dist/resources/Clusters/Agents/index.js.map +1 -0
  335. package/dist/resources/Clusters/Cluster.js +38 -0
  336. package/dist/resources/Clusters/Cluster.js.map +1 -0
  337. package/dist/resources/Clusters/ClusterInterfaces.js +3 -0
  338. package/dist/resources/Clusters/ClusterInterfaces.js.map +1 -0
  339. package/dist/resources/Clusters/Nodes/ClusterNode.js +33 -0
  340. package/dist/resources/Clusters/Nodes/ClusterNode.js.map +1 -0
  341. package/dist/resources/Clusters/Nodes/ClusterNodeInterfaces.js +3 -0
  342. package/dist/resources/Clusters/Nodes/ClusterNodeInterfaces.js.map +1 -0
  343. package/dist/resources/Clusters/Nodes/index.js +6 -0
  344. package/dist/resources/Clusters/Nodes/index.js.map +1 -0
  345. package/dist/resources/Clusters/index.js +8 -0
  346. package/dist/resources/Clusters/index.js.map +1 -0
  347. package/dist/resources/Connectivity/Connectivity.js +23 -0
  348. package/dist/resources/Connectivity/Connectivity.js.map +1 -0
  349. package/dist/resources/Connectivity/ConnectivityInterface.js +9 -0
  350. package/dist/resources/Connectivity/ConnectivityInterface.js.map +1 -0
  351. package/dist/resources/Connectivity/index.js +6 -0
  352. package/dist/resources/Connectivity/index.js.map +1 -0
  353. package/dist/resources/CrawlingModule/CrawlingModule.js +33 -0
  354. package/dist/resources/CrawlingModule/CrawlingModule.js.map +1 -0
  355. package/dist/resources/CrawlingModule/CrawlingModuleInterfaces.js +3 -0
  356. package/dist/resources/CrawlingModule/CrawlingModuleInterfaces.js.map +1 -0
  357. package/dist/resources/CrawlingModule/index.js +6 -0
  358. package/dist/resources/CrawlingModule/index.js.map +1 -0
  359. package/dist/resources/Enums.js +1090 -0
  360. package/dist/resources/Enums.js.map +1 -0
  361. package/dist/resources/Extensions/Extensions.js +36 -0
  362. package/dist/resources/Extensions/Extensions.js.map +1 -0
  363. package/dist/resources/Extensions/ExtensionsInterfaces.js +3 -0
  364. package/dist/resources/Extensions/ExtensionsInterfaces.js.map +1 -0
  365. package/dist/resources/Extensions/index.js +6 -0
  366. package/dist/resources/Extensions/index.js.map +1 -0
  367. package/dist/resources/Fields/Fields.js +49 -0
  368. package/dist/resources/Fields/Fields.js.map +1 -0
  369. package/dist/resources/Fields/FieldsInterfaces.js +3 -0
  370. package/dist/resources/Fields/FieldsInterfaces.js.map +1 -0
  371. package/dist/resources/Fields/index.js +6 -0
  372. package/dist/resources/Fields/index.js.map +1 -0
  373. package/dist/resources/Global/Global.js +20 -0
  374. package/dist/resources/Global/Global.js.map +1 -0
  375. package/dist/resources/Global/OrganizationConfigurations/OrganizationConfiguration.js +20 -0
  376. package/dist/resources/Global/OrganizationConfigurations/OrganizationConfiguration.js.map +1 -0
  377. package/dist/resources/Global/OrganizationConfigurations/OrganizationConfigurationInterfaces.js +3 -0
  378. package/dist/resources/Global/OrganizationConfigurations/OrganizationConfigurationInterfaces.js.map +1 -0
  379. package/dist/resources/Global/OrganizationConfigurations/index.js +6 -0
  380. package/dist/resources/Global/OrganizationConfigurations/index.js.map +1 -0
  381. package/dist/resources/Global/RegionConfigurations/RegionConfiguration.js +20 -0
  382. package/dist/resources/Global/RegionConfigurations/RegionConfiguration.js.map +1 -0
  383. package/dist/resources/Global/RegionConfigurations/RegionConfigurationInterfaces.js +3 -0
  384. package/dist/resources/Global/RegionConfigurations/RegionConfigurationInterfaces.js.map +1 -0
  385. package/dist/resources/Global/RegionConfigurations/index.js +6 -0
  386. package/dist/resources/Global/RegionConfigurations/index.js.map +1 -0
  387. package/dist/resources/Global/index.js +7 -0
  388. package/dist/resources/Global/index.js.map +1 -0
  389. package/dist/resources/GlobalGroups/GlobalGroup.js +29 -0
  390. package/dist/resources/GlobalGroups/GlobalGroup.js.map +1 -0
  391. package/dist/resources/GlobalGroups/GlobalGroupInterfaces.js +3 -0
  392. package/dist/resources/GlobalGroups/GlobalGroupInterfaces.js.map +1 -0
  393. package/dist/resources/GlobalGroups/index.js +6 -0
  394. package/dist/resources/GlobalGroups/index.js.map +1 -0
  395. package/dist/resources/Groups/Groups.js +42 -0
  396. package/dist/resources/Groups/Groups.js.map +1 -0
  397. package/dist/resources/Groups/GroupsInterfaces.js +3 -0
  398. package/dist/resources/Groups/GroupsInterfaces.js.map +1 -0
  399. package/dist/resources/Groups/Invites/GroupInvite.js +31 -0
  400. package/dist/resources/Groups/Invites/GroupInvite.js.map +1 -0
  401. package/dist/resources/Groups/Invites/GroupInviteInterfaces.js +3 -0
  402. package/dist/resources/Groups/Invites/GroupInviteInterfaces.js.map +1 -0
  403. package/dist/resources/Groups/Invites/index.js +6 -0
  404. package/dist/resources/Groups/Invites/index.js.map +1 -0
  405. package/dist/resources/Groups/Members/GroupMember.js +28 -0
  406. package/dist/resources/Groups/Members/GroupMember.js.map +1 -0
  407. package/dist/resources/Groups/Members/GroupMemberInterfaces.js +3 -0
  408. package/dist/resources/Groups/Members/GroupMemberInterfaces.js.map +1 -0
  409. package/dist/resources/Groups/Members/index.js +6 -0
  410. package/dist/resources/Groups/Members/index.js.map +1 -0
  411. package/dist/resources/Groups/Realms/GroupRealm.js +27 -0
  412. package/dist/resources/Groups/Realms/GroupRealm.js.map +1 -0
  413. package/dist/resources/Groups/Realms/GroupRealmInterfaces.js +3 -0
  414. package/dist/resources/Groups/Realms/GroupRealmInterfaces.js.map +1 -0
  415. package/dist/resources/Groups/Realms/index.js +6 -0
  416. package/dist/resources/Groups/Realms/index.js.map +1 -0
  417. package/dist/resources/Groups/index.js +9 -0
  418. package/dist/resources/Groups/index.js.map +1 -0
  419. package/dist/resources/InProductExperiences/InProductExperiences.js +45 -0
  420. package/dist/resources/InProductExperiences/InProductExperiences.js.map +1 -0
  421. package/dist/resources/InProductExperiences/InProductExperiencesInterfaces.js +31 -0
  422. package/dist/resources/InProductExperiences/InProductExperiencesInterfaces.js.map +1 -0
  423. package/dist/resources/InProductExperiences/index.js +6 -0
  424. package/dist/resources/InProductExperiences/index.js.map +1 -0
  425. package/dist/resources/Indexes/Indexes.js +62 -0
  426. package/dist/resources/Indexes/Indexes.js.map +1 -0
  427. package/dist/resources/Indexes/IndexesInterface.js +3 -0
  428. package/dist/resources/Indexes/IndexesInterface.js.map +1 -0
  429. package/dist/resources/Indexes/index.js +6 -0
  430. package/dist/resources/Indexes/index.js.map +1 -0
  431. package/dist/resources/InsightPanelConfigs/InsightPanelConfig.js +31 -0
  432. package/dist/resources/InsightPanelConfigs/InsightPanelConfig.js.map +1 -0
  433. package/dist/resources/InsightPanelConfigs/InsightPanelConfigInterfaces.js +3 -0
  434. package/dist/resources/InsightPanelConfigs/InsightPanelConfigInterfaces.js.map +1 -0
  435. package/dist/resources/InsightPanelConfigs/index.js +6 -0
  436. package/dist/resources/InsightPanelConfigs/index.js.map +1 -0
  437. package/dist/resources/InsightPanelInterfaces/InsightPanelInterface.js +31 -0
  438. package/dist/resources/InsightPanelInterfaces/InsightPanelInterface.js.map +1 -0
  439. package/dist/resources/InsightPanelInterfaces/InsightPanelInterface.model.js +16 -0
  440. package/dist/resources/InsightPanelInterfaces/InsightPanelInterface.model.js.map +1 -0
  441. package/dist/resources/InsightPanelInterfaces/index.js +6 -0
  442. package/dist/resources/InsightPanelInterfaces/index.js.map +1 -0
  443. package/dist/resources/InternalBaseInterface.js +3 -0
  444. package/dist/resources/InternalBaseInterface.js.map +1 -0
  445. package/dist/resources/License/License.js +33 -0
  446. package/dist/resources/License/License.js.map +1 -0
  447. package/dist/resources/License/LicenseInterfaces.js +79 -0
  448. package/dist/resources/License/LicenseInterfaces.js.map +1 -0
  449. package/dist/resources/License/index.js +6 -0
  450. package/dist/resources/License/index.js.map +1 -0
  451. package/dist/resources/Limits/Limits.js +31 -0
  452. package/dist/resources/Limits/Limits.js.map +1 -0
  453. package/dist/resources/Limits/LimitsInterfaces.js +9 -0
  454. package/dist/resources/Limits/LimitsInterfaces.js.map +1 -0
  455. package/dist/resources/Limits/index.js +6 -0
  456. package/dist/resources/Limits/index.js.map +1 -0
  457. package/dist/resources/Links/Links.js +18 -0
  458. package/dist/resources/Links/Links.js.map +1 -0
  459. package/dist/resources/Links/index.js +5 -0
  460. package/dist/resources/Links/index.js.map +1 -0
  461. package/dist/resources/Logs/Logs.js +24 -0
  462. package/dist/resources/Logs/Logs.js.map +1 -0
  463. package/dist/resources/Logs/LogsInterfaces.js +3 -0
  464. package/dist/resources/Logs/LogsInterfaces.js.map +1 -0
  465. package/dist/resources/Logs/index.js +6 -0
  466. package/dist/resources/Logs/index.js.map +1 -0
  467. package/dist/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.js +36 -0
  468. package/dist/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfiguration.js.map +1 -0
  469. package/dist/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfigurationInterfaces.js +9 -0
  470. package/dist/resources/MachineLearning/CaseClassificationConfiguration/CaseClassificationConfigurationInterfaces.js.map +1 -0
  471. package/dist/resources/MachineLearning/CaseClassificationConfiguration/index.js +6 -0
  472. package/dist/resources/MachineLearning/CaseClassificationConfiguration/index.js.map +1 -0
  473. package/dist/resources/MachineLearning/DNEConfiguration/DNEConfiguration.js +52 -0
  474. package/dist/resources/MachineLearning/DNEConfiguration/DNEConfiguration.js.map +1 -0
  475. package/dist/resources/MachineLearning/DNEConfiguration/DNEConfigurationInterfaces.js +3 -0
  476. package/dist/resources/MachineLearning/DNEConfiguration/DNEConfigurationInterfaces.js.map +1 -0
  477. package/dist/resources/MachineLearning/DNEConfiguration/index.js +6 -0
  478. package/dist/resources/MachineLearning/DNEConfiguration/index.js.map +1 -0
  479. package/dist/resources/MachineLearning/FilterConditions.js +3 -0
  480. package/dist/resources/MachineLearning/FilterConditions.js.map +1 -0
  481. package/dist/resources/MachineLearning/MachineLearning.js +37 -0
  482. package/dist/resources/MachineLearning/MachineLearning.js.map +1 -0
  483. package/dist/resources/MachineLearning/MachineLearningInterfaces.js +3 -0
  484. package/dist/resources/MachineLearning/MachineLearningInterfaces.js.map +1 -0
  485. package/dist/resources/MachineLearning/ModelConfiguration/ModelConfiguration.js +23 -0
  486. package/dist/resources/MachineLearning/ModelConfiguration/ModelConfiguration.js.map +1 -0
  487. package/dist/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.js +3 -0
  488. package/dist/resources/MachineLearning/ModelConfiguration/ModelConfigurationInterfaces.js.map +1 -0
  489. package/dist/resources/MachineLearning/ModelConfiguration/index.js +6 -0
  490. package/dist/resources/MachineLearning/ModelConfiguration/index.js.map +1 -0
  491. package/dist/resources/MachineLearning/ModelInformation/ModelInformation.js +26 -0
  492. package/dist/resources/MachineLearning/ModelInformation/ModelInformation.js.map +1 -0
  493. package/dist/resources/MachineLearning/ModelInformation/ModelInformationInterfaces.js +3 -0
  494. package/dist/resources/MachineLearning/ModelInformation/ModelInformationInterfaces.js.map +1 -0
  495. package/dist/resources/MachineLearning/ModelInformation/index.js +6 -0
  496. package/dist/resources/MachineLearning/ModelInformation/index.js.map +1 -0
  497. package/dist/resources/MachineLearning/Models/Models.js +36 -0
  498. package/dist/resources/MachineLearning/Models/Models.js.map +1 -0
  499. package/dist/resources/MachineLearning/Models/ModelsInterfaces.js +3 -0
  500. package/dist/resources/MachineLearning/Models/ModelsInterfaces.js.map +1 -0
  501. package/dist/resources/MachineLearning/Models/index.js +6 -0
  502. package/dist/resources/MachineLearning/Models/index.js.map +1 -0
  503. package/dist/resources/MachineLearning/PQSConfiguration/PQSConfiguration.js +18 -0
  504. package/dist/resources/MachineLearning/PQSConfiguration/PQSConfiguration.js.map +1 -0
  505. package/dist/resources/MachineLearning/PQSConfiguration/PQSConfigurationInterfaces.js +3 -0
  506. package/dist/resources/MachineLearning/PQSConfiguration/PQSConfigurationInterfaces.js.map +1 -0
  507. package/dist/resources/MachineLearning/PQSConfiguration/index.js +6 -0
  508. package/dist/resources/MachineLearning/PQSConfiguration/index.js.map +1 -0
  509. package/dist/resources/MachineLearning/SmartSnippetsConfiguration/SmartSnippetsConfiguration.js +40 -0
  510. package/dist/resources/MachineLearning/SmartSnippetsConfiguration/SmartSnippetsConfiguration.js.map +1 -0
  511. package/dist/resources/MachineLearning/SmartSnippetsConfiguration/SmartSnippetsConfigurationInterfaces.js +3 -0
  512. package/dist/resources/MachineLearning/SmartSnippetsConfiguration/SmartSnippetsConfigurationInterfaces.js.map +1 -0
  513. package/dist/resources/MachineLearning/SmartSnippetsConfiguration/index.js +6 -0
  514. package/dist/resources/MachineLearning/SmartSnippetsConfiguration/index.js.map +1 -0
  515. package/dist/resources/MachineLearning/UserActionHistoryConfiguration/UserActionHistoryConfiguration.js +24 -0
  516. package/dist/resources/MachineLearning/UserActionHistoryConfiguration/UserActionHistoryConfiguration.js.map +1 -0
  517. package/dist/resources/MachineLearning/UserActionHistoryConfiguration/index.js +5 -0
  518. package/dist/resources/MachineLearning/UserActionHistoryConfiguration/index.js.map +1 -0
  519. package/dist/resources/MachineLearning/index.js +15 -0
  520. package/dist/resources/MachineLearning/index.js.map +1 -0
  521. package/dist/resources/ModifierTemplates/ModifierTemplateInterfaces.js +27 -0
  522. package/dist/resources/ModifierTemplates/ModifierTemplateInterfaces.js.map +1 -0
  523. package/dist/resources/ModifierTemplates/ModifierTemplates.js +20 -0
  524. package/dist/resources/ModifierTemplates/ModifierTemplates.js.map +1 -0
  525. package/dist/resources/ModifierTemplates/index.js +6 -0
  526. package/dist/resources/ModifierTemplates/index.js.map +1 -0
  527. package/dist/resources/Notification/Subscription/Subscription.js +62 -0
  528. package/dist/resources/Notification/Subscription/Subscription.js.map +1 -0
  529. package/dist/resources/Notification/Subscription/SubscriptionInterfaces.js +3 -0
  530. package/dist/resources/Notification/Subscription/SubscriptionInterfaces.js.map +1 -0
  531. package/dist/resources/Notification/Subscription/index.js +6 -0
  532. package/dist/resources/Notification/Subscription/index.js.map +1 -0
  533. package/dist/resources/Notification/index.js +6 -0
  534. package/dist/resources/Notification/index.js.map +1 -0
  535. package/dist/resources/Notification/notification.js +18 -0
  536. package/dist/resources/Notification/notification.js.map +1 -0
  537. package/dist/resources/OrganizationAccess/Access.js +21 -0
  538. package/dist/resources/OrganizationAccess/Access.js.map +1 -0
  539. package/dist/resources/OrganizationAccess/AccessInterfaces.js +3 -0
  540. package/dist/resources/OrganizationAccess/AccessInterfaces.js.map +1 -0
  541. package/dist/resources/OrganizationAccess/index.js +6 -0
  542. package/dist/resources/OrganizationAccess/index.js.map +1 -0
  543. package/dist/resources/Organizations/Members/Members.js +24 -0
  544. package/dist/resources/Organizations/Members/Members.js.map +1 -0
  545. package/dist/resources/Organizations/Members/MembersInterface.js +3 -0
  546. package/dist/resources/Organizations/Members/MembersInterface.js.map +1 -0
  547. package/dist/resources/Organizations/Members/index.js +6 -0
  548. package/dist/resources/Organizations/Members/index.js.map +1 -0
  549. package/dist/resources/Organizations/Organization.js +92 -0
  550. package/dist/resources/Organizations/Organization.js.map +1 -0
  551. package/dist/resources/Organizations/OrganizationInterfaces.js +58 -0
  552. package/dist/resources/Organizations/OrganizationInterfaces.js.map +1 -0
  553. package/dist/resources/Organizations/index.js +7 -0
  554. package/dist/resources/Organizations/index.js.map +1 -0
  555. package/dist/resources/Pipelines/Conditions/Condition.js +30 -0
  556. package/dist/resources/Pipelines/Conditions/Condition.js.map +1 -0
  557. package/dist/resources/Pipelines/Conditions/ConditionInterfaces.js +3 -0
  558. package/dist/resources/Pipelines/Conditions/ConditionInterfaces.js.map +1 -0
  559. package/dist/resources/Pipelines/Conditions/index.js +6 -0
  560. package/dist/resources/Pipelines/Conditions/index.js.map +1 -0
  561. package/dist/resources/Pipelines/FacetStateRules/FacetStateRules.js +40 -0
  562. package/dist/resources/Pipelines/FacetStateRules/FacetStateRules.js.map +1 -0
  563. package/dist/resources/Pipelines/FacetStateRules/FacetStateRulesInterface.js +3 -0
  564. package/dist/resources/Pipelines/FacetStateRules/FacetStateRulesInterface.js.map +1 -0
  565. package/dist/resources/Pipelines/FacetStateRules/index.js +6 -0
  566. package/dist/resources/Pipelines/FacetStateRules/index.js.map +1 -0
  567. package/dist/resources/Pipelines/MLAssociations/MLAssociations.js +46 -0
  568. package/dist/resources/Pipelines/MLAssociations/MLAssociations.js.map +1 -0
  569. package/dist/resources/Pipelines/MLAssociations/MLAssociationsInterfaces.js +3 -0
  570. package/dist/resources/Pipelines/MLAssociations/MLAssociationsInterfaces.js.map +1 -0
  571. package/dist/resources/Pipelines/MLAssociations/index.js +6 -0
  572. package/dist/resources/Pipelines/MLAssociations/index.js.map +1 -0
  573. package/dist/resources/Pipelines/Pipelines.js +61 -0
  574. package/dist/resources/Pipelines/Pipelines.js.map +1 -0
  575. package/dist/resources/Pipelines/PipelinesInterfaces.js +3 -0
  576. package/dist/resources/Pipelines/PipelinesInterfaces.js.map +1 -0
  577. package/dist/resources/Pipelines/ResultRankings/ResultRankings.js +60 -0
  578. package/dist/resources/Pipelines/ResultRankings/ResultRankings.js.map +1 -0
  579. package/dist/resources/Pipelines/ResultRankings/ResultRankingsInterfaces.js +3 -0
  580. package/dist/resources/Pipelines/ResultRankings/ResultRankingsInterfaces.js.map +1 -0
  581. package/dist/resources/Pipelines/ResultRankings/index.js +6 -0
  582. package/dist/resources/Pipelines/ResultRankings/index.js.map +1 -0
  583. package/dist/resources/Pipelines/StatementGroups/StatementGroups.js +48 -0
  584. package/dist/resources/Pipelines/StatementGroups/StatementGroups.js.map +1 -0
  585. package/dist/resources/Pipelines/StatementGroups/StatementGroupsInterfaces.js +8 -0
  586. package/dist/resources/Pipelines/StatementGroups/StatementGroupsInterfaces.js.map +1 -0
  587. package/dist/resources/Pipelines/StatementGroups/index.js +6 -0
  588. package/dist/resources/Pipelines/StatementGroups/index.js.map +1 -0
  589. package/dist/resources/Pipelines/Statements/Statements.js +56 -0
  590. package/dist/resources/Pipelines/Statements/Statements.js.map +1 -0
  591. package/dist/resources/Pipelines/Statements/StatementsInterfaces.js +3 -0
  592. package/dist/resources/Pipelines/Statements/StatementsInterfaces.js.map +1 -0
  593. package/dist/resources/Pipelines/Statements/index.js +6 -0
  594. package/dist/resources/Pipelines/Statements/index.js.map +1 -0
  595. package/dist/resources/Pipelines/index.js +12 -0
  596. package/dist/resources/Pipelines/index.js.map +1 -0
  597. package/dist/resources/PlatformResources.js +109 -0
  598. package/dist/resources/PlatformResources.js.map +1 -0
  599. package/dist/resources/PrivilegeEvaluator/PrivilegeEvaluator.js +23 -0
  600. package/dist/resources/PrivilegeEvaluator/PrivilegeEvaluator.js.map +1 -0
  601. package/dist/resources/PrivilegeEvaluator/PrivilegeEvaluatorInterfaces.js +15 -0
  602. package/dist/resources/PrivilegeEvaluator/PrivilegeEvaluatorInterfaces.js.map +1 -0
  603. package/dist/resources/PrivilegeEvaluator/index.js +6 -0
  604. package/dist/resources/PrivilegeEvaluator/index.js.map +1 -0
  605. package/dist/resources/Products/Product.js +18 -0
  606. package/dist/resources/Products/Product.js.map +1 -0
  607. package/dist/resources/Products/ProductInterfaces.js +3 -0
  608. package/dist/resources/Products/ProductInterfaces.js.map +1 -0
  609. package/dist/resources/Products/index.js +6 -0
  610. package/dist/resources/Products/index.js.map +1 -0
  611. package/dist/resources/PushApi/PushApi.js +34 -0
  612. package/dist/resources/PushApi/PushApi.js.map +1 -0
  613. package/dist/resources/PushApi/PushApiInterfaces.js +3 -0
  614. package/dist/resources/PushApi/PushApiInterfaces.js.map +1 -0
  615. package/dist/resources/PushApi/index.js +6 -0
  616. package/dist/resources/PushApi/index.js.map +1 -0
  617. package/dist/resources/Resource.js +25 -0
  618. package/dist/resources/Resource.js.map +1 -0
  619. package/dist/resources/ResourceSnapshots/ResourceSnapshots.js +145 -0
  620. package/dist/resources/ResourceSnapshots/ResourceSnapshots.js.map +1 -0
  621. package/dist/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js +87 -0
  622. package/dist/resources/ResourceSnapshots/ResourceSnapshotsInterfaces.js.map +1 -0
  623. package/dist/resources/ResourceSnapshots/index.js +6 -0
  624. package/dist/resources/ResourceSnapshots/index.js.map +1 -0
  625. package/dist/resources/Saml/Saml.js +36 -0
  626. package/dist/resources/Saml/Saml.js.map +1 -0
  627. package/dist/resources/Saml/SamlInterfaces.js +3 -0
  628. package/dist/resources/Saml/SamlInterfaces.js.map +1 -0
  629. package/dist/resources/Saml/index.js +6 -0
  630. package/dist/resources/Saml/index.js.map +1 -0
  631. package/dist/resources/SchemaService/SchemaService.js +85 -0
  632. package/dist/resources/SchemaService/SchemaService.js.map +1 -0
  633. package/dist/resources/SchemaService/SchemaServiceInterfaces.js +3 -0
  634. package/dist/resources/SchemaService/SchemaServiceInterfaces.js.map +1 -0
  635. package/dist/resources/SchemaService/index.js +6 -0
  636. package/dist/resources/SchemaService/index.js.map +1 -0
  637. package/dist/resources/Search/Search.js +37 -0
  638. package/dist/resources/Search/Search.js.map +1 -0
  639. package/dist/resources/Search/SearchInterfaces.js +3 -0
  640. package/dist/resources/Search/SearchInterfaces.js.map +1 -0
  641. package/dist/resources/Search/index.js +6 -0
  642. package/dist/resources/Search/index.js.map +1 -0
  643. package/dist/resources/SearchInterfaces/SearchInterfaces.js +49 -0
  644. package/dist/resources/SearchInterfaces/SearchInterfaces.js.map +1 -0
  645. package/dist/resources/SearchInterfaces/SearchInterfaces.model.js +3 -0
  646. package/dist/resources/SearchInterfaces/SearchInterfaces.model.js.map +1 -0
  647. package/dist/resources/SearchInterfaces/index.js +6 -0
  648. package/dist/resources/SearchInterfaces/index.js.map +1 -0
  649. package/dist/resources/SearchPages/SearchPages.js +60 -0
  650. package/dist/resources/SearchPages/SearchPages.js.map +1 -0
  651. package/dist/resources/SearchPages/SearchPagesInterfaces.js +3 -0
  652. package/dist/resources/SearchPages/SearchPagesInterfaces.js.map +1 -0
  653. package/dist/resources/SearchPages/index.js +6 -0
  654. package/dist/resources/SearchPages/index.js.map +1 -0
  655. package/dist/resources/SearchUsageMetrics/LicenseMetrics/LicenseMetrics.js +21 -0
  656. package/dist/resources/SearchUsageMetrics/LicenseMetrics/LicenseMetrics.js.map +1 -0
  657. package/dist/resources/SearchUsageMetrics/LicenseMetrics/LicenseMetricsInterface.js +3 -0
  658. package/dist/resources/SearchUsageMetrics/LicenseMetrics/LicenseMetricsInterface.js.map +1 -0
  659. package/dist/resources/SearchUsageMetrics/LicenseMetrics/index.js +6 -0
  660. package/dist/resources/SearchUsageMetrics/LicenseMetrics/index.js.map +1 -0
  661. package/dist/resources/SearchUsageMetrics/RawMetrics/RawMetrics.js +45 -0
  662. package/dist/resources/SearchUsageMetrics/RawMetrics/RawMetrics.js.map +1 -0
  663. package/dist/resources/SearchUsageMetrics/RawMetrics/RawMetricsInterface.js +3 -0
  664. package/dist/resources/SearchUsageMetrics/RawMetrics/RawMetricsInterface.js.map +1 -0
  665. package/dist/resources/SearchUsageMetrics/RawMetrics/index.js +6 -0
  666. package/dist/resources/SearchUsageMetrics/RawMetrics/index.js.map +1 -0
  667. package/dist/resources/SearchUsageMetrics/SearchHubs/SearchHubs.js +39 -0
  668. package/dist/resources/SearchUsageMetrics/SearchHubs/SearchHubs.js.map +1 -0
  669. package/dist/resources/SearchUsageMetrics/SearchHubs/SearchHubsInterface.js +3 -0
  670. package/dist/resources/SearchUsageMetrics/SearchHubs/SearchHubsInterface.js.map +1 -0
  671. package/dist/resources/SearchUsageMetrics/SearchHubs/index.js +6 -0
  672. package/dist/resources/SearchUsageMetrics/SearchHubs/index.js.map +1 -0
  673. package/dist/resources/SearchUsageMetrics/SearchUsageMetrics.js +22 -0
  674. package/dist/resources/SearchUsageMetrics/SearchUsageMetrics.js.map +1 -0
  675. package/dist/resources/SearchUsageMetrics/index.js +8 -0
  676. package/dist/resources/SearchUsageMetrics/index.js.map +1 -0
  677. package/dist/resources/SecurityCache/SecurityCache.js +80 -0
  678. package/dist/resources/SecurityCache/SecurityCache.js.map +1 -0
  679. package/dist/resources/SecurityCache/SecurityCacheInterfaces.js +3 -0
  680. package/dist/resources/SecurityCache/SecurityCacheInterfaces.js.map +1 -0
  681. package/dist/resources/SecurityCache/index.js +6 -0
  682. package/dist/resources/SecurityCache/index.js.map +1 -0
  683. package/dist/resources/Sources/Sources.js +123 -0
  684. package/dist/resources/Sources/Sources.js.map +1 -0
  685. package/dist/resources/Sources/SourcesDatasets/SourcesDatasets.js +30 -0
  686. package/dist/resources/Sources/SourcesDatasets/SourcesDatasets.js.map +1 -0
  687. package/dist/resources/Sources/SourcesDatasets/SourcesDatasetsInterfaces.js +35 -0
  688. package/dist/resources/Sources/SourcesDatasets/SourcesDatasetsInterfaces.js.map +1 -0
  689. package/dist/resources/Sources/SourcesDatasets/index.js +6 -0
  690. package/dist/resources/Sources/SourcesDatasets/index.js.map +1 -0
  691. package/dist/resources/Sources/SourcesFields/SourcesFields.js +28 -0
  692. package/dist/resources/Sources/SourcesFields/SourcesFields.js.map +1 -0
  693. package/dist/resources/Sources/SourcesFields/SourcesFieldsInterfaces.js +3 -0
  694. package/dist/resources/Sources/SourcesFields/SourcesFieldsInterfaces.js.map +1 -0
  695. package/dist/resources/Sources/SourcesFields/index.js +6 -0
  696. package/dist/resources/Sources/SourcesFields/index.js.map +1 -0
  697. package/dist/resources/Sources/SourcesInterfaces.js +5 -0
  698. package/dist/resources/Sources/SourcesInterfaces.js.map +1 -0
  699. package/dist/resources/Sources/SourcesMappings/SourcesMappings.js +22 -0
  700. package/dist/resources/Sources/SourcesMappings/SourcesMappings.js.map +1 -0
  701. package/dist/resources/Sources/SourcesMappings/SourcesMappingsInterfaces.js +3 -0
  702. package/dist/resources/Sources/SourcesMappings/SourcesMappingsInterfaces.js.map +1 -0
  703. package/dist/resources/Sources/SourcesMappings/index.js +6 -0
  704. package/dist/resources/Sources/SourcesMappings/index.js.map +1 -0
  705. package/dist/resources/Sources/SourcesMetadata/SourcesMetadata.js +24 -0
  706. package/dist/resources/Sources/SourcesMetadata/SourcesMetadata.js.map +1 -0
  707. package/dist/resources/Sources/SourcesMetadata/SourcesMetadataInterfaces.js +3 -0
  708. package/dist/resources/Sources/SourcesMetadata/SourcesMetadataInterfaces.js.map +1 -0
  709. package/dist/resources/Sources/SourcesMetadata/index.js +6 -0
  710. package/dist/resources/Sources/SourcesMetadata/index.js.map +1 -0
  711. package/dist/resources/Sources/SourcesSubInterfaces/Address.js +3 -0
  712. package/dist/resources/Sources/SourcesSubInterfaces/Address.js.map +1 -0
  713. package/dist/resources/Sources/SourcesSubInterfaces/Authentification.js +3 -0
  714. package/dist/resources/Sources/SourcesSubInterfaces/Authentification.js.map +1 -0
  715. package/dist/resources/Sources/SourcesSubInterfaces/Document.js +3 -0
  716. package/dist/resources/Sources/SourcesSubInterfaces/Document.js.map +1 -0
  717. package/dist/resources/Sources/SourcesSubInterfaces/Error.js +3 -0
  718. package/dist/resources/Sources/SourcesSubInterfaces/Error.js.map +1 -0
  719. package/dist/resources/Sources/SourcesSubInterfaces/ExtendedDataFile.js +3 -0
  720. package/dist/resources/Sources/SourcesSubInterfaces/ExtendedDataFile.js.map +1 -0
  721. package/dist/resources/Sources/SourcesSubInterfaces/Extension.js +3 -0
  722. package/dist/resources/Sources/SourcesSubInterfaces/Extension.js.map +1 -0
  723. package/dist/resources/Sources/SourcesSubInterfaces/Information.js +3 -0
  724. package/dist/resources/Sources/SourcesSubInterfaces/Information.js.map +1 -0
  725. package/dist/resources/Sources/SourcesSubInterfaces/Parameter.js +3 -0
  726. package/dist/resources/Sources/SourcesSubInterfaces/Parameter.js.map +1 -0
  727. package/dist/resources/Sources/SourcesSubInterfaces/Permission.js +3 -0
  728. package/dist/resources/Sources/SourcesSubInterfaces/Permission.js.map +1 -0
  729. package/dist/resources/Sources/SourcesSubInterfaces/Url.js +3 -0
  730. package/dist/resources/Sources/SourcesSubInterfaces/Url.js.map +1 -0
  731. package/dist/resources/Sources/SourcesSubInterfaces/User.js +3 -0
  732. package/dist/resources/Sources/SourcesSubInterfaces/User.js.map +1 -0
  733. package/dist/resources/Sources/SourcesSubInterfaces/index.js +15 -0
  734. package/dist/resources/Sources/SourcesSubInterfaces/index.js.map +1 -0
  735. package/dist/resources/Sources/index.js +10 -0
  736. package/dist/resources/Sources/index.js.map +1 -0
  737. package/dist/resources/TableauService/ContentQuery/ContentQuery.js +23 -0
  738. package/dist/resources/TableauService/ContentQuery/ContentQuery.js.map +1 -0
  739. package/dist/resources/TableauService/ContentQuery/ContentQueryInterfaces.js +3 -0
  740. package/dist/resources/TableauService/ContentQuery/ContentQueryInterfaces.js.map +1 -0
  741. package/dist/resources/TableauService/ContentQuery/index.js +6 -0
  742. package/dist/resources/TableauService/ContentQuery/index.js.map +1 -0
  743. package/dist/resources/TableauService/TableauService.js +18 -0
  744. package/dist/resources/TableauService/TableauService.js.map +1 -0
  745. package/dist/resources/TableauService/index.js +6 -0
  746. package/dist/resources/TableauService/index.js.map +1 -0
  747. package/dist/resources/UsageAnalytics/Read/Administration/Administration.js +26 -0
  748. package/dist/resources/UsageAnalytics/Read/Administration/Administration.js.map +1 -0
  749. package/dist/resources/UsageAnalytics/Read/Administration/AdministrationInterfaces.js +3 -0
  750. package/dist/resources/UsageAnalytics/Read/Administration/AdministrationInterfaces.js.map +1 -0
  751. package/dist/resources/UsageAnalytics/Read/Administration/index.js +6 -0
  752. package/dist/resources/UsageAnalytics/Read/Administration/index.js.map +1 -0
  753. package/dist/resources/UsageAnalytics/Read/DataShare/DataShare.js +26 -0
  754. package/dist/resources/UsageAnalytics/Read/DataShare/DataShare.js.map +1 -0
  755. package/dist/resources/UsageAnalytics/Read/DataShare/DataShareInterfaces.js +3 -0
  756. package/dist/resources/UsageAnalytics/Read/DataShare/DataShareInterfaces.js.map +1 -0
  757. package/dist/resources/UsageAnalytics/Read/DataShare/index.js +6 -0
  758. package/dist/resources/UsageAnalytics/Read/DataShare/index.js.map +1 -0
  759. package/dist/resources/UsageAnalytics/Read/Dimensions/Dimensions.js +61 -0
  760. package/dist/resources/UsageAnalytics/Read/Dimensions/Dimensions.js.map +1 -0
  761. package/dist/resources/UsageAnalytics/Read/Dimensions/DimensionsInterfaces.js +3 -0
  762. package/dist/resources/UsageAnalytics/Read/Dimensions/DimensionsInterfaces.js.map +1 -0
  763. package/dist/resources/UsageAnalytics/Read/Dimensions/index.js +6 -0
  764. package/dist/resources/UsageAnalytics/Read/Dimensions/index.js.map +1 -0
  765. package/dist/resources/UsageAnalytics/Read/Exports/Exports.js +60 -0
  766. package/dist/resources/UsageAnalytics/Read/Exports/Exports.js.map +1 -0
  767. package/dist/resources/UsageAnalytics/Read/Exports/ExportsInterfaces.js +3 -0
  768. package/dist/resources/UsageAnalytics/Read/Exports/ExportsInterfaces.js.map +1 -0
  769. package/dist/resources/UsageAnalytics/Read/Exports/index.js +6 -0
  770. package/dist/resources/UsageAnalytics/Read/Exports/index.js.map +1 -0
  771. package/dist/resources/UsageAnalytics/Read/Filters/Filters.js +112 -0
  772. package/dist/resources/UsageAnalytics/Read/Filters/Filters.js.map +1 -0
  773. package/dist/resources/UsageAnalytics/Read/Filters/FiltersInterfaces.js +3 -0
  774. package/dist/resources/UsageAnalytics/Read/Filters/FiltersInterfaces.js.map +1 -0
  775. package/dist/resources/UsageAnalytics/Read/Filters/index.js +6 -0
  776. package/dist/resources/UsageAnalytics/Read/Filters/index.js.map +1 -0
  777. package/dist/resources/UsageAnalytics/Read/Reports/Reports.js +100 -0
  778. package/dist/resources/UsageAnalytics/Read/Reports/Reports.js.map +1 -0
  779. package/dist/resources/UsageAnalytics/Read/Reports/ReportsInterfaces.js +9 -0
  780. package/dist/resources/UsageAnalytics/Read/Reports/ReportsInterfaces.js.map +1 -0
  781. package/dist/resources/UsageAnalytics/Read/Reports/index.js +6 -0
  782. package/dist/resources/UsageAnalytics/Read/Reports/index.js.map +1 -0
  783. package/dist/resources/UsageAnalytics/Read/Snowflake/Snowflake.js +47 -0
  784. package/dist/resources/UsageAnalytics/Read/Snowflake/Snowflake.js.map +1 -0
  785. package/dist/resources/UsageAnalytics/Read/Snowflake/SnowflakeInterfaces.js +3 -0
  786. package/dist/resources/UsageAnalytics/Read/Snowflake/SnowflakeInterfaces.js.map +1 -0
  787. package/dist/resources/UsageAnalytics/Read/Snowflake/index.js +6 -0
  788. package/dist/resources/UsageAnalytics/Read/Snowflake/index.js.map +1 -0
  789. package/dist/resources/UsageAnalytics/Read/Statistics/Statistics.js +53 -0
  790. package/dist/resources/UsageAnalytics/Read/Statistics/Statistics.js.map +1 -0
  791. package/dist/resources/UsageAnalytics/Read/Statistics/StatisticsInterfaces.js +3 -0
  792. package/dist/resources/UsageAnalytics/Read/Statistics/StatisticsInterfaces.js.map +1 -0
  793. package/dist/resources/UsageAnalytics/Read/Statistics/index.js +6 -0
  794. package/dist/resources/UsageAnalytics/Read/Statistics/index.js.map +1 -0
  795. package/dist/resources/UsageAnalytics/Read/Users/Users.js +35 -0
  796. package/dist/resources/UsageAnalytics/Read/Users/Users.js.map +1 -0
  797. package/dist/resources/UsageAnalytics/Read/Users/UsersInterfaces.js +3 -0
  798. package/dist/resources/UsageAnalytics/Read/Users/UsersInterfaces.js.map +1 -0
  799. package/dist/resources/UsageAnalytics/Read/Users/index.js +6 -0
  800. package/dist/resources/UsageAnalytics/Read/Users/index.js.map +1 -0
  801. package/dist/resources/UsageAnalytics/Read/index.js +13 -0
  802. package/dist/resources/UsageAnalytics/Read/index.js.map +1 -0
  803. package/dist/resources/UsageAnalytics/UsageAnalytics.js +32 -0
  804. package/dist/resources/UsageAnalytics/UsageAnalytics.js.map +1 -0
  805. package/dist/resources/UsageAnalytics/index.js +6 -0
  806. package/dist/resources/UsageAnalytics/index.js.map +1 -0
  807. package/dist/resources/Users/User.js +26 -0
  808. package/dist/resources/Users/User.js.map +1 -0
  809. package/dist/resources/Users/UserInterfaces.js +3 -0
  810. package/dist/resources/Users/UserInterfaces.js.map +1 -0
  811. package/dist/resources/Users/index.js +6 -0
  812. package/dist/resources/Users/index.js.map +1 -0
  813. package/dist/resources/Vaults/Vaults.js +55 -0
  814. package/dist/resources/Vaults/Vaults.js.map +1 -0
  815. package/dist/resources/Vaults/VaultsInterfaces.js +3 -0
  816. package/dist/resources/Vaults/VaultsInterfaces.js.map +1 -0
  817. package/dist/resources/Vaults/index.js +6 -0
  818. package/dist/resources/Vaults/index.js.map +1 -0
  819. package/dist/resources/index.js +48 -0
  820. package/dist/resources/index.js.map +1 -0
  821. package/dist/utils/FormData.js +17 -0
  822. package/dist/utils/FormData.js.map +1 -0
  823. package/dist/utils/Retriever.js +5 -0
  824. package/dist/utils/Retriever.js.map +1 -0
  825. package/dist/utils/WithRequired.js +3 -0
  826. package/dist/utils/WithRequired.js.map +1 -0
  827. package/dist/utils/index.js +6 -0
  828. package/dist/utils/index.js.map +1 -0
  829. package/dist/utils/normalizePaginatedOptions.js +25 -0
  830. package/dist/utils/normalizePaginatedOptions.js.map +1 -0
  831. package/package.json +84 -0
@@ -0,0 +1,2140 @@
1
+ import { RestUserIdType } from '../Enums';
2
+ export interface RestTokenParams {
3
+ userIds: RestUserId[];
4
+ userGroups?: string[];
5
+ userDisplayName?: string;
6
+ canSeeUserProfileOf?: string[];
7
+ pipeline?: string;
8
+ filter?: string;
9
+ searchHub?: string;
10
+ salesforceOrganizationId?: string;
11
+ validFor?: number;
12
+ salesforceUser?: string;
13
+ salesforceCommunityUrl?: string;
14
+ salesforceFallbackToAdmin?: boolean;
15
+ usertype?: string;
16
+ licenseDefinitionKey?: string;
17
+ superUserToken?: string;
18
+ commerce?: RestCommerceParameters;
19
+ scope?: number;
20
+ }
21
+ export interface RestUserId {
22
+ name: string;
23
+ provider: string;
24
+ type?: RestUserIdType;
25
+ infos?: any;
26
+ authCookie?: string;
27
+ password?: string;
28
+ }
29
+ export interface RestCommerceParameters {
30
+ catalogId: string;
31
+ filter: string;
32
+ operation: string;
33
+ }
34
+ export interface TokenModel {
35
+ token: string;
36
+ }
37
+ export declare type RestQueryParams = PostSearchBodyQueryParams & PostSearchQueryStringParams;
38
+ export interface PostSearchQueryStringParams {
39
+ viewAllContent?: boolean | number;
40
+ }
41
+ /**
42
+ * Defines the body parameters of the list field values request.
43
+ */
44
+ export interface ListFieldValuesBodyQueryParams {
45
+ /**
46
+ * The unique identifier of the target Coveo Cloud organization.
47
+ * Specifying a value for this parameter is only necessary when you are authenticating the API call with an OAuth2 token.
48
+ */
49
+ organizationId?: string;
50
+ /**
51
+ * Whether to treat accentuated characters as non-accentuated characters when retrieving field values (e.g., treat é, è, ê, etc., as e).
52
+ *
53
+ * Default: true
54
+ */
55
+ ignoreAccents?: boolean;
56
+ /**
57
+ * The sort criteria to use.
58
+ *
59
+ * Use:
60
+ * - occurrences: to sort by number of occurrences, with field values having the highest number of occurrences appearing first.
61
+ * - nosort: to avoid sorting the results of the Group By operation. The field values will appear in an unspecified order.
62
+ *
63
+ * @default `occurrences`
64
+ */
65
+ sortCriteria?: string;
66
+ /**
67
+ * The maximum number of values to return.
68
+ *
69
+ * @default `10`
70
+ */
71
+ maximumNumberOfValues?: number;
72
+ /**
73
+ * The query expression that should override the basic query expression on which the Group By operation is being performed (see the `q` query parameter).
74
+ *
75
+ * **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
76
+ *
77
+ * @example `Coveo Cloud V2 Platform`
78
+ */
79
+ queryOverride?: string;
80
+ /**
81
+ * The query expression that should override the constant query expression on which the Group By operation is being performed (see the `cq` query parameter).
82
+ *
83
+ * **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
84
+ *
85
+ * @example `@filetype==forumpost`
86
+ */
87
+ constantQueryOverride?: string;
88
+ /**
89
+ * The query expression that should override the disjunction query expression on which the Group By operation is being performed (see the `dq` query parameter).
90
+ *
91
+ * **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
92
+ *
93
+ * @example `@date=2016-12-01..2016-12-31`
94
+ */
95
+ disjunctionQueryOverride?: string;
96
+ /**
97
+ * The pattern that the field values must match.
98
+ *
99
+ * See also the patternType parameter."
100
+ */
101
+ pattern?: string;
102
+ /**
103
+ * The type of pattern that is being used to list field values.
104
+ *
105
+ * Use:
106
+ * - wildcard: to parse the specified pattern as a wildcard expression.
107
+ * - regularexpression: to parse the specified pattern as a regular expression.
108
+ * - editdistance: to apply the Edit Distance algorithm to match values that are close to the specified pattern.
109
+ * - phonetic to apply a phonetic algorithm to match values that are phonetically similar to the specified pattern.
110
+ *
111
+ * @default `wildcard`
112
+ */
113
+ patternType?: string;
114
+ /**
115
+ * The parameters for Coveo for Commerce.
116
+ */
117
+ commerce?: RestCommerceParameters;
118
+ /**
119
+ * A key-value store where each pair corresponds to the name of a dictionary field to query, along with the key to target within that field.
120
+ *
121
+ * @example
122
+ * Suppose that in your index, the `@price` dictionary field contains different values for its `storeA` and `storeB` keys. Including `"dictionaryFieldContext": { "price": "storeA" }` in the query means that any part of the query expression that targets the `@price` field will in fact only query the `storeA` values of that field.
123
+ */
124
+ dictionaryFieldContext?: RestDictionaryFieldContextRequest;
125
+ /**
126
+ * The name of the query pipeline to use for this request (bypassing its conditions, if it has any).
127
+ *
128
+ * You can pass an empty `pipeline` value to use an empty query pipeline (i.e., `?pipeline=` or `"pipeline": ""`).
129
+ *
130
+ * If a query does not contain the `pipeline` parameter, the first query pipeline whose conditions are met by the request is used (query pipelines without conditions are not evaluated). Should the request fail to meet the conditions of each evaluated query pipeline, the default query pipeline of the target Coveo Cloud organization is used (bypassing its conditions, if it has any).
131
+ *
132
+ * **Notes:**
133
+ * - This parameter will be overridden if the search request is authenticated by a search token that enforces a specific `pipeline`, or a `searchHub` that routes queries to a specific `pipeline` via a query pipeline condition.
134
+ * - For reporting purposes, when logging a **Search** usage analytics event for a query, the `queryPipeline` field of that event should be set to the `pipeline` value of the query (or to the `"default"` string, if no `pipeline` value was specified in the query).
135
+ *
136
+ * See also [Managing Query Pipelines](https://docs.coveo.com/en/1450/).
137
+ *
138
+ * @example `CustomerQueryPipeline`
139
+ */
140
+ pipeline?: string;
141
+ /**
142
+ * The maximum age of cached results, in milliseconds.
143
+ *
144
+ * If the results of a specific request are available in the cache, and if those results are no older than the `maximumAge` value, the service returns those results rather than forwarding a new query to the index.
145
+ *
146
+ * **Note:** This parameter is automatically overridden when `staticQuery` is set to `true`.
147
+ *
148
+ * @default `-1` (which corresponds to the internal default value (15 minutes))
149
+ */
150
+ maximumAge?: number;
151
+ /**
152
+ * The first level of origin of the request, typically the identifier of the graphical search interface from which the request originates.
153
+ *
154
+ * Coveo Machine Learning models use this information to provide contextually relevant output.
155
+ *
156
+ * **Notes:**
157
+ * - This parameter will be overridden if the search request is authenticated by a search token that enforces a specific `searchHub`.
158
+ * - When logging a **Search** usage analytics event for a query, the `originLevel1` field of that event should be set to the value of the `searchHub` search request parameter.
159
+ *
160
+ * See also the `tab` parameter.
161
+ *
162
+ * @example `CustomerPortal`
163
+ */
164
+ searchHub?: string;
165
+ /**
166
+ * The second level of origin of the request, typically the identifier of the selected tab in the graphical search interface from which the request originates.
167
+ *
168
+ * Coveo Machine Learning models use this information to provide contextually relevant output.
169
+ *
170
+ * **Note:** When logging a **Search** usage analytics event for a query, the `originLevel2` field of that event should be set to the `tab` value of the query (or to the `"default"` string, if no `tab` value was specified in the query).
171
+ *
172
+ * See also the `searchHub` parameter.
173
+ *
174
+ * @example `ForumTab`
175
+ */
176
+ tab?: string;
177
+ /**
178
+ * The third level of origin of the request, typically the URL of the page that linked to the search interface from which the request originates (e.g., in JavaScript, this would correspond to the `document.referrer` value).
179
+ *
180
+ * Coveo Machine Learning models may use this information to provide contextually relevant output.
181
+ *
182
+ * **Note:** When logging a **Search** usage analytics event for a query, the `originLevel3` field of that event should be set to the `referrer` value of the query, if specified.
183
+ *
184
+ * See also the `context` parameter.
185
+ *
186
+ * @example `http://www.example.com`
187
+ */
188
+ referrer?: string;
189
+ /**
190
+ * The custom context information to send along with the request. Must be a dictionary of key-value pairs (JSON) where each key is a string, and each value is either a string or an array of strings.
191
+ *
192
+ * Coveo Machine Learning models may use this information to provide contextually relevant output. Moreover, this information can be referred to in query expressions and QPL statements by using the `$context` object.
193
+ *
194
+ * **Note:**
195
+ * When logging a **Search** usage analytics event for a query, the `customData` field of that event should include the same data as the `context` parameter of the query. However, each `context` key included in `customData` must be prefixed by `context_` (e.g., the `userRoles` key in `context` becomes `context_userRoles` in `customData`).
196
+ *
197
+ * See also the `referrer` parameter.
198
+ *
199
+ * @example
200
+ * ```json
201
+ * {
202
+ * "userAgeRange":"25-35",
203
+ * "userRoles": ["PremiumCustomer", "ProductReviewer"]
204
+ * }
205
+ * ```
206
+ */
207
+ context?: RestContextRequest;
208
+ /**
209
+ * The query and page view actions previously made by the current user.
210
+ *
211
+ * Coveo Machine Learning content recommendations models use this information to provide contextually relevant output.
212
+ *
213
+ * @type {RestActionHistory[]}
214
+ */
215
+ actionsHistory?: RestActionHistory[];
216
+ /**
217
+ * The identifier of the recommendation interface from which the request originates.
218
+ *
219
+ * Coveo Machine Learning content recommendations models may use this information to provide contextually relevant output.
220
+ *
221
+ * @example `RecommendedProducts`
222
+ */
223
+ recommendation?: string;
224
+ /**
225
+ * The locale of the current user. Must comply with IETF’s [BCP 47](http://www.rfc-editor.org/rfc/bcp/bcp47.txt) definition.
226
+ *
227
+ * Coveo Machine Learning models use this information to provide contextually relevant output. Moreover, this information can be referred to in query expressions and QPL statements by using the `$locale` object.
228
+ *
229
+ * **Note:** When logging a **Search** usage analytics event, the language field of that event should match the language part of the `locale` value of the query (e.g., `en-US` in `locale` becomes `en` in `language`).
230
+ *
231
+ * @example `en-US`
232
+ */
233
+ locale?: string;
234
+ /**
235
+ * The [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) identifier of the time zone to use to correctly interpret dates in the query expression and result items.
236
+ *
237
+ * If not specified, the default time zone of the server hosting the index is used.
238
+ *
239
+ * **Note:** While no Coveo Machine Learning model uses this information, it can nevertheless affect the ranking scores (and thus, potentially the order) of result items, as ranking expressions may be based on time constants.
240
+ *
241
+ * @example `America/New_York`
242
+ */
243
+ timezone?: string;
244
+ /**
245
+ * The format of a successful response.
246
+ *
247
+ * - Use `json` to get the response in the JSON format.
248
+ * - Use `opensearch-atom` or `opensearch-rss` to get the results in an OpenSearch format (XML).
249
+ * - Use `xlsx` to generate an Excel file containing the results (binary).
250
+ *
251
+ * **Note:** Debug information (see the `debug` parameter) can only appear in a response in the JSON format.
252
+ *
253
+ * @default `json`
254
+ */
255
+ format?: RestFormat;
256
+ /**
257
+ * Whether to force a successful response to include debug information.
258
+ *
259
+ * **Notes:**
260
+ * - Debug information can only appear in responses in the JSON format (see the `format` parameter).
261
+ * - Avoid setting this parameter to `true` in production, as it has a negative impact on query performance.
262
+ *
263
+ * @default `false`
264
+ */
265
+ debug?: boolean;
266
+ /**
267
+ * The Base64 encoded identifier of the index mirror to forward the request to. See also the `index` parameter.
268
+ *
269
+ * If you do not specify an `indexToken` (or `index`) value, any index mirror could be used.
270
+ *
271
+ * **Note:** Passing an `indexToken` (or `index`) value has no effect when the results of a specific request can be returned from cache (see the `maximumAge` parameter).
272
+ *
273
+ * @example `ZXhhbXBsZWluZGV4bWlycm9yLS4uLg==`
274
+ */
275
+ indexToken?: string;
276
+ /**
277
+ * A GUID representing the current user, who can be authenticated or anonymous. This GUID is normally generated by the usage analytics service and stored in a non-expiring browser cookie.
278
+ *
279
+ * Coveo Machine Learning models may use this information to provide contextually relevant output.
280
+ *
281
+ * @example `5cb98953-9c13-42ff-8176-e6fcba6a50bf`
282
+ */
283
+ visitorId?: string;
284
+ /**
285
+ * Whether the current user is anonymous.
286
+ *
287
+ * Coveo Machine Learning models may use this information to provide contextually relevant output.
288
+ *
289
+ * **Note:** When logging a **Search** usage analytics event for a query, the anonymous field of that event should be set to the `isGuestUser` value of the query.
290
+ *
291
+ * @default `false`
292
+ */
293
+ isGuestUser?: boolean;
294
+ /**
295
+ * A map of options to pass to the Coveo ML models associated with the request’s target query pipeline.
296
+ *
297
+ * **Available parameters:**
298
+ * - `considerUserContext` (boolean): Whether the models should attempt to leverage the `context` object of the request to personalize their output. Applies to CR models only. Default is `true`.
299
+ * - `maxActionsHistoryItemsToConsider` (unsigned integer): The maximum number of items in the `actionsHistory` array of the request that should be taken into account by the models. Applies to CR models only. By default, all `actionsHistory` items are considered.
300
+ * - `num` (unsigned integer): The maximum number of recommendations/suggestions to request from the models. Must be in range `[1, 50]`, if specified. Applies to ART, CR, and QS models. Default depends on model configuration.
301
+ * - `padding` (string enum): The kind of padding the models should complete their output with, if their maximum number of recommendations/suggestions (i.e., `num`) has not been reached. Applies to CR models only. Allowed values are popular (i.e., pad recommendations with all time most popular items) and trending (i.e., pad recommendations with items that have recently been increasingly popular). By default, no padding applies.
302
+ * - `wordSelection` (string): The ITD keyword selection options the models should use. Applies only to ART models with ITD enabled. If specified, must be a string in the format `option:value`. The only available option is `wordsKept` (i.e., the maximum number of `lq` keywords to inject in `q`); its default value is `5`.
303
+ * - `minNumberOfWords` (unsigned integer): The minimum number of words a query suggestion may contain to be returned by the model. Applies to QS models only. Must be in range `[1, 10]` Default is `1`, which implies that the model will return all candidates.
304
+ * - `itemId` (string): The unique identifier (e.g., SKU) of a product to get recommendations for. Only applies when querying a Product Recommendations model with an association strategy considering a single item as an input.
305
+ * - `itemIds` (array of strings): The unique identifiers (e.g., SKUs) of the products to get recommendations for. Only applies when querying a Product Recommendations model with an association strategy considering multiple items as an input.
306
+ * - `categoryFilter` (string): The name of a category of products to get recommendations for.
307
+ * - `brandFilter` (string): The name of a brand of products to get recommendations for.
308
+ * - `filters` (map of strings): The dimensions along with the values to be used at query time by the model as filters for potential suggestions. Only applies to Automatic relevance Tuning, Query Suggestions, or Dynamic Navigation Experience models that don’t use the default `filterFields` advanced parameter values. **Example:** `"filters": { "originContext": "<MY-VALUE>", "originLevel2": "<MY-VALUE>" }`.
309
+ *
310
+ * @example
311
+ * ```json
312
+ * {
313
+ * "num": 3,
314
+ * "padding": "trending",
315
+ * "maxActionsHistoryItemsToConsider": 10,
316
+ * "considerUserContext": false
317
+ * }
318
+ * ```
319
+ *
320
+ * @example
321
+ * ```json
322
+ * {"wordSelection": "wordsKept:4"}
323
+ * ```
324
+ */
325
+ mlParameters?: Record<string, any>;
326
+ /**
327
+ * The type of index against which to execute the query. Must correspond to an index that has been configured for the target Coveo Cloud organization.
328
+ *
329
+ * @default `coveo`
330
+ */
331
+ indexType?: string;
332
+ /**
333
+ * The identifier of the index mirror to forward the request to. See also the `indexToken` parameter.
334
+ *
335
+ * If you do not specify an `index` (or `indexToken`) value, any index mirror could be used.
336
+ *
337
+ * **Note:** Passing an `index` (or `indexToken`) value has no effect when the results of a specific request can be returned from cache (see the `maximumAge` parameter).
338
+ *
339
+ * @example `myorg-nvoqun-Indexer1-pbi2nbuw`
340
+ */
341
+ index?: string;
342
+ /**
343
+ * The identifier for a logical group of indexes that have been configured to include documents form the same sources.
344
+ *
345
+ * If you do not specify a `logicalIndex` value, the `default` grouping will be used, typically including all indexes.
346
+ *
347
+ * @example `webcontentonly`
348
+ */
349
+ logicalIndex?: string;
350
+ /**
351
+ * The maximum number of milliseconds to allow the request to last before timing out. Maximum: 16000
352
+ * Coveo determines the most appropriate timeout to use.
353
+ *
354
+ * @default: `0`
355
+ */
356
+ maximumTimeoutMs?: string;
357
+ /**
358
+ * Contextual information about the user performing the request and the request itself.
359
+ *
360
+ * Coveo Machine Learning models may use this information to provide contextually relevant output.
361
+ *
362
+ * Available parameters:
363
+ * - `userId` (string): The ID of the logged user. If not present, the id is obtained from the authentication token.
364
+ * - `clientId` (string): A GUID representing the client id. The `clientId` and `deviceId` replaces the deprecated `visitorId`.
365
+ * - `deviceId` (string): The name of the device that the end user is using. It has to be explicitly passed from native mobile apps. The `clientId` and `deviceId` replaces the deprecated `visitorId`.
366
+ * - `documentLocation` (string): The URL of the current page or component. If not present, the referrer is obtained from the [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) header. This information can be obtained from `coveo.analytics.js`.
367
+ * - `documentReferrer` (string): Typically the URL of the page that linked to the search interface from which the request originates (e.g., in JavaScript, this would correspond to the document.referrer value). This information can be obtained from `coveo.analytics.js`.
368
+ * - `pageId` (string): A GUID representing the page ID. This information can be obtained from `coveo.analytics.js`.
369
+ * - `userIp` (string): The user IP. If not present, the IP is obtained from the [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For) and [Forwarded](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded) headers. This information is required when endpoints are behind a proxy.
370
+ * - `clientRequestId` (string): A GUID generated by the client representing the current request. This information is used to identify operations across different apis related to the same request.
371
+ * - `clientTimestamp` (string): Client ISO 8601 timestamp with milliseconds.
372
+ * - `userAgent` (string): The user agent of the request. If not present, the user agent is obtained from the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) header. This information is required when endpoints are behind a proxy.
373
+ *
374
+ * @example
375
+ * ```json
376
+ * {
377
+ * "userId": "user@email.com",
378
+ * "clientId": "6d148f06-5f15-4639-81b4-792a9b94eb5f",
379
+ * "deviceId": "Chrome"
380
+ * }
381
+ * ```
382
+ *
383
+ * @example
384
+ * ```json
385
+ * {
386
+ * "clientTimestamp": "2020-09-09T19:00:45.603-04:00",
387
+ * "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
388
+ * }
389
+ * ```
390
+ */
391
+ analytics?: RestAnalyticsRequest;
392
+ /**
393
+ * Whether to bypass document permissions. Only effective if the access token grants the Search - View all content privilege.
394
+ */
395
+ viewAllContent?: boolean;
396
+ }
397
+ /**
398
+ * Defines the body parameters of the search request.
399
+ */
400
+ export interface PostSearchBodyQueryParams extends PostSearchBodyCommonParams {
401
+ /**
402
+ * The advanced query expression, typically generated by code (e.g., when toggling facet values).
403
+ *
404
+ * **Note:** When logging a **Search** usage analytics event for a query, the `advancedQuery` field of that event should be set to the `aq` value of the corresponding query (for reporting purposes).
405
+ *
406
+ * @example
407
+ * `@year==2017`
408
+ */
409
+ aq?: string;
410
+ /**
411
+ * Data to easily query a hierarchical field using a path of hierarchical values.
412
+ */
413
+ categoryFacets?: RestCategoryFacetRequest[];
414
+ /**
415
+ * The `@`-prefixed name of the field to use to be able to identify an item as a child of another item in a folded query result (see [Result Folding](https://docs.coveo.com/en/1466/)).
416
+ *
417
+ * Use a field whose value points to the `parentField` value of the intended parent. Whenever an item is a child of another item, its `childField` value must be identical to the `parentField` value of that other item.
418
+ *
419
+ * See also the `filterField`, `parentField`, and `filterFieldRange` parameters.
420
+ *
421
+ * **Notes:**
422
+ *
423
+ * - In the index, the values of the `childField` must only contain alphanumerical characters. Using a `childField` whose values contain non-indexable characters (such as underscores) will make folding fail.
424
+ * - The values of the `childField` must contain 60 characters or less (60 being the default maximum of characters for a word in the index).
425
+ *
426
+ * @example `@foldingparent`
427
+ */
428
+ childField?: string;
429
+ /**
430
+ * The parameters for Coveo for Commerce.
431
+ */
432
+ commerce?: RestCommerceParameters;
433
+ /**
434
+ * The constant query expression, typically populated with expressions that must apply to all queries sent from a specific search interface (e.g., from a specific tab). Once evaluated, the result sets of those expressions are kept in a special cache.
435
+ *
436
+ * **Tip:** Avoid including dynamic content in the constant query expression. Otherwise you risk filling up the cache with useless data, which can have a negative impact on performance.
437
+ *
438
+ * **Notes:**
439
+ * - Other parts of the query expression can also benefit from the index cache (see the `maximumAge` parameter). However, using the constant query expression allows you to explicitly cache specific result sets.
440
+ * - Temporal keywords (`now`, `today`, `yesterday`) in the constant query expression are only re-evaluated once per 3-4 minutes; therefore, you should avoid basing `cq` expressions on temporal keywords if you require split second accuracy.
441
+ *
442
+ * @example `@filetype==forumpost`
443
+ */
444
+ cq?: string;
445
+ /**
446
+ * A key-value store where each pair corresponds to the name of a dictionary field to query, along with the key to target within that field.
447
+ *
448
+ * @example
449
+ * Suppose that in your index, the `@price` dictionary field contains different values for its `storeA` and `storeB` keys. Including `"dictionaryFieldContext": { "price": "storeA" }` in the query means that any part of the query expression that targets the `@price` field will in fact only query the `storeA` values of that field.
450
+ */
451
+ dictionaryFieldContext?: RestDictionaryFieldContextRequest;
452
+ /**
453
+ * The disjunction query expression, typically populated by Coveo ML automatic relevance tuning models to ensure that relevant items are included in the query results. The disjunction query expression is merged with the other parts of the query expression using an `OR` operator. The resulting query expression is `(((q aq) OR (dq)) cq)`.
454
+ *
455
+ * @example `@permanentid=aadd702687c62910d6da8347304ec2cedfd0b06d5b4d2794a555ce5688bd`
456
+ */
457
+ dq?: string;
458
+ enableCollaborativeRating?: boolean;
459
+ /**
460
+ * Whether to enable the *Did You Mean* feature of the index, which populates the `queryCorrections` property of a successful response with keyword correction suggestions.
461
+ *
462
+ * **Notes:**
463
+ * - The Did You Mean feature only processes the basic query expression (see the `q` parameter).
464
+ * - When both `enableDidYouMean` and `enableMLDidYouMean` parameter are set to `true`, the output of both features will appear in the `queryCorrections` array.
465
+ * - The Did You Mean feature will return no corrections when the query is processed by an automatic relevance tuning (ART) model whose Intelligent Term Detection (ITD) feature is enabled.
466
+ *
467
+ * @default `false`
468
+ */
469
+ enableDidYouMean?: boolean;
470
+ /**
471
+ * Whether to filter out duplicates, so that items resembling one another only appear once in the query results.
472
+ *
473
+ * **Notes:**
474
+ * - Two items must be at least 85% similar to one another to be considered duplicates.
475
+ * - When a pair of duplicates is found, only the higher-ranked item of the two is kept in the result set.
476
+ * - Enabling this feature can make the total result count less precise, since only results up to those being retrieved (see the `firstResult` and `numberOfResults` parameters) are submitted to duplicate filtering.
477
+ *
478
+ * @default `false`
479
+ */
480
+ enableDuplicateFiltering?: boolean;
481
+ /**
482
+ * **Important:** This feature is still in an experimental state.
483
+ *
484
+ * Whether to enable the Coveo ML query suggestions *Did You Mean* feature, which populates the `queryCorrections` property of a successful response with keyword correction suggestions.
485
+ *
486
+ * **Notes:**
487
+ * - The Coveo ML query suggestions Did You Mean feature only processes the basic query expression (see the `q` parameter).
488
+ * - When both `enableDidYouMean` and `enableMLDidYouMean` parameter are set to true, the output of both features will appear in the `queryCorrections` array.
489
+ *
490
+ * @default `false`
491
+ */
492
+ enableMLDidYouMean?: boolean;
493
+ /**
494
+ * Whether to interpret advanced Coveo Cloud query syntax as such in the basic query expression (see the `q` parameter). See also the `lowercaseOperators` parameter.
495
+ *
496
+ * @default `true`
497
+ */
498
+ enableQuerySyntax?: boolean;
499
+ /**
500
+ * The maximum length of result excerpts (in number of characters).
501
+ *
502
+ * The index generates result excerpts based on the keywords which are present in the query. Those excerpts include the most relevant sentences, in the order in which they appear in the item, up to the specified number of characters.
503
+ *
504
+ * **Notes:**
505
+ * - The maximum length you set using this parameter also applies to retrieved first sentences, if those are included in the results (see the `retrieveFirstSentences` parameter).
506
+ * - On an Elasticsearch index, actual excerpts may be slightly longer than the requested excerpt length.
507
+ *
508
+ * @default `200`
509
+ */
510
+ excerptLength?: number;
511
+ /**
512
+ * The global configuration options that apply to all facet requests performed along with the query (see the `facets` query parameter).
513
+ */
514
+ facetOptions?: RestFacetOptions;
515
+ /**
516
+ * The facet operations to perform on the query results.
517
+ */
518
+ facets?: RestFacetRequest[];
519
+ /**
520
+ * The names of the fields to exclude from the query results. All other fields will be included with each item in the query result.
521
+ *
522
+ * **Note:** If you specify both an array of fields to include (see the `fieldsToInclude` parameter) and an array of fields to exclude, the `fieldsToExclude` parameter has no effect at all.
523
+ *
524
+ * If you do not explicitly specify an array of values for this parameter (or for the `fieldsToInclude` parameter), each query result item will include all of its available fields.
525
+ *
526
+ * @example
527
+ * ```json
528
+ * ["documenttype","size","source"]
529
+ * ```
530
+ */
531
+ fieldsToExclude?: string[];
532
+ /**
533
+ * The names of the fields to include with each item in the query results. If specified, no other fields will be included.
534
+ *
535
+ * **Note:** If you specify both an array of fields to include and an array of fields to exclude (see the `fieldsToExclude` parameter), the `fieldsToExclude` parameter has no effect at all.
536
+ *
537
+ * If you do not explicitly specify an array of values for this parameter (or for the `fieldsToExclude` parameter), each query result item will include all of its available fields.
538
+ *
539
+ * @example
540
+ * ```json
541
+ * ["clickableuri","author","date","filetype","language","coversationid","messageid","childid","adjustednumberoflikes"]
542
+ * ```
543
+ */
544
+ fieldsToInclude?: string[];
545
+ /**
546
+ * The `@`-prefixed name of the field to use to group items into distinct folded query results (see [Result Folding](https://docs.coveo.com/en/1466/)).
547
+ *
548
+ * Use a field whose value is identical for all items to group under the same folded query result.
549
+ *
550
+ * See also the `parentField`, `childField`, and `filterFieldRange` parameters.
551
+ *
552
+ * **Note:** In an Elasticsearch index, the corresponding field must be configured as a *Facet* and/or *Sortable* field (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)). This limitation does not apply to a Coveo index.
553
+ *
554
+ * @example `@foldingcollection`
555
+ */
556
+ filterField?: string;
557
+ /**
558
+ * The maximum number of items to include in the `childResults` array of a folded query result (see [Result Folding](https://docs.coveo.com/en/1466/)).
559
+ *
560
+ * See also the `filterField`, `parentField`, and `childField`.
561
+ *
562
+ * @default `5`
563
+ */
564
+ filterFieldRange?: number;
565
+ /**
566
+ * The 0-based position of the first result to return in the non-paginated result set.
567
+ *
568
+ * Along with the `numberOfResults` parameter, this allows you to retrieve a specific page of result items.
569
+ *
570
+ * @default `0`
571
+ */
572
+ firstResult?: number;
573
+ /**
574
+ * The Group By operations to perform on the query results, typically to extract facets.
575
+ */
576
+ groupBy?: RestGroupByRequest[];
577
+ /**
578
+ * Whether to treat the `AND`, `NEAR`, `NOT`, and `OR` keywords in the basic query expression (see the `q` parameter) as Coveo Cloud query syntax operators even if those keywords are in lowercase.
579
+ *
580
+ * **Note:** Setting this parameter to `true` has no effect unless you also set the `enableQuerySyntax` parameter to `true`.
581
+ *
582
+ * @example
583
+ * If you set this parameter, and the `enableQuerySyntax` parameter to `true`, the index interprets the `near` keyword in the basic query expression service center near me as the `NEAR` Coveo Cloud query syntax operator.
584
+ *
585
+ * @default `false`
586
+ */
587
+ lowercaseOperators?: boolean;
588
+ /**
589
+ * The large query expression, typically populated with a case description, long textual query, or any other form of text that can help refine a query. The Coveo ML Intelligent Term Detection (ITD) feature can extract relevant keywords from the large query expression and inject those keywords in the basic query expression (see the `q` parameter).
590
+ *
591
+ * @example `I am looking for an enterprise-class native cloud SaaS/PaaS solution that ...`
592
+ */
593
+ lq?: string;
594
+ /**
595
+ * The minimum number of keywords that need to be present in the large query expression (see the `lq` parameter) to convert it to a partial match expression in case the Coveo ML Intelligent Term Detection (ITD) feature cannot extract relevant keywords from the large query expression.
596
+ *
597
+ * **Note:** This parameter applies as a fallback setting when no Coveo ML automatic relevance tuning model is available in the query pipeline to process a query that contains a non-null large query expression (`lq`).
598
+ *
599
+ * See also the `lqPartialMatchThreshold` parameter.
600
+ *
601
+ * @default `5`
602
+ */
603
+ lqPartialMatchKeywords?: string;
604
+ /**
605
+ * The maximum number of keywords from the large query expression (see the `lq` parameter) that will be included in the partial match expression in case the Coveo ML Intelligent Term Detection (ITD) feature cannot extract relevant keywords from the large query expression.
606
+ *
607
+ * **Note:** This parameter applies as a fallback setting when no Coveo ML automatic relevance tuning model is available in the query pipeline to process a query that contains a non-null large query expression (`lq`).
608
+ *
609
+ * Setting this parameter to a high value can negatively impact the performance of queries, while setting it too low can produce less relevant results.
610
+ *
611
+ * See also the `lqPartialMatchThreshold` parameter.
612
+ *
613
+ * @default `100`
614
+ */
615
+ lqPartialMatchMaxKeywords?: number;
616
+ /**
617
+ * An absolute or relative value indicating the minimum number of partial match expression keywords an item must contain to match the large query expression in case the Coveo ML Intelligent Term Detection (ITD) feature cannot extract relevant keywords from the large query expression.
618
+ *
619
+ * If specified, the `lqPartialMatchThreshold` value must either be:
620
+ * - a 32-bits unsigned integer (e.g., `3`),
621
+ * - a percentage value between 0% and 100% (e.g., `75%`),
622
+ * - the empty string (`""`), or
623
+ * - the `all` string.
624
+ *
625
+ * The `""` and `all` values are both equivalent to `100%`.
626
+ *
627
+ * **Note:** This parameter applies when no Coveo ML automatic relevance tuning model is available in the query pipeline to process a query that contains a non-null large query expression (`lq`).
628
+ *
629
+ * See also the `lqPartialMatchKeywords` parameter.
630
+ *
631
+ * @example `3`
632
+ * @example `75%`
633
+ * @example `all`
634
+ *
635
+ * @default `50%`
636
+ */
637
+ lqPartialMatchThreshold?: RestThreshold;
638
+ /**
639
+ * The maximum number of Coveo ML Did You Mean candidates to request from the query suggestions model.
640
+ *
641
+ * @default `3`
642
+ */
643
+ mlDidYouMeanMaxCandidates?: number;
644
+ /**
645
+ * The minimum score a query suggestion may have to be allowed as a candidate for the Coveo ML query suggestions Did You Mean feature. For best results, value should typically be in range `[0.8, 2]`.
646
+ *
647
+ * @default `1.0`
648
+ */
649
+ mlDidYouMeanMinScore?: number;
650
+ /**
651
+ * Whether to use facet counts for the Coveo ML Did You Mean feature. Can improve results, but requires more processing.
652
+ *
653
+ * @default `false`
654
+ */
655
+ mlDidYouMeanUseFacetCount?: boolean;
656
+ /**
657
+ * The number of results to return.
658
+ *
659
+ * Along with the `firstResult` parameter, this allows you to retrieve a specific page of result items.
660
+ *
661
+ * This parameter also defines the maximum number of results which can be returned by the Coveo ML Recommendations feature.
662
+ *
663
+ * **Note:** The maximum `numberOfResults` value depends on the index settings of your Coveo Cloud V2 organization. By default, a Coveo Cloud V2 index can return a maximum of 1000 items per query.
664
+ *
665
+ * @default `10`
666
+ */
667
+ numberOfResults?: number;
668
+ /**
669
+ * The `@`-prefixed name of the field to use to be able to identify an item as a parent in a folded query result (see [Result Folding](https://docs.coveo.com/en/1466/)).
670
+ *
671
+ * Use a field whose value can uniquely identify each item. All items whose `childField` value is identical to the `parentField` value of another item are considered children of that other item.
672
+ *
673
+ * See also the `filterField`, `childField`, and `filterFieldRange` parameters.
674
+ *
675
+ * **Notes:**
676
+ * - In the index, the values of the `parentField` must only contain alphanumerical characters. Using a `childField` whose values contain non-indexable characters (such as underscores) will make folding fail.
677
+ * - The values of the `parentField` must contain 60 characters or less (60 being the default maximum of characters for a word in the index).
678
+ *
679
+ * @example `@foldingchild`
680
+ */
681
+ parentField?: string;
682
+ /**
683
+ * Whether to convert a basic expression containing at least `partialMatchKeywords` to a *partial match expression*, so that any item containing at least `partialMatchThreshold` of those keywords will match the expression.
684
+ *
685
+ * If you do not set this parameter to `true`, an item must contain all of the basic expression keywords to match the expression.
686
+ *
687
+ * **Notes:**
688
+ * - This feature only applies to the basic expression (`q`) of a query, and to the basic `queryOverride` of its Group By operations.
689
+ * - When the `enableQuerySyntax` parameter is set to `true`, this feature has no effect on a basic expression containing advanced Coveo Cloud query syntax (field expressions, operators, etc.).
690
+ *
691
+ * @default `false`
692
+ */
693
+ partialMatch?: boolean;
694
+ /**
695
+ * The minimum number of keywords that need to be present in a basic expression to convert it to a partial match expression.
696
+ *
697
+ * **Notes:**
698
+ * - This parameter has no meaning unless the `partialMatch` parameter is set to `true`.
699
+ * - Repeated keywords in a basic expression count as a single keyword.
700
+ * - Thesaurus expansions in a basic expression count towards the `partialMatchKeywords` count.
701
+ * - Stemming expansions **do not** count towards the `partialMatchKeywords` count.
702
+ *
703
+ * See also the `partialMatchThreshold` parameter.
704
+ *
705
+ * @default `5`
706
+ */
707
+ partialMatchKeywords?: string;
708
+ /**
709
+ * An absolute or relative value indicating the minimum number (rounded up) of partial match expression keywords an item must contain to match the expression.
710
+ *
711
+ * If specified, the `partialMatchThreshold` value must either be:
712
+ * - a 32-bits unsigned integer (e.g., `3`),
713
+ * - a percentage value between 0% and 100% (e.g., `75%`),
714
+ * - the empty string, or
715
+ * - the `all` string.
716
+ *
717
+ * The `""` and the `all` value are both equivalent to `100%`.
718
+ *
719
+ * **Notes:**
720
+ * - This parameter has no meaning unless the `partialMatch` parameter is set to `true`.
721
+ * - A keyword and its stemming expansions count as a single keyword when evaluating whether an item meets the `partialMatchThreshold`.
722
+ *
723
+ * See also the `partialMatchKeywords` parameter.
724
+ *
725
+ * @example `3`
726
+ * @example `75%`
727
+ * @example `all`
728
+ *
729
+ * @default `50%`
730
+ */
731
+ partialMatchThreshold?: RestThreshold;
732
+ /**
733
+ * The array of [query functions](https://docs.coveo.com/en/1451/) to execute on each query result item.
734
+ *
735
+ * The result of a query function is stored in a temporary, dynamic field created at query time.
736
+ */
737
+ queryFunctions?: RestQueryFunctionRequest[];
738
+ /**
739
+ * Whether to enable question mark characters (`?`) in the wildcards feature of the index in order to expand basic expression keywords (see the `q` parameter) containing question mark characters (`?`) to the possible matching keywords.
740
+ *
741
+ * **Note:** Setting this parameter to true has no effect unless you also set the `wildcards` parameter to `true`.
742
+ *
743
+ * See [Using Wildcards in Queries](https://docs.coveo.com/en/1580/).
744
+ *
745
+ * @default `false`
746
+ */
747
+ questionMark?: boolean;
748
+ /**
749
+ * The array of [ranking functions](https://docs.coveo.com/en/1448/) to execute on each query result item.
750
+ *
751
+ * The result of a ranking function is added to the result score, which can affect sorting (see the `Relevancy` and `qre` values of the `sortCriteria` parameter).
752
+ */
753
+ rankingFunctions?: RestRankingFunctionRequest[];
754
+ resultRankings?: any[];
755
+ /**
756
+ * Whether to include the first sentences of textual items in the query results.
757
+ *
758
+ * First sentences are typically useful when rendering result items such as emails, since the first few sentences of these kinds of items are often more relevant than a contextually generated excerpt (see the `excerptLength` parameter).
759
+ *
760
+ * **Note:** The maximum length of the retrieved sentences (in number of characters) is determined by the value of the `excerptLength` parameter.
761
+ *
762
+ * @default `false`
763
+ */
764
+ retrieveFirstSentences?: boolean;
765
+ /**
766
+ * Whether the `q` value contains the URI hash of a specific item that should be returned.
767
+ *
768
+ * @default `false`
769
+ */
770
+ searchById?: boolean;
771
+ /**
772
+ * The criteria to use for sorting the query results.
773
+ *
774
+ * **Allowed values:**
775
+ * - `relevancy`: use standard index ranking factors (adjacency, TDIDF, etc.) and custom ranking expressions (QREs and QRFs) to compute a ranking `score` for each query result item, and sort the query results by descending `score` value.
776
+ * - `date ascending`/`date descending`: use the `@date` field to sort the query results. This field typically contains the last modification date of each item.
777
+ * - `qre`: use only custom ranking expressions (QREs and QRFs) to compute a ranking `score` for each query result item, and sort the query results by descending `score` value.
778
+ * - `nosort`: do not sort the query results; the index will return result items in an essentially random order.
779
+ * - `@[field] ascending`/`@[field] descending`: sort using the value of a specific sortable field (replace `[field]` by the target field name).
780
+ *
781
+ * You can specify a list of comma-separated sort criteria. However, this only works when combining:
782
+ * - two or more field criteria (e.g., `@views descending,@likes descending`).
783
+ * - a single date criteria with one or more field criteria (e.g., `date ascending,@views descending`).
784
+ *
785
+ * @example `date ascending`
786
+ * @example `@author ascending`
787
+ * @example `date descending,@views descending,@likes descending`
788
+ *
789
+ * @default `relevancy`
790
+ */
791
+ sortCriteria?: string;
792
+ /**
793
+ * Whether to execute this query in a way that does not count against the allowed number of queries per month of a Coveo Cloud organization (QPM), but may produce cached/outdated query results (see [Rendering Static Content Using Persistent Queries](https://docs.coveo.com/en/1009/)).
794
+ *
795
+ * **Note:** Setting this parameter to `true` overwrites the `maximumAge` parameter value for this query.
796
+ *
797
+ * @default `false`
798
+ */
799
+ staticQuery?: boolean;
800
+ /**
801
+ * The length of the automatically generated item summary.
802
+ *
803
+ * The index generates a result item *summary* independently from the query, as opposed to a result item *excerpt*, which is generated based on query keywords.
804
+ *
805
+ * @default `0`
806
+ */
807
+ summaryLength?: number;
808
+ /**
809
+ * The name of the query syntax to apply when interpreting the basic query expression (see the `q` parameter).
810
+ *
811
+ * The only value you can specify for this parameter is `SOSL` (to use the [Salesforce Object Search Language syntax](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_sosl_syntax.htm)). You do not need to set `enableQuerySyntax` to `true` to apply SOSL syntax when interpreting the basic query expression.
812
+ *
813
+ * If you do not specify a value for this parameter and the `enableQuerySyntax` parameter is set to `true`, the default Coveo Cloud query syntax is applied (see [Coveo Cloud Query Syntax Reference](https://docs.coveo.com/en/1552/)).
814
+ */
815
+ syntax?: string;
816
+ /**
817
+ * The parameters allowing user actions to be retrieved in query results.
818
+ */
819
+ userActions?: RestUserActionsParameters;
820
+ /**
821
+ * Whether to enable the wildcards feature of the index in order to expand basic expression keywords (see the `q` parameter) containing wildcard characters (`*`) to the possible matching keywords. See also the `questionMark` parameter.
822
+ *
823
+ * See [Using Wildcards in Queries](https://docs.coveo.com/en/1580/).
824
+ *
825
+ * @default `false`
826
+ */
827
+ wildcards?: boolean;
828
+ }
829
+ interface PostSearchBodyCommonParams {
830
+ /**
831
+ * The query and page view actions previously made by the current user.
832
+ *
833
+ * Coveo Machine Learning content recommendations models use this information to provide contextually relevant output.
834
+ *
835
+ * @type {RestActionHistory[]}
836
+ */
837
+ actionsHistory?: RestActionHistory[];
838
+ /**
839
+ * Contextual information about the user performing the request and the request itself.
840
+ *
841
+ * Coveo Machine Learning models may use this information to provide contextually relevant output.
842
+ *
843
+ * Available parameters:
844
+ * - `userId` (string): The ID of the logged user. If not present, the id is obtained from the authentication token.
845
+ * - `clientId` (string): A GUID representing the client id. The `clientId` and `deviceId` replaces the deprecated `visitorId`.
846
+ * - `deviceId` (string): The name of the device that the end user is using. It has to be explicitly passed from native mobile apps. The `clientId` and `deviceId` replaces the deprecated `visitorId`.
847
+ * - `documentLocation` (string): The URL of the current page or component. If not present, the referrer is obtained from the [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) header. This information can be obtained from `coveo.analytics.js`.
848
+ * - `documentReferrer` (string): Typically the URL of the page that linked to the search interface from which the request originates (e.g., in JavaScript, this would correspond to the document.referrer value). This information can be obtained from `coveo.analytics.js`.
849
+ * - `pageId` (string): A GUID representing the page ID. This information can be obtained from `coveo.analytics.js`.
850
+ * - `userIp` (string): The user IP. If not present, the IP is obtained from the [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For) and [Forwarded](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded) headers. This information is required when endpoints are behind a proxy.
851
+ * - `clientRequestId` (string): A GUID generated by the client representing the current request. This information is used to identify operations across different apis related to the same request.
852
+ * - `clientTimestamp` (string): Client ISO 8601 timestamp with milliseconds.
853
+ * - `userAgent` (string): The user agent of the request. If not present, the user agent is obtained from the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) header. This information is required when endpoints are behind a proxy.
854
+ *
855
+ * @example
856
+ * ```json
857
+ * {
858
+ * "userId": "user@email.com",
859
+ * "clientId": "6d148f06-5f15-4639-81b4-792a9b94eb5f",
860
+ * "deviceId": "Chrome"
861
+ * }
862
+ * ```
863
+ *
864
+ * @example
865
+ * ```json
866
+ * {
867
+ * "clientTimestamp": "2020-09-09T19:00:45.603-04:00",
868
+ * "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"
869
+ * }
870
+ * ```
871
+ */
872
+ analytics?: RestAnalyticsRequest;
873
+ /**
874
+ * The custom context information to send along with the request. Must be a dictionary of key-value pairs (JSON) where each key is a string, and each value is either a string or an array of strings.
875
+ *
876
+ * Coveo Machine Learning models may use this information to provide contextually relevant output. Moreover, this information can be referred to in query expressions and QPL statements by using the `$context` object.
877
+ *
878
+ * **Note:**
879
+ * When logging a **Search** usage analytics event for a query, the `customData` field of that event should include the same data as the `context` parameter of the query. However, each `context` key included in `customData` must be prefixed by `context_` (e.g., the `userRoles` key in `context` becomes `context_userRoles` in `customData`).
880
+ *
881
+ * See also the `referrer` parameter.
882
+ *
883
+ * @example
884
+ * ```json
885
+ * {
886
+ * "userAgeRange":"25-35",
887
+ * "userRoles": ["PremiumCustomer", "ProductReviewer"]
888
+ * }
889
+ * ```
890
+ */
891
+ context?: RestContextRequest;
892
+ /**
893
+ * Whether to force a successful response to include debug information.
894
+ *
895
+ * **Notes:**
896
+ * - Debug information can only appear in responses in the JSON format (see the `format` parameter).
897
+ * - Avoid setting this parameter to `true` in production, as it has a negative impact on query performance.
898
+ *
899
+ * @default `false`
900
+ */
901
+ debug?: boolean;
902
+ /**
903
+ * The format of a successful response.
904
+ *
905
+ * - Use `json` to get the response in the JSON format.
906
+ * - Use `opensearch-atom` or `opensearch-rss` to get the results in an OpenSearch format (XML).
907
+ * - Use `xlsx` to generate an Excel file containing the results (binary).
908
+ *
909
+ * **Note:** Debug information (see the `debug` parameter) can only appear in a response in the JSON format.
910
+ *
911
+ * @default `json`
912
+ */
913
+ format?: RestFormat;
914
+ /**
915
+ * The identifier of the index mirror to forward the request to. See also the `indexToken` parameter.
916
+ *
917
+ * If you do not specify an `index` (or `indexToken`) value, any index mirror could be used.
918
+ *
919
+ * **Note:** Passing an `index` (or `indexToken`) value has no effect when the results of a specific request can be returned from cache (see the `maximumAge` parameter).
920
+ *
921
+ * @example `myorg-nvoqun-Indexer1-pbi2nbuw`
922
+ */
923
+ index?: string;
924
+ /**
925
+ * The Base64 encoded identifier of the index mirror to forward the request to. See also the `index` parameter.
926
+ *
927
+ * If you do not specify an `indexToken` (or `index`) value, any index mirror could be used.
928
+ *
929
+ * **Note:** Passing an `indexToken` (or `index`) value has no effect when the results of a specific request can be returned from cache (see the `maximumAge` parameter).
930
+ *
931
+ * @example `ZXhhbXBsZWluZGV4bWlycm9yLS4uLg==`
932
+ */
933
+ indexToken?: string;
934
+ /**
935
+ * The type of index against which to execute the query. Must correspond to an index that has been configured for the target Coveo Cloud organization.
936
+ *
937
+ * @default `coveo`
938
+ */
939
+ indexType?: string;
940
+ /**
941
+ * Whether the current user is anonymous.
942
+ *
943
+ * Coveo Machine Learning models may use this information to provide contextually relevant output.
944
+ *
945
+ * **Note:** When logging a **Search** usage analytics event for a query, the anonymous field of that event should be set to the `isGuestUser` value of the query.
946
+ *
947
+ * @default `false`
948
+ */
949
+ isGuestUser?: boolean;
950
+ /**
951
+ * The locale of the current user. Must comply with IETF's [BCP 47](http://www.rfc-editor.org/rfc/bcp/bcp47.txt) definition.
952
+ *
953
+ * Coveo Machine Learning models use this information to provide contextually relevant output. Moreover, this information can be referred to in query expressions and QPL statements by using the `$locale` object.
954
+ *
955
+ * **Note:** When logging a **Search** usage analytics event, the language field of that event should match the language part of the `locale` value of the query (e.g., `en-US` in `locale` becomes `en` in `language`).
956
+ *
957
+ * @example `en-US`
958
+ */
959
+ locale?: string;
960
+ /**
961
+ * The identifier for a logical group of indexes that have been configured to include documents form the same sources.
962
+ *
963
+ * If you do not specify a `logicalIndex` value, the `default` grouping will be used, typically including all indexes.
964
+ *
965
+ * @example `webcontentonly`
966
+ */
967
+ logicalIndex?: string;
968
+ /**
969
+ * The maximum age of cached results, in milliseconds.
970
+ *
971
+ * If the results of a specific request are available in the cache, and if those results are no older than the `maximumAge` value, the service returns those results rather than forwarding a new query to the index.
972
+ *
973
+ * **Note:** This parameter is automatically overridden when `staticQuery` is set to `true`.
974
+ *
975
+ * @default `-1` (which corresponds to the internal default value (15 minutes))
976
+ */
977
+ maximumAge?: number;
978
+ /**
979
+ * A map of options to pass to the Coveo ML models associated with the request's target query pipeline.
980
+ *
981
+ * **Available parameters:**
982
+ * - `considerUserContext` (boolean): Whether the models should attempt to leverage the `context` object of the request to personalize their output. Applies to CR models only. Default is `true`.
983
+ * - `maxActionsHistoryItemsToConsider` (unsigned integer): The maximum number of items in the `actionsHistory` array of the request that should be taken into account by the models. Applies to CR models only. By default, all `actionsHistory` items are considered.
984
+ * - `num` (unsigned integer): The maximum number of recommendations/suggestions to request from the models. Must be in range `[1, 50]`, if specified. Applies to ART, CR, and QS models. Default depends on model configuration.
985
+ * - `padding` (string enum): The kind of padding the models should complete their output with, if their maximum number of recommendations/suggestions (i.e., `num`) has not been reached. Applies to CR models only. Allowed values are popular (i.e., pad recommendations with all time most popular items) and trending (i.e., pad recommendations with items that have recently been increasingly popular). By default, no padding applies.
986
+ * - `wordSelection` (string): The ITD keyword selection options the models should use. Applies only to ART models with ITD enabled. If specified, must be a string in the format `option:value`. The only available option is `wordsKept` (i.e., the maximum number of `lq` keywords to inject in `q`); its default value is `5`.
987
+ * - `minNumberOfWords` (unsigned integer): The minimum number of words a query suggestion may contain to be returned by the model. Applies to QS models only. Must be in range `[1, 10]` Default is `1`, which implies that the model will return all candidates.
988
+ * - `itemId` (string): The unique identifier (e.g., SKU) of a product to get recommendations for. Only applies when querying a Product Recommendations model with an association strategy considering a single item as an input.
989
+ * - `itemIds` (array of strings): The unique identifiers (e.g., SKUs) of the products to get recommendations for. Only applies when querying a Product Recommendations model with an association strategy considering multiple items as an input.
990
+ * - `categoryFilter` (string): The name of a category of products to get recommendations for.
991
+ * - `brandFilter` (string): The name of a brand of products to get recommendations for.
992
+ * - `filters` (map of strings): The dimensions along with the values to be used at query time by the model as filters for potential suggestions. Only applies to Automatic relevance Tuning, Query Suggestions, or Dynamic Navigation Experience models that don't use the default `filterFields` advanced parameter values. **Example:** `"filters": { "originContext": "<MY-VALUE>", "originLevel2": "<MY-VALUE>" }`.
993
+ *
994
+ * @example
995
+ * ```json
996
+ * {
997
+ * "num": 3,
998
+ * "padding": "trending",
999
+ * "maxActionsHistoryItemsToConsider": 10,
1000
+ * "considerUserContext": false
1001
+ * }
1002
+ * ```
1003
+ *
1004
+ * @example
1005
+ * ```json
1006
+ * {"wordSelection": "wordsKept:4"}
1007
+ * ```
1008
+ */
1009
+ mlParameters?: Record<string, any>;
1010
+ /**
1011
+ * The name of the query pipeline to use for this request (bypassing its conditions, if it has any).
1012
+ *
1013
+ * You can pass an empty `pipeline` value to use an empty query pipeline (i.e., `?pipeline=` or `"pipeline": ""`).
1014
+ *
1015
+ * If a query does not contain the `pipeline` parameter, the first query pipeline whose conditions are met by the request is used (query pipelines without conditions are not evaluated). Should the request fail to meet the conditions of each evaluated query pipeline, the default query pipeline of the target Coveo Cloud organization is used (bypassing its conditions, if it has any).
1016
+ *
1017
+ * **Notes:**
1018
+ * - This parameter will be overridden if the search request is authenticated by a search token that enforces a specific `pipeline`, or a `searchHub` that routes queries to a specific `pipeline` via a query pipeline condition.
1019
+ * - For reporting purposes, when logging a **Search** usage analytics event for a query, the `queryPipeline` field of that event should be set to the `pipeline` value of the query (or to the `"default"` string, if no `pipeline` value was specified in the query).
1020
+ *
1021
+ * See also [Managing Query Pipelines](https://docs.coveo.com/en/1450/).
1022
+ *
1023
+ * @example `CustomerQueryPipeline`
1024
+ */
1025
+ pipeline?: string;
1026
+ /**
1027
+ * The basic query expression, typically the keywords entered by the end user in a query box.
1028
+ *
1029
+ * **Note:** When logging a **Search** usage analytics event for a query, the `queryText` field of that event should be set to the `q` value of the corresponding query.
1030
+ *
1031
+ * @example `Coveo "Cloud V2" platform`
1032
+ */
1033
+ q?: string;
1034
+ /**
1035
+ * The identifier of the recommendation interface from which the request originates.
1036
+ *
1037
+ * Coveo Machine Learning content recommendations models may use this information to provide contextually relevant output.
1038
+ *
1039
+ * @example `RecommendedProducts`
1040
+ */
1041
+ recommendation?: string;
1042
+ /**
1043
+ * The third level of origin of the request, typically the URL of the page that linked to the search interface from which the request originates (e.g., in JavaScript, this would correspond to the `document.referrer` value).
1044
+ *
1045
+ * Coveo Machine Learning models may use this information to provide contextually relevant output.
1046
+ *
1047
+ * **Note:** When logging a **Search** usage analytics event for a query, the `originLevel3` field of that event should be set to the `referrer` value of the query, if specified.
1048
+ *
1049
+ * See also the `context` parameter.
1050
+ *
1051
+ * @example `http://www.example.com`
1052
+ */
1053
+ referrer?: string;
1054
+ /**
1055
+ * The first level of origin of the request, typically the identifier of the graphical search interface from which the request originates.
1056
+ *
1057
+ * Coveo Machine Learning models use this information to provide contextually relevant output.
1058
+ *
1059
+ * **Notes:**
1060
+ * - This parameter will be overridden if the search request is authenticated by a search token that enforces a specific `searchHub`.
1061
+ * - When logging a **Search** usage analytics event for a query, the `originLevel1` field of that event should be set to the value of the `searchHub` search request parameter.
1062
+ *
1063
+ * See also the `tab` parameter.
1064
+ *
1065
+ * @example `CustomerPortal`
1066
+ */
1067
+ searchHub?: string;
1068
+ /**
1069
+ * The criteria to use for sorting the query results.
1070
+ *
1071
+ * **Allowed values:**
1072
+ * - `relevancy`: use standard index ranking factors (adjacency, TDIDF, etc.) and custom ranking expressions (QREs and QRFs) to compute a ranking `score` for each query result item, and sort the query results by descending `score` value.
1073
+ * - `date ascending`/`date descending`: use the `@date` field to sort the query results. This field typically contains the last modification date of each item.
1074
+ * - `qre`: use only custom ranking expressions (QREs and QRFs) to compute a ranking `score` for each query result item, and sort the query results by descending `score` value.
1075
+ * - `nosort`: do not sort the query results; the index will return result items in an essentially random order.
1076
+ * - `@[field] ascending`/`@[field] descending`: sort using the value of a specific sortable field (replace `[field]` by the target field name).
1077
+ *
1078
+ * You can specify a list of comma-separated sort criteria. However, this only works when combining:
1079
+ * - two or more field criteria (e.g., `@views descending,@likes descending`).
1080
+ * - a single date criteria with one or more field criteria (e.g., `date ascending,@views descending`).
1081
+ *
1082
+ * @example `date ascending`
1083
+ * @example `@author ascending`
1084
+ * @example `date descending,@views descending,@likes descending`
1085
+ *
1086
+ * @default `relevancy`
1087
+ */
1088
+ /**
1089
+ * The second level of origin of the request, typically the identifier of the selected tab in the graphical search interface from which the request originates.
1090
+ *
1091
+ * Coveo Machine Learning models use this information to provide contextually relevant output.
1092
+ *
1093
+ * **Note:** When logging a **Search** usage analytics event for a query, the `originLevel2` field of that event should be set to the `tab` value of the query (or to the `"default"` string, if no `tab` value was specified in the query).
1094
+ *
1095
+ * See also the `searchHub` parameter.
1096
+ *
1097
+ * @example `ForumTab`
1098
+ */
1099
+ tab?: string;
1100
+ /**
1101
+ * The [tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) identifier of the time zone to use to correctly interpret dates in the query expression and result items.
1102
+ *
1103
+ * If not specified, the default time zone of the server hosting the index is used.
1104
+ *
1105
+ * **Note:** While no Coveo Machine Learning model uses this information, it can nevertheless affect the ranking scores (and thus, potentially the order) of result items, as ranking expressions may be based on time constants.
1106
+ *
1107
+ * @example `America/New_York`
1108
+ */
1109
+ timezone?: string;
1110
+ /**
1111
+ * A GUID representing the current user, who can be authenticated or anonymous. This GUID is normally generated by the usage analytics service and stored in a non-expiring browser cookie.
1112
+ *
1113
+ * Coveo Machine Learning models may use this information to provide contextually relevant output.
1114
+ *
1115
+ * @example `5cb98953-9c13-42ff-8176-e6fcba6a50bf`
1116
+ */
1117
+ visitorId?: string;
1118
+ }
1119
+ /**
1120
+ * Defines the body parameters of the query suggest request
1121
+ */
1122
+ export interface PostSearchQuerySuggestBodyParams extends PostSearchBodyCommonParams, Pick<ListFieldValuesBodyQueryParams, 'maximumTimeoutMs'> {
1123
+ /**
1124
+ * The desired number of query suggestions.
1125
+ */
1126
+ count?: number;
1127
+ /**
1128
+ * Whether to attempt to complete the last word of the current basic query expression (see the q parameter) and boost the ranking score of the resulting expression so that it is returned as the first query suggestion.
1129
+ */
1130
+ enableWordCompletion?: boolean;
1131
+ }
1132
+ export declare type RestFacetRequest = RestSpecificFacetRequest | RestDateRangeFacetRequest | RestNumericalRangeFacetRequest | RestHierarchicalFacetRequest;
1133
+ export declare type RestThreshold = string | number;
1134
+ export declare type RestComputedFieldOperation = 'average' | 'maximum' | 'minimum' | 'sum';
1135
+ export declare type RestHierarchicalFacetSortCriteria = 'score' | 'alphanumeric' | 'occurrences';
1136
+ export declare type RestRangeFacetSortCriteria = 'score' | 'alphanumeric' | 'ascending' | 'descending';
1137
+ export declare type RestSpecificFacetSortCriteria = 'score' | 'alphanumeric';
1138
+ export declare type RestFormat = 'json' | 'opensearch-atom' | 'opensearch-rss' | 'xlsx';
1139
+ export declare type RestGroupBySortCriteria = 'alphaascending' | 'alphadescending' | 'chisquare' | 'computedfieldascending' | 'computedfielddescending' | 'nosort' | 'occurrences' | 'score';
1140
+ export declare type RestMLParametersPadding = 'popular' | 'trending';
1141
+ export declare type RestRangeAlgorithm = 'equiprobable' | 'even';
1142
+ /**
1143
+ * A single query or page view action (see the `actionsHistory` top-level search request parameter).
1144
+ */
1145
+ export interface RestActionHistory {
1146
+ /**
1147
+ * The action history event name.
1148
+ *
1149
+ * @example `PageView`
1150
+ *
1151
+ * Allowed values are:
1152
+ * - `Query`
1153
+ * - `PageView`
1154
+ */
1155
+ name?: string;
1156
+ /**
1157
+ * The time when the action history event was sent from the client.
1158
+ *
1159
+ * @example `2017-08-15T17:34:08.398Z`
1160
+ */
1161
+ time?: string;
1162
+ /**
1163
+ * The action history value, which is either a query expression or a page URI, depending on the action history event `name`.
1164
+ *
1165
+ * @example `http://www.example.com/`
1166
+ */
1167
+ value?: string;
1168
+ }
1169
+ /**
1170
+ * Contextual information about the user performing the request and the request itself (see the `analytics` top-level search request parameter).
1171
+ */
1172
+ export interface RestAnalyticsRequest {
1173
+ /**
1174
+ * A GUID representing the client id.
1175
+ *
1176
+ * **Note:** The `clientId` and `deviceId` replaces the deprecated `visitorId`.
1177
+ *
1178
+ * @example `6d148f06-5f15-4639-81b4-792a9b94eb5f`
1179
+ */
1180
+ clientId?: string;
1181
+ /**
1182
+ * A GUID generated by the client representing the current request.
1183
+ *
1184
+ * This information is used to identify operations across different apis related to the same request.
1185
+ *
1186
+ * @example `6c59a3aa-cb66-492e-9c08-9f1937467b60`
1187
+ */
1188
+ clientRequestId?: string;
1189
+ /**
1190
+ * Client ISO 8601 timestamp with milliseconds.
1191
+ *
1192
+ * @example `2020-09-09T19:00:45.603-04:00`
1193
+ */
1194
+ clientTimestamp?: string;
1195
+ /**
1196
+ * The name of the device that the end user is using. It has to be explicitly passed from native mobile apps.
1197
+ *
1198
+ * **Note:** The `clientId` and `deviceId` replaces the deprecated `visitorId`.
1199
+ *
1200
+ * @example `Chrome`
1201
+ */
1202
+ deviceId?: string;
1203
+ /**
1204
+ * The URL of the current page or component.
1205
+ *
1206
+ * If not present, the referrer is obtained from the [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer) header.
1207
+ *
1208
+ * **Note:** This information can be obtained from `coveo.analytics.js`.
1209
+ *
1210
+ * @example `http://www.example.com/`
1211
+ */
1212
+ documentLocation?: string;
1213
+ /**
1214
+ * Typically the URL of the page that linked to the search interface from which the request originates (e.g., in JavaScript, this would correspond to the `document.referrer` value).
1215
+ *
1216
+ * Coveo Machine Learning models may use this information to provide contextually relevant output.
1217
+ *
1218
+ * **Note:** This information can be obtained from `coveo.analytics.js`.
1219
+ *
1220
+ * @example `http://www.example.com/`
1221
+ */
1222
+ documentReferrer?: string;
1223
+ /**
1224
+ * A GUID representing the page ID.
1225
+ *
1226
+ * **Note:** This information can be obtained from `coveo.analytics.js`.
1227
+ *
1228
+ * @example `c4e3aa42-5afa-4b01-8bfd-79b7b49668f7`
1229
+ */
1230
+ pageId?: string;
1231
+ /**
1232
+ * The user agent of the request. If not present, the user agent is obtained from the [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) header.
1233
+ *
1234
+ * **Note:** This information is required when endpoints are behind a proxy.
1235
+ *
1236
+ * @example `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36`
1237
+ */
1238
+ userAgent?: string;
1239
+ /**
1240
+ * The ID of the logged user. If not present, the id is obtained from the authentication token.
1241
+ *
1242
+ * @example `user@email.com`
1243
+ */
1244
+ userId?: string;
1245
+ /**
1246
+ * The user IP. If not present, the IP is obtained from the [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For) and [Forwarded](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded) headers.
1247
+ *
1248
+ * **Note:** This information is required when endpoints are behind a proxy.
1249
+ *
1250
+ * @example `127.0.0.1`
1251
+ */
1252
+ userIp?: string;
1253
+ }
1254
+ /**
1255
+ * A single category facet to request along with the query (see the `categoryFacets` top-level search request parameter).
1256
+ */
1257
+ export interface RestCategoryFacetRequest {
1258
+ /**
1259
+ * The character to use to split field values into a hierarchical sequence.
1260
+ *
1261
+ * @example
1262
+ * For a multi-value `field` containing the following values:
1263
+ * `c; c>folder2; c>folder2>folder3;`
1264
+ * The delimiting character is `>`.
1265
+ *
1266
+ * @default `|`
1267
+ */
1268
+ delimitingCharacter?: string;
1269
+ /**
1270
+ * The name of the field in which to look for hierarchical values.
1271
+ *
1272
+ * **Note:** You must ensure that the **Multi-value facet** option is enabled for this field in your index (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
1273
+ *
1274
+ * @example `@categories`
1275
+ */
1276
+ field: string;
1277
+ /**
1278
+ * Whether to exclude folded result parents when estimating the result count for each facet value.
1279
+ *
1280
+ * @default `true`
1281
+ */
1282
+ filterFacetCount?: boolean;
1283
+ /**
1284
+ * The maximum number of query result items to scan.
1285
+ *
1286
+ * **Note:** Specifying a high `injectionDepth` value can negatively impact query performance.
1287
+ *
1288
+ * @default `1000`
1289
+ */
1290
+ injectionDepth?: number;
1291
+ /**
1292
+ * The maximum number of values to return.
1293
+ *
1294
+ * @default `10`
1295
+ */
1296
+ maximumNumberOfValues?: number;
1297
+ /**
1298
+ * The retrieved sequence of hierarchical field values.
1299
+ */
1300
+ path?: string[];
1301
+ }
1302
+ export interface RestComputedField {
1303
+ /**
1304
+ * The name of the numeric field on which to perform the aggregate operation.
1305
+ *
1306
+ * **Tip:** You should ensure that the **Use cache for computed fields** option is enabled for that field in your index in order to speed up evaluation (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
1307
+ *
1308
+ * @example `@wordcount`
1309
+ */
1310
+ field: string;
1311
+ /**
1312
+ * The aggregate operation to perform on the `field` values.
1313
+ *
1314
+ * **Allowed values:**
1315
+ * - `sum`: get the sum of all values.
1316
+ * - `average`: get the average of all values.
1317
+ * - `minimum`: get the smallest value.
1318
+ * - `maximum`: get the largest value.
1319
+ */
1320
+ operation: RestComputedFieldOperation;
1321
+ }
1322
+ export interface RestContextRequest {
1323
+ [fieldName: string]: string | string[];
1324
+ }
1325
+ export interface RestDictionaryFieldContextRequest {
1326
+ [fieldName: string]: string;
1327
+ }
1328
+ export interface RestFacetOptions {
1329
+ /**
1330
+ * Whether to take the scores generated by the index into account when reordering facets.
1331
+ *
1332
+ * **Note:** Setting this to `false` implies that only the scores generated by a Coveo ML DNE model will be taken into account when automatically reordering facets. To disable automatic facet reordering entirely, set `freezeFacetOrder` to `true` instead.
1333
+ *
1334
+ * @default `true`
1335
+ */
1336
+ enableIndexFacetOrdering?: boolean;
1337
+ /**
1338
+ * Whether facets should be returned in the same order they were requested.
1339
+ *
1340
+ * **Note:** Setting this to `true` entirely prevents automatic score-based facet reordering. To allow automatic facet reordering, but only take into account the scores generated by a Coveo ML DNE model, set `enableIndexFacetOrdering` to `false` instead.
1341
+ *
1342
+ * @default `false`
1343
+ */
1344
+ freezeFacetOrder?: boolean;
1345
+ }
1346
+ export interface RestSpecificFacetRequest {
1347
+ /**
1348
+ * The values displayed by the facet in the search interface at the moment of the request.
1349
+ *
1350
+ * @default `[]`
1351
+ */
1352
+ currentValues?: RestFacetValue[];
1353
+ /**
1354
+ * The facet unique ID.
1355
+ */
1356
+ facetId?: string;
1357
+ /**
1358
+ * The name of the field on which to base the facet request.
1359
+ *
1360
+ * **Note:** Must reference a field whose **Facet** option is enabled (see [Add or Edit Fields](https://docs.coveo.com/en/1982)).
1361
+ *
1362
+ * @example `author`
1363
+ */
1364
+ field: string;
1365
+ /**
1366
+ * Whether to exclude folded result parents when estimating the result count for each facet value.
1367
+ *
1368
+ * @default `true`
1369
+ */
1370
+ filterFacetCount?: boolean;
1371
+ /**
1372
+ * Whether to include the facet request’s `currentValues` in corresponding facet response’s `values` array.
1373
+ *
1374
+ * **Note:** Setting this to `true` is useful to ensure that the facet does not move around while the end-user is interacting with it in the search interface.
1375
+ *
1376
+ * @default `false`
1377
+ */
1378
+ freezeCurrentValues?: boolean;
1379
+ /**
1380
+ * The maximum number of items to scan for facet values.
1381
+ *
1382
+ * **Note:** A high `injectionDepth` may negatively impact the facet request performance.
1383
+ *
1384
+ * @default `100`
1385
+ */
1386
+ injectionDepth?: number;
1387
+ /**
1388
+ * Whether the facet is expanded in the search interface at the moment of the request.
1389
+ *
1390
+ * @default `false`
1391
+ */
1392
+ isFieldExpanded?: boolean;
1393
+ mlDebugTitle?: string;
1394
+ /**
1395
+ * The maximum number of facet values to fetch.
1396
+ *
1397
+ * **Notes:**
1398
+ * - If `freezeCurrentValues` is `true` or if requesting range facet values, `numberOfValues` is automatically set to the `currentValues` array length.
1399
+ * - When requesting hierarchical facet values, `numberOfValues` is only taken account when the `currentValues` array is empty (i.e., when retrieving the first level of values).
1400
+ *
1401
+ * @default `8`
1402
+ */
1403
+ numberOfValues?: number;
1404
+ /**
1405
+ * Whether to prevent Coveo ML from automatically selecting values.
1406
+ *
1407
+ * @default `false`
1408
+ */
1409
+ preventAutoSelect?: boolean;
1410
+ /**
1411
+ * The sort criterion to apply to the returned facet values.
1412
+ *
1413
+ * **Allowed values:**
1414
+ * - `score`: Sort values in descending score order. On a Coveo index, facet value scores are based on number of occurrences and position in the ranked query result set. On an Elasticsearch index, score values are based on number of occurrences only.
1415
+ * - `alphanumeric`: Sort values in ascending alphanumeric order.
1416
+ *
1417
+ * **Notes:**
1418
+ * - The Coveo ML DNE feature only works with the `score` sort criterion.
1419
+ *
1420
+ * By default:
1421
+ * - When `isFieldExpanded` is `false` in the facet request, and `moreValuesAvailable` is `true` in the corresponding facet response, use `score`
1422
+ * - Otherwise, use `alphanumeric`.
1423
+ */
1424
+ sortCriteria?: RestSpecificFacetSortCriteria;
1425
+ /**
1426
+ * The kind of values to request for the facet.
1427
+ */
1428
+ type?: 'specific';
1429
+ }
1430
+ export interface RestDateRangeFacetRequest {
1431
+ /**
1432
+ * The values displayed by the facet in the search interface at the moment of the request.
1433
+ *
1434
+ * @default `[]`
1435
+ */
1436
+ currentValues?: RestFacetValue[];
1437
+ /**
1438
+ * The facet unique ID.
1439
+ */
1440
+ facetId?: string;
1441
+ /**
1442
+ * The name of the field on which to base the facet request.
1443
+ *
1444
+ * **Note:** Must reference a field whose **Facet** option is enabled (see [Add or Edit Fields](https://docs.coveo.com/en/1982)).
1445
+ *
1446
+ * @example `author`
1447
+ */
1448
+ field: string;
1449
+ /**
1450
+ * Whether to exclude folded result parents when estimating the result count for each facet value.
1451
+ *
1452
+ * @default `true`
1453
+ */
1454
+ filterFacetCount?: boolean;
1455
+ /**
1456
+ * Whether to include the facet request’s `currentValues` in corresponding facet response’s `values` array.
1457
+ *
1458
+ * **Note:** Setting this to `true` is useful to ensure that the facet does not move around while the end-user is interacting with it in the search interface.
1459
+ *
1460
+ * @default `false`
1461
+ */
1462
+ freezeCurrentValues?: boolean;
1463
+ /**
1464
+ * Whether the index should automatically create range values.
1465
+ *
1466
+ * **Tip:** If you set this parameter to `true`, you should ensure that the **Use cache for numeric queries** option is enabled for the Facet `field` in your index in order to speed up automatic range evaluation (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
1467
+ *
1468
+ * **Notes:**
1469
+ * - Setting `generateAutomaticRanges` to `true` only makes sense when the Facet `field` references a numeric or date field in the index.
1470
+ * - The index cannot automatically generate range values of a field generated by a query function. In such cases, you must rather use the `rangeValues` Facet parameter.
1471
+ * - Automatic range generation will fail if the referenced `field` is dynamically generated by a query function.
1472
+ *
1473
+ * @default `false`
1474
+ */
1475
+ generateAutomaticRanges?: boolean;
1476
+ /**
1477
+ * The maximum number of items to scan for facet values.
1478
+ *
1479
+ * **Note:** A high `injectionDepth` may negatively impact the facet request performance.
1480
+ *
1481
+ * @default `100`
1482
+ */
1483
+ injectionDepth?: number;
1484
+ /**
1485
+ * Whether the facet is expanded in the search interface at the moment of the request.
1486
+ *
1487
+ * @default `false`
1488
+ */
1489
+ isFieldExpanded?: boolean;
1490
+ mlDebugTitle?: string;
1491
+ /**
1492
+ * The maximum number of facet values to fetch.
1493
+ *
1494
+ * **Notes:**
1495
+ * - If `freezeCurrentValues` is `true` or if requesting range facet values, `numberOfValues` is automatically set to the `currentValues` array length.
1496
+ * - When requesting hierarchical facet values, `numberOfValues` is only taken account when the `currentValues` array is empty (i.e., when retrieving the first level of values).
1497
+ *
1498
+ * @default `8`
1499
+ */
1500
+ numberOfValues?: number;
1501
+ /**
1502
+ * Whether to prevent Coveo ML from automatically selecting values.
1503
+ *
1504
+ * @default `false`
1505
+ */
1506
+ preventAutoSelect?: boolean;
1507
+ /**
1508
+ * Determines which algorithm is used to generate the ranges if `generateAutomaticRanges` is enabled.
1509
+ *
1510
+ * **Allowed values:**
1511
+ * - `equiprobable`
1512
+ * - `even`
1513
+ *
1514
+ * **Equiprobable**
1515
+ *
1516
+ * This algorithm creates ranges which represent the distribution of the results. For example, if you have a single facet value that matches most of the results, the `equiprobable` algorithm will resize the ranges to balance the weights.
1517
+ *
1518
+ * | Start | End | Matching results |
1519
+ * |:------|:----|:-----------------|
1520
+ * |0 |62 |100 |
1521
+ * |62 |423 |100 |
1522
+ * |423 |1500 |100 |
1523
+ *
1524
+ * **Even**
1525
+ *
1526
+ * This algorithm creates ranges of the same length. For example, it could generate the following price ranges:
1527
+ *
1528
+ * | Start | End | Matching results |
1529
+ * |:------|:----|:-----------------|
1530
+ * |0 |500 |299 |
1531
+ * |500 |1000 |0 |
1532
+ * |1000 |1500 |1 |
1533
+ *
1534
+ * @default `equiprobable`
1535
+ */
1536
+ rangeAlgorithm?: RestRangeAlgorithm;
1537
+ /**
1538
+ * The sort criterion to apply to the returned facet values.
1539
+ *
1540
+ * **Allowed values:**
1541
+ * - `score`: Sort values in descending score order. On a Coveo index, facet value scores are based on number of occurrences and position in the ranked query result set. On an Elasticsearch index, score values are based on number of occurrences only.
1542
+ * - `alphanumeric`: Sort values in ascending alphanumeric order.
1543
+ * - `ascending`: Sort in ascending order of range facet values.
1544
+ * - `descending`: Sort in descending order of range facet values.
1545
+ *
1546
+ * **Notes:**
1547
+ * - The Coveo ML DNE feature only works with the `score` sort criterion.
1548
+ *
1549
+ * @default `ascending`
1550
+ */
1551
+ sortCriteria?: RestRangeFacetSortCriteria;
1552
+ /**
1553
+ * The kind of values to request for the facet.
1554
+ */
1555
+ type: 'dateRange';
1556
+ }
1557
+ export interface RestNumericalRangeFacetRequest {
1558
+ /**
1559
+ * The values displayed by the facet in the search interface at the moment of the request.
1560
+ *
1561
+ * @default `[]`
1562
+ */
1563
+ currentValues?: RestFacetValue[];
1564
+ /**
1565
+ * The facet unique ID.
1566
+ */
1567
+ facetId?: string;
1568
+ /**
1569
+ * The name of the field on which to base the facet request.
1570
+ *
1571
+ * **Note:** Must reference a field whose **Facet** option is enabled (see [Add or Edit Fields](https://docs.coveo.com/en/1982)).
1572
+ *
1573
+ * @example `author`
1574
+ */
1575
+ field: string;
1576
+ /**
1577
+ * Whether to exclude folded result parents when estimating the result count for each facet value.
1578
+ *
1579
+ * @default `true`
1580
+ */
1581
+ filterFacetCount?: boolean;
1582
+ /**
1583
+ * Whether to include the facet request’s `currentValues` in corresponding facet response’s `values` array.
1584
+ *
1585
+ * **Note:** Setting this to `true` is useful to ensure that the facet does not move around while the end-user is interacting with it in the search interface.
1586
+ *
1587
+ * @default `false`
1588
+ */
1589
+ freezeCurrentValues?: boolean;
1590
+ /**
1591
+ * Whether the index should automatically create range values.
1592
+ *
1593
+ * **Tip:** If you set this parameter to `true`, you should ensure that the **Use cache for numeric queries** option is enabled for the Facet `field` in your index in order to speed up automatic range evaluation (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
1594
+ *
1595
+ * **Notes:**
1596
+ * - Setting `generateAutomaticRanges` to `true` only makes sense when the Facet `field` references a numeric or date field in the index.
1597
+ * - The index cannot automatically generate range values of a field generated by a query function. In such cases, you must rather use the `rangeValues` Facet parameter.
1598
+ * - Automatic range generation will fail if the referenced `field` is dynamically generated by a query function.
1599
+ *
1600
+ * @default `false`
1601
+ */
1602
+ generateAutomaticRanges?: boolean;
1603
+ /**
1604
+ * The maximum number of items to scan for facet values.
1605
+ *
1606
+ * **Note:** A high `injectionDepth` may negatively impact the facet request performance.
1607
+ *
1608
+ * @default `100`
1609
+ */
1610
+ injectionDepth?: number;
1611
+ /**
1612
+ * Whether the facet is expanded in the search interface at the moment of the request.
1613
+ *
1614
+ * @default `false`
1615
+ */
1616
+ isFieldExpanded?: boolean;
1617
+ mlDebugTitle?: string;
1618
+ /**
1619
+ * The maximum number of facet values to fetch.
1620
+ *
1621
+ * **Notes:**
1622
+ * - If `freezeCurrentValues` is `true` or if requesting range facet values, `numberOfValues` is automatically set to the `currentValues` array length.
1623
+ * - When requesting hierarchical facet values, `numberOfValues` is only taken account when the `currentValues` array is empty (i.e., when retrieving the first level of values).
1624
+ *
1625
+ * @default `8`
1626
+ */
1627
+ numberOfValues?: number;
1628
+ /**
1629
+ * Whether to prevent Coveo ML from automatically selecting values.
1630
+ *
1631
+ * @default `false`
1632
+ */
1633
+ preventAutoSelect?: boolean;
1634
+ /**
1635
+ * Determines which algorithm is used to generate the ranges if `generateAutomaticRanges` is enabled.
1636
+ *
1637
+ * **Allowed values:**
1638
+ * - `equiprobable`
1639
+ * - `even`
1640
+ *
1641
+ * **Equiprobable**
1642
+ *
1643
+ * This algorithm creates ranges which represent the distribution of the results. For example, if you have a single facet value that matches most of the results, the `equiprobable` algorithm will resize the ranges to balance the weights.
1644
+ *
1645
+ * | Start | End | Matching results |
1646
+ * |:------|:----|:-----------------|
1647
+ * |0 |62 |100 |
1648
+ * |62 |423 |100 |
1649
+ * |423 |1500 |100 |
1650
+ *
1651
+ * **Even**
1652
+ *
1653
+ * This algorithm creates ranges of the same length. For example, it could generate the following price ranges:
1654
+ *
1655
+ * | Start | End | Matching results |
1656
+ * |:------|:----|:-----------------|
1657
+ * |0 |500 |299 |
1658
+ * |500 |1000 |0 |
1659
+ * |1000 |1500 |1 |
1660
+ *
1661
+ * @default `equiprobable`
1662
+ */
1663
+ rangeAlgorithm?: RestRangeAlgorithm;
1664
+ /**
1665
+ * The sort criterion to apply to the returned facet values.
1666
+ *
1667
+ * **Allowed values:**
1668
+ * - `score`: Sort values in descending score order. On a Coveo index, facet value scores are based on number of occurrences and position in the ranked query result set. On an Elasticsearch index, score values are based on number of occurrences only.
1669
+ * - `alphanumeric`: Sort values in ascending alphanumeric order.
1670
+ * - `ascending`: Sort in ascending order of range facet values.
1671
+ * - `descending`: Sort in descending order of range facet values.
1672
+ *
1673
+ * **Notes:**
1674
+ * - The Coveo ML DNE feature only works with the `score` sort criterion.
1675
+ *
1676
+ * @default `ascending`
1677
+ */
1678
+ sortCriteria?: RestRangeFacetSortCriteria;
1679
+ /**
1680
+ * The kind of values to request for the facet.
1681
+ */
1682
+ type: 'numericalRange';
1683
+ }
1684
+ export interface RestHierarchicalFacetRequest {
1685
+ /**
1686
+ * The base path shared by all values for the facet.
1687
+ */
1688
+ basePath?: string[];
1689
+ /**
1690
+ * The values displayed by the facet in the search interface at the moment of the request.
1691
+ *
1692
+ * @default `[]`
1693
+ */
1694
+ currentValues?: RestFacetValue[];
1695
+ /**
1696
+ * The character to use to split field values into a hierarchical sequence.
1697
+ *
1698
+ * @example
1699
+ * For a multi-value field containing the following values:
1700
+ *
1701
+ * `c; c>folder2; c>folder2>folder3;`
1702
+ *
1703
+ * The delimiting character is `>`.
1704
+ *
1705
+ * For a hierarchical field containing the following values: `c;folder2;folder3;`
1706
+ *
1707
+ * The delimiting character is `;`.
1708
+ *
1709
+ * @default `;`
1710
+ */
1711
+ delimitingCharacter?: string;
1712
+ /**
1713
+ * The facet unique ID.
1714
+ */
1715
+ facetId?: string;
1716
+ /**
1717
+ * The name of the field on which to base the facet request.
1718
+ *
1719
+ * **Note:** Must reference a field whose **Facet** option is enabled (see [Add or Edit Fields](https://docs.coveo.com/en/1982)).
1720
+ *
1721
+ * @example `author`
1722
+ */
1723
+ field: string;
1724
+ /**
1725
+ * Whether to use `basePath` as a filter for the results.
1726
+ *
1727
+ * @default `true`
1728
+ */
1729
+ filterByBasePath?: boolean;
1730
+ /**
1731
+ * Whether to exclude folded result parents when estimating the result count for each facet value.
1732
+ *
1733
+ * @default `true`
1734
+ */
1735
+ filterFacetCount?: boolean;
1736
+ /**
1737
+ * The maximum number of items to scan for facet values.
1738
+ *
1739
+ * **Note:** A high `injectionDepth` may negatively impact the facet request performance.
1740
+ *
1741
+ * @default `100`
1742
+ */
1743
+ injectionDepth?: number;
1744
+ /**
1745
+ * Whether the facet is expanded in the search interface at the moment of the request.
1746
+ *
1747
+ * @default `false`
1748
+ */
1749
+ isFieldExpanded?: boolean;
1750
+ mlDebugTitle?: string;
1751
+ /**
1752
+ * The maximum number of facet values to fetch.
1753
+ *
1754
+ * **Notes:**
1755
+ * - If `freezeCurrentValues` is `true` or if requesting range facet values, `numberOfValues` is automatically set to the `currentValues` array length.
1756
+ * - When requesting hierarchical facet values, `numberOfValues` is only taken account when the `currentValues` array is empty (i.e., when retrieving the first level of values).
1757
+ *
1758
+ * @default `8`
1759
+ */
1760
+ numberOfValues?: number;
1761
+ /**
1762
+ * Whether to prevent Coveo ML from automatically selecting values.
1763
+ *
1764
+ * @default `false`
1765
+ */
1766
+ preventAutoSelect?: boolean;
1767
+ /**
1768
+ * The sort criterion to apply to the returned facet values.
1769
+ *
1770
+ * **Allowed values:**
1771
+ * - `score`: Sort values in descending score order. On a Coveo index, facet value scores are based on number of occurrences and position in the ranked query result set. On an Elasticsearch index, score values are based on number of occurrences only.
1772
+ * - `alphanumeric`: Sort values in ascending alphanumeric order.
1773
+ * - `occurrences`: Sort by number of occurrences, with field values having the highest number of occurrences appearing first.
1774
+ *
1775
+ * **Notes:**
1776
+ * - The Coveo ML DNE feature only works with the `score` sort criterion.
1777
+ *
1778
+ * @default `occurrences`
1779
+ */
1780
+ sortCriteria?: RestHierarchicalFacetSortCriteria;
1781
+ /**
1782
+ * The kind of values to request for the facet.
1783
+ */
1784
+ type: 'hierarchical';
1785
+ }
1786
+ /**
1787
+ * A single item in the `currentValues` array of a `RestFacetRequest` (see the `facets` query parameter).
1788
+ */
1789
+ export interface RestFacetValue {
1790
+ /**
1791
+ * The children of this hierarchical facet value.
1792
+ *
1793
+ * Each child is a full-fledged hierarchical facet value that may in turn have its own children and so forth, up to a maximum depth of 50 levels.
1794
+ */
1795
+ children?: RestHierarchicalFacetValue[];
1796
+ /**
1797
+ * The value to end the range at. Must be greater (or later) than the `start` value.
1798
+ *
1799
+ * **Note:** Timezone of date ranges are determined by the timezone parameter of the search request.
1800
+ *
1801
+ * @example `100`
1802
+ * @example `2019/12/31@23:59:59`
1803
+ */
1804
+ end?: string;
1805
+ /**
1806
+ * Whether to include the `end` value in the range.
1807
+ *
1808
+ * **Note:** In an Elasticsearch index, this parameter cannot be set to `true`.
1809
+ *
1810
+ * @default `false`
1811
+ */
1812
+ endInclusive?: boolean;
1813
+ /**
1814
+ * Whether to prevent Coveo ML from automatically selecting the facet value.
1815
+ *
1816
+ * @default `false`
1817
+ */
1818
+ preventAutoSelect?: boolean;
1819
+ /**
1820
+ * Whether to retrieve the children of this hierarchical facet value. Can only be used on leaf values.
1821
+ */
1822
+ retrieveChildren?: boolean;
1823
+ /**
1824
+ * The maximum number of children to retrieve for this hierarchical facet value. Ignored if `retrieveChildren` is `false`.
1825
+ */
1826
+ retrieveCount?: number;
1827
+ /**
1828
+ * The value to start the range at.
1829
+ *
1830
+ * **Note:** Timezone of date ranges are determined by the timezone parameter of the search request.
1831
+ *
1832
+ * @example `0`
1833
+ * @example `2019/01/01@00:00:00`
1834
+ */
1835
+ start?: string;
1836
+ /**
1837
+ * The current facet value state in the search interface.
1838
+ *
1839
+ * @default `idle`
1840
+ */
1841
+ state?: string;
1842
+ /**
1843
+ * The facet value name.
1844
+ *
1845
+ * **Note:** In the case of a hierarchical facet value, this represents a single path segment.
1846
+ *
1847
+ * @example `Alice Smith`
1848
+ */
1849
+ value: string;
1850
+ }
1851
+ /**
1852
+ * Describes a single range value for a Group By operation (see the `rangeValues` Group By parameter).
1853
+ */
1854
+ export interface RestGroupByRangeValue {
1855
+ /**
1856
+ * The value to end the range at. Must be greater (or later) than the `start` value.
1857
+ *
1858
+ * **Note:** Timezone of date ranges are determined by the timezone parameter of the search request.
1859
+ *
1860
+ * @example `100`
1861
+ * @example `2019/12/31@23:59:59`
1862
+ */
1863
+ end: number;
1864
+ /**
1865
+ * Whether to include the `end` value in the range.
1866
+ *
1867
+ * **Note:** In an Elasticsearch index, this parameter cannot be set to `true`.
1868
+ *
1869
+ * @default `false`
1870
+ */
1871
+ endInclusive?: boolean;
1872
+ /**
1873
+ * The label to associate with the range.
1874
+ *
1875
+ * **Note:** Not currently leveraged.
1876
+ *
1877
+ * @example `0 - 100`
1878
+ * @example `In 2019`
1879
+ */
1880
+ label?: string;
1881
+ /**
1882
+ * The value to start the range at.
1883
+ *
1884
+ * **Note:** Timezone of date ranges are determined by the timezone parameter of the search request.
1885
+ *
1886
+ * @example `0`
1887
+ * @example `2019/01/01@00:00:00`
1888
+ */
1889
+ start: number;
1890
+ }
1891
+ export interface RestGroupByRequest {
1892
+ /**
1893
+ * The query expression that should override the advanced query expression on which the Group By operation is being performed (see the `aq` query parameter).
1894
+ *
1895
+ * **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
1896
+ *
1897
+ * @example `@year==2017`
1898
+ */
1899
+ advancedQueryOverride?: string;
1900
+ /**
1901
+ * The field values allowed in the Group By operation results. You can use trailing wildcards (`*`) to include ranges of values.
1902
+ *
1903
+ * See also the `completeFacetWithStandardValues` Group By operation parameter.
1904
+ *
1905
+ * If you do not explicitly specify an array of `allowedValues`, or if you specify an empty array, all field values are allowed.
1906
+ *
1907
+ * @example
1908
+ * ```json
1909
+ * [
1910
+ * "Anonymous",
1911
+ * "Bob Jones",
1912
+ * "Carrie Green",
1913
+ * "David Allen"
1914
+ * ]
1915
+ * ```
1916
+ */
1917
+ allowedValues?: string[];
1918
+ /**
1919
+ * The type of pattern being used in the allowed field values.
1920
+ *
1921
+ * See also the `allowedValues` Group By operation parameter.
1922
+ *
1923
+ * If you do not explicitly specify a pattern type, the legacy pattern is used by default, which only support trailing wildcards.
1924
+ *
1925
+ * @example `regex`
1926
+ */
1927
+ allowedValuesPatternType?: string;
1928
+ /**
1929
+ * Whether to complete the Group By operation result set with standard values.
1930
+ *
1931
+ * If you set this parameter to `true` and the number of specified `allowedValues` is lower than the `maximumNumberOfValues`, the Group By operation also attempts to returns standard values until the result set contains the `maximumNumberOfValues`.
1932
+ *
1933
+ * @default `false`
1934
+ */
1935
+ completeFacetWithStandardValues?: boolean;
1936
+ /**
1937
+ * The computed fields to evaluate for each Group By value.
1938
+ *
1939
+ * A computed field stores the result of an aggregate operation performed on the values of a specific numerical field for all the query result items that share the same Group By `field` value.
1940
+ */
1941
+ computedFields?: RestComputedField[];
1942
+ /**
1943
+ * The query expression that should override the constant query expression on which the Group By operation is being performed (see the `cq` query parameter).
1944
+ *
1945
+ * **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
1946
+ *
1947
+ * @example `@filetype==forumpost`
1948
+ */
1949
+ constantQueryOverride?: string;
1950
+ /**
1951
+ * The query expression that should override the disjunction query expression on which the Group By operation is being performed (see the `dq` query parameter).
1952
+ *
1953
+ * **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
1954
+ *
1955
+ * @example `@date=2016-12-01..2016-12-31`
1956
+ */
1957
+ disjunctionQueryOverride?: string;
1958
+ /**
1959
+ * The name of the field on which to perform the Group By operation. The operation returns a Group By value for each distinct value of this field found in the query result items.
1960
+ *
1961
+ * **Note:** You must ensure that the **Facet** option is enabled for this field in your index (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
1962
+ *
1963
+ * @example `@author`
1964
+ */
1965
+ field: string;
1966
+ /**
1967
+ * Whether to exclude folded result parents when estimating the result count for each facet value.
1968
+ *
1969
+ * @default `true`
1970
+ */
1971
+ filterFacetCount?: boolean;
1972
+ /**
1973
+ * Whether the index should automatically create range values.
1974
+ *
1975
+ * **Tip:** If you set this parameter to `true`, you should ensure that the **Use cache for numeric queries** option is enabled for the Group By `field` in your index in order to speed up automatic range evaluation (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
1976
+ *
1977
+ * **Notes:**
1978
+ * - Setting `generateAutomaticRanges` to `true` only makes sense when the Group By `field` references a numeric or date field in the index.
1979
+ * - The index cannot automatically generate range values of a field generated by a query function. In such cases, you must rather use the `rangeValues` Group By parameter.
1980
+ * - Automatic range generation will fail if the referenced `field` is dynamically generated by a query function.
1981
+ *
1982
+ * @default `false`
1983
+ */
1984
+ generateAutomaticRanges?: boolean;
1985
+ /**
1986
+ * The maximum number of query result items to scan for Group By values.
1987
+ *
1988
+ * **Note:** Specifying a high `injectionDepth` value can negatively impact query performance.
1989
+ *
1990
+ * @default `1000`
1991
+ */
1992
+ injectionDepth?: number;
1993
+ /**
1994
+ * The maximum number of values the Group By operation should return.
1995
+ *
1996
+ * @default `10`
1997
+ */
1998
+ maximumNumberOfValues?: number;
1999
+ /**
2000
+ * The query expression that should override the basic query expression on which the Group By operation is being performed (see the `q` query parameter).
2001
+ *
2002
+ * **Note:** If *any* query override parameter (e.g., `queryOverride`, `advancedQueryOverride`, etc.) is set in a Group By operation, **all** original parts of the query expression (i.e., `q`, `aq`, `cq`, and `dq`) will be ignored.
2003
+ *
2004
+ * @example `Coveo Cloud V2 Platform`
2005
+ */
2006
+ queryOverride?: string;
2007
+ /**
2008
+ * The ranges for which to generate Group By values.
2009
+ *
2010
+ * **Notes:**
2011
+ * - Specifying `rangeValues` only makes sense when the Group By `field` references a numeric or date field in the index.
2012
+ * - You can set the `generateAutomaticRanges` Group By parameter to `true` rather than explicitly specifying `rangeValues` (unless the Group By `field` was generated by a query function).
2013
+ */
2014
+ rangeValues?: RestGroupByRangeValue[];
2015
+ /**
2016
+ * The criterion to use when sorting the Group By operation results.
2017
+ *
2018
+ * **Allowed values:**
2019
+ * - `score`: sort using the score value which is computed from the number of occurrences of a field value, as well as from the position where query result items having this field value appear in the ranked query result set. When using this sort criterion, a field value with 100 occurrences might appear after one with only 10 occurrences, if the occurrences of the latter field value tend to appear higher in the ranked query result set.
2020
+ * - `occurrences`: sort by number of occurrences, with field values having the highest number of occurrences appearing first.
2021
+ * - `alphaascending`/`alphadescending`: sort alphabetically on the field values.
2022
+ * - `computedfieldascending`/`computedfielddescending`: sort on the value of the first computed field for each Group By operation result (see the `ComputedFields` Group By parameter).
2023
+ * - `chisquare`: sort based on the relative frequency of field values in the query result set compared to their frequency in the entire index. This means that a field value that does not appear often in the index, but does appear often in the query result set will tend to appear higher.
2024
+ * - `nosort`: do not sort the results of the Group By operation. The field values will be appear in a random order.
2025
+ *
2026
+ * @default `score`
2027
+ */
2028
+ sortCriteria?: RestGroupBySortCriteria;
2029
+ }
2030
+ /**
2031
+ * A single item in the `currentValues` array of a `RestFacetRequest` whose type is set to `hierarchical` (see the `facets` query parameter).
2032
+ */
2033
+ export interface RestHierarchicalFacetValue {
2034
+ /**
2035
+ * The children of this hierarchical facet value.
2036
+ *
2037
+ * Each child is a full-fledged hierarchical facet value that may in turn have its own children and so forth, up to a maximum depth of 50 levels.
2038
+ */
2039
+ children?: RestHierarchicalFacetValue[];
2040
+ /**
2041
+ * Whether to prevent Coveo ML from automatically selecting the facet value.
2042
+ *
2043
+ * @default `false`
2044
+ */
2045
+ preventAutoSelect?: boolean;
2046
+ /**
2047
+ * Whether to retrieve the children of this hierarchical facet value. Can only be used on leaf values.
2048
+ */
2049
+ retrieveChildren?: boolean;
2050
+ /**
2051
+ * The maximum number of children to retrieve for this hierarchical facet value. Ignored if `retrieveChildren` is `false`.
2052
+ */
2053
+ retrieveCount?: number;
2054
+ /**
2055
+ * The current facet value state in the search interface.
2056
+ *
2057
+ * @default `idle`
2058
+ */
2059
+ state?: string;
2060
+ /**
2061
+ * The facet value name.
2062
+ *
2063
+ * **Note:** In the case of a hierarchical facet value, this represents a single path segment.
2064
+ *
2065
+ * @example `Alice Smith`
2066
+ */
2067
+ value?: string;
2068
+ }
2069
+ export interface RestQueryFunctionRequest {
2070
+ /**
2071
+ * The name of the dynamic, temporary field in which to store the query function expression output.
2072
+ *
2073
+ * **Note:** The `fieldName` value must not correspond to an existing field in the index.
2074
+ *
2075
+ * @example `numberoflikesplusone`
2076
+ */
2077
+ fieldName: string;
2078
+ /**
2079
+ * The mathematical expression whose output should be stored in a dynamic, temporary field.
2080
+ *
2081
+ * **Notes:**
2082
+ * - The `function` expression can be defined using the ExprTk library syntax, but control and loop structures (e.g., if-then-else, while loop, etc.) are **not** supported.
2083
+ * - If the `function` expression references a numeric field, enable the **Use cache for computed fields** option on that field to speed up evaluation (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
2084
+ *
2085
+ * @example `@numberoflikes+1`
2086
+ */
2087
+ function: string;
2088
+ }
2089
+ export interface RestRankingFunctionRequest {
2090
+ /**
2091
+ * A mathematical expression to evaluate for each query result. The result of this expression for a given query result generates a boost which is then added to the ranking score of that query result.
2092
+ *
2093
+ * **Note:** Query ranking function expressions support the [ExprTk](http://www.partow.net/programming/exprtk/index.html) library syntax. However, the following statements are disabled:
2094
+ * - `if`/`else`
2095
+ * - `switch`
2096
+ * - `while`
2097
+ * - `repeat until`
2098
+ *
2099
+ * The following time constants are also available in query ranking functions:
2100
+ *
2101
+ * - `NOW`: A value corresponding to the precise moment when the query reaches the index.
2102
+ * - `YEAR`: A value corresponding to the duration of a year (i.e., 365.25 days).
2103
+ * - `WEEK`: A value corresponding to the duration of a week.
2104
+ * - `DAY`: A value corresponding to the duration of a day.
2105
+ *
2106
+ * **Tip:** If your query ranking function expression references certain numeric fields, you should ensure that the **Use cache for computed fields** option is enabled for each of those fields in order to speed up evaluation (see [Add or Edit Fields](https://docs.coveo.com/en/1982/)).
2107
+ *
2108
+ * @example `-sqrt(dist(@longitude, @latitude, 46.8167, -71.2167))`
2109
+ */
2110
+ expression: string;
2111
+ /**
2112
+ * The maximum boost this query ranking function can add to the ranking score of any given query result.
2113
+ *
2114
+ * This property only has a meaning if `normalizeWeight` is set to `true`.
2115
+ *
2116
+ * @default `600`
2117
+ */
2118
+ modifier?: number;
2119
+ /**
2120
+ * Whether to normalize the ranking score boosts resulting from the evaluation of this query ranking function using the standard index scale.
2121
+ *
2122
+ * Unless you want to completely override the index ranking and use the results of this query ranking function directly to boost the ranking scores of query results, you should set this to `true`.
2123
+ *
2124
+ * @default `false`
2125
+ */
2126
+ normalizeWeight?: boolean;
2127
+ }
2128
+ /**
2129
+ * The options that can be passed with the query to retrieve user actions the results (see the `userActions` query parameter).
2130
+ */
2131
+ export interface RestUserActionsParameters {
2132
+ /**
2133
+ * The user ID or visitor ID to retrieve user actions for.
2134
+ *
2135
+ * @example `asmith@example.com`
2136
+ * @example `c7ab60e2-e6b8-41e8-be6a-ad5c8edc662e`
2137
+ */
2138
+ tagViewsOfUser?: string;
2139
+ }
2140
+ export {};