{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thoughtbox-ai/json-schema/thoughtbox-ai-internal-completion-request-schema.json",
  "title": "InternalCompletionRequest",
  "description": "thoughtbox#186: a resolved-identity completion request from a trusted\ninternal caller (mpcentral's Slack Lambda today) -- no Cognito session,\ntrust is the shared secret this route checks instead. mpc_tenant_id/\nslack_team_id/slack_user_id together resolve to a User via\nresolve_slack_identity (per-user link if one exists, else the\nworkspace's tenant-default); thread_key scopes conversation continuity\nto one external thread, composed server-side in the handler below, not\ntrusted as pre-composed from the caller.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thoughtbox-ai-openapi.json#/components/schemas/InternalCompletionRequest",
  "properties": {
    "mpc_tenant_id": {
      "type": "string",
      "title": "Mpc Tenant Id"
    },
    "slack_team_id": {
      "type": "string",
      "title": "Slack Team Id"
    },
    "slack_user_id": {
      "type": "string",
      "title": "Slack User Id"
    },
    "thread_key": {
      "type": "string",
      "title": "Thread Key"
    },
    "text": {
      "type": "string",
      "title": "Text"
    },
    "shows_cards": {
      "type": "boolean",
      "title": "Shows Cards",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "mpc_tenant_id",
    "slack_team_id",
    "slack_user_id",
    "thread_key",
    "text"
  ]
}