@namespace("Switchboard") protocol AccessToken { /** A Twilio Access token that the client can use to authenticate with Avvo's Twilio IP Messaging Channels */ record AccessToken { string identity; string token; } /** The accepted attributes that we'd like to fetch by in the index endpoint */ record AccessTokenRequestParams { /** The Twilio Push Notifications SID for the client, used primarily by the iOS SDK */ union { null, int } push_notifications_sid; /** The unique endpoint ID for the IP Messaging Client */ union { null, int } endpoint_id; } array index(AccessTokenRequestParams params); }