Metastatic.Semantic.Domains.ExternalApi (Metastatic v0.10.4)

View Source

External API operation patterns for semantic enrichment.

This module defines patterns for detecting external/third-party API calls across multiple languages. These are higher-level service integrations beyond basic HTTP. Patterns are registered with the Metastatic.Semantic.Patterns registry at module load time.

Supported Services

Cloud Services

  • AWS SDK - Amazon Web Services
  • Google Cloud - GCP services
  • Azure - Microsoft Azure
  • Stripe - Payment processing
  • Twilio - Communication APIs
  • SendGrid - Email services

Social/OAuth

  • GitHub API - GitHub integrations
  • Slack API - Slack integrations
  • Twitter/X API - Social media

External API Operations

OperationDescription
:callGeneric API call
:uploadUpload to external service
:downloadDownload from external service
:sendSend notification/message
:chargePayment/billing operation
:webhookWebhook handling
:searchSearch/query external service
:syncSynchronization with service

Pattern Structure

Each pattern is a tuple of {pattern, spec} where:

  • pattern - String or Regex to match function names
  • spec - Map with operation details:
    • :operation - The external API operation type
    • :framework - The service/SDK identifier
    • :extract_target - Strategy for extracting service/resource name

Summary

Functions

Registers all external API patterns for all languages.

Functions

register_all()

@spec register_all() :: :ok

Registers all external API patterns for all languages.

Called automatically when the module is loaded. Can also be called manually to re-register patterns (e.g., after clearing).