openapi: 3.1.0 info: title: Dexwize Content Service version: 1.0.0 description: > The signed remediation library (E11). Actions follow dexwize.action.v1 (see ADR-0022). Signed documents cover "dexwize-action-v1\0" || key_id || "\0" || document bytes with Ed25519. Any authenticated caller may read the library; it is product content, not tenant data. security: - bearer: [] paths: /v1/content/actions: get: summary: List the latest version of every action operationId: listActions parameters: - { name: remediates, in: query, required: false, schema: { type: string }, description: Filter by detection rule id } responses: '200': description: OK content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/ActionSummary' } } '401': { description: Missing or invalid token } /v1/content/actions/{actionId}: get: summary: One action (latest, or a specific version) operationId: getAction parameters: - { name: actionId, in: path, required: true, schema: { type: string } } - { name: version, in: query, required: false, schema: { type: integer } } responses: '200': { description: OK, content: { application/json: { schema: { $ref: '#/components/schemas/ActionSummary' } } } } '404': { description: Unknown action or version } /v1/content/actions/{actionId}/signed: get: summary: The content-signed action document operationId: getSignedAction parameters: - { name: actionId, in: path, required: true, schema: { type: string } } - { name: version, in: query, required: false, schema: { type: integer } } responses: '200': { description: OK, content: { application/json: { schema: { $ref: '#/components/schemas/SignedDocument' } } } } '404': { description: Unknown action or version } /v1/content/packs/current: get: summary: Signed pack manifest listing every action version and its SHA-256 operationId: getCurrentPack responses: '200': { description: OK, content: { application/json: { schema: { $ref: '#/components/schemas/SignedDocument' } } } } /v1/content/keys: get: summary: Public content-signing keys (for trust bootstrap) operationId: listKeys responses: '200': description: OK content: application/json: schema: type: array items: type: object properties: keyId: { type: string } purpose: { const: content } publicKey: { type: string, contentEncoding: base64 } /v1/content/marketplace/checks: post: summary: Run the automated marketplace checks on a partner manifest (schema, partner namespace, rollback, library validator, size, script flag) operationId: checkMarketplaceManifest requestBody: required: true content: application/json: schema: { $ref: '#/components/schemas/MarketplaceManifestRequest' } responses: '200': description: One result per check content: application/json: schema: { type: array, items: { $ref: '#/components/schemas/MarketplaceCheck' } } '400': { description: The manifest is not base64 or the partner slug is missing } /v1/content/marketplace/sign: post: summary: Sign an approved partner submission with the NewTurn content key (PlatformOperate only; partners never sign) operationId: signMarketplaceManifest requestBody: required: true content: application/json: schema: { $ref: '#/components/schemas/MarketplaceManifestRequest' } responses: '200': description: The signed exact bytes content: application/json: schema: { $ref: '#/components/schemas/SignedDocument' } '400': { description: Invalid request } '403': { description: Not a NewTurn platform operator } '422': { description: 'Checks failed (checks_failed) or the script was not reviewed (script_review_required)' } components: securitySchemes: bearer: { type: http, scheme: bearer, bearerFormat: JWT } schemas: SignedDocument: type: object required: [key_id, signature, document] properties: key_id: { type: string } signature: { type: string, contentEncoding: base64 } document: { type: string, contentEncoding: base64, description: Exact published JSON bytes } ActionSummary: type: object properties: actionId: { type: string } version: { type: integer } title: { type: object, properties: { en: { type: string }, ar: { type: string } } } category: { type: string } platform: { type: string, enum: [windows, macos, linux] } risk: { type: string, enum: [Low, Medium, High] } autonomyLevelRequired: { type: string, enum: [Suggest, Approve, AutoPilotRing, Autonomous] } requiresApproval: { type: boolean } operation: { type: string } rollback: { type: string, enum: [restore_snapshot, not_required, cache_regenerates, manual] } parameters: { type: object, additionalProperties: { type: string } } blastRadiusCap: { type: integer } remediates: { type: array, items: { type: string } } appliesTo: { type: array, items: { type: string } } sha256: { type: string } MarketplaceManifestRequest: type: object required: [partnerSlug, manifest] properties: partnerSlug: { type: string, description: 'Partner namespace; action ids must start with partner..' } manifest: { type: string, contentEncoding: base64, description: Exact dexwize.action.v1 JSON bytes } scriptReviewed: { type: boolean, default: false } MarketplaceCheck: type: object required: [name, passed, detail] properties: name: { type: string, enum: [size_limit, manifest_schema, partner_namespace, rollback_present, library_validator, script_review] } passed: { type: boolean } detail: { type: string }