algoliasearch 5.0.0-beta.11 → 5.0.0-beta.13

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 (117) hide show
  1. package/builds/models.ts +4 -4
  2. package/dist/algoliasearch/builds/browser.d.ts +3 -3
  3. package/dist/algoliasearch/builds/models.d.ts +2 -2
  4. package/dist/algoliasearch/builds/models.d.ts.map +1 -1
  5. package/dist/algoliasearch/builds/node.d.ts +3 -3
  6. package/dist/algoliasearch.cjs +5 -5
  7. package/dist/algoliasearch.esm.browser.js +5 -5
  8. package/dist/algoliasearch.esm.node.js +5 -5
  9. package/dist/algoliasearch.umd.js +2 -2
  10. package/dist/client-abtesting/model/{filterEffectsEmptySearch.d.ts → emptySearchFilter.d.ts} +2 -2
  11. package/dist/client-abtesting/model/emptySearchFilter.d.ts.map +1 -0
  12. package/dist/client-abtesting/model/filterEffects.d.ts +4 -4
  13. package/dist/client-abtesting/model/filterEffects.d.ts.map +1 -1
  14. package/dist/client-abtesting/model/index.d.ts +2 -2
  15. package/dist/client-abtesting/model/index.d.ts.map +1 -1
  16. package/dist/client-abtesting/model/{filterEffectsOutliers.d.ts → outliersFilter.d.ts} +2 -2
  17. package/dist/client-abtesting/model/outliersFilter.d.ts.map +1 -0
  18. package/dist/client-abtesting/src/abtestingClient.d.ts +1 -1
  19. package/dist/client-analytics/model/{clickPositionsInner.d.ts → clickPosition.d.ts} +2 -2
  20. package/dist/client-analytics/model/clickPosition.d.ts.map +1 -0
  21. package/dist/client-analytics/model/getClickPositionsResponse.d.ts +2 -2
  22. package/dist/client-analytics/model/getClickPositionsResponse.d.ts.map +1 -1
  23. package/dist/client-analytics/model/index.d.ts +1 -1
  24. package/dist/client-analytics/model/index.d.ts.map +1 -1
  25. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts +2 -2
  26. package/dist/client-analytics/model/topSearchWithAnalytics.d.ts.map +1 -1
  27. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts +2 -2
  28. package/dist/client-analytics/model/topSearchWithRevenueAnalytics.d.ts.map +1 -1
  29. package/dist/client-analytics/src/analyticsClient.d.ts +1 -1
  30. package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
  31. package/dist/client-search/model/aroundPrecision.d.ts +2 -2
  32. package/dist/client-search/model/aroundPrecision.d.ts.map +1 -1
  33. package/dist/client-search/model/baseIndexSettings.d.ts +1 -1
  34. package/dist/client-search/model/builtInOperation.d.ts +2 -4
  35. package/dist/client-search/model/builtInOperation.d.ts.map +1 -1
  36. package/dist/client-search/model/builtInOperationValue.d.ts +2 -0
  37. package/dist/client-search/model/builtInOperationValue.d.ts.map +1 -0
  38. package/dist/client-search/model/dictionaryEntry.d.ts +1 -1
  39. package/dist/client-search/model/dictionaryEntry.d.ts.map +1 -1
  40. package/dist/client-search/model/index.d.ts +5 -2
  41. package/dist/client-search/model/index.d.ts.map +1 -1
  42. package/dist/client-search/model/indexSettingsAsSearchParams.d.ts +1 -1
  43. package/dist/{recommend/model/aroundPrecisionFromValueInner.d.ts → client-search/model/range.d.ts} +2 -2
  44. package/dist/client-search/model/range.d.ts.map +1 -0
  45. package/dist/client-search/model/redirectRuleIndexData.d.ts +7 -0
  46. package/dist/client-search/model/redirectRuleIndexData.d.ts.map +1 -0
  47. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts +2 -2
  48. package/dist/client-search/model/redirectRuleIndexMetadata.d.ts.map +1 -1
  49. package/dist/client-search/model/searchParamsString.d.ts +3 -0
  50. package/dist/client-search/model/searchParamsString.d.ts.map +1 -1
  51. package/dist/client-search/model/settingsResponse.d.ts +4 -0
  52. package/dist/client-search/model/settingsResponse.d.ts.map +1 -0
  53. package/dist/client-search/model/withPrimary.d.ts +7 -0
  54. package/dist/client-search/model/withPrimary.d.ts.map +1 -0
  55. package/dist/client-search/src/searchClient.d.ts +4 -4
  56. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  57. package/dist/lite/lite.cjs +1 -1
  58. package/dist/lite/lite.esm.browser.js +1 -1
  59. package/dist/lite/lite.esm.node.js +1 -1
  60. package/dist/lite/lite.umd.js +2 -2
  61. package/dist/lite/model/aroundPrecision.d.ts +2 -2
  62. package/dist/lite/model/aroundPrecision.d.ts.map +1 -1
  63. package/dist/lite/model/baseIndexSettings.d.ts +1 -1
  64. package/dist/lite/model/index.d.ts +4 -2
  65. package/dist/lite/model/index.d.ts.map +1 -1
  66. package/dist/lite/model/indexSettingsAsSearchParams.d.ts +1 -1
  67. package/dist/lite/model/{aroundPrecisionFromValueInner.d.ts → range.d.ts} +2 -2
  68. package/dist/lite/model/range.d.ts.map +1 -0
  69. package/dist/lite/model/redirectRuleIndexData.d.ts +7 -0
  70. package/dist/lite/model/redirectRuleIndexData.d.ts.map +1 -0
  71. package/dist/lite/model/redirectRuleIndexMetadata.d.ts +2 -2
  72. package/dist/lite/model/redirectRuleIndexMetadata.d.ts.map +1 -1
  73. package/dist/lite/model/settingsResponse.d.ts +4 -0
  74. package/dist/lite/model/settingsResponse.d.ts.map +1 -0
  75. package/dist/lite/model/withPrimary.d.ts +7 -0
  76. package/dist/lite/model/withPrimary.d.ts.map +1 -0
  77. package/dist/lite/src/liteClient.d.ts +1 -1
  78. package/dist/recommend/model/aroundPrecision.d.ts +2 -2
  79. package/dist/recommend/model/aroundPrecision.d.ts.map +1 -1
  80. package/dist/recommend/model/index.d.ts +3 -3
  81. package/dist/recommend/model/index.d.ts.map +1 -1
  82. package/dist/recommend/model/indexSettingsAsSearchParams.d.ts +1 -1
  83. package/dist/{client-search/model/aroundPrecisionFromValueInner.d.ts → recommend/model/range.d.ts} +2 -2
  84. package/dist/recommend/model/range.d.ts.map +1 -0
  85. package/dist/recommend/model/recommendRule.d.ts +2 -2
  86. package/dist/recommend/model/recommendRule.d.ts.map +1 -1
  87. package/dist/recommend/model/redirectRuleIndexData.d.ts +7 -0
  88. package/dist/recommend/model/redirectRuleIndexData.d.ts.map +1 -0
  89. package/dist/recommend/model/redirectRuleIndexMetadata.d.ts +2 -2
  90. package/dist/recommend/model/redirectRuleIndexMetadata.d.ts.map +1 -1
  91. package/dist/recommend/model/{recommendRuleMetadata.d.ts → ruleMetadata.d.ts} +2 -2
  92. package/dist/recommend/model/ruleMetadata.d.ts.map +1 -0
  93. package/dist/recommend/src/recommendClient.d.ts +1 -1
  94. package/lite/model/aroundPrecision.ts +2 -2
  95. package/lite/model/baseIndexSettings.ts +1 -1
  96. package/lite/model/index.ts +4 -2
  97. package/lite/model/indexSettingsAsSearchParams.ts +1 -1
  98. package/lite/model/{aroundPrecisionFromValueInner.ts → range.ts} +1 -1
  99. package/lite/model/{redirectRuleIndexMetadataData.ts → redirectRuleIndexData.ts} +1 -1
  100. package/lite/model/redirectRuleIndexMetadata.ts +2 -2
  101. package/lite/model/settingsResponse.ts +6 -0
  102. package/lite/model/withPrimary.ts +8 -0
  103. package/lite/src/liteClient.ts +1 -1
  104. package/package.json +13 -13
  105. package/dist/client-abtesting/model/filterEffectsEmptySearch.d.ts.map +0 -1
  106. package/dist/client-abtesting/model/filterEffectsOutliers.d.ts.map +0 -1
  107. package/dist/client-analytics/model/clickPositionsInner.d.ts.map +0 -1
  108. package/dist/client-search/model/aroundPrecisionFromValueInner.d.ts.map +0 -1
  109. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts +0 -7
  110. package/dist/client-search/model/redirectRuleIndexMetadataData.d.ts.map +0 -1
  111. package/dist/lite/model/aroundPrecisionFromValueInner.d.ts.map +0 -1
  112. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts +0 -7
  113. package/dist/lite/model/redirectRuleIndexMetadataData.d.ts.map +0 -1
  114. package/dist/recommend/model/aroundPrecisionFromValueInner.d.ts.map +0 -1
  115. package/dist/recommend/model/recommendRuleMetadata.d.ts.map +0 -1
  116. package/dist/recommend/model/redirectRuleIndexMetadataData.d.ts +0 -7
  117. package/dist/recommend/model/redirectRuleIndexMetadataData.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- /*! algoliasearch/lite.umd.js | 5.0.0-beta.11 | © 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,t,r){return(t=function(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+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),n(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends i{constructor(e,t,r){super(e,r),n(this,"stackTrace",void 0),this.stackTrace=t}}class u extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}}class l extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),n(this,"status",void 0),this.status=t}}class m extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class d extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function h(e,t,r){const s=(a=r,Object.keys(a).filter((e=>void 0!==a[e])).sort().map((e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replaceAll("+","%20")}`)).join("&"));var a;let o=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return s.length&&(o+=`?${s}`),o}function p(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 f({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:n,requester:i,requestsCache:c,responsesCache:f}){async function g(c,f,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,f),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,f.headers),w="GET"===c.method?{...c.data,...f.data}:{},b={...s,...c.queryParameters,...w};if(a.value&&(b["x-algolia-agent"]=a.value),f&&f.queryParameters)for(const e of Object.keys(f.queryParameters))f.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(f.queryParameters[e])?b[e]=f.queryParameters[e].toString():b[e]=f.queryParameters[e];let q=0;const O=async(e,r)=>{const s=e.pop();if(void 0===s)throw new u(function(e){return e.map((e=>p(e)))}(y));let a=g?f.timeouts?.read||n.read:f.timeouts?.write||n.write;const w={data:v,headers:P,method:c.method,url:h(s,c.path,b),connectTimeout:r(q,f.timeouts?.connect||n.connect),responseTimeout:r(q,a)},T=t=>{const r={request:w,response:t,host:s,triesLeft:e.length};return y.push(r),r},S=await i.send(w);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=T(S);return S.isTimedOut&&q++,console.log("Retryable failure",p(a)),await t.set(s,o(s,S.isTimedOut?"timed out":"down")),O(e,r)}if(function({status:e}){return 2==~~(e/100)}(S))return function(e){try{return JSON.parse(e.content)}catch(t){throw new m(t.message,e)}}(S);throw T(S),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new d(s.message,t,s.error,r):new l(s.message,t,r)}catch(e){}return new l(e,t,r)}(S,y)},T=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}}(T);return O([...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 f.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=>f.set(n,e)})},requestsCache:c,responsesCache:f}}function g({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 y="5.0.0-beta.11";function v(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=y,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=f({hosts:v(e),...a,algoliaAgent:g({algoliaAgents:s,client:"Lite",version:y}),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)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)},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:`${y}-${e}`}),s()]}),...o})}}));
1
+ /*! algoliasearch/lite.umd.js | 5.0.0-beta.13 | © 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,t,r){return(t=function(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+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends Error{constructor(e,t){super(e),n(this,"name","AlgoliaError"),t&&(this.name=t)}}class c extends i{constructor(e,t,r){super(e,r),n(this,"stackTrace",void 0),this.stackTrace=t}}class u extends c{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}}class l extends c{constructor(e,t,r,s="ApiError"){super(e,r,s),n(this,"status",void 0),this.status=t}}class m extends i{constructor(e,t){super(e,"DeserializationError"),n(this,"response",void 0),this.response=t}}class d extends l{constructor(e,t,r,s){super(e,t,s,"DetailedApiError"),n(this,"error",void 0),this.error=r}}function h(e,t,r){const s=(a=r,Object.keys(a).filter((e=>void 0!==a[e])).sort().map((e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replaceAll("+","%20")}`)).join("&"));var a;let o=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return s.length&&(o+=`?${s}`),o}function p(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 f({hosts:e,hostsCache:t,baseHeaders:r,baseQueryParameters:s,algoliaAgent:a,timeouts:n,requester:i,requestsCache:c,responsesCache:f}){async function g(c,f,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,f),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,f.headers),w="GET"===c.method?{...c.data,...f.data}:{},b={...s,...c.queryParameters,...w};if(a.value&&(b["x-algolia-agent"]=a.value),f&&f.queryParameters)for(const e of Object.keys(f.queryParameters))f.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(f.queryParameters[e])?b[e]=f.queryParameters[e].toString():b[e]=f.queryParameters[e];let q=0;const O=async(e,r)=>{const s=e.pop();if(void 0===s)throw new u(function(e){return e.map((e=>p(e)))}(y));let a=g?f.timeouts?.read||n.read:f.timeouts?.write||n.write;const w={data:v,headers:P,method:c.method,url:h(s,c.path,b),connectTimeout:r(q,f.timeouts?.connect||n.connect),responseTimeout:r(q,a)},T=t=>{const r={request:w,response:t,host:s,triesLeft:e.length};return y.push(r),r},S=await i.send(w);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=T(S);return S.isTimedOut&&q++,console.log("Retryable failure",p(a)),await t.set(s,o(s,S.isTimedOut?"timed out":"down")),O(e,r)}if(function({status:e}){return 2==~~(e/100)}(S))return function(e){try{return JSON.parse(e.content)}catch(t){throw new m(t.message,e)}}(S);throw T(S),function({content:e,status:t},r){try{const s=JSON.parse(e);return"error"in s?new d(s.message,t,s.error,r):new l(s.message,t,r)}catch(e){}return new l(e,t,r)}(S,y)},T=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}}(T);return O([...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 f.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=>f.set(n,e)})},requestsCache:c,responsesCache:f}}function g({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 y="5.0.0-beta.13";function v(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=y,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=f({hosts:v(e),...a,algoliaAgent:g({algoliaAgents:s,client:"Lite",version:y}),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)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return n.request(r,t)},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:`${y}-${e}`}),s()]}),...o})}}));
@@ -1,6 +1,6 @@
1
- import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner';
1
+ import type { Range } from './range';
2
2
  /**
3
3
  * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
4
4
  */
5
- export type AroundPrecision = AroundPrecisionFromValueInner[] | number;
5
+ export type AroundPrecision = Range[] | number;
6
6
  //# sourceMappingURL=aroundPrecision.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aroundPrecision.d.ts","sourceRoot":"","sources":["../../../lite/model/aroundPrecision.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,6BAA6B,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"aroundPrecision.d.ts","sourceRoot":"","sources":["../../../lite/model/aroundPrecision.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC"}
@@ -29,7 +29,7 @@ export type BaseIndexSettings = {
29
29
  */
30
30
  camelCaseAttributes?: string[];
31
31
  /**
32
- * Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, \"firefighter\". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`).
32
+ * Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, \"firefighter\". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`). Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
33
33
  */
34
34
  decompoundedAttributes?: Record<string, any>;
35
35
  /**
@@ -3,7 +3,6 @@ export * from './advancedSyntaxFeatures';
3
3
  export * from './alternativesAsExact';
4
4
  export * from './apiKey';
5
5
  export * from './aroundPrecision';
6
- export * from './aroundPrecisionFromValueInner';
7
6
  export * from './aroundRadius';
8
7
  export * from './aroundRadiusAll';
9
8
  export * from './automaticFacetFilter';
@@ -56,6 +55,7 @@ export * from './optionalFilters';
56
55
  export * from './params';
57
56
  export * from './personalization';
58
57
  export * from './queryType';
58
+ export * from './range';
59
59
  export * from './rankingInfo';
60
60
  export * from './reRankingApplyFilter';
61
61
  export * from './recommendHit';
@@ -67,8 +67,8 @@ export * from './recommendedForYou';
67
67
  export * from './recommendedForYouModel';
68
68
  export * from './recommendedForYouQuery';
69
69
  export * from './redirect';
70
+ export * from './redirectRuleIndexData';
70
71
  export * from './redirectRuleIndexMetadata';
71
- export * from './redirectRuleIndexMetadataData';
72
72
  export * from './redirectURL';
73
73
  export * from './relatedModel';
74
74
  export * from './relatedProducts';
@@ -95,6 +95,7 @@ export * from './searchStrategy';
95
95
  export * from './searchTypeDefault';
96
96
  export * from './searchTypeFacet';
97
97
  export * from './semanticSearch';
98
+ export * from './settingsResponse';
98
99
  export * from './snippetResult';
99
100
  export * from './snippetResultOption';
100
101
  export * from './sortRemainingBy';
@@ -110,5 +111,6 @@ export * from './trendingItemsQuery';
110
111
  export * from './typoTolerance';
111
112
  export * from './typoToleranceEnum';
112
113
  export * from './value';
114
+ export * from './withPrimary';
113
115
  export * from './clientMethodProps';
114
116
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lite/model/index.ts"],"names":[],"mappings":"AAEA,cAAc,OAAO,CAAC;AACtB,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAA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AC9B,cAAc,qBAAqB,CAAC"}
@@ -85,7 +85,7 @@ export type IndexSettingsAsSearchParams = {
85
85
  */
86
86
  queryLanguages?: SupportedLanguage[];
87
87
  /**
88
- * Whether to split compound words into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian.
88
+ * Whether to split compound words in the query into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
89
89
  */
90
90
  decompoundQuery?: boolean;
91
91
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Range object with lower and upper values in meters to define custom ranges.
3
3
  */
4
- export type AroundPrecisionFromValueInner = {
4
+ export type Range = {
5
5
  /**
6
6
  * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
7
7
  */
@@ -11,4 +11,4 @@ export type AroundPrecisionFromValueInner = {
11
11
  */
12
12
  value?: number;
13
13
  };
14
- //# sourceMappingURL=aroundPrecisionFromValueInner.d.ts.map
14
+ //# sourceMappingURL=range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../lite/model/range.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Redirect rule data.
3
+ */
4
+ export type RedirectRuleIndexData = {
5
+ ruleObjectID: string;
6
+ };
7
+ //# sourceMappingURL=redirectRuleIndexData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirectRuleIndexData.d.ts","sourceRoot":"","sources":["../../../lite/model/redirectRuleIndexData.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData';
1
+ import type { RedirectRuleIndexData } from './redirectRuleIndexData';
2
2
  export type RedirectRuleIndexMetadata = {
3
3
  /**
4
4
  * Source index for the redirect rule.
@@ -16,6 +16,6 @@ export type RedirectRuleIndexMetadata = {
16
16
  * Redirect rule status.
17
17
  */
18
18
  succeed: boolean;
19
- data: RedirectRuleIndexMetadataData;
19
+ data: RedirectRuleIndexData;
20
20
  };
21
21
  //# sourceMappingURL=redirectRuleIndexMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"redirectRuleIndexMetadata.d.ts","sourceRoot":"","sources":["../../../lite/model/redirectRuleIndexMetadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,6BAA6B,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"redirectRuleIndexMetadata.d.ts","sourceRoot":"","sources":["../../../lite/model/redirectRuleIndexMetadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,qBAAqB,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IndexSettings } from './indexSettings';
2
+ import type { WithPrimary } from './withPrimary';
3
+ export type SettingsResponse = IndexSettings & WithPrimary;
4
+ //# sourceMappingURL=settingsResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settingsResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/settingsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ export type WithPrimary = {
2
+ /**
3
+ * Replica indices only: the name of the primary index for this replica.
4
+ */
5
+ primary?: string;
6
+ };
7
+ //# sourceMappingURL=withPrimary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withPrimary.d.ts","sourceRoot":"","sources":["../../../lite/model/withPrimary.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -4,7 +4,7 @@ import type { GetRecommendationsParams } from '../model/getRecommendationsParams
4
4
  import type { GetRecommendationsResponse } from '../model/getRecommendationsResponse';
5
5
  import type { SearchMethodParams } from '../model/searchMethodParams';
6
6
  import type { SearchResponses } from '../model/searchResponses';
7
- export declare const apiClientVersion = "5.0.0-beta.11";
7
+ export declare const apiClientVersion = "5.0.0-beta.13";
8
8
  export declare function createLiteClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
9
9
  transporter: import("@algolia/client-common").Transporter;
10
10
  /**
@@ -1,6 +1,6 @@
1
- import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner';
1
+ import type { Range } from './range';
2
2
  /**
3
3
  * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
4
4
  */
5
- export type AroundPrecision = AroundPrecisionFromValueInner[] | number;
5
+ export type AroundPrecision = Range[] | number;
6
6
  //# sourceMappingURL=aroundPrecision.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aroundPrecision.d.ts","sourceRoot":"","sources":["../../../../recommend/model/aroundPrecision.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,6BAA6B,EAAE,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"aroundPrecision.d.ts","sourceRoot":"","sources":["../../../../recommend/model/aroundPrecision.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export * from './advancedSyntaxFeatures';
2
2
  export * from './alternativesAsExact';
3
3
  export * from './aroundPrecision';
4
- export * from './aroundPrecisionFromValueInner';
5
4
  export * from './aroundRadius';
6
5
  export * from './aroundRadiusAll';
7
6
  export * from './autoFacetFilter';
@@ -44,12 +43,12 @@ export * from './paramsConsequence';
44
43
  export * from './personalization';
45
44
  export * from './promoteConsequenceObject';
46
45
  export * from './queryType';
46
+ export * from './range';
47
47
  export * from './rankingInfo';
48
48
  export * from './reRankingApplyFilter';
49
49
  export * from './recommendHit';
50
50
  export * from './recommendModels';
51
51
  export * from './recommendRule';
52
- export * from './recommendRuleMetadata';
53
52
  export * from './recommendationsHit';
54
53
  export * from './recommendationsHits';
55
54
  export * from './recommendationsRequest';
@@ -58,8 +57,8 @@ export * from './recommendedForYou';
58
57
  export * from './recommendedForYouModel';
59
58
  export * from './recommendedForYouQuery';
60
59
  export * from './redirect';
60
+ export * from './redirectRuleIndexData';
61
61
  export * from './redirectRuleIndexMetadata';
62
- export * from './redirectRuleIndexMetadataData';
63
62
  export * from './redirectURL';
64
63
  export * from './relatedModel';
65
64
  export * from './relatedProducts';
@@ -67,6 +66,7 @@ export * from './relatedQuery';
67
66
  export * from './removeStopWords';
68
67
  export * from './removeWordsIfNoResults';
69
68
  export * from './renderingContent';
69
+ export * from './ruleMetadata';
70
70
  export * from './searchPagination';
71
71
  export * from './searchParams';
72
72
  export * from './searchParamsObject';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../recommend/model/index.ts"],"names":[],"mappings":"AAEA,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;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AC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC"}
@@ -85,7 +85,7 @@ export type IndexSettingsAsSearchParams = {
85
85
  */
86
86
  queryLanguages?: SupportedLanguage[];
87
87
  /**
88
- * Whether to split compound words into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian.
88
+ * Whether to split compound words in the query into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
89
89
  */
90
90
  decompoundQuery?: boolean;
91
91
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Range object with lower and upper values in meters to define custom ranges.
3
3
  */
4
- export type AroundPrecisionFromValueInner = {
4
+ export type Range = {
5
5
  /**
6
6
  * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
7
7
  */
@@ -11,4 +11,4 @@ export type AroundPrecisionFromValueInner = {
11
11
  */
12
12
  value?: number;
13
13
  };
14
- //# sourceMappingURL=aroundPrecisionFromValueInner.d.ts.map
14
+ //# sourceMappingURL=range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../../recommend/model/range.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import type { Condition } from './condition';
2
2
  import type { Consequence } from './consequence';
3
- import type { RecommendRuleMetadata } from './recommendRuleMetadata';
3
+ import type { RuleMetadata } from './ruleMetadata';
4
4
  /**
5
5
  * Recommend rule.
6
6
  */
7
7
  export type RecommendRule = {
8
- _metadata?: RecommendRuleMetadata;
8
+ _metadata?: RuleMetadata;
9
9
  /**
10
10
  * Unique identifier of a rule object.
11
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"recommendRule.d.ts","sourceRoot":"","sources":["../../../../recommend/model/recommendRule.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAElC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"recommendRule.d.ts","sourceRoot":"","sources":["../../../../recommend/model/recommendRule.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Redirect rule data.
3
+ */
4
+ export type RedirectRuleIndexData = {
5
+ ruleObjectID: string;
6
+ };
7
+ //# sourceMappingURL=redirectRuleIndexData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirectRuleIndexData.d.ts","sourceRoot":"","sources":["../../../../recommend/model/redirectRuleIndexData.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData';
1
+ import type { RedirectRuleIndexData } from './redirectRuleIndexData';
2
2
  export type RedirectRuleIndexMetadata = {
3
3
  /**
4
4
  * Source index for the redirect rule.
@@ -16,6 +16,6 @@ export type RedirectRuleIndexMetadata = {
16
16
  * Redirect rule status.
17
17
  */
18
18
  succeed: boolean;
19
- data: RedirectRuleIndexMetadataData;
19
+ data: RedirectRuleIndexData;
20
20
  };
21
21
  //# sourceMappingURL=redirectRuleIndexMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"redirectRuleIndexMetadata.d.ts","sourceRoot":"","sources":["../../../../recommend/model/redirectRuleIndexMetadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,6BAA6B,CAAC;CACrC,CAAC"}
1
+ {"version":3,"file":"redirectRuleIndexMetadata.d.ts","sourceRoot":"","sources":["../../../../recommend/model/redirectRuleIndexMetadata.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB,IAAI,EAAE,qBAAqB,CAAC;CAC7B,CAAC"}
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Rule metadata.
3
3
  */
4
- export type RecommendRuleMetadata = {
4
+ export type RuleMetadata = {
5
5
  /**
6
6
  * Date and time when the object was updated, in RFC 3339 format.
7
7
  */
8
8
  lastUpdate?: string;
9
9
  };
10
- //# sourceMappingURL=recommendRuleMetadata.d.ts.map
10
+ //# sourceMappingURL=ruleMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruleMetadata.d.ts","sourceRoot":"","sources":["../../../../recommend/model/ruleMetadata.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -6,7 +6,7 @@ import type { GetRecommendationsParams } from '../model/getRecommendationsParams
6
6
  import type { GetRecommendationsResponse } from '../model/getRecommendationsResponse';
7
7
  import type { RecommendRule } from '../model/recommendRule';
8
8
  import type { SearchRecommendRulesResponse } from '../model/searchRecommendRulesResponse';
9
- export declare const apiClientVersion = "5.0.0-beta.11";
9
+ export declare const apiClientVersion = "5.0.0-beta.13";
10
10
  export declare function createRecommendClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
11
11
  transporter: import("@algolia/client-common").Transporter;
12
12
  /**
@@ -1,8 +1,8 @@
1
1
  // 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.
2
2
 
3
- import type { AroundPrecisionFromValueInner } from './aroundPrecisionFromValueInner';
3
+ import type { Range } from './range';
4
4
 
5
5
  /**
6
6
  * Precision of a coordinate-based search in meters to group results with similar distances. The Geo ranking criterion considers all matches within the same range of distances to be equal.
7
7
  */
8
- export type AroundPrecision = AroundPrecisionFromValueInner[] | number;
8
+ export type AroundPrecision = Range[] | number;
@@ -39,7 +39,7 @@ export type BaseIndexSettings = {
39
39
  camelCaseAttributes?: string[];
40
40
 
41
41
  /**
42
- * Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, \"firefighter\". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`).
42
+ * Searchable attributes to which Algolia should apply [word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/how-to/customize-segmentation/) (decompounding). Attribute names are case-sensitive. Compound words are formed by combining two or more individual words, and are particularly prevalent in Germanic languages—for example, \"firefighter\". With decompounding, the individual components are indexed separately. You can specify different lists for different languages. Decompounding is supported for these languages: Dutch (`nl`), German (`de`), Finnish (`fi`), Danish (`da`), Swedish (`sv`), and Norwegian (`no`). Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
43
43
  */
44
44
  decompoundedAttributes?: Record<string, any>;
45
45
 
@@ -5,7 +5,6 @@ export * from './advancedSyntaxFeatures';
5
5
  export * from './alternativesAsExact';
6
6
  export * from './apiKey';
7
7
  export * from './aroundPrecision';
8
- export * from './aroundPrecisionFromValueInner';
9
8
  export * from './aroundRadius';
10
9
  export * from './aroundRadiusAll';
11
10
  export * from './automaticFacetFilter';
@@ -58,6 +57,7 @@ export * from './optionalFilters';
58
57
  export * from './params';
59
58
  export * from './personalization';
60
59
  export * from './queryType';
60
+ export * from './range';
61
61
  export * from './rankingInfo';
62
62
  export * from './reRankingApplyFilter';
63
63
  export * from './recommendHit';
@@ -69,8 +69,8 @@ export * from './recommendedForYou';
69
69
  export * from './recommendedForYouModel';
70
70
  export * from './recommendedForYouQuery';
71
71
  export * from './redirect';
72
+ export * from './redirectRuleIndexData';
72
73
  export * from './redirectRuleIndexMetadata';
73
- export * from './redirectRuleIndexMetadataData';
74
74
  export * from './redirectURL';
75
75
  export * from './relatedModel';
76
76
  export * from './relatedProducts';
@@ -97,6 +97,7 @@ export * from './searchStrategy';
97
97
  export * from './searchTypeDefault';
98
98
  export * from './searchTypeFacet';
99
99
  export * from './semanticSearch';
100
+ export * from './settingsResponse';
100
101
  export * from './snippetResult';
101
102
  export * from './snippetResultOption';
102
103
  export * from './sortRemainingBy';
@@ -112,4 +113,5 @@ export * from './trendingItemsQuery';
112
113
  export * from './typoTolerance';
113
114
  export * from './typoToleranceEnum';
114
115
  export * from './value';
116
+ export * from './withPrimary';
115
117
  export * from './clientMethodProps';
@@ -108,7 +108,7 @@ export type IndexSettingsAsSearchParams = {
108
108
  queryLanguages?: SupportedLanguage[];
109
109
 
110
110
  /**
111
- * Whether to split compound words into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian.
111
+ * Whether to split compound words in the query into their building blocks. For more information, see [Word segmentation](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/language-specific-configurations/#splitting-compound-words). Word segmentation is supported for these languages: German, Dutch, Finnish, Swedish, and Norwegian. Decompounding doesn\'t work for words with [non-spacing mark Unicode characters](https://www.charactercodes.net/category/non-spacing_mark). For example, `Gartenstühle` won\'t be decompounded if the `ü` consists of `u` (U+0075) and `◌̈` (U+0308).
112
112
  */
113
113
  decompoundQuery?: boolean;
114
114
 
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Range object with lower and upper values in meters to define custom ranges.
5
5
  */
6
- export type AroundPrecisionFromValueInner = {
6
+ export type Range = {
7
7
  /**
8
8
  * Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
9
9
  */
@@ -3,6 +3,6 @@
3
3
  /**
4
4
  * Redirect rule data.
5
5
  */
6
- export type RedirectRuleIndexMetadataData = {
6
+ export type RedirectRuleIndexData = {
7
7
  ruleObjectID: string;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  // 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.
2
2
 
3
- import type { RedirectRuleIndexMetadataData } from './redirectRuleIndexMetadataData';
3
+ import type { RedirectRuleIndexData } from './redirectRuleIndexData';
4
4
 
5
5
  export type RedirectRuleIndexMetadata = {
6
6
  /**
@@ -23,5 +23,5 @@ export type RedirectRuleIndexMetadata = {
23
23
  */
24
24
  succeed: boolean;
25
25
 
26
- data: RedirectRuleIndexMetadataData;
26
+ data: RedirectRuleIndexData;
27
27
  };
@@ -0,0 +1,6 @@
1
+ // 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.
2
+
3
+ import type { IndexSettings } from './indexSettings';
4
+ import type { WithPrimary } from './withPrimary';
5
+
6
+ export type SettingsResponse = IndexSettings & WithPrimary;
@@ -0,0 +1,8 @@
1
+ // 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.
2
+
3
+ export type WithPrimary = {
4
+ /**
5
+ * Replica indices only: the name of the primary index for this replica.
6
+ */
7
+ primary?: string;
8
+ };
@@ -25,7 +25,7 @@ import type { GetRecommendationsResponse } from '../model/getRecommendationsResp
25
25
  import type { SearchMethodParams } from '../model/searchMethodParams';
26
26
  import type { SearchResponses } from '../model/searchResponses';
27
27
 
28
- export const apiClientVersion = '5.0.0-beta.11';
28
+ export const apiClientVersion = '5.0.0-beta.13';
29
29
 
30
30
  function getDefaultHosts(appId: string): Host[] {
31
31
  return (