@coveo/platform-client 56.0.0 → 56.2.0
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/cjs/resources/Extensions/Extensions.js +47 -4
- package/dist/cjs/resources/Extensions/Extensions.js.map +1 -1
- package/dist/cjs/resources/MachineLearning/MachineLearning.js +7 -4
- package/dist/cjs/resources/MachineLearning/MachineLearning.js.map +1 -1
- package/dist/cjs/resources/MachineLearning/MachineLearningInterfaces.js +13 -0
- package/dist/cjs/resources/MachineLearning/MachineLearningInterfaces.js.map +1 -1
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfo.js +13 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfo.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfoInterfaces.js +3 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfoInterfaces.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetails.js +3 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetails.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsBuildingStats.js +3 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsBuildingStats.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsCommerceEvents.js +3 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsCommerceEvents.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsLanguages.js +3 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsLanguages.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsStatsPerSource.js +3 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsStatsPerSource.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsSubModels.js +3 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsSubModels.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/index.js +10 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/details/index.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/index.js +7 -0
- package/dist/cjs/resources/MachineLearning/ModelDetailedInfo/index.js.map +1 -0
- package/dist/cjs/resources/MachineLearning/index.js +9 -8
- package/dist/cjs/resources/MachineLearning/index.js.map +1 -1
- package/dist/esm/resources/Extensions/Extensions.js +47 -4
- package/dist/esm/resources/Extensions/Extensions.js.map +1 -1
- package/dist/esm/resources/MachineLearning/MachineLearning.js +7 -4
- package/dist/esm/resources/MachineLearning/MachineLearning.js.map +1 -1
- package/dist/esm/resources/MachineLearning/MachineLearningInterfaces.js +12 -1
- package/dist/esm/resources/MachineLearning/MachineLearningInterfaces.js.map +1 -1
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfo.js +9 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfo.js.map +1 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfoInterfaces.js +2 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfoInterfaces.js.map +1 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetails.js +2 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetails.js.map +1 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsBuildingStats.js +2 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsBuildingStats.js.map +1 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsCommerceEvents.js +2 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsCommerceEvents.js.map +1 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsLanguages.js +2 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsLanguages.js.map +1 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsStatsPerSource.js +2 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsStatsPerSource.js.map +1 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsSubModels.js +2 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsSubModels.js.map +1 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/index.js +7 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/details/index.js.map +1 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/index.js +4 -0
- package/dist/esm/resources/MachineLearning/ModelDetailedInfo/index.js.map +1 -0
- package/dist/esm/resources/MachineLearning/index.js +9 -8
- package/dist/esm/resources/MachineLearning/index.js.map +1 -1
- package/dist/types/resources/Extensions/Extensions.d.ts +47 -4
- package/dist/types/resources/Extensions/ExtensionsInterfaces.d.ts +166 -30
- package/dist/types/resources/MachineLearning/MachineLearning.d.ts +6 -4
- package/dist/types/resources/MachineLearning/MachineLearningInterfaces.d.ts +11 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfo.d.ts +6 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfoInterfaces.d.ts +95 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/details/ModelDetails.d.ts +21 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsBuildingStats.d.ts +30 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsCommerceEvents.d.ts +6 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsLanguages.d.ts +8 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsStatsPerSource.d.ts +7 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/details/ModelDetailsSubModels.d.ts +5 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/details/index.d.ts +6 -0
- package/dist/types/resources/MachineLearning/ModelDetailedInfo/index.d.ts +3 -0
- package/dist/types/resources/MachineLearning/ModelListing/ModelListingInterfaces.d.ts +2 -1
- package/dist/types/resources/MachineLearning/index.d.ts +9 -8
- package/package.json +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
export * from './CaseClassificationConfiguration/index.js';
|
|
2
|
+
export * from './DNEConfiguration/index.js';
|
|
3
|
+
export * from './DocumentInterfaces.js';
|
|
4
|
+
export * from './FilterConditions.js';
|
|
5
|
+
export * from './IAPRConfiguration/index.js';
|
|
1
6
|
export * from './MachineLearning.js';
|
|
2
7
|
export * from './MachineLearningInterfaces.js';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './DocumentInterfaces.js';
|
|
5
|
-
export * from './Models/index.js';
|
|
8
|
+
export * from './ModelDetailedInfo/index.js';
|
|
6
9
|
export * from './ModelInformation/index.js';
|
|
7
10
|
export * from './ModelListing/index.js';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './CaseClassificationConfiguration/index.js';
|
|
10
|
-
export * from './SmartSnippetsConfiguration/index.js';
|
|
11
|
+
export * from './Models/index.js';
|
|
11
12
|
export * from './PQSConfiguration/index.js';
|
|
13
|
+
export * from './RGAConfiguration/index.js';
|
|
12
14
|
export * from './SemanticEncoderConfiguration/index.js';
|
|
13
|
-
export * from './
|
|
15
|
+
export * from './SmartSnippetsConfiguration/index.js';
|
|
14
16
|
export * from './UserActionHistoryConfiguration/index.js';
|
|
15
|
-
export * from './RGAConfiguration/index.js';
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/MachineLearning/index.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC"}
|
|
@@ -2,27 +2,70 @@ import Resource from '../Resource.js';
|
|
|
2
2
|
import { CreateExtension, ExtensionCompileCode, ExtensionCompileResult, ExtensionContentVersionModel, ExtensionModel } from './ExtensionsInterfaces.js';
|
|
3
3
|
export default class Extension extends Resource {
|
|
4
4
|
static baseUrl: string;
|
|
5
|
+
/**
|
|
6
|
+
* Creates an [extension](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
7
|
+
* @param extension The configuration to use for the new extension.
|
|
8
|
+
* @returns The newly created extension.
|
|
9
|
+
*/
|
|
5
10
|
create(extension: CreateExtension): Promise<ExtensionModel>;
|
|
11
|
+
/**
|
|
12
|
+
* Updates an [extension](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
13
|
+
* @param extensionId The unique identifier of the extension to update.
|
|
14
|
+
* @param options The new configuration to use for the updated extension.
|
|
15
|
+
* @returns The updated extension.
|
|
16
|
+
*/
|
|
6
17
|
update(extensionId: string, options: CreateExtension): Promise<ExtensionModel>;
|
|
18
|
+
/**
|
|
19
|
+
* Deletes an [extension](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
20
|
+
* @param extensionId The unique identifier of the extension to delete.
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
7
23
|
delete(extensionId: string): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Enables a disabled [extension](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
26
|
+
*
|
|
27
|
+
* Note: Disabled extensions are not executed.
|
|
28
|
+
* @param extensionId The unique identifier of the extension to enable.
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
8
31
|
enable(extensionId: string): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Disables an [extension](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
34
|
+
*
|
|
35
|
+
* Note: Disabled extensions are not executed.
|
|
36
|
+
* @param extensionId The unique identifier of the extension to disable.
|
|
37
|
+
* @param reason The reason why the extension is disabled.
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
9
40
|
disable(extensionId: string, reason?: string): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Shows an [extension](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
43
|
+
* @param extensionId Shows an extension in a Coveo Cloud organization.
|
|
44
|
+
* @returns The extension specified by the provided id.
|
|
45
|
+
*/
|
|
10
46
|
get(extensionId: string): Promise<ExtensionModel>;
|
|
47
|
+
/**
|
|
48
|
+
* Lists all [extensions](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
49
|
+
* @returns A list of extensions.
|
|
50
|
+
*/
|
|
11
51
|
list(): Promise<ExtensionModel[]>;
|
|
12
52
|
/**
|
|
13
53
|
* Lists all versions of an [extension](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
14
|
-
* @param extensionId
|
|
54
|
+
* @param extensionId he unique identifier of the target extension.
|
|
55
|
+
* @returns A list of versions of the extension.
|
|
15
56
|
*/
|
|
16
57
|
listVersions(extensionId: string): Promise<ExtensionContentVersionModel[]>;
|
|
17
58
|
/**
|
|
18
59
|
* Shows a specific version of an [extension](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
19
|
-
* @param extensionId
|
|
20
|
-
* @param versionId
|
|
60
|
+
* @param extensionId The unique identifier of the target extension.
|
|
61
|
+
* @param versionId The unique identifier of the extension version to show.
|
|
62
|
+
* @returns The extension specified by the provided id and version id.
|
|
21
63
|
*/
|
|
22
64
|
getVersion(extensionId: string, versionId: string): Promise<ExtensionModel>;
|
|
23
65
|
/**
|
|
24
|
-
*
|
|
66
|
+
* Tries to compile code that would be used in an [extension](https://docs.coveo.com/en/206/) in a [Coveo Cloud organization](https://docs.coveo.com/en/185/).
|
|
25
67
|
* @param extensionCode The code to compile
|
|
68
|
+
* @returns Details regarding the outcome of an extension script compilation.
|
|
26
69
|
*/
|
|
27
70
|
validateCode(extensionCode: ExtensionCompileCode): Promise<ExtensionCompileResult>;
|
|
28
71
|
}
|
|
@@ -1,56 +1,192 @@
|
|
|
1
1
|
import { GranularResource } from '../../Entry.js';
|
|
2
2
|
import { DataStreamType, ExtensionLanguageType } from '../Enums.js';
|
|
3
3
|
type Version = 'v1' | 'v2';
|
|
4
|
+
export interface ExtensionHealthModel {
|
|
5
|
+
/**
|
|
6
|
+
* A qualitative health indicator.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
healthIndicator: 'GOOD' | 'WARNING' | 'PROBLEMATIC' | 'UNKNOWN';
|
|
10
|
+
/**
|
|
11
|
+
* Additional details if healthIndicator value is `WARNING` or `PROBLEMATIC`.
|
|
12
|
+
*/
|
|
13
|
+
reason: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ExtensionDisabledStatusModel {
|
|
16
|
+
/**
|
|
17
|
+
* The extension disablement date (in number of milliseconds since UNIX epoch).
|
|
18
|
+
* @example 1556034174000
|
|
19
|
+
*/
|
|
20
|
+
disabledDate: number;
|
|
21
|
+
/**
|
|
22
|
+
* The reason why the extension was disabled.
|
|
23
|
+
*/
|
|
24
|
+
reason: string;
|
|
25
|
+
}
|
|
26
|
+
export interface ExtensionStatisticsModel {
|
|
27
|
+
/**
|
|
28
|
+
* The average extension execution duration in seconds.
|
|
29
|
+
*/
|
|
30
|
+
averageDurationInSeconds: number;
|
|
31
|
+
/**
|
|
32
|
+
* The number of extension executions for which the script returned an error.
|
|
33
|
+
*/
|
|
34
|
+
numberOfErrors: number;
|
|
35
|
+
/**
|
|
36
|
+
* The total number of executions of the extension.
|
|
37
|
+
*/
|
|
38
|
+
numberOfExecutions: number;
|
|
39
|
+
/**
|
|
40
|
+
* The number of times the extension was not executed due to any of the following reasons:
|
|
41
|
+
* - The extension condition was evaluated to false.
|
|
42
|
+
* - The extension timed out.
|
|
43
|
+
* - The extension was disabled.
|
|
44
|
+
*/
|
|
45
|
+
numberOfSkips: number;
|
|
46
|
+
/**
|
|
47
|
+
* The number of executions that reached the maximum execution time (default of 5 seconds).
|
|
48
|
+
*/
|
|
49
|
+
numberOfTimeouts: number;
|
|
50
|
+
}
|
|
51
|
+
export interface ExtensionStatusModel {
|
|
52
|
+
/**
|
|
53
|
+
* Execution statistics pertaining to an extension over the past 24 hours (for all items from all sources to which the extension applies).
|
|
54
|
+
*/
|
|
55
|
+
dailyStatistics: ExtensionStatisticsModel;
|
|
56
|
+
/**
|
|
57
|
+
* Information regarding the disabled state of an extension, if applicable.
|
|
58
|
+
*/
|
|
59
|
+
disabledStatus?: ExtensionDisabledStatusModel;
|
|
60
|
+
/**
|
|
61
|
+
* Information regarding a health characteristic of the extension.
|
|
62
|
+
*/
|
|
63
|
+
durationHealth: ExtensionHealthModel;
|
|
64
|
+
/**
|
|
65
|
+
* The last date at which the extension was automatically disabled by the service, (in number of milliseconds since UNIX epoch).
|
|
66
|
+
* @example 1533916446000
|
|
67
|
+
*/
|
|
68
|
+
lastAutoDisablingDate: number;
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated use lastAutoDisablingDate instead.
|
|
71
|
+
*/
|
|
72
|
+
lastDisablingDate: number;
|
|
73
|
+
/**
|
|
74
|
+
* Information regarding a health characteristic of the extension.
|
|
75
|
+
*/
|
|
76
|
+
timeoutHealth: ExtensionHealthModel;
|
|
77
|
+
/**
|
|
78
|
+
* A qualitative indicator of the likelihood that the extension will time out.
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
timeoutLikeliness: 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH';
|
|
82
|
+
}
|
|
83
|
+
export interface ExtensionUsedByModel {
|
|
84
|
+
/**
|
|
85
|
+
* The unique identifier of the source.
|
|
86
|
+
* @example mycoveocloudv2organizationg8tp8wu3-tqv7hb5wfju45im3lnuvtw2moq
|
|
87
|
+
*/
|
|
88
|
+
sourceId: string;
|
|
89
|
+
/**
|
|
90
|
+
* The name of the source.
|
|
91
|
+
* @example mysource
|
|
92
|
+
*/
|
|
93
|
+
sourceName: string;
|
|
94
|
+
}
|
|
4
95
|
export interface ExtensionModel {
|
|
96
|
+
/**
|
|
97
|
+
* The api version.
|
|
98
|
+
*/
|
|
5
99
|
apiVersion: Version;
|
|
100
|
+
/**
|
|
101
|
+
* The body of the extension (user script), written in Python using the [document object](https://docs.coveo.com/en/34/index-content/document-object-python-api-reference).
|
|
102
|
+
*/
|
|
6
103
|
content: string;
|
|
104
|
+
/**
|
|
105
|
+
* The creation date of the extension (in number of milliseconds since UNIX epoch).
|
|
106
|
+
* @example 1556034174000
|
|
107
|
+
*/
|
|
7
108
|
createdDate: number;
|
|
109
|
+
/**
|
|
110
|
+
* A description of the extension
|
|
111
|
+
*/
|
|
8
112
|
description: string;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the extension is enabled.
|
|
115
|
+
*
|
|
116
|
+
* Note: Disabled extensions are not executed.
|
|
117
|
+
*/
|
|
9
118
|
enabled: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* The unique identifier of the extension.
|
|
121
|
+
* @example mycoveocloudv2organizationg8tp8wu3-vwlyqfbtjkotxqkmrxqjcbcpoy
|
|
122
|
+
*/
|
|
10
123
|
id: string;
|
|
124
|
+
/**
|
|
125
|
+
* The Python version.
|
|
126
|
+
*/
|
|
11
127
|
language: ExtensionLanguageType;
|
|
128
|
+
/**
|
|
129
|
+
* The last modification date of the extension (in number of milliseconds since UNIX epoch).
|
|
130
|
+
* @example 1556308241000
|
|
131
|
+
*/
|
|
12
132
|
lastModified: number;
|
|
133
|
+
/**
|
|
134
|
+
* The name of the extension.
|
|
135
|
+
*/
|
|
13
136
|
name: string;
|
|
137
|
+
/**
|
|
138
|
+
* The [data streams](https://docs.coveo.com/en/2891/glossary/data-stream) required by the extension.
|
|
139
|
+
*/
|
|
14
140
|
requiredDataStreams: DataStreamType[];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
timeoutHealth: {
|
|
34
|
-
healthIndicator: string;
|
|
35
|
-
reason: string;
|
|
36
|
-
};
|
|
37
|
-
timeoutLikeliness: string;
|
|
38
|
-
};
|
|
39
|
-
usedBy: [
|
|
40
|
-
{
|
|
41
|
-
sourceId: string;
|
|
42
|
-
sourceName: string;
|
|
43
|
-
}
|
|
44
|
-
];
|
|
141
|
+
/**
|
|
142
|
+
* Status details of an extension.
|
|
143
|
+
*/
|
|
144
|
+
status: ExtensionStatusModel;
|
|
145
|
+
/**
|
|
146
|
+
* The sources the extension applies to.
|
|
147
|
+
*
|
|
148
|
+
* Note: Only returned when performing GET/PUT /extensions/{extensionId} requests.
|
|
149
|
+
*/
|
|
150
|
+
usedBy: ExtensionUsedByModel[];
|
|
151
|
+
/**
|
|
152
|
+
* Whether the extension uses vault parameters or not.
|
|
153
|
+
*/
|
|
154
|
+
useVault?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* The unique identifier of the extension version.
|
|
157
|
+
* @example hdJSDb4hTkdnsCynNtF.d657FgLSDydcj
|
|
158
|
+
*/
|
|
45
159
|
versionId: string;
|
|
46
160
|
}
|
|
47
161
|
export interface CreateExtension extends GranularResource {
|
|
162
|
+
/**
|
|
163
|
+
* The body of the extension (user script), written in Python using the [document object](https://docs.coveo.com/en/34/index-content/document-object-python-api-reference).
|
|
164
|
+
*/
|
|
48
165
|
content: string;
|
|
166
|
+
/**
|
|
167
|
+
* A name for the extension.
|
|
168
|
+
*/
|
|
49
169
|
name: string;
|
|
170
|
+
/**
|
|
171
|
+
* The api version.
|
|
172
|
+
*/
|
|
50
173
|
apiVersion?: Version;
|
|
174
|
+
/**
|
|
175
|
+
* A description of the extension.
|
|
176
|
+
*/
|
|
51
177
|
description?: string;
|
|
178
|
+
/**
|
|
179
|
+
* The Python version.
|
|
180
|
+
*/
|
|
52
181
|
language?: ExtensionLanguageType;
|
|
182
|
+
/**
|
|
183
|
+
* The [data streams](https://docs.coveo.com/en/2891/glossary/data-stream) required by the extension.
|
|
184
|
+
*/
|
|
53
185
|
requiredDataStreams?: DataStreamType[];
|
|
186
|
+
/**
|
|
187
|
+
* Whether the extension uses vault parameters or not.
|
|
188
|
+
*/
|
|
189
|
+
useVault?: boolean;
|
|
54
190
|
}
|
|
55
191
|
export interface ExtensionCompileCode {
|
|
56
192
|
/**
|
|
@@ -2,15 +2,16 @@ import API from '../../APICore.js';
|
|
|
2
2
|
import Resource from '../Resource.js';
|
|
3
3
|
import CaseClassificationConfiguration from './CaseClassificationConfiguration/CaseClassificationConfiguration.js';
|
|
4
4
|
import DNEConfiguration from './DNEConfiguration/DNEConfiguration.js';
|
|
5
|
-
import
|
|
5
|
+
import IAPRConfiguration from './IAPRConfiguration/IAPRConfiguration.js';
|
|
6
6
|
import { MLModelCreated, RegistrationModel } from './MachineLearningInterfaces.js';
|
|
7
|
+
import ModelDetailedInfo from './ModelDetailedInfo/ModelDetailedInfo.js';
|
|
8
|
+
import ModelListing from './ModelListing/ModelListing.js';
|
|
7
9
|
import Models from './Models/Models.js';
|
|
8
10
|
import PQSConfiguration from './PQSConfiguration/PQSConfiguration.js';
|
|
9
|
-
import UserActionHistoryConfiguration from './UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';
|
|
10
|
-
import IAPRConfiguration from './IAPRConfiguration/IAPRConfiguration.js';
|
|
11
|
-
import ModelListing from './ModelListing/ModelListing.js';
|
|
12
11
|
import RelevanceGenerativeAnsweringConfiguration from './RGAConfiguration/RelevanceGenerativeAnsweringConfiguration.js';
|
|
13
12
|
import SemanticEncoderConfiguration from './SemanticEncoderConfiguration/SemanticEncoderConfiguration.js';
|
|
13
|
+
import SmartSnippetsConfiguration from './SmartSnippetsConfiguration/SmartSnippetsConfiguration.js';
|
|
14
|
+
import UserActionHistoryConfiguration from './UserActionHistoryConfiguration/UserActionHistoryConfiguration.js';
|
|
14
15
|
export default class MachineLearning extends Resource {
|
|
15
16
|
protected api: API;
|
|
16
17
|
protected serverlessApi: API;
|
|
@@ -25,6 +26,7 @@ export default class MachineLearning extends Resource {
|
|
|
25
26
|
modelListing: ModelListing;
|
|
26
27
|
relevanceGenerativeAnsweringConfig: RelevanceGenerativeAnsweringConfiguration;
|
|
27
28
|
semanticEncoderConfig: SemanticEncoderConfiguration;
|
|
29
|
+
modelDetailedInfo: ModelDetailedInfo;
|
|
28
30
|
constructor(api: API, serverlessApi: API);
|
|
29
31
|
register(registration: RegistrationModel): Promise<MLModelCreated>;
|
|
30
32
|
}
|
|
@@ -85,3 +85,14 @@ export interface MLModelCreated extends New<MLModel> {
|
|
|
85
85
|
startTime?: number;
|
|
86
86
|
resourceId?: string;
|
|
87
87
|
}
|
|
88
|
+
export declare enum MLModelStatus {
|
|
89
|
+
ARCHIVED = "ARCHIVED",
|
|
90
|
+
SOON_TO_BE_ARCHIVED = "SOON_TO_BE_ARCHIVED",
|
|
91
|
+
BUILD_IN_PROGRESS = "BUILD_IN_PROGRESS",
|
|
92
|
+
ERROR = "ERROR",
|
|
93
|
+
ERROR_INTERNAL = "ERROR_INTERNAL",
|
|
94
|
+
LIMITED = "LIMITED",
|
|
95
|
+
NOT_ASSOCIATED = "NOT_ASSOCIATED",
|
|
96
|
+
ACTIVE = "ACTIVE",
|
|
97
|
+
INACTIVE = "INACTIVE"
|
|
98
|
+
}
|
package/dist/types/resources/MachineLearning/ModelDetailedInfo/ModelDetailedInfoInterfaces.d.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { MLModelStatus } from '../MachineLearningInterfaces.js';
|
|
2
|
+
import { ModelDetails } from './details/ModelDetails.js';
|
|
3
|
+
export interface ModelAssociation {
|
|
4
|
+
/**
|
|
5
|
+
* The unique identifier of the query pipeline to which the model is associated.
|
|
6
|
+
* @example 38b08160-d7d4-4626-8e03-53587c23415d
|
|
7
|
+
*/
|
|
8
|
+
parentId: string;
|
|
9
|
+
/**
|
|
10
|
+
* The unique identifier of the model association.
|
|
11
|
+
* @example 917af358-13fd-4c8e-94af-7cf649bddc48
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* The name of the query pipeline or case assist configuration the model is associated with.
|
|
16
|
+
* @example association name
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* The type of the association.
|
|
21
|
+
* @example QUERY_PIPELINE
|
|
22
|
+
*/
|
|
23
|
+
associationType: 'QUERY_PIPELINE' | 'CASE_ASSIST';
|
|
24
|
+
}
|
|
25
|
+
export interface ModelIssues {
|
|
26
|
+
/**
|
|
27
|
+
* A description of an error or limitation present in the model.
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
* The recommended action to perform to resolve the error or limitation.
|
|
32
|
+
*/
|
|
33
|
+
troubleshoot: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ModelStatusInfo {
|
|
36
|
+
/**
|
|
37
|
+
* The status of the model.
|
|
38
|
+
* @example ACTIVE
|
|
39
|
+
*/
|
|
40
|
+
modelStatus: MLModelStatus;
|
|
41
|
+
/**
|
|
42
|
+
* The remaining days until the model is archived.
|
|
43
|
+
* @example 2
|
|
44
|
+
*/
|
|
45
|
+
daysUntilArchival: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ModelWithDetails {
|
|
48
|
+
/**
|
|
49
|
+
* The id of the engine.
|
|
50
|
+
* @Example topclicks
|
|
51
|
+
*/
|
|
52
|
+
engineId: string;
|
|
53
|
+
/**
|
|
54
|
+
* The unique identifier of the target machine learning model.
|
|
55
|
+
* @example My_Model_ID
|
|
56
|
+
*/
|
|
57
|
+
modelId: string;
|
|
58
|
+
/**
|
|
59
|
+
* The name of the model configuration.
|
|
60
|
+
* @example My model
|
|
61
|
+
*/
|
|
62
|
+
modelDisplayName: string;
|
|
63
|
+
/**
|
|
64
|
+
* The associations related to this model.
|
|
65
|
+
* @example [{
|
|
66
|
+
* "parentId": "38b08160-d7d4-4626-8e03-53587c23415d",
|
|
67
|
+
* "id": "917af358-13fd-4c8e-94af-7cf649bddc48",
|
|
68
|
+
* "name": "test pipeline",
|
|
69
|
+
* "associationType": "QUERY_PIPELINE"
|
|
70
|
+
* }]
|
|
71
|
+
*/
|
|
72
|
+
modelAssociations: ModelAssociation[];
|
|
73
|
+
/**
|
|
74
|
+
* The date and time the model was last updated.
|
|
75
|
+
* @example 1691762520000
|
|
76
|
+
*/
|
|
77
|
+
estimatedPreviousModelUpdateTime: number;
|
|
78
|
+
/**
|
|
79
|
+
* The date and time the model is scheduled to start its next update.
|
|
80
|
+
* @example 1691762520000
|
|
81
|
+
*/
|
|
82
|
+
nextModelUpdateTime: number;
|
|
83
|
+
/**
|
|
84
|
+
* The description and troubleshooting messages for a model error or limitation.
|
|
85
|
+
*/
|
|
86
|
+
modelIssues: ModelIssues[];
|
|
87
|
+
/**
|
|
88
|
+
* The detailed information about the model.
|
|
89
|
+
*/
|
|
90
|
+
modelDetails?: ModelDetails;
|
|
91
|
+
/**
|
|
92
|
+
* The current status of the model.
|
|
93
|
+
*/
|
|
94
|
+
modelStatusInfo: ModelStatusInfo;
|
|
95
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ModelDetailsBuildingStats } from './ModelDetailsBuildingStats.js';
|
|
2
|
+
import { ModelDetailsLanguages } from './ModelDetailsLanguages.js';
|
|
3
|
+
import { ModelDetailsSubModels } from './ModelDetailsSubModels.js';
|
|
4
|
+
export interface ModelDetails {
|
|
5
|
+
possibleRecommendations?: number;
|
|
6
|
+
totalQueries?: number;
|
|
7
|
+
recommendationsPerLanguage?: Map<string, number>;
|
|
8
|
+
userContextFields?: string[];
|
|
9
|
+
contentIDKeys?: string[];
|
|
10
|
+
candidatesPerFilters?: Map<string, number>;
|
|
11
|
+
contextCandidateExamples?: Map<string, string[]>;
|
|
12
|
+
languages?: Map<string, ModelDetailsLanguages>;
|
|
13
|
+
candidateExamples?: Map<string, string[]>;
|
|
14
|
+
candidatesPerLanguages?: Map<string, number>;
|
|
15
|
+
minClickCountPerLang?: Map<string, number>;
|
|
16
|
+
subModels?: {
|
|
17
|
+
[key: string]: ModelDetailsSubModels;
|
|
18
|
+
};
|
|
19
|
+
candidates?: number;
|
|
20
|
+
modelDetailedBuildingStats?: ModelDetailsBuildingStats;
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ModelDetailsCommerceEvents } from './ModelDetailsCommerceEvents.js';
|
|
2
|
+
import { ModelDetailsStatsPerSource } from './ModelDetailsStatsPerSource.js';
|
|
3
|
+
export interface ModelDetailsBuildingStats {
|
|
4
|
+
documentWithSnippetRatio?: number;
|
|
5
|
+
headerCount?: number;
|
|
6
|
+
snippetCount?: number;
|
|
7
|
+
meanSnippetLength?: number;
|
|
8
|
+
documentCount?: number;
|
|
9
|
+
documentWithSnippetCount?: number;
|
|
10
|
+
searchEventCount?: number;
|
|
11
|
+
clickEventCount?: number;
|
|
12
|
+
viewEventCount?: number;
|
|
13
|
+
customEventCount?: number;
|
|
14
|
+
segmentedVisitsCount?: number;
|
|
15
|
+
searchCount?: number;
|
|
16
|
+
clickCount?: number;
|
|
17
|
+
viewCount?: number;
|
|
18
|
+
visitsCount?: number;
|
|
19
|
+
facetSelectEventCount?: number;
|
|
20
|
+
snippetsPerDocument?: {
|
|
21
|
+
min?: number;
|
|
22
|
+
max?: number;
|
|
23
|
+
mean?: number;
|
|
24
|
+
};
|
|
25
|
+
invalidHtmlDocumentCount?: number;
|
|
26
|
+
documentWithoutIdCount?: number;
|
|
27
|
+
documentWithDuplicatedIdCount?: number;
|
|
28
|
+
commerceEventCounts?: ModelDetailsCommerceEvents;
|
|
29
|
+
modelDetailedStatsPerSource?: ModelDetailsStatsPerSource[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './ModelDetails.js';
|
|
2
|
+
export * from './ModelDetailsBuildingStats.js';
|
|
3
|
+
export * from './ModelDetailsCommerceEvents.js';
|
|
4
|
+
export * from './ModelDetailsLanguages.js';
|
|
5
|
+
export * from './ModelDetailsStatsPerSource.js';
|
|
6
|
+
export * from './ModelDetailsSubModels.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MLModelStatus } from '../MachineLearningInterfaces.js';
|
|
1
2
|
export interface MLListingModel {
|
|
2
3
|
/**
|
|
3
4
|
* The model display name in the Coveo Administration console.
|
|
@@ -50,7 +51,7 @@ export interface MLModelStatusInfo {
|
|
|
50
51
|
* The status of the model.
|
|
51
52
|
* @Example `ACTIVE`
|
|
52
53
|
*/
|
|
53
|
-
modelStatus:
|
|
54
|
+
modelStatus: MLModelStatus;
|
|
54
55
|
/**
|
|
55
56
|
* The remaining days until the model is archived.
|
|
56
57
|
* @Example `4`
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
export * from './CaseClassificationConfiguration/index.js';
|
|
2
|
+
export * from './DNEConfiguration/index.js';
|
|
3
|
+
export * from './DocumentInterfaces.js';
|
|
4
|
+
export * from './FilterConditions.js';
|
|
5
|
+
export * from './IAPRConfiguration/index.js';
|
|
1
6
|
export * from './MachineLearning.js';
|
|
2
7
|
export * from './MachineLearningInterfaces.js';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './DocumentInterfaces.js';
|
|
5
|
-
export * from './Models/index.js';
|
|
8
|
+
export * from './ModelDetailedInfo/index.js';
|
|
6
9
|
export * from './ModelInformation/index.js';
|
|
7
10
|
export * from './ModelListing/index.js';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './CaseClassificationConfiguration/index.js';
|
|
10
|
-
export * from './SmartSnippetsConfiguration/index.js';
|
|
11
|
+
export * from './Models/index.js';
|
|
11
12
|
export * from './PQSConfiguration/index.js';
|
|
13
|
+
export * from './RGAConfiguration/index.js';
|
|
12
14
|
export * from './SemanticEncoderConfiguration/index.js';
|
|
13
|
-
export * from './
|
|
15
|
+
export * from './SmartSnippetsConfiguration/index.js';
|
|
14
16
|
export * from './UserActionHistoryConfiguration/index.js';
|
|
15
|
-
export * from './RGAConfiguration/index.js';
|