@jupiterone/jupiterone-mcp 2.4.2 → 2.5.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.
Files changed (60) hide show
  1. package/README.md +22 -0
  2. package/dist/client/graphql/mutations.d.ts +3 -0
  3. package/dist/client/graphql/mutations.d.ts.map +1 -1
  4. package/dist/client/graphql/mutations.js +20 -1
  5. package/dist/client/graphql/mutations.js.map +1 -1
  6. package/dist/client/graphql/queries.d.ts +27 -0
  7. package/dist/client/graphql/queries.d.ts.map +1 -1
  8. package/dist/client/graphql/queries.js +186 -1
  9. package/dist/client/graphql/queries.js.map +1 -1
  10. package/dist/client/jupiterone-client.d.ts +26 -1
  11. package/dist/client/jupiterone-client.d.ts.map +1 -1
  12. package/dist/client/jupiterone-client.js +44 -3
  13. package/dist/client/jupiterone-client.js.map +1 -1
  14. package/dist/client/sanitize-error.d.ts +2 -0
  15. package/dist/client/sanitize-error.d.ts.map +1 -1
  16. package/dist/client/sanitize-error.js +9 -1
  17. package/dist/client/sanitize-error.js.map +1 -1
  18. package/dist/client/services/compliance-service.d.ts +63 -0
  19. package/dist/client/services/compliance-service.d.ts.map +1 -0
  20. package/dist/client/services/compliance-service.js +248 -0
  21. package/dist/client/services/compliance-service.js.map +1 -0
  22. package/dist/client/services/rule-service.d.ts +4 -6
  23. package/dist/client/services/rule-service.d.ts.map +1 -1
  24. package/dist/client/services/rule-service.js +6 -21
  25. package/dist/client/services/rule-service.js.map +1 -1
  26. package/dist/generated/description-map.d.ts.map +1 -1
  27. package/dist/generated/description-map.js +736 -4
  28. package/dist/generated/description-map.js.map +1 -1
  29. package/dist/server/mcp-server.d.ts.map +1 -1
  30. package/dist/server/mcp-server.js +1 -0
  31. package/dist/server/mcp-server.js.map +1 -1
  32. package/dist/server/tools/account.d.ts.map +1 -1
  33. package/dist/server/tools/account.js +4 -4
  34. package/dist/server/tools/account.js.map +1 -1
  35. package/dist/server/tools/compliance.d.ts +107 -0
  36. package/dist/server/tools/compliance.d.ts.map +1 -0
  37. package/dist/server/tools/compliance.js +2886 -0
  38. package/dist/server/tools/compliance.js.map +1 -0
  39. package/dist/server/tools/errors.d.ts +17 -1
  40. package/dist/server/tools/errors.d.ts.map +1 -1
  41. package/dist/server/tools/errors.js +59 -4
  42. package/dist/server/tools/errors.js.map +1 -1
  43. package/dist/server/tools/index.d.ts.map +1 -1
  44. package/dist/server/tools/index.js +2 -0
  45. package/dist/server/tools/index.js.map +1 -1
  46. package/dist/server/tools/rules.d.ts +35 -1
  47. package/dist/server/tools/rules.d.ts.map +1 -1
  48. package/dist/server/tools/rules.js +245 -9
  49. package/dist/server/tools/rules.js.map +1 -1
  50. package/dist/server/tools/threat.js +1 -1
  51. package/dist/server/tools/threat.js.map +1 -1
  52. package/dist/server/tools/usage.d.ts.map +1 -1
  53. package/dist/server/tools/usage.js +251 -0
  54. package/dist/server/tools/usage.js.map +1 -1
  55. package/dist/types/jupiterone.d.ts +247 -0
  56. package/dist/types/jupiterone.d.ts.map +1 -1
  57. package/node_modules/@jupiterone/query-language-interface-types/package.json +2 -2
  58. package/node_modules/@jupiterone/query-language-parser/package.json +3 -3
  59. package/node_modules/dtrace-provider/build/Makefile +1 -1
  60. package/package.json +3 -3
package/README.md CHANGED
@@ -139,6 +139,16 @@ Replace the placeholder values with your actual JupiterOne credentials:
139
139
 
140
140
  These tools require the account's **VulnerabilityManagement** entitlement and vulnerability **read** permission. One guided prompt is also exposed: **Check trending threats** (`check-trending-threats`).
141
141
 
142
+ ### Compliance (CCM)
143
+ - **get-compliance-summary** - Framework scorecards (health percentage, passing and failing requirements and controls), one framework's sections and failing requirements, and attestations about to expire
144
+ - **list-controls** - Controls filtered by status, state, framework, organizational unit (id or name), owner, attestation and more, with test counts and framework names
145
+ - **get-control** - One control by id, identifier or name: why it passes or fails, its tests with their latest evaluation, and its requirements and attestations
146
+ - **create-attestation** - Attest a LIVE control with a subject and expiry (returns the existing attestation rather than a duplicate)
147
+ - **update-attestation** - Change or renew an attestation
148
+ - **revoke-attestation** - Revoke an attestation (permanent)
149
+
150
+ These tools require the account's **Compliance (CCM)** entitlement and control **read** permission. Attestation writes need **edit** permission on the control's resource group, and listing attestations account-wide needs CCM **read-admin**.
151
+
142
152
  ## Available Tools
143
153
 
144
154
  ### Rules Management
@@ -201,6 +211,18 @@ These tools require the account's **VulnerabilityManagement** entitlement and vu
201
211
 
202
212
  Requires the account's VulnerabilityManagement entitlement and vulnerability read permission. `check-threat-exposure` returning `scannerConfirmedAssetCount: 0` means "none found," not "not affected."
203
213
 
214
+ ### Compliance (CCM)
215
+ | Tool | Description | Parameters |
216
+ |------|-------------|------------|
217
+ | `get-compliance-summary` | Framework scorecards, one framework's failing requirements, expiring attestations | `frameworkId` (optional), `attestationsExpiringWithinDays` (optional, 1–365, default 30) |
218
+ | `list-controls` | Filtered, paginated list of controls | All optional: `search`, `status`, `states`, `effectiveness`, `hasValidAttestation`, `owner`, `frameworkId`, `catalogs`, `mitreTechniques`, `source`, `orgUnit`, `sort`, `limit`, `cursor`, `includeDeleted` |
219
+ | `get-control` | One control with its status explanation, tests, latest evaluations, requirements and attestations | One of `controlId`, `identifier`, `controlName`; `includeDeleted` (optional) |
220
+ | `create-attestation` | Attest a LIVE control | `controlId`, `subject`, `expiresOn` (ISO 8601 or epoch ms); `description`, `owner`, `documentLink` (optional) |
221
+ | `update-attestation` | Change or renew an attestation | `attestationId`; at least one of `subject`, `expiresOn`, `description`, `owner`, `documentLink` |
222
+ | `revoke-attestation` | Revoke an attestation (permanent) | `attestationId` |
223
+
224
+ Requires the account's Compliance (CCM) entitlement and control read permission; attestation writes need edit permission on the control's resource group. `expiringAttestations: 'unavailable'` means the caller cannot list attestations account-wide (CCM read-admin), not that none are expiring.
225
+
204
226
  ## Deployment
205
227
 
206
228
  `deploy.yml` publishes this package to npm when a merge to `main` carries a `package.json` version that differs from the published one. It does not bump the version itself, so a PR that should ship must bump it.
@@ -8,4 +8,7 @@ export declare const DELETE_DASHBOARD_WIDGET = "\n mutation DeleteWidget($dashb
8
8
  export declare const UPDATE_DASHBOARD_WIDGET = "\n mutation UpdateWidget($boardId: String!, $boardType: String!, $newWidget: Widget!) {\n updateWidget(boardId: $boardId, boardType: $boardType, newWidget: $newWidget) {\n resultCode\n }\n }\n";
9
9
  export declare const DELETE_DASHBOARD = "\n mutation DeleteDashboard($dashboardId: String!) {\n deleteDashboard(dashboardId: $dashboardId) {\n success\n }\n }\n";
10
10
  export declare const PATCH_DASHBOARD = "\n mutation PatchDashboard($input: PatchInsightsDashboardInput!) {\n patchDashboard(input: $input) {\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 }\n parameters {\n dashboardId\n accountId\n id\n label\n name\n options\n valueType\n type\n default\n disableCustomInput\n requireValue\n }\n widgets {\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 }\n settings\n postQueryFilters\n disableQueryPolicyFilters\n }\n }\n layouts {\n xs {\n static\n moved\n w\n h\n x\n y\n i\n }\n sm {\n static\n moved\n w\n h\n x\n y\n i\n }\n md {\n static\n moved\n w\n h\n x\n y\n i\n }\n lg {\n static\n moved\n w\n h\n x\n y\n i\n }\n xl {\n static\n moved\n w\n h\n x\n y\n i\n }\n }\n }\n }\n";
11
+ export declare const CREATE_ATTESTATION = "\n mutation CreateAttestation($input: CreateAttestationInput!) {\n createAttestation(input: $input) { \n id\n subject\n description\n expiresOn\n owner\n author\n documentLink\n revoked\n createdOn\n controlId\n state\n }\n }\n";
12
+ export declare const UPDATE_ATTESTATION = "\n mutation UpdateAttestation($input: UpdateAttestationInput!) {\n updateAttestation(input: $input) { \n id\n subject\n description\n expiresOn\n owner\n author\n documentLink\n revoked\n createdOn\n controlId\n state\n }\n }\n";
13
+ export declare const REVOKE_ATTESTATION = "\n mutation RevokeAttestation($input: RevokeAttestationInput!) {\n revokeAttestation(input: $input) { \n id\n subject\n description\n expiresOn\n owner\n author\n documentLink\n revoked\n createdOn\n controlId\n state\n }\n }\n";
11
14
  //# sourceMappingURL=mutations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/client/graphql/mutations.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,ojCA0DvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,+iCAuDvC,CAAC;AAEF,eAAO,MAAM,aAAa,iIAOzB,CAAC;AAIF,eAAO,MAAM,WAAW,6HAOvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0JAO5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,skBA8BnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,4KAMnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,kNAMnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,yIAM5B,CAAC;AAEF,eAAO,MAAM,eAAe,6vDAyG3B,CAAC"}
1
+ {"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../src/client/graphql/mutations.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,ojCA0DvC,CAAC;AAEF,eAAO,MAAM,2BAA2B,+iCAuDvC,CAAC;AAEF,eAAO,MAAM,aAAa,iIAOzB,CAAC;AAIF,eAAO,MAAM,WAAW,6HAOvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0JAO5B,CAAC;AAEF,eAAO,MAAM,uBAAuB,skBA8BnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,4KAMnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,kNAMnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,yIAM5B,CAAC;AAEF,eAAO,MAAM,eAAe,6vDAyG3B,CAAC;AAGF,eAAO,MAAM,kBAAkB,wPAI9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,wPAI9B,CAAC;AAGF,eAAO,MAAM,kBAAkB,wPAI9B,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PATCH_DASHBOARD = exports.DELETE_DASHBOARD = exports.UPDATE_DASHBOARD_WIDGET = exports.DELETE_DASHBOARD_WIDGET = exports.CREATE_DASHBOARD_WIDGET = exports.CREATE_DASHBOARD = exports.DELETE_RULE = exports.EVALUATE_RULE = exports.UPDATE_INLINE_QUESTION_RULE = exports.CREATE_INLINE_QUESTION_RULE = void 0;
3
+ exports.REVOKE_ATTESTATION = exports.UPDATE_ATTESTATION = exports.CREATE_ATTESTATION = exports.PATCH_DASHBOARD = exports.DELETE_DASHBOARD = exports.UPDATE_DASHBOARD_WIDGET = exports.DELETE_DASHBOARD_WIDGET = exports.CREATE_DASHBOARD_WIDGET = exports.CREATE_DASHBOARD = exports.DELETE_RULE = exports.EVALUATE_RULE = exports.UPDATE_INLINE_QUESTION_RULE = exports.CREATE_INLINE_QUESTION_RULE = void 0;
4
+ const queries_js_1 = require("./queries.js");
4
5
  exports.CREATE_INLINE_QUESTION_RULE = `
5
6
  mutation createInlineQuestionRuleInstance($instance: CreateInlineQuestionRuleInstanceInput!) {
6
7
  createInlineQuestionRuleInstance(instance: $instance) {
@@ -300,4 +301,22 @@ exports.PATCH_DASHBOARD = `
300
301
  }
301
302
  }
302
303
  `;
304
+ // Compliance (CCM) attestations. Operation names match the web app's, so apps-api logs show MCP and
305
+ // UI writes under one name. Each returns the attestation in the shape LIST_ATTESTATIONS selects.
306
+ exports.CREATE_ATTESTATION = `
307
+ mutation CreateAttestation($input: CreateAttestationInput!) {
308
+ createAttestation(input: $input) { ${queries_js_1.ATTESTATION_FIELDS} }
309
+ }
310
+ `;
311
+ exports.UPDATE_ATTESTATION = `
312
+ mutation UpdateAttestation($input: UpdateAttestationInput!) {
313
+ updateAttestation(input: $input) { ${queries_js_1.ATTESTATION_FIELDS} }
314
+ }
315
+ `;
316
+ // Revocation is permanent; the attestation stays readable with `includeDeleted`.
317
+ exports.REVOKE_ATTESTATION = `
318
+ mutation RevokeAttestation($input: RevokeAttestationInput!) {
319
+ revokeAttestation(input: $input) { ${queries_js_1.ATTESTATION_FIELDS} }
320
+ }
321
+ `;
303
322
  //# sourceMappingURL=mutations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/client/graphql/mutations.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D1C,CAAC;AAEW,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuD1C,CAAC;AAEW,QAAA,aAAa,GAAG;;;;;;;CAO5B,CAAC;AAEF,iGAAiG;AACjG,iFAAiF;AACpE,QAAA,WAAW,GAAG;;;;;;;CAO1B,CAAC;AAEW,QAAA,gBAAgB,GAAG;;;;;;;CAO/B,CAAC;AAEW,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BtC,CAAC;AAEW,QAAA,uBAAuB,GAAG;;;;;;CAMtC,CAAC;AAEW,QAAA,uBAAuB,GAAG;;;;;;CAMtC,CAAC;AAEW,QAAA,gBAAgB,GAAG;;;;;;CAM/B,CAAC;AAEW,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyG9B,CAAC"}
1
+ {"version":3,"file":"mutations.js","sourceRoot":"","sources":["../../../src/client/graphql/mutations.ts"],"names":[],"mappings":";;;AAAA,6CAAkD;AAErC,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D1C,CAAC;AAEW,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuD1C,CAAC;AAEW,QAAA,aAAa,GAAG;;;;;;;CAO5B,CAAC;AAEF,iGAAiG;AACjG,iFAAiF;AACpE,QAAA,WAAW,GAAG;;;;;;;CAO1B,CAAC;AAEW,QAAA,gBAAgB,GAAG;;;;;;;CAO/B,CAAC;AAEW,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BtC,CAAC;AAEW,QAAA,uBAAuB,GAAG;;;;;;CAMtC,CAAC;AAEW,QAAA,uBAAuB,GAAG;;;;;;CAMtC,CAAC;AAEW,QAAA,gBAAgB,GAAG;;;;;;CAM/B,CAAC;AAEW,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyG9B,CAAC;AACF,oGAAoG;AACpG,iGAAiG;AACpF,QAAA,kBAAkB,GAAG;;yCAEO,+BAAkB;;CAE1D,CAAC;AAEW,QAAA,kBAAkB,GAAG;;yCAEO,+BAAkB;;CAE1D,CAAC;AAEF,iFAAiF;AACpE,QAAA,kBAAkB,GAAG;;yCAEO,+BAAkB;;CAE1D,CAAC"}
@@ -62,4 +62,31 @@ export declare const GET_THREAT_TRENDING = "\n query GetThreatTrending {\n e
62
62
  * fingerprinted). Batched; every union member carries `subjectId`.
63
63
  */
64
64
  export declare const CHECK_THREAT_EXPOSURE = "\n query CheckThreatExposure($subjectIds: [String!]!) {\n emergingExposureEnvironments(subjectIds: $subjectIds) {\n __typename\n ... on EmergingExposureEnvironment {\n subjectId\n scannerConfirmedAssetCount\n unifiedVulnerabilityId\n assetExposure\n }\n ... on EmergingExposureEnvironmentInvalidSubject {\n subjectId\n message\n }\n ... on EmergingExposureEnvironmentUnavailable {\n subjectId\n retryable\n }\n }\n }\n";
65
+ /**
66
+ * The web app's attestation selection (`useAttestations.ts`), verbatim. Exported because the
67
+ * attestation mutations in mutations.ts return the same shape.
68
+ */
69
+ export declare const ATTESTATION_FIELDS = "\n id\n subject\n description\n expiresOn\n owner\n author\n documentLink\n revoked\n createdOn\n controlId\n state\n";
70
+ /**
71
+ * One page of frameworks. Never select `requirements` here: the field cannot be filtered and the
72
+ * framework list with requirements measured 8 MB on dev. A framework's failing requirements come
73
+ * from its failing controls instead (LIST_CONTROLS, then GET_CONTROL_REQUIREMENTS per control).
74
+ */
75
+ export declare const LIST_CONTROL_FRAMEWORKS = "\n query ListControlFrameworks($input: ControlFrameworksQueryInput) {\n controlFrameworks(input: $input) {\n items {\n _id\n id\n name\n source\n sourceId\n owner\n description\n deleted\n createdOn\n status { status message completedOn }\n }\n pageInfo { endCursor hasNextPage }\n }\n }\n";
76
+ /**
77
+ * The scorecard counts only. Sections are read for a drill alone: with them, none of seven
78
+ * ten-framework chunks of j1dev's 62 frameworks finished in the 21 s a bare summary had left
79
+ * (2026-10-15).
80
+ */
81
+ export declare const GET_CONTROL_FRAMEWORK_STATS = "\n query GetControlFrameworkStats($input: ControlFrameworkStatsInput) {\n controlFrameworkStats(input: $input) {\n \n id\n numberOfControls\n numberOfFailingControls\n numberOfPassingControls\n numberOfAttestedControls\n numberOfRequirements\n numberOfControlsWithTests\n numberOfPassingRequirements\n numberOfFailingRequirements\n numberOfFailingCriticalRequirements\n\n }\n }\n";
82
+ /** The counts with each section's, for the one framework a summary drills into. */
83
+ export declare const GET_CONTROL_FRAMEWORK_SECTION_STATS = "\n query GetControlFrameworkSectionStats($input: ControlFrameworkStatsInput) {\n controlFrameworkStats(input: $input) {\n \n id\n numberOfControls\n numberOfFailingControls\n numberOfPassingControls\n numberOfAttestedControls\n numberOfRequirements\n numberOfControlsWithTests\n numberOfPassingRequirements\n numberOfFailingRequirements\n numberOfFailingCriticalRequirements\n\n sectionStats {\n sectionName\n numberOfRequirements\n numberOfPassingRequirements\n numberOfFailingRequirements\n }\n }\n }\n";
84
+ export declare const LIST_CONTROLS = "\n query ListControls($input: ControlsQueryInput) {\n controls(input: $input) {\n items {\n \n _id\n id\n name\n source\n sourceId\n resourceGroupId\n status\n lastEvaluatedOn\n configured\n frameworkIds\n state\n identifier\n catalog\n owner\n mitreTechnique\n createdOn\n deleted\n numberOfTests\n effectiveStatus\n hasValidAttestation\n\n controlTests { id status deleted }\n }\n pageInfo { endCursor hasNextPage }\n }\n }\n";
85
+ /** One control by id. An unknown id is a gateway error, not a null. */
86
+ export declare const GET_CONTROL = "\n query GetControl($id: ID, $includeDeleted: Boolean) {\n control(id: $id) {\n \n _id\n id\n name\n source\n sourceId\n resourceGroupId\n status\n lastEvaluatedOn\n configured\n frameworkIds\n state\n identifier\n catalog\n owner\n mitreTechnique\n createdOn\n deleted\n numberOfTests\n effectiveStatus\n hasValidAttestation\n\n description\n remediation\n exceptionProcess\n controlTests(includeDeleted: $includeDeleted) { \n _id\n id\n name\n description\n controlId\n status\n deleted\n referencedRuleId\n lastEvaluatedOn\n queries { name query resultsAre recordCount status effective }\n }\n }\n }\n";
87
+ export declare const GET_CONTROL_REQUIREMENTS = "\n query GetControlRequirements($input: ControlRequirementsInput!) {\n controlRequirements(input: $input) {\n items { id identifier title section priority frameworkIds }\n pageInfo { endCursor hasNextPage }\n }\n }\n";
88
+ /** A plain list, not a page: the API returns every match, sorted by expiry. */
89
+ export declare const LIST_ATTESTATIONS = "\n query ListAttestations($input: AttestationQueryInput) {\n attestations(input: $input) { \n id\n subject\n description\n expiresOn\n owner\n author\n documentLink\n revoked\n createdOn\n controlId\n state\n }\n }\n";
90
+ export declare const LIST_OU_NAMESPACES = "\n query ListOuNamespaces {\n ouNamespacesBeta {\n namespaces { _id slug name enabled ouCount assetCount }\n }\n }\n";
91
+ export declare const LIST_OUS_BY_NAMESPACE = "\n query ListOusByNamespace($slug: String!, $limit: Int, $filters: OUsByNamespaceFiltersBeta) {\n ousByNamespaceBeta(slug: $slug, limit: $limit, filters: $filters) {\n ous { _id displayName active assetCount }\n }\n }\n";
65
92
  //# sourceMappingURL=queries.d.ts.map
@@ -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;AAIF,eAAO,MAAM,mBAAmB,0UAgB/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,oNAa5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mSAiB5B,CAAC;AAEF,eAAO,MAAM,cAAc,4cAsB1B,CAAC;AAKF,eAAO,MAAM,qBAAqB,0kEAuHjC,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;AAiFF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kBAAkB,y+DAkC9B,CAAC;AAqCF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,eAAe,4jJAqG3B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,0cAmB/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,0gBAoBjC,CAAC"}
1
+ {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ACnF,eAAO,MAAM,mCAAmC,0jBAY/C,CAAC;AAEF,eAAO,MAAM,aAAa,yeAUzB,CAAC;AAEF,uEAAuE;AACvE,eAAO,MAAM,WAAW,gqBAUvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,+OAOpC,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,iBAAiB,6OAI7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,sIAM9B,CAAC;AAEF,eAAO,MAAM,qBAAqB,6OAMjC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CHECK_THREAT_EXPOSURE = exports.GET_THREAT_TRENDING = exports.GET_THREAT_FULL = exports.GET_THREAT_COMPACT = 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_ACCOUNT_TOKENS = exports.LIST_RULE_INSTANCES = exports.LIST_ALERT_INSTANCES = void 0;
3
+ exports.LIST_OUS_BY_NAMESPACE = exports.LIST_OU_NAMESPACES = exports.LIST_ATTESTATIONS = exports.GET_CONTROL_REQUIREMENTS = exports.GET_CONTROL = exports.LIST_CONTROLS = exports.GET_CONTROL_FRAMEWORK_SECTION_STATS = exports.GET_CONTROL_FRAMEWORK_STATS = exports.LIST_CONTROL_FRAMEWORKS = exports.ATTESTATION_FIELDS = exports.CHECK_THREAT_EXPOSURE = exports.GET_THREAT_TRENDING = exports.GET_THREAT_FULL = exports.GET_THREAT_COMPACT = 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_ACCOUNT_TOKENS = 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) {
@@ -1021,4 +1021,189 @@ exports.CHECK_THREAT_EXPOSURE = `
1021
1021
  }
1022
1022
  }
1023
1023
  `;
1024
+ // ---------------------------------------------------------------------------------------------
1025
+ // Compliance (CCM) — the apps-api CCM subgraph behind the compliance tools.
1026
+ //
1027
+ // - `controlFrameworks` -> get-compliance-summary, list-controls, get-control (names)
1028
+ // - `controlFrameworkStats` -> get-compliance-summary (counts and section stats)
1029
+ // - `controlFramework(id)` -> get-compliance-summary drill-in (one framework's requirements)
1030
+ // - `controls` -> list-controls, get-control (identifier / name lookup)
1031
+ // - `control(id)` -> get-control, create-attestation (the LIVE check)
1032
+ // - `controlRequirements` -> get-control (the requirements a control satisfies)
1033
+ // - `attestations` -> get-compliance-summary (expiring), get-control, create-attestation
1034
+ // - `ouNamespacesBeta` -> list-controls (organizational-unit name resolution)
1035
+ // - `ousByNamespaceBeta` -> list-controls (organizational-unit name resolution)
1036
+ //
1037
+ // Control test evaluations are read with LIST_RULE_EVALUATIONS: each test is backed by a rule and
1038
+ // its `referencedRuleId` is the collection owner.
1039
+ // ---------------------------------------------------------------------------------------------
1040
+ /**
1041
+ * The control scalars list-controls rows and get-control share. The long-text fields
1042
+ * (description, remediation, exceptionProcess) are selected by GET_CONTROL alone — a 250-row
1043
+ * list page has no use for them.
1044
+ */
1045
+ const CONTROL_FIELDS = `
1046
+ _id
1047
+ id
1048
+ name
1049
+ source
1050
+ sourceId
1051
+ resourceGroupId
1052
+ status
1053
+ lastEvaluatedOn
1054
+ configured
1055
+ frameworkIds
1056
+ state
1057
+ identifier
1058
+ catalog
1059
+ owner
1060
+ mitreTechnique
1061
+ createdOn
1062
+ deleted
1063
+ numberOfTests
1064
+ effectiveStatus
1065
+ hasValidAttestation
1066
+ `;
1067
+ const CONTROL_TEST_FIELDS = `
1068
+ _id
1069
+ id
1070
+ name
1071
+ description
1072
+ controlId
1073
+ status
1074
+ deleted
1075
+ referencedRuleId
1076
+ lastEvaluatedOn
1077
+ queries { name query resultsAre recordCount status effective }
1078
+ `;
1079
+ /**
1080
+ * The web app's attestation selection (`useAttestations.ts`), verbatim. Exported because the
1081
+ * attestation mutations in mutations.ts return the same shape.
1082
+ */
1083
+ exports.ATTESTATION_FIELDS = `
1084
+ id
1085
+ subject
1086
+ description
1087
+ expiresOn
1088
+ owner
1089
+ author
1090
+ documentLink
1091
+ revoked
1092
+ createdOn
1093
+ controlId
1094
+ state
1095
+ `;
1096
+ /**
1097
+ * One page of frameworks. Never select `requirements` here: the field cannot be filtered and the
1098
+ * framework list with requirements measured 8 MB on dev. A framework's failing requirements come
1099
+ * from its failing controls instead (LIST_CONTROLS, then GET_CONTROL_REQUIREMENTS per control).
1100
+ */
1101
+ exports.LIST_CONTROL_FRAMEWORKS = `
1102
+ query ListControlFrameworks($input: ControlFrameworksQueryInput) {
1103
+ controlFrameworks(input: $input) {
1104
+ items {
1105
+ _id
1106
+ id
1107
+ name
1108
+ source
1109
+ sourceId
1110
+ owner
1111
+ description
1112
+ deleted
1113
+ createdOn
1114
+ status { status message completedOn }
1115
+ }
1116
+ pageInfo { endCursor hasNextPage }
1117
+ }
1118
+ }
1119
+ `;
1120
+ const CONTROL_FRAMEWORK_COUNT_FIELDS = `
1121
+ id
1122
+ numberOfControls
1123
+ numberOfFailingControls
1124
+ numberOfPassingControls
1125
+ numberOfAttestedControls
1126
+ numberOfRequirements
1127
+ numberOfControlsWithTests
1128
+ numberOfPassingRequirements
1129
+ numberOfFailingRequirements
1130
+ numberOfFailingCriticalRequirements
1131
+ `;
1132
+ /**
1133
+ * The scorecard counts only. Sections are read for a drill alone: with them, none of seven
1134
+ * ten-framework chunks of j1dev's 62 frameworks finished in the 21 s a bare summary had left
1135
+ * (2026-10-15).
1136
+ */
1137
+ exports.GET_CONTROL_FRAMEWORK_STATS = `
1138
+ query GetControlFrameworkStats($input: ControlFrameworkStatsInput) {
1139
+ controlFrameworkStats(input: $input) {
1140
+ ${CONTROL_FRAMEWORK_COUNT_FIELDS}
1141
+ }
1142
+ }
1143
+ `;
1144
+ /** The counts with each section's, for the one framework a summary drills into. */
1145
+ exports.GET_CONTROL_FRAMEWORK_SECTION_STATS = `
1146
+ query GetControlFrameworkSectionStats($input: ControlFrameworkStatsInput) {
1147
+ controlFrameworkStats(input: $input) {
1148
+ ${CONTROL_FRAMEWORK_COUNT_FIELDS}
1149
+ sectionStats {
1150
+ sectionName
1151
+ numberOfRequirements
1152
+ numberOfPassingRequirements
1153
+ numberOfFailingRequirements
1154
+ }
1155
+ }
1156
+ }
1157
+ `;
1158
+ exports.LIST_CONTROLS = `
1159
+ query ListControls($input: ControlsQueryInput) {
1160
+ controls(input: $input) {
1161
+ items {
1162
+ ${CONTROL_FIELDS}
1163
+ controlTests { id status deleted }
1164
+ }
1165
+ pageInfo { endCursor hasNextPage }
1166
+ }
1167
+ }
1168
+ `;
1169
+ /** One control by id. An unknown id is a gateway error, not a null. */
1170
+ exports.GET_CONTROL = `
1171
+ query GetControl($id: ID, $includeDeleted: Boolean) {
1172
+ control(id: $id) {
1173
+ ${CONTROL_FIELDS}
1174
+ description
1175
+ remediation
1176
+ exceptionProcess
1177
+ controlTests(includeDeleted: $includeDeleted) { ${CONTROL_TEST_FIELDS} }
1178
+ }
1179
+ }
1180
+ `;
1181
+ exports.GET_CONTROL_REQUIREMENTS = `
1182
+ query GetControlRequirements($input: ControlRequirementsInput!) {
1183
+ controlRequirements(input: $input) {
1184
+ items { id identifier title section priority frameworkIds }
1185
+ pageInfo { endCursor hasNextPage }
1186
+ }
1187
+ }
1188
+ `;
1189
+ /** A plain list, not a page: the API returns every match, sorted by expiry. */
1190
+ exports.LIST_ATTESTATIONS = `
1191
+ query ListAttestations($input: AttestationQueryInput) {
1192
+ attestations(input: $input) { ${exports.ATTESTATION_FIELDS} }
1193
+ }
1194
+ `;
1195
+ exports.LIST_OU_NAMESPACES = `
1196
+ query ListOuNamespaces {
1197
+ ouNamespacesBeta {
1198
+ namespaces { _id slug name enabled ouCount assetCount }
1199
+ }
1200
+ }
1201
+ `;
1202
+ exports.LIST_OUS_BY_NAMESPACE = `
1203
+ query ListOusByNamespace($slug: String!, $limit: Int, $filters: OUsByNamespaceFiltersBeta) {
1204
+ ousByNamespaceBeta(slug: $slug, limit: $limit, filters: $filters) {
1205
+ ous { _id displayName active assetCount }
1206
+ }
1207
+ }
1208
+ `;
1024
1209
  //# sourceMappingURL=queries.js.map
@@ -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;AAEF,mGAAmG;AACnG,8FAA8F;AACjF,QAAA,mBAAmB,GAAG;;;;;;;;;;;;;;;;CAgBlC,CAAC;AAEW,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;CAa/B,CAAC;AAEW,QAAA,gBAAgB,GAAG;;;;;;;;;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GAAG;;;;;;;;;;;;;;;;;;;;;CAqBtB,CAAC;AAEF,MAAM,mBAAmB,GAAG;;;;;;;;;;;CAW3B,CAAC;AAEF;;;GAGG;AACU,QAAA,kBAAkB,GAAG;;;;;;;;;;;;CAYjC,CAAC;AAEF;;;;GAIG;AACU,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;CAkBtC,CAAC;AAEF,MAAM,8BAA8B,GAAG;;;;;;;;;;;CAWtC,CAAC;AAEF;;;;GAIG;AACU,QAAA,2BAA2B,GAAG;;;QAGnC,8BAA8B;;;CAGrC,CAAC;AAEF,mFAAmF;AACtE,QAAA,mCAAmC,GAAG;;;QAG3C,8BAA8B;;;;;;;;;CASrC,CAAC;AAEW,QAAA,aAAa,GAAG;;;;UAInB,cAAc;;;;;;CAMvB,CAAC;AAEF,uEAAuE;AAC1D,QAAA,WAAW,GAAG;;;QAGnB,cAAc;;;;wDAIkC,mBAAmB;;;CAG1E,CAAC;AAEW,QAAA,wBAAwB,GAAG;;;;;;;CAOvC,CAAC;AAEF,+EAA+E;AAClE,QAAA,iBAAiB,GAAG;;oCAEG,0BAAkB;;CAErD,CAAC;AAEW,QAAA,kBAAkB,GAAG;;;;;;CAMjC,CAAC;AAEW,QAAA,qBAAqB,GAAG;;;;;;CAMpC,CAAC"}
@@ -5,6 +5,7 @@ import { DashboardService } from './services/dashboard-service.js';
5
5
  import { IntegrationService } from './services/integration-service.js';
6
6
  import { J1qlService } from './services/j1ql-service.js';
7
7
  import { ThreatService } from './services/threat-service.js';
8
+ import { ComplianceService } from './services/compliance-service.js';
8
9
  export declare class JupiterOneClient {
9
10
  private client;
10
11
  private config;
@@ -15,6 +16,7 @@ export declare class JupiterOneClient {
15
16
  private integrationService;
16
17
  j1qlService: J1qlService;
17
18
  private threatService;
19
+ private complianceService;
18
20
  constructor(config: JupiterOneConfig);
19
21
  cloneWithAccountId(accountId: string): JupiterOneClient;
20
22
  getAllAlertInstances(...args: Parameters<AlertService['getAllAlertInstances']>): Promise<import("../types/jupiterone.js").AlertRuleInstance[]>;
@@ -22,7 +24,6 @@ export declare class JupiterOneClient {
22
24
  questionInstances: import("../types/jupiterone.js").QuestionRuleInstance[];
23
25
  pageInfo: import("../types/jupiterone.js").PageInfo;
24
26
  }>;
25
- getAllRuleInstances(...args: Parameters<RuleService['getAllRuleInstances']>): Promise<import("../types/jupiterone.js").QuestionRuleInstance[]>;
26
27
  createInlineQuestionRuleInstance(...args: Parameters<RuleService['createInlineQuestionRuleInstance']>): Promise<import("../types/jupiterone.js").InlineQuestionRuleInstance>;
27
28
  updateInlineQuestionRuleInstance(...args: Parameters<RuleService['updateInlineQuestionRuleInstance']>): Promise<import("../types/jupiterone.js").InlineQuestionRuleInstance>;
28
29
  evaluateRuleInstance(...args: Parameters<RuleService['evaluateRuleInstance']>): Promise<{
@@ -33,6 +34,12 @@ export declare class JupiterOneClient {
33
34
  id: string | null;
34
35
  __typename: string | null;
35
36
  }>;
37
+ /** One page of a rule's evaluations; `getAllRuleEvaluations` walks pages up to its `limit`. */
38
+ listRuleEvaluations(...args: Parameters<RuleService['listRuleEvaluations']>): Promise<{
39
+ results: import("../types/jupiterone.js").RuleEvaluation[];
40
+ pageInfo: import("../types/jupiterone.js").PageInfo;
41
+ __typename: string;
42
+ }>;
36
43
  getAllRuleEvaluations(...args: Parameters<RuleService['getAllRuleEvaluations']>): Promise<import("../types/jupiterone.js").RuleEvaluation[]>;
37
44
  getRuleEvaluationDetails(...args: Parameters<RuleService['getRuleEvaluationDetails']>): Promise<import("../types/jupiterone.js").RuleEvaluationDetails>;
38
45
  getRawDataDownloadUrl(...args: Parameters<RuleService['getRawDataDownloadUrl']>): Promise<string>;
@@ -108,5 +115,23 @@ export declare class JupiterOneClient {
108
115
  items: import("../types/jupiterone.js").ThreatTrendingItem[];
109
116
  }>;
110
117
  checkThreatExposure(...args: Parameters<ThreatService['checkThreatExposure']>): Promise<import("../types/jupiterone.js").ThreatEnvironmentResult[]>;
118
+ listControlFrameworks(...args: Parameters<ComplianceService['listControlFrameworks']>): Promise<import("../types/jupiterone.js").ControlFrameworkPage>;
119
+ listAllControlFrameworks(...args: Parameters<ComplianceService['listAllControlFrameworks']>): Promise<{
120
+ frameworks: import("../types/jupiterone.js").ControlFramework[];
121
+ complete: boolean;
122
+ }>;
123
+ getControlFrameworkStats(...args: Parameters<ComplianceService['getControlFrameworkStats']>): Promise<import("../types/jupiterone.js").ControlFrameworkStats[]>;
124
+ listControls(...args: Parameters<ComplianceService['listControls']>): Promise<import("../types/jupiterone.js").ControlPage>;
125
+ getControl(...args: Parameters<ComplianceService['getControl']>): Promise<import("../types/jupiterone.js").Control>;
126
+ listControlRequirements(...args: Parameters<ComplianceService['listControlRequirements']>): Promise<{
127
+ requirements: import("../types/jupiterone.js").ControlRequirement[];
128
+ complete: boolean;
129
+ }>;
130
+ listAttestations(...args: Parameters<ComplianceService['listAttestations']>): Promise<import("../types/jupiterone.js").Attestation[]>;
131
+ createAttestation(...args: Parameters<ComplianceService['createAttestation']>): Promise<import("../types/jupiterone.js").Attestation>;
132
+ updateAttestation(...args: Parameters<ComplianceService['updateAttestation']>): Promise<import("../types/jupiterone.js").Attestation>;
133
+ revokeAttestation(...args: Parameters<ComplianceService['revokeAttestation']>): Promise<import("../types/jupiterone.js").Attestation>;
134
+ listOuNamespaces(...args: Parameters<ComplianceService['listOuNamespaces']>): Promise<import("../types/jupiterone.js").OuNamespace[]>;
135
+ listOusByNamespace(...args: Parameters<ComplianceService['listOusByNamespace']>): Promise<import("../types/jupiterone.js").OrgUnit[]>;
111
136
  }
112
137
  //# sourceMappingURL=jupiterone-client.d.ts.map
@@ -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,W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AAmB,CAAC,CAAC;IAI7E,gBAAgB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAI3E,kBAAkB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;CAGtF"}
@@ -9,6 +9,7 @@ const account_service_js_1 = require("./services/account-service.js");
9
9
  const integration_service_js_1 = require("./services/integration-service.js");
10
10
  const j1ql_service_js_1 = require("./services/j1ql-service.js");
11
11
  const threat_service_js_1 = require("./services/threat-service.js");
12
+ const compliance_service_js_1 = require("./services/compliance-service.js");
12
13
  const package_json_1 = require("../../package.json");
13
14
  class JupiterOneClient {
14
15
  client;
@@ -20,6 +21,7 @@ class JupiterOneClient {
20
21
  integrationService;
21
22
  j1qlService;
22
23
  threatService;
24
+ complianceService;
23
25
  constructor(config) {
24
26
  this.config = config;
25
27
  const headers = {
@@ -44,6 +46,7 @@ class JupiterOneClient {
44
46
  // The J1QL deferred-result poll uses raw fetch, not the GraphQL client, so it needs the signal too.
45
47
  this.j1qlService = new j1ql_service_js_1.J1qlService(this.client, config.abortSignal);
46
48
  this.threatService = new threat_service_js_1.ThreatService(this.client);
49
+ this.complianceService = new compliance_service_js_1.ComplianceService(this.client);
47
50
  }
48
51
  cloneWithAccountId(accountId) {
49
52
  const newConfig = { ...this.config, accountId };
@@ -57,9 +60,6 @@ class JupiterOneClient {
57
60
  async listRuleInstances(...args) {
58
61
  return this.ruleService.listRuleInstances(...args);
59
62
  }
60
- async getAllRuleInstances(...args) {
61
- return this.ruleService.getAllRuleInstances(...args);
62
- }
63
63
  async createInlineQuestionRuleInstance(...args) {
64
64
  return this.ruleService.createInlineQuestionRuleInstance(...args);
65
65
  }
@@ -72,6 +72,10 @@ class JupiterOneClient {
72
72
  async deleteRuleInstance(...args) {
73
73
  return this.ruleService.deleteRuleInstance(...args);
74
74
  }
75
+ /** One page of a rule's evaluations; `getAllRuleEvaluations` walks pages up to its `limit`. */
76
+ async listRuleEvaluations(...args) {
77
+ return this.ruleService.listRuleEvaluations(...args);
78
+ }
75
79
  async getAllRuleEvaluations(...args) {
76
80
  return this.ruleService.getAllRuleEvaluations(...args);
77
81
  }
@@ -166,6 +170,43 @@ class JupiterOneClient {
166
170
  async checkThreatExposure(...args) {
167
171
  return this.threatService.checkThreatExposure(...args);
168
172
  }
173
+ // Compliance (CCM) methods
174
+ async listControlFrameworks(...args) {
175
+ return this.complianceService.listControlFrameworks(...args);
176
+ }
177
+ async listAllControlFrameworks(...args) {
178
+ return this.complianceService.listAllControlFrameworks(...args);
179
+ }
180
+ async getControlFrameworkStats(...args) {
181
+ return this.complianceService.getControlFrameworkStats(...args);
182
+ }
183
+ async listControls(...args) {
184
+ return this.complianceService.listControls(...args);
185
+ }
186
+ async getControl(...args) {
187
+ return this.complianceService.getControl(...args);
188
+ }
189
+ async listControlRequirements(...args) {
190
+ return this.complianceService.listControlRequirements(...args);
191
+ }
192
+ async listAttestations(...args) {
193
+ return this.complianceService.listAttestations(...args);
194
+ }
195
+ async createAttestation(...args) {
196
+ return this.complianceService.createAttestation(...args);
197
+ }
198
+ async updateAttestation(...args) {
199
+ return this.complianceService.updateAttestation(...args);
200
+ }
201
+ async revokeAttestation(...args) {
202
+ return this.complianceService.revokeAttestation(...args);
203
+ }
204
+ async listOuNamespaces(...args) {
205
+ return this.complianceService.listOuNamespaces(...args);
206
+ }
207
+ async listOusByNamespace(...args) {
208
+ return this.complianceService.listOusByNamespace(...args);
209
+ }
169
210
  }
170
211
  exports.JupiterOneClient = JupiterOneClient;
171
212
  //# sourceMappingURL=jupiterone-client.js.map
@@ -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,sEAA8F;AAC9F,8EAAuE;AACvE,gEAAyD;AACzD,oEAA6D;AAC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iB,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,GAAG,IAAuD;QAC/E,OAAO,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,GAAG,IAAyD;QACnF,OAAO,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC;IAC5D,CAAC;CACF;AAzQD,4CAyQC"}
@@ -7,6 +7,8 @@ import { GraphQLClient } from 'graphql-request';
7
7
  * model context or stderr leaks internal API structure and (via variables) potentially
8
8
  * sensitive values. This type exposes only the upstream error message and status code.
9
9
  */
10
+ /** `JupiterOneApiError.code` for a request the host's abort signal cut off. */
11
+ export declare const ABORTED_CODE = "ABORTED";
10
12
  export declare class JupiterOneApiError extends Error {
11
13
  readonly statusCode?: number;
12
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sanitize-error.d.ts","sourceRoot":"","sources":["../../src/client/sanitize-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7D;;;;;;;GAOG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;gBAEX,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;CAMhE;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,CAgBvE;AAED;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,aAAa;IAElD,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAQ5C"}
1
+ {"version":3,"file":"sanitize-error.d.ts","sourceRoot":"","sources":["../../src/client/sanitize-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE7D;;;;;;;GAOG;AACH,+EAA+E;AAC/E,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;gBAEX,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;CAMhE;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,kBAAkB,CAsBvE;AAED;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,aAAa;IAElD,OAAO,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CAQ5C"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SanitizingGraphQLClient = exports.JupiterOneApiError = void 0;
3
+ exports.SanitizingGraphQLClient = exports.JupiterOneApiError = exports.ABORTED_CODE = void 0;
4
4
  exports.sanitizeGraphQLError = sanitizeGraphQLError;
5
5
  const graphql_request_1 = require("graphql-request");
6
6
  /**
@@ -11,6 +11,8 @@ const graphql_request_1 = require("graphql-request");
11
11
  * model context or stderr leaks internal API structure and (via variables) potentially
12
12
  * sensitive values. This type exposes only the upstream error message and status code.
13
13
  */
14
+ /** `JupiterOneApiError.code` for a request the host's abort signal cut off. */
15
+ exports.ABORTED_CODE = 'ABORTED';
14
16
  class JupiterOneApiError extends Error {
15
17
  statusCode;
16
18
  /**
@@ -46,6 +48,12 @@ function sanitizeGraphQLError(error) {
46
48
  const code = firstError?.extensions?.code;
47
49
  return new JupiterOneApiError(message, status, typeof code === 'string' ? code : undefined);
48
50
  }
51
+ // A request cut off by the host's abort signal (the remote's 55 s deadline) reaches callers as
52
+ // "The user aborted a request." Its name would be lost below, and a write cut off this way may
53
+ // still have landed, so the code keeps it recognizable.
54
+ if (error?.name === 'AbortError') {
55
+ return new JupiterOneApiError(error.message, undefined, exports.ABORTED_CODE);
56
+ }
49
57
  if (error instanceof Error) {
50
58
  return new JupiterOneApiError(error.message);
51
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sanitize-error.js","sourceRoot":"","sources":["../../src/client/sanitize-error.ts"],"names":[],"mappings":";;;AAmCA,oDAgBC;AAnDD,qDAA6D;AAE7D;;;;;;;GAOG;AACH,MAAa,kBAAmB,SAAQ,KAAK;IAClC,UAAU,CAAU;IAC7B;;;;;OAKG;IACM,IAAI,CAAU;IAEvB,YAAY,OAAe,EAAE,UAAmB,EAAE,IAAa;QAC7D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAhBD,gDAgBC;AAED;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,KAAc;IACjD,IAAI,KAAK,YAAY,kBAAkB,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,KAAK,YAAY,6BAAW,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC;QACtC,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;QAC/C,MAAM,OAAO,GACX,UAAU,EAAE,OAAO,IAAI,uBAAuB,MAAM,CAAC,CAAC,CAAC,YAAY,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;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