naftiko: 1.0.0-alpha2 info: label: Modern Treasury — InvoiceLineItem description: 'Modern Treasury — InvoiceLineItem. 5 operations. Lead operation: list invoice_line_items. Self-contained Naftiko capability covering one Modern Treasury business surface.' tags: - Modern Treasury - InvoiceLineItem created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MODERN_TREASURY_API_KEY: MODERN_TREASURY_API_KEY capability: consumes: - type: http namespace: modern-treasury-invoicelineitem baseUri: http://localhost:3000 description: Modern Treasury — InvoiceLineItem business capability. Self-contained, no shared references. resources: - name: api-invoices-invoice_id-invoice_line_items path: /api/invoices/{invoice_id}/invoice_line_items operations: - name: listinvoicelineitems method: GET description: list invoice_line_items outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: after_cursor in: query type: string - name: per_page in: query type: integer - name: createinvoicelineitem method: POST description: create invoice_line_item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: Idempotency-Key in: header type: string description: This key should be something unique, preferably something like an UUID. - name: body in: body type: object description: Request body (JSON). required: false - name: api-invoices-invoice_id-invoice_line_items-id path: /api/invoices/{invoice_id}/invoice_line_items/{id} operations: - name: getinvoicelineitem method: GET description: get invoice_line_item outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateinvoicelineitem method: PATCH description: update invoice_line_item outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: deleteinvoicelineitem method: DELETE description: delete invoice_line_item outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: basic username: '{{env.MODERN_TREASURY_USER}}' password: '{{env.MODERN_TREASURY_PASS}}' exposes: - type: rest namespace: modern-treasury-invoicelineitem-rest port: 8080 description: REST adapter for Modern Treasury — InvoiceLineItem. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/invoices/{invoice-id}/invoice-line-items name: api-invoices-invoice-id-invoice-line-items description: REST surface for api-invoices-invoice_id-invoice_line_items. operations: - method: GET name: listinvoicelineitems description: list invoice_line_items call: modern-treasury-invoicelineitem.listinvoicelineitems with: after_cursor: rest.after_cursor per_page: rest.per_page outputParameters: - type: object mapping: $. - method: POST name: createinvoicelineitem description: create invoice_line_item call: modern-treasury-invoicelineitem.createinvoicelineitem with: Idempotency-Key: rest.Idempotency-Key body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/invoices/{invoice-id}/invoice-line-items/{id} name: api-invoices-invoice-id-invoice-line-items-id description: REST surface for api-invoices-invoice_id-invoice_line_items-id. operations: - method: GET name: getinvoicelineitem description: get invoice_line_item call: modern-treasury-invoicelineitem.getinvoicelineitem outputParameters: - type: object mapping: $. - method: PATCH name: updateinvoicelineitem description: update invoice_line_item call: modern-treasury-invoicelineitem.updateinvoicelineitem with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteinvoicelineitem description: delete invoice_line_item call: modern-treasury-invoicelineitem.deleteinvoicelineitem outputParameters: - type: object mapping: $. - type: mcp namespace: modern-treasury-invoicelineitem-mcp port: 9090 transport: http description: MCP adapter for Modern Treasury — InvoiceLineItem. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-invoice-line-items description: list invoice_line_items hints: readOnly: true destructive: false idempotent: true call: modern-treasury-invoicelineitem.listinvoicelineitems with: after_cursor: tools.after_cursor per_page: tools.per_page outputParameters: - type: object mapping: $. - name: create-invoice-line-item description: create invoice_line_item hints: readOnly: false destructive: false idempotent: false call: modern-treasury-invoicelineitem.createinvoicelineitem with: Idempotency-Key: tools.Idempotency-Key body: tools.body outputParameters: - type: object mapping: $. - name: get-invoice-line-item description: get invoice_line_item hints: readOnly: true destructive: false idempotent: true call: modern-treasury-invoicelineitem.getinvoicelineitem outputParameters: - type: object mapping: $. - name: update-invoice-line-item description: update invoice_line_item hints: readOnly: false destructive: false idempotent: true call: modern-treasury-invoicelineitem.updateinvoicelineitem with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-invoice-line-item description: delete invoice_line_item hints: readOnly: false destructive: true idempotent: true call: modern-treasury-invoicelineitem.deleteinvoicelineitem outputParameters: - type: object mapping: $.