naftiko: 1.0.0-alpha2 info: label: Docker HUB API — audit-logs description: 'Docker HUB API — audit-logs. 2 operations. Lead operation: List audit log events. Self-contained Naftiko capability covering one Docker Hub business surface.' tags: - Docker Hub - audit-logs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DOCKER_HUB_API_KEY: DOCKER_HUB_API_KEY capability: consumes: - type: http namespace: docker-hub-audit-logs baseUri: https://hub.docker.com description: Docker HUB API — audit-logs business capability. Self-contained, no shared references. resources: - name: v2-auditlogs-account path: /v2/auditlogs/{account} operations: - name: auditlogslistauditlogs method: GET description: List audit log events outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account in: path type: string description: Namespace to query audit logs for. required: true - name: action in: query type: string description: action name one of ["repo.tag.push", ...]. Optional parameter to filter specific audit log actions. - name: name in: query type: string description: name. Optional parameter to filter audit log events to a specific name. For repository events, this is the name of the repository. For organization events, this - name: actor in: query type: string description: actor name. Optional parameter to filter audit log events to the specific user who triggered the event. - name: from in: query type: string description: Start of the time window you wish to query audit events for. - name: to in: query type: string description: End of the time window you wish to query audit events for. - name: page in: query type: integer description: page - specify page number. Page number to get. - name: page_size in: query type: integer description: page_size - specify page size. Number of events to return per page. - name: v2-auditlogs-account-actions path: /v2/auditlogs/{account}/actions operations: - name: auditlogslistauditactions method: GET description: List audit log actions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account in: path type: string description: Namespace to query audit log actions for. required: true authentication: type: bearer token: '{{env.DOCKER_HUB_API_KEY}}' exposes: - type: rest namespace: docker-hub-audit-logs-rest port: 8080 description: REST adapter for Docker HUB API — audit-logs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/auditlogs/{account} name: v2-auditlogs-account description: REST surface for v2-auditlogs-account. operations: - method: GET name: auditlogslistauditlogs description: List audit log events call: docker-hub-audit-logs.auditlogslistauditlogs with: account: rest.account action: rest.action name: rest.name actor: rest.actor from: rest.from to: rest.to page: rest.page page_size: rest.page_size outputParameters: - type: object mapping: $. - path: /v1/v2/auditlogs/{account}/actions name: v2-auditlogs-account-actions description: REST surface for v2-auditlogs-account-actions. operations: - method: GET name: auditlogslistauditactions description: List audit log actions call: docker-hub-audit-logs.auditlogslistauditactions with: account: rest.account outputParameters: - type: object mapping: $. - type: mcp namespace: docker-hub-audit-logs-mcp port: 9090 transport: http description: MCP adapter for Docker HUB API — audit-logs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-audit-log-events description: List audit log events hints: readOnly: true destructive: false idempotent: true call: docker-hub-audit-logs.auditlogslistauditlogs with: account: tools.account action: tools.action name: tools.name actor: tools.actor from: tools.from to: tools.to page: tools.page page_size: tools.page_size outputParameters: - type: object mapping: $. - name: list-audit-log-actions description: List audit log actions hints: readOnly: true destructive: false idempotent: true call: docker-hub-audit-logs.auditlogslistauditactions with: account: tools.account outputParameters: - type: object mapping: $.