Module: Vortex::Types
- Defined in:
- lib/vortex/types.rb
Overview
Type documentation for Vortex SDK responses Ruby uses dynamic typing with Hashes, but this documents the expected structure
Constant Summary collapse
- GROUP_INPUT =
Group structure for JWT generation (input)
{ type: String, # Required: Group type (e.g., "workspace", "team") id: String, # Optional: Legacy field (deprecated, use groupId) groupId: String, # Optional: Preferred - Customer's group ID name: String # Required: Group name }.freeze
- INVITATION_GROUP =
InvitationGroup structure from API responses This matches the MemberGroups table structure from the API
{ id: String, # Vortex internal UUID accountId: String, # Vortex account ID groupId: String, # Customer's group ID (the ID they provided to Vortex) type: String, # Group type (e.g., "workspace", "team") name: String, # Group name createdAt: String # ISO 8601 timestamp when the group was created }.freeze
- ACCEPT_USER =
AcceptUser structure for accepting invitations (new format - preferred)
{ email: String, # Optional but either email or phone must be provided phone: String, # Optional but either email or phone must be provided name: String # Optional }.freeze
- INVITATION =
Invitation structure from API responses
{ id: String, accountId: String, clickThroughs: Integer, configurationAttributes: Hash, attributes: Hash, createdAt: String, deactivated: :boolean, deliveryCount: Integer, deliveryTypes: Array, # of String foreignCreatorId: String, invitationType: String, modifiedAt: String, status: String, target: Array, # of { type: String, value: String } views: Integer, widgetConfigurationId: String, projectId: String, groups: Array, # of INVITATION_GROUP structures accepts: Array, # of acceptance structures expired: :boolean, expires: String # ISO 8601 timestamp (optional) }.freeze