naftiko: 1.0.0-alpha2 info: label: Core API — Shifts description: 'Core API — Shifts. 10 operations. Lead operation: List Shifts. Self-contained Naftiko capability covering one Front business surface.' tags: - Front - Shifts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FRONT_API_KEY: FRONT_API_KEY capability: consumes: - type: http namespace: core-shifts baseUri: https://api2.frontapp.com description: Core API — Shifts business capability. Self-contained, no shared references. resources: - name: shifts path: /shifts operations: - name: listshifts method: GET description: List Shifts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createshift method: POST description: Create shift outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: shifts-shift_id path: /shifts/{shift_id} operations: - name: getshift method: GET description: Get shift outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: shift_id in: path type: string description: The Shift ID required: true - name: updateshift method: PATCH description: Update shift outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: shift_id in: path type: string description: The Shift ID required: true - name: body in: body type: object description: Request body (JSON). required: false - name: shifts-shift_id-teammates path: /shifts/{shift_id}/teammates operations: - name: listshiftsteammates method: GET description: List shift's teammates outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: shift_id in: path type: string description: The Shift ID required: true - name: addteammatestoshift method: POST description: Add teammates to shift outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: shift_id in: path type: string description: The Shift ID required: true - name: body in: body type: object description: Request body (JSON). required: false - name: removeteammatesfromshift method: DELETE description: Remove teammates from shift outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: shift_id in: path type: string description: The Shift ID required: true - name: body in: body type: object description: Request body (JSON). required: false - name: teammates-teammate_id-shifts path: /teammates/{teammate_id}/shifts operations: - name: listteammateshifts method: GET description: List Teammate Shifts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teammate_id in: path type: string description: The teammate ID. Alternatively, you can supply an email as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1). required: true - name: teams-team_id-shifts path: /teams/{team_id}/shifts operations: - name: listteamshifts method: GET description: List team Shifts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: team_id in: path type: string description: The team ID required: true - name: createteamshift method: POST description: Create team shift outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: team_id in: path type: string description: The Team ID required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.FRONT_API_KEY}}' exposes: - type: rest namespace: core-shifts-rest port: 8080 description: REST adapter for Core API — Shifts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/shifts name: shifts description: REST surface for shifts. operations: - method: GET name: listshifts description: List Shifts call: core-shifts.listshifts outputParameters: - type: object mapping: $. - method: POST name: createshift description: Create shift call: core-shifts.createshift with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/shifts/{shift-id} name: shifts-shift-id description: REST surface for shifts-shift_id. operations: - method: GET name: getshift description: Get shift call: core-shifts.getshift with: shift_id: rest.shift_id outputParameters: - type: object mapping: $. - method: PATCH name: updateshift description: Update shift call: core-shifts.updateshift with: shift_id: rest.shift_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/shifts/{shift-id}/teammates name: shifts-shift-id-teammates description: REST surface for shifts-shift_id-teammates. operations: - method: GET name: listshiftsteammates description: List shift's teammates call: core-shifts.listshiftsteammates with: shift_id: rest.shift_id outputParameters: - type: object mapping: $. - method: POST name: addteammatestoshift description: Add teammates to shift call: core-shifts.addteammatestoshift with: shift_id: rest.shift_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removeteammatesfromshift description: Remove teammates from shift call: core-shifts.removeteammatesfromshift with: shift_id: rest.shift_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/teammates/{teammate-id}/shifts name: teammates-teammate-id-shifts description: REST surface for teammates-teammate_id-shifts. operations: - method: GET name: listteammateshifts description: List Teammate Shifts call: core-shifts.listteammateshifts with: teammate_id: rest.teammate_id outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/shifts name: teams-team-id-shifts description: REST surface for teams-team_id-shifts. operations: - method: GET name: listteamshifts description: List team Shifts call: core-shifts.listteamshifts with: team_id: rest.team_id outputParameters: - type: object mapping: $. - method: POST name: createteamshift description: Create team shift call: core-shifts.createteamshift with: team_id: rest.team_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-shifts-mcp port: 9090 transport: http description: MCP adapter for Core API — Shifts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-shifts description: List Shifts hints: readOnly: true destructive: false idempotent: true call: core-shifts.listshifts outputParameters: - type: object mapping: $. - name: create-shift description: Create shift hints: readOnly: false destructive: false idempotent: false call: core-shifts.createshift with: body: tools.body outputParameters: - type: object mapping: $. - name: get-shift description: Get shift hints: readOnly: true destructive: false idempotent: true call: core-shifts.getshift with: shift_id: tools.shift_id outputParameters: - type: object mapping: $. - name: update-shift description: Update shift hints: readOnly: false destructive: false idempotent: true call: core-shifts.updateshift with: shift_id: tools.shift_id body: tools.body outputParameters: - type: object mapping: $. - name: list-shift-s-teammates description: List shift's teammates hints: readOnly: true destructive: false idempotent: true call: core-shifts.listshiftsteammates with: shift_id: tools.shift_id outputParameters: - type: object mapping: $. - name: add-teammates-shift description: Add teammates to shift hints: readOnly: false destructive: false idempotent: false call: core-shifts.addteammatestoshift with: shift_id: tools.shift_id body: tools.body outputParameters: - type: object mapping: $. - name: remove-teammates-shift description: Remove teammates from shift hints: readOnly: false destructive: true idempotent: true call: core-shifts.removeteammatesfromshift with: shift_id: tools.shift_id body: tools.body outputParameters: - type: object mapping: $. - name: list-teammate-shifts description: List Teammate Shifts hints: readOnly: true destructive: false idempotent: true call: core-shifts.listteammateshifts with: teammate_id: tools.teammate_id outputParameters: - type: object mapping: $. - name: list-team-shifts description: List team Shifts hints: readOnly: true destructive: false idempotent: true call: core-shifts.listteamshifts with: team_id: tools.team_id outputParameters: - type: object mapping: $. - name: create-team-shift description: Create team shift hints: readOnly: false destructive: false idempotent: false call: core-shifts.createteamshift with: team_id: tools.team_id body: tools.body outputParameters: - type: object mapping: $.