{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wayza-com/json-schema/wayza-com-invite-schema.json",
  "title": "Invite",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/wayza-com-wayza-openapi.json#/components/schemas/Invite",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "The code"
    },
    "url": {
      "type": "string",
      "description": "Link to share"
    },
    "group": {
      "type": "string",
      "description": "Group id"
    },
    "group_name": {
      "type": "string",
      "description": "peek_invite only"
    },
    "needs_review": {
      "type": "boolean",
      "description": "peek_invite only: an organizer lets them in"
    },
    "invited_by": {
      "type": "string",
      "description": "peek_invite only: who made a one-time invite (never on a reusable link)"
    },
    "reusable": {
      "type": "boolean"
    },
    "for_age": {
      "type": "string",
      "description": "adult (18+), teen16 (16-17), teen13 (13-15) or child (under 13)",
      "enum": [
        "adult",
        "teen16",
        "teen13",
        "child"
      ]
    },
    "invitee": {
      "type": "string",
      "description": "Name the inviter gave"
    },
    "item_ref": {
      "type": "string",
      "description": "The app's own item this invite points at (an event, say)"
    },
    "created_by": {
      "type": "string",
      "description": "Who made it (a person or AI id); not on peek_invite"
    },
    "status": {
      "type": "string",
      "description": "waiting, approved, declined, used"
    },
    "expires_at": {
      "type": "string",
      "description": "ISO time"
    }
  },
  "required": [
    "code",
    "group"
  ]
}