@semantha/sdk 11.7.0 → 11.8.1

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/index.d.mts CHANGED
@@ -213,19 +213,6 @@ declare const AttributeOverviewDatatypeEnumValues: readonly ["STRING", "CURRENCY
213
213
  type AttributeOverviewDatatypeEnum = (typeof AttributeOverviewDatatypeEnumValues)[number];
214
214
  declare function isAttributeOverviewDatatypeEnumValue(value: any): value is AttributeOverviewDatatypeEnum;
215
215
 
216
- /**
217
- * @author semantha
218
- *
219
- * This is a generated file do not change manually!
220
- */
221
- interface BoostWord {
222
- id?: string;
223
- word?: string;
224
- regex?: string;
225
- tags?: string[];
226
- label?: string;
227
- }
228
-
229
216
  /**
230
217
  * @author semantha
231
218
  *
@@ -249,6 +236,17 @@ interface Char {
249
236
  area?: Rect;
250
237
  }
251
238
 
239
+ /**
240
+ * @author semantha
241
+ *
242
+ * This is a generated file do not change manually!
243
+ */
244
+ interface McpServerRequest {
245
+ label: string;
246
+ authToken?: string;
247
+ tools?: string[];
248
+ }
249
+
252
250
  /**
253
251
  * @author semantha
254
252
  *
@@ -257,6 +255,10 @@ interface Char {
257
255
  interface Message {
258
256
  role?: MessageRoleEnum;
259
257
  content?: string;
258
+ metadata?: {
259
+ [key: string]: any;
260
+ };
261
+ context?: string;
260
262
  }
261
263
 
262
264
  /**
@@ -271,9 +273,32 @@ interface Chat {
271
273
  temperature?: number;
272
274
  topK?: number;
273
275
  conversationId?: string;
274
- polarionAccessToken?: string;
275
- polarionBaseUrl?: string;
276
- enabledMcpTools?: string[];
276
+ mcpServers?: McpServerRequest[];
277
+ }
278
+
279
+ /**
280
+ * @author semantha
281
+ *
282
+ * This is a generated file do not change manually!
283
+ */
284
+ interface ChatConversation {
285
+ conversationId?: string;
286
+ title?: string;
287
+ createdAt?: number;
288
+ lastUsedAt?: number;
289
+ }
290
+
291
+ /**
292
+ * @author semantha
293
+ *
294
+ * This is a generated file do not change manually!
295
+ */
296
+ interface MessageResponse {
297
+ role?: MessageResponseRoleEnum;
298
+ content?: string;
299
+ metadata?: {
300
+ [key: string]: any;
301
+ };
277
302
  }
278
303
 
279
304
  /**
@@ -282,7 +307,7 @@ interface Chat {
282
307
  * This is a generated file do not change manually!
283
308
  */
284
309
  interface ChatResponse {
285
- messages?: Message[];
310
+ messages?: MessageResponse[];
286
311
  conversationId?: string;
287
312
  }
288
313
 
@@ -1211,8 +1236,27 @@ interface McpToolDescriptor {
1211
1236
  label?: string;
1212
1237
  description?: string;
1213
1238
  allowedTools?: string[];
1239
+ auth?: McpToolDescriptorAuthEnum;
1214
1240
  }
1215
1241
 
1242
+ /**
1243
+ * @author semantha
1244
+ *
1245
+ * This is a generated file do not change manually!
1246
+ */
1247
+ declare const McpToolDescriptorAuthEnumValues: readonly ["REQUIRED", "OPTIONAL", "NONE"];
1248
+ type McpToolDescriptorAuthEnum = (typeof McpToolDescriptorAuthEnumValues)[number];
1249
+ declare function isMcpToolDescriptorAuthEnumValue(value: any): value is McpToolDescriptorAuthEnum;
1250
+
1251
+ /**
1252
+ * @author semantha
1253
+ *
1254
+ * This is a generated file do not change manually!
1255
+ */
1256
+ declare const MessageResponseRoleEnumValues: readonly ["USER", "ASSISTANT", "SYSTEM"];
1257
+ type MessageResponseRoleEnum = (typeof MessageResponseRoleEnumValues)[number];
1258
+ declare function isMessageResponseRoleEnumValue(value: any): value is MessageResponseRoleEnum;
1259
+
1216
1260
  /**
1217
1261
  * @author semantha
1218
1262
  *
@@ -1795,9 +1839,15 @@ declare class RestClient {
1795
1839
  post<R>(url: string, params?: any, headers?: {
1796
1840
  [key: string]: string;
1797
1841
  }, data?: any, responseType?: ResponseType): Promise<RestResponse<R>>;
1798
- delete(url: string, data?: any, params?: any): Promise<RestResponse<void>>;
1799
- patch<R>(url: string, data?: any): Promise<RestResponse<R>>;
1800
- put<R>(url: string, data: any): Promise<RestResponse<R>>;
1842
+ delete(url: string, data?: any, params?: any, headers?: {
1843
+ [key: string]: string;
1844
+ }): Promise<RestResponse<void>>;
1845
+ patch<R>(url: string, data?: any, headers?: {
1846
+ [key: string]: string;
1847
+ }): Promise<RestResponse<R>>;
1848
+ put<R>(url: string, data: any, headers?: {
1849
+ [key: string]: string;
1850
+ }): Promise<RestResponse<R>>;
1801
1851
  toHeader(acceptMimeType: MediaType, contentType?: string): {
1802
1852
  [key: string]: string;
1803
1853
  };
@@ -1867,13 +1917,6 @@ declare class BulkmodelBoostwordsEndpoint {
1867
1917
  private readonly parentEndpoint;
1868
1918
  private readonly ENDPOINT;
1869
1919
  constructor(restClient: RestClient, parentEndpoint: string);
1870
- /**
1871
- * Create one or more boostwords
1872
- * This is the quiet version of 'post /api/domains/{domainname}/boostwords'
1873
- *
1874
- * @param body BoostWord[]? -
1875
- */
1876
- post(body?: BoostWord[]): Promise<void>;
1877
1920
  }
1878
1921
 
1879
1922
  /**
@@ -2343,6 +2386,19 @@ declare class CelltypesEndpoint {
2343
2386
  get(): Promise<CellType[]>;
2344
2387
  }
2345
2388
 
2389
+ /**
2390
+ * @author semantha
2391
+ *
2392
+ * Class to access resource "/api/domains/{domainname}/chats/{id}/sse"
2393
+ * This is a generated file do not change manually!
2394
+ */
2395
+ declare class SseEndpoint {
2396
+ private readonly restClient;
2397
+ private readonly parentEndpoint;
2398
+ private readonly ENDPOINT;
2399
+ constructor(restClient: RestClient, parentEndpoint: string);
2400
+ }
2401
+
2346
2402
  /**
2347
2403
  * @author semantha
2348
2404
  *
@@ -2355,13 +2411,16 @@ declare class ChatEndpoint {
2355
2411
  private readonly id;
2356
2412
  private readonly ENDPOINT;
2357
2413
  constructor(restClient: RestClient, parentEndpoint: string, id: string);
2414
+ sse(): SseEndpoint;
2358
2415
  /**
2359
2416
  * Chat with the generative model
2360
- * The chat endpoint allows you to interact with the generative model in a conversational manner. The path {id} selects the chat variant: pass '00000000-0000-0000-0000-000000000001' for document QA (attributes required) or '00000000-0000-0000-0000-000000000002' for MCP-augmented chat (attributes optional). Other values are treated as legacy and fall back to document QA.
2417
+ * The chat endpoint allows you to interact with the generative model in a conversational manner. The path {id} selects the chat variant: pass '00000000-0000-0000-0000-000000000001' for document QA (attributes required) or '00000000-0000-0000-0000-000000000002' for MCP-augmented chat (attributes optional). Other values are treated as legacy and fall back to document QA. Callers that authenticate via Polarion pass their credentials in the X-Polarion-Access-Token and X-Polarion-Base-Url headers (same contract as the conversation GET endpoints). MCP servers are attached per request via the ChatDTO mcpServers entries (label plus optional authToken and tools subset).
2361
2418
  *
2362
2419
  * @param body Chat? -
2420
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header.
2421
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2363
2422
  */
2364
- post(body?: Chat): Promise<ChatResponse>;
2423
+ post(body?: Chat, xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<ChatResponse>;
2365
2424
  }
2366
2425
 
2367
2426
  /**
@@ -2379,8 +2438,19 @@ declare class ConversationEndpoint {
2379
2438
  /**
2380
2439
  * Retrieve the message history of a chat conversation
2381
2440
  * Returns the full message history (oldest first) of the conversation identified by the conversationId that was returned from the chat endpoint, so a UI can restore a chat window after it was closed. Only the owner of the conversation may read it. Callers that authenticate via Polarion pass their credentials in the X-Polarion-Access-Token and X-Polarion-Base-Url headers; other callers are identified by their security context.
2441
+ *
2442
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header.
2443
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2444
+ */
2445
+ get(xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<ChatResponse>;
2446
+ /**
2447
+ * Delete a chat conversation
2448
+ * Deletes the conversation identified by the conversationId that was returned from the chat endpoint and removes it from the caller's conversation list. Returns 204 No Content. The delete is idempotent: deleting a conversation the platform no longer knows (already deleted, expired, or an id that never existed for this caller) also returns 204. A conversation owned by a different user returns 403 - only the owner may delete it. Callers that authenticate via Polarion pass their credentials in the X-Polarion-Access-Token and X-Polarion-Base-Url headers; other callers are identified by their security context.
2449
+ *
2450
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header.
2451
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2382
2452
  */
2383
- get(): Promise<ChatResponse>;
2453
+ delete(xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<RestResponse<void>>;
2384
2454
  }
2385
2455
 
2386
2456
  /**
@@ -2394,6 +2464,17 @@ declare class ConversationsEndpoint {
2394
2464
  private readonly parentEndpoint;
2395
2465
  private readonly ENDPOINT;
2396
2466
  constructor(restClient: RestClient, parentEndpoint: string);
2467
+ /**
2468
+ * List the calling user's chat conversations
2469
+ * Returns the conversations owned by the calling user, most recently used first, so a UI can offer a picker of previous chats. Only conversation ids and timestamps are returned; message contents are available per conversation via the history endpoint. Callers that authenticate via Polarion pass their credentials in the X-Polarion-Access-Token and X-Polarion-Base-Url headers; other callers are identified by their security context.
2470
+ *
2471
+ * @param limit number? - Maximum number of conversations to return, newest first. Defaults to 50.
2472
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header.
2473
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2474
+ */
2475
+ get(params?: {
2476
+ limit?: number;
2477
+ }, xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<ChatConversation[]>;
2397
2478
  }
2398
2479
 
2399
2480
  /**
@@ -4178,20 +4259,6 @@ declare class ModelBoostwordEndpoint {
4178
4259
  private readonly id;
4179
4260
  private readonly ENDPOINT;
4180
4261
  constructor(restClient: RestClient, parentEndpoint: string, id: string);
4181
- /**
4182
- * Read one entity.
4183
- */
4184
- get(): Promise<BoostWord>;
4185
- /**
4186
- * Delete one entity. Needs roles: 'Domain Admin' or 'Expert User'
4187
- */
4188
- delete(): Promise<RestResponse<void>>;
4189
- /**
4190
- * Change one entity. Needs roles: 'Domain Admin' or 'Expert User'
4191
- *
4192
- * @param body BoostWord -
4193
- */
4194
- put(body: BoostWord): Promise<BoostWord>;
4195
4262
  }
4196
4263
 
4197
4264
  /**
@@ -4205,20 +4272,6 @@ declare class ModelBoostwordsEndpoint {
4205
4272
  private readonly parentEndpoint;
4206
4273
  private readonly ENDPOINT;
4207
4274
  constructor(restClient: RestClient, parentEndpoint: string);
4208
- /**
4209
- * Read all available entities.
4210
- */
4211
- get(): Promise<BoostWord[]>;
4212
- /**
4213
- * Delete all available entities. Needs roles: 'Domain Admin' or 'Expert User'
4214
- */
4215
- delete(): Promise<RestResponse<void>>;
4216
- /**
4217
- * Create a new entity. Needs roles: 'Domain Admin' or 'Expert User'
4218
- *
4219
- * @param body BoostWord? -
4220
- */
4221
- post(body?: BoostWord): Promise<BoostWord>;
4222
4275
  }
4223
4276
 
4224
4277
  /**
@@ -5159,4 +5212,4 @@ declare class SemanthaAPI {
5159
5212
  model(): ModelEndpoint;
5160
5213
  }
5161
5214
 
5162
- export { type AnnotationCell, type AnnotationPage, type Answer, type AnswerReference, AnswersEndpoint, type Area, type Argument, type Attachment, type Attribute, type AttributeDatatypeEnum, AttributeDatatypeEnumValues, type AttributeOverview, type AttributeOverviewDatatypeEnum, AttributeOverviewDatatypeEnumValues, type BoostWord, BulkDomainsEndpoint, BulkEndpoint, BulkModelEndpoint, BulkdomainsDocumentclassesEndpoint, BulkdomainsDocumenttypesEndpoint, BulkdomainsDomainEndpoint, BulkdomainsReferencedocumentsEndpoint, BulkdomainsReferencesEndpoint, BulkmodelBoostwordsEndpoint, BulkmodelClassEndpoint, BulkmodelClassesEndpoint, BulkmodelDatapropertiesEndpoint, BulkmodelDomainEndpoint, BulkmodelDomainsEndpoint, BulkmodelInstancesEndpoint, BulkmodelMetadataEndpoint, BulkmodelNamedentitiesEndpoint, BulkmodelRulesEndpoint, BulkmodelStopwordsEndpoint, BulkmodelSynonymsEndpoint, BulkmodelclassInstancesEndpoint, type CellType, CelltypesEndpoint, type Char, type Chat, ChatEndpoint, type ChatResponse, ChatsEndpoint, ChildExtractorclassesEndpoint, type Class, type ClassBulk, type ClassBulkDatatypeEnum, ClassBulkDatatypeEnumValues, type ClassesOverview, CloneEndpoint, type ComplexProperty, type Condition, type ConditionValue, ConversationEndpoint, ConversationsEndpoint, ConversionsEndpoint, type CurrentUser, CurrentuserEndpoint, type CustomField, type DataProperty, DiffEndpoint, type Difference, type DifferenceOperationEnum, DifferenceOperationEnumValues, type Distance, DocclassCustomfieldsEndpoint, DocclassDocumentclassesEndpoint, DocclassReferencedocumentsEndpoint, DocclassTagsEndpoint, type Document, type DocumentClass, type DocumentClassBulk, type DocumentClassNode, type DocumentInformation, type DocumentMetaData, type DocumentNamedEntity, type DocumentTable, type DocumentType, type DocumentTypeChange, type DocumentTypeConfig, DocumentannotationsEndpoint, DocumentclassEndpoint, DocumentclassesEndpoint, type DocumentmodeEnum, DocumentmodeEnumValues, DocumentsEndpoint, DocumenttypeEndpoint, DocumenttypesEndpoint, type Domain, DomainEndpoint, type DomainInfo, DomainsEndpoint, type Entity, type ErrorContainer, type ErrorField, type ErrorFieldCodeEnum, ErrorFieldCodeEnumValues, type Expression, type ExtractionArea, type ExtractionFile, type ExtractionReference, type Extractor, type ExtractorAttribute, type ExtractorAttributeDatatypeEnum, ExtractorAttributeDatatypeEnumValues, type ExtractorClass, type ExtractorClassOverview, type ExtractorTypeEnum, ExtractorTypeEnumValues, type Features, type Field, type FieldTypeEnum, FieldTypeEnumValues, type FileReference, type Finding, type FormatInformation, type Formatter, ImageEndpoint, ImagesEndpoint, type Info, InfoEndpoint, type Instance, type InstanceChild, type InstanceOverview, type Label, type LanguageDetection, LanguagesEndpoint, type Link, type LinkedInstance, type LinkedValue, MarkdownEndpoint, type Matcher, type MatcherTypeEnum, MatcherTypeEnumValues, type McpToolDescriptor, McptoolsEndpoint, MediaType, type Message, type MessageRoleEnum, MessageRoleEnumValues, type MetaInfoPage, type Metadata, type MetadataValue, type ModeEnum, ModeEnumValues, ModelAttributesEndpoint, ModelBoostwordEndpoint, ModelBoostwordsEndpoint, type ModelClass, ModelDatapropertiesEndpoint, ModelDatapropertyEndpoint, ModelDatatypesEndpoint, ModelDomainEndpoint, ModelDomainsEndpoint, ModelEndpoint, ModelExtractorclassEndpoint, ModelExtractorclassesEndpoint, ModelExtractorsEndpoint, ModelExtractortypesEndpoint, ModelFormattersEndpoint, type ModelInstance, type ModelMetadata, ModelMetadataEndpoint, ModelMetadatatypesEndpoint, ModelNamedentitiesEndpoint, ModelNamedentityEndpoint, ModelObjectpropertiesEndpoint, ModelOnemetadataEndpoint, ModelRegexEndpoint, ModelRegexesEndpoint, ModelRelationEndpoint, ModelRelationsEndpoint, ModelRuleEndpoint, ModelRulefunctionsEndpoint, ModelRulesEndpoint, ModelStopwordEndpoint, ModelStopwordsEndpoint, ModelSynonymEndpoint, ModelSynonymsEndpoint, ModelclassesEndpoint, ModelinstancesEndpoint, ModelontAttributeEndpoint, ModelontAttributesEndpoint, ModelontClassEndpoint, ModelontClassesEndpoint, ModelontInstanceEndpoint, ModelontInstancesEndpoint, ModelontclassInstancesEndpoint, type Name, type NamedEntity, NamedentitiesEndpoint, type Overview, type Page, type PageContent, type Paragraph, ParagraphEndpoint, type ParagraphPreview, type ParagraphUpdate, ParagraphsEndpoint, type ProcessInformation, type Prompt, PromptEndpoint, type PromptExecution, type PromptLabelEnum, PromptLabelEnumValues, type PromptOverview, type PromptOverviewPromptLabelEnum, PromptOverviewPromptLabelEnumValues, type PromptPromptLabelEnum, PromptPromptLabelEnumValues, type PromptResponse, PromptValidationEndpoint, type PromptValidationRequest, type PromptValidationResponse, type PromptValidationResult, type PromptValidationTemplate, PromptsEndpoint, type Range, type Rect, type Reference, type ReferenceDocumentsResponseContainer, ReferencedocumentEndpoint, ReferencedocumentsEndpoint, ReferencedocumentsStreamEndpoint, ReferencesEndpoint, type Regex, type Relation, type RelationCondition, type ResponseMetaInfo, RestClient, RestResponse, RolesEndpoint, type Row, type Rule, type RuleFunction, type RuleFunctionTypeEnum, RuleFunctionTypeEnumValues, type RuleOverview, SemanthaAPI, type SemanticModel, type Sentence, SentenceEndpoint, SentencesEndpoint, type Settings, type SettingsDefaultSimilarityModeEnum, SettingsDefaultSimilarityModeEnumValues, SettingsEndpoint, type SettingsExtractionStrategyEnum, SettingsExtractionStrategyEnumValues, type SettingsTaggingStrategyEnum, SettingsTaggingStrategyEnumValues, type SimpleProperty, type Statistic, StatisticEndpoint, type StopWord, type Summarization, SummarizationsEndpoint, type SummarylengthEnum, SummarylengthEnumValues, type Synonym, type TableCell, type TableInstance, type TagDocs, TagEndpoint, TagReferencedocumentsEndpoint, TagsEndpoint, type TextType, TexttypesEndpoint, type Translation, type TranslationResponse, TranslationsEndpoint, TreeEndpoint, type TypeEnum, TypeEnumValues, ValidationEndpoint, type Version, isAttributeDatatypeEnumValue, isAttributeOverviewDatatypeEnumValue, isClassBulkDatatypeEnumValue, isDifferenceOperationEnumValue, isDocumentmodeEnumValue, isErrorFieldCodeEnumValue, isExtractorAttributeDatatypeEnumValue, isExtractorTypeEnumValue, isFieldTypeEnumValue, isMatcherTypeEnumValue, isMessageRoleEnumValue, isModeEnumValue, isPromptLabelEnumValue, isPromptOverviewPromptLabelEnumValue, isPromptPromptLabelEnumValue, isRuleFunctionTypeEnumValue, isSettingsDefaultSimilarityModeEnumValue, isSettingsExtractionStrategyEnumValue, isSettingsTaggingStrategyEnumValue, isSummarylengthEnumValue, isTypeEnumValue };
5215
+ export { type AnnotationCell, type AnnotationPage, type Answer, type AnswerReference, AnswersEndpoint, type Area, type Argument, type Attachment, type Attribute, type AttributeDatatypeEnum, AttributeDatatypeEnumValues, type AttributeOverview, type AttributeOverviewDatatypeEnum, AttributeOverviewDatatypeEnumValues, BulkDomainsEndpoint, BulkEndpoint, BulkModelEndpoint, BulkdomainsDocumentclassesEndpoint, BulkdomainsDocumenttypesEndpoint, BulkdomainsDomainEndpoint, BulkdomainsReferencedocumentsEndpoint, BulkdomainsReferencesEndpoint, BulkmodelBoostwordsEndpoint, BulkmodelClassEndpoint, BulkmodelClassesEndpoint, BulkmodelDatapropertiesEndpoint, BulkmodelDomainEndpoint, BulkmodelDomainsEndpoint, BulkmodelInstancesEndpoint, BulkmodelMetadataEndpoint, BulkmodelNamedentitiesEndpoint, BulkmodelRulesEndpoint, BulkmodelStopwordsEndpoint, BulkmodelSynonymsEndpoint, BulkmodelclassInstancesEndpoint, type CellType, CelltypesEndpoint, type Char, type Chat, type ChatConversation, ChatEndpoint, type ChatResponse, ChatsEndpoint, ChildExtractorclassesEndpoint, type Class, type ClassBulk, type ClassBulkDatatypeEnum, ClassBulkDatatypeEnumValues, type ClassesOverview, CloneEndpoint, type ComplexProperty, type Condition, type ConditionValue, ConversationEndpoint, ConversationsEndpoint, ConversionsEndpoint, type CurrentUser, CurrentuserEndpoint, type CustomField, type DataProperty, DiffEndpoint, type Difference, type DifferenceOperationEnum, DifferenceOperationEnumValues, type Distance, DocclassCustomfieldsEndpoint, DocclassDocumentclassesEndpoint, DocclassReferencedocumentsEndpoint, DocclassTagsEndpoint, type Document, type DocumentClass, type DocumentClassBulk, type DocumentClassNode, type DocumentInformation, type DocumentMetaData, type DocumentNamedEntity, type DocumentTable, type DocumentType, type DocumentTypeChange, type DocumentTypeConfig, DocumentannotationsEndpoint, DocumentclassEndpoint, DocumentclassesEndpoint, type DocumentmodeEnum, DocumentmodeEnumValues, DocumentsEndpoint, DocumenttypeEndpoint, DocumenttypesEndpoint, type Domain, DomainEndpoint, type DomainInfo, DomainsEndpoint, type Entity, type ErrorContainer, type ErrorField, type ErrorFieldCodeEnum, ErrorFieldCodeEnumValues, type Expression, type ExtractionArea, type ExtractionFile, type ExtractionReference, type Extractor, type ExtractorAttribute, type ExtractorAttributeDatatypeEnum, ExtractorAttributeDatatypeEnumValues, type ExtractorClass, type ExtractorClassOverview, type ExtractorTypeEnum, ExtractorTypeEnumValues, type Features, type Field, type FieldTypeEnum, FieldTypeEnumValues, type FileReference, type Finding, type FormatInformation, type Formatter, ImageEndpoint, ImagesEndpoint, type Info, InfoEndpoint, type Instance, type InstanceChild, type InstanceOverview, type Label, type LanguageDetection, LanguagesEndpoint, type Link, type LinkedInstance, type LinkedValue, MarkdownEndpoint, type Matcher, type MatcherTypeEnum, MatcherTypeEnumValues, type McpServerRequest, type McpToolDescriptor, type McpToolDescriptorAuthEnum, McpToolDescriptorAuthEnumValues, McptoolsEndpoint, MediaType, type Message, type MessageResponse, type MessageResponseRoleEnum, MessageResponseRoleEnumValues, type MessageRoleEnum, MessageRoleEnumValues, type MetaInfoPage, type Metadata, type MetadataValue, type ModeEnum, ModeEnumValues, ModelAttributesEndpoint, ModelBoostwordEndpoint, ModelBoostwordsEndpoint, type ModelClass, ModelDatapropertiesEndpoint, ModelDatapropertyEndpoint, ModelDatatypesEndpoint, ModelDomainEndpoint, ModelDomainsEndpoint, ModelEndpoint, ModelExtractorclassEndpoint, ModelExtractorclassesEndpoint, ModelExtractorsEndpoint, ModelExtractortypesEndpoint, ModelFormattersEndpoint, type ModelInstance, type ModelMetadata, ModelMetadataEndpoint, ModelMetadatatypesEndpoint, ModelNamedentitiesEndpoint, ModelNamedentityEndpoint, ModelObjectpropertiesEndpoint, ModelOnemetadataEndpoint, ModelRegexEndpoint, ModelRegexesEndpoint, ModelRelationEndpoint, ModelRelationsEndpoint, ModelRuleEndpoint, ModelRulefunctionsEndpoint, ModelRulesEndpoint, ModelStopwordEndpoint, ModelStopwordsEndpoint, ModelSynonymEndpoint, ModelSynonymsEndpoint, ModelclassesEndpoint, ModelinstancesEndpoint, ModelontAttributeEndpoint, ModelontAttributesEndpoint, ModelontClassEndpoint, ModelontClassesEndpoint, ModelontInstanceEndpoint, ModelontInstancesEndpoint, ModelontclassInstancesEndpoint, type Name, type NamedEntity, NamedentitiesEndpoint, type Overview, type Page, type PageContent, type Paragraph, ParagraphEndpoint, type ParagraphPreview, type ParagraphUpdate, ParagraphsEndpoint, type ProcessInformation, type Prompt, PromptEndpoint, type PromptExecution, type PromptLabelEnum, PromptLabelEnumValues, type PromptOverview, type PromptOverviewPromptLabelEnum, PromptOverviewPromptLabelEnumValues, type PromptPromptLabelEnum, PromptPromptLabelEnumValues, type PromptResponse, PromptValidationEndpoint, type PromptValidationRequest, type PromptValidationResponse, type PromptValidationResult, type PromptValidationTemplate, PromptsEndpoint, type Range, type Rect, type Reference, type ReferenceDocumentsResponseContainer, ReferencedocumentEndpoint, ReferencedocumentsEndpoint, ReferencedocumentsStreamEndpoint, ReferencesEndpoint, type Regex, type Relation, type RelationCondition, type ResponseMetaInfo, RestClient, RestResponse, RolesEndpoint, type Row, type Rule, type RuleFunction, type RuleFunctionTypeEnum, RuleFunctionTypeEnumValues, type RuleOverview, SemanthaAPI, type SemanticModel, type Sentence, SentenceEndpoint, SentencesEndpoint, type Settings, type SettingsDefaultSimilarityModeEnum, SettingsDefaultSimilarityModeEnumValues, SettingsEndpoint, type SettingsExtractionStrategyEnum, SettingsExtractionStrategyEnumValues, type SettingsTaggingStrategyEnum, SettingsTaggingStrategyEnumValues, type SimpleProperty, SseEndpoint, type Statistic, StatisticEndpoint, type StopWord, type Summarization, SummarizationsEndpoint, type SummarylengthEnum, SummarylengthEnumValues, type Synonym, type TableCell, type TableInstance, type TagDocs, TagEndpoint, TagReferencedocumentsEndpoint, TagsEndpoint, type TextType, TexttypesEndpoint, type Translation, type TranslationResponse, TranslationsEndpoint, TreeEndpoint, type TypeEnum, TypeEnumValues, ValidationEndpoint, type Version, isAttributeDatatypeEnumValue, isAttributeOverviewDatatypeEnumValue, isClassBulkDatatypeEnumValue, isDifferenceOperationEnumValue, isDocumentmodeEnumValue, isErrorFieldCodeEnumValue, isExtractorAttributeDatatypeEnumValue, isExtractorTypeEnumValue, isFieldTypeEnumValue, isMatcherTypeEnumValue, isMcpToolDescriptorAuthEnumValue, isMessageResponseRoleEnumValue, isMessageRoleEnumValue, isModeEnumValue, isPromptLabelEnumValue, isPromptOverviewPromptLabelEnumValue, isPromptPromptLabelEnumValue, isRuleFunctionTypeEnumValue, isSettingsDefaultSimilarityModeEnumValue, isSettingsExtractionStrategyEnumValue, isSettingsTaggingStrategyEnumValue, isSummarylengthEnumValue, isTypeEnumValue };
package/dist/index.d.ts CHANGED
@@ -213,19 +213,6 @@ declare const AttributeOverviewDatatypeEnumValues: readonly ["STRING", "CURRENCY
213
213
  type AttributeOverviewDatatypeEnum = (typeof AttributeOverviewDatatypeEnumValues)[number];
214
214
  declare function isAttributeOverviewDatatypeEnumValue(value: any): value is AttributeOverviewDatatypeEnum;
215
215
 
216
- /**
217
- * @author semantha
218
- *
219
- * This is a generated file do not change manually!
220
- */
221
- interface BoostWord {
222
- id?: string;
223
- word?: string;
224
- regex?: string;
225
- tags?: string[];
226
- label?: string;
227
- }
228
-
229
216
  /**
230
217
  * @author semantha
231
218
  *
@@ -249,6 +236,17 @@ interface Char {
249
236
  area?: Rect;
250
237
  }
251
238
 
239
+ /**
240
+ * @author semantha
241
+ *
242
+ * This is a generated file do not change manually!
243
+ */
244
+ interface McpServerRequest {
245
+ label: string;
246
+ authToken?: string;
247
+ tools?: string[];
248
+ }
249
+
252
250
  /**
253
251
  * @author semantha
254
252
  *
@@ -257,6 +255,10 @@ interface Char {
257
255
  interface Message {
258
256
  role?: MessageRoleEnum;
259
257
  content?: string;
258
+ metadata?: {
259
+ [key: string]: any;
260
+ };
261
+ context?: string;
260
262
  }
261
263
 
262
264
  /**
@@ -271,9 +273,32 @@ interface Chat {
271
273
  temperature?: number;
272
274
  topK?: number;
273
275
  conversationId?: string;
274
- polarionAccessToken?: string;
275
- polarionBaseUrl?: string;
276
- enabledMcpTools?: string[];
276
+ mcpServers?: McpServerRequest[];
277
+ }
278
+
279
+ /**
280
+ * @author semantha
281
+ *
282
+ * This is a generated file do not change manually!
283
+ */
284
+ interface ChatConversation {
285
+ conversationId?: string;
286
+ title?: string;
287
+ createdAt?: number;
288
+ lastUsedAt?: number;
289
+ }
290
+
291
+ /**
292
+ * @author semantha
293
+ *
294
+ * This is a generated file do not change manually!
295
+ */
296
+ interface MessageResponse {
297
+ role?: MessageResponseRoleEnum;
298
+ content?: string;
299
+ metadata?: {
300
+ [key: string]: any;
301
+ };
277
302
  }
278
303
 
279
304
  /**
@@ -282,7 +307,7 @@ interface Chat {
282
307
  * This is a generated file do not change manually!
283
308
  */
284
309
  interface ChatResponse {
285
- messages?: Message[];
310
+ messages?: MessageResponse[];
286
311
  conversationId?: string;
287
312
  }
288
313
 
@@ -1211,8 +1236,27 @@ interface McpToolDescriptor {
1211
1236
  label?: string;
1212
1237
  description?: string;
1213
1238
  allowedTools?: string[];
1239
+ auth?: McpToolDescriptorAuthEnum;
1214
1240
  }
1215
1241
 
1242
+ /**
1243
+ * @author semantha
1244
+ *
1245
+ * This is a generated file do not change manually!
1246
+ */
1247
+ declare const McpToolDescriptorAuthEnumValues: readonly ["REQUIRED", "OPTIONAL", "NONE"];
1248
+ type McpToolDescriptorAuthEnum = (typeof McpToolDescriptorAuthEnumValues)[number];
1249
+ declare function isMcpToolDescriptorAuthEnumValue(value: any): value is McpToolDescriptorAuthEnum;
1250
+
1251
+ /**
1252
+ * @author semantha
1253
+ *
1254
+ * This is a generated file do not change manually!
1255
+ */
1256
+ declare const MessageResponseRoleEnumValues: readonly ["USER", "ASSISTANT", "SYSTEM"];
1257
+ type MessageResponseRoleEnum = (typeof MessageResponseRoleEnumValues)[number];
1258
+ declare function isMessageResponseRoleEnumValue(value: any): value is MessageResponseRoleEnum;
1259
+
1216
1260
  /**
1217
1261
  * @author semantha
1218
1262
  *
@@ -1795,9 +1839,15 @@ declare class RestClient {
1795
1839
  post<R>(url: string, params?: any, headers?: {
1796
1840
  [key: string]: string;
1797
1841
  }, data?: any, responseType?: ResponseType): Promise<RestResponse<R>>;
1798
- delete(url: string, data?: any, params?: any): Promise<RestResponse<void>>;
1799
- patch<R>(url: string, data?: any): Promise<RestResponse<R>>;
1800
- put<R>(url: string, data: any): Promise<RestResponse<R>>;
1842
+ delete(url: string, data?: any, params?: any, headers?: {
1843
+ [key: string]: string;
1844
+ }): Promise<RestResponse<void>>;
1845
+ patch<R>(url: string, data?: any, headers?: {
1846
+ [key: string]: string;
1847
+ }): Promise<RestResponse<R>>;
1848
+ put<R>(url: string, data: any, headers?: {
1849
+ [key: string]: string;
1850
+ }): Promise<RestResponse<R>>;
1801
1851
  toHeader(acceptMimeType: MediaType, contentType?: string): {
1802
1852
  [key: string]: string;
1803
1853
  };
@@ -1867,13 +1917,6 @@ declare class BulkmodelBoostwordsEndpoint {
1867
1917
  private readonly parentEndpoint;
1868
1918
  private readonly ENDPOINT;
1869
1919
  constructor(restClient: RestClient, parentEndpoint: string);
1870
- /**
1871
- * Create one or more boostwords
1872
- * This is the quiet version of 'post /api/domains/{domainname}/boostwords'
1873
- *
1874
- * @param body BoostWord[]? -
1875
- */
1876
- post(body?: BoostWord[]): Promise<void>;
1877
1920
  }
1878
1921
 
1879
1922
  /**
@@ -2343,6 +2386,19 @@ declare class CelltypesEndpoint {
2343
2386
  get(): Promise<CellType[]>;
2344
2387
  }
2345
2388
 
2389
+ /**
2390
+ * @author semantha
2391
+ *
2392
+ * Class to access resource "/api/domains/{domainname}/chats/{id}/sse"
2393
+ * This is a generated file do not change manually!
2394
+ */
2395
+ declare class SseEndpoint {
2396
+ private readonly restClient;
2397
+ private readonly parentEndpoint;
2398
+ private readonly ENDPOINT;
2399
+ constructor(restClient: RestClient, parentEndpoint: string);
2400
+ }
2401
+
2346
2402
  /**
2347
2403
  * @author semantha
2348
2404
  *
@@ -2355,13 +2411,16 @@ declare class ChatEndpoint {
2355
2411
  private readonly id;
2356
2412
  private readonly ENDPOINT;
2357
2413
  constructor(restClient: RestClient, parentEndpoint: string, id: string);
2414
+ sse(): SseEndpoint;
2358
2415
  /**
2359
2416
  * Chat with the generative model
2360
- * The chat endpoint allows you to interact with the generative model in a conversational manner. The path {id} selects the chat variant: pass '00000000-0000-0000-0000-000000000001' for document QA (attributes required) or '00000000-0000-0000-0000-000000000002' for MCP-augmented chat (attributes optional). Other values are treated as legacy and fall back to document QA.
2417
+ * The chat endpoint allows you to interact with the generative model in a conversational manner. The path {id} selects the chat variant: pass '00000000-0000-0000-0000-000000000001' for document QA (attributes required) or '00000000-0000-0000-0000-000000000002' for MCP-augmented chat (attributes optional). Other values are treated as legacy and fall back to document QA. Callers that authenticate via Polarion pass their credentials in the X-Polarion-Access-Token and X-Polarion-Base-Url headers (same contract as the conversation GET endpoints). MCP servers are attached per request via the ChatDTO mcpServers entries (label plus optional authToken and tools subset).
2361
2418
  *
2362
2419
  * @param body Chat? -
2420
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header.
2421
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2363
2422
  */
2364
- post(body?: Chat): Promise<ChatResponse>;
2423
+ post(body?: Chat, xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<ChatResponse>;
2365
2424
  }
2366
2425
 
2367
2426
  /**
@@ -2379,8 +2438,19 @@ declare class ConversationEndpoint {
2379
2438
  /**
2380
2439
  * Retrieve the message history of a chat conversation
2381
2440
  * Returns the full message history (oldest first) of the conversation identified by the conversationId that was returned from the chat endpoint, so a UI can restore a chat window after it was closed. Only the owner of the conversation may read it. Callers that authenticate via Polarion pass their credentials in the X-Polarion-Access-Token and X-Polarion-Base-Url headers; other callers are identified by their security context.
2441
+ *
2442
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header.
2443
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2444
+ */
2445
+ get(xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<ChatResponse>;
2446
+ /**
2447
+ * Delete a chat conversation
2448
+ * Deletes the conversation identified by the conversationId that was returned from the chat endpoint and removes it from the caller's conversation list. Returns 204 No Content. The delete is idempotent: deleting a conversation the platform no longer knows (already deleted, expired, or an id that never existed for this caller) also returns 204. A conversation owned by a different user returns 403 - only the owner may delete it. Callers that authenticate via Polarion pass their credentials in the X-Polarion-Access-Token and X-Polarion-Base-Url headers; other callers are identified by their security context.
2449
+ *
2450
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header.
2451
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2382
2452
  */
2383
- get(): Promise<ChatResponse>;
2453
+ delete(xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<RestResponse<void>>;
2384
2454
  }
2385
2455
 
2386
2456
  /**
@@ -2394,6 +2464,17 @@ declare class ConversationsEndpoint {
2394
2464
  private readonly parentEndpoint;
2395
2465
  private readonly ENDPOINT;
2396
2466
  constructor(restClient: RestClient, parentEndpoint: string);
2467
+ /**
2468
+ * List the calling user's chat conversations
2469
+ * Returns the conversations owned by the calling user, most recently used first, so a UI can offer a picker of previous chats. Only conversation ids and timestamps are returned; message contents are available per conversation via the history endpoint. Callers that authenticate via Polarion pass their credentials in the X-Polarion-Access-Token and X-Polarion-Base-Url headers; other callers are identified by their security context.
2470
+ *
2471
+ * @param limit number? - Maximum number of conversations to return, newest first. Defaults to 50.
2472
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header.
2473
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2474
+ */
2475
+ get(params?: {
2476
+ limit?: number;
2477
+ }, xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<ChatConversation[]>;
2397
2478
  }
2398
2479
 
2399
2480
  /**
@@ -4178,20 +4259,6 @@ declare class ModelBoostwordEndpoint {
4178
4259
  private readonly id;
4179
4260
  private readonly ENDPOINT;
4180
4261
  constructor(restClient: RestClient, parentEndpoint: string, id: string);
4181
- /**
4182
- * Read one entity.
4183
- */
4184
- get(): Promise<BoostWord>;
4185
- /**
4186
- * Delete one entity. Needs roles: 'Domain Admin' or 'Expert User'
4187
- */
4188
- delete(): Promise<RestResponse<void>>;
4189
- /**
4190
- * Change one entity. Needs roles: 'Domain Admin' or 'Expert User'
4191
- *
4192
- * @param body BoostWord -
4193
- */
4194
- put(body: BoostWord): Promise<BoostWord>;
4195
4262
  }
4196
4263
 
4197
4264
  /**
@@ -4205,20 +4272,6 @@ declare class ModelBoostwordsEndpoint {
4205
4272
  private readonly parentEndpoint;
4206
4273
  private readonly ENDPOINT;
4207
4274
  constructor(restClient: RestClient, parentEndpoint: string);
4208
- /**
4209
- * Read all available entities.
4210
- */
4211
- get(): Promise<BoostWord[]>;
4212
- /**
4213
- * Delete all available entities. Needs roles: 'Domain Admin' or 'Expert User'
4214
- */
4215
- delete(): Promise<RestResponse<void>>;
4216
- /**
4217
- * Create a new entity. Needs roles: 'Domain Admin' or 'Expert User'
4218
- *
4219
- * @param body BoostWord? -
4220
- */
4221
- post(body?: BoostWord): Promise<BoostWord>;
4222
4275
  }
4223
4276
 
4224
4277
  /**
@@ -5159,4 +5212,4 @@ declare class SemanthaAPI {
5159
5212
  model(): ModelEndpoint;
5160
5213
  }
5161
5214
 
5162
- export { type AnnotationCell, type AnnotationPage, type Answer, type AnswerReference, AnswersEndpoint, type Area, type Argument, type Attachment, type Attribute, type AttributeDatatypeEnum, AttributeDatatypeEnumValues, type AttributeOverview, type AttributeOverviewDatatypeEnum, AttributeOverviewDatatypeEnumValues, type BoostWord, BulkDomainsEndpoint, BulkEndpoint, BulkModelEndpoint, BulkdomainsDocumentclassesEndpoint, BulkdomainsDocumenttypesEndpoint, BulkdomainsDomainEndpoint, BulkdomainsReferencedocumentsEndpoint, BulkdomainsReferencesEndpoint, BulkmodelBoostwordsEndpoint, BulkmodelClassEndpoint, BulkmodelClassesEndpoint, BulkmodelDatapropertiesEndpoint, BulkmodelDomainEndpoint, BulkmodelDomainsEndpoint, BulkmodelInstancesEndpoint, BulkmodelMetadataEndpoint, BulkmodelNamedentitiesEndpoint, BulkmodelRulesEndpoint, BulkmodelStopwordsEndpoint, BulkmodelSynonymsEndpoint, BulkmodelclassInstancesEndpoint, type CellType, CelltypesEndpoint, type Char, type Chat, ChatEndpoint, type ChatResponse, ChatsEndpoint, ChildExtractorclassesEndpoint, type Class, type ClassBulk, type ClassBulkDatatypeEnum, ClassBulkDatatypeEnumValues, type ClassesOverview, CloneEndpoint, type ComplexProperty, type Condition, type ConditionValue, ConversationEndpoint, ConversationsEndpoint, ConversionsEndpoint, type CurrentUser, CurrentuserEndpoint, type CustomField, type DataProperty, DiffEndpoint, type Difference, type DifferenceOperationEnum, DifferenceOperationEnumValues, type Distance, DocclassCustomfieldsEndpoint, DocclassDocumentclassesEndpoint, DocclassReferencedocumentsEndpoint, DocclassTagsEndpoint, type Document, type DocumentClass, type DocumentClassBulk, type DocumentClassNode, type DocumentInformation, type DocumentMetaData, type DocumentNamedEntity, type DocumentTable, type DocumentType, type DocumentTypeChange, type DocumentTypeConfig, DocumentannotationsEndpoint, DocumentclassEndpoint, DocumentclassesEndpoint, type DocumentmodeEnum, DocumentmodeEnumValues, DocumentsEndpoint, DocumenttypeEndpoint, DocumenttypesEndpoint, type Domain, DomainEndpoint, type DomainInfo, DomainsEndpoint, type Entity, type ErrorContainer, type ErrorField, type ErrorFieldCodeEnum, ErrorFieldCodeEnumValues, type Expression, type ExtractionArea, type ExtractionFile, type ExtractionReference, type Extractor, type ExtractorAttribute, type ExtractorAttributeDatatypeEnum, ExtractorAttributeDatatypeEnumValues, type ExtractorClass, type ExtractorClassOverview, type ExtractorTypeEnum, ExtractorTypeEnumValues, type Features, type Field, type FieldTypeEnum, FieldTypeEnumValues, type FileReference, type Finding, type FormatInformation, type Formatter, ImageEndpoint, ImagesEndpoint, type Info, InfoEndpoint, type Instance, type InstanceChild, type InstanceOverview, type Label, type LanguageDetection, LanguagesEndpoint, type Link, type LinkedInstance, type LinkedValue, MarkdownEndpoint, type Matcher, type MatcherTypeEnum, MatcherTypeEnumValues, type McpToolDescriptor, McptoolsEndpoint, MediaType, type Message, type MessageRoleEnum, MessageRoleEnumValues, type MetaInfoPage, type Metadata, type MetadataValue, type ModeEnum, ModeEnumValues, ModelAttributesEndpoint, ModelBoostwordEndpoint, ModelBoostwordsEndpoint, type ModelClass, ModelDatapropertiesEndpoint, ModelDatapropertyEndpoint, ModelDatatypesEndpoint, ModelDomainEndpoint, ModelDomainsEndpoint, ModelEndpoint, ModelExtractorclassEndpoint, ModelExtractorclassesEndpoint, ModelExtractorsEndpoint, ModelExtractortypesEndpoint, ModelFormattersEndpoint, type ModelInstance, type ModelMetadata, ModelMetadataEndpoint, ModelMetadatatypesEndpoint, ModelNamedentitiesEndpoint, ModelNamedentityEndpoint, ModelObjectpropertiesEndpoint, ModelOnemetadataEndpoint, ModelRegexEndpoint, ModelRegexesEndpoint, ModelRelationEndpoint, ModelRelationsEndpoint, ModelRuleEndpoint, ModelRulefunctionsEndpoint, ModelRulesEndpoint, ModelStopwordEndpoint, ModelStopwordsEndpoint, ModelSynonymEndpoint, ModelSynonymsEndpoint, ModelclassesEndpoint, ModelinstancesEndpoint, ModelontAttributeEndpoint, ModelontAttributesEndpoint, ModelontClassEndpoint, ModelontClassesEndpoint, ModelontInstanceEndpoint, ModelontInstancesEndpoint, ModelontclassInstancesEndpoint, type Name, type NamedEntity, NamedentitiesEndpoint, type Overview, type Page, type PageContent, type Paragraph, ParagraphEndpoint, type ParagraphPreview, type ParagraphUpdate, ParagraphsEndpoint, type ProcessInformation, type Prompt, PromptEndpoint, type PromptExecution, type PromptLabelEnum, PromptLabelEnumValues, type PromptOverview, type PromptOverviewPromptLabelEnum, PromptOverviewPromptLabelEnumValues, type PromptPromptLabelEnum, PromptPromptLabelEnumValues, type PromptResponse, PromptValidationEndpoint, type PromptValidationRequest, type PromptValidationResponse, type PromptValidationResult, type PromptValidationTemplate, PromptsEndpoint, type Range, type Rect, type Reference, type ReferenceDocumentsResponseContainer, ReferencedocumentEndpoint, ReferencedocumentsEndpoint, ReferencedocumentsStreamEndpoint, ReferencesEndpoint, type Regex, type Relation, type RelationCondition, type ResponseMetaInfo, RestClient, RestResponse, RolesEndpoint, type Row, type Rule, type RuleFunction, type RuleFunctionTypeEnum, RuleFunctionTypeEnumValues, type RuleOverview, SemanthaAPI, type SemanticModel, type Sentence, SentenceEndpoint, SentencesEndpoint, type Settings, type SettingsDefaultSimilarityModeEnum, SettingsDefaultSimilarityModeEnumValues, SettingsEndpoint, type SettingsExtractionStrategyEnum, SettingsExtractionStrategyEnumValues, type SettingsTaggingStrategyEnum, SettingsTaggingStrategyEnumValues, type SimpleProperty, type Statistic, StatisticEndpoint, type StopWord, type Summarization, SummarizationsEndpoint, type SummarylengthEnum, SummarylengthEnumValues, type Synonym, type TableCell, type TableInstance, type TagDocs, TagEndpoint, TagReferencedocumentsEndpoint, TagsEndpoint, type TextType, TexttypesEndpoint, type Translation, type TranslationResponse, TranslationsEndpoint, TreeEndpoint, type TypeEnum, TypeEnumValues, ValidationEndpoint, type Version, isAttributeDatatypeEnumValue, isAttributeOverviewDatatypeEnumValue, isClassBulkDatatypeEnumValue, isDifferenceOperationEnumValue, isDocumentmodeEnumValue, isErrorFieldCodeEnumValue, isExtractorAttributeDatatypeEnumValue, isExtractorTypeEnumValue, isFieldTypeEnumValue, isMatcherTypeEnumValue, isMessageRoleEnumValue, isModeEnumValue, isPromptLabelEnumValue, isPromptOverviewPromptLabelEnumValue, isPromptPromptLabelEnumValue, isRuleFunctionTypeEnumValue, isSettingsDefaultSimilarityModeEnumValue, isSettingsExtractionStrategyEnumValue, isSettingsTaggingStrategyEnumValue, isSummarylengthEnumValue, isTypeEnumValue };
5215
+ export { type AnnotationCell, type AnnotationPage, type Answer, type AnswerReference, AnswersEndpoint, type Area, type Argument, type Attachment, type Attribute, type AttributeDatatypeEnum, AttributeDatatypeEnumValues, type AttributeOverview, type AttributeOverviewDatatypeEnum, AttributeOverviewDatatypeEnumValues, BulkDomainsEndpoint, BulkEndpoint, BulkModelEndpoint, BulkdomainsDocumentclassesEndpoint, BulkdomainsDocumenttypesEndpoint, BulkdomainsDomainEndpoint, BulkdomainsReferencedocumentsEndpoint, BulkdomainsReferencesEndpoint, BulkmodelBoostwordsEndpoint, BulkmodelClassEndpoint, BulkmodelClassesEndpoint, BulkmodelDatapropertiesEndpoint, BulkmodelDomainEndpoint, BulkmodelDomainsEndpoint, BulkmodelInstancesEndpoint, BulkmodelMetadataEndpoint, BulkmodelNamedentitiesEndpoint, BulkmodelRulesEndpoint, BulkmodelStopwordsEndpoint, BulkmodelSynonymsEndpoint, BulkmodelclassInstancesEndpoint, type CellType, CelltypesEndpoint, type Char, type Chat, type ChatConversation, ChatEndpoint, type ChatResponse, ChatsEndpoint, ChildExtractorclassesEndpoint, type Class, type ClassBulk, type ClassBulkDatatypeEnum, ClassBulkDatatypeEnumValues, type ClassesOverview, CloneEndpoint, type ComplexProperty, type Condition, type ConditionValue, ConversationEndpoint, ConversationsEndpoint, ConversionsEndpoint, type CurrentUser, CurrentuserEndpoint, type CustomField, type DataProperty, DiffEndpoint, type Difference, type DifferenceOperationEnum, DifferenceOperationEnumValues, type Distance, DocclassCustomfieldsEndpoint, DocclassDocumentclassesEndpoint, DocclassReferencedocumentsEndpoint, DocclassTagsEndpoint, type Document, type DocumentClass, type DocumentClassBulk, type DocumentClassNode, type DocumentInformation, type DocumentMetaData, type DocumentNamedEntity, type DocumentTable, type DocumentType, type DocumentTypeChange, type DocumentTypeConfig, DocumentannotationsEndpoint, DocumentclassEndpoint, DocumentclassesEndpoint, type DocumentmodeEnum, DocumentmodeEnumValues, DocumentsEndpoint, DocumenttypeEndpoint, DocumenttypesEndpoint, type Domain, DomainEndpoint, type DomainInfo, DomainsEndpoint, type Entity, type ErrorContainer, type ErrorField, type ErrorFieldCodeEnum, ErrorFieldCodeEnumValues, type Expression, type ExtractionArea, type ExtractionFile, type ExtractionReference, type Extractor, type ExtractorAttribute, type ExtractorAttributeDatatypeEnum, ExtractorAttributeDatatypeEnumValues, type ExtractorClass, type ExtractorClassOverview, type ExtractorTypeEnum, ExtractorTypeEnumValues, type Features, type Field, type FieldTypeEnum, FieldTypeEnumValues, type FileReference, type Finding, type FormatInformation, type Formatter, ImageEndpoint, ImagesEndpoint, type Info, InfoEndpoint, type Instance, type InstanceChild, type InstanceOverview, type Label, type LanguageDetection, LanguagesEndpoint, type Link, type LinkedInstance, type LinkedValue, MarkdownEndpoint, type Matcher, type MatcherTypeEnum, MatcherTypeEnumValues, type McpServerRequest, type McpToolDescriptor, type McpToolDescriptorAuthEnum, McpToolDescriptorAuthEnumValues, McptoolsEndpoint, MediaType, type Message, type MessageResponse, type MessageResponseRoleEnum, MessageResponseRoleEnumValues, type MessageRoleEnum, MessageRoleEnumValues, type MetaInfoPage, type Metadata, type MetadataValue, type ModeEnum, ModeEnumValues, ModelAttributesEndpoint, ModelBoostwordEndpoint, ModelBoostwordsEndpoint, type ModelClass, ModelDatapropertiesEndpoint, ModelDatapropertyEndpoint, ModelDatatypesEndpoint, ModelDomainEndpoint, ModelDomainsEndpoint, ModelEndpoint, ModelExtractorclassEndpoint, ModelExtractorclassesEndpoint, ModelExtractorsEndpoint, ModelExtractortypesEndpoint, ModelFormattersEndpoint, type ModelInstance, type ModelMetadata, ModelMetadataEndpoint, ModelMetadatatypesEndpoint, ModelNamedentitiesEndpoint, ModelNamedentityEndpoint, ModelObjectpropertiesEndpoint, ModelOnemetadataEndpoint, ModelRegexEndpoint, ModelRegexesEndpoint, ModelRelationEndpoint, ModelRelationsEndpoint, ModelRuleEndpoint, ModelRulefunctionsEndpoint, ModelRulesEndpoint, ModelStopwordEndpoint, ModelStopwordsEndpoint, ModelSynonymEndpoint, ModelSynonymsEndpoint, ModelclassesEndpoint, ModelinstancesEndpoint, ModelontAttributeEndpoint, ModelontAttributesEndpoint, ModelontClassEndpoint, ModelontClassesEndpoint, ModelontInstanceEndpoint, ModelontInstancesEndpoint, ModelontclassInstancesEndpoint, type Name, type NamedEntity, NamedentitiesEndpoint, type Overview, type Page, type PageContent, type Paragraph, ParagraphEndpoint, type ParagraphPreview, type ParagraphUpdate, ParagraphsEndpoint, type ProcessInformation, type Prompt, PromptEndpoint, type PromptExecution, type PromptLabelEnum, PromptLabelEnumValues, type PromptOverview, type PromptOverviewPromptLabelEnum, PromptOverviewPromptLabelEnumValues, type PromptPromptLabelEnum, PromptPromptLabelEnumValues, type PromptResponse, PromptValidationEndpoint, type PromptValidationRequest, type PromptValidationResponse, type PromptValidationResult, type PromptValidationTemplate, PromptsEndpoint, type Range, type Rect, type Reference, type ReferenceDocumentsResponseContainer, ReferencedocumentEndpoint, ReferencedocumentsEndpoint, ReferencedocumentsStreamEndpoint, ReferencesEndpoint, type Regex, type Relation, type RelationCondition, type ResponseMetaInfo, RestClient, RestResponse, RolesEndpoint, type Row, type Rule, type RuleFunction, type RuleFunctionTypeEnum, RuleFunctionTypeEnumValues, type RuleOverview, SemanthaAPI, type SemanticModel, type Sentence, SentenceEndpoint, SentencesEndpoint, type Settings, type SettingsDefaultSimilarityModeEnum, SettingsDefaultSimilarityModeEnumValues, SettingsEndpoint, type SettingsExtractionStrategyEnum, SettingsExtractionStrategyEnumValues, type SettingsTaggingStrategyEnum, SettingsTaggingStrategyEnumValues, type SimpleProperty, SseEndpoint, type Statistic, StatisticEndpoint, type StopWord, type Summarization, SummarizationsEndpoint, type SummarylengthEnum, SummarylengthEnumValues, type Synonym, type TableCell, type TableInstance, type TagDocs, TagEndpoint, TagReferencedocumentsEndpoint, TagsEndpoint, type TextType, TexttypesEndpoint, type Translation, type TranslationResponse, TranslationsEndpoint, TreeEndpoint, type TypeEnum, TypeEnumValues, ValidationEndpoint, type Version, isAttributeDatatypeEnumValue, isAttributeOverviewDatatypeEnumValue, isClassBulkDatatypeEnumValue, isDifferenceOperationEnumValue, isDocumentmodeEnumValue, isErrorFieldCodeEnumValue, isExtractorAttributeDatatypeEnumValue, isExtractorTypeEnumValue, isFieldTypeEnumValue, isMatcherTypeEnumValue, isMcpToolDescriptorAuthEnumValue, isMessageResponseRoleEnumValue, isMessageRoleEnumValue, isModeEnumValue, isPromptLabelEnumValue, isPromptOverviewPromptLabelEnumValue, isPromptPromptLabelEnumValue, isRuleFunctionTypeEnumValue, isSettingsDefaultSimilarityModeEnumValue, isSettingsExtractionStrategyEnumValue, isSettingsTaggingStrategyEnumValue, isSummarylengthEnumValue, isTypeEnumValue };