# OpenCRQ API

> Every procedure of the OpenCRQ API in this version, its kind and its input, generated from the source code.

- URL: https://filigran.io/docs/reference/opencrq/api/
- Products: OpenCRQ 0.261123.0
- For: developers
- Type: Reference
- Generated from the OpenCRQ 0.261123.0 source code

**Diagram: A client calls a procedure over HTTP, as a user or a service account, in a tenant**

- Client: Script or integration (Service account token), XTM One agent (Calls procedures by name)
- OpenCRQ API: Queries (GET /trpc/<procedure>), Mutations (POST /trpc/<procedure>)
- Access: Tenant (The token's, or x-tenant-id)

Connections:

- Script or integration → Queries: Bearer token
- Script or integration → Mutations: Bearer token
- XTM One agent → Queries: by name
- XTM One agent → Mutations: by name
- Queries → Tenant: scoped to
- Mutations → Tenant: scoped to

The interface of OpenCRQ and the agents of XTM One call the same procedures. A script authenticates as a service account, created by an administrator in its tenant, with the token it gets: it then acts in that tenant with the rights of the account's groups. Some procedures need a signed-in person and refuse a token: `getMe`, `signOut` and those of `edition`, `xtmOne`, `events` and `members`, the writes of `cwe` and `controlCapabilities`, `tenants.setTenantDefaultLocale`, `dashboard.setTenantHomeDashboard` and `organizations.setOrganizationPinned`. A service account never holds a platform capability either. `health`, `isLoggedIn` and `authStatus` answer without authentication.

A few HTTP routes live outside `/trpc` and are not listed here: the STIX bundle upload (`/api/threats/upload`), file downloads, the sign-in through XTM One, the chat with its agents (`/api/xtm-one/chat/...`) and the peer token provisioning (`/api/xtm/peer-tokens`, see `APP__ADMIN__TOKEN` in the [configuration](https://filigran.io/docs/reference/opencrq/configuration/)).

Every procedure of the OpenCRQ API: 443 (305 queries, 137 mutations, 1 subscription) in 54 namespaces and at the root. The API is [tRPC](https://trpc.io) over HTTP under `/trpc/<procedure>`: a query is a `GET` with its input as JSON in the `input` parameter, a mutation a `POST` with its input as the JSON body, a subscription a `GET` that answers with a stream of server-sent events. Authenticate with the session cookie of a signed-in user, or a service account's token in `Authorization: Bearer <token>`. A signed-in user names the tenant in the `x-tenant-id` header for a procedure that reads or writes a tenant's data; a token carries its service account's tenant. An input field marked `?` is optional, but a procedure that takes fields still needs its input object: send `{}` (`input={}` for a query) when you set none of them.

## Platform {#platform}

The procedures outside any namespace (5 queries, 1 mutation).

| Procedure | Kind | Input |
| --- | --- | --- |
| `authStatus` | query |  |
| `getMe` | query |  |
| `health` | query |  |
| `isLoggedIn` | query |  |
| `procedureManifest` | query |  |
| `signOut` | mutation |  |

## aleChangeExplain {#alechangeexplain}

3 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `aleChangeExplain.getRunChangeGroup` | query | `riskScenarioId: uuid`, `firstRunId: uuid`, `secondRunId: uuid`, `category: "run-results" \| "technique-coverage" \| "model" \| "controls" \| "findings-critical" \| "findings-high" \| "findings-other" \| "assets-critical" \| "assets-high" \| "assets-other" \| "attack-frequency"`, `kind: "appeared" \| "left" \| "no-longer-reported" \| "band-moved" \| "first-measured" \| "posture-moved"`, `from: date-time`, `to: date-time`, `search: string`, `sort?: {by: "item" \| "band" \| "assets" \| "time", desc: boolean} \| null`, `offset: integer`, `limit: integer` |
| `aleChangeExplain.getRunChanges` | query | `riskScenarioId: uuid`, `firstRunId: uuid`, `secondRunId: uuid`, `timeZone: string` |
| `aleChangeExplain.getRunCurve` | query | `riskScenarioId: uuid` |

## assetDependencies {#assetdependencies}

7 queries, 8 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `assetDependencies.createPrimaryToPrimaryLinks` | mutation | `{id: uuid, dependentAssetId: uuid, providerAssetId: uuid, strength?: "critical" \| "important" \| "minor" \| "unknown"}[]` |
| `assetDependencies.createSupportToPrimaryLinks` | mutation | `{id: uuid, supportingAssetId: uuid, primaryAssetId: uuid, roles?: ("stores" \| "processes" \| "reads" \| "transmits" \| "administers" \| "monitors" \| "supports_availability" \| "performs" \| "unknown")[]}[]` |
| `assetDependencies.createSupportToSupportLinks` | mutation | `{id: uuid, providerAssetId: uuid, dependentAssetId: uuid}[]` |
| `assetDependencies.deletePrimaryToPrimaryLinks` | mutation | `uuid[]` |
| `assetDependencies.deleteSupportToPrimaryLinks` | mutation | `uuid[]` |
| `assetDependencies.deleteSupportToSupportLinks` | mutation | `uuid[]` |
| `assetDependencies.getPrimaryAssetDependencyGraph` | query | `primaryAssetId: uuid`, `depth?: integer` |
| `assetDependencies.getPrimaryToPrimaryLinks` | query | `primaryAssetId: uuid` |
| `assetDependencies.getSupportingAssetDependencyGraph` | query | `supportingAssetId: uuid`, `depth?: integer` |
| `assetDependencies.getSupportToPrimaryLinksByPrimaryAssetId` | query | `primaryAssetId: uuid` |
| `assetDependencies.getSupportToPrimaryLinksBySupportingAssetId` | query | `supportingAssetId: uuid` |
| `assetDependencies.getSupportToSupportLinks` | query | `assetId: uuid` |
| `assetDependencies.listSupportingAssetCandidates` | query | `relation: "dependsOn" \| "providesTo" \| "supportsPrimary"`, `assetId: uuid`, `page?: integer`, `limit?: integer`, `search?: string`, `source?: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "user" \| null`, `categoryId?: "host" \| "container_workload" \| "cloud_resource" \| "web_application" \| "network_device" \| "mobile_device" \| "iot_ot_device" \| "identity" \| "saas_application" \| "ai_target" \| "source_code" \| "security_platform" \| "generic_asset" \| null`, `linkedOnly?: boolean` |
| `assetDependencies.updatePrimaryToPrimaryLinks` | mutation | `{id: uuid, strength: "critical" \| "important" \| "minor" \| "unknown"}[]` |
| `assetDependencies.updateSupportToPrimaryLinks` | mutation | `{id: uuid, roles: ("stores" \| "processes" \| "reads" \| "transmits" \| "administers" \| "monitors" \| "supports_availability" \| "performs" \| "unknown")[]}[]` |

## attackOutcomes {#attackoutcomes}

5 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `attackOutcomes.getAttackOutcome` | query | `id: uuid` |
| `attackOutcomes.getAttackOutcomes` | query |  |
| `attackOutcomes.getCuratedMitreTechniquesForOutcome` | query | `attackOutcomeId: uuid` |
| `attackOutcomes.getMitreTechniquesForOutcome` | query | `attackOutcomeId: uuid`, `organizationId: uuid` |
| `attackOutcomes.getRepertoireTechniquesForOutcome` | query | `attackOutcomeId: uuid`, `organizationId: uuid` |

## budgetReviews {#budgetreviews}

7 queries, 9 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `budgetReviews.closeBudgetReview` | mutation | `reviewId: uuid` |
| `budgetReviews.createBudgetReview` | mutation | `name: string`, `ownerId?: uuid \| null`, `context?: string`, `organizationId: uuid`, `periodStart: date` |
| `budgetReviews.createBudgetReviewLine` | mutation | `reviewId: uuid`, `values: {name: string, nature: "build" \| "run", amountSpent: number, amortizationYears?: integer \| null, capabilityIds: uuid[]}` |
| `budgetReviews.deleteBudgetReviewLines` | mutation | `uuid[]` |
| `budgetReviews.deleteBudgetReviews` | mutation | `uuid[]` |
| `budgetReviews.getBudgetReview` | query | `id: uuid` |
| `budgetReviews.getBudgetReviewControlPostures` | query | `reviewId: uuid`, `including?: uuid[]` |
| `budgetReviews.getBudgetReviewFigures` | query | `reviewId: uuid` |
| `budgetReviews.getBudgetReviewRiskSeries` | query | `reviewId: uuid` |
| `budgetReviews.getBudgetReviews` | query | `organizationId?: uuid` |
| `budgetReviews.getBudgetReviewSimulationState` | query | `reviewId: uuid` |
| `budgetReviews.getBudgetReviewTolerance` | query | `reviewId: uuid` |
| `budgetReviews.reopenBudgetReview` | mutation | `reviewId: uuid` |
| `budgetReviews.resimulateBudgetReviewScenarios` | mutation | `reviewId: uuid` |
| `budgetReviews.updateBudgetReview` | mutation | `id: uuid`, `values: {name?: string, ownerId?: uuid \| null, context?: string, periodStart?: date}` |
| `budgetReviews.updateBudgetReviewLine` | mutation | `id: uuid`, `values: {name?: string, nature?: "build" \| "run", amountSpent?: number, amortizationYears?: integer \| null, capabilityIds?: uuid[]}` |

## businessValueCategories {#businessvaluecategories}

2 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `businessValueCategories.getBusinessValueCategories` | query |  |
| `businessValueCategories.getBusinessValueCategory` | query | `id: uuid` |

## capabilities {#capabilities}

4 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `capabilities.getCapabilities` | query |  |
| `capabilities.getServiceAccountEffectivePermissions` | query | `serviceAccountId: uuid` |
| `capabilities.getUserEffectivePermissions` | query | `userId: uuid` |
| `capabilities.hasManageSecurity` | query |  |

## complianceAssessments {#complianceassessments}

4 queries, 6 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `complianceAssessments.answerRequirement` | mutation | `assessmentId: uuid`, `requirementId: uuid`, `ownerId: uuid \| null`, `dueDate: date \| null`, `level: 0 \| 1 \| 2 \| 3 \| 4 \| 5 \| null`, `notApplicable: boolean`, `comment: string \| null`, `updatedAt: date-time \| null` |
| `complianceAssessments.createAssessment` | mutation | `name: string`, `frameworkId: uuid` |
| `complianceAssessments.deleteAssessment` | mutation | `id: uuid` |
| `complianceAssessments.getAssessment` | query | `id: uuid` |
| `complianceAssessments.getAssessments` | query |  |
| `complianceAssessments.getControlEvidence` | query | `capabilityId: uuid` |
| `complianceAssessments.getFrameworks` | query |  |
| `complianceAssessments.publishAssessment` | mutation | `id: uuid` |
| `complianceAssessments.renameAssessment` | mutation | `id: uuid`, `name: string` |
| `complianceAssessments.reopenAssessment` | mutation | `id: uuid` |

## connectors {#connectors}

7 queries, 4 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `connectors.getConnector` | query | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "opencti" \| "default_threats"` |
| `connectors.getPipelineSnapshot` | query |  |
| `connectors.getSchedule` | query | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "opencti" \| "default_threats"` |
| `connectors.getStreamState` | query | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "opencti" \| "default_threats"` |
| `connectors.listConnectors` | query |  |
| `connectors.listLogs` | query | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "opencti" \| "default_threats"` |
| `connectors.listRuns` | query | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "opencti" \| "default_threats"` |
| `connectors.reconnectStream` | mutation | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "opencti" \| "default_threats"` |
| `connectors.resetState` | mutation | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "opencti" \| "default_threats"` |
| `connectors.setSchedule` | mutation | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "default_threats"`, `cadence: "manual" \| "hourly" \| "every_6_hours" \| "every_12_hours" \| "daily" \| "weekly"`, `atMinute: integer \| null`, `weekday: integer \| null`, `timeZone: string \| null` |
| `connectors.syncNow` | mutation | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "opencti" \| "default_threats"` |

## controlCapabilities {#controlcapabilities}

8 queries, 7 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `controlCapabilities.addTechniqueOverride` | mutation | `capabilityId: uuid`, `techniqueId: uuid`, `function: "prevent" \| "detect"` |
| `controlCapabilities.clearScopeControlPosture` | mutation | `organizationId: uuid`, `capabilityId: uuid`, `dimension: "strength" \| "coverage"` |
| `controlCapabilities.declareScopeControlPosture` | mutation | `organizationId: uuid`, `capabilityId: uuid`, `strengthRung: "L0" \| "L1" \| "L2" \| "L3" \| null`, `coverageBucket: "L0" \| "L1" \| "L2" \| "L3" \| null`, `comment: string \| null` |
| `controlCapabilities.getCapabilitiesForTechnique` | query | `techniqueId: uuid` |
| `controlCapabilities.getCapabilityEvents` | query | `capabilityId: uuid`, `organizationId?: uuid \| null` |
| `controlCapabilities.getControlCapabilities` | query |  |
| `controlCapabilities.getControlCapability` | query | `id: uuid` |
| `controlCapabilities.getControlCapabilityRiskScenarios` | query | `id: uuid`, `organizationId?: uuid` |
| `controlCapabilities.getEffectivenessHistory` | query | `capabilityId: uuid`, `organizationId?: uuid \| null` |
| `controlCapabilities.getPooledAssessment` | query | `capabilityId: uuid` |
| `controlCapabilities.getResolvedControlPosture` | query | `organizationId?: uuid \| null` |
| `controlCapabilities.removeTechnique` | mutation | `capabilityId: uuid`, `techniqueId: uuid`, `function: "prevent" \| "detect"` |
| `controlCapabilities.resetTechniqueOverrides` | mutation | `capabilityId: uuid`, `function: "prevent" \| "detect"` |
| `controlCapabilities.restoreTechnique` | mutation | `capabilityId: uuid`, `techniqueId: uuid`, `function: "prevent" \| "detect"` |
| `controlCapabilities.upsertAssessment` | mutation | `capabilityId: uuid`, `strengthRung: "L0" \| "L1" \| "L2" \| "L3" \| null`, `coverageBucket: "L0" \| "L1" \| "L2" \| "L3" \| null`, `reattach?: ("strength" \| "coverage")[]`, `comment: string \| null` |

## controlValidation {#controlvalidation}

8 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `controlValidation.getControlTechniqueTestReadings` | query | `capabilityId: uuid`, `function: "prevent" \| "detect"`, `organizationId?: uuid \| null` |
| `controlValidation.getControlValidation` | query | `capabilityId: uuid`, `organizationId?: uuid \| null` |
| `controlValidation.getControlValidationEvidence` | query | `capabilityId: uuid`, `organizationId?: uuid \| null` |
| `controlValidation.getProvenPostureHistory` | query | `capabilityId: uuid`, `organizationId?: uuid \| null` |
| `controlValidation.getTechniquesCoverage` | query | `threatId: uuid`, `organizationId?: uuid \| null` |
| `controlValidation.getTechniqueTestReadings` | query | `techniqueId: uuid`, `organizationId?: uuid \| null` |
| `controlValidation.listControlValidationEvidence` | query | `page?: integer`, `limit?: integer`, `sortBy?: "technique" \| "scenario" \| "family" \| "function" \| "verdict" \| "evaluatedAt" \| "assets"`, `sortDesc?: boolean`, `capabilityId: uuid`, `organizationId?: uuid \| null`, `technique?: string`, `function?: "prevent" \| "detect"`, `result?: "validated" \| "contradicted"`, `securityPlatformType?: string` |
| `controlValidation.listControlValidationEvidenceTechniques` | query | `capabilityId: uuid`, `organizationId?: uuid \| null` |

## countries {#countries}

1 query.

| Procedure | Kind | Input |
| --- | --- | --- |
| `countries.getCountries` | query |  |

## crqIndicators {#crqindicators}

18 queries, 4 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `crqIndicators.enqueueFamilyRecompute` | mutation | `riskScenarioId: uuid`, `family: "levers" \| "techniques" \| "cves"` |
| `crqIndicators.enqueueSimulation` | mutation | `riskScenarioId: uuid`, `onlyIfNoRun?: boolean` |
| `crqIndicators.getActiveSimulation` | query | `riskScenarioId: uuid` |
| `crqIndicators.getAutoTefEstimate` | query | `riskScenarioId: uuid` |
| `crqIndicators.getCrqSummaryForOutcome` | query | `attackOutcomeId: uuid`, `organizationId?: uuid`, `topControlsLimit?: integer` |
| `crqIndicators.getCveScenarioGains` | query | `organizationId?: uuid \| null`, `cveId: string` |
| `crqIndicators.getFigureFamilyDates` | query | `riskScenarioId: uuid` |
| `crqIndicators.getLatestRun` | query | `riskScenarioId: uuid` |
| `crqIndicators.getPendingComputation` | query | `riskScenarioId: uuid` |
| `crqIndicators.getRunHistory` | query | `riskScenarioId: uuid` |
| `crqIndicators.getRunTimeline` | query | `riskScenarioId: uuid`, `windowDays: integer` |
| `crqIndicators.getRunWithScores` | query | `runId: uuid` |
| `crqIndicators.getScopeScenarioTefs` | query | `organizationId: uuid` |
| `crqIndicators.getTefCatalog` | query |  |
| `crqIndicators.getTefCatalogReading` | query | `countryId: uuid \| null`, `sectorId: uuid \| null`, `employeeCount: integer \| null`, `revenueBand: "under_10m" \| "10m_100m" \| "100m_1b" \| "1b_10b" \| "10b_100b" \| "over_100b" \| null` |
| `crqIndicators.getTefCatalogScopeReadings` | query |  |
| `crqIndicators.getTefInput` | query | `riskScenarioId: uuid` |
| `crqIndicators.getTefMode` | query | `riskScenarioId: uuid` |
| `crqIndicators.getWhatIfResults` | query | `riskScenarioId: uuid` |
| `crqIndicators.listRunHistory` | query | `page?: integer`, `limit?: integer`, `sortDesc?: boolean`, `riskScenarioId: uuid` |
| `crqIndicators.setTefMode` | mutation | `riskScenarioId: uuid`, `tefMode: "manual" \| "auto"` |
| `crqIndicators.upsertTefInput` | mutation | `riskScenarioId: uuid`, `min: number`, `likely: number`, `max: number` |

## crqIndicatorSettings {#crqindicatorsettings}

1 query, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `crqIndicatorSettings.getCrqIndicatorSettings` | query |  |
| `crqIndicatorSettings.updateCrqIndicatorSettings` | mutation | `iterations?: integer`, `exposureWeightInternetFacing?: number`, `exposureWeightInternal?: number`, `susceptibilityGamma?: number`, `measuredValidityDays?: integer \| null`, `unknownCriticalityCountsAs?: "low" \| "medium" \| "high" \| "very_high"`, `unknownExposureCountsAs?: "internal" \| "internet_facing"`, `phishingFailureRate?: number \| null`, `phishingFailureMeasuredOn?: date \| null` |

## cve {#cve}

5 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `cve.getByIds` | query | `cveIds: string[]` |
| `cve.getInfo` | query | `cveId: string` |
| `cve.getRemediation` | query | `cveId: string` |
| `cve.list` | query | `page?: integer`, `limit?: integer`, `sortBy?: "cveId" \| "cvss" \| "epss" \| "kev" \| "updatedAt"`, `sortDesc?: boolean`, `search?: string` |
| `cve.search` | query | `query: string`, `excludeAttachedToAssetId?: uuid \| null` |

## cwe {#cwe}

2 queries, 4 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `cwe.addTechnique` | mutation | `cweId: string`, `techniqueId: uuid` |
| `cwe.get` | query | `cweId: string` |
| `cwe.list` | query |  |
| `cwe.removeTechnique` | mutation | `cweId: string`, `techniqueId: uuid` |
| `cwe.reset` | mutation | `cweId: string` |
| `cwe.restoreTechnique` | mutation | `cweId: string`, `techniqueId: uuid` |

## dashboard {#dashboard}

18 queries, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `dashboard.getAssetsOverview` | query | `organizationId?: uuid` |
| `dashboard.getExposureBand` | query | `organizationId?: uuid`, `windowDays: integer \| null` |
| `dashboard.getExposureFlow` | query | `organizationId?: uuid` |
| `dashboard.getExposureTrend` | query | `organizationId?: uuid`, `windowDays?: integer` |
| `dashboard.getFindingsOverview` | query | `organizationId?: uuid` |
| `dashboard.getMostActiveThreats` | query | `organizationId?: uuid` |
| `dashboard.getRemediationPace` | query | `organizationId?: uuid`, `windowDays: 30 \| 90` |
| `dashboard.getRiskScopeFigures` | query | `windowDays: integer` |
| `dashboard.getRiskTreatment` | query | `organizationId?: uuid`, `riskScenarioId?: uuid` |
| `dashboard.getRiskTreatmentSeries` | query | `riskScenarioId: uuid`, `windowDays: integer` |
| `dashboard.getScenarioSummaries` | query | `organizationId?: uuid`, `windowDays?: integer` |
| `dashboard.getTechniqueFindingCounts` | query | `organizationId?: uuid` |
| `dashboard.getTechniqueGains` | query | `organizationId?: uuid` |
| `dashboard.getTenantHomeDashboard` | query |  |
| `dashboard.getToleranceCounts` | query | `organizationId?: uuid` |
| `dashboard.getToleranceGaps` | query | `organizationId?: uuid` |
| `dashboard.getTopControlMoves` | query | `organizationId?: uuid` |
| `dashboard.getTopControls` | query | `organizationId?: uuid` |
| `dashboard.setTenantHomeDashboard` | mutation | `dashboardId: string` |

## declaredEstate {#declaredestate}

3 queries, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `declaredEstate.comparison` | query | `organizationId: uuid \| null` |
| `declaredEstate.get` | query | `organizationId: uuid` |
| `declaredEstate.history` | query | `organizationId: uuid` |
| `declaredEstate.save` | mutation | `organizationId: uuid`, `answers: {kind: "workstations" \| "mobile_devices" \| "people" \| "servers" \| "containers" \| "cloud_resources" \| "service_accounts" \| "web_applications" \| "saas_applications" \| "ai_systems" \| "network_devices" \| "iot_ot_devices", bounds: object \| null, internetFacing: boolean}[]` |

## defaultThreats {#defaultthreats}

1 query, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `defaultThreats.getOverview` | query |  |
| `defaultThreats.setEnabled` | mutation | `enabled: boolean` |

## drata {#drata}

7 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `drata.getCapabilityDerivation` | query | `capabilityId: uuid` |
| `drata.getControlsForFramework` | query | `frameworkId: uuid` |
| `drata.getControlsForRequirement` | query | `requirementId: uuid` |
| `drata.getFramework` | query | `id: uuid` |
| `drata.getFrameworks` | query |  |
| `drata.getRequirement` | query | `id: uuid` |
| `drata.getRequirements` | query | `frameworkId: uuid` |

## edition {#edition}

3 queries, 2 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `edition.checkWithXtmOne` | mutation |  |
| `edition.getFiligranLicense` | query |  |
| `edition.getInstance` | query |  |
| `edition.getStatus` | query |  |
| `edition.removeFiligranLicense` | mutation |  |

## events {#events}

1 subscription.

| Procedure | Kind | Input |
| --- | --- | --- |
| `events.onDataChanged` | subscription | `tenantId: uuid \| null` |

## fileStorage {#filestorage}

3 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `fileStorage.getNamesByIds` | query | `ids: uuid[]` |
| `fileStorage.getSettings` | query |  |
| `fileStorage.list` | query |  |

## financialProfiles {#financialprofiles}

2 queries, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `financialProfiles.getFinancialProfile` | query | `organizationId: uuid` |
| `financialProfiles.getFinancialProfileHistory` | query | `organizationId: uuid` |
| `financialProfiles.saveFinancialProfile` | mutation | `organizationId: uuid`, `answers: {loadedDailyLabourCost: number \| null, annualRevenue: number \| null, grossMarginPct: number \| null, operatingDaysBand: "about_250" \| "about_300" \| "continuous_365" \| null, seasonalPeakPct: number \| null, itDependentRevenuePct: number \| null, timeToRevenueImpactBand: "under_6h" \| "6_12h" \| "12_24h" \| "24_48h" \| "over_48h" \| null, fullRestoreBand: "under_1d" \| "1_3d" \| "3_7d" \| "1_2w" \| "over_2w" \| "unknown" \| null, revenueRecaptureBand: "mostly_lost" \| "partly_deferred" \| "mostly_deferred" \| null, restoreTestRecency: "within_12m" \| "over_12m" \| "never" \| null, recordsHeldGate: boolean, individualsBand: "under_100k" \| "100k_500k" \| "500k_1m" \| "1m_5m" \| "over_5m" \| null, cardTransactionsBand: "none" \| "under_500k" \| "500k_5m" \| "over_5m" \| null, sensitiveRecordsBand: "none" \| "under_100k" \| "100k_1m" \| "over_1m" \| null, largestRepositoryBand: "under_100k" \| "100k_500k" \| "500k_1m" \| "1m_5m" \| "over_5m" \| null, regulatoryRegime: "none" \| "nis2_essential" \| "nis2_important" \| "dora" \| "other_sectoral" \| null, customerCountBand: "under_1k" \| "1k_10k" \| "10k_100k" \| "100k_1m" \| "over_1m" \| null, b2cRevenuePct: number \| null, recurringRevenuePct: number \| null, contractedRevenueBand: "none" \| "under_25" \| "25_75" \| "over_75" \| null, contractualLiabilityCapBand: "under_25" \| "25_100" \| "100_200" \| "over_200" \| "no_cap" \| null, paymentFlowDailyValueBand: "under_100k" \| "100k_500k" \| "500k_1m" \| "1m_5m" \| "over_5m" \| null, outOfBandVerificationGate: boolean, outOfBandThreshold: number \| null, rdIpValueBand: "none" \| "under_2" \| "2_8" \| "over_8" \| null, ransomPaymentPosture: boolean, ransomPaymentCeiling: number \| null, worstOutageBand: "none" \| "under_1d" \| "1_3d" \| "3_7d" \| "1_2w" \| "over_2w" \| null, costliestIncidentBand: "none" \| "under_25k" \| "25k_100k" \| "100k_500k" \| "500k_2m" \| "over_2m" \| null}` |

## findingScore {#findingscore}

22 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `findingScore.getAssetPosture` | query | `supportingAssetId: uuid` |
| `findingScore.getAssetPostureHistory` | query | `supportingAssetId: uuid` |
| `findingScore.getAssetTechniqueScores` | query | `supportingAssetId: uuid` |
| `findingScore.getAssetTechniqueTestDetail` | query | `supportingAssetId: uuid`, `mitreTechniqueId: uuid` |
| `findingScore.getAssetTechniqueTests` | query | `supportingAssetId: uuid` |
| `findingScore.getFindingBaselines` | query |  |
| `findingScore.getFindingCountsBySource` | query | `organizationId?: uuid \| null`, `applicableOnly?: boolean` |
| `findingScore.getFindingScoreBreakdown` | query | `evidenceId: uuid` |
| `findingScore.getFindingScoreHistory` | query | `evidenceId: uuid` |
| `findingScore.getFindingsPanelCounts` | query | `organizationId?: uuid \| null` |
| `findingScore.getOpenFindingFigures` | query | `organizationId?: uuid \| null` |
| `findingScore.getTechniqueTestPosture` | query | `organizationId?: uuid \| null` |
| `findingScore.getTopVulnerabilities` | query | `organizationId?: uuid \| null` |
| `findingScore.getUniqueCveFinding` | query | `organizationId?: uuid \| null`, `cveId: string` |
| `findingScore.getUniqueCveFindingAttack` | query | `organizationId?: uuid \| null`, `cveId: string` |
| `findingScore.getUniqueFindingScoreHistory` | query | `organizationId?: uuid \| null`, `cveId: string` |
| `findingScore.getUniqueFindingsPanelCounts` | query | `organizationId?: uuid \| null` |
| `findingScore.getUniqueTechniqueFinding` | query | `organizationId?: uuid \| null`, `externalId: string`, `expectationType: "detection" \| "prevention"` |
| `findingScore.listAssetFindings` | query | `page?: integer`, `limit?: integer`, `sortBy?: "score" \| "name" \| "kind" \| "currentState" \| "assetName" \| "assetCategoryId" \| "lastEvaluatedAt" \| "firstSeenAt"`, `sortDesc?: boolean`, `supportingAssetId: uuid`, `state?: "applicable" \| "dismissed" \| null`, `mitreTechniqueExternalId?: string \| null`, `expectationType?: "detection" \| "prevention" \| null`, `search?: string \| null` |
| `findingScore.listScoredFindings` | query | `page?: integer`, `limit?: integer`, `sortBy?: "score" \| "name" \| "kind" \| "currentState" \| "assetName" \| "assetCategoryId" \| "lastEvaluatedAt" \| "firstSeenAt"`, `sortDesc?: boolean`, `organizationId?: uuid \| null`, `state?: "applicable" \| "dismissed" \| null`, `source?: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "user" \| null`, `vulnerability?: {kind: "cve", cveId: string} \| {kind: "technique", externalId: string, expectationType: "detection" \| "prevention"} \| null`, `technique?: string \| null`, `search?: string \| null` |
| `findingScore.listUniqueFindingEvents` | query | `page?: integer`, `limit?: integer`, `organizationId?: uuid \| null`, `cveId: string` |
| `findingScore.listUniqueFindings` | query | `page?: integer`, `limit?: integer`, `sortBy?: "score" \| "affectedAssets" \| "name" \| "age"`, `sortDesc?: boolean`, `organizationId?: uuid \| null`, `source?: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "user" \| null`, `search?: string \| null` |

## globalSearch {#globalsearch}

1 query.

| Procedure | Kind | Input |
| --- | --- | --- |
| `globalSearch.search` | query | `search: string` |

## groups {#groups}

6 queries, 7 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `groups.addRoleToGroup` | mutation | `groupId: uuid`, `roleId: uuid` |
| `groups.addUserToGroup` | mutation | `groupId: uuid`, `userId: uuid` |
| `groups.createGroup` | mutation | `id: uuid`, `name: string` |
| `groups.deleteGroup` | mutation | `id: uuid` |
| `groups.getGroup` | query | `id: uuid` |
| `groups.getGroupRoles` | query | `groupId: uuid` |
| `groups.getGroups` | query |  |
| `groups.getGroupUsers` | query | `groupId: uuid` |
| `groups.getUserGroups` | query | `userId: uuid` |
| `groups.listGroups` | query |  |
| `groups.removeRoleFromGroup` | mutation | `groupId: uuid`, `roleId: uuid` |
| `groups.removeUserFromGroup` | mutation | `groupId: uuid`, `userId: uuid` |
| `groups.updateGroup` | mutation | `id: uuid`, `name: string` |

## integrations {#integrations}

2 queries, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `integrations.configure` | mutation | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata"`, `serviceAccountId?: uuid \| null`, `newServiceAccount?: {name: string}` |
| `integrations.getConnectorsStatus` | query |  |
| `integrations.getSettings` | query | `source: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata"` |

## jobs {#jobs}

13 queries, 2 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `jobs.cancelJob` | mutation | `id: uuid` |
| `jobs.getActiveRunCounts` | query | `kinds: string[]` |
| `jobs.getJob` | query | `id: uuid` |
| `jobs.getJobKind` | query | `kind: string` |
| `jobs.getLastJob` | query | `kind: string` |
| `jobs.getRun` | query | `id: uuid` |
| `jobs.listAllRuns` | query | `kinds?: string[] \| null`, `statuses?: ("queued" \| "running" \| "succeeded" \| "cancelled" \| "dlq")[] \| null`, `triggeredBy?: ("user" \| "scheduler" \| "system" \| "event" \| "connector")[] \| null`, `enqueuedFrom?: date-time \| null`, `enqueuedTo?: date-time \| null`, `startedFrom?: date-time \| null`, `startedTo?: date-time \| null`, `finishedFrom?: date-time \| null`, `finishedTo?: date-time \| null`, `search?: string`, `sortBy?: "enqueuedAt" \| "startedAt" \| "claimedAt" \| "finishedAt" \| "kind" \| "status" \| "triggeredBy" \| "attempt" \| "priority" \| "duration"`, `sortDesc?: boolean`, `limit?: integer`, `offset?: integer` |
| `jobs.listJobErrors` | query | `id: uuid` |
| `jobs.listJobKinds` | query |  |
| `jobs.listLogs` | query | `kind: string` |
| `jobs.listQueue` | query | `pending: {page?: integer, limit?: integer}`, `running: {page?: integer, limit?: integer}`, `failed: {page?: integer, limit?: integer}`, `succeeded: {page?: integer, limit?: integer}` |
| `jobs.listRunLogs` | query | `id: uuid` |
| `jobs.listRuns` | query | `kind: string` |
| `jobs.listSchedules` | query |  |
| `jobs.retryFromDlq` | mutation | `id: uuid` |

## lossDrivers {#lossdrivers}

5 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `lossDrivers.getCompatibleBusinessValueCategoryIds` | query | `attackOutcomeId: uuid` |
| `lossDrivers.getLossDriver` | query | `id: uuid` |
| `lossDrivers.getLossDriverActivations` | query | `lossDriverId: uuid` |
| `lossDrivers.getLossDrivers` | query |  |
| `lossDrivers.getScenarioDriverRecommendation` | query | `riskScenarioId: uuid` |

## markingDefinitions {#markingdefinitions}

2 queries, 5 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `markingDefinitions.addMarkingToGroup` | mutation | `groupId: uuid`, `markingDefinitionId: uuid` |
| `markingDefinitions.createMarkingDefinition` | mutation | `definitionType: string`, `definition: string`, `color?: string`, `order?: integer` |
| `markingDefinitions.deleteMarkingDefinition` | mutation | `id: uuid` |
| `markingDefinitions.getGroupMarkings` | query | `groupId: uuid` |
| `markingDefinitions.listMarkingDefinitions` | query |  |
| `markingDefinitions.removeMarkingFromGroup` | mutation | `groupId: uuid`, `markingDefinitionId: uuid` |
| `markingDefinitions.updateMarkingDefinition` | mutation | `id: uuid`, `color?: string`, `order?: integer` |

## members {#members}

1 query, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `members.addMembers` | mutation | `members: {email: email, xtmUserId?: string \| null, fullName?: string \| null}[]`, `groupIds: uuid[]` |
| `members.searchDirectory` | query | `query: string` |

## mitreAttack {#mitreattack}

7 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `mitreAttack.getMatrix` | query |  |
| `mitreAttack.getMitigationByExternalId` | query | `externalId: string` |
| `mitreAttack.getMitigations` | query |  |
| `mitreAttack.getTacticByExternalId` | query | `externalId: string` |
| `mitreAttack.getTactics` | query |  |
| `mitreAttack.getTechniqueByExternalId` | query | `externalId: string` |
| `mitreAttack.getTechniques` | query |  |

## notifications {#notifications}

2 queries, 4 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `notifications.deleteMany` | mutation | `ids: uuid[]` |
| `notifications.getNotifications` | query | `offset?: integer`, `limit?: integer`, `unreadOnly?: boolean` |
| `notifications.getUnreadCount` | query |  |
| `notifications.markAllAsRead` | mutation |  |
| `notifications.markManyAsRead` | mutation | `ids: uuid[]` |
| `notifications.markManyAsUnread` | mutation | `ids: uuid[]` |

## onboardingWizard {#onboardingwizard}

1 query.

| Procedure | Kind | Input |
| --- | --- | --- |
| `onboardingWizard.getOnboardingWizard` | query |  |

## opencti {#opencti}

3 queries, 2 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `opencti.configure` | mutation | `serviceAccountId?: uuid`, `newServiceAccount?: {name: string}`, `streamId: string` |
| `opencti.getBackfillProgress` | query |  |
| `opencti.getSettings` | query |  |
| `opencti.listStreams` | query |  |
| `opencti.setEnabled` | mutation | `enabled: boolean` |

## organizations {#organizations}

7 queries, 5 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `organizations.createOrganizationsTransaction` | mutation | `{description?: string, legalEntityName?: string, sectorId?: uuid \| null, countryId?: uuid \| null, revenueBand?: "under_10m" \| "10m_100m" \| "100m_1b" \| "1b_10b" \| "10b_100b" \| "over_100b" \| null, employeeCount?: integer \| null, domain?: string, reactionTimeMin?: number \| null, reactionTimeLikely?: number \| null, reactionTimeMax?: number \| null, estateMode?: "open" \| "closed", id: uuid, name: string, mappedAssetIds?: uuid[]}[]` |
| `organizations.deleteOrganizations` | mutation | `uuid[]` |
| `organizations.getAssetMappingEventAssets` | query | `eventId: uuid` |
| `organizations.getAssetMappingHistory` | query | `organizationId: uuid` |
| `organizations.getIdentityHistory` | query | `organizationId: uuid` |
| `organizations.getOrganization` | query | `id: uuid` |
| `organizations.getOrganizations` | query |  |
| `organizations.getRiskTolerance` | query | `organizationId: uuid` |
| `organizations.getUnpinnedOrganizationIds` | query |  |
| `organizations.setOrganizationPinned` | mutation | `id: uuid`, `pinned: boolean` |
| `organizations.setRiskTolerance` | mutation | `organizationId: uuid`, `tolerance: {annualLoss: number, maxExceedanceProbability: number}` |
| `organizations.updateOrganization` | mutation | `description?: string`, `legalEntityName?: string`, `sectorId?: uuid \| null`, `countryId?: uuid \| null`, `revenueBand?: "under_10m" \| "10m_100m" \| "100m_1b" \| "1b_10b" \| "10b_100b" \| "over_100b" \| null`, `employeeCount?: integer \| null`, `domain?: string`, `reactionTimeMin?: number \| null`, `reactionTimeLikely?: number \| null`, `reactionTimeMax?: number \| null`, `estateMode?: "open" \| "closed"`, `id: uuid`, `name?: string`, `mapping?: {added?: uuid[], removed?: uuid[]}` |

## platformCapabilities {#platformcapabilities}

4 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `platformCapabilities.getPlatformCapabilities` | query |  |
| `platformCapabilities.getUserPlatformEffectivePermissions` | query | `userId: uuid` |
| `platformCapabilities.hasPlatformAccess` | query |  |
| `platformCapabilities.hasPlatformCapability` | query | `capabilityId: uuid` |

## platformGroups {#platformgroups}

6 queries, 7 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `platformGroups.addRoleToPlatformGroup` | mutation | `platformGroupId: uuid`, `platformRoleId: uuid` |
| `platformGroups.addUserToPlatformGroup` | mutation | `platformGroupId: uuid`, `userId: uuid` |
| `platformGroups.createPlatformGroup` | mutation | `id: uuid`, `name: string` |
| `platformGroups.deletePlatformGroup` | mutation | `id: uuid` |
| `platformGroups.getPlatformGroup` | query | `id: uuid` |
| `platformGroups.getPlatformGroupRoles` | query | `platformGroupId: uuid` |
| `platformGroups.getPlatformGroups` | query |  |
| `platformGroups.getPlatformGroupUsers` | query | `platformGroupId: uuid` |
| `platformGroups.getUserPlatformGroups` | query | `userId: uuid` |
| `platformGroups.listPlatformGroups` | query |  |
| `platformGroups.removeRoleFromPlatformGroup` | mutation | `platformGroupId: uuid`, `platformRoleId: uuid` |
| `platformGroups.removeUserFromPlatformGroup` | mutation | `platformGroupId: uuid`, `userId: uuid` |
| `platformGroups.updatePlatformGroup` | mutation | `id: uuid`, `name: string` |

## platformMembers {#platformmembers}

1 query, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `platformMembers.addMembers` | mutation | `members: {email: email, xtmUserId?: string \| null, fullName?: string \| null}[]`, `platformGroupIds: uuid[]` |
| `platformMembers.searchDirectory` | query | `query: string` |

## platformRoles {#platformroles}

5 queries, 5 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `platformRoles.addCapabilityToPlatformRole` | mutation | `platformRoleId: uuid`, `capabilityId: uuid` |
| `platformRoles.createPlatformRole` | mutation | `id: uuid`, `name: string` |
| `platformRoles.deletePlatformRole` | mutation | `id: uuid` |
| `platformRoles.getPlatformRole` | query | `id: uuid` |
| `platformRoles.getPlatformRoleCapabilities` | query | `platformRoleId: uuid` |
| `platformRoles.getPlatformRoles` | query |  |
| `platformRoles.getUserPlatformRoles` | query | `userId: uuid` |
| `platformRoles.listPlatformRoles` | query |  |
| `platformRoles.removeCapabilityFromPlatformRole` | mutation | `platformRoleId: uuid`, `capabilityId: uuid` |
| `platformRoles.updatePlatformRole` | mutation | `id: uuid`, `name: string` |

## primaryAssets {#primaryassets}

3 queries, 3 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `primaryAssets.createPrimaryAsset` | mutation | `id: uuid`, `organizationId: uuid`, `name: string`, `description: string`, `ownerId: uuid \| null`, `businessValueCategoryIds: uuid[]`, `onboardingTemplate?: "customer-data" \| "payments-and-treasury" \| "production-and-operations" \| "hr-data" \| "intellectual-property" \| "email-and-collaboration" \| null`, `reference?: string \| null`, `businessFunction?: string \| null`, `availability?: "low" \| "medium" \| "high" \| "very_high" \| null`, `integrity?: "low" \| "medium" \| "high" \| "very_high" \| null`, `confidentiality?: "low" \| "medium" \| "high" \| "very_high" \| null`, `traceability?: "low" \| "medium" \| "high" \| "very_high" \| null`, `rtoMinutes?: integer \| null`, `rpoMinutes?: integer \| null`, `mtpdMinutes?: integer \| null` |
| `primaryAssets.deletePrimaryAssets` | mutation | `uuid[]` |
| `primaryAssets.getPrimaryAsset` | query | `id: uuid` |
| `primaryAssets.getPrimaryAssets` | query | `organizationId: uuid` |
| `primaryAssets.getPrimaryAssetsWithScope` | query |  |
| `primaryAssets.updatePrimaryAsset` | mutation | `id: uuid`, `name?: string`, `description?: string`, `ownerId?: uuid \| null`, `businessValueCategoryIds?: uuid[]`, `reference?: string \| null`, `businessFunction?: string \| null`, `availability?: "low" \| "medium" \| "high" \| "very_high" \| null`, `integrity?: "low" \| "medium" \| "high" \| "very_high" \| null`, `confidentiality?: "low" \| "medium" \| "high" \| "very_high" \| null`, `traceability?: "low" \| "medium" \| "high" \| "very_high" \| null`, `rtoMinutes?: integer \| null`, `rpoMinutes?: integer \| null`, `mtpdMinutes?: integer \| null` |

## riskScenarios {#riskscenarios}

12 queries, 4 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `riskScenarios.createRiskScenario` | mutation | `id: uuid`, `organizationId: uuid`, `name: string`, `description: string`, `ownerId?: uuid \| null`, `attackOutcomeId: uuid`, `primaryAssetIds?: uuid[]`, `businessValueCategoryIds?: uuid[]` |
| `riskScenarios.deleteRiskScenarios` | mutation | `uuid[]` |
| `riskScenarios.getControlCapabilitiesForRiskScenario` | query | `riskScenarioId: uuid` |
| `riskScenarios.getCveExploitation` | query | `riskScenarioId: uuid`, `cveId: string`, `limit?: integer` |
| `riskScenarios.getDependencyGraph` | query | `riskScenarioId: uuid`, `depth?: integer` |
| `riskScenarios.getDerivedSupportingAssets` | query | `riskScenarioId: uuid` |
| `riskScenarios.getEvidenceHealth` | query | `riskScenarioId: uuid`, `maxAgeDays?: integer`, `limit?: integer` |
| `riskScenarios.getFindingsSummaryForRiskScenario` | query | `riskScenarioId: uuid`, `topLimit?: integer` |
| `riskScenarios.getNamesByIds` | query | `ids: uuid[]` |
| `riskScenarios.getRiskScenario` | query | `id: uuid` |
| `riskScenarios.getRiskScenariosOverview` | query | `organizationId?: uuid` |
| `riskScenarios.listDerivedSupportingAssets` | query | `page?: integer`, `limit?: integer`, `sortBy?: "impact" \| "supportingAsset" \| "depth" \| "via"`, `sortDesc?: boolean`, `riskScenarioId: uuid` |
| `riskScenarios.listFindingsForRiskScenario` | query | `page?: integer`, `limit?: integer`, `sortBy?: "score" \| "name" \| "currentState" \| "assetName" \| "assetCategoryId" \| "lastEvaluatedAt" \| "ageDays"`, `sortDesc?: boolean`, `riskScenarioId: uuid`, `state?: "all" \| "applicable" \| "dismissed"`, `severity?: "all" \| "critical" \| "high" \| "medium" \| "low" \| "unscored"` |
| `riskScenarios.listUniqueCvesForRiskScenario` | query | `page?: integer`, `limit?: integer`, `sortBy?: "gain" \| "score" \| "affectedAssets" \| "name" \| "age"`, `sortDesc?: boolean`, `riskScenarioId: uuid` |
| `riskScenarios.setRiskTolerance` | mutation | `riskScenarioId: uuid`, `tolerance: {annualLoss: number, maxExceedanceProbability: number} \| null` |
| `riskScenarios.updateRiskScenario` | mutation | `id: uuid`, `name?: string`, `description?: string`, `ownerId?: uuid \| null`, `primaryAssetIds?: uuid[]`, `businessValueCategoryIds?: uuid[]` |

## roles {#roles}

6 queries, 5 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `roles.addCapabilityToRole` | mutation | `roleId: uuid`, `capabilityId: uuid` |
| `roles.createRole` | mutation | `id: uuid`, `name: string` |
| `roles.deleteRole` | mutation | `id: uuid` |
| `roles.getRole` | query | `id: uuid` |
| `roles.getRoleCapabilities` | query | `roleId: uuid` |
| `roles.getRoleGroups` | query | `roleId: uuid` |
| `roles.getRoles` | query |  |
| `roles.getUserRoles` | query | `userId: uuid` |
| `roles.listRoles` | query |  |
| `roles.removeCapabilityFromRole` | mutation | `roleId: uuid`, `capabilityId: uuid` |
| `roles.updateRole` | mutation | `id: uuid`, `name: string` |

## scenarioLossEstimates {#scenariolossestimates}

4 queries, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `scenarioLossEstimates.getAutomaticEstimates` | query | `riskScenarioId: uuid` |
| `scenarioLossEstimates.getFinancialSummary` | query | `riskScenarioId: uuid` |
| `scenarioLossEstimates.getLossDriverSplitForOutcome` | query | `attackOutcomeId: uuid` |
| `scenarioLossEstimates.getScenarioLossEstimates` | query | `riskScenarioId: uuid` |
| `scenarioLossEstimates.upsertScenarioLossEstimates` | mutation | `riskScenarioId: uuid`, `estimates: ({lossDriverId: uuid, action: "set", minValue: number \| null, likelyValue: number \| null, maxValue: number \| null} \| {lossDriverId: uuid, action: "clear"})[]`, `updatedAt: date-time \| null`, `rowCount: integer`, `revertLossDriverIds?: uuid[]` |

## sectors {#sectors}

1 query.

| Procedure | Kind | Input |
| --- | --- | --- |
| `sectors.getSectors` | query |  |

## serviceAccounts {#serviceaccounts}

8 queries, 7 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `serviceAccounts.addGroupToServiceAccount` | mutation | `serviceAccountId: uuid`, `groupId: uuid` |
| `serviceAccounts.createServiceAccount` | mutation | `id: uuid`, `name: string`, `description?: string` |
| `serviceAccounts.generateToken` | mutation | `serviceAccountId: uuid`, `name: string`, `expiresAt?: string` |
| `serviceAccounts.getGroupServiceAccounts` | query | `groupId: uuid` |
| `serviceAccounts.getNamesByIds` | query | `ids: uuid[]` |
| `serviceAccounts.getServiceAccount` | query | `id: uuid` |
| `serviceAccounts.getServiceAccountGroups` | query | `serviceAccountId: uuid` |
| `serviceAccounts.getServiceAccountRoles` | query | `serviceAccountId: uuid` |
| `serviceAccounts.getServiceAccounts` | query |  |
| `serviceAccounts.listServiceAccounts` | query |  |
| `serviceAccounts.listTokens` | query | `serviceAccountId: uuid` |
| `serviceAccounts.removeGroupFromServiceAccount` | mutation | `serviceAccountId: uuid`, `groupId: uuid` |
| `serviceAccounts.revokeToken` | mutation | `tokenId: uuid` |
| `serviceAccounts.rotateToken` | mutation | `tokenId: uuid` |
| `serviceAccounts.updateServiceAccount` | mutation | `id: uuid`, `name?: string`, `active?: boolean`, `description?: string` |

## supportingAssets {#supportingassets}

20 queries, 12 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `supportingAssets.createAssetEvidence` | mutation | `supportingAssetId: uuid`, `cveId: uuid` |
| `supportingAssets.createSupportingAsset` | mutation | `id: uuid`, `name: string`, `description: string`, `ownerId?: uuid \| null`, `ownerName?: string`, `exposure: "internet_facing" \| "internal" \| "unknown"`, `categoryId: "host" \| "container_workload" \| "cloud_resource" \| "web_application" \| "network_device" \| "mobile_device" \| "iot_ot_device" \| "identity" \| "saas_application" \| "ai_target" \| "source_code" \| "security_platform" \| "generic_asset"`, `subcategoryId?: "server" \| "workstation" \| "laptop" \| "virtual_machine" \| "hypervisor" \| "mainframe" \| "thin_client" \| "container" \| "container_image" \| "kubernetes_pod" \| "kubernetes_cluster" \| "kubernetes_node" \| "serverless_function" \| "compute" \| "storage" \| "database" \| "networking" \| "serverless" \| "container_registry" \| "kubernetes" \| "iam_principal" \| "secrets_key_mgmt" \| "messaging_queue" \| "analytics_data" \| "ai_ml_service" \| "iac_template" \| "cloud_other" \| "website" \| "web_api" \| "single_page_app" \| "graphql_api" \| "web_service" \| "microservice" \| "router" \| "switch" \| "firewall" \| "load_balancer" \| "vpn_gateway" \| "wireless_ap" \| "proxy" \| "dns_server" \| "dhcp_server" \| "san_nas" \| "network_other" \| "smartphone" \| "tablet" \| "iot_sensor" \| "ip_camera" \| "gateway" \| "point_of_sale" \| "media_device" \| "plc" \| "rtu" \| "hmi" \| "scada_historian" \| "medical_device" \| "printer_peripheral" \| "building_mgmt" \| "user_account" \| "service_account" \| "group" \| "role" \| "shared_mailbox" \| "non_human_identity" \| "saas_app" \| "saas_tenant" \| "llm_model" \| "ai_agent" \| "mcp_server" \| "rag_pipeline" \| "code_repository" \| "ci_cd_pipeline" \| "package_registry" \| "software_package" \| "code_other" \| "edr" \| "xdr" \| "siem" \| "soar" \| "ndr" \| "ispm" \| "email_security" \| "llm_firewall" \| "ai_gateway" \| "vulnerability_scanner" \| null`, `criticality?: "unknown" \| "low" \| "medium" \| "high" \| "very_high"`, `url?: string`, `linkedPerson?: string`, `properties?: {family: "machine", hostname?: string, ipAddresses?: string[] \| null, macAddresses?: string[] \| null, seenIp?: string, cloudProvider?: "aws" \| "azure" \| "gcp" \| "oci" \| "alibaba" \| "kubernetes" \| "other" \| null, cloudNativeType?: string, cloudRegion?: string, platform?: string, arch?: "x86_64" \| "arm64" \| null, vendor?: string, model?: string, operatingSystem?: string, osVersion?: string, isEol?: boolean} \| {family: "ai_target", provider?: "openai_compatible" \| "anthropic" \| "azure_openai" \| "aws_bedrock" \| "google_vertex" \| "huggingface" \| "ollama" \| "custom_http" \| "mcp_server" \| "agent_http" \| "xtm_one" \| null, endpointUrl?: string, model?: string, modality?: "text" \| "vision" \| "audio" \| "multimodal" \| null, systemPrompt?: string} \| {family: "identity", userPrincipalName?: string, accountDomain?: string, accountName?: string, identityProvider?: "entra" \| "active_directory" \| null, department?: string, jobTitle?: string, isEnabled?: boolean, assignedRoles?: string[] \| null, privilegedPimRoles?: string[] \| null}`, `tagNames?: string[]`, `groups?: {name: string, externalReference?: string \| null}[]`, `organizationId?: uuid \| null` |
| `supportingAssets.deleteAssetEvidence` | mutation | `evidenceId: uuid` |
| `supportingAssets.deleteSupportingAssets` | mutation | `uuid[]` |
| `supportingAssets.deleteTag` | mutation | `tagId: uuid` |
| `supportingAssets.getApplicableTechniquesForAsset` | query | `assetId: uuid` |
| `supportingAssets.getAssetCountBySubcategory` | query | `organizationId?: uuid \| null` |
| `supportingAssets.getAssetCountsBySource` | query | `organizationId?: uuid \| null` |
| `supportingAssets.getAttackPathReach` | query | `supportingAssetId: uuid` |
| `supportingAssets.getEvidenceActivityForAsset` | query | `assetId: uuid`, `timeZone: string` |
| `supportingAssets.getEvidenceActivityForCve` | query | `organizationId?: uuid \| null`, `cveId: string`, `timeZone: string` |
| `supportingAssets.getEvidenceActivityForTechnique` | query | `mitreTechniqueId: uuid`, `timeZone: string` |
| `supportingAssets.getEvidenceDetail` | query | `evidenceId: uuid` |
| `supportingAssets.getEvidencesForCve` | query | `page?: integer`, `limit?: integer`, `sortBy?: "assetName" \| "assetCategoryId" \| "assetCriticality" \| "currentState" \| "stateChangedAt"`, `sortDesc?: boolean`, `cveId: string` |
| `supportingAssets.getEvidencesForTechnique` | query | `page?: integer`, `limit?: integer`, `sortBy?: "assetName" \| "assetCategoryId" \| "assetCriticality" \| "currentState" \| "stateChangedAt" \| "expectationType" \| "securityPlatformType"`, `sortDesc?: boolean`, `mitreTechniqueId: uuid` |
| `supportingAssets.getOpenaevPosture` | query | `supportingAssetId: uuid` |
| `supportingAssets.getProtectingControls` | query | `supportingAssetId: uuid`, `organizationId?: uuid \| null` |
| `supportingAssets.getSupportingAsset` | query | `id: uuid` |
| `supportingAssets.getSupportingAssetRelationGraph` | query | `supportingAssetId: uuid`, `depth?: integer` |
| `supportingAssets.getTechniqueCountPerCategory` | query |  |
| `supportingAssets.getTechniquesByCategory` | query | `categoryId: "host" \| "container_workload" \| "cloud_resource" \| "web_application" \| "network_device" \| "mobile_device" \| "iot_ot_device" \| "identity" \| "saas_application" \| "ai_target" \| "source_code" \| "security_platform" \| "generic_asset"` |
| `supportingAssets.listAssetGroups` | query |  |
| `supportingAssets.listManagedTags` | query |  |
| `supportingAssets.listSupportingAssets` | query | `page?: integer`, `limit?: integer`, `sortBy?: "name" \| "categoryId" \| "subcategoryId" \| "exposure" \| "criticality" \| "lastSeenAt" \| "posture" \| "mapped"`, `sortDesc?: boolean`, `organizationId?: uuid \| null`, `search?: string`, `source?: "first" \| "nist" \| "cisa" \| "microsoft_graph" \| "openaev" \| "drata" \| "user" \| null`, `categoryId?: "host" \| "container_workload" \| "cloud_resource" \| "web_application" \| "network_device" \| "mobile_device" \| "iot_ot_device" \| "identity" \| "saas_application" \| "ai_target" \| "source_code" \| "security_platform" \| "generic_asset" \| null`, `categoryMode?: "only" \| "except"`, `groupId?: uuid \| null`, `membershipOrganizationId?: uuid \| null` |
| `supportingAssets.listTags` | query |  |
| `supportingAssets.mergeTag` | mutation | `tagId: uuid`, `targetTagId: uuid` |
| `supportingAssets.renameTag` | mutation | `tagId: uuid`, `name: string` |
| `supportingAssets.resetEvidenceState` | mutation | `evidenceId: uuid` |
| `supportingAssets.resyncSupportingAssetWithConnectors` | mutation | `id: uuid` |
| `supportingAssets.unmergeTag` | mutation | `tagId: uuid` |
| `supportingAssets.updateEvidenceState` | mutation | `{evidenceId: uuid, state: "applicable"} \| {evidenceId: uuid, state: "dismissed", dismissalType: "risk_accepted" \| "false_positive", reasonCode: "wont_fix" \| "patch_unavailable" \| "downtime_not_permitted" \| "application_incompatibility" \| "compensatory_control_applied" \| "technical_debt_or_eol" \| "not_externally_exposed" \| "business_exception" \| "vendor_dependency" \| "detection_error" \| "not_applicable" \| "other", reason: string}` |
| `supportingAssets.updateSupportingAsset` | mutation | `id: uuid`, `name?: string`, `description?: string`, `ownerId?: uuid \| null`, `ownerName?: string`, `exposure?: "internet_facing" \| "internal" \| "unknown"`, `categoryId?: "host" \| "container_workload" \| "cloud_resource" \| "web_application" \| "network_device" \| "mobile_device" \| "iot_ot_device" \| "identity" \| "saas_application" \| "ai_target" \| "source_code" \| "security_platform" \| "generic_asset"`, `subcategoryId?: "server" \| "workstation" \| "laptop" \| "virtual_machine" \| "hypervisor" \| "mainframe" \| "thin_client" \| "container" \| "container_image" \| "kubernetes_pod" \| "kubernetes_cluster" \| "kubernetes_node" \| "serverless_function" \| "compute" \| "storage" \| "database" \| "networking" \| "serverless" \| "container_registry" \| "kubernetes" \| "iam_principal" \| "secrets_key_mgmt" \| "messaging_queue" \| "analytics_data" \| "ai_ml_service" \| "iac_template" \| "cloud_other" \| "website" \| "web_api" \| "single_page_app" \| "graphql_api" \| "web_service" \| "microservice" \| "router" \| "switch" \| "firewall" \| "load_balancer" \| "vpn_gateway" \| "wireless_ap" \| "proxy" \| "dns_server" \| "dhcp_server" \| "san_nas" \| "network_other" \| "smartphone" \| "tablet" \| "iot_sensor" \| "ip_camera" \| "gateway" \| "point_of_sale" \| "media_device" \| "plc" \| "rtu" \| "hmi" \| "scada_historian" \| "medical_device" \| "printer_peripheral" \| "building_mgmt" \| "user_account" \| "service_account" \| "group" \| "role" \| "shared_mailbox" \| "non_human_identity" \| "saas_app" \| "saas_tenant" \| "llm_model" \| "ai_agent" \| "mcp_server" \| "rag_pipeline" \| "code_repository" \| "ci_cd_pipeline" \| "package_registry" \| "software_package" \| "code_other" \| "edr" \| "xdr" \| "siem" \| "soar" \| "ndr" \| "ispm" \| "email_security" \| "llm_firewall" \| "ai_gateway" \| "vulnerability_scanner" \| null`, `criticality?: "unknown" \| "low" \| "medium" \| "high" \| "very_high"`, `url?: string`, `linkedPerson?: string`, `properties?: {family: "machine", hostname?: string, ipAddresses?: string[] \| null, macAddresses?: string[] \| null, seenIp?: string, cloudProvider?: "aws" \| "azure" \| "gcp" \| "oci" \| "alibaba" \| "kubernetes" \| "other" \| null, cloudNativeType?: string, cloudRegion?: string, platform?: string, arch?: "x86_64" \| "arm64" \| null, vendor?: string, model?: string, operatingSystem?: string, osVersion?: string, isEol?: boolean} \| {family: "ai_target", provider?: "openai_compatible" \| "anthropic" \| "azure_openai" \| "aws_bedrock" \| "google_vertex" \| "huggingface" \| "ollama" \| "custom_http" \| "mcp_server" \| "agent_http" \| "xtm_one" \| null, endpointUrl?: string, model?: string, modality?: "text" \| "vision" \| "audio" \| "multimodal" \| null, systemPrompt?: string} \| {family: "identity", userPrincipalName?: string, accountDomain?: string, accountName?: string, identityProvider?: "entra" \| "active_directory" \| null, department?: string, jobTitle?: string, isEnabled?: boolean, assignedRoles?: string[] \| null, privilegedPimRoles?: string[] \| null}`, `tagNames?: string[]`, `groups?: {name: string, externalReference?: string \| null}[]` |

## tenants {#tenants}

7 queries, 6 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `tenants.createTenantsTransaction` | mutation | `id: uuid`, `name: string` |
| `tenants.deleteTenantsTransaction` | mutation | `uuid[]` |
| `tenants.getTenant` | query | `id: uuid` |
| `tenants.getTenants` | query |  |
| `tenants.getTenantsWithMemberCount` | query |  |
| `tenants.getTenantUserNamesByIds` | query | `tenantId: uuid`, `ids: uuid[]` |
| `tenants.getTenantUserProfile` | query | `tenantId: uuid`, `userId: uuid` |
| `tenants.getTenantUsers` | query | `tenantId: uuid` |
| `tenants.listTenantUsers` | query | `tenantId: uuid` |
| `tenants.removeTenantUser` | mutation | `tenantId: uuid`, `userId: uuid` |
| `tenants.renameTenant` | mutation | `id: uuid`, `name: string` |
| `tenants.setTenantDefaultLocale` | mutation | `locale: "en" \| "fr" \| null` |
| `tenants.updateTenantUserProfile` | mutation | `tenantId: uuid`, `userId: uuid`, `name?: string`, `title?: string` |

## threatRelevanceSettings {#threatrelevancesettings}

1 query, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `threatRelevanceSettings.getThreatRelevanceSettings` | query |  |
| `threatRelevanceSettings.updateThreatRelevanceSettings` | mutation | `actHalfLifeObservedDays: integer`, `actHalfLifeAuthoredDays: integer`, `confidenceGate: number`, `unknownActivityAgeDays?: integer` |

## threats {#threats}

12 queries, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `threats.deleteImported` | mutation | `uuid[]` |
| `threats.getActivityForCve` | query | `cveId: string` |
| `threats.getByCveId` | query | `cveId: string` |
| `threats.getCatalogKpis` | query |  |
| `threats.getCatalogVolumes` | query |  |
| `threats.getDetail` | query | `id: uuid` |
| `threats.getMatchingActorsForOutcome` | query | `attackOutcomeId: uuid` |
| `threats.getOutcomeScoresForAnalysis` | query | `analysisId: uuid` |
| `threats.getRelevanceProof` | query | `analysisId: uuid`, `scenarioId: uuid` |
| `threats.getRelevantForScenario` | query | `scenarioId: uuid` |
| `threats.hasAny` | query |  |
| `threats.list` | query | `page?: integer`, `limit?: integer`, `sortBy?: "name" \| "mitreGroupId" \| "outcomeScore" \| "cveCount" \| "techniqueCount" \| "activityScore" \| "lastObservedAt" \| "stixCreated" \| "updatedAt"`, `sortDesc?: boolean`, `outcomeId?: uuid`, `search?: string`, `entityType?: "intrusion-set" \| "threat-actor" \| "campaign"`, `kind?: "stix-import" \| "connector" \| "default-threats"` |
| `threats.listCveFindings` | query | `organizationId?: uuid \| null`, `threatId: uuid` |

## treatmentPlans {#treatmentplans}

7 queries, 6 mutations.

| Procedure | Kind | Input |
| --- | --- | --- |
| `treatmentPlans.addTreatmentPlanMoves` | mutation | `planId: uuid`, `moves: {capabilityId: uuid, targetStrengthRung: "L0" \| "L1" \| "L2" \| "L3" \| null, targetCoverageBucket: "L0" \| "L1" \| "L2" \| "L3" \| null}[]` |
| `treatmentPlans.createTreatmentPlan` | mutation | `name: string`, `ownerId?: uuid \| null`, `startDate?: date \| null`, `endDate?: date \| null`, `rationale?: string`, `costOneOff?: number \| null`, `costRecurringAnnual?: number \| null`, `organizationId: uuid`, `moves?: {capabilityId: uuid, targetStrengthRung: "L0" \| "L1" \| "L2" \| "L3" \| null, targetCoverageBucket: "L0" \| "L1" \| "L2" \| "L3" \| null}[]` |
| `treatmentPlans.deleteTreatmentPlans` | mutation | `uuid[]` |
| `treatmentPlans.getScopeTreatmentPlanCandidates` | query | `organizationId: uuid` |
| `treatmentPlans.getTreatmentPlan` | query | `id: uuid` |
| `treatmentPlans.getTreatmentPlanCandidates` | query | `planId: uuid` |
| `treatmentPlans.getTreatmentPlanMoves` | query | `planId: uuid` |
| `treatmentPlans.getTreatmentPlanProjection` | query | `planId: uuid` |
| `treatmentPlans.getTreatmentPlans` | query | `organizationId?: uuid` |
| `treatmentPlans.getTreatmentPlanSimulationState` | query | `planId: uuid` |
| `treatmentPlans.resimulateTreatmentPlanScenarios` | mutation | `planId: uuid` |
| `treatmentPlans.setTreatmentPlanScope` | mutation | `planId: uuid`, `moves: {capabilityId: uuid, targetStrengthRung: "L0" \| "L1" \| "L2" \| "L3" \| null, targetCoverageBucket: "L0" \| "L1" \| "L2" \| "L3" \| null}[]` |
| `treatmentPlans.updateTreatmentPlan` | mutation | `id: uuid`, `values: {name?: string, ownerId?: uuid \| null, startDate?: date \| null, endDate?: date \| null, rationale?: string, costOneOff?: number \| null, costRecurringAnnual?: number \| null}` |

## users {#users}

7 queries, 1 mutation.

| Procedure | Kind | Input |
| --- | --- | --- |
| `users.getUser` | query | `id: uuid` |
| `users.getUserHomeDashboard` | query |  |
| `users.getUserLocale` | query |  |
| `users.getUserPastelColours` | query |  |
| `users.getUsers` | query |  |
| `users.getUserTheme` | query |  |
| `users.listPlatformUsers` | query |  |
| `users.updateUser` | mutation | `locale?: "en" \| "fr" \| null`, `theme?: "light" \| "dark" \| "system"`, `pastelColours?: boolean`, `homeDashboardId?: string \| null` |

## xtm {#xtm}

4 queries.

| Procedure | Kind | Input |
| --- | --- | --- |
| `xtm.connections` | query |  |
| `xtm.counterparts` | query | `kind: "ASSET" \| "ATTACK_PATTERN" \| "VULNERABILITY" \| "THREAT"`, `keys: string[]` |
| `xtm.lookup` | query | `kind: "THREAT" \| "VULNERABILITY" \| "ASSET"`, `keys: string[]` |
| `xtm.products` | query |  |

## xtmOne {#xtmone}

1 query.

| Procedure | Kind | Input |
| --- | --- | --- |
| `xtmOne.getSettings` | query |  |
