@semantha/sdk 9.8.0 → 10.1.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/README.md CHANGED
@@ -1,3 +1,5 @@
1
1
  ![](https://www.semantha.de/wp-content/uploads/semantha-inverted.svg)
2
2
 
3
- # 💜 semantha SDK
3
+ # semantha SDK
4
+
5
+ This is the TypeScript SDK for the semantha platform
package/dist/index.d.mts CHANGED
@@ -629,7 +629,6 @@ interface Reference {
629
629
  type?: string;
630
630
  color?: string;
631
631
  comment?: string;
632
- hasOppositeMeaning?: boolean;
633
632
  }
634
633
 
635
634
  /**
@@ -851,7 +850,6 @@ interface DocumentTypeConfig {
851
850
  doAutoSplitting?: boolean;
852
851
  autoSplitDistance?: number;
853
852
  useSimilarityModelForExtraction?: boolean;
854
- doContradictionDetection?: boolean;
855
853
  doParagraphMergingForTextFiles?: boolean;
856
854
  }
857
855
 
@@ -877,7 +875,6 @@ interface DocumentType {
877
875
  interface DocumentTypeChange {
878
876
  name?: string;
879
877
  doObjectDetection?: boolean;
880
- doContradictionDetection?: boolean;
881
878
  doSubDocumentSplitting?: boolean;
882
879
  splitModus?: string;
883
880
  splitByType?: string;
@@ -993,7 +990,7 @@ interface ErrorContainer {
993
990
  *
994
991
  * This is a generated file do not change manually!
995
992
  */
996
- declare const ErrorFieldCodeEnumValues: readonly ["BAD_REQUEST", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "CONTENT_TOO_LARGE", "INTERNAL_SERVER_ERROR", "GATEWAY_TIMEOUT", "DOCUMENTTYPE_NOT_FOUND", "DOCUMENTTYPE_NAME_EXISTS", "DOCUMENTTYPE_NOT_EDITABLE", "COMPARE_DOC_IS_EMPTY", "COMPARE_WRONG_LANGUAGE", "COMPARE_NO_REFERENCES", "DOMAIN_NOT_FOUND", "TOO_MANY_TOKENS", "NO_FILE_FOUND", "FILE_TYPE_NOT_SUPPORTED", "FILE_PASSWORDPROTECTED", "MISSING_SERVICE_DEFINITION", "SERVICE_CALL_ERROR", "GENERATIVE_MODEL_ERROR", "USED_AS_LINKED_EXTRACTOR", "CYCLICAL_DEPENDENCY_LINKED_EXTRACTOR", "FILE_TOO_BIG", "TOO_MANY_ROWS", "REGEX_INVALID", "GENERATIVE_MODEL_CONTEXT_EXCEEDED", "PROMPT_NOT_DELETABLE", "JPEG2000_NOT_SUPPORTED", "RESOURCE_NOT_FOUND", "PARENT_RESOURCE_NOT_FOUND", "RESOURCE_PARAMETER_CONSTRAINT_VIOLATION", "PLATFORM_UNREACHABLE", "FILE_SIZE_TOOBIG", "USER_REPOSITORY_NOT_CONFIGURED", "PDF_NOT_CONFIGURED", "INVALID_USER_PASSWORD", "UNKNOWN_FINGERPRINTER_ID", "JSON_ARRAY_EMPTY", "TOKENS_ILLEGAL_TYPE", "NO_JSON", "INVALID_JSON_FORMAT", "JSON_OBJECT_HAS_NO_DOCUMENTS", "DOCUMENTS_ARE_NO_JSON_ARRAY", "DOCUMENTS_JSON_ARRAY_EMPTY", "DOCUMENTS_VALUE_ERROR", "DOCUMENTS_TYPE_ERROR", "DOCUMENTS_TOO_FEW_DOCUMENTS", "REQ_NO_JSON_ARRAY", "SENTENCE_LIST_NOT_TWO", "IMAGE_NOT_PROVIDED", "IMAGE_INVALID_FORMAT", "MODEL_NAME_INVALID", "THRESHOLD_INVALID", "IMAGE_BUFFER_EMPTY", "INVALID_MODEL_ID", "IMAGE_NOT_PROVIDED_IFP", "IMAGE_INVALID_DATA", "IMAGE_INVALID_FORMAT_IFP"];
993
+ declare const ErrorFieldCodeEnumValues: readonly ["BAD_REQUEST", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "CONFLICT", "CONTENT_TOO_LARGE", "INTERNAL_SERVER_ERROR", "GATEWAY_TIMEOUT", "DOCUMENTTYPE_NOT_FOUND", "DOCUMENTTYPE_NAME_EXISTS", "DOCUMENTTYPE_NOT_EDITABLE", "COMPARE_DOC_IS_EMPTY", "COMPARE_WRONG_LANGUAGE", "COMPARE_NO_REFERENCES", "DOMAIN_NOT_FOUND", "TOO_MANY_TOKENS", "NO_FILE_FOUND", "FILE_TYPE_NOT_SUPPORTED", "FILE_PASSWORDPROTECTED", "MISSING_SERVICE_DEFINITION", "SERVICE_CALL_ERROR", "GENERATIVE_MODEL_ERROR", "USED_AS_LINKED_EXTRACTOR", "CYCLICAL_DEPENDENCY_LINKED_EXTRACTOR", "FILE_TOO_BIG", "TOO_MANY_ROWS", "REGEX_INVALID", "GENERATIVE_MODEL_CONTEXT_EXCEEDED", "PROMPT_NOT_DELETABLE", "JPEG2000_NOT_SUPPORTED", "TRANSLATION_ERROR", "RESOURCE_NOT_FOUND", "PARENT_RESOURCE_NOT_FOUND", "RESOURCE_PARAMETER_CONSTRAINT_VIOLATION", "PLATFORM_UNREACHABLE", "FILE_SIZE_TOOBIG", "USER_REPOSITORY_NOT_CONFIGURED", "PDF_NOT_CONFIGURED", "INVALID_USER_PASSWORD", "UNKNOWN_FINGERPRINTER_ID", "JSON_ARRAY_EMPTY", "TOKENS_ILLEGAL_TYPE", "NO_JSON", "INVALID_JSON_FORMAT", "JSON_OBJECT_HAS_NO_DOCUMENTS", "DOCUMENTS_ARE_NO_JSON_ARRAY", "DOCUMENTS_JSON_ARRAY_EMPTY", "DOCUMENTS_VALUE_ERROR", "DOCUMENTS_TYPE_ERROR", "DOCUMENTS_TOO_FEW_DOCUMENTS", "REQ_NO_JSON_ARRAY", "SENTENCE_LIST_NOT_TWO", "IMAGE_NOT_PROVIDED", "IMAGE_INVALID_FORMAT", "MODEL_NAME_INVALID", "THRESHOLD_INVALID", "IMAGE_BUFFER_EMPTY", "INVALID_MODEL_ID", "IMAGE_NOT_PROVIDED_IFP", "IMAGE_INVALID_DATA", "IMAGE_INVALID_FORMAT_IFP"];
997
994
  type ErrorFieldCodeEnum = (typeof ErrorFieldCodeEnumValues)[number];
998
995
  declare function isErrorFieldCodeEnumValue(value: any): value is ErrorFieldCodeEnum;
999
996
 
@@ -1251,17 +1248,6 @@ declare const MatcherTypeEnumValues: readonly ["REGEX", "ANDREGEX", "ANDNOTREGEX
1251
1248
  type MatcherTypeEnum = (typeof MatcherTypeEnumValues)[number];
1252
1249
  declare function isMatcherTypeEnumValue(value: any): value is MatcherTypeEnum;
1253
1250
 
1254
- /**
1255
- * @author semantha
1256
- *
1257
- * This is a generated file do not change manually!
1258
- */
1259
- interface MatrixRow {
1260
- documentId?: string;
1261
- documentName?: string;
1262
- references?: Reference[];
1263
- }
1264
-
1265
1251
  /**
1266
1252
  * @author semantha
1267
1253
  *
@@ -1855,7 +1841,7 @@ declare class AnswersEndpoint {
1855
1841
  * "ar", "cs", "da", "de", "en", "es", "el", "fr", "fi", "hu", "hr",
1856
1842
  * "it", "ja", "ko", "nl", "no", "pl", "pt", "ro", "ru", "sk", "sl",
1857
1843
  * "sv", "tr", "zh"
1858
- * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
1844
+ * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND). Groups (single AND or OR-groups) can be negated using an "!"
1859
1845
  */
1860
1846
  post(data: {
1861
1847
  question?: string;
@@ -2168,8 +2154,12 @@ declare class BulkdomainsDocumentclassesEndpoint {
2168
2154
  constructor(restClient: RestClient, parentEndpoint: string);
2169
2155
  /**
2170
2156
  * Get all document classesThis is the quiet version of 'get /api/domains/{domainname}/documentclasses'
2157
+ *
2158
+ * @param withdocids boolean? -
2171
2159
  */
2172
- get(): Promise<DocumentClassBulk[]>;
2160
+ get(params?: {
2161
+ withdocids?: boolean;
2162
+ }): Promise<DocumentClassBulk[]>;
2173
2163
  /**
2174
2164
  * Create one or more document classesThis is the quiet version of 'post /api/domains/{domainname}/documentclasses'
2175
2165
  *
@@ -2594,7 +2584,7 @@ declare class DocclassDocumentclassesEndpoint {
2594
2584
  */
2595
2585
  patch(body: string[]): Promise<DocumentClass[]>;
2596
2586
  /**
2597
- * Create one or more subclasses for a document class identified by name
2587
+ * Create one subclass for a document class identified by name
2598
2588
  *
2599
2589
  * @param body DocumentClass? -
2600
2590
  */
@@ -2747,7 +2737,7 @@ declare class DocumentclassesEndpoint {
2747
2737
  */
2748
2738
  delete(): Promise<RestResponse<void>>;
2749
2739
  /**
2750
- * Create one or more document classes
2740
+ * Create one document class
2751
2741
  *
2752
2742
  * @param body DocumentClass? -
2753
2743
  */
@@ -3356,13 +3346,13 @@ declare class ReferencedocumentsEndpoint {
3356
3346
  /**
3357
3347
  * Get all reference documents a.k.a. library items.Supports server side pagination and filtering for <strong>application/json</strong> media type only by using <strong>offset</strong> and <strong>limit</strong> query parameter.<br><strong>Filter parameters:</strong> name, createdbefore, createdafter, tags, documentclassids, metadata.<br>Without <strong>offset</strong> and <strong>limit</strong> parameter, data can be filtered only by <strong>tags</strong> and <strong>documentclassids</strong>.
3358
3348
  *
3359
- * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3360
3349
  * @param documentids string? - List of document Ids for target. The limit here is 65000 IDs. The IDs can be passed as a comma separated string.
3361
3350
  * @param name string? - Filter documents for a given name
3362
3351
  * @param createdafter number? - Filter for documents which are created after a given UNIX timestamp. The createdafter filter only works when also using the parameters offset and limit.
3363
3352
  * @param createdbefore number? - Filter for documents which are created before a given UNIX timestamp. The createdbefore filter only works when also using the parameters offset and limit.
3364
3353
  * @param updatedafter number? - Filter for documents which are updated after a given UNIX timestamp. The updatedafter filter only works when also using the parameters offset and limit.
3365
3354
  * @param updatedbefore number? - Filter for documents which are updated before a given UNIX timestamp. The updatedbefore filter only works when also using the parameters offset and limit.
3355
+ * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3366
3356
  * @param documentclassids string? - List of documentclass IDs for the target. The limit here is 1000 IDs. The IDs are passed as a comma separated list.
3367
3357
  * @param withoutdocumentclass boolean? - Filters the returned reference documents to include only documents that are not linked to a documentclass. The parameter is of type boolean and is set to false by default.
3368
3358
  * @param mincharacters number? - Filters the returned reference documents to include only documents that have a minimum of characters
@@ -3376,13 +3366,13 @@ declare class ReferencedocumentsEndpoint {
3376
3366
  * @param fields string? - Define which fields should be returned by the /referencedocuments endpoints. The following values can be sent as a comma-separated list: 'id', 'name', 'tags', 'derivedtags', 'metadata', 'filename', 'created', 'processed', 'lang', 'updated, color, derivedcolor, comment, derivedcomment, documentclass, contentpreview'. If empty or null all fields will be returned. Example: "id,name,contentpreview,tags"
3377
3367
  */
3378
3368
  get(params?: {
3379
- tags?: string;
3380
3369
  documentids?: string;
3381
3370
  name?: string;
3382
3371
  createdafter?: number;
3383
3372
  createdbefore?: number;
3384
3373
  updatedafter?: number;
3385
3374
  updatedbefore?: number;
3375
+ tags?: string;
3386
3376
  documentclassids?: string;
3387
3377
  withoutdocumentclass?: boolean;
3388
3378
  mincharacters?: number;
@@ -3398,13 +3388,13 @@ declare class ReferencedocumentsEndpoint {
3398
3388
  /**
3399
3389
  * Get all reference documents a.k.a. library items.Supports server side pagination and filtering for <strong>application/json</strong> media type only by using <strong>offset</strong> and <strong>limit</strong> query parameter.<br><strong>Filter parameters:</strong> name, createdbefore, createdafter, tags, documentclassids, metadata.<br>Without <strong>offset</strong> and <strong>limit</strong> parameter, data can be filtered only by <strong>tags</strong> and <strong>documentclassids</strong>.
3400
3390
  *
3401
- * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3402
3391
  * @param documentids string? - List of document Ids for target. The limit here is 65000 IDs. The IDs can be passed as a comma separated string.
3403
3392
  * @param name string? - Filter documents for a given name
3404
3393
  * @param createdafter number? - Filter for documents which are created after a given UNIX timestamp. The createdafter filter only works when also using the parameters offset and limit.
3405
3394
  * @param createdbefore number? - Filter for documents which are created before a given UNIX timestamp. The createdbefore filter only works when also using the parameters offset and limit.
3406
3395
  * @param updatedafter number? - Filter for documents which are updated after a given UNIX timestamp. The updatedafter filter only works when also using the parameters offset and limit.
3407
3396
  * @param updatedbefore number? - Filter for documents which are updated before a given UNIX timestamp. The updatedbefore filter only works when also using the parameters offset and limit.
3397
+ * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3408
3398
  * @param documentclassids string? - List of documentclass IDs for the target. The limit here is 1000 IDs. The IDs are passed as a comma separated list.
3409
3399
  * @param withoutdocumentclass boolean? - Filters the returned reference documents to include only documents that are not linked to a documentclass. The parameter is of type boolean and is set to false by default.
3410
3400
  * @param mincharacters number? - Filters the returned reference documents to include only documents that have a minimum of characters
@@ -3418,13 +3408,13 @@ declare class ReferencedocumentsEndpoint {
3418
3408
  * @param fields string? - Define which fields should be returned by the /referencedocuments endpoints. The following values can be sent as a comma-separated list: 'id', 'name', 'tags', 'derivedtags', 'metadata', 'filename', 'created', 'processed', 'lang', 'updated, color, derivedcolor, comment, derivedcomment, documentclass, contentpreview'. If empty or null all fields will be returned. Example: "id,name,contentpreview,tags"
3419
3409
  */
3420
3410
  getAsXlsx(params?: {
3421
- tags?: string;
3422
3411
  documentids?: string;
3423
3412
  name?: string;
3424
3413
  createdafter?: number;
3425
3414
  createdbefore?: number;
3426
3415
  updatedafter?: number;
3427
3416
  updatedbefore?: number;
3417
+ tags?: string;
3428
3418
  documentclassids?: string;
3429
3419
  withoutdocumentclass?: boolean;
3430
3420
  mincharacters?: number;
@@ -3503,8 +3493,7 @@ declare class ReferencesEndpoint {
3503
3493
  *
3504
3494
  * @param file Blob? - Input document (left document).
3505
3495
  * @param referencedocument Blob? - Reference document(s) to be used instead of the documents in the domain's library.
3506
- * @param referencedocumentids string[]? - To filter for document IDs. The limit here is 65000 IDs.
3507
- * The IDs are passed as a JSON array.
3496
+ * @param referencedocumentids string[]? - To filter for document IDs. The limit here is 65000 IDs. The IDs are passed as a JSON array.
3508
3497
  * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3509
3498
  * @param documentclassids string[]? - List of documentclass IDs for the target. The limit here is 1000 IDs.
3510
3499
  * The IDs are passed as a JSON array.
@@ -3556,8 +3545,7 @@ declare class ReferencesEndpoint {
3556
3545
  *
3557
3546
  * @param file Blob? - Input document (left document).
3558
3547
  * @param referencedocument Blob? - Reference document(s) to be used instead of the documents in the domain's library.
3559
- * @param referencedocumentids string[]? - To filter for document IDs. The limit here is 65000 IDs.
3560
- * The IDs are passed as a JSON array.
3548
+ * @param referencedocumentids string[]? - To filter for document IDs. The limit here is 65000 IDs. The IDs are passed as a JSON array.
3561
3549
  * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3562
3550
  * @param documentclassids string[]? - List of documentclass IDs for the target. The limit here is 1000 IDs.
3563
3551
  * The IDs are passed as a JSON array.
@@ -3609,8 +3597,7 @@ declare class ReferencesEndpoint {
3609
3597
  *
3610
3598
  * @param file Blob? - Input document (left document).
3611
3599
  * @param referencedocument Blob? - Reference document(s) to be used instead of the documents in the domain's library.
3612
- * @param referencedocumentids string[]? - To filter for document IDs. The limit here is 65000 IDs.
3613
- * The IDs are passed as a JSON array.
3600
+ * @param referencedocumentids string[]? - To filter for document IDs. The limit here is 65000 IDs. The IDs are passed as a JSON array.
3614
3601
  * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3615
3602
  * @param documentclassids string[]? - List of documentclass IDs for the target. The limit here is 1000 IDs.
3616
3603
  * The IDs are passed as a JSON array.
@@ -3662,8 +3649,7 @@ declare class ReferencesEndpoint {
3662
3649
  *
3663
3650
  * @param file Blob? - Input document (left document).
3664
3651
  * @param referencedocument Blob? - Reference document(s) to be used instead of the documents in the domain's library.
3665
- * @param referencedocumentids string[]? - To filter for document IDs. The limit here is 65000 IDs.
3666
- * The IDs are passed as a JSON array.
3652
+ * @param referencedocumentids string[]? - To filter for document IDs. The limit here is 65000 IDs. The IDs are passed as a JSON array.
3667
3653
  * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3668
3654
  * @param documentclassids string[]? - List of documentclass IDs for the target. The limit here is 1000 IDs.
3669
3655
  * The IDs are passed as a JSON array.
@@ -3739,107 +3725,6 @@ declare class SettingsEndpoint {
3739
3725
  patch(body: Settings): Promise<Settings>;
3740
3726
  }
3741
3727
 
3742
- /**
3743
- * @author semantha
3744
- *
3745
- * Class to access resource "/api/domains/{domainname}/similaritymatrix/cluster"
3746
- * This is a generated file do not change manually!
3747
- */
3748
- declare class SimilaritymatrixClusterEndpoint {
3749
- private readonly restClient;
3750
- private readonly parentEndpoint;
3751
- private readonly ENDPOINT;
3752
- constructor(restClient: RestClient, parentEndpoint: string);
3753
- /**
3754
- * Get document clustersConsolidate the documents to clusters based on the results of `post post /api/domains/{domainname}/similaritymatrix`
3755
- *
3756
- * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3757
- * @param documentids string[]? - List of document Ids for target. The limit here is 65000 IDs.
3758
- * The IDs are passed as a JSON array.
3759
- * @param documentclassids string[]? - List of documentclass IDs for the target. The limit here is 1000 IDs.
3760
- * The IDs are passed as a JSON array.
3761
- * This does not apply on the GET referencedocuments call. Here the ids are separated with a comma.
3762
- * @param similaritythreshold number? - Threshold for the similarity score. semantha will not deliver results with a sentence score lower than the threshold.
3763
- * In general, the higher the threshold, the more precise the results.
3764
- * @param mode ModeEnum? - When using the references endpoint: Use mode to determine the type of search semantha should perform.
3765
- * fingerprint: semantic search based on sentences;
3766
- * keyword: keyword: search based on sentences;
3767
- * document: a bag-of-words search that ranks a set of documents based on the query terms appearing in each document, regardless of their proximity within the document. Higher scores indicate higher similarity. Please note that the similarity score has no upper limit and is not normalized;
3768
- * document_fingerprint: a bag-of-words search that ranks a set of documents based on the query terms appearing in each document, regardless of their proximity within the document. The results are then reranked based on a semantic search. This reranking results in normalized scores and as such represents an enhancement of the mode document;
3769
- * fingerprint_keyword (formerly auto): semantic search, if no results are found a keyword search is performed
3770
- * Creating document model: It also defines what structure should be considered for what operator (similarity or extraction).
3771
- * @param considertexttype boolean? - Use this parameter to ensure that only paragraphs of the same type are compared with each other. The parameter is of type boolean and is set to false by default.
3772
- */
3773
- post(data: {
3774
- tags?: string;
3775
- documentids?: string[];
3776
- documentclassids?: string[];
3777
- similaritythreshold?: number;
3778
- mode?: ModeEnum;
3779
- considertexttype?: boolean;
3780
- }): Promise<MatrixRow[]>;
3781
- /**
3782
- * Get document clustersConsolidate the documents to clusters based on the results of `post post /api/domains/{domainname}/similaritymatrix`
3783
- *
3784
- * @param body MatrixRow[]? -
3785
- */
3786
- postJson(body?: MatrixRow[]): Promise<MatrixRow[]>;
3787
- }
3788
-
3789
- /**
3790
- * @author semantha
3791
- *
3792
- * Class to access resource "/api/domains/{domainname}/similaritymatrix"
3793
- * This is a generated file do not change manually!
3794
- */
3795
- declare class SimilaritymatrixEndpoint {
3796
- private readonly restClient;
3797
- private readonly parentEndpoint;
3798
- private readonly ENDPOINT;
3799
- constructor(restClient: RestClient, parentEndpoint: string);
3800
- cluster(): SimilaritymatrixClusterEndpoint;
3801
- /**
3802
- * Get a similarity matrix
3803
- *
3804
- * @param file Blob? - Input document (left document).
3805
- * @param tags string? - List of tags to filter the reference library. You can combine the tags using a comma (OR) and using a plus sign (AND).
3806
- * @param sourcetags string? - Filters the input library by tags
3807
- * @param documentids string[]? - List of document Ids for target. The limit here is 65000 IDs.
3808
- * The IDs are passed as a JSON array.
3809
- * @param sourcedocumentids string[]? - List of document IDs for source. The limit here is 65000 IDs.
3810
- * The IDs are passed as a JSON array.
3811
- * @param documentclassids string[]? - List of documentclass IDs for the target. The limit here is 1000 IDs.
3812
- * The IDs are passed as a JSON array.
3813
- * This does not apply on the GET referencedocuments call. Here the ids are separated with a comma.
3814
- * @param sourcedocumentclassids string[]? - List of documentclass IDs for the source. The limit here is 1000 IDs.
3815
- * The IDs are passed as a JSON array.
3816
- * @param similaritythreshold number? - Threshold for the similarity score. semantha will not deliver results with a sentence score lower than the threshold.
3817
- * In general, the higher the threshold, the more precise the results.
3818
- * @param mode ModeEnum? - When using the references endpoint: Use mode to determine the type of search semantha should perform.
3819
- * fingerprint: semantic search based on sentences;
3820
- * keyword: keyword: search based on sentences;
3821
- * document: a bag-of-words search that ranks a set of documents based on the query terms appearing in each document, regardless of their proximity within the document. Higher scores indicate higher similarity. Please note that the similarity score has no upper limit and is not normalized;
3822
- * document_fingerprint: a bag-of-words search that ranks a set of documents based on the query terms appearing in each document, regardless of their proximity within the document. The results are then reranked based on a semantic search. This reranking results in normalized scores and as such represents an enhancement of the mode document;
3823
- * fingerprint_keyword (formerly auto): semantic search, if no results are found a keyword search is performed
3824
- * Creating document model: It also defines what structure should be considered for what operator (similarity or extraction).
3825
- * @param documenttype string? - Specifies the document type that is to be used by semantha when reading the uploaded document.
3826
- * @param considertexttype boolean? - Use this parameter to ensure that only paragraphs of the same type are compared with each other. The parameter is of type boolean and is set to false by default.
3827
- */
3828
- post(data: {
3829
- file?: Blob;
3830
- tags?: string;
3831
- sourcetags?: string;
3832
- documentids?: string[];
3833
- sourcedocumentids?: string[];
3834
- documentclassids?: string[];
3835
- sourcedocumentclassids?: string[];
3836
- similaritythreshold?: number;
3837
- mode?: ModeEnum;
3838
- documenttype?: string;
3839
- considertexttype?: boolean;
3840
- }): Promise<MatrixRow[]>;
3841
- }
3842
-
3843
3728
  /**
3844
3729
  * @author semantha
3845
3730
  *
@@ -3990,7 +3875,7 @@ declare class ValidationEndpoint {
3990
3875
  private readonly ENDPOINT;
3991
3876
  constructor(restClient: RestClient, parentEndpoint: string);
3992
3877
  /**
3993
- * Validate existing data in a documentThe coordinates come back, if data is found
3878
+ * Validate existing data in a document. The coordinates come back, if data is found
3994
3879
  *
3995
3880
  * @param file Blob? - Input document (left document).
3996
3881
  */
@@ -4026,7 +3911,6 @@ declare class DomainEndpoint {
4026
3911
  referencedocuments(documentid: string): ReferencedocumentEndpoint;
4027
3912
  references(): ReferencesEndpoint;
4028
3913
  settings(): SettingsEndpoint;
4029
- similaritymatrix(): SimilaritymatrixEndpoint;
4030
3914
  summarizations(): SummarizationsEndpoint;
4031
3915
  tags(): TagsEndpoint;
4032
3916
  tags(tagname: string): TagEndpoint;
@@ -4631,7 +4515,7 @@ declare class ModelRulefunctionsEndpoint {
4631
4515
  private readonly ENDPOINT;
4632
4516
  constructor(restClient: RestClient, parentEndpoint: string);
4633
4517
  /**
4634
- * Get all rulecfunctions
4518
+ * Get all rulefunctions
4635
4519
  */
4636
4520
  get(): Promise<RuleFunction[]>;
4637
4521
  }
@@ -5003,7 +4887,7 @@ declare class ModelDomainEndpoint {
5003
4887
  /**
5004
4888
  * Update a domain by domainname
5005
4889
  *
5006
- * @param file Blob - Input document (left document).
4890
+ * @param file Blob -
5007
4891
  */
5008
4892
  patch(file: Blob): Promise<Blob>;
5009
4893
  }
@@ -5132,4 +5016,4 @@ declare class SemanthaAPI {
5132
5016
  model(): ModelEndpoint;
5133
5017
  }
5134
5018
 
5135
- 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 ClusteredDocument, type ClusteringResponse, type ClusteringstructureEnum, ClusteringstructureEnumValues, ClustersEndpoint, type ComplexProperty, type Condition, type ConditionValue, 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 DocumentCluster, 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, type Matcher, type MatcherTypeEnum, MatcherTypeEnumValues, type MatrixRow, MediaType, type Message, type MessageRoleEnum, MessageRoleEnumValues, type MetaInfoPage, type Metadata, type MetadataValue, type ModeEnum, ModeEnumValues, ModelAttributesEndpoint, ModelBackupsEndpoint, 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 ParagraphUpdate, ParagraphsEndpoint, type PlotlyChart, type ProcessInformation, type Prompt, PromptEndpoint, type PromptExecution, type PromptOverview, type PromptOverviewPromptLabelEnum, PromptOverviewPromptLabelEnumValues, type PromptPromptLabelEnum, PromptPromptLabelEnumValues, type PromptResponse, PromptsEndpoint, type Range, type RangeEnum, RangeEnumValues, type Rect, type Reference, type ReferenceDocumentsResponseContainer, ReferencedocumentEndpoint, ReferencedocumentsEndpoint, 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 SemiSuperVisedDocument, type Sentence, SentenceEndpoint, SentencesEndpoint, type Settings, type SettingsDefaultSimilarityModeEnum, SettingsDefaultSimilarityModeEnumValues, SettingsEndpoint, type SettingsExtractionStrategyEnum, SettingsExtractionStrategyEnumValues, type SettingsTaggingStrategyEnum, SettingsTaggingStrategyEnumValues, SimilaritymatrixClusterEndpoint, SimilaritymatrixEndpoint, type SimpleProperty, type SmartClusterResponseContainer, type SmartClusterSemiSupervisedRequest, type SmartClusterSemiSupervisedRequestClusteringStructureEnum, SmartClusterSemiSupervisedRequestClusteringStructureEnumValues, type SmartClusterSemiSupervisedRequestTopicOverTimeRangeEnum, SmartClusterSemiSupervisedRequestTopicOverTimeRangeEnumValues, type SourceDocument, 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 TransactionSummary, TransactionsEndpoint, type TypeEnum, TypeEnumValues, ValidationEndpoint, type Version, isAttributeDatatypeEnumValue, isAttributeOverviewDatatypeEnumValue, isClassBulkDatatypeEnumValue, isClusteringstructureEnumValue, isDifferenceOperationEnumValue, isDocumentmodeEnumValue, isErrorFieldCodeEnumValue, isExtractorAttributeDatatypeEnumValue, isExtractorTypeEnumValue, isFieldTypeEnumValue, isMatcherTypeEnumValue, isMessageRoleEnumValue, isModeEnumValue, isPromptOverviewPromptLabelEnumValue, isPromptPromptLabelEnumValue, isRangeEnumValue, isRuleFunctionTypeEnumValue, isSettingsDefaultSimilarityModeEnumValue, isSettingsExtractionStrategyEnumValue, isSettingsTaggingStrategyEnumValue, isSmartClusterSemiSupervisedRequestClusteringStructureEnumValue, isSmartClusterSemiSupervisedRequestTopicOverTimeRangeEnumValue, isSummarylengthEnumValue, isTypeEnumValue };
5019
+ 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 ClusteredDocument, type ClusteringResponse, type ClusteringstructureEnum, ClusteringstructureEnumValues, ClustersEndpoint, type ComplexProperty, type Condition, type ConditionValue, 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 DocumentCluster, 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, type Matcher, type MatcherTypeEnum, MatcherTypeEnumValues, MediaType, type Message, type MessageRoleEnum, MessageRoleEnumValues, type MetaInfoPage, type Metadata, type MetadataValue, type ModeEnum, ModeEnumValues, ModelAttributesEndpoint, ModelBackupsEndpoint, 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 ParagraphUpdate, ParagraphsEndpoint, type PlotlyChart, type ProcessInformation, type Prompt, PromptEndpoint, type PromptExecution, type PromptOverview, type PromptOverviewPromptLabelEnum, PromptOverviewPromptLabelEnumValues, type PromptPromptLabelEnum, PromptPromptLabelEnumValues, type PromptResponse, PromptsEndpoint, type Range, type RangeEnum, RangeEnumValues, type Rect, type Reference, type ReferenceDocumentsResponseContainer, ReferencedocumentEndpoint, ReferencedocumentsEndpoint, 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 SemiSuperVisedDocument, type Sentence, SentenceEndpoint, SentencesEndpoint, type Settings, type SettingsDefaultSimilarityModeEnum, SettingsDefaultSimilarityModeEnumValues, SettingsEndpoint, type SettingsExtractionStrategyEnum, SettingsExtractionStrategyEnumValues, type SettingsTaggingStrategyEnum, SettingsTaggingStrategyEnumValues, type SimpleProperty, type SmartClusterResponseContainer, type SmartClusterSemiSupervisedRequest, type SmartClusterSemiSupervisedRequestClusteringStructureEnum, SmartClusterSemiSupervisedRequestClusteringStructureEnumValues, type SmartClusterSemiSupervisedRequestTopicOverTimeRangeEnum, SmartClusterSemiSupervisedRequestTopicOverTimeRangeEnumValues, type SourceDocument, 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 TransactionSummary, TransactionsEndpoint, type TypeEnum, TypeEnumValues, ValidationEndpoint, type Version, isAttributeDatatypeEnumValue, isAttributeOverviewDatatypeEnumValue, isClassBulkDatatypeEnumValue, isClusteringstructureEnumValue, isDifferenceOperationEnumValue, isDocumentmodeEnumValue, isErrorFieldCodeEnumValue, isExtractorAttributeDatatypeEnumValue, isExtractorTypeEnumValue, isFieldTypeEnumValue, isMatcherTypeEnumValue, isMessageRoleEnumValue, isModeEnumValue, isPromptOverviewPromptLabelEnumValue, isPromptPromptLabelEnumValue, isRangeEnumValue, isRuleFunctionTypeEnumValue, isSettingsDefaultSimilarityModeEnumValue, isSettingsExtractionStrategyEnumValue, isSettingsTaggingStrategyEnumValue, isSmartClusterSemiSupervisedRequestClusteringStructureEnumValue, isSmartClusterSemiSupervisedRequestTopicOverTimeRangeEnumValue, isSummarylengthEnumValue, isTypeEnumValue };