@semantha/sdk 11.8.1 → 11.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1707,17 +1707,6 @@ interface Statistic {
1707
1707
  docsPerTag?: TagDocs[];
1708
1708
  }
1709
1709
 
1710
- /**
1711
- * @author semantha
1712
- *
1713
- * This is a generated file do not change manually!
1714
- */
1715
- interface StopWord {
1716
- word: string;
1717
- id?: string;
1718
- standard?: boolean;
1719
- }
1720
-
1721
1710
  /**
1722
1711
  * @author semantha
1723
1712
  *
@@ -1801,6 +1790,27 @@ declare class RestResponse<T> {
1801
1790
  getStatusCode(): Promise<number>;
1802
1791
  getStatusText(): Promise<string>;
1803
1792
  }
1793
+ /**
1794
+ * A single Server-Sent Event as emitted by a `text/event-stream` response,
1795
+ * parsed according to the WHATWG event stream format.
1796
+ */
1797
+ declare class ServerSentEvent {
1798
+ readonly event: string | undefined;
1799
+ readonly data: string;
1800
+ readonly id?: string | undefined;
1801
+ readonly retry?: number | undefined;
1802
+ constructor(event: string | undefined, data: string, id?: string | undefined, retry?: number | undefined);
1803
+ /**
1804
+ * The `data` payload parsed as JSON.
1805
+ */
1806
+ json<T = unknown>(): T;
1807
+ }
1808
+ /**
1809
+ * Turns the raw byte stream of a `text/event-stream` response into an async
1810
+ * iterable of {@link ServerSentEvent}s, yielding each event as soon as it has
1811
+ * been fully received.
1812
+ */
1813
+ declare function parseServerSentEvents(body: ReadableStream<Uint8Array>): AsyncIterable<ServerSentEvent>;
1804
1814
 
1805
1815
  declare enum MediaType {
1806
1816
  JSON = "application/json",
@@ -1811,7 +1821,8 @@ declare enum MediaType {
1811
1821
  REQIFZ = "application/reqifz",
1812
1822
  PNG = "image/png",
1813
1823
  BINARY = "application/octet-stream",
1814
- TEXT_PLAIN = "text/plain"
1824
+ TEXT_PLAIN = "text/plain",
1825
+ EVENT_STREAM = "text/event-stream"
1815
1826
  }
1816
1827
  declare class RestClient {
1817
1828
  private readonly serverUrl;
@@ -1839,6 +1850,12 @@ declare class RestClient {
1839
1850
  post<R>(url: string, params?: any, headers?: {
1840
1851
  [key: string]: string;
1841
1852
  }, data?: any, responseType?: ResponseType): Promise<RestResponse<R>>;
1853
+ postEventStream(url: string, params?: {
1854
+ [key: string]: any;
1855
+ }, headers?: {
1856
+ [key: string]: string;
1857
+ }, data?: any): Promise<AsyncIterable<ServerSentEvent>>;
1858
+ private toQueryString;
1842
1859
  delete(url: string, data?: any, params?: any, headers?: {
1843
1860
  [key: string]: string;
1844
1861
  }): Promise<RestResponse<void>>;
@@ -1906,19 +1923,6 @@ declare class BulkDomainsEndpoint {
1906
1923
  constructor(restClient: RestClient, parentEndpoint: string);
1907
1924
  }
1908
1925
 
1909
- /**
1910
- * @author semantha
1911
- *
1912
- * Class to access resource "/api/bulk/model/domains/{domainname}/boostwords"
1913
- * This is a generated file do not change manually!
1914
- */
1915
- declare class BulkmodelBoostwordsEndpoint {
1916
- private readonly restClient;
1917
- private readonly parentEndpoint;
1918
- private readonly ENDPOINT;
1919
- constructor(restClient: RestClient, parentEndpoint: string);
1920
- }
1921
-
1922
1926
  /**
1923
1927
  * @author semantha
1924
1928
  *
@@ -2097,25 +2101,6 @@ declare class BulkmodelRulesEndpoint {
2097
2101
  post(body?: Rule[]): Promise<void>;
2098
2102
  }
2099
2103
 
2100
- /**
2101
- * @author semantha
2102
- *
2103
- * Class to access resource "/api/bulk/model/domains/{domainname}/stopwords"
2104
- * This is a generated file do not change manually!
2105
- */
2106
- declare class BulkmodelStopwordsEndpoint {
2107
- private readonly restClient;
2108
- private readonly parentEndpoint;
2109
- private readonly ENDPOINT;
2110
- constructor(restClient: RestClient, parentEndpoint: string);
2111
- /**
2112
- * Add a list of stop words to your domain
2113
- *
2114
- * @param body StopWord[]? -
2115
- */
2116
- post(body?: StopWord[]): Promise<void>;
2117
- }
2118
-
2119
2104
  /**
2120
2105
  * @author semantha
2121
2106
  *
@@ -2148,7 +2133,6 @@ declare class BulkmodelDomainEndpoint {
2148
2133
  private readonly domainname;
2149
2134
  private readonly ENDPOINT;
2150
2135
  constructor(restClient: RestClient, parentEndpoint: string, domainname: string);
2151
- boostwords(): BulkmodelBoostwordsEndpoint;
2152
2136
  classes(): BulkmodelClassesEndpoint;
2153
2137
  classes(classid: string): BulkmodelClassEndpoint;
2154
2138
  dataproperties(): BulkmodelDatapropertiesEndpoint;
@@ -2156,7 +2140,6 @@ declare class BulkmodelDomainEndpoint {
2156
2140
  metadata(): BulkmodelMetadataEndpoint;
2157
2141
  namedentities(): BulkmodelNamedentitiesEndpoint;
2158
2142
  rules(): BulkmodelRulesEndpoint;
2159
- stopwords(): BulkmodelStopwordsEndpoint;
2160
2143
  synonyms(): BulkmodelSynonymsEndpoint;
2161
2144
  }
2162
2145
 
@@ -2397,6 +2380,15 @@ declare class SseEndpoint {
2397
2380
  private readonly parentEndpoint;
2398
2381
  private readonly ENDPOINT;
2399
2382
  constructor(restClient: RestClient, parentEndpoint: string);
2383
+ /**
2384
+ * Stream a chat response via Server-Sent Events
2385
+ * Streaming variant of the chat endpoint with identical semantics (same {id} prompt-variant selection, request body, and Polarion header credentials). The response is a text/event-stream: an 'event: delta' per output-text chunk (data: {"content":"..."}), a terminal 'event: done' carrying the conversationId (data: {"conversationId":"..."}), and 'event: error' (data: {"message":"..."}) if generation fails after the stream has started. Requires a generative model that supports streaming (the stateful Responses backend).
2386
+ *
2387
+ * @param body Chat? -
2388
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header. Takes precedence over the deprecated ChatDTO body fields.
2389
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2390
+ */
2391
+ postAsEventStream(body?: Chat, xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<AsyncIterable<ServerSentEvent>>;
2400
2392
  }
2401
2393
 
2402
2394
  /**
@@ -4247,33 +4239,6 @@ declare class ModelAttributesEndpoint {
4247
4239
  get(): Promise<AttributeOverview[]>;
4248
4240
  }
4249
4241
 
4250
- /**
4251
- * @author semantha
4252
- *
4253
- * Class to access resource "/api/model/domains/{domainname}/boostwords/{id}"
4254
- * This is a generated file do not change manually!
4255
- */
4256
- declare class ModelBoostwordEndpoint {
4257
- private readonly restClient;
4258
- private readonly parentEndpoint;
4259
- private readonly id;
4260
- private readonly ENDPOINT;
4261
- constructor(restClient: RestClient, parentEndpoint: string, id: string);
4262
- }
4263
-
4264
- /**
4265
- * @author semantha
4266
- *
4267
- * Class to access resource "/api/model/domains/{domainname}/boostwords"
4268
- * This is a generated file do not change manually!
4269
- */
4270
- declare class ModelBoostwordsEndpoint {
4271
- private readonly restClient;
4272
- private readonly parentEndpoint;
4273
- private readonly ENDPOINT;
4274
- constructor(restClient: RestClient, parentEndpoint: string);
4275
- }
4276
-
4277
4242
  /**
4278
4243
  * @author semantha
4279
4244
  *
@@ -4732,65 +4697,6 @@ declare class ModelRulesEndpoint {
4732
4697
  post(body?: Rule): Promise<Rule>;
4733
4698
  }
4734
4699
 
4735
- /**
4736
- * @author semantha
4737
- *
4738
- * Class to access resource "/api/model/domains/{domainname}/stopwords/{id}"
4739
- * This is a generated file do not change manually!
4740
- */
4741
- declare class ModelStopwordEndpoint {
4742
- private readonly restClient;
4743
- private readonly parentEndpoint;
4744
- private readonly id;
4745
- private readonly ENDPOINT;
4746
- constructor(restClient: RestClient, parentEndpoint: string, id: string);
4747
- /**
4748
- * Get a stop word by id
4749
- */
4750
- get(): Promise<StopWord>;
4751
- /**
4752
- * Delete a stop word by id
4753
- */
4754
- delete(): Promise<RestResponse<void>>;
4755
- /**
4756
- * Update a stop word by id
4757
- *
4758
- * @param body StopWord -
4759
- */
4760
- put(body: StopWord): Promise<StopWord>;
4761
- }
4762
-
4763
- /**
4764
- * @author semantha
4765
- *
4766
- * Class to access resource "/api/model/domains/{domainname}/stopwords"
4767
- * This is a generated file do not change manually!
4768
- */
4769
- declare class ModelStopwordsEndpoint {
4770
- private readonly restClient;
4771
- private readonly parentEndpoint;
4772
- private readonly ENDPOINT;
4773
- constructor(restClient: RestClient, parentEndpoint: string);
4774
- /**
4775
- * Get all stop words
4776
- */
4777
- get(): Promise<StopWord[]>;
4778
- /**
4779
- * Delete all stop words
4780
- *
4781
- * @param params.restorestandardstopwords boolean? -
4782
- */
4783
- delete(params?: {
4784
- restorestandardstopwords?: boolean;
4785
- }): Promise<RestResponse<void>>;
4786
- /**
4787
- * Create a stop word
4788
- *
4789
- * @param body StopWord? -
4790
- */
4791
- post(body?: StopWord): Promise<StopWord>;
4792
- }
4793
-
4794
4700
  /**
4795
4701
  * @author semantha
4796
4702
  *
@@ -5040,8 +4946,6 @@ declare class ModelDomainEndpoint {
5040
4946
  private readonly ENDPOINT;
5041
4947
  constructor(restClient: RestClient, parentEndpoint: string, domainname: string);
5042
4948
  attributes(): ModelAttributesEndpoint;
5043
- boostwords(): ModelBoostwordsEndpoint;
5044
- boostwords(id: string): ModelBoostwordEndpoint;
5045
4949
  classes(): ModelontClassesEndpoint;
5046
4950
  classes(classid: string): ModelontClassEndpoint;
5047
4951
  dataproperties(): ModelDatapropertiesEndpoint;
@@ -5064,8 +4968,6 @@ declare class ModelDomainEndpoint {
5064
4968
  rulefunctions(): ModelRulefunctionsEndpoint;
5065
4969
  rules(): ModelRulesEndpoint;
5066
4970
  rules(id: string): ModelRuleEndpoint;
5067
- stopwords(): ModelStopwordsEndpoint;
5068
- stopwords(id: string): ModelStopwordEndpoint;
5069
4971
  synonyms(): ModelSynonymsEndpoint;
5070
4972
  synonyms(id: string): ModelSynonymEndpoint;
5071
4973
  /**
@@ -5212,4 +5114,4 @@ declare class SemanthaAPI {
5212
5114
  model(): ModelEndpoint;
5213
5115
  }
5214
5116
 
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 };
5117
+ 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, BulkmodelClassEndpoint, BulkmodelClassesEndpoint, BulkmodelDatapropertiesEndpoint, BulkmodelDomainEndpoint, BulkmodelDomainsEndpoint, BulkmodelInstancesEndpoint, BulkmodelMetadataEndpoint, BulkmodelNamedentitiesEndpoint, BulkmodelRulesEndpoint, 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, 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, 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, ServerSentEvent, type Settings, type SettingsDefaultSimilarityModeEnum, SettingsDefaultSimilarityModeEnumValues, SettingsEndpoint, type SettingsExtractionStrategyEnum, SettingsExtractionStrategyEnumValues, type SettingsTaggingStrategyEnum, SettingsTaggingStrategyEnumValues, type SimpleProperty, SseEndpoint, type Statistic, StatisticEndpoint, 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, parseServerSentEvents };
package/dist/index.d.ts CHANGED
@@ -1707,17 +1707,6 @@ interface Statistic {
1707
1707
  docsPerTag?: TagDocs[];
1708
1708
  }
1709
1709
 
1710
- /**
1711
- * @author semantha
1712
- *
1713
- * This is a generated file do not change manually!
1714
- */
1715
- interface StopWord {
1716
- word: string;
1717
- id?: string;
1718
- standard?: boolean;
1719
- }
1720
-
1721
1710
  /**
1722
1711
  * @author semantha
1723
1712
  *
@@ -1801,6 +1790,27 @@ declare class RestResponse<T> {
1801
1790
  getStatusCode(): Promise<number>;
1802
1791
  getStatusText(): Promise<string>;
1803
1792
  }
1793
+ /**
1794
+ * A single Server-Sent Event as emitted by a `text/event-stream` response,
1795
+ * parsed according to the WHATWG event stream format.
1796
+ */
1797
+ declare class ServerSentEvent {
1798
+ readonly event: string | undefined;
1799
+ readonly data: string;
1800
+ readonly id?: string | undefined;
1801
+ readonly retry?: number | undefined;
1802
+ constructor(event: string | undefined, data: string, id?: string | undefined, retry?: number | undefined);
1803
+ /**
1804
+ * The `data` payload parsed as JSON.
1805
+ */
1806
+ json<T = unknown>(): T;
1807
+ }
1808
+ /**
1809
+ * Turns the raw byte stream of a `text/event-stream` response into an async
1810
+ * iterable of {@link ServerSentEvent}s, yielding each event as soon as it has
1811
+ * been fully received.
1812
+ */
1813
+ declare function parseServerSentEvents(body: ReadableStream<Uint8Array>): AsyncIterable<ServerSentEvent>;
1804
1814
 
1805
1815
  declare enum MediaType {
1806
1816
  JSON = "application/json",
@@ -1811,7 +1821,8 @@ declare enum MediaType {
1811
1821
  REQIFZ = "application/reqifz",
1812
1822
  PNG = "image/png",
1813
1823
  BINARY = "application/octet-stream",
1814
- TEXT_PLAIN = "text/plain"
1824
+ TEXT_PLAIN = "text/plain",
1825
+ EVENT_STREAM = "text/event-stream"
1815
1826
  }
1816
1827
  declare class RestClient {
1817
1828
  private readonly serverUrl;
@@ -1839,6 +1850,12 @@ declare class RestClient {
1839
1850
  post<R>(url: string, params?: any, headers?: {
1840
1851
  [key: string]: string;
1841
1852
  }, data?: any, responseType?: ResponseType): Promise<RestResponse<R>>;
1853
+ postEventStream(url: string, params?: {
1854
+ [key: string]: any;
1855
+ }, headers?: {
1856
+ [key: string]: string;
1857
+ }, data?: any): Promise<AsyncIterable<ServerSentEvent>>;
1858
+ private toQueryString;
1842
1859
  delete(url: string, data?: any, params?: any, headers?: {
1843
1860
  [key: string]: string;
1844
1861
  }): Promise<RestResponse<void>>;
@@ -1906,19 +1923,6 @@ declare class BulkDomainsEndpoint {
1906
1923
  constructor(restClient: RestClient, parentEndpoint: string);
1907
1924
  }
1908
1925
 
1909
- /**
1910
- * @author semantha
1911
- *
1912
- * Class to access resource "/api/bulk/model/domains/{domainname}/boostwords"
1913
- * This is a generated file do not change manually!
1914
- */
1915
- declare class BulkmodelBoostwordsEndpoint {
1916
- private readonly restClient;
1917
- private readonly parentEndpoint;
1918
- private readonly ENDPOINT;
1919
- constructor(restClient: RestClient, parentEndpoint: string);
1920
- }
1921
-
1922
1926
  /**
1923
1927
  * @author semantha
1924
1928
  *
@@ -2097,25 +2101,6 @@ declare class BulkmodelRulesEndpoint {
2097
2101
  post(body?: Rule[]): Promise<void>;
2098
2102
  }
2099
2103
 
2100
- /**
2101
- * @author semantha
2102
- *
2103
- * Class to access resource "/api/bulk/model/domains/{domainname}/stopwords"
2104
- * This is a generated file do not change manually!
2105
- */
2106
- declare class BulkmodelStopwordsEndpoint {
2107
- private readonly restClient;
2108
- private readonly parentEndpoint;
2109
- private readonly ENDPOINT;
2110
- constructor(restClient: RestClient, parentEndpoint: string);
2111
- /**
2112
- * Add a list of stop words to your domain
2113
- *
2114
- * @param body StopWord[]? -
2115
- */
2116
- post(body?: StopWord[]): Promise<void>;
2117
- }
2118
-
2119
2104
  /**
2120
2105
  * @author semantha
2121
2106
  *
@@ -2148,7 +2133,6 @@ declare class BulkmodelDomainEndpoint {
2148
2133
  private readonly domainname;
2149
2134
  private readonly ENDPOINT;
2150
2135
  constructor(restClient: RestClient, parentEndpoint: string, domainname: string);
2151
- boostwords(): BulkmodelBoostwordsEndpoint;
2152
2136
  classes(): BulkmodelClassesEndpoint;
2153
2137
  classes(classid: string): BulkmodelClassEndpoint;
2154
2138
  dataproperties(): BulkmodelDatapropertiesEndpoint;
@@ -2156,7 +2140,6 @@ declare class BulkmodelDomainEndpoint {
2156
2140
  metadata(): BulkmodelMetadataEndpoint;
2157
2141
  namedentities(): BulkmodelNamedentitiesEndpoint;
2158
2142
  rules(): BulkmodelRulesEndpoint;
2159
- stopwords(): BulkmodelStopwordsEndpoint;
2160
2143
  synonyms(): BulkmodelSynonymsEndpoint;
2161
2144
  }
2162
2145
 
@@ -2397,6 +2380,15 @@ declare class SseEndpoint {
2397
2380
  private readonly parentEndpoint;
2398
2381
  private readonly ENDPOINT;
2399
2382
  constructor(restClient: RestClient, parentEndpoint: string);
2383
+ /**
2384
+ * Stream a chat response via Server-Sent Events
2385
+ * Streaming variant of the chat endpoint with identical semantics (same {id} prompt-variant selection, request body, and Polarion header credentials). The response is a text/event-stream: an 'event: delta' per output-text chunk (data: {"content":"..."}), a terminal 'event: done' carrying the conversationId (data: {"conversationId":"..."}), and 'event: error' (data: {"message":"..."}) if generation fails after the stream has started. Requires a generative model that supports streaming (the stateful Responses backend).
2386
+ *
2387
+ * @param body Chat? -
2388
+ * @param xPolarionAccessToken string? - Polarion personal access token; must be provided together with the base url header. Takes precedence over the deprecated ChatDTO body fields.
2389
+ * @param xPolarionBaseUrl string? - Base url of the Polarion instance to validate the token against.
2390
+ */
2391
+ postAsEventStream(body?: Chat, xPolarionAccessToken?: string, xPolarionBaseUrl?: string): Promise<AsyncIterable<ServerSentEvent>>;
2400
2392
  }
2401
2393
 
2402
2394
  /**
@@ -4247,33 +4239,6 @@ declare class ModelAttributesEndpoint {
4247
4239
  get(): Promise<AttributeOverview[]>;
4248
4240
  }
4249
4241
 
4250
- /**
4251
- * @author semantha
4252
- *
4253
- * Class to access resource "/api/model/domains/{domainname}/boostwords/{id}"
4254
- * This is a generated file do not change manually!
4255
- */
4256
- declare class ModelBoostwordEndpoint {
4257
- private readonly restClient;
4258
- private readonly parentEndpoint;
4259
- private readonly id;
4260
- private readonly ENDPOINT;
4261
- constructor(restClient: RestClient, parentEndpoint: string, id: string);
4262
- }
4263
-
4264
- /**
4265
- * @author semantha
4266
- *
4267
- * Class to access resource "/api/model/domains/{domainname}/boostwords"
4268
- * This is a generated file do not change manually!
4269
- */
4270
- declare class ModelBoostwordsEndpoint {
4271
- private readonly restClient;
4272
- private readonly parentEndpoint;
4273
- private readonly ENDPOINT;
4274
- constructor(restClient: RestClient, parentEndpoint: string);
4275
- }
4276
-
4277
4242
  /**
4278
4243
  * @author semantha
4279
4244
  *
@@ -4732,65 +4697,6 @@ declare class ModelRulesEndpoint {
4732
4697
  post(body?: Rule): Promise<Rule>;
4733
4698
  }
4734
4699
 
4735
- /**
4736
- * @author semantha
4737
- *
4738
- * Class to access resource "/api/model/domains/{domainname}/stopwords/{id}"
4739
- * This is a generated file do not change manually!
4740
- */
4741
- declare class ModelStopwordEndpoint {
4742
- private readonly restClient;
4743
- private readonly parentEndpoint;
4744
- private readonly id;
4745
- private readonly ENDPOINT;
4746
- constructor(restClient: RestClient, parentEndpoint: string, id: string);
4747
- /**
4748
- * Get a stop word by id
4749
- */
4750
- get(): Promise<StopWord>;
4751
- /**
4752
- * Delete a stop word by id
4753
- */
4754
- delete(): Promise<RestResponse<void>>;
4755
- /**
4756
- * Update a stop word by id
4757
- *
4758
- * @param body StopWord -
4759
- */
4760
- put(body: StopWord): Promise<StopWord>;
4761
- }
4762
-
4763
- /**
4764
- * @author semantha
4765
- *
4766
- * Class to access resource "/api/model/domains/{domainname}/stopwords"
4767
- * This is a generated file do not change manually!
4768
- */
4769
- declare class ModelStopwordsEndpoint {
4770
- private readonly restClient;
4771
- private readonly parentEndpoint;
4772
- private readonly ENDPOINT;
4773
- constructor(restClient: RestClient, parentEndpoint: string);
4774
- /**
4775
- * Get all stop words
4776
- */
4777
- get(): Promise<StopWord[]>;
4778
- /**
4779
- * Delete all stop words
4780
- *
4781
- * @param params.restorestandardstopwords boolean? -
4782
- */
4783
- delete(params?: {
4784
- restorestandardstopwords?: boolean;
4785
- }): Promise<RestResponse<void>>;
4786
- /**
4787
- * Create a stop word
4788
- *
4789
- * @param body StopWord? -
4790
- */
4791
- post(body?: StopWord): Promise<StopWord>;
4792
- }
4793
-
4794
4700
  /**
4795
4701
  * @author semantha
4796
4702
  *
@@ -5040,8 +4946,6 @@ declare class ModelDomainEndpoint {
5040
4946
  private readonly ENDPOINT;
5041
4947
  constructor(restClient: RestClient, parentEndpoint: string, domainname: string);
5042
4948
  attributes(): ModelAttributesEndpoint;
5043
- boostwords(): ModelBoostwordsEndpoint;
5044
- boostwords(id: string): ModelBoostwordEndpoint;
5045
4949
  classes(): ModelontClassesEndpoint;
5046
4950
  classes(classid: string): ModelontClassEndpoint;
5047
4951
  dataproperties(): ModelDatapropertiesEndpoint;
@@ -5064,8 +4968,6 @@ declare class ModelDomainEndpoint {
5064
4968
  rulefunctions(): ModelRulefunctionsEndpoint;
5065
4969
  rules(): ModelRulesEndpoint;
5066
4970
  rules(id: string): ModelRuleEndpoint;
5067
- stopwords(): ModelStopwordsEndpoint;
5068
- stopwords(id: string): ModelStopwordEndpoint;
5069
4971
  synonyms(): ModelSynonymsEndpoint;
5070
4972
  synonyms(id: string): ModelSynonymEndpoint;
5071
4973
  /**
@@ -5212,4 +5114,4 @@ declare class SemanthaAPI {
5212
5114
  model(): ModelEndpoint;
5213
5115
  }
5214
5116
 
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 };
5117
+ 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, BulkmodelClassEndpoint, BulkmodelClassesEndpoint, BulkmodelDatapropertiesEndpoint, BulkmodelDomainEndpoint, BulkmodelDomainsEndpoint, BulkmodelInstancesEndpoint, BulkmodelMetadataEndpoint, BulkmodelNamedentitiesEndpoint, BulkmodelRulesEndpoint, 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, 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, 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, ServerSentEvent, type Settings, type SettingsDefaultSimilarityModeEnum, SettingsDefaultSimilarityModeEnumValues, SettingsEndpoint, type SettingsExtractionStrategyEnum, SettingsExtractionStrategyEnumValues, type SettingsTaggingStrategyEnum, SettingsTaggingStrategyEnumValues, type SimpleProperty, SseEndpoint, type Statistic, StatisticEndpoint, 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, parseServerSentEvents };