Skip to content

Commit ec56890

Browse files
chore: generated code for commit 193fb73d. [skip ci]
algolia/api-clients-automation@193fb73 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent c85eea9 commit ec56890

22 files changed

+90
-63
lines changed

packages/algoliasearch/lite/model/acl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3+
/**
4+
* List of rights for the API key. The following rights can be used: addObject: allows to add/update an object in the index (copy/move index are also allowed with this right). Analytics: allows to retrieve the analytics through the Analytics API. Browse: allows to retrieve all index content via the browse API. DeleteIndex: allows to delete or clear index content. DeleteObject: allows to delete objects from the index. EditSettings: allows to change index settings. ListIndexes: allows to list all accessible indices. Logs: allows to get the logs. Recommendation: Allows usage of the Personalization dashboard and the Recommendation API. Search: allows to search the index. SeeUnretrievableAttributes: disable unretrievableAttributes feature for all operations returning records. Settings: allows to get index settings.
5+
*/
36
export type Acl =
47
| 'addObject'
58
| 'analytics'

packages/algoliasearch/lite/model/addApiKeyResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export type AddApiKeyResponse = {
44
/**
5-
* Key string.
5+
* The API key.
66
*/
77
key: string;
88

packages/algoliasearch/lite/model/attributeOrBuiltInOperation.ts renamed to packages/algoliasearch/lite/model/attributeToUpdate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
import type { BuiltInOperation } from './builtInOperation';
44

5-
export type AttributeOrBuiltInOperation = BuiltInOperation | string;
5+
export type AttributeToUpdate = BuiltInOperation | string;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
export type BaseGetApiKeyResponse = {
4+
/**
5+
* The API key.
6+
*/
7+
value?: string;
8+
9+
/**
10+
* Time of the event expressed in milliseconds since the Unix epoch.
11+
*/
12+
createdAt: number;
13+
};

packages/algoliasearch/lite/model/createdAtObject.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

33
import type { ApiKey } from './apiKey';
4-
import type { CreatedAtObject } from './createdAtObject';
4+
import type { BaseGetApiKeyResponse } from './baseGetApiKeyResponse';
55

6-
export type Key = ApiKey & CreatedAtObject;
6+
export type GetApiKeyResponse = ApiKey & BaseGetApiKeyResponse;

packages/algoliasearch/lite/model/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ export * from './anchoring';
99
export * from './apiKey';
1010
export * from './aroundRadius';
1111
export * from './aroundRadiusAll';
12-
export * from './attributeOrBuiltInOperation';
12+
export * from './attributeToUpdate';
1313
export * from './automaticFacetFilter';
1414
export * from './automaticFacetFilters';
1515
export * from './baseBrowseResponse';
16+
export * from './baseGetApiKeyResponse';
1617
export * from './baseIndexSettings';
1718
export * from './baseSearchParams';
1819
export * from './baseSearchParamsWithoutQuery';
@@ -26,7 +27,6 @@ export * from './consequenceHide';
2627
export * from './consequenceParams';
2728
export * from './consequenceQuery';
2829
export * from './consequenceQueryObject';
29-
export * from './createdAtObject';
3030
export * from './dictionaryAction';
3131
export * from './dictionaryEntry';
3232
export * from './dictionaryEntryState';
@@ -42,13 +42,13 @@ export * from './facetOrdering';
4242
export * from './facets';
4343
export * from './facetsStats';
4444
export * from './fetchedIndex';
45+
export * from './getApiKeyResponse';
4546
export * from './highlightResult';
4647
export * from './highlightResultOption';
4748
export * from './hit';
4849
export * from './ignorePlurals';
4950
export * from './indexSettings';
5051
export * from './indexSettingsAsSearchParams';
51-
export * from './key';
5252
export * from './languages';
5353
export * from './listIndicesResponse';
5454
export * from './logType';

packages/client-search/model/acl.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3+
/**
4+
* List of rights for the API key. The following rights can be used: addObject: allows to add/update an object in the index (copy/move index are also allowed with this right). Analytics: allows to retrieve the analytics through the Analytics API. Browse: allows to retrieve all index content via the browse API. DeleteIndex: allows to delete or clear index content. DeleteObject: allows to delete objects from the index. EditSettings: allows to change index settings. ListIndexes: allows to list all accessible indices. Logs: allows to get the logs. Recommendation: Allows usage of the Personalization dashboard and the Recommendation API. Search: allows to search the index. SeeUnretrievableAttributes: disable unretrievableAttributes feature for all operations returning records. Settings: allows to get index settings.
5+
*/
36
export type Acl =
47
| 'addObject'
58
| 'analytics'

packages/client-search/model/addApiKeyResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export type AddApiKeyResponse = {
44
/**
5-
* Key string.
5+
* The API key.
66
*/
77
key: string;
88

packages/client-search/model/attributeOrBuiltInOperation.ts renamed to packages/client-search/model/attributeToUpdate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
import type { BuiltInOperation } from './builtInOperation';
44

5-
export type AttributeOrBuiltInOperation = BuiltInOperation | string;
5+
export type AttributeToUpdate = BuiltInOperation | string;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
export type BaseGetApiKeyResponse = {
4+
/**
5+
* The API key.
6+
*/
7+
value?: string;
8+
9+
/**
10+
* Time of the event expressed in milliseconds since the Unix epoch.
11+
*/
12+
createdAt: number;
13+
};

packages/client-search/model/batchParams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import type { MultipleBatchRequest } from './multipleBatchRequest';
66
* The `multipleBatch` parameters.
77
*/
88
export type BatchParams = {
9-
requests?: MultipleBatchRequest[];
9+
requests: MultipleBatchRequest[];
1010
};

packages/client-search/model/clientMethodProps.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import type { CreateIterablePromise } from '@algolia/client-common';
44

55
import type { ApiKey } from './apiKey';
66
import type { AssignUserIdParams } from './assignUserIdParams';
7-
import type { AttributeOrBuiltInOperation } from './attributeOrBuiltInOperation';
7+
import type { AttributeToUpdate } from './attributeToUpdate';
88
import type { BatchAssignUserIdsParams } from './batchAssignUserIdsParams';
99
import type { BatchDictionaryEntriesParams } from './batchDictionaryEntriesParams';
1010
import type { BatchWriteParams } from './batchWriteParams';
1111
import type { BrowseRequest } from './browseRequest';
1212
import type { DictionaryType } from './dictionaryType';
13+
import type { GetApiKeyResponse } from './getApiKeyResponse';
1314
import type { GetTaskResponse } from './getTaskResponse';
1415
import type { IndexSettings } from './indexSettings';
15-
import type { Key } from './key';
1616
import type { LogType } from './logType';
1717
import type { OperationIndexParams } from './operationIndexParams';
1818
import type { Rule } from './rule';
@@ -430,9 +430,7 @@ export type PartialUpdateObjectProps = {
430430
/**
431431
* List of attributes to update.
432432
*/
433-
attributeOrBuiltInOperation: Array<
434-
Record<string, AttributeOrBuiltInOperation>
435-
>;
433+
attributeToUpdate: Array<Record<string, AttributeToUpdate>>;
436434
/**
437435
* Creates the record if it does not exist yet.
438436
*/
@@ -761,7 +759,7 @@ export type WaitForTaskOptions = WaitForOptions<GetTaskResponse> & {
761759
taskID: number;
762760
};
763761

764-
export type WaitForApiKeyOptions = WaitForOptions<Key> & {
762+
export type WaitForApiKeyOptions = WaitForOptions<GetApiKeyResponse> & {
765763
/**
766764
* The API Key.
767765
*/

packages/client-search/model/createdAtObject.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

33
import type { ApiKey } from './apiKey';
4-
import type { CreatedAtObject } from './createdAtObject';
4+
import type { BaseGetApiKeyResponse } from './baseGetApiKeyResponse';
55

6-
export type Key = ApiKey & CreatedAtObject;
6+
export type GetApiKeyResponse = ApiKey & BaseGetApiKeyResponse;

packages/client-search/model/getObjectsParams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import type { GetObjectsRequest } from './getObjectsRequest';
66
* The `getObjects` parameters.
77
*/
88
export type GetObjectsParams = {
9-
requests?: GetObjectsRequest[];
9+
requests: GetObjectsRequest[];
1010
};

packages/client-search/model/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ export * from './apiKey';
1010
export * from './aroundRadius';
1111
export * from './aroundRadiusAll';
1212
export * from './assignUserIdParams';
13-
export * from './attributeOrBuiltInOperation';
13+
export * from './attributeToUpdate';
1414
export * from './automaticFacetFilter';
1515
export * from './automaticFacetFilters';
1616
export * from './baseBrowseResponse';
17+
export * from './baseGetApiKeyResponse';
1718
export * from './baseIndexSettings';
1819
export * from './baseSearchParams';
1920
export * from './baseSearchParamsWithoutQuery';
@@ -35,7 +36,6 @@ export * from './consequenceHide';
3536
export * from './consequenceParams';
3637
export * from './consequenceQuery';
3738
export * from './consequenceQueryObject';
38-
export * from './createdAtObject';
3939
export * from './createdAtResponse';
4040
export * from './deleteApiKeyResponse';
4141
export * from './deleteSourceResponse';
@@ -57,6 +57,7 @@ export * from './facetOrdering';
5757
export * from './facets';
5858
export * from './facetsStats';
5959
export * from './fetchedIndex';
60+
export * from './getApiKeyResponse';
6061
export * from './getDictionarySettingsResponse';
6162
export * from './getLogsResponse';
6263
export * from './getObjectsParams';
@@ -71,7 +72,6 @@ export * from './hit';
7172
export * from './ignorePlurals';
7273
export * from './indexSettings';
7374
export * from './indexSettingsAsSearchParams';
74-
export * from './key';
7575
export * from './languages';
7676
export * from './listApiKeysResponse';
7777
export * from './listClustersResponse';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
import type { Key } from './key';
3+
import type { GetApiKeyResponse } from './getApiKeyResponse';
44

55
export type ListApiKeysResponse = {
66
/**
77
* List of api keys.
88
*/
9-
keys: Key[];
9+
keys: GetApiKeyResponse[];
1010
};

packages/client-search/model/multipleBatchRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
import type { Action } from './action';
44

55
export type MultipleBatchRequest = {
6-
action?: Action;
6+
action: Action;
77

88
/**
99
* Arguments to the operation (depends on the type of the operation).
1010
*/
11-
body?: Record<string, any>;
11+
body: Record<string, any>;
1212

1313
/**
1414
* Index to target for this operation.
1515
*/
16-
indexName?: string;
16+
indexName: string;
1717
};

packages/client-search/model/multipleBatchResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ export type MultipleBatchResponse = {
44
/**
55
* List of tasksIDs per index.
66
*/
7-
taskID?: Record<string, any>;
7+
taskID: Record<string, number>;
88

99
/**
1010
* List of objectID.
1111
*/
12-
objectIDs?: string[];
12+
objectIDs: string[];
1313
};

packages/client-search/model/updateApiKeyResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export type UpdateApiKeyResponse = {
44
/**
5-
* Key string.
5+
* The API key.
66
*/
77
key: string;
88

0 commit comments

Comments
 (0)