algoliasearch 5.0.0-alpha.102 → 5.0.0-alpha.104
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.
- package/dist/algoliasearch/builds/browser.d.ts +5 -1
- package/dist/algoliasearch/builds/browser.d.ts.map +1 -1
- package/dist/algoliasearch/builds/node.d.ts +5 -1
- package/dist/algoliasearch/builds/node.d.ts.map +1 -1
- package/dist/algoliasearch.cjs +118 -22
- package/dist/algoliasearch.esm.browser.js +120 -23
- package/dist/algoliasearch.esm.node.js +119 -23
- package/dist/algoliasearch.umd.js +2 -2
- package/dist/client-abtesting/src/abtestingClient.d.ts +1 -1
- package/dist/client-abtesting/src/abtestingClient.d.ts.map +1 -1
- package/dist/client-analytics/src/analyticsClient.d.ts +1 -1
- package/dist/client-analytics/src/analyticsClient.d.ts.map +1 -1
- package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
- package/dist/client-personalization/src/personalizationClient.d.ts.map +1 -1
- package/dist/client-search/model/apiKeyOperation.d.ts +2 -0
- package/dist/client-search/model/apiKeyOperation.d.ts.map +1 -0
- package/dist/client-search/model/baseSearchResponse.d.ts +4 -0
- package/dist/client-search/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/client-search/model/clientMethodProps.d.ts +61 -2
- package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
- package/dist/client-search/model/index.d.ts +2 -0
- package/dist/client-search/model/index.d.ts.map +1 -1
- package/dist/client-search/model/securedAPIKeyRestrictions.d.ts +25 -0
- package/dist/client-search/model/securedAPIKeyRestrictions.d.ts.map +1 -0
- package/dist/client-search/src/searchClient.d.ts +56 -15
- package/dist/client-search/src/searchClient.d.ts.map +1 -1
- package/dist/lite/lite.cjs +1 -1
- package/dist/lite/lite.esm.browser.js +2 -2
- package/dist/lite/lite.esm.node.js +1 -1
- package/dist/lite/lite.umd.js +2 -2
- package/dist/lite/model/apiKeyOperation.d.ts +2 -0
- package/dist/lite/model/apiKeyOperation.d.ts.map +1 -0
- package/dist/lite/model/baseSearchResponse.d.ts +4 -0
- package/dist/lite/model/baseSearchResponse.d.ts.map +1 -1
- package/dist/lite/model/index.d.ts +2 -0
- package/dist/lite/model/index.d.ts.map +1 -1
- package/dist/lite/model/securedAPIKeyRestrictions.d.ts +25 -0
- package/dist/lite/model/securedAPIKeyRestrictions.d.ts.map +1 -0
- package/dist/lite/src/liteClient.d.ts +1 -1
- package/dist/lite/src/liteClient.d.ts.map +1 -1
- package/lite/model/apiKeyOperation.ts +3 -0
- package/lite/model/baseSearchResponse.ts +5 -0
- package/lite/model/index.ts +2 -0
- package/lite/model/securedAPIKeyRestrictions.ts +32 -0
- package/lite/src/liteClient.ts +2 -2
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liteClient.d.ts","sourceRoot":"","sources":["../../../lite/src/liteClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,mBAAmB,
|
|
1
|
+
{"version":3,"file":"liteClient.d.ts","sourceRoot":"","sources":["../../../lite/src/liteClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,mBAAmB,EAKnB,cAAc,EACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAsClD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,EACpB,QAAQ,EACR,aAAa,EACb,GAAG,OAAO,EACX,EAAE,mBAAmB;;IAwBlB;;OAEG;;IAGH;;OAEG;kBACW,QAAQ,IAAI,CAAC;IAO3B;;OAEG;;IAKH;;;;;OAKG;6BACsB,MAAM,YAAY,MAAM,GAAG,IAAI;IAIxD;;;;;;;;OAQG;2CAE2B,eAAe,mBAC1B,cAAc,GAC9B,QAAQ,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAsB/B;;;;;;;;OAQG;kCAEmB,uBAAuB,GAAG,kBAAkB,mBAC/C,cAAc;EAwDpC;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -131,4 +131,9 @@ export type BaseSearchResponse = Record<string, any> & {
|
|
|
131
131
|
* Lets you store custom data in your indices.
|
|
132
132
|
*/
|
|
133
133
|
userData?: any | null;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
|
|
137
|
+
*/
|
|
138
|
+
queryID?: string;
|
|
134
139
|
};
|
package/lite/model/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './advancedSyntaxFeatures';
|
|
|
7
7
|
export * from './alternativesAsExact';
|
|
8
8
|
export * from './anchoring';
|
|
9
9
|
export * from './apiKey';
|
|
10
|
+
export * from './apiKeyOperation';
|
|
10
11
|
export * from './aroundPrecision';
|
|
11
12
|
export * from './aroundPrecisionFromValueInner';
|
|
12
13
|
export * from './aroundRadius';
|
|
@@ -101,6 +102,7 @@ export * from './searchStrategy';
|
|
|
101
102
|
export * from './searchSynonymsResponse';
|
|
102
103
|
export * from './searchTypeDefault';
|
|
103
104
|
export * from './searchTypeFacet';
|
|
105
|
+
export * from './securedAPIKeyRestrictions';
|
|
104
106
|
export * from './semanticSearch';
|
|
105
107
|
export * from './snippetResult';
|
|
106
108
|
export * from './snippetResultOption';
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { SearchParamsObject } from './searchParamsObject';
|
|
4
|
+
|
|
5
|
+
export type SecuredAPIKeyRestrictions = {
|
|
6
|
+
searchParams?: SearchParamsObject;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Filters that apply to every search made with the secured API key. You can add extra filters at search time with the filters query parameter. For example, if you set the filter group:admin on your generated API key, and you add groups:press OR groups:visitors with the filters query parameter, your final search filter is equivalent to groups:admin AND (groups:press OR groups:visitors).
|
|
10
|
+
*/
|
|
11
|
+
filters?: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Unix timestamp used to set the expiration date of the API key.
|
|
15
|
+
*/
|
|
16
|
+
validUntil?: number;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Index names that can be queried.
|
|
20
|
+
*/
|
|
21
|
+
restrictIndices?: string[];
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* IPv4 network allowed to use the generated key. Use this to protect against API key leaking and reuse. You can only provide a single source, but you can specify a range of IPs (for example, 192.168.1.0/24).
|
|
25
|
+
*/
|
|
26
|
+
restrictSources?: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Unique user IP address. This can be useful when you want to impose a rate limit on specific users. By default, rate limits are set based on the IP address. This can become an issue when several users search from the same IP address. To avoid this, you can set a unique userToken for each user when generating their API key. This lets you restrict each user to a maximum number of API calls per hour, even if they share their IP with another user. Specifying the userToken in a secured API key is also a good security practice as it ensures users don\'t change it. Many features like Analytics, Personalization, and Dynamic Re-ranking rely on the authenticity of user identifiers. Setting the userToken at the API key level ensures that downstream services work as expected and prevents abuse.
|
|
30
|
+
*/
|
|
31
|
+
userToken?: string;
|
|
32
|
+
};
|
package/lite/src/liteClient.ts
CHANGED
|
@@ -10,9 +10,9 @@ import type {
|
|
|
10
10
|
CreateClientOptions,
|
|
11
11
|
Headers,
|
|
12
12
|
Host,
|
|
13
|
+
QueryParameters,
|
|
13
14
|
Request,
|
|
14
15
|
RequestOptions,
|
|
15
|
-
QueryParameters,
|
|
16
16
|
} from '@algolia/client-common';
|
|
17
17
|
|
|
18
18
|
import type {
|
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
import type { SearchMethodParams } from '../model/searchMethodParams';
|
|
23
23
|
import type { SearchResponses } from '../model/searchResponses';
|
|
24
24
|
|
|
25
|
-
export const apiClientVersion = '5.0.0-alpha.
|
|
25
|
+
export const apiClientVersion = '5.0.0-alpha.104';
|
|
26
26
|
|
|
27
27
|
function getDefaultHosts(appId: string): Host[] {
|
|
28
28
|
return (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "algoliasearch",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.104",
|
|
4
4
|
"description": "A fully-featured and blazing-fast JavaScript API client to interact with Algolia API.",
|
|
5
5
|
"repository": "algolia/algoliasearch-client-javascript",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,19 +60,19 @@
|
|
|
60
60
|
"test": "jest"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@algolia/client-abtesting": "5.0.0-alpha.
|
|
64
|
-
"@algolia/client-analytics": "5.0.0-alpha.
|
|
65
|
-
"@algolia/client-common": "5.0.0-alpha.
|
|
66
|
-
"@algolia/client-personalization": "5.0.0-alpha.
|
|
67
|
-
"@algolia/client-search": "5.0.0-alpha.
|
|
68
|
-
"@algolia/requester-browser-xhr": "5.0.0-alpha.
|
|
69
|
-
"@algolia/requester-node-http": "5.0.0-alpha.
|
|
63
|
+
"@algolia/client-abtesting": "5.0.0-alpha.104",
|
|
64
|
+
"@algolia/client-analytics": "5.0.0-alpha.104",
|
|
65
|
+
"@algolia/client-common": "5.0.0-alpha.105",
|
|
66
|
+
"@algolia/client-personalization": "5.0.0-alpha.104",
|
|
67
|
+
"@algolia/client-search": "5.0.0-alpha.104",
|
|
68
|
+
"@algolia/requester-browser-xhr": "5.0.0-alpha.105",
|
|
69
|
+
"@algolia/requester-node-http": "5.0.0-alpha.105"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@babel/preset-env": "7.23.9",
|
|
73
73
|
"@babel/preset-typescript": "7.23.3",
|
|
74
74
|
"@types/jest": "29.5.12",
|
|
75
|
-
"@types/node": "20.11.
|
|
75
|
+
"@types/node": "20.11.20",
|
|
76
76
|
"jest": "29.7.0",
|
|
77
77
|
"rollup": "4.12.0",
|
|
78
78
|
"typescript": "5.3.3"
|