naftiko: 1.0.0-alpha2 info: label: Salesforce — Subscriptions description: 'Salesforce — Subscriptions. 6 operations. Lead operation: Salesforce Delete Subscription. Self-contained Naftiko capability covering one Salesforce business surface.' tags: - Salesforce - Subscriptions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SALESFORCE_API_KEY: SALESFORCE_API_KEY capability: consumes: - type: http namespace: salesforce-subscriptions baseUri: https://login.salesforce.com description: Salesforce — Subscriptions business capability. Self-contained, no shared references. resources: - name: data-v64.0-chatter-subscriptions-SUBSCRIPTION_ID path: /data/v64.0/chatter/subscriptions/{SUBSCRIPTION_ID} operations: - name: deletesubscription method: DELETE description: Salesforce Delete Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: SUBSCRIPTION_ID in: path type: string required: true - name: data-v64.0-tooling-sobjects-ManagedEventSubscription path: /data/v64.0/tooling/sobjects/ManagedEventSubscription operations: - name: createmanagedeventsubscription method: POST description: Salesforce Create Managed Event Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: data-v64.0-tooling-sobjects-ManagedEventSubscription-describe path: /data/v64.0/tooling/sobjects/ManagedEventSubscription/describe operations: - name: describemanagedeventsubscription method: GET description: Salesforce Describe Managed Event Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. - name: data-v64.0-tooling-sobjects-ManagedEventSubscription-managedEventSubscriptionId path: /data/v64.0/tooling/sobjects/ManagedEventSubscription/{managedEventSubscriptionId} operations: - name: getmanagedeventsubscriptionbyid method: GET description: Salesforce Get Managed Event Subscription by Id outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: managedEventSubscriptionId in: path type: string required: true - name: updatemanagedeventsubscription method: PATCH description: Salesforce Update Managed Event Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: managedEventSubscriptionId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletemanagedeventsubscription method: DELETE description: Salesforce Delete Managed Event Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: managedEventSubscriptionId in: path type: string required: true authentication: type: bearer token: '{{env.SALESFORCE_API_KEY}}' exposes: - type: rest namespace: salesforce-subscriptions-rest port: 8080 description: REST adapter for Salesforce — Subscriptions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/data/v64-0/chatter/subscriptions/{subscription-id} name: data-v64-0-chatter-subscriptions-subscription-id description: REST surface for data-v64.0-chatter-subscriptions-SUBSCRIPTION_ID. operations: - method: DELETE name: deletesubscription description: Salesforce Delete Subscription call: salesforce-subscriptions.deletesubscription with: SUBSCRIPTION_ID: rest.SUBSCRIPTION_ID outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/tooling/sobjects/managedeventsubscription name: data-v64-0-tooling-sobjects-managedeventsubscription description: REST surface for data-v64.0-tooling-sobjects-ManagedEventSubscription. operations: - method: POST name: createmanagedeventsubscription description: Salesforce Create Managed Event Subscription call: salesforce-subscriptions.createmanagedeventsubscription with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/tooling/sobjects/managedeventsubscription/describe name: data-v64-0-tooling-sobjects-managedeventsubscription-describe description: REST surface for data-v64.0-tooling-sobjects-ManagedEventSubscription-describe. operations: - method: GET name: describemanagedeventsubscription description: Salesforce Describe Managed Event Subscription call: salesforce-subscriptions.describemanagedeventsubscription outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/tooling/sobjects/managedeventsubscription/{managedeventsubscriptionid} name: data-v64-0-tooling-sobjects-managedeventsubscription-managedeventsubscriptionid description: REST surface for data-v64.0-tooling-sobjects-ManagedEventSubscription-managedEventSubscriptionId. operations: - method: GET name: getmanagedeventsubscriptionbyid description: Salesforce Get Managed Event Subscription by Id call: salesforce-subscriptions.getmanagedeventsubscriptionbyid with: managedEventSubscriptionId: rest.managedEventSubscriptionId outputParameters: - type: object mapping: $. - method: PATCH name: updatemanagedeventsubscription description: Salesforce Update Managed Event Subscription call: salesforce-subscriptions.updatemanagedeventsubscription with: managedEventSubscriptionId: rest.managedEventSubscriptionId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletemanagedeventsubscription description: Salesforce Delete Managed Event Subscription call: salesforce-subscriptions.deletemanagedeventsubscription with: managedEventSubscriptionId: rest.managedEventSubscriptionId outputParameters: - type: object mapping: $. - type: mcp namespace: salesforce-subscriptions-mcp port: 9090 transport: http description: MCP adapter for Salesforce — Subscriptions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: salesforce-delete-subscription description: Salesforce Delete Subscription hints: readOnly: false destructive: true idempotent: true call: salesforce-subscriptions.deletesubscription with: SUBSCRIPTION_ID: tools.SUBSCRIPTION_ID outputParameters: - type: object mapping: $. - name: salesforce-create-managed-event-subscription description: Salesforce Create Managed Event Subscription hints: readOnly: false destructive: false idempotent: false call: salesforce-subscriptions.createmanagedeventsubscription with: body: tools.body outputParameters: - type: object mapping: $. - name: salesforce-describe-managed-event-subscription description: Salesforce Describe Managed Event Subscription hints: readOnly: true destructive: false idempotent: true call: salesforce-subscriptions.describemanagedeventsubscription outputParameters: - type: object mapping: $. - name: salesforce-get-managed-event-subscription description: Salesforce Get Managed Event Subscription by Id hints: readOnly: true destructive: false idempotent: true call: salesforce-subscriptions.getmanagedeventsubscriptionbyid with: managedEventSubscriptionId: tools.managedEventSubscriptionId outputParameters: - type: object mapping: $. - name: salesforce-update-managed-event-subscription description: Salesforce Update Managed Event Subscription hints: readOnly: false destructive: false idempotent: true call: salesforce-subscriptions.updatemanagedeventsubscription with: managedEventSubscriptionId: tools.managedEventSubscriptionId body: tools.body outputParameters: - type: object mapping: $. - name: salesforce-delete-managed-event-subscription description: Salesforce Delete Managed Event Subscription hints: readOnly: false destructive: true idempotent: true call: salesforce-subscriptions.deletemanagedeventsubscription with: managedEventSubscriptionId: tools.managedEventSubscriptionId outputParameters: - type: object mapping: $.