@jupiterone/jupiterone-mcp 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/graphql/queries.d.ts +1 -0
- package/dist/client/graphql/queries.d.ts.map +1 -1
- package/dist/client/graphql/queries.js +19 -1
- package/dist/client/graphql/queries.js.map +1 -1
- package/dist/client/jupiterone-client.d.ts +1 -0
- package/dist/client/jupiterone-client.d.ts.map +1 -1
- package/dist/client/jupiterone-client.js +3 -0
- package/dist/client/jupiterone-client.js.map +1 -1
- package/dist/client/services/account-service.d.ts +16 -0
- package/dist/client/services/account-service.d.ts.map +1 -1
- package/dist/client/services/account-service.js +19 -0
- package/dist/client/services/account-service.js.map +1 -1
- package/dist/client/services/j1ql-service.d.ts +44 -3
- package/dist/client/services/j1ql-service.d.ts.map +1 -1
- package/dist/client/services/j1ql-service.js +82 -31
- package/dist/client/services/j1ql-service.js.map +1 -1
- package/dist/generated/description-map.d.ts.map +1 -1
- package/dist/generated/description-map.js +47 -6
- package/dist/generated/description-map.js.map +1 -1
- package/dist/server/mcp-server.d.ts +10 -0
- package/dist/server/mcp-server.d.ts.map +1 -1
- package/dist/server/mcp-server.js +55 -35
- package/dist/server/mcp-server.js.map +1 -1
- package/dist/server/tools/account.d.ts +25 -0
- package/dist/server/tools/account.d.ts.map +1 -1
- package/dist/server/tools/account.js +97 -5
- package/dist/server/tools/account.js.map +1 -1
- package/dist/server/tools/errors.d.ts +14 -6
- package/dist/server/tools/errors.d.ts.map +1 -1
- package/dist/server/tools/errors.js +22 -7
- package/dist/server/tools/errors.js.map +1 -1
- package/dist/server/tools/j1ql.d.ts.map +1 -1
- package/dist/server/tools/j1ql.js +215 -22
- package/dist/server/tools/j1ql.js.map +1 -1
- package/dist/server/tools/types.d.ts +4 -0
- package/dist/server/tools/types.d.ts.map +1 -1
- package/dist/server/tools/types.js.map +1 -1
- package/dist/server/tools/usage.d.ts.map +1 -1
- package/dist/server/tools/usage.js +4 -0
- package/dist/server/tools/usage.js.map +1 -1
- package/node_modules/dtrace-provider/build/Makefile +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const LIST_ALERT_INSTANCES = "\n query listAlertInstances($alertStatus: AlertStatus, $limit: Int, $cursor: String) {\n listAlertInstances(alertStatus: $alertStatus, limit: $limit, cursor: $cursor) {\n instances {\n ...AlertInstanceFragment\n __typename\n }\n pageInfo {\n endCursor\n hasNextPage\n __typename\n }\n __typename\n }\n }\n\n fragment AlertInstanceFragment on AlertInstance {\n accountId\n resourceGroupId\n createdOn\n dismissedOn\n endReason\n id\n lastEvaluationBeginOn\n lastEvaluationEndOn\n lastEvaluationResult {\n answerText\n evaluationEndOn\n outputs {\n name\n value\n __typename\n }\n rawDataDescriptors {\n name\n recordCount\n __typename\n }\n __typename\n }\n lastUpdatedOn\n level\n questionRuleInstance {\n id\n name\n description\n tags\n pollingInterval\n labels {\n labelName\n labelValue\n __typename\n }\n __typename\n }\n reportRuleInstance {\n name\n description\n __typename\n }\n ruleId\n ruleVersion\n status\n users\n __typename\n }\n";
|
|
2
2
|
export declare const LIST_RULE_INSTANCES = "\n query listRuleInstances($limit: Int, $cursor: String, $filters: ListRuleInstancesFilters) {\n listRuleInstances(limit: $limit, cursor: $cursor, filters: $filters) {\n questionInstances {\n ...RuleInstanceFields\n __typename\n }\n pageInfo {\n hasNextPage\n endCursor\n __typename\n }\n __typename\n }\n }\n\n fragment RuleInstanceFields on QuestionRuleInstance {\n id\n resourceGroupId\n accountId\n name\n description\n version\n lastEvaluationStartOn\n lastEvaluationEndOn\n evaluationStep\n specVersion\n notifyOnFailure\n triggerActionsOnNewEntitiesOnly\n ignorePreviousResults\n pollingInterval\n templates\n outputs\n labels {\n labelName\n labelValue\n __typename\n }\n question {\n queries {\n query\n name\n version\n includeDeleted\n __typename\n }\n __typename\n }\n questionId\n latest\n deleted\n type\n operations {\n when\n actions\n __typename\n }\n latestAlertId\n latestAlertIsActive\n state {\n actions\n __typename\n }\n tags\n remediationSteps\n __typename\n }\n";
|
|
3
3
|
export declare const GET_ACCOUNT_INFO = "\n query account {\n iamGetAccount {\n accountId\n accountSubdomain\n accountName\n accountOwner\n status\n accountType\n accountLogoUrl\n __typename\n }\n }\n";
|
|
4
|
+
export declare const GET_CURRENT_USER = "\n query getCurrentUser {\n iamGetCurrentUser {\n email\n userAbacPermission {\n statement\n }\n resourcePermissions {\n resourceArea\n canCreate\n canRead\n canUpdate\n canDelete\n }\n __typename\n }\n }\n";
|
|
4
5
|
export declare const GET_DASHBOARDS = "\n query GetDashboards {\n getDashboards(options: {includeAllJ1ManagedDashboards: true}) {\n id\n name\n userId\n category\n supportedUseCase\n prerequisites {\n prerequisitesMet\n preRequisitesGroupsFulfilled\n preRequisitesGroupsRequired\n __typename\n }\n isJ1ManagedBoard\n resourceGroupId\n starred\n _timeUpdated\n _createdAt\n __typename\n }\n }\n";
|
|
5
6
|
export declare const GET_DASHBOARD_DETAILS = "\n query solo_GetDashboard($dashboardId: String!) {\n getDashboard(dashboardId: $dashboardId) {\n ...InsightsDashboard\n __typename\n }\n }\n\n fragment InsightsDashboard on InsightsDashboard {\n id\n name\n category\n userId\n supportedUseCase\n isJ1ManagedBoard\n published\n publishedToUserIds\n publishedToGroupIds\n groupIds\n userIds\n scopeFilters\n resourceGroupId\n starred\n _timeUpdated\n _createdAt\n prerequisites {\n prerequisitesMet\n preRequisitesGroupsFulfilled\n preRequisitesGroupsRequired\n __typename\n }\n parameters {\n ...DashboardParameterFields\n __typename\n }\n widgets {\n ...InsightsWidget\n __typename\n }\n layouts {\n ...InsightsDashboardLayoutConfig\n __typename\n }\n __typename\n }\n\n fragment DashboardParameterFields on DashboardParameter {\n dashboardId\n accountId\n id\n label\n name\n options\n valueType\n type\n default\n disableCustomInput\n requireValue\n __typename\n }\n\n fragment InsightsWidget on InsightsWidget {\n id\n title\n description\n type\n questionId\n noResultMessage\n includeDeleted\n config {\n queries {\n id\n name\n query\n __typename\n }\n settings\n postQueryFilters\n disableQueryPolicyFilters\n __typename\n }\n __typename\n }\n\n fragment InsightsDashboardLayoutConfig on InsightsDashboardLayoutConfig {\n xs {\n ...InsightsDashboardLayoutItem\n __typename\n }\n sm {\n ...InsightsDashboardLayoutItem\n __typename\n }\n md {\n ...InsightsDashboardLayoutItem\n __typename\n }\n lg {\n ...InsightsDashboardLayoutItem\n __typename\n }\n xl {\n ...InsightsDashboardLayoutItem\n __typename\n }\n __typename\n }\n\n fragment InsightsDashboardLayoutItem on InsightsDashboardLayoutItem {\n static\n moved\n w\n h\n x\n y\n i\n __typename\n }\n";
|
|
6
7
|
export declare const GET_INTEGRATION_DEFINITIONS = "\n query IntegrationDefinitions($cursor: String, $includeConfig: Boolean = false) {\n integrationDefinitions(cursor: $cursor) {\n definitions {\n ...IntegrationDefinitionsValues\n __typename\n }\n pageInfo {\n endCursor\n hasNextPage\n __typename\n }\n __typename\n }\n }\n\n fragment IntegrationDefinitionsValues on IntegrationDefinition {\n id\n name\n type\n title\n integrationType\n integrationClass\n integrationCategory\n totalInstanceCount\n description\n ...IntegrationDefinitionConfigFragment @include(if: $includeConfig)\n __typename\n }\n\n fragment IntegrationDefinitionConfigFragment on IntegrationDefinition {\n configFields {\n ...ConfigFieldsRecursive\n __typename\n }\n authSections {\n id\n description\n displayName\n configFields {\n ...ConfigFieldsRecursive\n __typename\n }\n verificationDisabled\n __typename\n }\n configSections {\n displayName\n configFields {\n ...ConfigFieldsRecursive\n __typename\n }\n __typename\n }\n __typename\n }\n\n fragment ConfigFieldsRecursive on ConfigField {\n ...ConfigFieldValues\n configFields {\n ...ConfigFieldValues\n configFields {\n ...ConfigFieldValues\n __typename\n }\n __typename\n }\n __typename\n }\n\n fragment ConfigFieldValues on ConfigField {\n key\n displayName\n description\n type\n format\n defaultValue\n helperText\n inputAdornment\n mask\n optional\n immutable\n readonly\n computed\n options {\n value\n description\n label\n webLink\n default\n __typename\n }\n __typename\n }\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/client/graphql/queries.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,mtCAkEhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,kuCAmE/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,oNAa5B,CAAC;AAEF,eAAO,MAAM,cAAc,4cAsB1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,kjEAsHjC,CAAC;AAEF,eAAO,MAAM,2BAA2B,uxDA8FvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,ggCAiDrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,o+BA2ChC,CAAC;AAEF,eAAO,MAAM,mBAAmB,kmBA+B/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,8nBA+BlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,ijCA2CjC,CAAC;AAEF,eAAO,MAAM,2BAA2B,+2BA0CvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,uHAIrC,CAAC;AAGF,eAAO,MAAM,QAAQ,qdAQpB,CAAC;AAGF,eAAO,MAAM,iBAAiB,iGAO7B,CAAC"}
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../src/client/graphql/queries.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,mtCAkEhC,CAAC;AAEF,eAAO,MAAM,mBAAmB,kuCAmE/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,oNAa5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mSAiB5B,CAAC;AAEF,eAAO,MAAM,cAAc,4cAsB1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,kjEAsHjC,CAAC;AAEF,eAAO,MAAM,2BAA2B,uxDA8FvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,ggCAiDrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,o+BA2ChC,CAAC;AAEF,eAAO,MAAM,mBAAmB,kmBA+B/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,8nBA+BlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,ijCA2CjC,CAAC;AAEF,eAAO,MAAM,2BAA2B,+2BA0CvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,uHAIrC,CAAC;AAGF,eAAO,MAAM,QAAQ,qdAQpB,CAAC;AAGF,eAAO,MAAM,iBAAiB,iGAO7B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_ENTITY_COUNTS = exports.QUERY_V2 = exports.GET_RAW_DATA_DOWNLOAD_URL = exports.GET_RULE_EVALUATION_DETAILS = exports.LIST_RULE_EVALUATIONS = exports.GET_INTEGRATION_EVENTS = exports.GET_INTEGRATION_JOB = exports.GET_INTEGRATION_JOBS = exports.GET_INTEGRATION_INSTANCES = exports.GET_INTEGRATION_DEFINITIONS = exports.GET_DASHBOARD_DETAILS = exports.GET_DASHBOARDS = exports.GET_ACCOUNT_INFO = exports.LIST_RULE_INSTANCES = exports.LIST_ALERT_INSTANCES = void 0;
|
|
3
|
+
exports.GET_ENTITY_COUNTS = exports.QUERY_V2 = exports.GET_RAW_DATA_DOWNLOAD_URL = exports.GET_RULE_EVALUATION_DETAILS = exports.LIST_RULE_EVALUATIONS = exports.GET_INTEGRATION_EVENTS = exports.GET_INTEGRATION_JOB = exports.GET_INTEGRATION_JOBS = exports.GET_INTEGRATION_INSTANCES = exports.GET_INTEGRATION_DEFINITIONS = exports.GET_DASHBOARD_DETAILS = exports.GET_DASHBOARDS = exports.GET_CURRENT_USER = exports.GET_ACCOUNT_INFO = exports.LIST_RULE_INSTANCES = exports.LIST_ALERT_INSTANCES = void 0;
|
|
4
4
|
exports.LIST_ALERT_INSTANCES = `
|
|
5
5
|
query listAlertInstances($alertStatus: AlertStatus, $limit: Int, $cursor: String) {
|
|
6
6
|
listAlertInstances(alertStatus: $alertStatus, limit: $limit, cursor: $cursor) {
|
|
@@ -150,6 +150,24 @@ exports.GET_ACCOUNT_INFO = `
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
`;
|
|
153
|
+
exports.GET_CURRENT_USER = `
|
|
154
|
+
query getCurrentUser {
|
|
155
|
+
iamGetCurrentUser {
|
|
156
|
+
email
|
|
157
|
+
userAbacPermission {
|
|
158
|
+
statement
|
|
159
|
+
}
|
|
160
|
+
resourcePermissions {
|
|
161
|
+
resourceArea
|
|
162
|
+
canCreate
|
|
163
|
+
canRead
|
|
164
|
+
canUpdate
|
|
165
|
+
canDelete
|
|
166
|
+
}
|
|
167
|
+
__typename
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
`;
|
|
153
171
|
exports.GET_DASHBOARDS = `
|
|
154
172
|
query GetDashboards {
|
|
155
173
|
getDashboards(options: {includeAllJ1ManagedDashboards: true}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../src/client/graphql/queries.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEnC,CAAC;AAEW,QAAA,mBAAmB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmElC,CAAC;AAEW,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;CAa/B,CAAC;AAEW,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEW,QAAA,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsHpC,CAAC;AAEW,QAAA,2BAA2B,GAAG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getCurrentUser(): Promise<import("./services/account-service.js").CurrentUserInfo>;
|
|
56
57
|
getIntegrationDefinitions(...args: Parameters<IntegrationService['getIntegrationDefinitions']>): Promise<{
|
|
57
58
|
definitions: import("../types/jupiterone.js").IntegrationDefinition[];
|
|
58
59
|
pageInfo: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jupiterone-client.d.ts","sourceRoot":"","sources":["../../src/client/jupiterone-client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,YAAY,CAAe;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,EAAE,gBAAgB,CAAC;IAC1C,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,kBAAkB,CAAqB;IACxC,WAAW,EAAE,WAAW,CAAC;gBAEpB,MAAM,EAAE,gBAAgB;IA0B7B,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB;IAMxD,oBAAoB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC;IAK9E,iBAAiB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;;;;IAIvE,mBAAmB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;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AAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;IAIpF,eAAe,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IAIxE,qBAAqB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;;;IAIpF,qBAAqB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;;;IAIpF,eAAe,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;;;IAKxE,cAAc;;;;;IAId,cAAc;IAKd,yBAAyB,CAC7B,GAAG,IAAI,EAAE,UAAU,CAAC,kBAAkB,CAAC,2BAA2B,CAAC,CAAC;;;;;;IAKhE,uBAAuB,CAC3B,GAAG,IAAI,EAAE,UAAU,CAAC,kBAAkB,CAAC,yBAAyB,CAAC,CAAC;;;;;;IAK9D,kBAAkB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;;;;;;IAItF;;;;OAIG;IACG,iBAAiB,CAAC,gBAAgB,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM;IAI/E;;;;;;OAMG;IACG,oBAAoB,CACxB,KAAK,EAAE,MAAM,EACb,qBAAqB,EAAE,MAAM,EAC7B,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM;;;;;;;IAMT,gBAAgB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAIrE,eAAe;CAGtB"}
|
|
@@ -107,6 +107,9 @@ class JupiterOneClient {
|
|
|
107
107
|
async getAccountInfo() {
|
|
108
108
|
return this.accountService.getAccountInfo();
|
|
109
109
|
}
|
|
110
|
+
async getCurrentUser() {
|
|
111
|
+
return this.accountService.getCurrentUser();
|
|
112
|
+
}
|
|
110
113
|
// Integration methods
|
|
111
114
|
async getIntegrationDefinitions(...args) {
|
|
112
115
|
return this.integrationService.getIntegrationDefinitions(...args);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jupiterone-client.js","sourceRoot":"","sources":["../../src/client/jupiterone-client.ts"],"names":[],"mappings":";;;AAEA,2DAA8D;AAC9D,kEAA2D;AAC3D,gEAAyD;AACzD,0EAAmE;AACnE,sEAA+D;AAC/D,8EAAuE;AACvE,gEAAyD;AACzD,qDAA6C;AAE7C,MAAa,gBAAgB;IACnB,MAAM,CAAgB;IACtB,MAAM,CAAmB;IACzB,YAAY,CAAe;IAC5B,WAAW,CAAc;IACzB,gBAAgB,CAAmB;IAClC,cAAc,CAAiB;IAC/B,kBAAkB,CAAqB;IACxC,WAAW,CAAc;IAEhC,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,MAAM,OAAO,GAA2B;YACtC,aAAa,EAAE,UAAU,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE;YAC7D,cAAc,EAAE,kBAAkB;YAClC,YAAY,EAAE,kBAAkB,sBAAO,EAAE;SAC1C,CAAC;QACF,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;YACrB,OAAO,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC;QACjD,CAAC;QACD,iGAAiG;QACjG,2DAA2D;QAC3D,IAAI,CAAC,MAAM,GAAG,IAAI,2CAAuB,CAAC,MAAM,CAAC,OAAO,IAAI,kCAAkC,EAAE;YAC9F,OAAO;YACP,MAAM,EAAE,MAAM,CAAC,WAAW;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,YAAY,GAAG,IAAI,+BAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,WAAW,GAAG,IAAI,6BAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,gBAAgB,GAAG,IAAI,uCAAg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,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,iBAAiB,CAAC,gBAAwB,EAAE,qBAA6B;QAC7E,OAAO,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,oBAAoB,CACxB,KAAa,EACb,qBAA6B,EAC7B,MAAe,EACf,IAAa;QAEb,OAAO,IAAI,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,KAAK,EAAE,qBAAqB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAClG,CAAC;IAED,eAAe;IACf,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAiD;QACzE,OAAO,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,OAAO,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC;IAC5C,CAAC;CACF;AAnLD,4CAmLC"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { GraphQLClient } from 'graphql-request';
|
|
2
|
+
export interface CurrentUserInfo {
|
|
3
|
+
email?: string;
|
|
4
|
+
abacStatements: string[];
|
|
5
|
+
resourcePermissions: Array<{
|
|
6
|
+
resourceArea: string;
|
|
7
|
+
canCreate: boolean;
|
|
8
|
+
canRead: boolean;
|
|
9
|
+
canUpdate: boolean;
|
|
10
|
+
canDelete: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
2
13
|
export declare class AccountService {
|
|
3
14
|
private client;
|
|
4
15
|
constructor(client: GraphQLClient);
|
|
@@ -10,5 +21,10 @@ export declare class AccountService {
|
|
|
10
21
|
name?: string;
|
|
11
22
|
subdomain?: string;
|
|
12
23
|
}>;
|
|
24
|
+
/**
|
|
25
|
+
* The caller's identity and effective permissions in the current account — the same
|
|
26
|
+
* `iamGetCurrentUser` source the web app uses for its RBAC gating.
|
|
27
|
+
*/
|
|
28
|
+
getCurrentUser(): Promise<CurrentUserInfo>;
|
|
13
29
|
}
|
|
14
30
|
//# sourceMappingURL=account-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-service.d.ts","sourceRoot":"","sources":["../../../src/client/services/account-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,qBAAa,cAAc;IACb,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEzC;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"account-service.d.ts","sourceRoot":"","sources":["../../../src/client/services/account-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC;QACzB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,SAAS,EAAE,OAAO,CAAC;QACnB,SAAS,EAAE,OAAO,CAAC;KACpB,CAAC,CAAC;CACJ;AAED,qBAAa,cAAc;IACb,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEzC;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAgBzF;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,eAAe,CAAC;CAoBjD"}
|
|
@@ -24,6 +24,25 @@ class AccountService {
|
|
|
24
24
|
throw error;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* The caller's identity and effective permissions in the current account — the same
|
|
29
|
+
* `iamGetCurrentUser` source the web app uses for its RBAC gating.
|
|
30
|
+
*/
|
|
31
|
+
async getCurrentUser() {
|
|
32
|
+
try {
|
|
33
|
+
const response = await this.client.request(queries_js_1.GET_CURRENT_USER);
|
|
34
|
+
const user = response.iamGetCurrentUser;
|
|
35
|
+
return {
|
|
36
|
+
email: user?.email,
|
|
37
|
+
abacStatements: user?.userAbacPermission?.statement ?? [],
|
|
38
|
+
resourcePermissions: user?.resourcePermissions ?? [],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
console.error('Error getting current user', error);
|
|
43
|
+
throw error;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
27
46
|
}
|
|
28
47
|
exports.AccountService = AccountService;
|
|
29
48
|
//# sourceMappingURL=account-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-service.js","sourceRoot":"","sources":["../../../src/client/services/account-service.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"account-service.js","sourceRoot":"","sources":["../../../src/client/services/account-service.ts"],"names":[],"mappings":";;;AACA,sDAA2E;AAc3E,MAAa,cAAc;IACL;IAApB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C;;OAEG;IACH,KAAK,CAAC,cAAc;QAClB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAEvC,6BAAgB,CAAC,CAAC;YACrB,OAAO;gBACL,SAAS,EAAE,QAAQ,CAAC,aAAa,CAAC,SAAS;gBAC3C,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,WAAW;gBACxC,SAAS,EAAE,QAAQ,CAAC,aAAa,CAAC,gBAAgB;aACnD,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;YACnD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,cAAc;QAClB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAMvC,6BAAgB,CAAC,CAAC;YACrB,MAAM,IAAI,GAAG,QAAQ,CAAC,iBAAiB,CAAC;YACxC,OAAO;gBACL,KAAK,EAAE,IAAI,EAAE,KAAK;gBAClB,cAAc,EAAE,IAAI,EAAE,kBAAkB,EAAE,SAAS,IAAI,EAAE;gBACzD,mBAAmB,EAAE,IAAI,EAAE,mBAAmB,IAAI,EAAE;aACrD,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAC;YACnD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CACF;AA9CD,wCA8CC"}
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import { GraphQLClient } from 'graphql-request';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Default poll budget for deferred results (attempts × 1s). 45 finishes comfortably under the
|
|
4
|
+
* remote proxy's 55s request deadline and the ~60s host tool-call ceiling, so the handle-bearing
|
|
5
|
+
* timeout below reaches the caller instead of the transport aborting mid-poll.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DEFAULT_MAX_POLL_ATTEMPTS = 45;
|
|
8
|
+
/**
|
|
9
|
+
* Thrown when a deferred query is still running after the poll budget is exhausted — a distinct
|
|
10
|
+
* type so callers can tell "still running" apart from a real query error. The backend keeps
|
|
11
|
+
* executing regardless of this client-side budget (Neo4j allows up to ~4 minutes per attempt)
|
|
12
|
+
* and retains results at the status URL for ~1 hour, so the error carries that URL as a
|
|
13
|
+
* resume handle.
|
|
5
14
|
*/
|
|
6
15
|
export declare class J1qlQueryTimeoutError extends Error {
|
|
7
|
-
|
|
16
|
+
readonly resultsUrl: string;
|
|
17
|
+
readonly correlationId?: string | undefined;
|
|
18
|
+
/** Epoch ms when the query was initiated, when the caller knows it (execute path). */
|
|
19
|
+
readonly startedAt?: number | undefined;
|
|
20
|
+
constructor(seconds: number, resultsUrl: string, correlationId?: string | undefined,
|
|
21
|
+
/** Epoch ms when the query was initiated, when the caller knows it (execute path). */
|
|
22
|
+
startedAt?: number | undefined);
|
|
8
23
|
}
|
|
9
24
|
export declare class J1qlService {
|
|
10
25
|
private client;
|
|
@@ -14,6 +29,32 @@ export declare class J1qlService {
|
|
|
14
29
|
* Construct query results URL based on subdomain
|
|
15
30
|
*/
|
|
16
31
|
constructQueryUrl(query: string, subdomain?: string): string;
|
|
32
|
+
/**
|
|
33
|
+
* Initiate a J1QL query without waiting for results. Returns the raw `queryV2` payload: for
|
|
34
|
+
* deferred execution that is `{ type: 'deferred', url, correlationId }` where `url` is the
|
|
35
|
+
* status/results file the backend writes to (pollable for ~1 hour); small queries may return
|
|
36
|
+
* inline results instead.
|
|
37
|
+
*/
|
|
38
|
+
startJ1qlQuery({ query, variables, cursor, scopeFilters, flags, }: {
|
|
39
|
+
query: string;
|
|
40
|
+
variables?: Record<string, any>;
|
|
41
|
+
cursor?: string;
|
|
42
|
+
scopeFilters?: Record<string, any>[];
|
|
43
|
+
flags?: Record<string, any>;
|
|
44
|
+
}): Promise<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Poll a deferred query's status URL until it reports a terminal status or the poll budget
|
|
47
|
+
* (attempts × 1s) is exhausted. The status file moves ENQUEUED → IN_PROGRESS → COMPLETED/FAILED;
|
|
48
|
+
* unknown statuses are treated as still-running so a new upstream state never gets returned as
|
|
49
|
+
* results. Budget exhaustion throws a handle-bearing J1qlQueryTimeoutError — the query itself
|
|
50
|
+
* keeps running server-side.
|
|
51
|
+
*/
|
|
52
|
+
pollDeferredResult(url: string, { maxPollAttempts, correlationId, startedAt, }?: {
|
|
53
|
+
maxPollAttempts?: number;
|
|
54
|
+
correlationId?: string;
|
|
55
|
+
/** Query initiation time (epoch ms), carried into the timeout error for liveness reporting. */
|
|
56
|
+
startedAt?: number;
|
|
57
|
+
}): Promise<any>;
|
|
17
58
|
/**
|
|
18
59
|
* Execute a J1QL query
|
|
19
60
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"j1ql-service.d.ts","sourceRoot":"","sources":["../../../src/client/services/j1ql-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD
|
|
1
|
+
{"version":3,"file":"j1ql-service.d.ts","sourceRoot":"","sources":["../../../src/client/services/j1ql-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAI5C;;;;;;GAMG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;aAG5B,UAAU,EAAE,MAAM;aAClB,aAAa,CAAC,EAAE,MAAM;IACtC,sFAAsF;aACtE,SAAS,CAAC,EAAE,MAAM;gBAJlC,OAAO,EAAE,MAAM,EACC,UAAU,EAAE,MAAM,EAClB,aAAa,CAAC,EAAE,MAAM,YAAA;IACtC,sFAAsF;IACtE,SAAS,CAAC,EAAE,MAAM,YAAA;CAKrC;AAED,qBAAa,WAAW;IAEpB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,WAAW,CAAC;gBADZ,MAAM,EAAE,aAAa,EACrB,WAAW,CAAC,EAAE,WAAW,YAAA;IAGnC;;OAEG;IACH,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM;IAK5D;;;;;OAKG;IACG,cAAc,CAAC,EACnB,KAAK,EAC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|
-
exports.J1qlService = exports.J1qlQueryTimeoutError = void 0;
|
|
3
|
+
exports.J1qlService = exports.J1qlQueryTimeoutError = exports.DEFAULT_MAX_POLL_ATTEMPTS = void 0;
|
|
4
4
|
const queries_js_1 = require("../graphql/queries.js");
|
|
5
5
|
const appUrl_js_1 = require("../../utils/appUrl.js");
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Default poll budget for deferred results (attempts × 1s). 45 finishes comfortably under the
|
|
8
|
+
* remote proxy's 55s request deadline and the ~60s host tool-call ceiling, so the handle-bearing
|
|
9
|
+
* timeout below reaches the caller instead of the transport aborting mid-poll.
|
|
10
|
+
*/
|
|
11
|
+
exports.DEFAULT_MAX_POLL_ATTEMPTS = 45;
|
|
12
|
+
const POLL_INTERVAL_MS = 1000;
|
|
13
|
+
/**
|
|
14
|
+
* Thrown when a deferred query is still running after the poll budget is exhausted — a distinct
|
|
15
|
+
* type so callers can tell "still running" apart from a real query error. The backend keeps
|
|
16
|
+
* executing regardless of this client-side budget (Neo4j allows up to ~4 minutes per attempt)
|
|
17
|
+
* and retains results at the status URL for ~1 hour, so the error carries that URL as a
|
|
18
|
+
* resume handle.
|
|
9
19
|
*/
|
|
10
20
|
class J1qlQueryTimeoutError extends Error {
|
|
11
|
-
|
|
21
|
+
resultsUrl;
|
|
22
|
+
correlationId;
|
|
23
|
+
startedAt;
|
|
24
|
+
constructor(seconds, resultsUrl, correlationId,
|
|
25
|
+
/** Epoch ms when the query was initiated, when the caller knows it (execute path). */
|
|
26
|
+
startedAt) {
|
|
12
27
|
super(`Query timed out after ${seconds} seconds`);
|
|
28
|
+
this.resultsUrl = resultsUrl;
|
|
29
|
+
this.correlationId = correlationId;
|
|
30
|
+
this.startedAt = startedAt;
|
|
13
31
|
this.name = 'J1qlQueryTimeoutError';
|
|
14
32
|
}
|
|
15
33
|
}
|
|
@@ -29,9 +47,12 @@ class J1qlService {
|
|
|
29
47
|
return (0, appUrl_js_1.constructAppUrl)(`home?${params.toString()}`, subdomain);
|
|
30
48
|
}
|
|
31
49
|
/**
|
|
32
|
-
*
|
|
50
|
+
* Initiate a J1QL query without waiting for results. Returns the raw `queryV2` payload: for
|
|
51
|
+
* deferred execution that is `{ type: 'deferred', url, correlationId }` where `url` is the
|
|
52
|
+
* status/results file the backend writes to (pollable for ~1 hour); small queries may return
|
|
53
|
+
* inline results instead.
|
|
33
54
|
*/
|
|
34
|
-
async
|
|
55
|
+
async startJ1qlQuery({ query, variables, cursor, scopeFilters, flags, }) {
|
|
35
56
|
// Use queryV2 for better error messages
|
|
36
57
|
const response = await this.client.request(queries_js_1.QUERY_V2, {
|
|
37
58
|
query,
|
|
@@ -42,37 +63,67 @@ class J1qlService {
|
|
|
42
63
|
returnRowMetadata: flags?.returnRowMeta,
|
|
43
64
|
returnComputedProperties: flags?.computedProperties,
|
|
44
65
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
return response.queryV2;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Poll a deferred query's status URL until it reports a terminal status or the poll budget
|
|
70
|
+
* (attempts × 1s) is exhausted. The status file moves ENQUEUED → IN_PROGRESS → COMPLETED/FAILED;
|
|
71
|
+
* unknown statuses are treated as still-running so a new upstream state never gets returned as
|
|
72
|
+
* results. Budget exhaustion throws a handle-bearing J1qlQueryTimeoutError — the query itself
|
|
73
|
+
* keeps running server-side.
|
|
74
|
+
*/
|
|
75
|
+
async pollDeferredResult(url, { maxPollAttempts, correlationId, startedAt, } = {}) {
|
|
76
|
+
const maxAttempts = maxPollAttempts ?? exports.DEFAULT_MAX_POLL_ATTEMPTS;
|
|
77
|
+
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
78
|
+
let fetchResponse;
|
|
79
|
+
try {
|
|
51
80
|
// Honor the host's abort signal: it fires when the caller disconnects or a deadline passes.
|
|
52
81
|
this.abortSignal?.throwIfAborted();
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
//
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
return result;
|
|
64
|
-
}
|
|
65
|
-
// If still in progress, wait before next poll
|
|
66
|
-
if (result.status === 'IN_PROGRESS') {
|
|
67
|
-
await new Promise(resolve => setTimeout(resolve, pollInterval));
|
|
68
|
-
continue;
|
|
82
|
+
// Result URLs never legitimately redirect, so refuse redirects — following one would let a
|
|
83
|
+
// response move the request off the host allowlist callers validated.
|
|
84
|
+
fetchResponse = await fetch(url, { signal: this.abortSignal, redirect: 'error' });
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
// An abort ends the wait, not the query: surface the handle so the caller can still hand
|
|
88
|
+
// back a resumable IN_PROGRESS envelope instead of discarding the running query.
|
|
89
|
+
if (error?.name === 'AbortError') {
|
|
90
|
+
throw new J1qlQueryTimeoutError(attempt, url, correlationId, startedAt);
|
|
69
91
|
}
|
|
70
|
-
|
|
92
|
+
throw error;
|
|
93
|
+
}
|
|
94
|
+
if (!fetchResponse.ok) {
|
|
95
|
+
throw new Error(`Failed to fetch query results: ${fetchResponse.statusText}`);
|
|
96
|
+
}
|
|
97
|
+
const result = await fetchResponse.json();
|
|
98
|
+
if (result.status === 'FAILED') {
|
|
99
|
+
throw new Error(result.error || 'Query execution failed');
|
|
100
|
+
}
|
|
101
|
+
// The executor commits 'COMPLETED'; 'COMPLETE' is kept for compatibility with older payloads.
|
|
102
|
+
if (result.status === 'COMPLETE' || result.status === 'COMPLETED') {
|
|
71
103
|
return result;
|
|
72
104
|
}
|
|
73
|
-
|
|
105
|
+
// Still running (ENQUEUED/IN_PROGRESS/unknown): wait before the next poll, but not after the
|
|
106
|
+
// final attempt — the caller should get the timeout handle immediately.
|
|
107
|
+
if (attempt < maxAttempts - 1) {
|
|
108
|
+
await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));
|
|
109
|
+
}
|
|
74
110
|
}
|
|
75
|
-
|
|
111
|
+
throw new J1qlQueryTimeoutError(maxAttempts, url, correlationId, startedAt);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Execute a J1QL query
|
|
115
|
+
*/
|
|
116
|
+
async executeJ1qlQuery({ query, variables, cursor, scopeFilters, flags, maxPollAttempts, }) {
|
|
117
|
+
const startedAt = Date.now();
|
|
118
|
+
const started = await this.startJ1qlQuery({ query, variables, cursor, scopeFilters, flags });
|
|
119
|
+
if (started.type === 'deferred' && started.url) {
|
|
120
|
+
return this.pollDeferredResult(started.url, {
|
|
121
|
+
maxPollAttempts,
|
|
122
|
+
correlationId: started.correlationId,
|
|
123
|
+
startedAt,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
return started;
|
|
76
127
|
}
|
|
77
128
|
/**
|
|
78
129
|
* List all entity types in the account
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"j1ql-service.js","sourceRoot":"","sources":["../../../src/client/services/j1ql-service.ts"],"names":[],"mappings":";;;AACA,sDAAoE;AACpE,qDAAwD;AAExD
|
|
1
|
+
{"version":3,"file":"j1ql-service.js","sourceRoot":"","sources":["../../../src/client/services/j1ql-service.ts"],"names":[],"mappings":";;;AACA,sDAAoE;AACpE,qDAAwD;AAExD;;;;GAIG;AACU,QAAA,yBAAyB,GAAG,EAAE,CAAC;AAE5C,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAE9B;;;;;;GAMG;AACH,MAAa,qBAAsB,SAAQ,KAAK;IAG5B;IACA;IAEA;IALlB,YACE,OAAe,EACC,UAAkB,EAClB,aAAsB;IACtC,sFAAsF;IACtE,SAAkB;QAElC,KAAK,CAAC,yBAAyB,OAAO,UAAU,CAAC,CAAC;QALlC,eAAU,GAAV,UAAU,CAAQ;QAClB,kBAAa,GAAb,aAAa,CAAS;QAEtB,cAAS,GAAT,SAAS,CAAS;QAGlC,IAAI,CAAC,IAAI,GAAG,u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AgB,CAAC,EACrB,KAAK,EACL,SAAS,EACT,MAAM,EACN,YAAY,EACZ,KAAK,EACL,eAAe,GAShB;QACC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC7B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;QAE7F,IAAI,OAAO,CAAC,IAAI,KAAK,UAAU,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;YAC/C,OAAO,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,GAAG,EAAE;gBAC1C,eAAe;gBACf,aAAa,EAAE,OAAO,CAAC,aAAa;gBACpC,SAAS;aACV,CAAC,CAAC;QACL,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe;QACnB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAKvC,8BAAiB,CAAC,CAAC;QAEtB,OAAO;YACL,OAAO,EAAE,QAAQ,CAAC,eAAe,EAAE,OAAO,IAAI,EAAE;YAChD,KAAK,EAAE,QAAQ,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;SAC7C,CAAC;IACJ,CAAC;CACF;AA7JD,kCA6JC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-map.d.ts","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"description-map.d.ts","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAowFjD,CAAC"}
|
|
@@ -1332,7 +1332,16 @@ The \`url\` field in every response is a direct link to view the results in the
|
|
|
1332
1332
|
- Export results to CSV or other formats
|
|
1333
1333
|
- Save the query for future use
|
|
1334
1334
|
- Share results with team members
|
|
1335
|
-
- Further refine the query in the JupiterOne UI
|
|
1335
|
+
- Further refine the query in the JupiterOne UI
|
|
1336
|
+
|
|
1337
|
+
#### Long-running queries
|
|
1338
|
+
|
|
1339
|
+
This tool waits about 10 seconds (which covers ~97% of queries). If the response has \`status: "IN_PROGRESS"\` and a \`resultsUrl\`, the query did **not** fail — it is still executing server-side (usually done within ~4 minutes; a query still running past ~13 minutes — the backend's full retry window — will not succeed) and its results stay retrievable for about an hour. **You do not need to wait for it, and you should not re-issue this query.**
|
|
1340
|
+
|
|
1341
|
+
1. **Keep working.** Run other queries and tools in the meantime — the query completes on its own.
|
|
1342
|
+
2. **Collect when convenient:** call \`get-query-results\` with the returned \`resultsUrl\`. By default it waits up to 40 seconds and returns the results the moment they are ready; pass \`waitSeconds: 1\` for an instant status check.
|
|
1343
|
+
3. **Only rewrite the query if it actually fails.** If \`get-query-results\` reports the query FAILED, run a narrower version (indexed \`WITH\` filters, smaller \`LIMIT\`, fewer traversals).
|
|
1344
|
+
`,
|
|
1336
1345
|
"get-dashboard-details.md": `# Get Dashboard Details Tool
|
|
1337
1346
|
|
|
1338
1347
|
Get detailed information about a specific JupiterOne dashboard including its widgets, layout, and configuration.
|
|
@@ -1483,6 +1492,32 @@ Get jobs for a specific integration instance:
|
|
|
1483
1492
|
"size": 10
|
|
1484
1493
|
}
|
|
1485
1494
|
\`\`\``,
|
|
1495
|
+
"get-query-results.md": `# Get Query Results
|
|
1496
|
+
|
|
1497
|
+
**Purpose**: Retrieves the results of a J1QL query that was still running when \`execute-j1ql-query\` returned. Use this whenever \`execute-j1ql-query\` responds with \`status: "IN_PROGRESS"\` and a \`resultsUrl\`.
|
|
1498
|
+
|
|
1499
|
+
A query that outlives the tool-call window keeps executing server-side (heavy traversals can take up to ~4 minutes) and its results stay retrievable for about an hour. This tool waits for completion and returns the results in the same format as \`execute-j1ql-query\`.
|
|
1500
|
+
|
|
1501
|
+
## Parameters
|
|
1502
|
+
|
|
1503
|
+
| Parameter | Required | Description |
|
|
1504
|
+
|-----------|----------|-------------|
|
|
1505
|
+
| \`resultsUrl\` | Yes | The exact \`resultsUrl\` returned by \`execute-j1ql-query\`. Do not construct or modify this URL. |
|
|
1506
|
+
| \`waitSeconds\` | No | How long to wait for completion before returning the \`IN_PROGRESS\` handle again (1–45, default 40). |
|
|
1507
|
+
|
|
1508
|
+
## Behavior
|
|
1509
|
+
|
|
1510
|
+
- **Query finished** → returns the standard query envelope (\`data\`, \`cursor\`, \`hasMore\`, \`totalCount\`, \`status: "COMPLETED"\`). Continue pagination, if any, through \`execute-j1ql-query\` with the returned \`cursor\`.
|
|
1511
|
+
- **Query still running** → returns \`status: "IN_PROGRESS"\` with the same \`resultsUrl\`, plus \`startedAt\`/\`elapsedSeconds\` when recoverable. Successful queries almost always finish within ~4 minutes of execution; past ~13 minutes (the backend's full retry window) a query will not succeed — abandon the handle and run a narrower query instead.
|
|
1512
|
+
- **Query failed server-side** → returns the execution error. At that point, narrow the query (indexed \`WITH\` filters, smaller \`LIMIT\`, fewer traversals) and run it again with \`execute-j1ql-query\`.
|
|
1513
|
+
|
|
1514
|
+
## Tips
|
|
1515
|
+
|
|
1516
|
+
- **You do not need to babysit a running query.** Do other work between checks — each call here already waits up to 40 seconds, so a handful of calls spread over a few minutes is plenty. Long queries usually finish within ~4 minutes.
|
|
1517
|
+
- Use \`waitSeconds: 1\` when you only want a quick status check before moving on.
|
|
1518
|
+
- Do **not** re-issue \`execute-j1ql-query\` just to get these results — that starts from scratch. Only re-issue if the query FAILED (narrowed) or the handle expired.
|
|
1519
|
+
- The \`resultsUrl\` handle expires roughly an hour after the query started. If it has expired or was lost, re-run the original query with \`execute-j1ql-query\` (an identical re-run within ~5 minutes of the original re-attaches to the same execution server-side).
|
|
1520
|
+
`,
|
|
1486
1521
|
"get-raw-data-download-url.md": `# Get Raw Data Download URL Tool
|
|
1487
1522
|
|
|
1488
1523
|
Generate a signed URL for downloading raw data from JupiterOne. This is typically used to download large result sets from rule evaluations.
|
|
@@ -1543,12 +1578,13 @@ Get query results from a rule evaluation:
|
|
|
1543
1578
|
\`\`\``,
|
|
1544
1579
|
"list-accounts.md": `# List Accounts Tool
|
|
1545
1580
|
|
|
1546
|
-
List the JupiterOne accounts the authenticated user can access. Returns each account's \`accountId
|
|
1581
|
+
List the JupiterOne accounts the authenticated user can access. Returns each account's \`accountId\`, a human-readable \`displayName\`, and — when the host can construct one — \`mcpUrl\`, the connector/server URL that pins that account. The list is scoped to the user's memberships. Membership is not a guarantee of live access, though — an account may still reject the connection if access was revoked or disabled, or if it requires a different sign-in method such as SSO.
|
|
1547
1582
|
|
|
1548
1583
|
## When to use
|
|
1549
1584
|
|
|
1550
1585
|
- Call this **first** when no specific account is configured and other tools ask for an \`accountId\`.
|
|
1551
1586
|
- Use it to map an account **name** the user mentions to the \`accountId\` those tools require — always pass the \`accountId\`, never the display name.
|
|
1587
|
+
- When a connection is pinned to an account the user cannot access (data tools return "Not authorized"), call this to find the right account and give the user its \`mcpUrl\` to reconfigure the connector.
|
|
1552
1588
|
|
|
1553
1589
|
## Working across multiple accounts
|
|
1554
1590
|
|
|
@@ -1705,21 +1741,26 @@ To get all rules across multiple pages:
|
|
|
1705
1741
|
4. Repeat until \`hasNextPage\` is false`,
|
|
1706
1742
|
"test-connection.md": `# Test Connection Tool
|
|
1707
1743
|
|
|
1708
|
-
Test the connection to JupiterOne
|
|
1744
|
+
Test the connection to JupiterOne and verify the caller's access to the target account. On success it also reports who you are and a summary of what you're allowed to do, so you can plan tool usage before making calls.
|
|
1709
1745
|
|
|
1710
1746
|
## Parameters
|
|
1711
1747
|
None required.
|
|
1712
1748
|
|
|
1713
1749
|
## Example Usage
|
|
1714
|
-
Test the connection:
|
|
1715
1750
|
\`\`\`json
|
|
1716
1751
|
{}
|
|
1717
1752
|
\`\`\`
|
|
1718
1753
|
|
|
1719
1754
|
## Returns
|
|
1720
1755
|
- \`connected\`: whether the account could be reached and authorized.
|
|
1721
|
-
- \`account\`: account details when
|
|
1722
|
-
- \`
|
|
1756
|
+
- \`account\`: account details (id, name, subdomain) when connected.
|
|
1757
|
+
- \`user.email\`: the identity your token resolves to — surface this to the user if there is any doubt about which sign-in is active.
|
|
1758
|
+
- \`permissions.resourceAreas\`: per-area \`{create, read, update, delete}\` summary (e.g. \`dashboard\`, \`rule\`, \`integration\`). A \`true\` means at least one fine-grained grant exists. **Check this before calling write tools** — e.g. if \`dashboard.create\` is false and \`hasBroadAccess\` is also false, tell the user they lack dashboard-create permission instead of attempting it.
|
|
1759
|
+
- \`permissions.hasBroadAccess\`: true when the caller is a full account admin. When this is true, \`resourceAreas\` may show \`false\` for areas the caller can actually use (admins often have no per-area rows) — so attempt the operation rather than refusing on an empty \`resourceAreas\`.
|
|
1760
|
+
|
|
1761
|
+
## Failure
|
|
1762
|
+
A failed test returns an error result whose text explains why and what to do next. When the failure is an authorization rejection and account discovery is available, the text includes the accounts your sign-in CAN access (with connector URLs) — relay these to the user so they can fix the connector's account binding. Do not loop on re-authentication: if the text says the pinned account is inaccessible, re-authenticating will not fix it.
|
|
1763
|
+
`,
|
|
1723
1764
|
"update-dashboard-widget.md": `# Update Dashboard Widget Tool
|
|
1724
1765
|
|
|
1725
1766
|
Updates an existing widget on a dashboard — for example, to fix its query, rename it, or change its chart type.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-map.js","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC9B,QAAA,cAAc,GAA2B;IACpD,4BAA4B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gHA6a4E;CAC/G,CAAC"}
|
|
@@ -32,6 +32,16 @@ export declare class JupiterOneMcpServer {
|
|
|
32
32
|
* error formatting (C2), and per-call telemetry (O1).
|
|
33
33
|
*/
|
|
34
34
|
private register;
|
|
35
|
+
/** Build the SDK registration config for a tool. */
|
|
36
|
+
private toolConfig;
|
|
37
|
+
private buildInputSchema;
|
|
38
|
+
/**
|
|
39
|
+
* Resolve a call's execution scope: strip the injected `reason`, and in multi-tenant mode
|
|
40
|
+
* consume `accountId` into an account-scoped client clone. Returns null when a required
|
|
41
|
+
* accountId is missing.
|
|
42
|
+
*/
|
|
43
|
+
private scopeCall;
|
|
44
|
+
private static readonly MISSING_ACCOUNT_MESSAGE;
|
|
35
45
|
private invoke;
|
|
36
46
|
start(): Promise<void>;
|
|
37
47
|
stop(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM1D,OAAO,KAAK,EAAE,eAAe,EAA2C,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAuB3E,MAAM,WAAW,0BAA0B;IACzC,6EAA6E;IAC7E,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,qBAAa,mBAA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