-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/APIC-227/javascript-group-parameters
- Loading branch information
Showing
31 changed files
with
759 additions
and
52 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
clients/algoliasearch-client-javascript/client-search/model/addApiKeyResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type AddApiKeyResponse = { | ||
/** | ||
* Key string. | ||
*/ | ||
key: string; | ||
/** | ||
* Date of creation (ISO-8601 format). | ||
*/ | ||
createdAt: Date; | ||
}; |
56 changes: 56 additions & 0 deletions
56
clients/algoliasearch-client-javascript/client-search/model/apiKey.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* Api Key object. | ||
*/ | ||
export type ApiKey = { | ||
/** | ||
* Set of permissions associated with the key. | ||
*/ | ||
acl: ApiKey.AclEnum[]; | ||
/** | ||
* A comment used to identify a key more easily in the dashboard. It is not interpreted by the API. | ||
*/ | ||
description?: string; | ||
/** | ||
* Restrict this new API key to a list of indices or index patterns. If the list is empty, all indices are allowed. | ||
*/ | ||
indexes?: string[]; | ||
/** | ||
* Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced. | ||
*/ | ||
maxHitsPerQuery?: number; | ||
/** | ||
* Maximum number of API calls per hour allowed from a given IP address or a user token. | ||
*/ | ||
maxQueriesPerIPPerHour?: number; | ||
/** | ||
* URL-encoded query string. Force some query parameters to be applied for each query made with this API key. | ||
*/ | ||
queryParameters?: string; | ||
/** | ||
* Restrict this new API key to specific referers. If empty or blank, defaults to all referers. | ||
*/ | ||
referers?: string[]; | ||
/** | ||
* Validity limit for this key in seconds. The key will automatically be removed after this period of time. | ||
*/ | ||
validity?: number; | ||
}; | ||
|
||
export namespace ApiKey { | ||
export enum AclEnum { | ||
AddObject = 'addObject', | ||
Analytics = 'analytics', | ||
Browse = 'browse', | ||
DeleteObject = 'deleteObject', | ||
DeleteIndex = 'deleteIndex', | ||
EditSettings = 'editSettings', | ||
ListIndexes = 'listIndexes', | ||
Logs = 'logs', | ||
Personalization = 'personalization', | ||
Recommendation = 'recommendation', | ||
Search = 'search', | ||
SeeUnretrievableAttributes = 'seeUnretrievableAttributes', | ||
Settings = 'settings', | ||
Usage = 'usage', | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
clients/algoliasearch-client-javascript/client-search/model/createdAtObject.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export type CreatedAtObject = { | ||
/** | ||
* Date of creation (ISO-8601 format). | ||
*/ | ||
createdAt: Date; | ||
}; |
6 changes: 6 additions & 0 deletions
6
clients/algoliasearch-client-javascript/client-search/model/deleteApiKeyResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export type DeleteApiKeyResponse = { | ||
/** | ||
* Date of deletion (ISO-8601 format). | ||
*/ | ||
deletedAt: Date; | ||
}; |
4 changes: 4 additions & 0 deletions
4
clients/algoliasearch-client-javascript/client-search/model/keyObject.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import type { ApiKey } from './apiKey'; | ||
import type { CreatedAtObject } from './createdAtObject'; | ||
|
||
export type KeyObject = ApiKey & CreatedAtObject; |
6 changes: 6 additions & 0 deletions
6
clients/algoliasearch-client-javascript/client-search/model/keyObjectAllOf.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export type KeyObjectAllOf = { | ||
/** | ||
* Date of creation (ISO-8601 format). | ||
*/ | ||
createdAt: Date; | ||
}; |
8 changes: 8 additions & 0 deletions
8
clients/algoliasearch-client-javascript/client-search/model/listApiKeysResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { KeyObject } from './keyObject'; | ||
|
||
export type ListApiKeysResponse = { | ||
/** | ||
* List of api keys. | ||
*/ | ||
keys: KeyObject[]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
clients/algoliasearch-client-javascript/client-search/model/updateApiKeyResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type UpdateApiKeyResponse = { | ||
/** | ||
* Key string. | ||
*/ | ||
key: string; | ||
/** | ||
* Date of last update (ISO-8601 format). | ||
*/ | ||
updatedAt: Date; | ||
}; |
Oops, something went wrong.