{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/currents-dev/json-schema/currents-dev-my-organizations-response-schema.json",
  "title": "MyOrganizationsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/currents-dev-organizations-api-openapi.yml#/components/schemas/MyOrganizationsResponse",
  "type": "object",
  "required": [
    "status",
    "data"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "OK"
      ]
    },
    "data": {
      "type": "array",
      "description": "Sorted by name.",
      "items": {
        "$ref": "#/$defs/MyOrganization"
      }
    }
  },
  "$defs": {
    "MyOrganization": {
      "type": "object",
      "required": [
        "orgId",
        "name",
        "role",
        "current"
      ],
      "properties": {
        "orgId": {
          "type": "string",
          "description": "Organization ID. The same value as the `org_id` claim of an OAuth access token."
        },
        "name": {
          "type": "string",
          "description": "Organization display name"
        },
        "role": {
          "type": "string",
          "enum": [
            "admin",
            "actions_admin",
            "member",
            "guest"
          ],
          "description": "The authenticated user's role in this organization. The same values as the `org_role` claim of an OAuth access token."
        },
        "current": {
          "type": "boolean",
          "description": "True for the organization the presented token was issued for."
        }
      }
    }
  }
}