@fluid-topics/public-api 1.0.113 → 1.0.116

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/mjs/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import fetch from "cross-fetch";
2
2
  import { AIChunkReader, } from "./helpers/AIChunkReader.js";
3
3
  const wnd = (typeof window === "undefined" ? globalThis : window);
4
- export * from "./types/ft-common/public.js";
5
- export * from "./types/ft-server/public.js";
4
+ export * from "./models.js";
6
5
  export * from "./roles/roles.js";
7
6
  export * from "./preferences/unauthenticated-preferences.js";
8
7
  export * from "./helpers/AIChunkReader.js";
@@ -71,12 +70,14 @@ export class FluidTopicsApi {
71
70
  attachments: {
72
71
  list: `api/khub/maps/${mapId}/attachments`,
73
72
  attachmentId: (attachmentId) => ({
73
+ info: `api/khub/maps/${mapId}/attachments/${attachmentId}`,
74
74
  content: `api/khub/maps/${mapId}/attachments/${attachmentId}/content`,
75
75
  })
76
76
  },
77
77
  resources: {
78
78
  list: `api/khub/maps/${mapId}/resources`,
79
79
  resourceId: (resourceId) => ({
80
+ info: `api/khub/maps/${mapId}/resources/${resourceId}`,
80
81
  content: `api/khub/maps/${mapId}/resources/${resourceId}/content`,
81
82
  })
82
83
  },
@@ -100,6 +101,13 @@ export class FluidTopicsApi {
100
101
  text: `api/khub/documents/${documentId}/content/text`,
101
102
  feedback: `api/khub/documents/${documentId}/feedback`,
102
103
  rating: `api/khub/documents/${documentId}/rating`,
104
+ attachments: {
105
+ list: `api/khub/documents/${documentId}/attachments`,
106
+ attachmentId: (attachmentId) => ({
107
+ info: `api/khub/documents/${documentId}/attachments/${attachmentId}`,
108
+ content: `api/khub/documents/${documentId}/attachments/${attachmentId}/content`,
109
+ })
110
+ },
103
111
  })
104
112
  },
105
113
  semantic: {
@@ -266,12 +274,27 @@ export class FluidTopicsApi {
266
274
  getMapAttachments(mapId, v) {
267
275
  return this.get(this.endpoints.khub.maps.mapId(mapId).attachments.list, v);
268
276
  }
277
+ getMapAttachment(mapId, attachmentId, v) {
278
+ return this.get(this.endpoints.khub.maps.mapId(mapId).attachments.attachmentId(attachmentId).info, v);
279
+ }
269
280
  getMapAttachmentContent(mapId, attachmentId, v) {
270
281
  return this.fetchRawData(this.endpoints.khub.maps.mapId(mapId).attachments.attachmentId(attachmentId).content, v);
271
282
  }
283
+ getUdAttachments(mapId, v) {
284
+ return this.get(this.endpoints.khub.documents.documentId(mapId).attachments.list, v);
285
+ }
286
+ getUdAttachment(mapId, attachmentId, v) {
287
+ return this.get(this.endpoints.khub.documents.documentId(mapId).attachments.attachmentId(attachmentId).info, v);
288
+ }
289
+ getUdAttachmentContent(mapId, attachmentId, v) {
290
+ return this.fetchRawData(this.endpoints.khub.documents.documentId(mapId).attachments.attachmentId(attachmentId).content, v);
291
+ }
272
292
  getMapResources(mapId, v) {
273
293
  return this.get(this.endpoints.khub.maps.mapId(mapId).resources.list, v);
274
294
  }
295
+ getMapResource(mapId, resourceId, v) {
296
+ return this.get(this.endpoints.khub.maps.mapId(mapId).resources.resourceId(resourceId).info, v);
297
+ }
275
298
  getMapResourceContent(mapId, resourceId, v) {
276
299
  return this.fetchRawData(this.endpoints.khub.maps.mapId(mapId).resources.resourceId(resourceId).content, v);
277
300
  }
@@ -0,0 +1,2 @@
1
+ export * from "./types/ft-common/public.js";
2
+ export * from "./types/ft-server/public.js";
@@ -0,0 +1,2 @@
1
+ export * from "./types/ft-common/public.js";
2
+ export * from "./types/ft-server/public.js";
@@ -4,7 +4,7 @@ const rolesInheritance = {
4
4
  [FtUserRole.HTML_EXPORT_USER]: [FtUserRole.PERSONAL_BOOK_USER],
5
5
  [FtUserRole.PDF_EXPORT_USER]: [FtUserRole.PERSONAL_BOOK_USER],
6
6
  [FtUserRole.KHUB_ADMIN]: [FtUserRole.CONTENT_PUBLISHER],
7
- [FtUserRole.ADMIN]: [FtUserRole.KHUB_ADMIN, FtUserRole.USERS_ADMIN, FtUserRole.PORTAL_ADMIN],
7
+ [FtUserRole.ADMIN]: [FtUserRole.KHUB_ADMIN, FtUserRole.USERS_ADMIN, FtUserRole.PORTAL_ADMIN, FtUserRole.BEHAVIOR_DATA_USER],
8
8
  [FtUserRole.GENERATIVE_AI_EXPORT_USER]: [FtUserRole.GENERATIVE_AI_USER],
9
9
  };
10
10
  function roleMatches(actual, expected) {
@@ -39,11 +39,23 @@ export interface FtAnalyticsEventAIProfile {
39
39
  chatbotDetails?: FtAnalyticsEventAIProfileChatbotDetails;
40
40
  translationDetails?: FtAnalyticsEventAIProfileTranslationDetails;
41
41
  completionDetails?: FtAnalyticsEventAIProfileCompletionDetails;
42
+ caseDeflectionDetails?: FtAnalyticsEventAIProfileCaseDeflectionDetails;
42
43
  name: string;
44
+ agenticChatbotDetails?: FtAnalyticsEventAIProfileAgenticChatbotDetails;
43
45
  id: string;
44
46
  type: string;
45
47
  }
46
48
  export declare const isFtAnalyticsEventAIProfile: (o: any) => o is FtAnalyticsEventAIProfile;
49
+ export interface FtAnalyticsEventAIProfileAgenticChatbotDetails {
50
+ provider: string;
51
+ model?: string;
52
+ }
53
+ export declare const isFtAnalyticsEventAIProfileAgenticChatbotDetails: (o: any) => o is FtAnalyticsEventAIProfileAgenticChatbotDetails;
54
+ export interface FtAnalyticsEventAIProfileCaseDeflectionDetails {
55
+ provider: string;
56
+ model?: string;
57
+ }
58
+ export declare const isFtAnalyticsEventAIProfileCaseDeflectionDetails: (o: any) => o is FtAnalyticsEventAIProfileCaseDeflectionDetails;
47
59
  export interface FtAnalyticsEventAIProfileChatbotDetails {
48
60
  provider: string;
49
61
  model?: string;
@@ -165,13 +177,13 @@ export declare enum FtAnalyticsSearchFacetType {
165
177
  }
166
178
  export type FtAnalyticsSearchFacetTypeKeys = keyof typeof FtAnalyticsSearchFacetType;
167
179
  export declare const isFtAnalyticsSearchFacetType: (o: any) => o is FtAnalyticsSearchFacetType;
168
- export interface FtAiCaseDeflectionEvent extends FtAnalyticsEvent {
180
+ export interface FtAiCaseDeflectionEvent/* WsAiCaseDeflectionEvent */ extends FtAnalyticsEvent {
169
181
  generationId?: string;
170
182
  searchQuery?: FtAnalyticsEventSearchQuery;
171
183
  context: string;
172
184
  }
173
185
  export declare const isFtAiCaseDeflectionEvent: (o: any) => o is FtAiCaseDeflectionEvent;
174
- export interface FtAiCompletedQueryEvent extends FtAnalyticsEvent {
186
+ export interface FtAiCompletedQueryEvent/* WsAiCompletedQueryEvent */ extends FtAnalyticsEvent {
175
187
  result: string;
176
188
  profile: FtAnalyticsEventAIProfile;
177
189
  durationMs: number;
@@ -179,7 +191,7 @@ export interface FtAiCompletedQueryEvent extends FtAnalyticsEvent {
179
191
  queryId: string;
180
192
  }
181
193
  export declare const isFtAiCompletedQueryEvent: (o: any) => o is FtAiCompletedQueryEvent;
182
- export interface FtAiRateEvent extends FtAnalyticsEvent {
194
+ export interface FtAiRateEvent/* WsAiRateEvent */ extends FtAnalyticsEvent {
183
195
  rating: FtAnalyticsEventRating;
184
196
  comment: string;
185
197
  queryId: string;
@@ -245,91 +257,91 @@ export declare enum FtAnalyticsEventName {
245
257
  }
246
258
  export type FtAnalyticsEventNameKeys = keyof typeof FtAnalyticsEventName;
247
259
  export declare const isFtAnalyticsEventName: (o: any) => o is FtAnalyticsEventName;
248
- export interface FtCaseDeflectionEvent extends FtAnalyticsEvent {
260
+ export interface FtCaseDeflectionEvent/* WsCaseDeflectionEvent */ extends FtAnalyticsEvent {
249
261
  searchQuery?: FtAnalyticsEventSearchQuery;
250
262
  context: string;
251
263
  rating?: FtAnalyticsEventRating;
252
264
  topic?: FtAnalyticsEventTopic;
253
265
  }
254
266
  export declare const isFtCaseDeflectionEvent: (o: any) => o is FtCaseDeflectionEvent;
255
- export interface FtCustomTriggerEvent extends FtAnalyticsEvent {
267
+ export interface FtCustomTriggerEvent/* WsCustomTriggerEvent */ extends FtAnalyticsEvent {
256
268
  componentId?: string;
257
269
  eventName: string;
258
270
  page: FtAnalyticsEventPage;
259
271
  }
260
272
  export declare const isFtCustomTriggerEvent: (o: any) => o is FtCustomTriggerEvent;
261
- export interface FtDocumentDisplayEvent extends FtAnalyticsEvent {
273
+ export interface FtDocumentDisplayEvent/* WsDocumentDisplayEvent */ extends FtAnalyticsEvent {
262
274
  document: FtAnalyticsEventDocument;
263
275
  viewDurationMs: number;
264
276
  location: FtAnalyticsEventLocation;
265
277
  }
266
278
  export declare const isFtDocumentDisplayEvent: (o: any) => o is FtDocumentDisplayEvent;
267
- export interface FtDocumentDownloadEvent extends FtAnalyticsEvent {
279
+ export interface FtDocumentDownloadEvent/* WsDocumentDownloadEvent */ extends FtAnalyticsEvent {
268
280
  document: FtAnalyticsEventDocument;
269
281
  location: FtAnalyticsEventLocation;
270
282
  }
271
283
  export declare const isFtDocumentDownloadEvent: (o: any) => o is FtDocumentDownloadEvent;
272
- export interface FtDocumentPrintEvent extends FtAnalyticsEvent {
284
+ export interface FtDocumentPrintEvent/* WsDocumentPrintEvent */ extends FtAnalyticsEvent {
273
285
  document: FtAnalyticsEventDocument;
274
286
  }
275
287
  export declare const isFtDocumentPrintEvent: (o: any) => o is FtDocumentPrintEvent;
276
- export interface FtDocumentSearchEvent extends FtAnalyticsEvent {
288
+ export interface FtDocumentSearchEvent/* WsDocumentSearchEvent */ extends FtAnalyticsEvent {
277
289
  searchResponse: FtAnalyticsEventSearchResponse;
278
290
  document: FtAnalyticsEventDocument;
279
291
  searchQuery: FtAnalyticsEventDocumentSearchQuery;
280
292
  }
281
293
  export declare const isFtDocumentSearchEvent: (o: any) => o is FtDocumentSearchEvent;
282
- export interface FtDocumentStartDisplayEvent extends FtAnalyticsEvent {
294
+ export interface FtDocumentStartDisplayEvent/* WsDocumentStartDisplayEvent */ extends FtAnalyticsEvent {
283
295
  document: FtAnalyticsEventDocument;
284
296
  location: FtAnalyticsEventLocation;
285
297
  }
286
298
  export declare const isFtDocumentStartDisplayEvent: (o: any) => o is FtDocumentStartDisplayEvent;
287
- export interface FtFeedbackSendEvent extends FtAnalyticsEvent {
299
+ export interface FtFeedbackSendEvent/* WsFeedbackSendEvent */ extends FtAnalyticsEvent {
288
300
  breadcrumb: Array<FtAnalyticsEventTopic>;
289
301
  document: FtAnalyticsEventDocument;
290
302
  loggedIn: boolean;
291
303
  }
292
304
  export declare const isFtFeedbackSendEvent: (o: any) => o is FtFeedbackSendEvent;
293
- export interface FtKhubSearchEvent extends FtAnalyticsEvent {
305
+ export interface FtKhubSearchEvent/* WsKhubSearchEvent */ extends FtAnalyticsEvent {
294
306
  searchResponse: FtAnalyticsEventSearchResponse;
295
307
  searchQuery: FtAnalyticsEventSearchQuery;
296
308
  }
297
309
  export declare const isFtKhubSearchEvent: (o: any) => o is FtKhubSearchEvent;
298
- export interface FtLabelsDownloadEvent extends FtAnalyticsEvent {
310
+ export interface FtLabelsDownloadEvent/* WsLabelsDownloadEvent */ extends FtAnalyticsEvent {
299
311
  locale: string;
300
312
  }
301
313
  export declare const isFtLabelsDownloadEvent: (o: any) => o is FtLabelsDownloadEvent;
302
- export interface FtLinkShareEvent extends FtAnalyticsEvent {
314
+ export interface FtLinkShareEvent/* WsLinkShareEvent */ extends FtAnalyticsEvent {
303
315
  breadcrumb: Array<FtAnalyticsEventTopic>;
304
316
  document: FtAnalyticsEventDocument;
305
317
  }
306
318
  export declare const isFtLinkShareEvent: (o: any) => o is FtLinkShareEvent;
307
- export interface FtPageDisplayEvent extends FtAnalyticsEvent {
319
+ export interface FtPageDisplayEvent/* WsPageDisplayEvent */ extends FtAnalyticsEvent {
308
320
  origin: FtAnalyticsEventOrigin;
309
321
  display: FtAnalyticsEventDisplay;
310
322
  page: FtAnalyticsEventPage;
311
323
  }
312
324
  export declare const isFtPageDisplayEvent: (o: any) => o is FtPageDisplayEvent;
313
- export interface FtSearchPageSelectEvent extends FtAnalyticsEvent {
325
+ export interface FtSearchPageSelectEvent/* WsSearchPageSelectEvent */ extends FtAnalyticsEvent {
314
326
  searchResult: FtAnalyticsEventSearchResult;
315
327
  externalLink?: string;
316
328
  searchQuery: FtAnalyticsEventSearchQuery;
317
329
  }
318
330
  export declare const isFtSearchPageSelectEvent: (o: any) => o is FtSearchPageSelectEvent;
319
- export interface FtSearchResultOpenContextMenuEvent extends FtAnalyticsEvent {
331
+ export interface FtSearchResultOpenContextMenuEvent/* WsSearchResultOpenContextMenuEvent */ extends FtAnalyticsEvent {
320
332
  searchResult: FtAnalyticsEventSearchResult;
321
333
  externalLink?: string;
322
334
  searchQuery: FtAnalyticsEventSearchQuery;
323
335
  }
324
336
  export declare const isFtSearchResultOpenContextMenuEvent: (o: any) => o is FtSearchResultOpenContextMenuEvent;
325
- export interface FtTopicDisplayEvent extends FtAnalyticsEvent {
337
+ export interface FtTopicDisplayEvent/* WsTopicDisplayEvent */ extends FtAnalyticsEvent {
326
338
  breadcrumb: Array<FtAnalyticsEventTopic>;
327
339
  document: FtAnalyticsEventDocument;
328
340
  viewDurationMs: number;
329
341
  location: FtAnalyticsEventLocation;
330
342
  }
331
343
  export declare const isFtTopicDisplayEvent: (o: any) => o is FtTopicDisplayEvent;
332
- export interface FtTopicStartDisplayEvent extends FtAnalyticsEvent {
344
+ export interface FtTopicStartDisplayEvent/* WsTopicStartDisplayEvent */ extends FtAnalyticsEvent {
333
345
  breadcrumb: Array<FtAnalyticsEventTopic>;
334
346
  document: FtAnalyticsEventDocument;
335
347
  location: FtAnalyticsEventLocation;
@@ -482,6 +494,7 @@ export declare const isFtTopicOrigin: (o: any) => o is FtTopicOrigin;
482
494
  export interface FtUnstructuredDocument {
483
495
  prettyUrl?: string;
484
496
  metadata: Array<FtMetadata>;
497
+ watermark?: FtWatermark;
485
498
  openMode: string;
486
499
  description?: string;
487
500
  mimeType: string;
@@ -524,7 +537,9 @@ export declare enum FtExternalWebComponentContext {
524
537
  SEARCH = "SEARCH",
525
538
  SEARCH_RESULT = "SEARCH_RESULT",
526
539
  SEARCH_ANNOUNCEMENT = "SEARCH_ANNOUNCEMENT",
527
- LINK_PREVIEW = "LINK_PREVIEW"
540
+ LINK_PREVIEW = "LINK_PREVIEW",
541
+ UD_VIEWER = "UD_VIEWER",
542
+ ASSET_VIEWER = "ASSET_VIEWER"
528
543
  }
529
544
  export type FtExternalWebComponentContextKeys = keyof typeof FtExternalWebComponentContext;
530
545
  export declare const isFtExternalWebComponentContext: (o: any) => o is FtExternalWebComponentContext;
@@ -704,13 +719,13 @@ export interface FtTopicsRatingSummary {
704
719
  type: FtRatingTypeKeys;
705
720
  }
706
721
  export declare const isFtTopicsRatingSummary: (o: any) => o is FtTopicsRatingSummary;
707
- export interface FtMapResource {
722
+ export interface FtMapResourceSummary {
708
723
  contentUrl: string;
709
724
  filename: string;
710
725
  id: string;
711
726
  mimeType: string;
712
727
  }
713
- export declare const isFtMapResource: (o: any) => o is FtMapResource;
728
+ export declare const isFtMapResourceSummary: (o: any) => o is FtMapResourceSummary;
714
729
  export interface FtMetadataPreferenceConfiguration {
715
730
  filter: Array<string>;
716
731
  prior: Array<string>;
@@ -1096,7 +1111,6 @@ export declare enum FtUserRole {
1096
1111
  SAVED_SEARCH_USER = "SAVED_SEARCH_USER",
1097
1112
  COLLECTION_USER = "COLLECTION_USER",
1098
1113
  OFFLINE_USER = "OFFLINE_USER",
1099
- BEHAVIOR_DATA_USER = "BEHAVIOR_DATA_USER",
1100
1114
  ANALYTICS_USER = "ANALYTICS_USER",
1101
1115
  BETA_USER = "BETA_USER",
1102
1116
  DEBUG_USER = "DEBUG_USER",
@@ -1106,6 +1120,7 @@ export declare enum FtUserRole {
1106
1120
  GENERATIVE_AI_USER = "GENERATIVE_AI_USER",
1107
1121
  GENERATIVE_AI_EXPORT_USER = "GENERATIVE_AI_EXPORT_USER",
1108
1122
  CONTENT_PUBLISHER = "CONTENT_PUBLISHER",
1123
+ BEHAVIOR_DATA_USER = "BEHAVIOR_DATA_USER",
1109
1124
  ANNOUNCEMENT_ADMIN = "ANNOUNCEMENT_ADMIN",
1110
1125
  KHUB_ADMIN = "KHUB_ADMIN",
1111
1126
  USERS_ADMIN = "USERS_ADMIN",
@@ -10,7 +10,6 @@ export const isFtHttpErrorDetails = (o) => {
10
10
  && (isString(o.body))
11
11
  && (isNumber(o.status));
12
12
  };
13
- // From: MyLibraryColors
14
13
  export var FtMyLibraryColors;
15
14
  (function (FtMyLibraryColors) {
16
15
  FtMyLibraryColors["black"] = "black";
@@ -22,7 +21,6 @@ export var FtMyLibraryColors;
22
21
  FtMyLibraryColors["yellow"] = "yellow";
23
22
  })(FtMyLibraryColors || (FtMyLibraryColors = {}));
24
23
  export const isFtMyLibraryColors = (o) => Object.keys(FtMyLibraryColors).includes(o);
25
- // From: SourceType
26
24
  export var FtTopicOriginType;
27
25
  (function (FtTopicOriginType) {
28
26
  FtTopicOriginType["OFFICIAL"] = "OFFICIAL";
@@ -30,7 +28,6 @@ export var FtTopicOriginType;
30
28
  FtTopicOriginType["SHARED"] = "SHARED";
31
29
  })(FtTopicOriginType || (FtTopicOriginType = {}));
32
30
  export const isFtTopicOriginType = (o) => Object.keys(FtTopicOriginType).includes(o);
33
- // From: AnalyticsDocumentType
34
31
  export var FtAnalyticsDocumentType;
35
32
  (function (FtAnalyticsDocumentType) {
36
33
  FtAnalyticsDocumentType["STRUCTURED_DOCUMENT"] = "STRUCTURED_DOCUMENT";
@@ -47,10 +44,22 @@ export const isFtAnalyticsEventAIProfile = (o) => {
47
44
  && (o.chatbotDetails == null || isFtAnalyticsEventAIProfileChatbotDetails(o.chatbotDetails))
48
45
  && (o.translationDetails == null || isFtAnalyticsEventAIProfileTranslationDetails(o.translationDetails))
49
46
  && (o.completionDetails == null || isFtAnalyticsEventAIProfileCompletionDetails(o.completionDetails))
47
+ && (o.caseDeflectionDetails == null || isFtAnalyticsEventAIProfileCaseDeflectionDetails(o.caseDeflectionDetails))
50
48
  && (isString(o.name))
49
+ && (o.agenticChatbotDetails == null || isFtAnalyticsEventAIProfileAgenticChatbotDetails(o.agenticChatbotDetails))
51
50
  && (isString(o.id))
52
51
  && (isString(o.type));
53
52
  };
53
+ export const isFtAnalyticsEventAIProfileAgenticChatbotDetails = (o) => {
54
+ return isObject(o)
55
+ && (isString(o.provider))
56
+ && (o.model == null || isString(o.model));
57
+ };
58
+ export const isFtAnalyticsEventAIProfileCaseDeflectionDetails = (o) => {
59
+ return isObject(o)
60
+ && (isString(o.provider))
61
+ && (o.model == null || isString(o.model));
62
+ };
54
63
  export const isFtAnalyticsEventAIProfileChatbotDetails = (o) => {
55
64
  return isObject(o)
56
65
  && (isString(o.provider))
@@ -140,7 +149,6 @@ export const isFtAnalyticsEventTopic = (o) => {
140
149
  && (o.mapId == null || isString(o.mapId))
141
150
  && (isString(o.title));
142
151
  };
143
- // From: AnalyticsPublicationType
144
152
  export var FtAnalyticsPublicationType;
145
153
  (function (FtAnalyticsPublicationType) {
146
154
  FtAnalyticsPublicationType["STRUCTURED_DOCUMENT"] = "STRUCTURED_DOCUMENT";
@@ -163,7 +171,6 @@ export const isFtAnalyticsSearchFacet = (o) => {
163
171
  && (o.type == null || isFtAnalyticsSearchFacetType(o.type))
164
172
  && (isString(o.key));
165
173
  };
166
- // From: AnalyticsSearchDateFacetValue
167
174
  export var FtAnalyticsSearchDateFacetValue;
168
175
  (function (FtAnalyticsSearchDateFacetValue) {
169
176
  FtAnalyticsSearchDateFacetValue["LAST_WEEK"] = "LAST_WEEK";
@@ -172,7 +179,6 @@ export var FtAnalyticsSearchDateFacetValue;
172
179
  FtAnalyticsSearchDateFacetValue["LAST_YEAR"] = "LAST_YEAR";
173
180
  })(FtAnalyticsSearchDateFacetValue || (FtAnalyticsSearchDateFacetValue = {}));
174
181
  export const isFtAnalyticsSearchDateFacetValue = (o) => Object.keys(FtAnalyticsSearchDateFacetValue).includes(o);
175
- // From: AnalyticsSearchFacetType
176
182
  export var FtAnalyticsSearchFacetType;
177
183
  (function (FtAnalyticsSearchFacetType) {
178
184
  FtAnalyticsSearchFacetType["VALUE"] = "VALUE";
@@ -210,7 +216,6 @@ export const isFtAnalyticsEvent = (o) => {
210
216
  && (isString(o.appName))
211
217
  && (isFtAnalyticsEventName(o.name));
212
218
  };
213
- // From: WsAnalyticsEventName
214
219
  export var FtAnalyticsEventName;
215
220
  (function (FtAnalyticsEventName) {
216
221
  FtAnalyticsEventName["BOOKMARK__CREATE"] = "BOOKMARK__CREATE";
@@ -520,6 +525,7 @@ export const isFtUnstructuredDocument = (o) => {
520
525
  && (o.prettyUrl == null || isString(o.prettyUrl))
521
526
  && ((Array.isArray(o.metadata)
522
527
  && o.metadata.every((v) => isFtMetadata(v))))
528
+ && (o.watermark == null || isFtWatermark(o.watermark))
523
529
  && (isString(o.openMode))
524
530
  && (o.description == null || isString(o.description))
525
531
  && (isString(o.mimeType))
@@ -538,7 +544,6 @@ export const isFtUnstructuredDocument = (o) => {
538
544
  && (isString(o.id))
539
545
  && (o.lang == null || isString(o.lang));
540
546
  };
541
- // From: WsTopicContentTarget
542
547
  export var FtTopicContentTarget;
543
548
  (function (FtTopicContentTarget) {
544
549
  FtTopicContentTarget["THIRD_PARTY"] = "THIRD_PARTY";
@@ -553,7 +558,6 @@ export const isFtTranslationContent = (o) => {
553
558
  && (isBoolean(o.isTranslationError))
554
559
  && (isString(o.content));
555
560
  };
556
- // From: ExternalWebComponentContext
557
561
  export var FtExternalWebComponentContext;
558
562
  (function (FtExternalWebComponentContext) {
559
563
  FtExternalWebComponentContext["HOMEPAGE"] = "HOMEPAGE";
@@ -565,6 +569,8 @@ export var FtExternalWebComponentContext;
565
569
  FtExternalWebComponentContext["SEARCH_RESULT"] = "SEARCH_RESULT";
566
570
  FtExternalWebComponentContext["SEARCH_ANNOUNCEMENT"] = "SEARCH_ANNOUNCEMENT";
567
571
  FtExternalWebComponentContext["LINK_PREVIEW"] = "LINK_PREVIEW";
572
+ FtExternalWebComponentContext["UD_VIEWER"] = "UD_VIEWER";
573
+ FtExternalWebComponentContext["ASSET_VIEWER"] = "ASSET_VIEWER";
568
574
  })(FtExternalWebComponentContext || (FtExternalWebComponentContext = {}));
569
575
  export const isFtExternalWebComponentContext = (o) => Object.keys(FtExternalWebComponentContext).includes(o);
570
576
  export const isFtFeedbackCreation = (o) => {
@@ -572,7 +578,6 @@ export const isFtFeedbackCreation = (o) => {
572
578
  && (o.from == null || isString(o.from))
573
579
  && (isString(o.message));
574
580
  };
575
- // From: HomeLayout
576
581
  export var FtMetadataHomeLayout;
577
582
  (function (FtMetadataHomeLayout) {
578
583
  FtMetadataHomeLayout["CLASSIC"] = "CLASSIC";
@@ -628,7 +633,6 @@ export const isFtUserAssetLabel = (o) => {
628
633
  return isObject(o)
629
634
  && (isString(o.title));
630
635
  };
631
- // From: WsFacetType
632
636
  export var FtFacetType;
633
637
  (function (FtFacetType) {
634
638
  FtFacetType["AND"] = "AND";
@@ -646,7 +650,6 @@ export const isFtMetadata = (o) => {
646
650
  && (isString(o.label))
647
651
  && (isString(o.key));
648
652
  };
649
- // From: WsMetadataSortRule
650
653
  export var FtMetadataSortRule;
651
654
  (function (FtMetadataSortRule) {
652
655
  FtMetadataSortRule["NONE"] = "NONE";
@@ -720,7 +723,6 @@ export const isFtPrivacyPolicyConfiguration = (o) => {
720
723
  && (isBoolean(o.agreementRequired))
721
724
  && (isString(o.userAgreementMessage));
722
725
  };
723
- // From: RatingType
724
726
  export var FtRatingType;
725
727
  (function (FtRatingType) {
726
728
  FtRatingType["STARS"] = "STARS";
@@ -763,7 +765,7 @@ export const isFtTopicsRatingSummary = (o) => {
763
765
  && o.ratings.every((v) => isFtTopicRating(v))))
764
766
  && (isFtRatingType(o.type));
765
767
  };
766
- export const isFtMapResource = (o) => {
768
+ export const isFtMapResourceSummary = (o) => {
767
769
  return isObject(o)
768
770
  && (isString(o.contentUrl))
769
771
  && (isString(o.filename))
@@ -783,7 +785,6 @@ export const isFtSearchPreferencesConfiguration = (o) => {
783
785
  && Object.keys(o.metadata).every((k) => isString(k))
784
786
  && Object.values(o.metadata).every((v) => isFtMetadataPreferenceConfiguration(v))));
785
787
  };
786
- // From: PeriodFilterType
787
788
  export var FtPeriodFilterType;
788
789
  (function (FtPeriodFilterType) {
789
790
  FtPeriodFilterType["LAST_WEEK"] = "LAST_WEEK";
@@ -793,7 +794,6 @@ export var FtPeriodFilterType;
793
794
  FtPeriodFilterType["CUSTOM"] = "CUSTOM";
794
795
  })(FtPeriodFilterType || (FtPeriodFilterType = {}));
795
796
  export const isFtPeriodFilterType = (o) => Object.keys(FtPeriodFilterType).includes(o);
796
- // From: SearchKeywordMatch
797
797
  export var FtSearchKeywordMatch;
798
798
  (function (FtSearchKeywordMatch) {
799
799
  FtSearchKeywordMatch["OPTIONAL"] = "OPTIONAL";
@@ -808,21 +808,18 @@ export const isFtSearchPreset = (o) => {
808
808
  && ((Array.isArray(o.metadataFilters)
809
809
  && o.metadataFilters.every((v) => isFtMetadataFilter(v))));
810
810
  };
811
- // From: SearchSortCriterionOrder
812
811
  export var FtSearchSortCriterionOrder;
813
812
  (function (FtSearchSortCriterionOrder) {
814
813
  FtSearchSortCriterionOrder["ASC"] = "ASC";
815
814
  FtSearchSortCriterionOrder["DESC"] = "DESC";
816
815
  })(FtSearchSortCriterionOrder || (FtSearchSortCriterionOrder = {}));
817
816
  export const isFtSearchSortCriterionOrder = (o) => Object.keys(FtSearchSortCriterionOrder).includes(o);
818
- // From: SearchSortCriterionType
819
817
  export var FtSearchSortCriterionType;
820
818
  (function (FtSearchSortCriterionType) {
821
819
  FtSearchSortCriterionType["ALPHA"] = "ALPHA";
822
820
  FtSearchSortCriterionType["NATURAL"] = "NATURAL";
823
821
  })(FtSearchSortCriterionType || (FtSearchSortCriterionType = {}));
824
822
  export const isFtSearchSortCriterionType = (o) => Object.keys(FtSearchSortCriterionType).includes(o);
825
- // From: VirtualField
826
823
  export var FtVirtualField;
827
824
  (function (FtVirtualField) {
828
825
  FtVirtualField["EVERYWHERE"] = "EVERYWHERE";
@@ -837,7 +834,6 @@ export const isFtSearchResultsPageInfo = (o) => {
837
834
  && (isNumber(o.currentPage))
838
835
  && (isNumber(o.totalClustersCount));
839
836
  };
840
- // From: WsEditorialType
841
837
  export var FtEditorialType;
842
838
  (function (FtEditorialType) {
843
839
  FtEditorialType["ARTICLE"] = "ARTICLE";
@@ -846,7 +842,6 @@ export var FtEditorialType;
846
842
  FtEditorialType["HTML_PACKAGE"] = "HTML_PACKAGE";
847
843
  })(FtEditorialType || (FtEditorialType = {}));
848
844
  export const isFtEditorialType = (o) => Object.keys(FtEditorialType).includes(o);
849
- // From: WsOpenMode
850
845
  export var FtOpenMode;
851
846
  (function (FtOpenMode) {
852
847
  FtOpenMode["FLUIDTOPICS"] = "FLUIDTOPICS";
@@ -862,7 +857,6 @@ export const isFtPublicClusterSortCriterion = (o) => {
862
857
  return isObject(o)
863
858
  && (isString(o.key));
864
859
  };
865
- // From: WsPublicCollectionDocumentType
866
860
  export var FtCollectionDocumentType;
867
861
  (function (FtCollectionDocumentType) {
868
862
  FtCollectionDocumentType["MAP"] = "MAP";
@@ -877,7 +871,6 @@ export const isFtDateFilter = (o) => {
877
871
  return isObject(o)
878
872
  && (isFtDateFilterType(o.type));
879
873
  };
880
- // From: WsPublicDateFilterType
881
874
  export var FtDateFilterType;
882
875
  (function (FtDateFilterType) {
883
876
  FtDateFilterType["LAST_WEEK"] = "LAST_WEEK";
@@ -1081,7 +1074,6 @@ export const isFtSearchResultTopic = (o) => {
1081
1074
  && (o.lastEditionDate == null || isString(o.lastEditionDate))
1082
1075
  && (isString(o.htmlExcerpt));
1083
1076
  };
1084
- // From: WsPublicSearchResultType
1085
1077
  export var FtSearchResultType;
1086
1078
  (function (FtSearchResultType) {
1087
1079
  FtSearchResultType["MAP"] = "MAP";
@@ -1091,7 +1083,6 @@ export var FtSearchResultType;
1091
1083
  FtSearchResultType["HTML_PACKAGE_PAGE"] = "HTML_PACKAGE_PAGE";
1092
1084
  })(FtSearchResultType || (FtSearchResultType = {}));
1093
1085
  export const isFtSearchResultType = (o) => Object.keys(FtSearchResultType).includes(o);
1094
- // From: WsPublicSearchScope
1095
1086
  export var FtSearchScope;
1096
1087
  (function (FtSearchScope) {
1097
1088
  FtSearchScope["DEFAULT"] = "DEFAULT";
@@ -1150,7 +1141,6 @@ export const isFtTopicResource = (o) => {
1150
1141
  && (isString(o.resourceContentUrl))
1151
1142
  && (isString(o.viewerUrl));
1152
1143
  };
1153
- // From: LocalizableLabelType
1154
1144
  export var FtLocalizableLabelType;
1155
1145
  (function (FtLocalizableLabelType) {
1156
1146
  FtLocalizableLabelType["PLAIN_TEXT"] = "PLAIN_TEXT";
@@ -1184,7 +1174,6 @@ export const isFtSuggestResults = (o) => {
1184
1174
  && ((Array.isArray(o.suggestions)
1185
1175
  && o.suggestions.every((v) => isFtSuggestResult(v))));
1186
1176
  };
1187
- // From: Role
1188
1177
  export var FtUserRole;
1189
1178
  (function (FtUserRole) {
1190
1179
  FtUserRole["PERSONAL_BOOK_USER"] = "PERSONAL_BOOK_USER";
@@ -1194,7 +1183,6 @@ export var FtUserRole;
1194
1183
  FtUserRole["SAVED_SEARCH_USER"] = "SAVED_SEARCH_USER";
1195
1184
  FtUserRole["COLLECTION_USER"] = "COLLECTION_USER";
1196
1185
  FtUserRole["OFFLINE_USER"] = "OFFLINE_USER";
1197
- FtUserRole["BEHAVIOR_DATA_USER"] = "BEHAVIOR_DATA_USER";
1198
1186
  FtUserRole["ANALYTICS_USER"] = "ANALYTICS_USER";
1199
1187
  FtUserRole["BETA_USER"] = "BETA_USER";
1200
1188
  FtUserRole["DEBUG_USER"] = "DEBUG_USER";
@@ -1204,6 +1192,7 @@ export var FtUserRole;
1204
1192
  FtUserRole["GENERATIVE_AI_USER"] = "GENERATIVE_AI_USER";
1205
1193
  FtUserRole["GENERATIVE_AI_EXPORT_USER"] = "GENERATIVE_AI_EXPORT_USER";
1206
1194
  FtUserRole["CONTENT_PUBLISHER"] = "CONTENT_PUBLISHER";
1195
+ FtUserRole["BEHAVIOR_DATA_USER"] = "BEHAVIOR_DATA_USER";
1207
1196
  FtUserRole["ANNOUNCEMENT_ADMIN"] = "ANNOUNCEMENT_ADMIN";
1208
1197
  FtUserRole["KHUB_ADMIN"] = "KHUB_ADMIN";
1209
1198
  FtUserRole["USERS_ADMIN"] = "USERS_ADMIN";
@@ -1211,7 +1200,6 @@ export var FtUserRole;
1211
1200
  FtUserRole["ADMIN"] = "ADMIN";
1212
1201
  })(FtUserRole || (FtUserRole = {}));
1213
1202
  export const isFtUserRole = (o) => Object.keys(FtUserRole).includes(o);
1214
- // From: UserAssetType
1215
1203
  export var FtUserAssetType;
1216
1204
  (function (FtUserAssetType) {
1217
1205
  FtUserAssetType["SEARCHES"] = "SEARCHES";
@@ -1258,7 +1246,6 @@ export const isFtUserProfile = (o) => {
1258
1246
  && ((Array.isArray(o.tags)
1259
1247
  && o.tags.every((v) => isString(v))));
1260
1248
  };
1261
- // From: WsPublicSessionStatus
1262
1249
  export var FtSessionStatus;
1263
1250
  (function (FtSessionStatus) {
1264
1251
  FtSessionStatus["UNAUTHENTICATED"] = "UNAUTHENTICATED";