codemie-sdk 0.1.419 → 0.1.421
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.cjs +109 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +170 -8
- package/dist/index.d.ts +170 -8
- package/dist/index.js +109 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -63,7 +63,7 @@ declare const CredentialTypes: {
|
|
|
63
63
|
readonly SONAR: "Sonar";
|
|
64
64
|
readonly SQL: "SQL";
|
|
65
65
|
readonly TELEGRAM: "Telegram";
|
|
66
|
-
readonly
|
|
66
|
+
readonly ZEPHYR_SCALE: "ZephyrScale";
|
|
67
67
|
readonly ZEPHYR_SQUAD: "ZephyrSquad";
|
|
68
68
|
readonly SERVICE_NOW: "ServiceNow";
|
|
69
69
|
readonly DIAL: "DIAL";
|
|
@@ -71,6 +71,8 @@ declare const CredentialTypes: {
|
|
|
71
71
|
readonly MCP: "MCP";
|
|
72
72
|
readonly LITE_LLM: "LiteLLM";
|
|
73
73
|
readonly REPORT_PORTAL: "ReportPortal";
|
|
74
|
+
readonly XRAY: "Xray";
|
|
75
|
+
readonly SHAREPOINT: "SharePoint";
|
|
74
76
|
};
|
|
75
77
|
type CredentialTypesType = (typeof CredentialTypes)[keyof typeof CredentialTypes];
|
|
76
78
|
/**
|
|
@@ -108,6 +110,8 @@ interface Integration {
|
|
|
108
110
|
alias?: string;
|
|
109
111
|
/** Whether this is the default integration */
|
|
110
112
|
default?: boolean;
|
|
113
|
+
/** Whether this is a global integration */
|
|
114
|
+
is_global?: boolean;
|
|
111
115
|
/** Type of credential */
|
|
112
116
|
credential_type: CredentialTypesType;
|
|
113
117
|
/** List of credential values */
|
|
@@ -876,6 +880,11 @@ declare const DataSourceType: {
|
|
|
876
880
|
readonly CHUNK_SUMMARY: "chunk-summary";
|
|
877
881
|
readonly JSON: "knowledge_base_json";
|
|
878
882
|
readonly BEDROCK: "knowledge_base_bedrock";
|
|
883
|
+
readonly XRAY: "knowledge_base_xray";
|
|
884
|
+
readonly PLATFORM: "platform_marketplace_assistant";
|
|
885
|
+
readonly AZURE_DEVOPS_WIKI: "knowledge_base_azure_devops_wiki";
|
|
886
|
+
readonly AZURE_DEVOPS_WORK_ITEM: "knowledge_base_azure_devops_work_item";
|
|
887
|
+
readonly SHAREPOINT: "knowledge_base_sharepoint";
|
|
879
888
|
};
|
|
880
889
|
type DataSourceTypeType = (typeof DataSourceType)[keyof typeof DataSourceType];
|
|
881
890
|
/** Datasource status options */
|
|
@@ -932,6 +941,87 @@ interface Code {
|
|
|
932
941
|
settingId: string;
|
|
933
942
|
summarizationModel?: string;
|
|
934
943
|
}
|
|
944
|
+
/** Azure DevOps Wiki-specific configuration */
|
|
945
|
+
interface AzureDevOpsWiki {
|
|
946
|
+
wiki_query?: string;
|
|
947
|
+
organization?: string;
|
|
948
|
+
project?: string;
|
|
949
|
+
wiki_name?: string;
|
|
950
|
+
}
|
|
951
|
+
/** Azure DevOps Work Item-specific configuration */
|
|
952
|
+
interface AzureDevOpsWorkItem {
|
|
953
|
+
wiql_query?: string;
|
|
954
|
+
organization?: string;
|
|
955
|
+
project?: string;
|
|
956
|
+
}
|
|
957
|
+
/** SharePoint authentication type */
|
|
958
|
+
type SharePointAuthType = "integration" | "oauth_codemie" | "oauth_custom";
|
|
959
|
+
/** SharePoint-specific configuration (used in responses) */
|
|
960
|
+
interface SharePoint {
|
|
961
|
+
site_url: string;
|
|
962
|
+
include_pages?: boolean;
|
|
963
|
+
include_documents?: boolean;
|
|
964
|
+
include_lists?: boolean;
|
|
965
|
+
max_file_size_mb?: number;
|
|
966
|
+
files_filter?: string;
|
|
967
|
+
auth_type?: SharePointAuthType;
|
|
968
|
+
oauth_client_id?: string;
|
|
969
|
+
oauth_tenant_id?: string;
|
|
970
|
+
}
|
|
971
|
+
/** SharePoint-specific create/update parameters */
|
|
972
|
+
interface BaseSharePointParams {
|
|
973
|
+
/** SharePoint site URL (must start with https://) */
|
|
974
|
+
site_url: string;
|
|
975
|
+
/** Index SharePoint site pages */
|
|
976
|
+
include_pages?: boolean;
|
|
977
|
+
/** Index document libraries */
|
|
978
|
+
include_documents?: boolean;
|
|
979
|
+
/** Index list items */
|
|
980
|
+
include_lists?: boolean;
|
|
981
|
+
/** Maximum file size in MB to index (1–500, default 50) */
|
|
982
|
+
max_file_size_mb?: number;
|
|
983
|
+
/** Gitignore-style file/path filter */
|
|
984
|
+
files_filter?: string;
|
|
985
|
+
/** Authentication method */
|
|
986
|
+
auth_type?: SharePointAuthType;
|
|
987
|
+
/** OAuth access token (required for oauth_codemie and oauth_custom) */
|
|
988
|
+
access_token?: string;
|
|
989
|
+
/** Azure app client ID (oauth_custom only) */
|
|
990
|
+
oauth_client_id?: string;
|
|
991
|
+
/** Azure AD tenant ID (oauth_custom only) */
|
|
992
|
+
oauth_tenant_id?: string;
|
|
993
|
+
/** Override default embedding model */
|
|
994
|
+
embedding_model?: string;
|
|
995
|
+
/** Cron expression for scheduled reindexing */
|
|
996
|
+
cron_expression?: string;
|
|
997
|
+
}
|
|
998
|
+
/** Elasticsearch statistics response */
|
|
999
|
+
interface ElasticsearchStats {
|
|
1000
|
+
index_name: string;
|
|
1001
|
+
size_in_bytes: number;
|
|
1002
|
+
}
|
|
1003
|
+
/** Code Analysis provider datasource creation parameters */
|
|
1004
|
+
interface CodeAnalysisProviderCreateParams {
|
|
1005
|
+
name: string;
|
|
1006
|
+
description: string;
|
|
1007
|
+
project_name: string;
|
|
1008
|
+
shared_with_project?: boolean;
|
|
1009
|
+
branch: string;
|
|
1010
|
+
api_url: string;
|
|
1011
|
+
access_token: string;
|
|
1012
|
+
analyzer: string;
|
|
1013
|
+
datasource_root: string;
|
|
1014
|
+
}
|
|
1015
|
+
/** Code Exploration provider datasource creation parameters */
|
|
1016
|
+
interface CodeExplorationProviderCreateParams {
|
|
1017
|
+
name: string;
|
|
1018
|
+
description: string;
|
|
1019
|
+
project_name: string;
|
|
1020
|
+
shared_with_project?: boolean;
|
|
1021
|
+
code_analysis_datasource_ids: string[];
|
|
1022
|
+
}
|
|
1023
|
+
/** Provider datasource creation parameters */
|
|
1024
|
+
type ProviderDataSourceRequest = CodeAnalysisProviderCreateParams | CodeExplorationProviderCreateParams;
|
|
935
1025
|
/** Base data source DTO */
|
|
936
1026
|
interface BaseDataSourceCreateDto {
|
|
937
1027
|
name: string;
|
|
@@ -956,7 +1046,19 @@ interface FileDataSourceCreateDto extends BaseDataSourceCreateDto, Files {
|
|
|
956
1046
|
interface CodeDataSourceCreateDto extends Omit<BaseDataSourceCreateDto, "setting_id" | "project_space_visible">, Code {
|
|
957
1047
|
type: typeof DataSourceType.CODE;
|
|
958
1048
|
}
|
|
959
|
-
|
|
1049
|
+
interface AzureDevOpsWikiDataSourceCreateDto extends BaseDataSourceCreateDto, AzureDevOpsWiki {
|
|
1050
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WIKI;
|
|
1051
|
+
}
|
|
1052
|
+
interface AzureDevOpsWorkItemDataSourceCreateDto extends BaseDataSourceCreateDto, AzureDevOpsWorkItem {
|
|
1053
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WORK_ITEM;
|
|
1054
|
+
}
|
|
1055
|
+
interface XrayDataSourceCreateDto extends BaseDataSourceCreateDto, Jira {
|
|
1056
|
+
type: typeof DataSourceType.XRAY;
|
|
1057
|
+
}
|
|
1058
|
+
interface SharePointDataSourceCreateDto extends BaseDataSourceCreateDto, BaseSharePointParams {
|
|
1059
|
+
type: typeof DataSourceType.SHAREPOINT;
|
|
1060
|
+
}
|
|
1061
|
+
type DataSourceCreateDto = ConfluenceDataSourceCreateDto | JiraDataSourceCreateDto | GoogleDataSourceCreateDto | FileDataSourceCreateDto | CodeDataSourceCreateDto | AzureDevOpsWikiDataSourceCreateDto | AzureDevOpsWorkItemDataSourceCreateDto | XrayDataSourceCreateDto | SharePointDataSourceCreateDto | BaseDataSourceCreateDto;
|
|
960
1062
|
/** Base data source update DTO */
|
|
961
1063
|
interface BaseDataSourceUpdateDto {
|
|
962
1064
|
name: string;
|
|
@@ -985,7 +1087,19 @@ interface FileDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<Files
|
|
|
985
1087
|
interface CodeDataSourceUpdateDto extends Omit<BaseDataSourceUpdateDto, "setting_id" | "project_space_visible">, Partial<Code> {
|
|
986
1088
|
type: typeof DataSourceType.CODE;
|
|
987
1089
|
}
|
|
988
|
-
|
|
1090
|
+
interface AzureDevOpsWikiDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<AzureDevOpsWiki> {
|
|
1091
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WIKI;
|
|
1092
|
+
}
|
|
1093
|
+
interface AzureDevOpsWorkItemDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<AzureDevOpsWorkItem> {
|
|
1094
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WORK_ITEM;
|
|
1095
|
+
}
|
|
1096
|
+
interface XrayDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<Jira> {
|
|
1097
|
+
type: typeof DataSourceType.XRAY;
|
|
1098
|
+
}
|
|
1099
|
+
interface SharePointDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<BaseSharePointParams> {
|
|
1100
|
+
type: typeof DataSourceType.SHAREPOINT;
|
|
1101
|
+
}
|
|
1102
|
+
type DataSourceUpdateDto = ConfluenceDataSourceUpdateDto | JiraDataSourceUpdateDto | GoogleDataSourceUpdateDto | FileDataSourceUpdateDto | CodeDataSourceUpdateDto | AzureDevOpsWikiDataSourceUpdateDto | AzureDevOpsWorkItemDataSourceUpdateDto | XrayDataSourceUpdateDto | SharePointDataSourceUpdateDto | BaseDataSourceUpdateDto;
|
|
989
1103
|
/** Processing information for datasource */
|
|
990
1104
|
interface DataSourceProcessingInfoResponse {
|
|
991
1105
|
/** Total number of documents processed */
|
|
@@ -1069,6 +1183,12 @@ interface BaseDataSourceResponse {
|
|
|
1069
1183
|
confluence?: Confluence;
|
|
1070
1184
|
/** Google document link */
|
|
1071
1185
|
google_doc_link?: string;
|
|
1186
|
+
/** Azure DevOps Wiki-specific configuration */
|
|
1187
|
+
azure_devops_wiki?: AzureDevOpsWiki;
|
|
1188
|
+
/** Azure DevOps Work Item-specific configuration */
|
|
1189
|
+
azure_devops_work_item?: AzureDevOpsWorkItem;
|
|
1190
|
+
/** SharePoint-specific configuration */
|
|
1191
|
+
sharepoint?: SharePoint;
|
|
1072
1192
|
}
|
|
1073
1193
|
type CodeDataSourceResponse = BaseDataSourceResponse & {
|
|
1074
1194
|
/** Repository URL */
|
|
@@ -1132,6 +1252,12 @@ interface DataSource {
|
|
|
1132
1252
|
confluence?: Confluence;
|
|
1133
1253
|
/** Google document link */
|
|
1134
1254
|
google_doc_link?: string;
|
|
1255
|
+
/** Azure DevOps Wiki-specific configuration */
|
|
1256
|
+
azure_devops_wiki?: AzureDevOpsWiki;
|
|
1257
|
+
/** Azure DevOps Work Item-specific configuration */
|
|
1258
|
+
azure_devops_work_item?: AzureDevOpsWorkItem;
|
|
1259
|
+
/** SharePoint-specific configuration */
|
|
1260
|
+
sharepoint?: SharePoint;
|
|
1135
1261
|
}
|
|
1136
1262
|
/** DataSource fetch parameters */
|
|
1137
1263
|
type DataSourceListParams = {
|
|
@@ -1227,11 +1353,23 @@ interface FileDataSourceCreateParams extends BaseDataSourceCreateParams, BaseFil
|
|
|
1227
1353
|
interface CodeDataSourceCreateParams extends BaseDataSourceCreateParams, BaseCodeParams {
|
|
1228
1354
|
type: typeof DataSourceType.CODE;
|
|
1229
1355
|
}
|
|
1356
|
+
interface AzureDevOpsWikiDataSourceCreateParams extends BaseDataSourceCreateParams, AzureDevOpsWiki {
|
|
1357
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WIKI;
|
|
1358
|
+
}
|
|
1359
|
+
interface AzureDevOpsWorkItemDataSourceCreateParams extends BaseDataSourceCreateParams, AzureDevOpsWorkItem {
|
|
1360
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WORK_ITEM;
|
|
1361
|
+
}
|
|
1362
|
+
interface XrayDataSourceCreateParams extends BaseDataSourceCreateParams, BaseJiraParams {
|
|
1363
|
+
type: typeof DataSourceType.XRAY;
|
|
1364
|
+
}
|
|
1365
|
+
interface SharePointDataSourceCreateParams extends BaseDataSourceCreateParams, BaseSharePointParams {
|
|
1366
|
+
type: typeof DataSourceType.SHAREPOINT;
|
|
1367
|
+
}
|
|
1230
1368
|
interface OtherDataSourceCreateParams extends BaseDataSourceCreateParams {
|
|
1231
|
-
type: typeof DataSourceType.PROVIDER | typeof DataSourceType.SUMMARY | typeof DataSourceType.CHUNK_SUMMARY | typeof DataSourceType.JSON;
|
|
1369
|
+
type: typeof DataSourceType.PROVIDER | typeof DataSourceType.SUMMARY | typeof DataSourceType.CHUNK_SUMMARY | typeof DataSourceType.JSON | typeof DataSourceType.PLATFORM;
|
|
1232
1370
|
}
|
|
1233
1371
|
/** DataSource create parameters */
|
|
1234
|
-
type DataSourceCreateParams = ConfluenceDataSourceCreateParams | JiraDataSourceCreateParams | GoogleDataSourceCreateParams | FileDataSourceCreateParams | CodeDataSourceCreateParams | OtherDataSourceCreateParams;
|
|
1372
|
+
type DataSourceCreateParams = ConfluenceDataSourceCreateParams | JiraDataSourceCreateParams | GoogleDataSourceCreateParams | FileDataSourceCreateParams | CodeDataSourceCreateParams | AzureDevOpsWikiDataSourceCreateParams | AzureDevOpsWorkItemDataSourceCreateParams | XrayDataSourceCreateParams | SharePointDataSourceCreateParams | OtherDataSourceCreateParams;
|
|
1235
1373
|
interface BaseDataSourceUpdateParams {
|
|
1236
1374
|
/** Type of datasource */
|
|
1237
1375
|
type: DataSourceTypeType;
|
|
@@ -1269,11 +1407,23 @@ interface FileDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial
|
|
|
1269
1407
|
interface CodeDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<BaseCodeParams> {
|
|
1270
1408
|
type: typeof DataSourceType.CODE;
|
|
1271
1409
|
}
|
|
1410
|
+
interface AzureDevOpsWikiDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<AzureDevOpsWiki> {
|
|
1411
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WIKI;
|
|
1412
|
+
}
|
|
1413
|
+
interface AzureDevOpsWorkItemDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<AzureDevOpsWorkItem> {
|
|
1414
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WORK_ITEM;
|
|
1415
|
+
}
|
|
1416
|
+
interface XrayDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<BaseJiraParams> {
|
|
1417
|
+
type: typeof DataSourceType.XRAY;
|
|
1418
|
+
}
|
|
1419
|
+
interface SharePointDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<BaseSharePointParams> {
|
|
1420
|
+
type: typeof DataSourceType.SHAREPOINT;
|
|
1421
|
+
}
|
|
1272
1422
|
interface OtherDataSourceUpdateParams extends BaseDataSourceUpdateParams {
|
|
1273
|
-
type: typeof DataSourceType.PROVIDER | typeof DataSourceType.SUMMARY | typeof DataSourceType.CHUNK_SUMMARY | typeof DataSourceType.JSON;
|
|
1423
|
+
type: typeof DataSourceType.PROVIDER | typeof DataSourceType.SUMMARY | typeof DataSourceType.CHUNK_SUMMARY | typeof DataSourceType.JSON | typeof DataSourceType.PLATFORM;
|
|
1274
1424
|
}
|
|
1275
1425
|
/** DataSource update parameters */
|
|
1276
|
-
type DataSourceUpdateParams = ConfluenceDataSourceUpdateParams | JiraDataSourceUpdateParams | GoogleDataSourceUpdateParams | FileDataSourceUpdateParams | CodeDataSourceUpdateParams | OtherDataSourceUpdateParams;
|
|
1426
|
+
type DataSourceUpdateParams = ConfluenceDataSourceUpdateParams | JiraDataSourceUpdateParams | GoogleDataSourceUpdateParams | FileDataSourceUpdateParams | CodeDataSourceUpdateParams | AzureDevOpsWikiDataSourceUpdateParams | AzureDevOpsWorkItemDataSourceUpdateParams | XrayDataSourceUpdateParams | SharePointDataSourceUpdateParams | OtherDataSourceUpdateParams;
|
|
1277
1427
|
|
|
1278
1428
|
declare class DatasourceService {
|
|
1279
1429
|
private api;
|
|
@@ -1302,6 +1452,18 @@ declare class DatasourceService {
|
|
|
1302
1452
|
* Delete a datasource by ID.
|
|
1303
1453
|
*/
|
|
1304
1454
|
delete(datasourceId: string): Promise<AnyJson>;
|
|
1455
|
+
/**
|
|
1456
|
+
* Get all assistants that use a specific datasource.
|
|
1457
|
+
*/
|
|
1458
|
+
getAssistantsUsingDatasource(datasourceId: string): Promise<AnyJson[]>;
|
|
1459
|
+
/**
|
|
1460
|
+
* Create a provider datasource (CodeAnalysis or CodeExploration).
|
|
1461
|
+
*/
|
|
1462
|
+
createProvider(toolkitId: string, providerName: string, params: ProviderDataSourceRequest): Promise<AnyJson>;
|
|
1463
|
+
/**
|
|
1464
|
+
* Get Elasticsearch index statistics for a datasource.
|
|
1465
|
+
*/
|
|
1466
|
+
getElasticsearchStats(datasourceId: string): Promise<ElasticsearchStats>;
|
|
1305
1467
|
private getCreateDatasourceUrl;
|
|
1306
1468
|
private getKnowledgeBaseParam;
|
|
1307
1469
|
/**
|
|
@@ -2144,4 +2306,4 @@ declare class NotFoundError extends ApiError {
|
|
|
2144
2306
|
constructor(resourceType: string, resourceId: string);
|
|
2145
2307
|
}
|
|
2146
2308
|
|
|
2147
|
-
export { type AboutUser, type AboutUserResponse, type AgentErrorDetails, type AnyJson, ApiError, type Assistant, type AssistantBase, type AssistantCategory, type AssistantChatParams, AssistantChatParamsSchema, type AssistantCreateParams, AssistantCreateParamsSchema, type AssistantCreateResponse, type AssistantDataItem, type AssistantDetailsData, type AssistantListParams, AssistantListParamsSchema, AssistantService, type AssistantUpdateParams, AssistantUpdateParamsSchema, type AssistantUpdateResponse, type AssistantVersion, type AssistantVersionsListParams, AssistantVersionsListParamsSchema, type AuthConfig, type BackgroundTaskEntity, BackgroundTaskStatus, type BackgroundTaskStatusType, type BaseCodeParams, type BaseConfluenceParams, type BaseDataSourceCreateDto, type BaseDataSourceCreateParams, type BaseDataSourceResponse, type BaseDataSourceUpdateDto, type BaseDataSourceUpdateParams, type BaseFileParams, type BaseGoogleParams, type BaseJiraParams, type BaseModelApiResponse, type BaseModelResponse, type BaseUser, ChatRole, type Code, type CodeDataSourceCreateDto, type CodeDataSourceCreateParams, type CodeDataSourceResponse, CodeDataSourceType, type CodeDataSourceTypeType, type CodeDataSourceUpdateDto, type CodeDataSourceUpdateParams, CodeMieClient, type CodeMieClientConfig, CodeMieError, type Confluence, type ConfluenceDataSourceCreateDto, type ConfluenceDataSourceCreateParams, type ConfluenceDataSourceUpdateDto, type ConfluenceDataSourceUpdateParams, type Context, type ContextItem, ContextType, type Conversation, type ConversationCreateParams, ConversationCreateParamsSchema, type ConversationCreateRequest, type ConversationDetails, type ConversationDetailsData, ConversationService, type CostConfig, CredentialTypes, type CredentialTypesType, type CredentialValues, type DataSource, type DataSourceCreateDto, type DataSourceCreateParams, type DataSourceListParams, type DataSourceProcessingInfo, type DataSourceProcessingInfoResponse, type DataSourceResponse, DataSourceStatus, type DataSourceStatusType, DataSourceType, type DataSourceTypeType, type DataSourceUpdateDto, type DataSourceUpdateParams, DatasourceService, ERROR_MESSAGE_PATTERNS, ErrorCategory, ErrorCode, ErrorDetailLevel, type ErrorResponse, ExecutionStatus, type ExecutionStatusType, type File, type FileBulkUploadResponse, type FileDataSourceCreateDto, type FileDataSourceCreateParams, type FileDataSourceUpdateDto, type FileDataSourceUpdateParams, FileService, type FileToUpload, type FileUploadResponse, type Files, type Google, type GoogleDataSourceCreateDto, type GoogleDataSourceCreateParams, type GoogleDataSourceUpdateDto, type GoogleDataSourceUpdateParams, HTTP_STATUS_TO_ERROR_CODE, type HistoryItem, type HistoryMark, type Integration, type IntegrationCreateParams, IntegrationCreateParamsSchema, type IntegrationGetByAliasParams, IntegrationGetByAliasParamsSchema, type IntegrationGetParams, IntegrationGetParamsSchema, type IntegrationListParams, IntegrationListParamsSchema, IntegrationService, IntegrationType, type IntegrationTypeType, type IntegrationUpdateParams, IntegrationUpdateParamsSchema, type IntegrationValidationResult, type Jira, type JiraDataSourceCreateDto, type JiraDataSourceCreateParams, type JiraDataSourceUpdateDto, type JiraDataSourceUpdateParams, type LLMFeatures, type LLMModel, LLMProvider, type LLMProviderType, LLMService, type MCPServerConfig, type MCPServerDetails, type Mark, type MissingIntegration, type MissingIntegrationsByCredentialType, NotFoundError, type Operator, type OtherDataSourceCreateParams, type OtherDataSourceUpdateParams, type PaginatedResponse, type PaginationParams, type PromptVariable, SkillCategory, type SkillCreatedBy, type SkillDetail, type SkillListItem, type SkillListPaginatedResponse, SkillScopeFilter, SkillService, SkillSortBy, SkillVisibility, type SortOrder, type SystemPromptHistory, TaskService, type TaskUser, type Thought, type TokensUsage, type ToolDetails, type ToolErrorDetails, type ToolItem, type ToolKitDetails, type UserData, UserService, type VersionsListResponse, type Workflow, type WorkflowCreateParams, WorkflowCreateParamsSchema, type WorkflowExecution, type WorkflowExecutionCreateParams, WorkflowExecutionCreateParamsSchema, type WorkflowExecutionListParams, WorkflowExecutionListParamsSchema, type WorkflowExecutionResponse, WorkflowExecutionService, type WorkflowExecutionState, type WorkflowExecutionStateListParams, WorkflowExecutionStateListParamsSchema, type WorkflowExecutionStateOutput, WorkflowExecutionStateService, type WorkflowExecutionStateThought, type WorkflowListParams, WorkflowListParamsSchema, WorkflowMode, type WorkflowModeType, type WorkflowResponse, WorkflowService, type WorkflowUpdateParams, WorkflowUpdateParamsSchema, classifyHttpError, formatCookies, formatToolErrorForLevel, formatToolErrorFull, formatToolErrorMinimal, formatToolErrorStandard, isRecoverableError };
|
|
2309
|
+
export { type AboutUser, type AboutUserResponse, type AgentErrorDetails, type AnyJson, ApiError, type Assistant, type AssistantBase, type AssistantCategory, type AssistantChatParams, AssistantChatParamsSchema, type AssistantCreateParams, AssistantCreateParamsSchema, type AssistantCreateResponse, type AssistantDataItem, type AssistantDetailsData, type AssistantListParams, AssistantListParamsSchema, AssistantService, type AssistantUpdateParams, AssistantUpdateParamsSchema, type AssistantUpdateResponse, type AssistantVersion, type AssistantVersionsListParams, AssistantVersionsListParamsSchema, type AuthConfig, type AzureDevOpsWiki, type AzureDevOpsWikiDataSourceCreateDto, type AzureDevOpsWikiDataSourceCreateParams, type AzureDevOpsWikiDataSourceUpdateDto, type AzureDevOpsWikiDataSourceUpdateParams, type AzureDevOpsWorkItem, type AzureDevOpsWorkItemDataSourceCreateDto, type AzureDevOpsWorkItemDataSourceCreateParams, type AzureDevOpsWorkItemDataSourceUpdateDto, type AzureDevOpsWorkItemDataSourceUpdateParams, type BackgroundTaskEntity, BackgroundTaskStatus, type BackgroundTaskStatusType, type BaseCodeParams, type BaseConfluenceParams, type BaseDataSourceCreateDto, type BaseDataSourceCreateParams, type BaseDataSourceResponse, type BaseDataSourceUpdateDto, type BaseDataSourceUpdateParams, type BaseFileParams, type BaseGoogleParams, type BaseJiraParams, type BaseModelApiResponse, type BaseModelResponse, type BaseSharePointParams, type BaseUser, ChatRole, type Code, type CodeAnalysisProviderCreateParams, type CodeDataSourceCreateDto, type CodeDataSourceCreateParams, type CodeDataSourceResponse, CodeDataSourceType, type CodeDataSourceTypeType, type CodeDataSourceUpdateDto, type CodeDataSourceUpdateParams, type CodeExplorationProviderCreateParams, CodeMieClient, type CodeMieClientConfig, CodeMieError, type Confluence, type ConfluenceDataSourceCreateDto, type ConfluenceDataSourceCreateParams, type ConfluenceDataSourceUpdateDto, type ConfluenceDataSourceUpdateParams, type Context, type ContextItem, ContextType, type Conversation, type ConversationCreateParams, ConversationCreateParamsSchema, type ConversationCreateRequest, type ConversationDetails, type ConversationDetailsData, ConversationService, type CostConfig, CredentialTypes, type CredentialTypesType, type CredentialValues, type DataSource, type DataSourceCreateDto, type DataSourceCreateParams, type DataSourceListParams, type DataSourceProcessingInfo, type DataSourceProcessingInfoResponse, type DataSourceResponse, DataSourceStatus, type DataSourceStatusType, DataSourceType, type DataSourceTypeType, type DataSourceUpdateDto, type DataSourceUpdateParams, DatasourceService, ERROR_MESSAGE_PATTERNS, type ElasticsearchStats, ErrorCategory, ErrorCode, ErrorDetailLevel, type ErrorResponse, ExecutionStatus, type ExecutionStatusType, type File, type FileBulkUploadResponse, type FileDataSourceCreateDto, type FileDataSourceCreateParams, type FileDataSourceUpdateDto, type FileDataSourceUpdateParams, FileService, type FileToUpload, type FileUploadResponse, type Files, type Google, type GoogleDataSourceCreateDto, type GoogleDataSourceCreateParams, type GoogleDataSourceUpdateDto, type GoogleDataSourceUpdateParams, HTTP_STATUS_TO_ERROR_CODE, type HistoryItem, type HistoryMark, type Integration, type IntegrationCreateParams, IntegrationCreateParamsSchema, type IntegrationGetByAliasParams, IntegrationGetByAliasParamsSchema, type IntegrationGetParams, IntegrationGetParamsSchema, type IntegrationListParams, IntegrationListParamsSchema, IntegrationService, IntegrationType, type IntegrationTypeType, type IntegrationUpdateParams, IntegrationUpdateParamsSchema, type IntegrationValidationResult, type Jira, type JiraDataSourceCreateDto, type JiraDataSourceCreateParams, type JiraDataSourceUpdateDto, type JiraDataSourceUpdateParams, type LLMFeatures, type LLMModel, LLMProvider, type LLMProviderType, LLMService, type MCPServerConfig, type MCPServerDetails, type Mark, type MissingIntegration, type MissingIntegrationsByCredentialType, NotFoundError, type Operator, type OtherDataSourceCreateParams, type OtherDataSourceUpdateParams, type PaginatedResponse, type PaginationParams, type PromptVariable, type ProviderDataSourceRequest, type SharePoint, type SharePointAuthType, type SharePointDataSourceCreateDto, type SharePointDataSourceCreateParams, type SharePointDataSourceUpdateDto, type SharePointDataSourceUpdateParams, SkillCategory, type SkillCreatedBy, type SkillDetail, type SkillListItem, type SkillListPaginatedResponse, SkillScopeFilter, SkillService, SkillSortBy, SkillVisibility, type SortOrder, type SystemPromptHistory, TaskService, type TaskUser, type Thought, type TokensUsage, type ToolDetails, type ToolErrorDetails, type ToolItem, type ToolKitDetails, type UserData, UserService, type VersionsListResponse, type Workflow, type WorkflowCreateParams, WorkflowCreateParamsSchema, type WorkflowExecution, type WorkflowExecutionCreateParams, WorkflowExecutionCreateParamsSchema, type WorkflowExecutionListParams, WorkflowExecutionListParamsSchema, type WorkflowExecutionResponse, WorkflowExecutionService, type WorkflowExecutionState, type WorkflowExecutionStateListParams, WorkflowExecutionStateListParamsSchema, type WorkflowExecutionStateOutput, WorkflowExecutionStateService, type WorkflowExecutionStateThought, type WorkflowListParams, WorkflowListParamsSchema, WorkflowMode, type WorkflowModeType, type WorkflowResponse, WorkflowService, type WorkflowUpdateParams, WorkflowUpdateParamsSchema, type XrayDataSourceCreateDto, type XrayDataSourceCreateParams, type XrayDataSourceUpdateDto, type XrayDataSourceUpdateParams, classifyHttpError, formatCookies, formatToolErrorForLevel, formatToolErrorFull, formatToolErrorMinimal, formatToolErrorStandard, isRecoverableError };
|
package/dist/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ declare const CredentialTypes: {
|
|
|
63
63
|
readonly SONAR: "Sonar";
|
|
64
64
|
readonly SQL: "SQL";
|
|
65
65
|
readonly TELEGRAM: "Telegram";
|
|
66
|
-
readonly
|
|
66
|
+
readonly ZEPHYR_SCALE: "ZephyrScale";
|
|
67
67
|
readonly ZEPHYR_SQUAD: "ZephyrSquad";
|
|
68
68
|
readonly SERVICE_NOW: "ServiceNow";
|
|
69
69
|
readonly DIAL: "DIAL";
|
|
@@ -71,6 +71,8 @@ declare const CredentialTypes: {
|
|
|
71
71
|
readonly MCP: "MCP";
|
|
72
72
|
readonly LITE_LLM: "LiteLLM";
|
|
73
73
|
readonly REPORT_PORTAL: "ReportPortal";
|
|
74
|
+
readonly XRAY: "Xray";
|
|
75
|
+
readonly SHAREPOINT: "SharePoint";
|
|
74
76
|
};
|
|
75
77
|
type CredentialTypesType = (typeof CredentialTypes)[keyof typeof CredentialTypes];
|
|
76
78
|
/**
|
|
@@ -108,6 +110,8 @@ interface Integration {
|
|
|
108
110
|
alias?: string;
|
|
109
111
|
/** Whether this is the default integration */
|
|
110
112
|
default?: boolean;
|
|
113
|
+
/** Whether this is a global integration */
|
|
114
|
+
is_global?: boolean;
|
|
111
115
|
/** Type of credential */
|
|
112
116
|
credential_type: CredentialTypesType;
|
|
113
117
|
/** List of credential values */
|
|
@@ -876,6 +880,11 @@ declare const DataSourceType: {
|
|
|
876
880
|
readonly CHUNK_SUMMARY: "chunk-summary";
|
|
877
881
|
readonly JSON: "knowledge_base_json";
|
|
878
882
|
readonly BEDROCK: "knowledge_base_bedrock";
|
|
883
|
+
readonly XRAY: "knowledge_base_xray";
|
|
884
|
+
readonly PLATFORM: "platform_marketplace_assistant";
|
|
885
|
+
readonly AZURE_DEVOPS_WIKI: "knowledge_base_azure_devops_wiki";
|
|
886
|
+
readonly AZURE_DEVOPS_WORK_ITEM: "knowledge_base_azure_devops_work_item";
|
|
887
|
+
readonly SHAREPOINT: "knowledge_base_sharepoint";
|
|
879
888
|
};
|
|
880
889
|
type DataSourceTypeType = (typeof DataSourceType)[keyof typeof DataSourceType];
|
|
881
890
|
/** Datasource status options */
|
|
@@ -932,6 +941,87 @@ interface Code {
|
|
|
932
941
|
settingId: string;
|
|
933
942
|
summarizationModel?: string;
|
|
934
943
|
}
|
|
944
|
+
/** Azure DevOps Wiki-specific configuration */
|
|
945
|
+
interface AzureDevOpsWiki {
|
|
946
|
+
wiki_query?: string;
|
|
947
|
+
organization?: string;
|
|
948
|
+
project?: string;
|
|
949
|
+
wiki_name?: string;
|
|
950
|
+
}
|
|
951
|
+
/** Azure DevOps Work Item-specific configuration */
|
|
952
|
+
interface AzureDevOpsWorkItem {
|
|
953
|
+
wiql_query?: string;
|
|
954
|
+
organization?: string;
|
|
955
|
+
project?: string;
|
|
956
|
+
}
|
|
957
|
+
/** SharePoint authentication type */
|
|
958
|
+
type SharePointAuthType = "integration" | "oauth_codemie" | "oauth_custom";
|
|
959
|
+
/** SharePoint-specific configuration (used in responses) */
|
|
960
|
+
interface SharePoint {
|
|
961
|
+
site_url: string;
|
|
962
|
+
include_pages?: boolean;
|
|
963
|
+
include_documents?: boolean;
|
|
964
|
+
include_lists?: boolean;
|
|
965
|
+
max_file_size_mb?: number;
|
|
966
|
+
files_filter?: string;
|
|
967
|
+
auth_type?: SharePointAuthType;
|
|
968
|
+
oauth_client_id?: string;
|
|
969
|
+
oauth_tenant_id?: string;
|
|
970
|
+
}
|
|
971
|
+
/** SharePoint-specific create/update parameters */
|
|
972
|
+
interface BaseSharePointParams {
|
|
973
|
+
/** SharePoint site URL (must start with https://) */
|
|
974
|
+
site_url: string;
|
|
975
|
+
/** Index SharePoint site pages */
|
|
976
|
+
include_pages?: boolean;
|
|
977
|
+
/** Index document libraries */
|
|
978
|
+
include_documents?: boolean;
|
|
979
|
+
/** Index list items */
|
|
980
|
+
include_lists?: boolean;
|
|
981
|
+
/** Maximum file size in MB to index (1–500, default 50) */
|
|
982
|
+
max_file_size_mb?: number;
|
|
983
|
+
/** Gitignore-style file/path filter */
|
|
984
|
+
files_filter?: string;
|
|
985
|
+
/** Authentication method */
|
|
986
|
+
auth_type?: SharePointAuthType;
|
|
987
|
+
/** OAuth access token (required for oauth_codemie and oauth_custom) */
|
|
988
|
+
access_token?: string;
|
|
989
|
+
/** Azure app client ID (oauth_custom only) */
|
|
990
|
+
oauth_client_id?: string;
|
|
991
|
+
/** Azure AD tenant ID (oauth_custom only) */
|
|
992
|
+
oauth_tenant_id?: string;
|
|
993
|
+
/** Override default embedding model */
|
|
994
|
+
embedding_model?: string;
|
|
995
|
+
/** Cron expression for scheduled reindexing */
|
|
996
|
+
cron_expression?: string;
|
|
997
|
+
}
|
|
998
|
+
/** Elasticsearch statistics response */
|
|
999
|
+
interface ElasticsearchStats {
|
|
1000
|
+
index_name: string;
|
|
1001
|
+
size_in_bytes: number;
|
|
1002
|
+
}
|
|
1003
|
+
/** Code Analysis provider datasource creation parameters */
|
|
1004
|
+
interface CodeAnalysisProviderCreateParams {
|
|
1005
|
+
name: string;
|
|
1006
|
+
description: string;
|
|
1007
|
+
project_name: string;
|
|
1008
|
+
shared_with_project?: boolean;
|
|
1009
|
+
branch: string;
|
|
1010
|
+
api_url: string;
|
|
1011
|
+
access_token: string;
|
|
1012
|
+
analyzer: string;
|
|
1013
|
+
datasource_root: string;
|
|
1014
|
+
}
|
|
1015
|
+
/** Code Exploration provider datasource creation parameters */
|
|
1016
|
+
interface CodeExplorationProviderCreateParams {
|
|
1017
|
+
name: string;
|
|
1018
|
+
description: string;
|
|
1019
|
+
project_name: string;
|
|
1020
|
+
shared_with_project?: boolean;
|
|
1021
|
+
code_analysis_datasource_ids: string[];
|
|
1022
|
+
}
|
|
1023
|
+
/** Provider datasource creation parameters */
|
|
1024
|
+
type ProviderDataSourceRequest = CodeAnalysisProviderCreateParams | CodeExplorationProviderCreateParams;
|
|
935
1025
|
/** Base data source DTO */
|
|
936
1026
|
interface BaseDataSourceCreateDto {
|
|
937
1027
|
name: string;
|
|
@@ -956,7 +1046,19 @@ interface FileDataSourceCreateDto extends BaseDataSourceCreateDto, Files {
|
|
|
956
1046
|
interface CodeDataSourceCreateDto extends Omit<BaseDataSourceCreateDto, "setting_id" | "project_space_visible">, Code {
|
|
957
1047
|
type: typeof DataSourceType.CODE;
|
|
958
1048
|
}
|
|
959
|
-
|
|
1049
|
+
interface AzureDevOpsWikiDataSourceCreateDto extends BaseDataSourceCreateDto, AzureDevOpsWiki {
|
|
1050
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WIKI;
|
|
1051
|
+
}
|
|
1052
|
+
interface AzureDevOpsWorkItemDataSourceCreateDto extends BaseDataSourceCreateDto, AzureDevOpsWorkItem {
|
|
1053
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WORK_ITEM;
|
|
1054
|
+
}
|
|
1055
|
+
interface XrayDataSourceCreateDto extends BaseDataSourceCreateDto, Jira {
|
|
1056
|
+
type: typeof DataSourceType.XRAY;
|
|
1057
|
+
}
|
|
1058
|
+
interface SharePointDataSourceCreateDto extends BaseDataSourceCreateDto, BaseSharePointParams {
|
|
1059
|
+
type: typeof DataSourceType.SHAREPOINT;
|
|
1060
|
+
}
|
|
1061
|
+
type DataSourceCreateDto = ConfluenceDataSourceCreateDto | JiraDataSourceCreateDto | GoogleDataSourceCreateDto | FileDataSourceCreateDto | CodeDataSourceCreateDto | AzureDevOpsWikiDataSourceCreateDto | AzureDevOpsWorkItemDataSourceCreateDto | XrayDataSourceCreateDto | SharePointDataSourceCreateDto | BaseDataSourceCreateDto;
|
|
960
1062
|
/** Base data source update DTO */
|
|
961
1063
|
interface BaseDataSourceUpdateDto {
|
|
962
1064
|
name: string;
|
|
@@ -985,7 +1087,19 @@ interface FileDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<Files
|
|
|
985
1087
|
interface CodeDataSourceUpdateDto extends Omit<BaseDataSourceUpdateDto, "setting_id" | "project_space_visible">, Partial<Code> {
|
|
986
1088
|
type: typeof DataSourceType.CODE;
|
|
987
1089
|
}
|
|
988
|
-
|
|
1090
|
+
interface AzureDevOpsWikiDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<AzureDevOpsWiki> {
|
|
1091
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WIKI;
|
|
1092
|
+
}
|
|
1093
|
+
interface AzureDevOpsWorkItemDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<AzureDevOpsWorkItem> {
|
|
1094
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WORK_ITEM;
|
|
1095
|
+
}
|
|
1096
|
+
interface XrayDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<Jira> {
|
|
1097
|
+
type: typeof DataSourceType.XRAY;
|
|
1098
|
+
}
|
|
1099
|
+
interface SharePointDataSourceUpdateDto extends BaseDataSourceUpdateDto, Partial<BaseSharePointParams> {
|
|
1100
|
+
type: typeof DataSourceType.SHAREPOINT;
|
|
1101
|
+
}
|
|
1102
|
+
type DataSourceUpdateDto = ConfluenceDataSourceUpdateDto | JiraDataSourceUpdateDto | GoogleDataSourceUpdateDto | FileDataSourceUpdateDto | CodeDataSourceUpdateDto | AzureDevOpsWikiDataSourceUpdateDto | AzureDevOpsWorkItemDataSourceUpdateDto | XrayDataSourceUpdateDto | SharePointDataSourceUpdateDto | BaseDataSourceUpdateDto;
|
|
989
1103
|
/** Processing information for datasource */
|
|
990
1104
|
interface DataSourceProcessingInfoResponse {
|
|
991
1105
|
/** Total number of documents processed */
|
|
@@ -1069,6 +1183,12 @@ interface BaseDataSourceResponse {
|
|
|
1069
1183
|
confluence?: Confluence;
|
|
1070
1184
|
/** Google document link */
|
|
1071
1185
|
google_doc_link?: string;
|
|
1186
|
+
/** Azure DevOps Wiki-specific configuration */
|
|
1187
|
+
azure_devops_wiki?: AzureDevOpsWiki;
|
|
1188
|
+
/** Azure DevOps Work Item-specific configuration */
|
|
1189
|
+
azure_devops_work_item?: AzureDevOpsWorkItem;
|
|
1190
|
+
/** SharePoint-specific configuration */
|
|
1191
|
+
sharepoint?: SharePoint;
|
|
1072
1192
|
}
|
|
1073
1193
|
type CodeDataSourceResponse = BaseDataSourceResponse & {
|
|
1074
1194
|
/** Repository URL */
|
|
@@ -1132,6 +1252,12 @@ interface DataSource {
|
|
|
1132
1252
|
confluence?: Confluence;
|
|
1133
1253
|
/** Google document link */
|
|
1134
1254
|
google_doc_link?: string;
|
|
1255
|
+
/** Azure DevOps Wiki-specific configuration */
|
|
1256
|
+
azure_devops_wiki?: AzureDevOpsWiki;
|
|
1257
|
+
/** Azure DevOps Work Item-specific configuration */
|
|
1258
|
+
azure_devops_work_item?: AzureDevOpsWorkItem;
|
|
1259
|
+
/** SharePoint-specific configuration */
|
|
1260
|
+
sharepoint?: SharePoint;
|
|
1135
1261
|
}
|
|
1136
1262
|
/** DataSource fetch parameters */
|
|
1137
1263
|
type DataSourceListParams = {
|
|
@@ -1227,11 +1353,23 @@ interface FileDataSourceCreateParams extends BaseDataSourceCreateParams, BaseFil
|
|
|
1227
1353
|
interface CodeDataSourceCreateParams extends BaseDataSourceCreateParams, BaseCodeParams {
|
|
1228
1354
|
type: typeof DataSourceType.CODE;
|
|
1229
1355
|
}
|
|
1356
|
+
interface AzureDevOpsWikiDataSourceCreateParams extends BaseDataSourceCreateParams, AzureDevOpsWiki {
|
|
1357
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WIKI;
|
|
1358
|
+
}
|
|
1359
|
+
interface AzureDevOpsWorkItemDataSourceCreateParams extends BaseDataSourceCreateParams, AzureDevOpsWorkItem {
|
|
1360
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WORK_ITEM;
|
|
1361
|
+
}
|
|
1362
|
+
interface XrayDataSourceCreateParams extends BaseDataSourceCreateParams, BaseJiraParams {
|
|
1363
|
+
type: typeof DataSourceType.XRAY;
|
|
1364
|
+
}
|
|
1365
|
+
interface SharePointDataSourceCreateParams extends BaseDataSourceCreateParams, BaseSharePointParams {
|
|
1366
|
+
type: typeof DataSourceType.SHAREPOINT;
|
|
1367
|
+
}
|
|
1230
1368
|
interface OtherDataSourceCreateParams extends BaseDataSourceCreateParams {
|
|
1231
|
-
type: typeof DataSourceType.PROVIDER | typeof DataSourceType.SUMMARY | typeof DataSourceType.CHUNK_SUMMARY | typeof DataSourceType.JSON;
|
|
1369
|
+
type: typeof DataSourceType.PROVIDER | typeof DataSourceType.SUMMARY | typeof DataSourceType.CHUNK_SUMMARY | typeof DataSourceType.JSON | typeof DataSourceType.PLATFORM;
|
|
1232
1370
|
}
|
|
1233
1371
|
/** DataSource create parameters */
|
|
1234
|
-
type DataSourceCreateParams = ConfluenceDataSourceCreateParams | JiraDataSourceCreateParams | GoogleDataSourceCreateParams | FileDataSourceCreateParams | CodeDataSourceCreateParams | OtherDataSourceCreateParams;
|
|
1372
|
+
type DataSourceCreateParams = ConfluenceDataSourceCreateParams | JiraDataSourceCreateParams | GoogleDataSourceCreateParams | FileDataSourceCreateParams | CodeDataSourceCreateParams | AzureDevOpsWikiDataSourceCreateParams | AzureDevOpsWorkItemDataSourceCreateParams | XrayDataSourceCreateParams | SharePointDataSourceCreateParams | OtherDataSourceCreateParams;
|
|
1235
1373
|
interface BaseDataSourceUpdateParams {
|
|
1236
1374
|
/** Type of datasource */
|
|
1237
1375
|
type: DataSourceTypeType;
|
|
@@ -1269,11 +1407,23 @@ interface FileDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial
|
|
|
1269
1407
|
interface CodeDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<BaseCodeParams> {
|
|
1270
1408
|
type: typeof DataSourceType.CODE;
|
|
1271
1409
|
}
|
|
1410
|
+
interface AzureDevOpsWikiDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<AzureDevOpsWiki> {
|
|
1411
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WIKI;
|
|
1412
|
+
}
|
|
1413
|
+
interface AzureDevOpsWorkItemDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<AzureDevOpsWorkItem> {
|
|
1414
|
+
type: typeof DataSourceType.AZURE_DEVOPS_WORK_ITEM;
|
|
1415
|
+
}
|
|
1416
|
+
interface XrayDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<BaseJiraParams> {
|
|
1417
|
+
type: typeof DataSourceType.XRAY;
|
|
1418
|
+
}
|
|
1419
|
+
interface SharePointDataSourceUpdateParams extends BaseDataSourceUpdateParams, Partial<BaseSharePointParams> {
|
|
1420
|
+
type: typeof DataSourceType.SHAREPOINT;
|
|
1421
|
+
}
|
|
1272
1422
|
interface OtherDataSourceUpdateParams extends BaseDataSourceUpdateParams {
|
|
1273
|
-
type: typeof DataSourceType.PROVIDER | typeof DataSourceType.SUMMARY | typeof DataSourceType.CHUNK_SUMMARY | typeof DataSourceType.JSON;
|
|
1423
|
+
type: typeof DataSourceType.PROVIDER | typeof DataSourceType.SUMMARY | typeof DataSourceType.CHUNK_SUMMARY | typeof DataSourceType.JSON | typeof DataSourceType.PLATFORM;
|
|
1274
1424
|
}
|
|
1275
1425
|
/** DataSource update parameters */
|
|
1276
|
-
type DataSourceUpdateParams = ConfluenceDataSourceUpdateParams | JiraDataSourceUpdateParams | GoogleDataSourceUpdateParams | FileDataSourceUpdateParams | CodeDataSourceUpdateParams | OtherDataSourceUpdateParams;
|
|
1426
|
+
type DataSourceUpdateParams = ConfluenceDataSourceUpdateParams | JiraDataSourceUpdateParams | GoogleDataSourceUpdateParams | FileDataSourceUpdateParams | CodeDataSourceUpdateParams | AzureDevOpsWikiDataSourceUpdateParams | AzureDevOpsWorkItemDataSourceUpdateParams | XrayDataSourceUpdateParams | SharePointDataSourceUpdateParams | OtherDataSourceUpdateParams;
|
|
1277
1427
|
|
|
1278
1428
|
declare class DatasourceService {
|
|
1279
1429
|
private api;
|
|
@@ -1302,6 +1452,18 @@ declare class DatasourceService {
|
|
|
1302
1452
|
* Delete a datasource by ID.
|
|
1303
1453
|
*/
|
|
1304
1454
|
delete(datasourceId: string): Promise<AnyJson>;
|
|
1455
|
+
/**
|
|
1456
|
+
* Get all assistants that use a specific datasource.
|
|
1457
|
+
*/
|
|
1458
|
+
getAssistantsUsingDatasource(datasourceId: string): Promise<AnyJson[]>;
|
|
1459
|
+
/**
|
|
1460
|
+
* Create a provider datasource (CodeAnalysis or CodeExploration).
|
|
1461
|
+
*/
|
|
1462
|
+
createProvider(toolkitId: string, providerName: string, params: ProviderDataSourceRequest): Promise<AnyJson>;
|
|
1463
|
+
/**
|
|
1464
|
+
* Get Elasticsearch index statistics for a datasource.
|
|
1465
|
+
*/
|
|
1466
|
+
getElasticsearchStats(datasourceId: string): Promise<ElasticsearchStats>;
|
|
1305
1467
|
private getCreateDatasourceUrl;
|
|
1306
1468
|
private getKnowledgeBaseParam;
|
|
1307
1469
|
/**
|
|
@@ -2144,4 +2306,4 @@ declare class NotFoundError extends ApiError {
|
|
|
2144
2306
|
constructor(resourceType: string, resourceId: string);
|
|
2145
2307
|
}
|
|
2146
2308
|
|
|
2147
|
-
export { type AboutUser, type AboutUserResponse, type AgentErrorDetails, type AnyJson, ApiError, type Assistant, type AssistantBase, type AssistantCategory, type AssistantChatParams, AssistantChatParamsSchema, type AssistantCreateParams, AssistantCreateParamsSchema, type AssistantCreateResponse, type AssistantDataItem, type AssistantDetailsData, type AssistantListParams, AssistantListParamsSchema, AssistantService, type AssistantUpdateParams, AssistantUpdateParamsSchema, type AssistantUpdateResponse, type AssistantVersion, type AssistantVersionsListParams, AssistantVersionsListParamsSchema, type AuthConfig, type BackgroundTaskEntity, BackgroundTaskStatus, type BackgroundTaskStatusType, type BaseCodeParams, type BaseConfluenceParams, type BaseDataSourceCreateDto, type BaseDataSourceCreateParams, type BaseDataSourceResponse, type BaseDataSourceUpdateDto, type BaseDataSourceUpdateParams, type BaseFileParams, type BaseGoogleParams, type BaseJiraParams, type BaseModelApiResponse, type BaseModelResponse, type BaseUser, ChatRole, type Code, type CodeDataSourceCreateDto, type CodeDataSourceCreateParams, type CodeDataSourceResponse, CodeDataSourceType, type CodeDataSourceTypeType, type CodeDataSourceUpdateDto, type CodeDataSourceUpdateParams, CodeMieClient, type CodeMieClientConfig, CodeMieError, type Confluence, type ConfluenceDataSourceCreateDto, type ConfluenceDataSourceCreateParams, type ConfluenceDataSourceUpdateDto, type ConfluenceDataSourceUpdateParams, type Context, type ContextItem, ContextType, type Conversation, type ConversationCreateParams, ConversationCreateParamsSchema, type ConversationCreateRequest, type ConversationDetails, type ConversationDetailsData, ConversationService, type CostConfig, CredentialTypes, type CredentialTypesType, type CredentialValues, type DataSource, type DataSourceCreateDto, type DataSourceCreateParams, type DataSourceListParams, type DataSourceProcessingInfo, type DataSourceProcessingInfoResponse, type DataSourceResponse, DataSourceStatus, type DataSourceStatusType, DataSourceType, type DataSourceTypeType, type DataSourceUpdateDto, type DataSourceUpdateParams, DatasourceService, ERROR_MESSAGE_PATTERNS, ErrorCategory, ErrorCode, ErrorDetailLevel, type ErrorResponse, ExecutionStatus, type ExecutionStatusType, type File, type FileBulkUploadResponse, type FileDataSourceCreateDto, type FileDataSourceCreateParams, type FileDataSourceUpdateDto, type FileDataSourceUpdateParams, FileService, type FileToUpload, type FileUploadResponse, type Files, type Google, type GoogleDataSourceCreateDto, type GoogleDataSourceCreateParams, type GoogleDataSourceUpdateDto, type GoogleDataSourceUpdateParams, HTTP_STATUS_TO_ERROR_CODE, type HistoryItem, type HistoryMark, type Integration, type IntegrationCreateParams, IntegrationCreateParamsSchema, type IntegrationGetByAliasParams, IntegrationGetByAliasParamsSchema, type IntegrationGetParams, IntegrationGetParamsSchema, type IntegrationListParams, IntegrationListParamsSchema, IntegrationService, IntegrationType, type IntegrationTypeType, type IntegrationUpdateParams, IntegrationUpdateParamsSchema, type IntegrationValidationResult, type Jira, type JiraDataSourceCreateDto, type JiraDataSourceCreateParams, type JiraDataSourceUpdateDto, type JiraDataSourceUpdateParams, type LLMFeatures, type LLMModel, LLMProvider, type LLMProviderType, LLMService, type MCPServerConfig, type MCPServerDetails, type Mark, type MissingIntegration, type MissingIntegrationsByCredentialType, NotFoundError, type Operator, type OtherDataSourceCreateParams, type OtherDataSourceUpdateParams, type PaginatedResponse, type PaginationParams, type PromptVariable, SkillCategory, type SkillCreatedBy, type SkillDetail, type SkillListItem, type SkillListPaginatedResponse, SkillScopeFilter, SkillService, SkillSortBy, SkillVisibility, type SortOrder, type SystemPromptHistory, TaskService, type TaskUser, type Thought, type TokensUsage, type ToolDetails, type ToolErrorDetails, type ToolItem, type ToolKitDetails, type UserData, UserService, type VersionsListResponse, type Workflow, type WorkflowCreateParams, WorkflowCreateParamsSchema, type WorkflowExecution, type WorkflowExecutionCreateParams, WorkflowExecutionCreateParamsSchema, type WorkflowExecutionListParams, WorkflowExecutionListParamsSchema, type WorkflowExecutionResponse, WorkflowExecutionService, type WorkflowExecutionState, type WorkflowExecutionStateListParams, WorkflowExecutionStateListParamsSchema, type WorkflowExecutionStateOutput, WorkflowExecutionStateService, type WorkflowExecutionStateThought, type WorkflowListParams, WorkflowListParamsSchema, WorkflowMode, type WorkflowModeType, type WorkflowResponse, WorkflowService, type WorkflowUpdateParams, WorkflowUpdateParamsSchema, classifyHttpError, formatCookies, formatToolErrorForLevel, formatToolErrorFull, formatToolErrorMinimal, formatToolErrorStandard, isRecoverableError };
|
|
2309
|
+
export { type AboutUser, type AboutUserResponse, type AgentErrorDetails, type AnyJson, ApiError, type Assistant, type AssistantBase, type AssistantCategory, type AssistantChatParams, AssistantChatParamsSchema, type AssistantCreateParams, AssistantCreateParamsSchema, type AssistantCreateResponse, type AssistantDataItem, type AssistantDetailsData, type AssistantListParams, AssistantListParamsSchema, AssistantService, type AssistantUpdateParams, AssistantUpdateParamsSchema, type AssistantUpdateResponse, type AssistantVersion, type AssistantVersionsListParams, AssistantVersionsListParamsSchema, type AuthConfig, type AzureDevOpsWiki, type AzureDevOpsWikiDataSourceCreateDto, type AzureDevOpsWikiDataSourceCreateParams, type AzureDevOpsWikiDataSourceUpdateDto, type AzureDevOpsWikiDataSourceUpdateParams, type AzureDevOpsWorkItem, type AzureDevOpsWorkItemDataSourceCreateDto, type AzureDevOpsWorkItemDataSourceCreateParams, type AzureDevOpsWorkItemDataSourceUpdateDto, type AzureDevOpsWorkItemDataSourceUpdateParams, type BackgroundTaskEntity, BackgroundTaskStatus, type BackgroundTaskStatusType, type BaseCodeParams, type BaseConfluenceParams, type BaseDataSourceCreateDto, type BaseDataSourceCreateParams, type BaseDataSourceResponse, type BaseDataSourceUpdateDto, type BaseDataSourceUpdateParams, type BaseFileParams, type BaseGoogleParams, type BaseJiraParams, type BaseModelApiResponse, type BaseModelResponse, type BaseSharePointParams, type BaseUser, ChatRole, type Code, type CodeAnalysisProviderCreateParams, type CodeDataSourceCreateDto, type CodeDataSourceCreateParams, type CodeDataSourceResponse, CodeDataSourceType, type CodeDataSourceTypeType, type CodeDataSourceUpdateDto, type CodeDataSourceUpdateParams, type CodeExplorationProviderCreateParams, CodeMieClient, type CodeMieClientConfig, CodeMieError, type Confluence, type ConfluenceDataSourceCreateDto, type ConfluenceDataSourceCreateParams, type ConfluenceDataSourceUpdateDto, type ConfluenceDataSourceUpdateParams, type Context, type ContextItem, ContextType, type Conversation, type ConversationCreateParams, ConversationCreateParamsSchema, type ConversationCreateRequest, type ConversationDetails, type ConversationDetailsData, ConversationService, type CostConfig, CredentialTypes, type CredentialTypesType, type CredentialValues, type DataSource, type DataSourceCreateDto, type DataSourceCreateParams, type DataSourceListParams, type DataSourceProcessingInfo, type DataSourceProcessingInfoResponse, type DataSourceResponse, DataSourceStatus, type DataSourceStatusType, DataSourceType, type DataSourceTypeType, type DataSourceUpdateDto, type DataSourceUpdateParams, DatasourceService, ERROR_MESSAGE_PATTERNS, type ElasticsearchStats, ErrorCategory, ErrorCode, ErrorDetailLevel, type ErrorResponse, ExecutionStatus, type ExecutionStatusType, type File, type FileBulkUploadResponse, type FileDataSourceCreateDto, type FileDataSourceCreateParams, type FileDataSourceUpdateDto, type FileDataSourceUpdateParams, FileService, type FileToUpload, type FileUploadResponse, type Files, type Google, type GoogleDataSourceCreateDto, type GoogleDataSourceCreateParams, type GoogleDataSourceUpdateDto, type GoogleDataSourceUpdateParams, HTTP_STATUS_TO_ERROR_CODE, type HistoryItem, type HistoryMark, type Integration, type IntegrationCreateParams, IntegrationCreateParamsSchema, type IntegrationGetByAliasParams, IntegrationGetByAliasParamsSchema, type IntegrationGetParams, IntegrationGetParamsSchema, type IntegrationListParams, IntegrationListParamsSchema, IntegrationService, IntegrationType, type IntegrationTypeType, type IntegrationUpdateParams, IntegrationUpdateParamsSchema, type IntegrationValidationResult, type Jira, type JiraDataSourceCreateDto, type JiraDataSourceCreateParams, type JiraDataSourceUpdateDto, type JiraDataSourceUpdateParams, type LLMFeatures, type LLMModel, LLMProvider, type LLMProviderType, LLMService, type MCPServerConfig, type MCPServerDetails, type Mark, type MissingIntegration, type MissingIntegrationsByCredentialType, NotFoundError, type Operator, type OtherDataSourceCreateParams, type OtherDataSourceUpdateParams, type PaginatedResponse, type PaginationParams, type PromptVariable, type ProviderDataSourceRequest, type SharePoint, type SharePointAuthType, type SharePointDataSourceCreateDto, type SharePointDataSourceCreateParams, type SharePointDataSourceUpdateDto, type SharePointDataSourceUpdateParams, SkillCategory, type SkillCreatedBy, type SkillDetail, type SkillListItem, type SkillListPaginatedResponse, SkillScopeFilter, SkillService, SkillSortBy, SkillVisibility, type SortOrder, type SystemPromptHistory, TaskService, type TaskUser, type Thought, type TokensUsage, type ToolDetails, type ToolErrorDetails, type ToolItem, type ToolKitDetails, type UserData, UserService, type VersionsListResponse, type Workflow, type WorkflowCreateParams, WorkflowCreateParamsSchema, type WorkflowExecution, type WorkflowExecutionCreateParams, WorkflowExecutionCreateParamsSchema, type WorkflowExecutionListParams, WorkflowExecutionListParamsSchema, type WorkflowExecutionResponse, WorkflowExecutionService, type WorkflowExecutionState, type WorkflowExecutionStateListParams, WorkflowExecutionStateListParamsSchema, type WorkflowExecutionStateOutput, WorkflowExecutionStateService, type WorkflowExecutionStateThought, type WorkflowListParams, WorkflowListParamsSchema, WorkflowMode, type WorkflowModeType, type WorkflowResponse, WorkflowService, type WorkflowUpdateParams, WorkflowUpdateParamsSchema, type XrayDataSourceCreateDto, type XrayDataSourceCreateParams, type XrayDataSourceUpdateDto, type XrayDataSourceUpdateParams, classifyHttpError, formatCookies, formatToolErrorForLevel, formatToolErrorFull, formatToolErrorMinimal, formatToolErrorStandard, isRecoverableError };
|