@semantha/sdk 10.0.0 → 10.2.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 +37 -234
- package/dist/index.d.ts +37 -234
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -340,71 +340,6 @@ interface ClassesOverview {
|
|
|
340
340
|
objectPropertyId?: string;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
/**
|
|
344
|
-
* @author semantha
|
|
345
|
-
*
|
|
346
|
-
* This is a generated file do not change manually!
|
|
347
|
-
*/
|
|
348
|
-
interface SourceDocument {
|
|
349
|
-
documentId?: string;
|
|
350
|
-
paragraphId?: string;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @author semantha
|
|
355
|
-
*
|
|
356
|
-
* This is a generated file do not change manually!
|
|
357
|
-
*/
|
|
358
|
-
interface ClusteredDocument {
|
|
359
|
-
documentId?: string;
|
|
360
|
-
sourceDocument?: SourceDocument;
|
|
361
|
-
probability?: number;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* @author semantha
|
|
366
|
-
*
|
|
367
|
-
* This is a generated file do not change manually!
|
|
368
|
-
*/
|
|
369
|
-
interface DocumentCluster {
|
|
370
|
-
id?: number;
|
|
371
|
-
count?: number;
|
|
372
|
-
label?: string;
|
|
373
|
-
content?: ClusteredDocument[];
|
|
374
|
-
representiveDocs?: string[];
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* @author semantha
|
|
379
|
-
*
|
|
380
|
-
* This is a generated file do not change manually!
|
|
381
|
-
*/
|
|
382
|
-
interface PlotlyChart {
|
|
383
|
-
data?: any[];
|
|
384
|
-
layout?: any;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* @author semantha
|
|
389
|
-
*
|
|
390
|
-
* This is a generated file do not change manually!
|
|
391
|
-
*/
|
|
392
|
-
interface ClusteringResponse {
|
|
393
|
-
clusters?: DocumentCluster[];
|
|
394
|
-
plotly?: {
|
|
395
|
-
[key: string]: PlotlyChart;
|
|
396
|
-
};
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* @author semantha
|
|
401
|
-
*
|
|
402
|
-
* This is a generated file do not change manually!
|
|
403
|
-
*/
|
|
404
|
-
declare const ClusteringstructureEnumValues: readonly ["LOCAL", "BALANCED", "GLOBAL"];
|
|
405
|
-
type ClusteringstructureEnum = (typeof ClusteringstructureEnumValues)[number];
|
|
406
|
-
declare function isClusteringstructureEnumValue(value: any): value is ClusteringstructureEnum;
|
|
407
|
-
|
|
408
343
|
/**
|
|
409
344
|
* @author semantha
|
|
410
345
|
*
|
|
@@ -902,8 +837,6 @@ declare function isDocumentmodeEnumValue(value: any): value is DocumentmodeEnum;
|
|
|
902
837
|
*/
|
|
903
838
|
interface Settings {
|
|
904
839
|
similarityModelId?: string;
|
|
905
|
-
smartClusterSimilarityModelId?: string;
|
|
906
|
-
smartClusterMaxItems?: number;
|
|
907
840
|
compareLibraryMaxItems?: number;
|
|
908
841
|
analyzerMaxItems?: number;
|
|
909
842
|
keepNumbers?: boolean;
|
|
@@ -1454,15 +1387,6 @@ interface PromptResponse {
|
|
|
1454
1387
|
response?: string;
|
|
1455
1388
|
}
|
|
1456
1389
|
|
|
1457
|
-
/**
|
|
1458
|
-
* @author semantha
|
|
1459
|
-
*
|
|
1460
|
-
* This is a generated file do not change manually!
|
|
1461
|
-
*/
|
|
1462
|
-
declare const RangeEnumValues: readonly ["HOURS", "DAYS", "MONTHS", "YEARS"];
|
|
1463
|
-
type RangeEnum = (typeof RangeEnumValues)[number];
|
|
1464
|
-
declare function isRangeEnumValue(value: any): value is RangeEnum;
|
|
1465
|
-
|
|
1466
1390
|
/**
|
|
1467
1391
|
* @author semantha
|
|
1468
1392
|
*
|
|
@@ -1591,16 +1515,6 @@ interface SemanticModel {
|
|
|
1591
1515
|
processInformation?: ProcessInformation;
|
|
1592
1516
|
}
|
|
1593
1517
|
|
|
1594
|
-
/**
|
|
1595
|
-
* @author semantha
|
|
1596
|
-
*
|
|
1597
|
-
* This is a generated file do not change manually!
|
|
1598
|
-
*/
|
|
1599
|
-
interface SemiSuperVisedDocument {
|
|
1600
|
-
documentId?: string;
|
|
1601
|
-
topicId?: number;
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
1518
|
/**
|
|
1605
1519
|
* @author semantha
|
|
1606
1520
|
*
|
|
@@ -1628,49 +1542,6 @@ declare const SettingsTaggingStrategyEnumValues: readonly ["TOP1", "TOP3", "TOP5
|
|
|
1628
1542
|
type SettingsTaggingStrategyEnum = (typeof SettingsTaggingStrategyEnumValues)[number];
|
|
1629
1543
|
declare function isSettingsTaggingStrategyEnumValue(value: any): value is SettingsTaggingStrategyEnum;
|
|
1630
1544
|
|
|
1631
|
-
/**
|
|
1632
|
-
* @author semantha
|
|
1633
|
-
*
|
|
1634
|
-
* This is a generated file do not change manually!
|
|
1635
|
-
*/
|
|
1636
|
-
interface SmartClusterResponseContainer {
|
|
1637
|
-
meta?: ResponseMetaInfo;
|
|
1638
|
-
data?: ClusteringResponse;
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
/**
|
|
1642
|
-
* @author semantha
|
|
1643
|
-
*
|
|
1644
|
-
* This is a generated file do not change manually!
|
|
1645
|
-
*/
|
|
1646
|
-
interface SmartClusterSemiSupervisedRequest {
|
|
1647
|
-
clusteringName?: string;
|
|
1648
|
-
minClusterSize?: string;
|
|
1649
|
-
clusteringStructure?: SmartClusterSemiSupervisedRequestClusteringStructureEnum;
|
|
1650
|
-
topicOverTimeRange?: SmartClusterSemiSupervisedRequestTopicOverTimeRangeEnum;
|
|
1651
|
-
reduceOutliers?: boolean;
|
|
1652
|
-
umapNrOfNeighbors?: number;
|
|
1653
|
-
documents?: SemiSuperVisedDocument[];
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
/**
|
|
1657
|
-
* @author semantha
|
|
1658
|
-
*
|
|
1659
|
-
* This is a generated file do not change manually!
|
|
1660
|
-
*/
|
|
1661
|
-
declare const SmartClusterSemiSupervisedRequestClusteringStructureEnumValues: readonly ["LOCAL", "BALANCED", "GLOBAL"];
|
|
1662
|
-
type SmartClusterSemiSupervisedRequestClusteringStructureEnum = (typeof SmartClusterSemiSupervisedRequestClusteringStructureEnumValues)[number];
|
|
1663
|
-
declare function isSmartClusterSemiSupervisedRequestClusteringStructureEnumValue(value: any): value is SmartClusterSemiSupervisedRequestClusteringStructureEnum;
|
|
1664
|
-
|
|
1665
|
-
/**
|
|
1666
|
-
* @author semantha
|
|
1667
|
-
*
|
|
1668
|
-
* This is a generated file do not change manually!
|
|
1669
|
-
*/
|
|
1670
|
-
declare const SmartClusterSemiSupervisedRequestTopicOverTimeRangeEnumValues: readonly ["HOURS", "DAYS", "MONTHS", "YEARS"];
|
|
1671
|
-
type SmartClusterSemiSupervisedRequestTopicOverTimeRangeEnum = (typeof SmartClusterSemiSupervisedRequestTopicOverTimeRangeEnumValues)[number];
|
|
1672
|
-
declare function isSmartClusterSemiSupervisedRequestTopicOverTimeRangeEnumValue(value: any): value is SmartClusterSemiSupervisedRequestTopicOverTimeRangeEnum;
|
|
1673
|
-
|
|
1674
1545
|
/**
|
|
1675
1546
|
* @author semantha
|
|
1676
1547
|
*
|
|
@@ -1752,10 +1623,22 @@ interface TextType {
|
|
|
1752
1623
|
*
|
|
1753
1624
|
* This is a generated file do not change manually!
|
|
1754
1625
|
*/
|
|
1755
|
-
interface
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1626
|
+
interface Translation {
|
|
1627
|
+
text: string;
|
|
1628
|
+
targetLanguage: string;
|
|
1629
|
+
sourceLanguage?: string;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* @author semantha
|
|
1634
|
+
*
|
|
1635
|
+
* This is a generated file do not change manually!
|
|
1636
|
+
*/
|
|
1637
|
+
interface TranslationResponse {
|
|
1638
|
+
translation?: string;
|
|
1639
|
+
score?: number;
|
|
1640
|
+
inputTokens?: number;
|
|
1641
|
+
outputTokens?: number;
|
|
1759
1642
|
}
|
|
1760
1643
|
|
|
1761
1644
|
/**
|
|
@@ -2154,8 +2037,12 @@ declare class BulkdomainsDocumentclassesEndpoint {
|
|
|
2154
2037
|
constructor(restClient: RestClient, parentEndpoint: string);
|
|
2155
2038
|
/**
|
|
2156
2039
|
* Get all document classesThis is the quiet version of 'get /api/domains/{domainname}/documentclasses'
|
|
2040
|
+
*
|
|
2041
|
+
* @param withdocids boolean? -
|
|
2157
2042
|
*/
|
|
2158
|
-
get(
|
|
2043
|
+
get(params?: {
|
|
2044
|
+
withdocids?: boolean;
|
|
2045
|
+
}): Promise<DocumentClassBulk[]>;
|
|
2159
2046
|
/**
|
|
2160
2047
|
* Create one or more document classesThis is the quiet version of 'post /api/domains/{domainname}/documentclasses'
|
|
2161
2048
|
*
|
|
@@ -2396,67 +2283,6 @@ declare class CloneEndpoint {
|
|
|
2396
2283
|
post(body?: Name): Promise<DocumentType>;
|
|
2397
2284
|
}
|
|
2398
2285
|
|
|
2399
|
-
/**
|
|
2400
|
-
* @author semantha
|
|
2401
|
-
*
|
|
2402
|
-
* Class to access resource "/api/domains/{domainname}/referencedocuments/clusters"
|
|
2403
|
-
* This is a generated file do not change manually!
|
|
2404
|
-
*/
|
|
2405
|
-
declare class ClustersEndpoint {
|
|
2406
|
-
private readonly restClient;
|
|
2407
|
-
private readonly parentEndpoint;
|
|
2408
|
-
private readonly ENDPOINT;
|
|
2409
|
-
constructor(restClient: RestClient, parentEndpoint: string);
|
|
2410
|
-
/**
|
|
2411
|
-
* Clusters reference documents based on their semantic content and provides labels for each cluster
|
|
2412
|
-
*
|
|
2413
|
-
* @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.
|
|
2414
|
-
* @param name string? - Filter documents for a given name
|
|
2415
|
-
* @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.
|
|
2416
|
-
* @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.
|
|
2417
|
-
* @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.
|
|
2418
|
-
* @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.
|
|
2419
|
-
* @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).
|
|
2420
|
-
* @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.
|
|
2421
|
-
* @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.
|
|
2422
|
-
* @param mincharacters number? - Filters the returned reference documents to include only documents that have a minimum of characters
|
|
2423
|
-
* @param metadata string? - Filter documents for part of metadata, casing is ignored.
|
|
2424
|
-
* @param comment string? - Filter documents for part of comment, casing is ignored.
|
|
2425
|
-
* @param sourcedoc boolean? - If true, then only source documents are returned.
|
|
2426
|
-
* @param sourcedocumentid string? - Filter documents a specific source document.
|
|
2427
|
-
* @param minclustersize string? - Determines the size of the cluster, values are LOW, MEDIUM, HIGH
|
|
2428
|
-
* @param clusteringstructure ClusteringstructureEnum? - Determines how clusters are created, values are LOCAL, BALANCED, GLOBAL
|
|
2429
|
-
* @param reduceoutliers boolean? - Boolean to try to reduce outlier on clustering
|
|
2430
|
-
* @param range RangeEnum? - Used for topic over time clustering, values are HOURS, DAYS, MONTHS, YEARS
|
|
2431
|
-
* @param neighbors number? - Number of neighbors
|
|
2432
|
-
*/
|
|
2433
|
-
get(params?: {
|
|
2434
|
-
documentids?: string;
|
|
2435
|
-
name?: string;
|
|
2436
|
-
createdafter?: number;
|
|
2437
|
-
createdbefore?: number;
|
|
2438
|
-
updatedafter?: number;
|
|
2439
|
-
updatedbefore?: number;
|
|
2440
|
-
tags?: string;
|
|
2441
|
-
documentclassids?: string;
|
|
2442
|
-
withoutdocumentclass?: boolean;
|
|
2443
|
-
mincharacters?: number;
|
|
2444
|
-
metadata?: string;
|
|
2445
|
-
comment?: string;
|
|
2446
|
-
sourcedoc?: boolean;
|
|
2447
|
-
sourcedocumentid?: string;
|
|
2448
|
-
minclustersize?: string;
|
|
2449
|
-
clusteringstructure?: ClusteringstructureEnum;
|
|
2450
|
-
reduceoutliers?: boolean;
|
|
2451
|
-
range?: RangeEnum;
|
|
2452
|
-
neighbors?: number;
|
|
2453
|
-
}): Promise<SmartClusterResponseContainer>;
|
|
2454
|
-
/**
|
|
2455
|
-
* @param body SmartClusterSemiSupervisedRequest -
|
|
2456
|
-
*/
|
|
2457
|
-
put(body: SmartClusterSemiSupervisedRequest): Promise<SmartClusterResponseContainer>;
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
2286
|
/**
|
|
2461
2287
|
* @author semantha
|
|
2462
2288
|
*
|
|
@@ -2580,7 +2406,7 @@ declare class DocclassDocumentclassesEndpoint {
|
|
|
2580
2406
|
*/
|
|
2581
2407
|
patch(body: string[]): Promise<DocumentClass[]>;
|
|
2582
2408
|
/**
|
|
2583
|
-
* Create one
|
|
2409
|
+
* Create one subclass for a document class identified by name
|
|
2584
2410
|
*
|
|
2585
2411
|
* @param body DocumentClass? -
|
|
2586
2412
|
*/
|
|
@@ -2733,7 +2559,7 @@ declare class DocumentclassesEndpoint {
|
|
|
2733
2559
|
*/
|
|
2734
2560
|
delete(): Promise<RestResponse<void>>;
|
|
2735
2561
|
/**
|
|
2736
|
-
* Create one
|
|
2562
|
+
* Create one document class
|
|
2737
2563
|
*
|
|
2738
2564
|
* @param body DocumentClass? -
|
|
2739
2565
|
*/
|
|
@@ -3336,19 +3162,18 @@ declare class ReferencedocumentsEndpoint {
|
|
|
3336
3162
|
private readonly parentEndpoint;
|
|
3337
3163
|
private readonly ENDPOINT;
|
|
3338
3164
|
constructor(restClient: RestClient, parentEndpoint: string);
|
|
3339
|
-
clusters(): ClustersEndpoint;
|
|
3340
3165
|
namedentities(): NamedentitiesEndpoint;
|
|
3341
3166
|
statistic(): StatisticEndpoint;
|
|
3342
3167
|
/**
|
|
3343
3168
|
* 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>.
|
|
3344
3169
|
*
|
|
3345
|
-
* @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).
|
|
3346
3170
|
* @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.
|
|
3347
3171
|
* @param name string? - Filter documents for a given name
|
|
3348
3172
|
* @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.
|
|
3349
3173
|
* @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.
|
|
3350
3174
|
* @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.
|
|
3351
3175
|
* @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.
|
|
3176
|
+
* @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).
|
|
3352
3177
|
* @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.
|
|
3353
3178
|
* @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.
|
|
3354
3179
|
* @param mincharacters number? - Filters the returned reference documents to include only documents that have a minimum of characters
|
|
@@ -3362,13 +3187,13 @@ declare class ReferencedocumentsEndpoint {
|
|
|
3362
3187
|
* @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"
|
|
3363
3188
|
*/
|
|
3364
3189
|
get(params?: {
|
|
3365
|
-
tags?: string;
|
|
3366
3190
|
documentids?: string;
|
|
3367
3191
|
name?: string;
|
|
3368
3192
|
createdafter?: number;
|
|
3369
3193
|
createdbefore?: number;
|
|
3370
3194
|
updatedafter?: number;
|
|
3371
3195
|
updatedbefore?: number;
|
|
3196
|
+
tags?: string;
|
|
3372
3197
|
documentclassids?: string;
|
|
3373
3198
|
withoutdocumentclass?: boolean;
|
|
3374
3199
|
mincharacters?: number;
|
|
@@ -3384,13 +3209,13 @@ declare class ReferencedocumentsEndpoint {
|
|
|
3384
3209
|
/**
|
|
3385
3210
|
* 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>.
|
|
3386
3211
|
*
|
|
3387
|
-
* @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).
|
|
3388
3212
|
* @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.
|
|
3389
3213
|
* @param name string? - Filter documents for a given name
|
|
3390
3214
|
* @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.
|
|
3391
3215
|
* @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.
|
|
3392
3216
|
* @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.
|
|
3393
3217
|
* @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.
|
|
3218
|
+
* @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).
|
|
3394
3219
|
* @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.
|
|
3395
3220
|
* @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.
|
|
3396
3221
|
* @param mincharacters number? - Filters the returned reference documents to include only documents that have a minimum of characters
|
|
@@ -3404,13 +3229,13 @@ declare class ReferencedocumentsEndpoint {
|
|
|
3404
3229
|
* @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"
|
|
3405
3230
|
*/
|
|
3406
3231
|
getAsXlsx(params?: {
|
|
3407
|
-
tags?: string;
|
|
3408
3232
|
documentids?: string;
|
|
3409
3233
|
name?: string;
|
|
3410
3234
|
createdafter?: number;
|
|
3411
3235
|
createdbefore?: number;
|
|
3412
3236
|
updatedafter?: number;
|
|
3413
3237
|
updatedbefore?: number;
|
|
3238
|
+
tags?: string;
|
|
3414
3239
|
documentclassids?: string;
|
|
3415
3240
|
withoutdocumentclass?: boolean;
|
|
3416
3241
|
mincharacters?: number;
|
|
@@ -3712,7 +3537,7 @@ declare class SettingsEndpoint {
|
|
|
3712
3537
|
/**
|
|
3713
3538
|
* Get the configuration settings of a specific domain.
|
|
3714
3539
|
*
|
|
3715
|
-
* @param withsimilaritymodelid boolean? - If true, similarityModelId
|
|
3540
|
+
* @param withsimilaritymodelid boolean? - If true, similarityModelId is returned.
|
|
3716
3541
|
*/
|
|
3717
3542
|
get(params?: {
|
|
3718
3543
|
withsimilaritymodelid?: boolean;
|
|
@@ -3843,24 +3668,20 @@ declare class TexttypesEndpoint {
|
|
|
3843
3668
|
/**
|
|
3844
3669
|
* @author semantha
|
|
3845
3670
|
*
|
|
3846
|
-
* Class to access resource "/api/domains/{domainname}/
|
|
3671
|
+
* Class to access resource "/api/domains/{domainname}/translations"
|
|
3847
3672
|
* This is a generated file do not change manually!
|
|
3848
3673
|
*/
|
|
3849
|
-
declare class
|
|
3674
|
+
declare class TranslationsEndpoint {
|
|
3850
3675
|
private readonly restClient;
|
|
3851
3676
|
private readonly parentEndpoint;
|
|
3852
3677
|
private readonly ENDPOINT;
|
|
3853
3678
|
constructor(restClient: RestClient, parentEndpoint: string);
|
|
3854
3679
|
/**
|
|
3855
|
-
*
|
|
3680
|
+
* Translates a single text to a target language, optionally from a source language.
|
|
3856
3681
|
*
|
|
3857
|
-
* @param
|
|
3858
|
-
* @param enddate string? - End date of the day interval, excluse that day. Format is: yyyy-mm-dd
|
|
3682
|
+
* @param body Translation? -
|
|
3859
3683
|
*/
|
|
3860
|
-
|
|
3861
|
-
startdate?: string;
|
|
3862
|
-
enddate?: string;
|
|
3863
|
-
}): Promise<TransactionSummary[]>;
|
|
3684
|
+
post(body?: Translation): Promise<TranslationResponse>;
|
|
3864
3685
|
}
|
|
3865
3686
|
|
|
3866
3687
|
/**
|
|
@@ -3875,7 +3696,7 @@ declare class ValidationEndpoint {
|
|
|
3875
3696
|
private readonly ENDPOINT;
|
|
3876
3697
|
constructor(restClient: RestClient, parentEndpoint: string);
|
|
3877
3698
|
/**
|
|
3878
|
-
* Validate existing data in a
|
|
3699
|
+
* Validate existing data in a document.The coordinates come back, if data is found
|
|
3879
3700
|
*
|
|
3880
3701
|
* @param file Blob? - Input document (left document).
|
|
3881
3702
|
*/
|
|
@@ -3915,7 +3736,7 @@ declare class DomainEndpoint {
|
|
|
3915
3736
|
tags(): TagsEndpoint;
|
|
3916
3737
|
tags(tagname: string): TagEndpoint;
|
|
3917
3738
|
texttypes(): TexttypesEndpoint;
|
|
3918
|
-
|
|
3739
|
+
translations(): TranslationsEndpoint;
|
|
3919
3740
|
validation(): ValidationEndpoint;
|
|
3920
3741
|
/**
|
|
3921
3742
|
* Get the configuration settings of a specific domain.
|
|
@@ -4017,23 +3838,6 @@ declare class ModelAttributesEndpoint {
|
|
|
4017
3838
|
get(): Promise<AttributeOverview[]>;
|
|
4018
3839
|
}
|
|
4019
3840
|
|
|
4020
|
-
/**
|
|
4021
|
-
* @author semantha
|
|
4022
|
-
*
|
|
4023
|
-
* Class to access resource "/api/model/domains/{domainname}/backups"
|
|
4024
|
-
* This is a generated file do not change manually!
|
|
4025
|
-
*/
|
|
4026
|
-
declare class ModelBackupsEndpoint {
|
|
4027
|
-
private readonly restClient;
|
|
4028
|
-
private readonly parentEndpoint;
|
|
4029
|
-
private readonly ENDPOINT;
|
|
4030
|
-
constructor(restClient: RestClient, parentEndpoint: string);
|
|
4031
|
-
/**
|
|
4032
|
-
* Create a backup for the ontology
|
|
4033
|
-
*/
|
|
4034
|
-
post(): Promise<void>;
|
|
4035
|
-
}
|
|
4036
|
-
|
|
4037
3841
|
/**
|
|
4038
3842
|
* @author semantha
|
|
4039
3843
|
*
|
|
@@ -4515,7 +4319,7 @@ declare class ModelRulefunctionsEndpoint {
|
|
|
4515
4319
|
private readonly ENDPOINT;
|
|
4516
4320
|
constructor(restClient: RestClient, parentEndpoint: string);
|
|
4517
4321
|
/**
|
|
4518
|
-
* Get all
|
|
4322
|
+
* Get all rulefunctions
|
|
4519
4323
|
*/
|
|
4520
4324
|
get(): Promise<RuleFunction[]>;
|
|
4521
4325
|
}
|
|
@@ -4851,7 +4655,6 @@ declare class ModelDomainEndpoint {
|
|
|
4851
4655
|
private readonly ENDPOINT;
|
|
4852
4656
|
constructor(restClient: RestClient, parentEndpoint: string, domainname: string);
|
|
4853
4657
|
attributes(): ModelAttributesEndpoint;
|
|
4854
|
-
backups(): ModelBackupsEndpoint;
|
|
4855
4658
|
boostwords(): ModelBoostwordsEndpoint;
|
|
4856
4659
|
boostwords(id: string): ModelBoostwordEndpoint;
|
|
4857
4660
|
classes(): ModelontClassesEndpoint;
|
|
@@ -5016,4 +4819,4 @@ declare class SemanthaAPI {
|
|
|
5016
4819
|
model(): ModelEndpoint;
|
|
5017
4820
|
}
|
|
5018
4821
|
|
|
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
|
|
4822
|
+
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, 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, type Matcher, type MatcherTypeEnum, MatcherTypeEnumValues, 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 ParagraphUpdate, ParagraphsEndpoint, type ProcessInformation, type Prompt, PromptEndpoint, type PromptExecution, type PromptOverview, type PromptOverviewPromptLabelEnum, PromptOverviewPromptLabelEnumValues, type PromptPromptLabelEnum, PromptPromptLabelEnumValues, type PromptResponse, PromptsEndpoint, type Range, 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 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, type TypeEnum, TypeEnumValues, ValidationEndpoint, type Version, isAttributeDatatypeEnumValue, isAttributeOverviewDatatypeEnumValue, isClassBulkDatatypeEnumValue, isDifferenceOperationEnumValue, isDocumentmodeEnumValue, isErrorFieldCodeEnumValue, isExtractorAttributeDatatypeEnumValue, isExtractorTypeEnumValue, isFieldTypeEnumValue, isMatcherTypeEnumValue, isMessageRoleEnumValue, isModeEnumValue, isPromptOverviewPromptLabelEnumValue, isPromptPromptLabelEnumValue, isRuleFunctionTypeEnumValue, isSettingsDefaultSimilarityModeEnumValue, isSettingsExtractionStrategyEnumValue, isSettingsTaggingStrategyEnumValue, isSummarylengthEnumValue, isTypeEnumValue };
|