OptionalauthCode?: string/ Authentication code created by host (only present if auth_method is SHARED_SECRET).
/ How the invitation is authenticated.
Optionalcreated?: TimestampOptionaldelegationCredentialId?: PublicKey/ Present on Type.DELEGATED invitations.
OptionalguestKeypair?: AdmissionKeypair/ Guest's keypair required for AuthMethod.KNOWN_PUBLIC_KEY.
OptionalidentityKey?: PublicKey/ Guest's identity.
/ Local identifier (random).
/ Kind of access the invitation will grant.
Optionallifetime?: number/ Number of seconds the host will honor the invitation. 0 means the invitation persists forever. TODO(nf): some feedback mechanism or GC for immortal invitations? TODO(nf): should the creator have a way to make an invitation last as long as the client? this was the previous behavior.
OptionalmultiUse?: boolean/ Whether an invitation can be used multiple times.
Optionalpersistent?: booleanTODO(nf): should these exist elsewhere since they only have meaning to the host? / Host should resume invitation on startup until timeout.
Optionalrole?: SpaceMember_Role/ Role of the admitted member, defaults to ADMIN.
OptionalspaceId?: string/ Id of a the space to join (only present if kind is SPACE).
OptionalspaceKey?: PublicKey/ Space to join (only present if kind is SPACE).
/ Local state.
OptionalswarmKey?: PublicKey/ Swarm rendezvous (random).
Optionaltarget?: string/ Path or identifier to navigate to after successful authentication.
Optionaltimeout?: number/ Timeout for guest to complete invitation once connected (ms).
/ Determines the behavior of the invitation.
Represents the invitation state passed between client and service.