naftiko: 1.0.0-alpha2 info: label: Windsurf Enterprise API — analytics description: 'Windsurf Enterprise API — analytics. 3 operations. Lead operation: Get Custom Analytics. Self-contained Naftiko capability covering one Windsurfrules business surface.' tags: - Windsurfrules - analytics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WINDSURFRULES_API_KEY: WINDSURFRULES_API_KEY capability: consumes: - type: http namespace: windsurf-enterprise-analytics baseUri: https://server.codeium.com/api/v1 description: Windsurf Enterprise API — analytics business capability. Self-contained, no shared references. resources: - name: Analytics path: /Analytics operations: - name: getcustomanalytics method: POST description: Get Custom Analytics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: CascadeAnalytics path: /CascadeAnalytics operations: - name: getcascadeanalytics method: POST description: Get Cascade Analytics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: UserPageAnalytics path: /UserPageAnalytics operations: - name: getuserpageanalytics method: POST description: Get User Page Analytics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true exposes: - type: rest namespace: windsurf-enterprise-analytics-rest port: 8080 description: REST adapter for Windsurf Enterprise API — analytics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/analytics name: analytics description: REST surface for Analytics. operations: - method: POST name: getcustomanalytics description: Get Custom Analytics call: windsurf-enterprise-analytics.getcustomanalytics with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/cascadeanalytics name: cascadeanalytics description: REST surface for CascadeAnalytics. operations: - method: POST name: getcascadeanalytics description: Get Cascade Analytics call: windsurf-enterprise-analytics.getcascadeanalytics with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/userpageanalytics name: userpageanalytics description: REST surface for UserPageAnalytics. operations: - method: POST name: getuserpageanalytics description: Get User Page Analytics call: windsurf-enterprise-analytics.getuserpageanalytics with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: windsurf-enterprise-analytics-mcp port: 9090 transport: http description: MCP adapter for Windsurf Enterprise API — analytics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-custom-analytics description: Get Custom Analytics hints: readOnly: true destructive: false idempotent: false call: windsurf-enterprise-analytics.getcustomanalytics with: body: tools.body outputParameters: - type: object mapping: $. - name: get-cascade-analytics description: Get Cascade Analytics hints: readOnly: true destructive: false idempotent: false call: windsurf-enterprise-analytics.getcascadeanalytics with: body: tools.body outputParameters: - type: object mapping: $. - name: get-user-page-analytics description: Get User Page Analytics hints: readOnly: true destructive: false idempotent: false call: windsurf-enterprise-analytics.getuserpageanalytics with: body: tools.body outputParameters: - type: object mapping: $.