naftiko: 1.0.0-alpha2 info: label: Consolidate Services — AccountService description: 'Consolidate Services — AccountService. 6 operations. Lead operation: ListAccounts returns the list of accounts. Self-contained Naftiko capability covering one Argocd business surface.' tags: - Argocd - AccountService created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ARGOCD_API_KEY: ARGOCD_API_KEY capability: consumes: - type: http namespace: server-accountservice baseUri: '' description: Consolidate Services — AccountService business capability. Self-contained, no shared references. resources: - name: api-v1-account path: /api/v1/account operations: - name: accountservicelistaccounts method: GET description: ListAccounts returns the list of accounts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v1-account-can-i-resource-action-subresource path: /api/v1/account/can-i/{resource}/{action}/{subresource} operations: - name: accountservicecani method: GET description: CanI checks if the current account has permission to perform an action outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: resource in: path type: string required: true - name: action in: path type: string required: true - name: subresource in: path type: string required: true - name: api-v1-account-password path: /api/v1/account/password operations: - name: accountserviceupdatepassword method: PUT description: UpdatePassword updates an account's password to a new value outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: string required: true - name: api-v1-account-name path: /api/v1/account/{name} operations: - name: accountservicegetaccount method: GET description: GetAccount returns an account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string required: true - name: api-v1-account-name-token path: /api/v1/account/{name}/token operations: - name: accountservicecreatetoken method: POST description: CreateToken creates a token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string required: true - name: body in: body type: string required: true - name: api-v1-account-name-token-id path: /api/v1/account/{name}/token/{id} operations: - name: accountservicedeletetoken method: DELETE description: DeleteToken deletes a token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string required: true - name: id in: path type: string required: true exposes: - type: rest namespace: server-accountservice-rest port: 8080 description: REST adapter for Consolidate Services — AccountService. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/account name: api-v1-account description: REST surface for api-v1-account. operations: - method: GET name: accountservicelistaccounts description: ListAccounts returns the list of accounts call: server-accountservice.accountservicelistaccounts outputParameters: - type: object mapping: $. - path: /v1/api/v1/account/can-i/{resource}/{action}/{subresource} name: api-v1-account-can-i-resource-action-subresource description: REST surface for api-v1-account-can-i-resource-action-subresource. operations: - method: GET name: accountservicecani description: CanI checks if the current account has permission to perform an action call: server-accountservice.accountservicecani with: resource: rest.resource action: rest.action subresource: rest.subresource outputParameters: - type: object mapping: $. - path: /v1/api/v1/account/password name: api-v1-account-password description: REST surface for api-v1-account-password. operations: - method: PUT name: accountserviceupdatepassword description: UpdatePassword updates an account's password to a new value call: server-accountservice.accountserviceupdatepassword with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/account/{name} name: api-v1-account-name description: REST surface for api-v1-account-name. operations: - method: GET name: accountservicegetaccount description: GetAccount returns an account call: server-accountservice.accountservicegetaccount with: name: rest.name outputParameters: - type: object mapping: $. - path: /v1/api/v1/account/{name}/token name: api-v1-account-name-token description: REST surface for api-v1-account-name-token. operations: - method: POST name: accountservicecreatetoken description: CreateToken creates a token call: server-accountservice.accountservicecreatetoken with: name: rest.name body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/v1/account/{name}/token/{id} name: api-v1-account-name-token-id description: REST surface for api-v1-account-name-token-id. operations: - method: DELETE name: accountservicedeletetoken description: DeleteToken deletes a token call: server-accountservice.accountservicedeletetoken with: name: rest.name id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: server-accountservice-mcp port: 9090 transport: http description: MCP adapter for Consolidate Services — AccountService. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: listaccounts-returns-list-accounts description: ListAccounts returns the list of accounts hints: readOnly: true destructive: false idempotent: true call: server-accountservice.accountservicelistaccounts outputParameters: - type: object mapping: $. - name: cani-checks-if-current-account description: CanI checks if the current account has permission to perform an action hints: readOnly: true destructive: false idempotent: true call: server-accountservice.accountservicecani with: resource: tools.resource action: tools.action subresource: tools.subresource outputParameters: - type: object mapping: $. - name: updatepassword-updates-account-s-password-new description: UpdatePassword updates an account's password to a new value hints: readOnly: false destructive: false idempotent: true call: server-accountservice.accountserviceupdatepassword with: body: tools.body outputParameters: - type: object mapping: $. - name: getaccount-returns-account description: GetAccount returns an account hints: readOnly: true destructive: false idempotent: true call: server-accountservice.accountservicegetaccount with: name: tools.name outputParameters: - type: object mapping: $. - name: createtoken-creates-token description: CreateToken creates a token hints: readOnly: false destructive: false idempotent: false call: server-accountservice.accountservicecreatetoken with: name: tools.name body: tools.body outputParameters: - type: object mapping: $. - name: deletetoken-deletes-token description: DeleteToken deletes a token hints: readOnly: false destructive: true idempotent: true call: server-accountservice.accountservicedeletetoken with: name: tools.name id: tools.id outputParameters: - type: object mapping: $.