Skip to content

Commit be0cab8

Browse files
algolia-botwriteens
andcommitted
chore: generated code for commit 6ba25e25. [skip ci]
algolia/api-clients-automation@6ba25e2 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Adewusi Victor <[email protected]>
1 parent 3a8c857 commit be0cab8

File tree

7 files changed

+18
-9
lines changed

7 files changed

+18
-9
lines changed

packages/predict/model/activateModelParams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type ActivateModelParams = {
2020
*/
2121
index: string;
2222

23-
affinities?: string[];
23+
modelAttributes?: string[];
2424

2525
contentAttributes?: string[];
2626
};

packages/predict/model/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ export * from './getAvailableModelTypesResponseInnerDataRequirements';
2020
export * from './getModelInstanceConfigStatus';
2121
export * from './getSegmentUsersResponse';
2222
export * from './limitParam';
23+
export * from './modelAttributes';
2324
export * from './modelError';
2425
export * from './modelInstance';
2526
export * from './modelMetrics';
27+
export * from './modelStatus';
2628
export * from './modelsToRetrieve';
2729
export * from './modelsToRetrieveParam';
2830
export * from './nextPageTokenParam';
@@ -42,7 +44,6 @@ export * from './segmentNameParam';
4244
export * from './segmentStatus';
4345
export * from './segmentType';
4446
export * from './segments';
45-
export * from './status';
4647
export * from './typesToRetrieve';
4748
export * from './typesToRetrieveParam';
4849
export * from './updateModelInstanceResponse';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
2+
3+
export type ModelAttributes = {
4+
name: string;
5+
6+
values?: string[];
7+
};

packages/predict/model/modelInstance.ts

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

33
import type { GetModelInstanceConfigStatus } from './getModelInstanceConfigStatus';
4+
import type { ModelAttributes } from './modelAttributes';
45

56
export type ModelInstance = {
67
/**
@@ -22,7 +23,7 @@ export type ModelInstance = {
2223

2324
index: string;
2425

25-
affinities: string[];
26+
modelAttributes: ModelAttributes;
2627

2728
contentAttributes: string[];
2829

@@ -38,5 +39,5 @@ export type ModelInstance = {
3839

3940
errorMessage?: string;
4041

41-
modelStatus?: GetModelInstanceConfigStatus;
42+
modelStatus: GetModelInstanceConfigStatus;
4243
};

packages/predict/model/status.ts renamed to packages/predict/model/modelStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
/**
44
* `active` - model is running and generating predictions. The active value is allowed only if the current status of the model is `inactive`. \\ `inactive` - model training and inference have been paused. The inactive value is allowed only if the current status of the model is `active`.
55
*/
6-
export type Status = 'active' | 'inactive';
6+
export type ModelStatus = 'active' | 'inactive';
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

3-
import type { Status } from './status';
3+
import type { ModelStatus } from './modelStatus';
44

55
export type UpdateModelParams = {
66
/**
77
* The model’s instance name.
88
*/
99
name?: string;
1010

11-
affinities?: string[];
11+
modelAttributes?: string[];
1212

1313
contentAttributes?: string[];
1414

15-
status?: Status;
15+
modelStatus?: ModelStatus;
1616
};

packages/predict/src/predictClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function createPredictClient({
125125
},
126126

127127
/**
128-
* Activate an existing model template. This action triggers the training and inference pipelines for the selected model. The model is added with `status=pending`. If a model with the exact same source & index already exists, the API endpoint returns an error.
128+
* Activate an existing model template. This action triggers the training and inference pipelines for the selected model. The model is added with `modelStatus=pending`. If a model with the exact same source & index already exists, the API endpoint returns an error.
129129
*
130130
* @summary Activate a model instance.
131131
* @param activateModelParams - The activateModelParams object.

0 commit comments

Comments
 (0)