package client import ( "fmt" "net/url" "strings" ) // invitePrefix is the versioned fingerprint every minted link carries // (web/static/invite.js buildInviteFragment). Older links are bare T. const invitePrefix = "e1." // InviteLink is a parsed /join/... link: where to join, the secret T (never // sent to the server), and the inviter's suggested pre-fill name (rides in the // fragment for the same reason — the server must not see it). type InviteLink struct { Base string // scheme://host origin T string // the invite secret (base64url) Name string // suggested name ("" when the link carries none) } // ParseInviteLink parses a full invite link — https://host/join/