@semantha/sdk 11.11.0 → 11.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +54 -4
- package/dist/index.d.ts +54 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -236,6 +236,16 @@ interface Char {
|
|
|
236
236
|
area?: Rect;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
/**
|
|
240
|
+
* @author semantha
|
|
241
|
+
*
|
|
242
|
+
* This is a generated file do not change manually!
|
|
243
|
+
*/
|
|
244
|
+
interface McpApprovalDecision {
|
|
245
|
+
approvalRequestId: string;
|
|
246
|
+
approve: boolean;
|
|
247
|
+
}
|
|
248
|
+
|
|
239
249
|
/**
|
|
240
250
|
* @author semantha
|
|
241
251
|
*
|
|
@@ -273,6 +283,7 @@ interface Chat {
|
|
|
273
283
|
temperature?: number;
|
|
274
284
|
conversationId?: string;
|
|
275
285
|
mcpServers?: McpServerRequest[];
|
|
286
|
+
mcpApprovals?: McpApprovalDecision[];
|
|
276
287
|
}
|
|
277
288
|
|
|
278
289
|
/**
|
|
@@ -287,6 +298,19 @@ interface ChatConversation {
|
|
|
287
298
|
lastUsedAt?: number;
|
|
288
299
|
}
|
|
289
300
|
|
|
301
|
+
/**
|
|
302
|
+
* The tool call this message is asking about. Present exactly on APPROVAL_REQUEST messages.
|
|
303
|
+
* @author semantha
|
|
304
|
+
*
|
|
305
|
+
* This is a generated file do not change manually!
|
|
306
|
+
*/
|
|
307
|
+
interface McpApprovalRequest {
|
|
308
|
+
id: string;
|
|
309
|
+
toolName: string;
|
|
310
|
+
serverLabel?: string;
|
|
311
|
+
arguments?: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
290
314
|
/**
|
|
291
315
|
* @author semantha
|
|
292
316
|
*
|
|
@@ -298,6 +322,8 @@ interface MessageResponse {
|
|
|
298
322
|
metadata?: {
|
|
299
323
|
[key: string]: any;
|
|
300
324
|
};
|
|
325
|
+
type?: MessageResponseTypeEnum;
|
|
326
|
+
approvalRequest?: McpApprovalRequest;
|
|
301
327
|
}
|
|
302
328
|
|
|
303
329
|
/**
|
|
@@ -1224,6 +1250,20 @@ declare const MatcherTypeEnumValues: readonly ["REGEX", "ANDREGEX", "ANDNOTREGEX
|
|
|
1224
1250
|
type MatcherTypeEnum = (typeof MatcherTypeEnumValues)[number];
|
|
1225
1251
|
declare function isMatcherTypeEnumValue(value: any): value is MatcherTypeEnum;
|
|
1226
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* @author semantha
|
|
1255
|
+
*
|
|
1256
|
+
* This is a generated file do not change manually!
|
|
1257
|
+
*/
|
|
1258
|
+
interface McpCapability {
|
|
1259
|
+
name?: string;
|
|
1260
|
+
title?: string;
|
|
1261
|
+
description?: string;
|
|
1262
|
+
readOnly?: boolean;
|
|
1263
|
+
destructive?: boolean;
|
|
1264
|
+
examples?: string[];
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1227
1267
|
/**
|
|
1228
1268
|
* @author semantha
|
|
1229
1269
|
*
|
|
@@ -1234,6 +1274,7 @@ interface McpToolDescriptor {
|
|
|
1234
1274
|
description?: string;
|
|
1235
1275
|
allowedTools?: string[];
|
|
1236
1276
|
auth?: McpToolDescriptorAuthEnum;
|
|
1277
|
+
capabilities?: McpCapability[];
|
|
1237
1278
|
}
|
|
1238
1279
|
|
|
1239
1280
|
/**
|
|
@@ -1254,6 +1295,15 @@ declare const MessageResponseRoleEnumValues: readonly ["USER", "ASSISTANT", "SYS
|
|
|
1254
1295
|
type MessageResponseRoleEnum = (typeof MessageResponseRoleEnumValues)[number];
|
|
1255
1296
|
declare function isMessageResponseRoleEnumValue(value: any): value is MessageResponseRoleEnum;
|
|
1256
1297
|
|
|
1298
|
+
/**
|
|
1299
|
+
* @author semantha
|
|
1300
|
+
*
|
|
1301
|
+
* This is a generated file do not change manually!
|
|
1302
|
+
*/
|
|
1303
|
+
declare const MessageResponseTypeEnumValues: readonly ["ANSWER", "THINKING", "ERROR", "APPROVAL_REQUEST"];
|
|
1304
|
+
type MessageResponseTypeEnum = (typeof MessageResponseTypeEnumValues)[number];
|
|
1305
|
+
declare function isMessageResponseTypeEnumValue(value: any): value is MessageResponseTypeEnum;
|
|
1306
|
+
|
|
1257
1307
|
/**
|
|
1258
1308
|
* @author semantha
|
|
1259
1309
|
*
|
|
@@ -1428,7 +1478,7 @@ interface PromptExecution {
|
|
|
1428
1478
|
*
|
|
1429
1479
|
* This is a generated file do not change manually!
|
|
1430
1480
|
*/
|
|
1431
|
-
declare const PromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS"];
|
|
1481
|
+
declare const PromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS", "INTERNAL"];
|
|
1432
1482
|
type PromptLabelEnum = (typeof PromptLabelEnumValues)[number];
|
|
1433
1483
|
declare function isPromptLabelEnumValue(value: any): value is PromptLabelEnum;
|
|
1434
1484
|
|
|
@@ -1452,7 +1502,7 @@ interface PromptOverview {
|
|
|
1452
1502
|
*
|
|
1453
1503
|
* This is a generated file do not change manually!
|
|
1454
1504
|
*/
|
|
1455
|
-
declare const PromptOverviewPromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS"];
|
|
1505
|
+
declare const PromptOverviewPromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS", "INTERNAL"];
|
|
1456
1506
|
type PromptOverviewPromptLabelEnum = (typeof PromptOverviewPromptLabelEnumValues)[number];
|
|
1457
1507
|
declare function isPromptOverviewPromptLabelEnumValue(value: any): value is PromptOverviewPromptLabelEnum;
|
|
1458
1508
|
|
|
@@ -1461,7 +1511,7 @@ declare function isPromptOverviewPromptLabelEnumValue(value: any): value is Prom
|
|
|
1461
1511
|
*
|
|
1462
1512
|
* This is a generated file do not change manually!
|
|
1463
1513
|
*/
|
|
1464
|
-
declare const PromptPromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS"];
|
|
1514
|
+
declare const PromptPromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS", "INTERNAL"];
|
|
1465
1515
|
type PromptPromptLabelEnum = (typeof PromptPromptLabelEnumValues)[number];
|
|
1466
1516
|
declare function isPromptPromptLabelEnumValue(value: any): value is PromptPromptLabelEnum;
|
|
1467
1517
|
|
|
@@ -5055,4 +5105,4 @@ declare class SemanthaAPI {
|
|
|
5055
5105
|
model(): ModelEndpoint;
|
|
5056
5106
|
}
|
|
5057
5107
|
|
|
5058
|
-
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 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, isTypeEnumValue, parseServerSentEvents };
|
|
5108
|
+
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 McpApprovalDecision, type McpApprovalRequest, type McpCapability, type McpServerRequest, type McpToolDescriptor, type McpToolDescriptorAuthEnum, McpToolDescriptorAuthEnumValues, McptoolsEndpoint, MediaType, type Message, type MessageResponse, type MessageResponseRoleEnum, MessageResponseRoleEnumValues, type MessageResponseTypeEnum, MessageResponseTypeEnumValues, 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 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, isMessageResponseTypeEnumValue, isMessageRoleEnumValue, isModeEnumValue, isPromptLabelEnumValue, isPromptOverviewPromptLabelEnumValue, isPromptPromptLabelEnumValue, isRuleFunctionTypeEnumValue, isSettingsDefaultSimilarityModeEnumValue, isSettingsExtractionStrategyEnumValue, isSettingsTaggingStrategyEnumValue, isTypeEnumValue, parseServerSentEvents };
|
package/dist/index.d.ts
CHANGED
|
@@ -236,6 +236,16 @@ interface Char {
|
|
|
236
236
|
area?: Rect;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
/**
|
|
240
|
+
* @author semantha
|
|
241
|
+
*
|
|
242
|
+
* This is a generated file do not change manually!
|
|
243
|
+
*/
|
|
244
|
+
interface McpApprovalDecision {
|
|
245
|
+
approvalRequestId: string;
|
|
246
|
+
approve: boolean;
|
|
247
|
+
}
|
|
248
|
+
|
|
239
249
|
/**
|
|
240
250
|
* @author semantha
|
|
241
251
|
*
|
|
@@ -273,6 +283,7 @@ interface Chat {
|
|
|
273
283
|
temperature?: number;
|
|
274
284
|
conversationId?: string;
|
|
275
285
|
mcpServers?: McpServerRequest[];
|
|
286
|
+
mcpApprovals?: McpApprovalDecision[];
|
|
276
287
|
}
|
|
277
288
|
|
|
278
289
|
/**
|
|
@@ -287,6 +298,19 @@ interface ChatConversation {
|
|
|
287
298
|
lastUsedAt?: number;
|
|
288
299
|
}
|
|
289
300
|
|
|
301
|
+
/**
|
|
302
|
+
* The tool call this message is asking about. Present exactly on APPROVAL_REQUEST messages.
|
|
303
|
+
* @author semantha
|
|
304
|
+
*
|
|
305
|
+
* This is a generated file do not change manually!
|
|
306
|
+
*/
|
|
307
|
+
interface McpApprovalRequest {
|
|
308
|
+
id: string;
|
|
309
|
+
toolName: string;
|
|
310
|
+
serverLabel?: string;
|
|
311
|
+
arguments?: string;
|
|
312
|
+
}
|
|
313
|
+
|
|
290
314
|
/**
|
|
291
315
|
* @author semantha
|
|
292
316
|
*
|
|
@@ -298,6 +322,8 @@ interface MessageResponse {
|
|
|
298
322
|
metadata?: {
|
|
299
323
|
[key: string]: any;
|
|
300
324
|
};
|
|
325
|
+
type?: MessageResponseTypeEnum;
|
|
326
|
+
approvalRequest?: McpApprovalRequest;
|
|
301
327
|
}
|
|
302
328
|
|
|
303
329
|
/**
|
|
@@ -1224,6 +1250,20 @@ declare const MatcherTypeEnumValues: readonly ["REGEX", "ANDREGEX", "ANDNOTREGEX
|
|
|
1224
1250
|
type MatcherTypeEnum = (typeof MatcherTypeEnumValues)[number];
|
|
1225
1251
|
declare function isMatcherTypeEnumValue(value: any): value is MatcherTypeEnum;
|
|
1226
1252
|
|
|
1253
|
+
/**
|
|
1254
|
+
* @author semantha
|
|
1255
|
+
*
|
|
1256
|
+
* This is a generated file do not change manually!
|
|
1257
|
+
*/
|
|
1258
|
+
interface McpCapability {
|
|
1259
|
+
name?: string;
|
|
1260
|
+
title?: string;
|
|
1261
|
+
description?: string;
|
|
1262
|
+
readOnly?: boolean;
|
|
1263
|
+
destructive?: boolean;
|
|
1264
|
+
examples?: string[];
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1227
1267
|
/**
|
|
1228
1268
|
* @author semantha
|
|
1229
1269
|
*
|
|
@@ -1234,6 +1274,7 @@ interface McpToolDescriptor {
|
|
|
1234
1274
|
description?: string;
|
|
1235
1275
|
allowedTools?: string[];
|
|
1236
1276
|
auth?: McpToolDescriptorAuthEnum;
|
|
1277
|
+
capabilities?: McpCapability[];
|
|
1237
1278
|
}
|
|
1238
1279
|
|
|
1239
1280
|
/**
|
|
@@ -1254,6 +1295,15 @@ declare const MessageResponseRoleEnumValues: readonly ["USER", "ASSISTANT", "SYS
|
|
|
1254
1295
|
type MessageResponseRoleEnum = (typeof MessageResponseRoleEnumValues)[number];
|
|
1255
1296
|
declare function isMessageResponseRoleEnumValue(value: any): value is MessageResponseRoleEnum;
|
|
1256
1297
|
|
|
1298
|
+
/**
|
|
1299
|
+
* @author semantha
|
|
1300
|
+
*
|
|
1301
|
+
* This is a generated file do not change manually!
|
|
1302
|
+
*/
|
|
1303
|
+
declare const MessageResponseTypeEnumValues: readonly ["ANSWER", "THINKING", "ERROR", "APPROVAL_REQUEST"];
|
|
1304
|
+
type MessageResponseTypeEnum = (typeof MessageResponseTypeEnumValues)[number];
|
|
1305
|
+
declare function isMessageResponseTypeEnumValue(value: any): value is MessageResponseTypeEnum;
|
|
1306
|
+
|
|
1257
1307
|
/**
|
|
1258
1308
|
* @author semantha
|
|
1259
1309
|
*
|
|
@@ -1428,7 +1478,7 @@ interface PromptExecution {
|
|
|
1428
1478
|
*
|
|
1429
1479
|
* This is a generated file do not change manually!
|
|
1430
1480
|
*/
|
|
1431
|
-
declare const PromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS"];
|
|
1481
|
+
declare const PromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS", "INTERNAL"];
|
|
1432
1482
|
type PromptLabelEnum = (typeof PromptLabelEnumValues)[number];
|
|
1433
1483
|
declare function isPromptLabelEnumValue(value: any): value is PromptLabelEnum;
|
|
1434
1484
|
|
|
@@ -1452,7 +1502,7 @@ interface PromptOverview {
|
|
|
1452
1502
|
*
|
|
1453
1503
|
* This is a generated file do not change manually!
|
|
1454
1504
|
*/
|
|
1455
|
-
declare const PromptOverviewPromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS"];
|
|
1505
|
+
declare const PromptOverviewPromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS", "INTERNAL"];
|
|
1456
1506
|
type PromptOverviewPromptLabelEnum = (typeof PromptOverviewPromptLabelEnumValues)[number];
|
|
1457
1507
|
declare function isPromptOverviewPromptLabelEnumValue(value: any): value is PromptOverviewPromptLabelEnum;
|
|
1458
1508
|
|
|
@@ -1461,7 +1511,7 @@ declare function isPromptOverviewPromptLabelEnumValue(value: any): value is Prom
|
|
|
1461
1511
|
*
|
|
1462
1512
|
* This is a generated file do not change manually!
|
|
1463
1513
|
*/
|
|
1464
|
-
declare const PromptPromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS"];
|
|
1514
|
+
declare const PromptPromptLabelEnumValues: readonly ["COMPARE", "SEARCH", "LIBRARY", "POLARION", "AITASKS", "INTERNAL"];
|
|
1465
1515
|
type PromptPromptLabelEnum = (typeof PromptPromptLabelEnumValues)[number];
|
|
1466
1516
|
declare function isPromptPromptLabelEnumValue(value: any): value is PromptPromptLabelEnum;
|
|
1467
1517
|
|
|
@@ -5055,4 +5105,4 @@ declare class SemanthaAPI {
|
|
|
5055
5105
|
model(): ModelEndpoint;
|
|
5056
5106
|
}
|
|
5057
5107
|
|
|
5058
|
-
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 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, isTypeEnumValue, parseServerSentEvents };
|
|
5108
|
+
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 McpApprovalDecision, type McpApprovalRequest, type McpCapability, type McpServerRequest, type McpToolDescriptor, type McpToolDescriptorAuthEnum, McpToolDescriptorAuthEnumValues, McptoolsEndpoint, MediaType, type Message, type MessageResponse, type MessageResponseRoleEnum, MessageResponseRoleEnumValues, type MessageResponseTypeEnum, MessageResponseTypeEnumValues, 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 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, isMessageResponseTypeEnumValue, isMessageRoleEnumValue, isModeEnumValue, isPromptLabelEnumValue, isPromptOverviewPromptLabelEnumValue, isPromptPromptLabelEnumValue, isRuleFunctionTypeEnumValue, isSettingsDefaultSimilarityModeEnumValue, isSettingsExtractionStrategyEnumValue, isSettingsTaggingStrategyEnumValue, isTypeEnumValue, parseServerSentEvents };
|