algoliasearch 5.0.0-alpha.110 → 5.0.0-alpha.112

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 (125) hide show
  1. package/dist/algoliasearch/builds/browser.d.ts +1 -1
  2. package/dist/algoliasearch/builds/node.d.ts +1 -1
  3. package/dist/algoliasearch.cjs +62 -62
  4. package/dist/algoliasearch.esm.browser.js +64 -67
  5. package/dist/algoliasearch.esm.node.js +62 -62
  6. package/dist/algoliasearch.umd.js +2 -2
  7. package/dist/client-abtesting/model/aBTest.d.ts +9 -24
  8. package/dist/client-abtesting/model/aBTest.d.ts.map +1 -1
  9. package/dist/client-abtesting/model/aBTestConfiguration.d.ts +12 -0
  10. package/dist/client-abtesting/model/aBTestConfiguration.d.ts.map +1 -0
  11. package/dist/client-abtesting/model/aBTestResponse.d.ts +2 -2
  12. package/dist/client-abtesting/model/abTestsVariant.d.ts +3 -3
  13. package/dist/client-abtesting/model/addABTestsRequest.d.ts +1 -1
  14. package/dist/client-abtesting/model/clientMethodProps.d.ts +5 -5
  15. package/dist/client-abtesting/model/customSearchParams.d.ts +1 -1
  16. package/dist/client-abtesting/model/effect.d.ts +5 -0
  17. package/dist/client-abtesting/model/effect.d.ts.map +1 -0
  18. package/dist/client-abtesting/model/emptySearch.d.ts +10 -0
  19. package/dist/client-abtesting/model/emptySearch.d.ts.map +1 -0
  20. package/dist/client-abtesting/model/index.d.ts +6 -0
  21. package/dist/client-abtesting/model/index.d.ts.map +1 -1
  22. package/dist/client-abtesting/model/listABTestsResponse.d.ts +1 -1
  23. package/dist/client-abtesting/model/minimumDetectableEffect.d.ts +12 -0
  24. package/dist/client-abtesting/model/minimumDetectableEffect.d.ts.map +1 -0
  25. package/dist/client-abtesting/model/outliers.d.ts +10 -0
  26. package/dist/client-abtesting/model/outliers.d.ts.map +1 -0
  27. package/dist/client-abtesting/model/status.d.ts +5 -0
  28. package/dist/client-abtesting/model/status.d.ts.map +1 -0
  29. package/dist/client-abtesting/model/variant.d.ts +13 -13
  30. package/dist/client-abtesting/src/abtestingClient.d.ts +11 -11
  31. package/dist/client-analytics/model/clientMethodProps.d.ts +38 -38
  32. package/dist/client-analytics/model/getStatusResponse.d.ts +1 -1
  33. package/dist/client-analytics/src/analyticsClient.d.ts +39 -39
  34. package/dist/client-personalization/model/clientMethodProps.d.ts +2 -2
  35. package/dist/client-personalization/model/deleteUserProfileResponse.d.ts +2 -2
  36. package/dist/client-personalization/model/eventScoring.d.ts +4 -6
  37. package/dist/client-personalization/model/eventScoring.d.ts.map +1 -1
  38. package/dist/client-personalization/model/eventType.d.ts +5 -0
  39. package/dist/client-personalization/model/eventType.d.ts.map +1 -0
  40. package/dist/client-personalization/model/facetScoring.d.ts +2 -2
  41. package/dist/client-personalization/model/getUserTokenResponse.d.ts +3 -3
  42. package/dist/client-personalization/model/index.d.ts +1 -0
  43. package/dist/client-personalization/model/index.d.ts.map +1 -1
  44. package/dist/client-personalization/model/personalizationStrategyParams.d.ts +3 -3
  45. package/dist/client-personalization/src/personalizationClient.d.ts +7 -7
  46. package/dist/client-search/model/addApiKeyResponse.d.ts +1 -1
  47. package/dist/client-search/model/baseGetApiKeyResponse.d.ts +1 -1
  48. package/dist/client-search/model/baseIndexSettings.d.ts +10 -10
  49. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts +5 -4
  50. package/dist/client-search/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  51. package/dist/client-search/model/clientMethodProps.d.ts +4 -4
  52. package/dist/client-search/model/createdAtResponse.d.ts +1 -1
  53. package/dist/client-search/model/deleteApiKeyResponse.d.ts +1 -1
  54. package/dist/client-search/model/deleteByParams.d.ts +2 -2
  55. package/dist/client-search/model/deleteSourceResponse.d.ts +1 -1
  56. package/dist/client-search/model/deletedAtResponse.d.ts +1 -1
  57. package/dist/client-search/model/exactOnSingleWordQuery.d.ts +1 -1
  58. package/dist/client-search/model/fetchedIndex.d.ts +1 -1
  59. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +10 -10
  60. package/dist/client-search/model/log.d.ts +1 -1
  61. package/dist/client-search/model/multipleBatchRequest.d.ts +1 -1
  62. package/dist/client-search/model/operationIndexParams.d.ts +1 -1
  63. package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -1
  64. package/dist/client-search/model/removeUserIdResponse.d.ts +1 -1
  65. package/dist/client-search/model/removeWordsIfNoResults.d.ts +1 -1
  66. package/dist/client-search/model/replaceSourceResponse.d.ts +1 -1
  67. package/dist/client-search/model/saveObjectResponse.d.ts +1 -1
  68. package/dist/client-search/model/saveSynonymResponse.d.ts +1 -1
  69. package/dist/client-search/model/searchForFacetsOptions.d.ts +1 -1
  70. package/dist/client-search/model/searchForHitsOptions.d.ts +1 -1
  71. package/dist/client-search/model/searchParamsObject.d.ts +3 -0
  72. package/dist/client-search/model/searchParamsObject.d.ts.map +1 -1
  73. package/dist/client-search/model/searchUserIdsResponse.d.ts +1 -1
  74. package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +1 -1
  75. package/dist/client-search/model/sortRemainingBy.d.ts +1 -1
  76. package/dist/client-search/model/updateApiKeyResponse.d.ts +1 -1
  77. package/dist/client-search/model/updatedAtResponse.d.ts +1 -1
  78. package/dist/client-search/model/updatedAtWithObjectIdResponse.d.ts +1 -1
  79. package/dist/client-search/model/updatedRuleResponse.d.ts +1 -1
  80. package/dist/client-search/model/userHit.d.ts +1 -1
  81. package/dist/client-search/model/userId.d.ts +1 -1
  82. package/dist/client-search/src/searchClient.d.ts +5 -5
  83. package/dist/lite/lite.cjs +1 -1
  84. package/dist/lite/lite.esm.browser.js +3 -6
  85. package/dist/lite/lite.esm.node.js +1 -1
  86. package/dist/lite/lite.umd.js +2 -2
  87. package/dist/lite/model/addApiKeyResponse.d.ts +1 -1
  88. package/dist/lite/model/baseGetApiKeyResponse.d.ts +1 -1
  89. package/dist/lite/model/baseIndexSettings.d.ts +10 -10
  90. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts +5 -4
  91. package/dist/lite/model/baseSearchParamsWithoutQuery.d.ts.map +1 -1
  92. package/dist/lite/model/deleteByParams.d.ts +2 -2
  93. package/dist/lite/model/exactOnSingleWordQuery.d.ts +1 -1
  94. package/dist/lite/model/fetchedIndex.d.ts +1 -1
  95. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +10 -10
  96. package/dist/lite/model/reRankingApplyFilter.d.ts +1 -1
  97. package/dist/lite/model/removeWordsIfNoResults.d.ts +1 -1
  98. package/dist/lite/model/searchForFacetsOptions.d.ts +1 -1
  99. package/dist/lite/model/searchForHitsOptions.d.ts +1 -1
  100. package/dist/lite/model/searchParamsObject.d.ts +3 -0
  101. package/dist/lite/model/searchParamsObject.d.ts.map +1 -1
  102. package/dist/lite/model/securedAPIKeyRestrictions.d.ts +1 -1
  103. package/dist/lite/model/sortRemainingBy.d.ts +1 -1
  104. package/dist/lite/model/updatedRuleResponse.d.ts +1 -1
  105. package/dist/lite/model/userId.d.ts +1 -1
  106. package/dist/lite/src/liteClient.d.ts +1 -1
  107. package/lite/model/addApiKeyResponse.ts +1 -1
  108. package/lite/model/baseGetApiKeyResponse.ts +1 -1
  109. package/lite/model/baseIndexSettings.ts +10 -10
  110. package/lite/model/baseSearchParamsWithoutQuery.ts +5 -4
  111. package/lite/model/deleteByParams.ts +2 -2
  112. package/lite/model/exactOnSingleWordQuery.ts +1 -1
  113. package/lite/model/fetchedIndex.ts +1 -1
  114. package/lite/model/indexSettingsAsSearchParams.ts +10 -10
  115. package/lite/model/reRankingApplyFilter.ts +1 -1
  116. package/lite/model/removeWordsIfNoResults.ts +1 -1
  117. package/lite/model/searchForFacetsOptions.ts +1 -1
  118. package/lite/model/searchForHitsOptions.ts +1 -1
  119. package/lite/model/searchParamsObject.ts +3 -0
  120. package/lite/model/securedAPIKeyRestrictions.ts +1 -1
  121. package/lite/model/sortRemainingBy.ts +1 -1
  122. package/lite/model/updatedRuleResponse.ts +1 -1
  123. package/lite/model/userId.ts +1 -1
  124. package/lite/src/liteClient.ts +1 -1
  125. package/package.json +12 -12
@@ -49,7 +49,7 @@ export type AddOrUpdateObjectProps = {
49
49
  */
50
50
  export type AssignUserIdProps = {
51
51
  /**
52
- * User ID to assign.
52
+ * Unique identifier of the user who makes the search request.
53
53
  */
54
54
  xAlgoliaUserID: string;
55
55
  assignUserIdParams: AssignUserIdParams;
@@ -69,7 +69,7 @@ export type BatchProps = {
69
69
  */
70
70
  export type BatchAssignUserIdsProps = {
71
71
  /**
72
- * User ID to assign.
72
+ * Unique identifier of the user who makes the search request.
73
73
  */
74
74
  xAlgoliaUserID: string;
75
75
  batchAssignUserIdsParams: BatchAssignUserIdsParams;
@@ -373,7 +373,7 @@ export type GetTaskProps = {
373
373
  */
374
374
  export type GetUserIdProps = {
375
375
  /**
376
- * User ID to assign.
376
+ * Unique identifier of the user who makes the search request.
377
377
  */
378
378
  userID: string;
379
379
  };
@@ -448,7 +448,7 @@ export type PartialUpdateObjectProps = {
448
448
  */
449
449
  export type RemoveUserIdProps = {
450
450
  /**
451
- * User ID to assign.
451
+ * Unique identifier of the user who makes the search request.
452
452
  */
453
453
  userID: string;
454
454
  };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export type CreatedAtResponse = {
5
5
  /**
6
- * Timestamp of creation in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
6
+ * Date and time when the object was created, in RFC 3339 format.
7
7
  */
8
8
  createdAt: string;
9
9
  };
@@ -1,6 +1,6 @@
1
1
  export type DeleteApiKeyResponse = {
2
2
  /**
3
- * Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
3
+ * Date and time when the object was deleted, in RFC 3339 format.
4
4
  */
5
5
  deletedAt: string;
6
6
  };
@@ -5,7 +5,7 @@ import type { TagFilters } from './tagFilters';
5
5
  export type DeleteByParams = {
6
6
  facetFilters?: FacetFilters;
7
7
  /**
8
- * Filter the search so that only records with matching values are included in the results. These filters are supported: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
8
+ * Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
9
9
  */
10
10
  filters?: string;
11
11
  numericFilters?: NumericFilters;
@@ -20,7 +20,7 @@ export type DeleteByParams = {
20
20
  */
21
21
  insideBoundingBox?: number[][];
22
22
  /**
23
- * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored, if you also specify `insideBoundingBox`.
23
+ * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored if you also specify `insideBoundingBox`.
24
24
  */
25
25
  insidePolygon?: number[][];
26
26
  };
@@ -1,6 +1,6 @@
1
1
  export type DeleteSourceResponse = {
2
2
  /**
3
- * Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
3
+ * Date and time when the object was deleted, in RFC 3339 format.
4
4
  */
5
5
  deletedAt: string;
6
6
  };
@@ -7,7 +7,7 @@ export type DeletedAtResponse = {
7
7
  */
8
8
  taskID: number;
9
9
  /**
10
- * Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
10
+ * Date and time when the object was deleted, in RFC 3339 format.
11
11
  */
12
12
  deletedAt: string;
13
13
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the search query has only one word. <dl> <dt><code>attribute</code></dt> <dd> The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". </dd> <dt><code>none</code></dt> <dd> The Exact ranking criterion is ignored on single-word searches. </dd> <dt><code>word</code></dt> <dd> The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. </dd> </dl> If `exactOnSingleWordQuery` is `word`, only exact matches will be highlighted, partial and prefix matches won\'t.
2
+ * Determines how the [Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes) is computed when the search query has only one word. - `attribute`. The Exact ranking criterion is 1 if the query word and attribute value are the same. For example, a search for \"road\" will match the value \"road\", but not \"road trip\". - `none`. The Exact ranking criterion is ignored on single-word searches. - `word`. The Exact ranking criterion is 1 if the query word is found in the attribute value. The query word must have at least 3 characters and must not be a stop word. Only exact matches will be highlighted, partial and prefix matches won\'t.
3
3
  */
4
4
  export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
5
5
  //# sourceMappingURL=exactOnSingleWordQuery.d.ts.map
@@ -8,7 +8,7 @@ export type FetchedIndex = {
8
8
  */
9
9
  createdAt: string;
10
10
  /**
11
- * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
11
+ * Date and time when the object was updated, in RFC 3339 format.
12
12
  */
13
13
  updatedAt: string;
14
14
  /**
@@ -14,15 +14,15 @@ import type { SupportedLanguage } from './supportedLanguage';
14
14
  import type { TypoTolerance } from './typoTolerance';
15
15
  export type IndexSettingsAsSearchParams = {
16
16
  /**
17
- * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
17
+ * Attributes to include in the API response. To reduce the size of your response, you can retrieve only some of the attributes. Attribute names are case-sensitive. - `*` retrieves all attributes, except attributes included in the `customRanking` and `unretrievableAttributes` settings. - To retrieve all attributes except a specific one, prefix the attribute with a dash and combine it with the `*`: `[\"*\", \"-ATTRIBUTE\"]`. - The `objectID` attribute is always included.
18
18
  */
19
19
  attributesToRetrieve?: string[];
20
20
  /**
21
- * Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
21
+ * Determines the order in which Algolia returns your results. By default, each entry corresponds to a [ranking criteria](https://www.algolia.com/doc/guides/managing-results/relevance-overview/in-depth/ranking-criteria/). The tie-breaking algorithm sequentially applies each criterion in the order they\'re specified. If you configure a replica index for [sorting by an attribute](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/sort-by-attribute/), you put the sorting attribute at the top of the list. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. Before you modify the default setting, you should test your changes in the dashboard, and by [A/B testing](https://www.algolia.com/doc/guides/ab-testing/what-is-ab-testing/).
22
22
  */
23
23
  ranking?: string[];
24
24
  /**
25
- * Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** <dl> <dt><code>asc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in ascending order.</dd> <dt><code>desc(\"ATTRIBUTE\")</code></dt> <dd>Sort the index by the values of an attribute, in descending order.</dd> </dl> If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
25
+ * Attributes to use as [custom ranking](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/). Attribute names are case-sensitive. The custom ranking attributes decide which items are shown first if the other ranking criteria are equal. Records with missing values for your selected custom ranking attributes are always sorted last. Boolean attributes are sorted based on their alphabetical order. **Modifiers** - `asc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in ascending order. - `desc(\"ATTRIBUTE\")`. Sort the index by the values of an attribute, in descending order. If you use two or more custom ranking attributes, [reduce the precision](https://www.algolia.com/doc/guides/managing-results/must-do/custom-ranking/how-to/controlling-custom-ranking-metrics-precision/) of your first attributes, or the other attributes will never be applied.
26
26
  */
27
27
  customRanking?: string[];
28
28
  /**
@@ -30,11 +30,11 @@ export type IndexSettingsAsSearchParams = {
30
30
  */
31
31
  relevancyStrictness?: number;
32
32
  /**
33
- * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
33
+ * Attributes to highlight. By default, all searchable attributes are highlighted. Use `*` to highlight all attributes or use an empty array `[]` to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined by `highlightPreTag` and `highlightPostTag`. You can use this to visually highlight matching parts of a search query in your UI. For more information, see [Highlighting and snippeting](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/highlighting-snippeting/js/).
34
34
  */
35
35
  attributesToHighlight?: string[];
36
36
  /**
37
- * Attributes for which to enable snippets. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
37
+ * Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: `ATTRIBUTE:NUMBER`, where `NUMBER` is the number of words to be extracted.
38
38
  */
39
39
  attributesToSnippet?: string[];
40
40
  /**
@@ -71,7 +71,7 @@ export type IndexSettingsAsSearchParams = {
71
71
  */
72
72
  allowTyposOnNumericTokens?: boolean;
73
73
  /**
74
- * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
74
+ * Attributes for which you want to turn off [typo tolerance](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/). Attribute names are case-sensitive. Returning only exact matches can help when: - [Searching in hyphenated attributes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/typo-tolerance/how-to/how-to-search-in-hyphenated-attributes/). - Reducing the number of matches when you have too many. This can happen with attributes that are long blocks of text, such as product descriptions. Consider alternatives such as `disableTypoToleranceOnWords` or adding synonyms if your attributes have intentional unusual spellings that might look like typos.
75
75
  */
76
76
  disableTypoToleranceOnAttributes?: string[];
77
77
  ignorePlurals?: IgnorePlurals;
@@ -109,16 +109,16 @@ export type IndexSettingsAsSearchParams = {
109
109
  */
110
110
  optionalWords?: string[];
111
111
  /**
112
- * Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
112
+ * Searchable attributes for which you want to [turn off the Exact ranking criterion](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/override-search-engine-defaults/in-depth/adjust-exact-settings/#turn-off-exact-for-some-attributes). Attribute names are case-sensitive. This can be useful for attributes with long values, where the likelyhood of an exact match is high, such as product descriptions. Turning off the Exact ranking criterion for these attributes favors exact matching on other attributes. This reduces the impact of individual attributes with a lot of content on ranking.
113
113
  */
114
114
  disableExactOnAttributes?: string[];
115
115
  exactOnSingleWordQuery?: ExactOnSingleWordQuery;
116
116
  /**
117
- * Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. <dl> <dt><code>ignorePlurals</code></dt> <dd> Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. </dd> <dt><code>singleWordSynonym</code></dt> <dd> Single-word synonyms, such as \"NY/NYC\" are considered exact matches. </dd> <dt><code>multiWordsSynonym</code></dt> <dd> Multi-word synonyms, such as \"NY/New York\" are considered exact matches. </dd> </dl>.
117
+ * Alternatives of query words that should be considered as exact matches by the Exact ranking criterion. - `ignorePlurals`. Plurals and similar declensions added by the `ignorePlurals` setting are considered exact matches. - `singleWordSynonym`. Single-word synonyms, such as \"NY/NYC\" are considered exact matches. - `multiWordsSynonym`. Multi-word synonyms, such as \"NY/New York\" are considered exact matches.
118
118
  */
119
119
  alternativesAsExact?: AlternativesAsExact[];
120
120
  /**
121
- * Advanced search syntax features you want to support. <dl> <dt><code>exactPhrase</code></dt> <dd> Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". </dd> <dt><code>excludeWords</code></dt> <dd> Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". </dd> </dl> This setting only has an effect if `advancedSyntax` is true.
121
+ * Advanced search syntax features you want to support. - `exactPhrase`. Phrases in quotes must match exactly. For example, `sparkly blue \"iPhone case\"` only returns records with the exact string \"iPhone case\". - `excludeWords`. Query words prefixed with a `-` must not occur in a record. For example, `search -engine` matches records that contain \"search\" but not \"engine\". This setting only has an effect if `advancedSyntax` is true.
122
122
  */
123
123
  advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
124
124
  distinct?: Distinct;
@@ -143,7 +143,7 @@ export type IndexSettingsAsSearchParams = {
143
143
  */
144
144
  maxValuesPerFacet?: number;
145
145
  /**
146
- * Order in which to retrieve facet values. <dl> <dt><code>count</code></dt> <dd> Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. </dd> <dt><code>alpha</code></dt> <dd>Retrieve facet values alphabetically.</dd> </dl> This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
146
+ * Order in which to retrieve facet values. - `count`. Facet values are retrieved by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Retrieve facet values alphabetically. This setting doesn\'t influence how facet values are displayed in your UI (see `renderingContent`). For more information, see [facet value display](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/facet-display/js/).
147
147
  */
148
148
  sortFacetValuesBy?: string;
149
149
  /**
@@ -1,7 +1,7 @@
1
1
  import type { LogQuery } from './logQuery';
2
2
  export type Log = {
3
3
  /**
4
- * Timestamp of the API request in ISO 8601 format.
4
+ * Date and time of the API request, in RFC 3339 format.
5
5
  */
6
6
  timestamp: string;
7
7
  /**
@@ -6,7 +6,7 @@ export type MultipleBatchRequest = {
6
6
  */
7
7
  body: Record<string, any>;
8
8
  /**
9
- * Index to target for this operation.
9
+ * Index name (case-sensitive).
10
10
  */
11
11
  indexName: string;
12
12
  };
@@ -3,7 +3,7 @@ import type { ScopeType } from './scopeType';
3
3
  export type OperationIndexParams = {
4
4
  operation: OperationType;
5
5
  /**
6
- * Index name.
6
+ * Index name (case-sensitive).
7
7
  */
8
8
  destination: string;
9
9
  /**
@@ -1,6 +1,6 @@
1
1
  import type { MixedSearchFilters } from './mixedSearchFilters';
2
2
  /**
3
- * Restrict [Dynamic Re-ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) to records that match these filters.
3
+ * Restrict [Dynamic Re-Ranking](https://www.algolia.com/doc/guides/algolia-ai/re-ranking/) to records that match these filters.
4
4
  */
5
5
  export type ReRankingApplyFilter = MixedSearchFilters[] | string;
6
6
  //# sourceMappingURL=reRankingApplyFilter.d.ts.map
@@ -1,6 +1,6 @@
1
1
  export type RemoveUserIdResponse = {
2
2
  /**
3
- * Timestamp of deletion in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
3
+ * Date and time when the object was deleted, in RFC 3339 format.
4
4
  */
5
5
  deletedAt: string;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Strategy for removing words from the query when it doesn\'t return any results. This helps to avoid returning empty search results. <dl> <dt><code>none</code></dt> <dd>No words are removed when a query doesn\'t return results.</dd> <dt><code>lastWords</code></dt> <dd>Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed.</dd> <dt><code>firstWords</code></dt> <dd>Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed.</dd> <dt><code>allOptional</code></dt> <dd>Treat all words as optional.</dd> </dl> For more information, see [Remove words to improve results](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/).
2
+ * Strategy for removing words from the query when it doesn\'t return any results. This helps to avoid returning empty search results. - `none`. No words are removed when a query doesn\'t return results. - `lastWords`. Treat the last (then second to last, then third to last) word as optional, until there are results or at most 5 words have been removed. - `firstWords`. Treat the first (then second, then third) word as optional, until there are results or at most 5 words have been removed. - `allOptional`. Treat all words as optional. For more information, see [Remove words to improve results](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/empty-or-insufficient-results/in-depth/why-use-remove-words-if-no-results/).
3
3
  */
4
4
  export type RemoveWordsIfNoResults = 'allOptional' | 'firstWords' | 'lastWords' | 'none';
5
5
  //# sourceMappingURL=removeWordsIfNoResults.d.ts.map
@@ -1,6 +1,6 @@
1
1
  export type ReplaceSourceResponse = {
2
2
  /**
3
- * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
3
+ * Date and time when the object was updated, in RFC 3339 format.
4
4
  */
5
5
  updatedAt: string;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  export type SaveObjectResponse = {
2
2
  /**
3
- * Timestamp when the record was added, in ISO 8601 format.
3
+ * Date and time when the object was created, in RFC 3339 format.
4
4
  */
5
5
  createdAt: string;
6
6
  /**
@@ -4,7 +4,7 @@ export type SaveSynonymResponse = {
4
4
  */
5
5
  taskID: number;
6
6
  /**
7
- * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
7
+ * Date and time when the object was updated, in RFC 3339 format.
8
8
  */
9
9
  updatedAt: string;
10
10
  /**
@@ -5,7 +5,7 @@ export type SearchForFacetsOptions = {
5
5
  */
6
6
  facet: string;
7
7
  /**
8
- * Index name.
8
+ * Index name (case-sensitive).
9
9
  */
10
10
  indexName: string;
11
11
  /**
@@ -1,7 +1,7 @@
1
1
  import type { SearchTypeDefault } from './searchTypeDefault';
2
2
  export type SearchForHitsOptions = {
3
3
  /**
4
- * Index name.
4
+ * Index name (case-sensitive).
5
5
  */
6
6
  indexName: string;
7
7
  type?: SearchTypeDefault;
@@ -1,4 +1,7 @@
1
1
  import type { BaseSearchParams } from './baseSearchParams';
2
2
  import type { IndexSettingsAsSearchParams } from './indexSettingsAsSearchParams';
3
+ /**
4
+ * Each parameter value, including the `query` must not be larger than 512 bytes.
5
+ */
3
6
  export type SearchParamsObject = BaseSearchParams & IndexSettingsAsSearchParams;
4
7
  //# sourceMappingURL=searchParamsObject.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchParamsObject.d.ts","sourceRoot":"","sources":["../../../../client-search/model/searchParamsObject.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,2BAA2B,CAAC"}
1
+ {"version":3,"file":"searchParamsObject.d.ts","sourceRoot":"","sources":["../../../../client-search/model/searchParamsObject.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG,2BAA2B,CAAC"}
@@ -20,7 +20,7 @@ export type SearchUserIdsResponse = {
20
20
  */
21
21
  hitsPerPage: number;
22
22
  /**
23
- * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
23
+ * Date and time when the object was updated, in RFC 3339 format.
24
24
  */
25
25
  updatedAt: string;
26
26
  };
@@ -6,7 +6,7 @@ export type SecuredAPIKeyRestrictions = {
6
6
  */
7
7
  filters?: string;
8
8
  /**
9
- * Timestamp in [Unix epoch time](https://en.wikipedia.org/wiki/Unix_time) when the API key should expire.
9
+ * Timestamp when the secured API key expires, measured in seconds since the Unix epoch.
10
10
  */
11
11
  validUntil?: number;
12
12
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Order of facet values that aren\'t explicitly positioned with the `order` setting. <dl> <dt><code>count</code></dt> <dd> Order remaining facet values by decreasing count. The count is the number of matching records containing this facet value. </dd> <dt><code>alpha</code></dt> <dd>Sort facet values alphabetically.</dd> <dt><code>hidden</code></dt> <dd>Don\'t show facet values that aren\'t explicitly positioned.</dd> </dl>.
2
+ * Order of facet values that aren\'t explicitly positioned with the `order` setting. - `count`. Order remaining facet values by decreasing count. The count is the number of matching records containing this facet value. - `alpha`. Sort facet values alphabetically. - `hidden`. Don\'t show facet values that aren\'t explicitly positioned.
3
3
  */
4
4
  export type SortRemainingBy = 'alpha' | 'count' | 'hidden';
5
5
  //# sourceMappingURL=sortRemainingBy.d.ts.map
@@ -4,7 +4,7 @@ export type UpdateApiKeyResponse = {
4
4
  */
5
5
  key: string;
6
6
  /**
7
- * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
7
+ * Date and time when the object was updated, in RFC 3339 format.
8
8
  */
9
9
  updatedAt: string;
10
10
  };
@@ -7,7 +7,7 @@ export type UpdatedAtResponse = {
7
7
  */
8
8
  taskID: number;
9
9
  /**
10
- * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
10
+ * Date and time when the object was updated, in RFC 3339 format.
11
11
  */
12
12
  updatedAt: string;
13
13
  };
@@ -7,7 +7,7 @@ export type UpdatedAtWithObjectIdResponse = {
7
7
  */
8
8
  taskID?: number;
9
9
  /**
10
- * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
10
+ * Date and time when the object was updated, in RFC 3339 format.
11
11
  */
12
12
  updatedAt?: string;
13
13
  /**
@@ -4,7 +4,7 @@ export type UpdatedRuleResponse = {
4
4
  */
5
5
  objectID: string;
6
6
  /**
7
- * Timestamp of the last update in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
7
+ * Date and time when the object was updated, in RFC 3339 format.
8
8
  */
9
9
  updatedAt: string;
10
10
  /**
@@ -1,7 +1,7 @@
1
1
  import type { UserHighlightResult } from './userHighlightResult';
2
2
  export type UserHit = {
3
3
  /**
4
- * User ID.
4
+ * Unique identifier of the user who makes the search request.
5
5
  */
6
6
  userID: string;
7
7
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export type UserId = {
5
5
  /**
6
- * User ID.
6
+ * Unique identifier of the user who makes the search request.
7
7
  */
8
8
  userID: string;
9
9
  /**
@@ -46,7 +46,7 @@ import type { UpdatedAtResponse } from '../model/updatedAtResponse';
46
46
  import type { UpdatedAtWithObjectIdResponse } from '../model/updatedAtWithObjectIdResponse';
47
47
  import type { UpdatedRuleResponse } from '../model/updatedRuleResponse';
48
48
  import type { UserId } from '../model/userId';
49
- export declare const apiClientVersion = "5.0.0-alpha.110";
49
+ export declare const apiClientVersion = "5.0.0-alpha.112";
50
50
  export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
51
51
  transporter: import("@algolia/client-common").Transporter;
52
52
  /**
@@ -215,7 +215,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
215
215
  * - admin.
216
216
  *
217
217
  * @param assignUserId - The assignUserId object.
218
- * @param assignUserId.xAlgoliaUserID - User ID to assign.
218
+ * @param assignUserId.xAlgoliaUserID - Unique identifier of the user who makes the search request.
219
219
  * @param assignUserId.assignUserIdParams - The assignUserIdParams object.
220
220
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
221
221
  */
@@ -236,7 +236,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
236
236
  * - admin.
237
237
  *
238
238
  * @param batchAssignUserIds - The batchAssignUserIds object.
239
- * @param batchAssignUserIds.xAlgoliaUserID - User ID to assign.
239
+ * @param batchAssignUserIds.xAlgoliaUserID - Unique identifier of the user who makes the search request.
240
240
  * @param batchAssignUserIds.batchAssignUserIdsParams - The batchAssignUserIdsParams object.
241
241
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
242
242
  */
@@ -556,7 +556,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
556
556
  * - admin.
557
557
  *
558
558
  * @param getUserId - The getUserId object.
559
- * @param getUserId.userID - User ID to assign.
559
+ * @param getUserId.userID - Unique identifier of the user who makes the search request.
560
560
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
561
561
  */
562
562
  getUserId({ userID }: GetUserIdProps, requestOptions?: RequestOptions): Promise<UserId>;
@@ -653,7 +653,7 @@ export declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyO
653
653
  * - admin.
654
654
  *
655
655
  * @param removeUserId - The removeUserId object.
656
- * @param removeUserId.userID - User ID to assign.
656
+ * @param removeUserId.userID - Unique identifier of the user who makes the search request.
657
657
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
658
658
  */
659
659
  removeUserId({ userID }: RemoveUserIdProps, requestOptions?: RequestOptions): Promise<RemoveUserIdResponse>;
@@ -4,7 +4,7 @@ var clientCommon = require('@algolia/client-common');
4
4
  var requesterNodeHttp = require('@algolia/requester-node-http');
5
5
 
6
6
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
7
- const apiClientVersion = '5.0.0-alpha.110';
7
+ const apiClientVersion = '5.0.0-alpha.112';
8
8
  function getDefaultHosts(appId) {
9
9
  return [
10
10
  {
@@ -460,16 +460,13 @@ function createTransporter({
460
460
  if (host === undefined) {
461
461
  throw new RetryError(stackTraceWithoutCredentials(stackTrace));
462
462
  }
463
- let responseTimeout = requestOptions.timeout;
464
- if (responseTimeout === undefined) {
465
- responseTimeout = isRead ? timeouts.read : timeouts.write;
466
- }
463
+ let responseTimeout = isRead ? requestOptions.timeouts?.read || timeouts.read : requestOptions.timeouts?.write || timeouts.write;
467
464
  const payload = {
468
465
  data,
469
466
  headers,
470
467
  method: request.method,
471
468
  url: serializeUrl(host, request.path, queryParameters),
472
- connectTimeout: getTimeout(timeoutsCount, timeouts.connect),
469
+ connectTimeout: getTimeout(timeoutsCount, requestOptions.timeouts?.connect || timeouts.connect),
473
470
  responseTimeout: getTimeout(timeoutsCount, responseTimeout)
474
471
  };
475
472
  /**
@@ -697,7 +694,7 @@ function createXhrRequester() {
697
694
  }
698
695
 
699
696
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
700
- const apiClientVersion = '5.0.0-alpha.110';
697
+ const apiClientVersion = '5.0.0-alpha.112';
701
698
  function getDefaultHosts(appId) {
702
699
  return [
703
700
  {
@@ -2,7 +2,7 @@ import { createAuth, createTransporter, getAlgoliaAgent, shuffle, DEFAULT_CONNEC
2
2
  import { createHttpRequester } from '@algolia/requester-node-http';
3
3
 
4
4
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
5
- const apiClientVersion = '5.0.0-alpha.110';
5
+ const apiClientVersion = '5.0.0-alpha.112';
6
6
  function getDefaultHosts(appId) {
7
7
  return [
8
8
  {
@@ -1,2 +1,2 @@
1
- /*! algoliasearch/lite.umd.js | 5.0.0-alpha.110 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["algoliasearch/lite"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}function o(e){s().setItem(r,JSON.stringify(e))}return{get:(t,r,s={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=a(),s=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(o(s),!t)return;o(Object.fromEntries(Object.entries(s).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),a()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||s.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const o=a();return o[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},s().setItem(r,JSON.stringify(o)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,o={miss:()=>Promise.resolve()})=>s.get(e,a,o).catch((()=>r({caches:t}).get(e,a,o))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);const n=s();return n.then((e=>a.miss(e))).then((()=>n))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function o(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function n(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function i(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class c extends Error{constructor(e,t){super(e),i(this,"name","AlgoliaError"),t&&(this.name=t)}}class u extends c{constructor(e,t,r){super(e,r),i(this,"stackTrace",void 0),this.stackTrace=t}}class l extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.",e,"RetryError")}}class m extends u{constructor(e,t,r,s="ApiError"){super(e,r,s),i(this,"status",void 0),this.status=t}}class d extends c{constructor(e,t){super(e,"DeserializationError"),i(this,"response",void 0),this.response=t}}class h extends m{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),i(this,"error",void 0),this.error=r}}function p(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r]).replaceAll("+","%20")}`)).join("&")}(r);let a=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return s.length&&(a+=`?${s}`),a}function f(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function g({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:n,requester:i,requestsCache:c,responsesCache:u}){async function g(c,u,g=!0){const y=[],v=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(c,u),P=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,c.headers,u.headers),b="GET"===c.method?{...c.data,...u.data}:{},w={...s,...c.queryParameters,...b};if(a.value&&(w["x-algolia-agent"]=a.value),u&&u.queryParameters)for(const e of Object.keys(u.queryParameters))u.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(u.queryParameters[e])?w[e]=u.queryParameters[e].toString():w[e]=u.queryParameters[e];let O=0;const T=async(e,r)=>{const s=e.pop();if(void 0===s)throw new l(function(e){return e.map((e=>f(e)))}(y));let a=u.timeout;void 0===a&&(a=g?n.read:n.write);const b={data:v,headers:P,method:c.method,url:p(s,c.path,w),connectTimeout:r(O,n.connect),responseTimeout:r(O,a)},q=t=>{const r={request:b,response:t,host:s,triesLeft:e.length};return y.push(r),r},S=await i.send(b);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(S)){const a=q(S);return S.isTimedOut&&O++,console.log("Retryable failure",f(a)),await t.set(s,o(s,S.isTimedOut?"timed out":"down")),T(e,r)}if(function({status:e}){return 2==~~(e/100)}(S))return function(e){try{return JSON.parse(e.content)}catch(t){throw new d(t.message,e)}}(S);throw q(S),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new h(s.message,t,s.error,r):new m(s.message,t,r)}catch(e){}return new m(e,t,r)}(S,y)},q=e.filter((e=>"readWrite"===e.accept||(g?"read"===e.accept:"write"===e.accept))),S=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(o(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),n=[...s,...a];return{hosts:n.length>0?n:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(q);return T([...S.hosts].reverse(),S.getTimeout)}return{hostsCache:t,requester:i,timeouts:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return g(e,t,a);const o=()=>g(e,t);if(!0!==(t.cacheable||e.cacheable))return o();const n={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return u.get(n,(()=>c.get(n,(()=>c.set(n,o()).then((e=>Promise.all([c.delete(n),e])),(e=>Promise.all([c.delete(n),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>u.set(n,e)})},requestsCache:c,responsesCache:u}}function y({algoliaAgents:e,client:t,version:r}){const s=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>s.add(e))),s}const v="5.0.0-alpha.110";function P(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){const t=e;for(let r=e.length-1;r>0;r--){const s=Math.floor(Math.random()*(r+1)),a=e[r];t[r]=e[s],t[s]=a}return t}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}e.apiClientVersion=v,e.liteClient=function(e,a,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,...a}){const o=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),n=g({hosts:P(e),...a,algoliaAgent:y({algoliaAgents:s,client:"Lite",version:v}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.baseQueryParameters}});return{transporter:n,appId:e,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then((()=>{})),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},customPost({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(a,s)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map((({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0}))};e=t}if(!e)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)}}}({appId:e,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let o;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===o&&(clearTimeout(a),o=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(o),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(o),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${v}-${e}`}),s()]}),...o})}}));
1
+ /*! algoliasearch/lite.umd.js | 5.0.0-alpha.112 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["algoliasearch/lite"]={})}(this,(function(e){"use strict";function t(e){let t;const r=`algolia-client-js-${e.key}`;function s(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function a(){return JSON.parse(s().getItem(r)||"{}")}function o(e){s().setItem(r,JSON.stringify(e))}return{get:(t,r,s={miss:()=>Promise.resolve()})=>Promise.resolve().then((()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,r=a(),s=Object.fromEntries(Object.entries(r).filter((([,e])=>void 0!==e.timestamp)));if(o(s),!t)return;o(Object.fromEntries(Object.entries(s).filter((([,e])=>{const r=(new Date).getTime();return!(e.timestamp+t<r)}))))}(),a()[JSON.stringify(t)]))).then((e=>Promise.all([e?e.value:r(),void 0!==e]))).then((([e,t])=>Promise.all([e,t||s.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve().then((()=>{const o=a();return o[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},s().setItem(r,JSON.stringify(o)),t})),delete:e=>Promise.resolve().then((()=>{const t=a();delete t[JSON.stringify(e)],s().setItem(r,JSON.stringify(t))})),clear:()=>Promise.resolve().then((()=>{s().removeItem(r)}))}}function r(e){const t=[...e.caches],s=t.shift();return void 0===s?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e)),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,a,o={miss:()=>Promise.resolve()})=>s.get(e,a,o).catch((()=>r({caches:t}).get(e,a,o))),set:(e,a)=>s.set(e,a).catch((()=>r({caches:t}).set(e,a))),delete:e=>s.delete(e).catch((()=>r({caches:t}).delete(e))),clear:()=>s.clear().catch((()=>r({caches:t}).clear()))}}function s(e={serializable:!0}){let t={};return{get(r,s,a={miss:()=>Promise.resolve()}){const o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);const n=s();return n.then((e=>a.miss(e))).then((()=>n))},set:(r,s)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}const a=12e4;function o(e,t="up"){const r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>a},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=a}}}function n(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function i(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class c extends Error{constructor(e,t){super(e),i(this,"name","AlgoliaError"),t&&(this.name=t)}}class u extends c{constructor(e,t,r){super(e,r),i(this,"stackTrace",void 0),this.stackTrace=t}}class l extends u{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please create a ticket at https://support.algolia.com/ sharing steps we can use to reproduce the issue.",e,"RetryError")}}class m extends u{constructor(e,t,r,s="ApiError"){super(e,r,s),i(this,"status",void 0),this.status=t}}class d extends c{constructor(e,t){super(e,"DeserializationError"),i(this,"response",void 0),this.response=t}}class h extends m{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),i(this,"error",void 0),this.error=r}}function p(e,t,r){const s=function(e){const t=e=>"[object Object]"===Object.prototype.toString.call(e)||"[object Array]"===Object.prototype.toString.call(e);return Object.keys(e).map((r=>`${r}=${encodeURIComponent(t(e[r])?JSON.stringify(e[r]):e[r]).replaceAll("+","%20")}`)).join("&")}(r);let a=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return s.length&&(a+=`?${s}`),a}function f(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}function g({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:n,requester:i,requestsCache:c,responsesCache:u}){async function g(c,u,g=!0){const y=[],v=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(c,u),P=function(e,t,r){const s={Accept:"application/json",...e,...t,...r},a={};return Object.keys(s).forEach((e=>{const t=s[e];a[e.toLowerCase()]=t})),a}(r,c.headers,u.headers),b="GET"===c.method?{...c.data,...u.data}:{},w={...s,...c.queryParameters,...b};if(a.value&&(w["x-algolia-agent"]=a.value),u&&u.queryParameters)for(const e of Object.keys(u.queryParameters))u.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(u.queryParameters[e])?w[e]=u.queryParameters[e].toString():w[e]=u.queryParameters[e];let O=0;const T=async(e,r)=>{const s=e.pop();if(void 0===s)throw new l(function(e){return e.map((e=>f(e)))}(y));let a=g?u.timeouts?.read||n.read:u.timeouts?.write||n.write;const b={data:v,headers:P,method:c.method,url:p(s,c.path,w),connectTimeout:r(O,u.timeouts?.connect||n.connect),responseTimeout:r(O,a)},q=t=>{const r={request:b,response:t,host:s,triesLeft:e.length};return y.push(r),r},S=await i.send(b);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&!~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(S)){const a=q(S);return S.isTimedOut&&O++,console.log("Retryable failure",f(a)),await t.set(s,o(s,S.isTimedOut?"timed out":"down")),T(e,r)}if(function({status:e}){return 2==~~(e/100)}(S))return function(e){try{return JSON.parse(e.content)}catch(t){throw new d(t.message,e)}}(S);throw q(S),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new h(s.message,t,s.error,r):new m(s.message,t,r)}catch(e){}return new m(e,t,r)}(S,y)},q=e.filter((e=>"readWrite"===e.accept||(g?"read"===e.accept:"write"===e.accept))),S=await async function(e){const r=await Promise.all(e.map((e=>t.get(e,(()=>Promise.resolve(o(e))))))),s=r.filter((e=>e.isUp())),a=r.filter((e=>e.isTimedOut())),n=[...s,...a];return{hosts:n.length>0?n:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}(q);return T([...S.hosts].reverse(),S.getTimeout)}return{hostsCache:t,requester:i,timeouts:n,algoliaAgent:a,baseHeaders:r,baseQueryParameters:s,hosts:e,request:function(e,t={}){const a=e.useReadTransporter||"GET"===e.method;if(!a)return g(e,t,a);const o=()=>g(e,t);if(!0!==(t.cacheable||e.cacheable))return o();const n={request:e,requestOptions:t,transporter:{queryParameters:s,headers:r}};return u.get(n,(()=>c.get(n,(()=>c.set(n,o()).then((e=>Promise.all([c.delete(n),e])),(e=>Promise.all([c.delete(n),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>u.set(n,e)})},requestsCache:c,responsesCache:u}}function y({algoliaAgents:e,client:t,version:r}){const s=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}(r).add({segment:t,version:r});return e.forEach((e=>s.add(e))),s}const v="5.0.0-alpha.112";function P(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){const t=e;for(let r=e.length-1;r>0;r--){const s=Math.floor(Math.random()*(r+1)),a=e[r];t[r]=e[s],t[s]=a}return t}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}e.apiClientVersion=v,e.liteClient=function(e,a,o){if(!e||"string"!=typeof e)throw new Error("`appId` is missing.");if(!a||"string"!=typeof a)throw new Error("`apiKey` is missing.");return function({appId:e,apiKey:t,authMode:r,algoliaAgents:s,...a}){const o=function(e,t,r="WithinHeaders"){const s={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?s:{},queryParameters:()=>"WithinQueryParameters"===r?s:{}}}(e,t,r),n=g({hosts:P(e),...a,algoliaAgent:y({algoliaAgents:s,client:"Lite",version:v}),baseHeaders:{"content-type":"text/plain",...o.headers(),...a.baseHeaders},baseQueryParameters:{...o.queryParameters(),...a.baseQueryParameters}});return{transporter:n,appId:e,clearCache:()=>Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then((()=>{})),get _ua(){return n.algoliaAgent.value},addAlgoliaAgent(e,t){n.algoliaAgent.add({segment:e,version:t})},customPost({path:e,parameters:t,body:r},s){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const a={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:r||{}};return n.request(a,s)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map((({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0}))};e=t}if(!e)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)}}}({appId:e,apiKey:a,timeouts:{connect:1e3,read:2e3,write:3e4},requester:{send:function(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const s=(e,s)=>setTimeout((()=>{r.abort(),t({status:0,content:s,isTimedOut:!0})}),e),a=s(e.connectTimeout,"Connection timeout");let o;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===o&&(clearTimeout(a),o=s(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(a),clearTimeout(o),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(a),clearTimeout(o),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:r({caches:[t({key:`${v}-${e}`}),s()]}),...o})}}));
@@ -4,7 +4,7 @@ export type AddApiKeyResponse = {
4
4
  */
5
5
  key: string;
6
6
  /**
7
- * Timestamp of creation in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format.
7
+ * Date and time when the object was created, in RFC 3339 format.
8
8
  */
9
9
  createdAt: string;
10
10
  };
@@ -4,7 +4,7 @@ export type BaseGetApiKeyResponse = {
4
4
  */
5
5
  value?: string;
6
6
  /**
7
- * Timestamp of creation in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time).
7
+ * Timestamp when the object was created, in milliseconds since the Unix epoch.
8
8
  */
9
9
  createdAt: number;
10
10
  };