@fluid-topics/public-api 1.0.99 → 1.0.100-alpha
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/index.js +4 -0
- package/dist/cjs/types/ft-common/public.js +133 -73
- package/dist/cjs/types/ft-server/public.js +111 -4
- package/dist/fluidtopics.min.js +1 -1
- package/dist/mjs/index.d.ts +3 -1
- package/dist/mjs/index.js +4 -0
- package/dist/mjs/types/ft-common/public.d.ts +107 -59
- package/dist/mjs/types/ft-common/public.js +116 -63
- package/dist/mjs/types/ft-server/public.d.ts +90 -3
- package/dist/mjs/types/ft-server/public.js +94 -2
- package/package.json +1 -1
- package/.npmignore +0 -14
- package/dist/cjs/helpers/GenAIChunkReader.js +0 -66
- package/dist/mjs/helpers/GenAIChunkReader.d.ts +0 -19
- package/dist/mjs/helpers/GenAIChunkReader.js +0 -37
- package/yarn.lock +0 -4323
|
@@ -29,11 +29,35 @@ export declare enum FtAnalyticsDocumentType {
|
|
|
29
29
|
UNSTRUCTURED_DOCUMENT = "UNSTRUCTURED_DOCUMENT",
|
|
30
30
|
SHARED_PERSONAL_BOOK = "SHARED_PERSONAL_BOOK",
|
|
31
31
|
PERSONAL_BOOK = "PERSONAL_BOOK",
|
|
32
|
-
|
|
32
|
+
ATTACHMENT = "ATTACHMENT",
|
|
33
33
|
RESOURCE = "RESOURCE"
|
|
34
34
|
}
|
|
35
35
|
export type FtAnalyticsDocumentTypeKeys = keyof typeof FtAnalyticsDocumentType;
|
|
36
36
|
export declare const isFtAnalyticsDocumentType: (o: any) => o is FtAnalyticsDocumentType;
|
|
37
|
+
export interface FtAnalyticsEventAIProfile {
|
|
38
|
+
chatbotDetails?: FtAnalyticsEventAIProfileChatbotDetails;
|
|
39
|
+
translationDetails?: FtAnalyticsEventAIProfileTranslationDetails;
|
|
40
|
+
completionDetails?: FtAnalyticsEventAIProfileCompletionDetails;
|
|
41
|
+
name: string;
|
|
42
|
+
id: string;
|
|
43
|
+
type: string;
|
|
44
|
+
}
|
|
45
|
+
export declare const isFtAnalyticsEventAIProfile: (o: any) => o is FtAnalyticsEventAIProfile;
|
|
46
|
+
export interface FtAnalyticsEventAIProfileChatbotDetails {
|
|
47
|
+
provider: string;
|
|
48
|
+
model?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare const isFtAnalyticsEventAIProfileChatbotDetails: (o: any) => o is FtAnalyticsEventAIProfileChatbotDetails;
|
|
51
|
+
export interface FtAnalyticsEventAIProfileCompletionDetails {
|
|
52
|
+
provider: string;
|
|
53
|
+
model?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare const isFtAnalyticsEventAIProfileCompletionDetails: (o: any) => o is FtAnalyticsEventAIProfileCompletionDetails;
|
|
56
|
+
export interface FtAnalyticsEventAIProfileTranslationDetails {
|
|
57
|
+
provider: string;
|
|
58
|
+
engine?: string;
|
|
59
|
+
}
|
|
60
|
+
export declare const isFtAnalyticsEventAIProfileTranslationDetails: (o: any) => o is FtAnalyticsEventAIProfileTranslationDetails;
|
|
37
61
|
export interface FtAnalyticsEventDisplay {
|
|
38
62
|
width: number;
|
|
39
63
|
height: number;
|
|
@@ -48,30 +72,10 @@ export interface FtAnalyticsEventDocument {
|
|
|
48
72
|
parentId?: string;
|
|
49
73
|
}
|
|
50
74
|
export declare const isFtAnalyticsEventDocument: (o: any) => o is FtAnalyticsEventDocument;
|
|
51
|
-
export interface
|
|
52
|
-
|
|
53
|
-
translationDetails?: FtAnalyticsEventGenAIProfileTranslationDetails;
|
|
54
|
-
completionDetails?: FtAnalyticsEventGenAIProfileCompletionDetails;
|
|
55
|
-
name: string;
|
|
56
|
-
id: string;
|
|
57
|
-
type: string;
|
|
58
|
-
}
|
|
59
|
-
export declare const isFtAnalyticsEventGenAIProfile: (o: any) => o is FtAnalyticsEventGenAIProfile;
|
|
60
|
-
export interface FtAnalyticsEventGenAIProfileChatbotDetails {
|
|
61
|
-
provider: string;
|
|
62
|
-
model?: string;
|
|
63
|
-
}
|
|
64
|
-
export declare const isFtAnalyticsEventGenAIProfileChatbotDetails: (o: any) => o is FtAnalyticsEventGenAIProfileChatbotDetails;
|
|
65
|
-
export interface FtAnalyticsEventGenAIProfileCompletionDetails {
|
|
66
|
-
provider: string;
|
|
67
|
-
model?: string;
|
|
68
|
-
}
|
|
69
|
-
export declare const isFtAnalyticsEventGenAIProfileCompletionDetails: (o: any) => o is FtAnalyticsEventGenAIProfileCompletionDetails;
|
|
70
|
-
export interface FtAnalyticsEventGenAIProfileTranslationDetails {
|
|
71
|
-
provider: string;
|
|
72
|
-
engine?: string;
|
|
75
|
+
export interface FtAnalyticsEventDocumentSearchQuery {
|
|
76
|
+
terms: string;
|
|
73
77
|
}
|
|
74
|
-
export declare const
|
|
78
|
+
export declare const isFtAnalyticsEventDocumentSearchQuery: (o: any) => o is FtAnalyticsEventDocumentSearchQuery;
|
|
75
79
|
export interface FtAnalyticsEventLocation {
|
|
76
80
|
type: string;
|
|
77
81
|
value: string;
|
|
@@ -113,7 +117,7 @@ export interface FtAnalyticsEventSearchQuery {
|
|
|
113
117
|
}
|
|
114
118
|
export declare const isFtAnalyticsEventSearchQuery: (o: any) => o is FtAnalyticsEventSearchQuery;
|
|
115
119
|
export interface FtAnalyticsEventSearchResponse {
|
|
116
|
-
autocorrect
|
|
120
|
+
autocorrect: boolean;
|
|
117
121
|
nbResults: number;
|
|
118
122
|
}
|
|
119
123
|
export declare const isFtAnalyticsEventSearchResponse: (o: any) => o is FtAnalyticsEventSearchResponse;
|
|
@@ -137,7 +141,7 @@ export declare enum FtAnalyticsPublicationType {
|
|
|
137
141
|
UNSTRUCTURED_DOCUMENT = "UNSTRUCTURED_DOCUMENT",
|
|
138
142
|
SHARED_PERSONAL_BOOK = "SHARED_PERSONAL_BOOK",
|
|
139
143
|
PERSONAL_BOOK = "PERSONAL_BOOK",
|
|
140
|
-
|
|
144
|
+
ATTACHMENT = "ATTACHMENT",
|
|
141
145
|
RESOURCE = "RESOURCE"
|
|
142
146
|
}
|
|
143
147
|
export type FtAnalyticsPublicationTypeKeys = keyof typeof FtAnalyticsPublicationType;
|
|
@@ -166,9 +170,30 @@ export declare enum FtAnalyticsSearchFacetType {
|
|
|
166
170
|
}
|
|
167
171
|
export type FtAnalyticsSearchFacetTypeKeys = keyof typeof FtAnalyticsSearchFacetType;
|
|
168
172
|
export declare const isFtAnalyticsSearchFacetType: (o: any) => o is FtAnalyticsSearchFacetType;
|
|
173
|
+
export interface FtAiCaseDeflectionEvent extends FtAnalyticsEvent {
|
|
174
|
+
generationId?: string;
|
|
175
|
+
searchQuery?: FtAnalyticsEventSearchQuery;
|
|
176
|
+
context: string;
|
|
177
|
+
}
|
|
178
|
+
export declare const isFtAiCaseDeflectionEvent: (o: any) => o is FtAiCaseDeflectionEvent;
|
|
179
|
+
export interface FtAiCompletedQueryEvent extends FtAnalyticsEvent {
|
|
180
|
+
result: string;
|
|
181
|
+
profile: FtAnalyticsEventAIProfile;
|
|
182
|
+
durationMs: number;
|
|
183
|
+
parameters?: Record<string, string>;
|
|
184
|
+
queryId: string;
|
|
185
|
+
}
|
|
186
|
+
export declare const isFtAiCompletedQueryEvent: (o: any) => o is FtAiCompletedQueryEvent;
|
|
187
|
+
export interface FtAiRateEvent extends FtAnalyticsEvent {
|
|
188
|
+
rating: FtAnalyticsEventRating;
|
|
189
|
+
comment: string;
|
|
190
|
+
queryId: string;
|
|
191
|
+
}
|
|
192
|
+
export declare const isFtAiRateEvent: (o: any) => o is FtAiRateEvent;
|
|
169
193
|
export interface FtAnalyticsEvent {
|
|
170
194
|
offline: boolean;
|
|
171
195
|
appVersion: string;
|
|
196
|
+
internal?: boolean;
|
|
172
197
|
appName: string;
|
|
173
198
|
name: FtAnalyticsEventNameKeys;
|
|
174
199
|
}
|
|
@@ -182,6 +207,7 @@ export declare enum FtAnalyticsEventName {
|
|
|
182
207
|
COLLECTION__CREATE = "COLLECTION__CREATE",
|
|
183
208
|
COLLECTION__UPDATE = "COLLECTION__UPDATE",
|
|
184
209
|
COLLECTION__DELETE = "COLLECTION__DELETE",
|
|
210
|
+
CUSTOM_EVENT__TRIGGER = "CUSTOM_EVENT__TRIGGER",
|
|
185
211
|
DOCUMENT__DISPLAY = "DOCUMENT__DISPLAY",
|
|
186
212
|
DOCUMENT__DOWNLOAD = "DOCUMENT__DOWNLOAD",
|
|
187
213
|
DOCUMENT__PRINT = "DOCUMENT__PRINT",
|
|
@@ -191,10 +217,10 @@ export declare enum FtAnalyticsEventName {
|
|
|
191
217
|
DOCUMENT__START_DISPLAY = "DOCUMENT__START_DISPLAY",
|
|
192
218
|
DOCUMENT__UNRATE = "DOCUMENT__UNRATE",
|
|
193
219
|
FEEDBACK__SEND = "FEEDBACK__SEND",
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
220
|
+
AI__COMPLETED_QUERY = "AI__COMPLETED_QUERY",
|
|
221
|
+
AI__RATE = "AI__RATE",
|
|
222
|
+
AI_CASE_DEFLECTION__START = "AI_CASE_DEFLECTION__START",
|
|
223
|
+
AI_CASE_DEFLECTION__OPEN_TICKET = "AI_CASE_DEFLECTION__OPEN_TICKET",
|
|
198
224
|
KHUB__PROCESS = "KHUB__PROCESS",
|
|
199
225
|
KHUB__SEARCH = "KHUB__SEARCH",
|
|
200
226
|
LABELS__DOWNLOAD = "LABELS__DOWNLOAD",
|
|
@@ -228,6 +254,12 @@ export interface FtCaseDeflectionEvent extends FtAnalyticsEvent {
|
|
|
228
254
|
topic?: FtAnalyticsEventTopic;
|
|
229
255
|
}
|
|
230
256
|
export declare const isFtCaseDeflectionEvent: (o: any) => o is FtCaseDeflectionEvent;
|
|
257
|
+
export interface FtCustomTriggerEvent extends FtAnalyticsEvent {
|
|
258
|
+
componentId?: string;
|
|
259
|
+
eventName: string;
|
|
260
|
+
page: FtAnalyticsEventPage;
|
|
261
|
+
}
|
|
262
|
+
export declare const isFtCustomTriggerEvent: (o: any) => o is FtCustomTriggerEvent;
|
|
231
263
|
export interface FtDocumentDisplayEvent extends FtAnalyticsEvent {
|
|
232
264
|
/** @deprecated */ publication?: FtAnalyticsEventPublication;
|
|
233
265
|
document?: FtAnalyticsEventDocument;
|
|
@@ -249,7 +281,7 @@ export interface FtDocumentSearchEvent extends FtAnalyticsEvent {
|
|
|
249
281
|
searchResponse: FtAnalyticsEventSearchResponse;
|
|
250
282
|
/** @deprecated */ publication?: FtAnalyticsEventPublication;
|
|
251
283
|
document?: FtAnalyticsEventDocument;
|
|
252
|
-
searchQuery:
|
|
284
|
+
searchQuery: FtAnalyticsEventDocumentSearchQuery;
|
|
253
285
|
}
|
|
254
286
|
export declare const isFtDocumentSearchEvent: (o: any) => o is FtDocumentSearchEvent;
|
|
255
287
|
export interface FtDocumentStartDisplayEvent extends FtAnalyticsEvent {
|
|
@@ -265,18 +297,6 @@ export interface FtFeedbackSendEvent extends FtAnalyticsEvent {
|
|
|
265
297
|
loggedIn: boolean;
|
|
266
298
|
}
|
|
267
299
|
export declare const isFtFeedbackSendEvent: (o: any) => o is FtFeedbackSendEvent;
|
|
268
|
-
export interface FtGenAiCaseDeflectionEvent extends FtAnalyticsEvent {
|
|
269
|
-
generationId?: string;
|
|
270
|
-
searchQuery?: FtAnalyticsEventSearchQuery;
|
|
271
|
-
context: string;
|
|
272
|
-
}
|
|
273
|
-
export declare const isFtGenAiCaseDeflectionEvent: (o: any) => o is FtGenAiCaseDeflectionEvent;
|
|
274
|
-
export interface FtGenAiRateEvent extends FtAnalyticsEvent {
|
|
275
|
-
rating: FtAnalyticsEventRating;
|
|
276
|
-
comment: string;
|
|
277
|
-
queryId: string;
|
|
278
|
-
}
|
|
279
|
-
export declare const isFtGenAiRateEvent: (o: any) => o is FtGenAiRateEvent;
|
|
280
300
|
export interface FtKhubSearchEvent extends FtAnalyticsEvent {
|
|
281
301
|
searchResponse: FtAnalyticsEventSearchResponse;
|
|
282
302
|
searchQuery: FtAnalyticsEventSearchQuery;
|
|
@@ -384,28 +404,29 @@ export declare const isFtCollectionDocument: (o: any) => o is FtCollectionDocume
|
|
|
384
404
|
export interface FtMap {
|
|
385
405
|
prettyUrl?: string;
|
|
386
406
|
metadata: Array<FtMetadata>;
|
|
387
|
-
watermark?: FtWatermark;
|
|
388
|
-
openMode: FtOpenModeKeys;
|
|
389
407
|
topicsApiEndpoint?: string;
|
|
390
408
|
description?: string;
|
|
391
|
-
attachmentsApiEndpoint?: string;
|
|
392
409
|
editorialType: FtEditorialTypeKeys;
|
|
393
410
|
baseId: string;
|
|
394
411
|
clusterId: string;
|
|
395
412
|
title: string;
|
|
396
|
-
lastPublication: string;
|
|
397
|
-
pbkConfidential: boolean;
|
|
398
413
|
lastEdition: string;
|
|
399
414
|
originId: string;
|
|
400
415
|
rightsApiEndpoint?: string;
|
|
401
|
-
contentStyles: FtMapStyles;
|
|
402
|
-
originUrl?: string;
|
|
403
416
|
fingerprint: string;
|
|
404
417
|
readerUrl: string;
|
|
405
418
|
untranslatedTitle?: string;
|
|
406
419
|
khubVersion?: string;
|
|
407
420
|
id: string;
|
|
408
421
|
lang?: string;
|
|
422
|
+
watermark?: FtWatermark;
|
|
423
|
+
openMode: FtOpenModeKeys;
|
|
424
|
+
attachmentsApiEndpoint?: string;
|
|
425
|
+
lastPublication: string;
|
|
426
|
+
pbkConfidential: boolean;
|
|
427
|
+
contentStyles: FtMapStyles;
|
|
428
|
+
originUrl?: string;
|
|
429
|
+
translationError: boolean;
|
|
409
430
|
}
|
|
410
431
|
export declare const isFtMap: (o: any) => o is FtMap;
|
|
411
432
|
export interface FtMapStyles {
|
|
@@ -447,18 +468,18 @@ export interface FtUnstructuredDocument {
|
|
|
447
468
|
openMode: string;
|
|
448
469
|
description?: string;
|
|
449
470
|
mimeType: string;
|
|
450
|
-
baseId
|
|
471
|
+
baseId: string;
|
|
451
472
|
clusterId?: string;
|
|
452
473
|
contentApiEndpoint: string;
|
|
453
474
|
title: string;
|
|
454
|
-
lastPublication
|
|
475
|
+
lastPublication: string;
|
|
455
476
|
viewerUrl: string;
|
|
456
477
|
lastEdition: string;
|
|
457
478
|
filename: string;
|
|
458
479
|
originId?: string;
|
|
459
480
|
rightsApiEndpoint: string;
|
|
460
481
|
originUrl?: string;
|
|
461
|
-
khubVersion
|
|
482
|
+
khubVersion: string;
|
|
462
483
|
id: string;
|
|
463
484
|
lang?: string;
|
|
464
485
|
}
|
|
@@ -593,10 +614,11 @@ export interface FtMySearchCreation {
|
|
|
593
614
|
export declare const isFtMySearchCreation: (o: any) => o is FtMySearchCreation;
|
|
594
615
|
export interface FtMySearchRequest {
|
|
595
616
|
/** @deprecated */ periodFilter?: FtPeriodFilter;
|
|
617
|
+
sortId?: string;
|
|
596
618
|
query: string;
|
|
597
619
|
scope?: FtSearchScopeKeys;
|
|
598
620
|
/** @deprecated */ filters?: Array<FtLegacyLabeledMetadataFilter>;
|
|
599
|
-
sort
|
|
621
|
+
sort?: Array<FtSearchSortCriterion>;
|
|
600
622
|
virtualField?: FtVirtualFieldKeys;
|
|
601
623
|
metadataFilters?: Array<FtLabeledMetadataFilter>;
|
|
602
624
|
contentLocale?: string;
|
|
@@ -820,10 +842,11 @@ export interface FtSearchRequest {
|
|
|
820
842
|
query: string;
|
|
821
843
|
paging: FtPageRequest;
|
|
822
844
|
/** @deprecated */ filters?: Array<FtLegacyMetadataFilter>;
|
|
823
|
-
sort
|
|
845
|
+
/** @deprecated */ sort?: Array<FtSearchSortCriterion>;
|
|
824
846
|
virtualField?: FtVirtualFieldKeys;
|
|
825
847
|
metadataFilters: Array<FtMetadataFilter>;
|
|
826
848
|
facets: Array<FtSearchFacetConf>;
|
|
849
|
+
sortId?: string;
|
|
827
850
|
scope?: FtSearchScopeKeys;
|
|
828
851
|
/** @deprecated */ lastModified?: any;
|
|
829
852
|
uiLocale?: string;
|
|
@@ -847,12 +870,12 @@ export interface FtSearchResultClusterEntry {
|
|
|
847
870
|
export declare const isFtSearchResultClusterEntry: (o: any) => o is FtSearchResultClusterEntry;
|
|
848
871
|
export interface FtSearchResultUnstructuredDocument {
|
|
849
872
|
metadata: Array<FtMetadata>;
|
|
850
|
-
openMode
|
|
873
|
+
openMode?: FtOpenModeKeys;
|
|
851
874
|
documentUrl: string;
|
|
852
875
|
mimeType: string;
|
|
853
876
|
source: any;
|
|
854
877
|
title: string;
|
|
855
|
-
lastPublicationDate
|
|
878
|
+
lastPublicationDate: string;
|
|
856
879
|
viewerUrl: string;
|
|
857
880
|
contentUrl: string;
|
|
858
881
|
filename: string;
|
|
@@ -869,7 +892,7 @@ export interface FtSearchResultMap {
|
|
|
869
892
|
editorialType: FtEditorialTypeKeys;
|
|
870
893
|
source?: any;
|
|
871
894
|
title: string;
|
|
872
|
-
lastPublicationDate
|
|
895
|
+
lastPublicationDate: string;
|
|
873
896
|
htmlTitle: string;
|
|
874
897
|
originUrl?: string;
|
|
875
898
|
mapUrl: string;
|
|
@@ -881,7 +904,7 @@ export interface FtSearchResultMap {
|
|
|
881
904
|
export declare const isFtSearchResultMap: (o: any) => o is FtSearchResultMap;
|
|
882
905
|
export interface FtSearchResultTopic {
|
|
883
906
|
metadata: Array<FtMetadata>;
|
|
884
|
-
openMode
|
|
907
|
+
openMode?: FtOpenModeKeys;
|
|
885
908
|
contentId: string;
|
|
886
909
|
resources: Array<FtTopicResource>;
|
|
887
910
|
source?: any;
|
|
@@ -961,8 +984,16 @@ export interface FtTopicResource {
|
|
|
961
984
|
viewerUrl: string;
|
|
962
985
|
}
|
|
963
986
|
export declare const isFtTopicResource: (o: any) => o is FtTopicResource;
|
|
987
|
+
export declare enum FtLocalizableLabelType {
|
|
988
|
+
PLAIN_TEXT = "PLAIN_TEXT",
|
|
989
|
+
LOCALIZED_OFFICIAL = "LOCALIZED_OFFICIAL",
|
|
990
|
+
LOCALIZED_CUSTOM = "LOCALIZED_CUSTOM"
|
|
991
|
+
}
|
|
992
|
+
export type FtLocalizableLabelTypeKeys = keyof typeof FtLocalizableLabelType;
|
|
993
|
+
export declare const isFtLocalizableLabelType: (o: any) => o is FtLocalizableLabelType;
|
|
964
994
|
export interface FtSuggestRequest {
|
|
965
995
|
input: string;
|
|
996
|
+
sortId?: string;
|
|
966
997
|
scope?: FtSearchScopeKeys;
|
|
967
998
|
sort: Array<FtSearchSortCriterion>;
|
|
968
999
|
maxCount?: number;
|
|
@@ -1059,3 +1090,20 @@ export interface FtWatermark {
|
|
|
1059
1090
|
opacity: number;
|
|
1060
1091
|
}
|
|
1061
1092
|
export declare const isFtWatermark: (o: any) => o is FtWatermark;
|
|
1093
|
+
export interface FtLocalizableLabel {
|
|
1094
|
+
context: string;
|
|
1095
|
+
text: string;
|
|
1096
|
+
type: FtLocalizableLabelTypeKeys;
|
|
1097
|
+
key: string;
|
|
1098
|
+
}
|
|
1099
|
+
export declare const isFtLocalizableLabel: (o: any) => o is FtLocalizableLabel;
|
|
1100
|
+
export interface FtSearchConfiguration {
|
|
1101
|
+
sortOptions: Array<FtSearchSortOption>;
|
|
1102
|
+
}
|
|
1103
|
+
export declare const isFtSearchConfiguration: (o: any) => o is FtSearchConfiguration;
|
|
1104
|
+
export interface FtSearchSortOption {
|
|
1105
|
+
id: string;
|
|
1106
|
+
label: FtLocalizableLabel;
|
|
1107
|
+
sortCriteria: Array<FtSearchSortCriterion>;
|
|
1108
|
+
}
|
|
1109
|
+
export declare const isFtSearchSortOption: (o: any) => o is FtSearchSortOption;
|