{"$id":"https://events-schemas.twilio.com/SuperSim.ConnectionEvent/1","$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"definitions":{"ErrorInfo":{"additionalProperties":false,"description":"ErrorInfo definition","properties":{"code":{"description":"Twilio Error Code.","type":"integer"},"message":{"description":"Short message indicating why the error occurred. Could include standardized diameter error messages.","type":"string"}},"required":["code","message"],"type":"object"},"LocationInfo":{"additionalProperties":false,"description":"LocationInfo definition","properties":{"cell_id":{"description":"The unique ID of the cellular tower that the device was attached to.","type":"string"},"lac":{"description":"Location area code (LAC) of the cell tower.","type":"string"},"lat":{"description":"Latitude. The spherical coordinate value of the estimated cellular tower location parallel to the Equator.","type":"number"},"lon":{"description":"Longitude. The spherical coordinate value of the estimated cellular tower location from the geographical North Pole to the geographical South Pole.","type":"number"}},"required":["cell_id"],"type":"object"},"NetworkInfo":{"additionalProperties":false,"description":"NetworkInfo definition","properties":{"friendly_name":{"description":"Human readable name of the Network resource to which the MCC-MNC belongs.","type":"string"},"iso_country":{"description":"ISO2 code of the Network resource to which the MCC-MNC belongs.","type":"string"},"mcc":{"description":"The mobile country code of the network that the Super SIM attempted to connect to or is connected to.","type":"string"},"mnc":{"description":"The mobile network code of the network that the Super SIM attempted to connect to or is connected to.","type":"string"},"sid":{"description":"SID of the Network resource to which the MCC MNC belongs.","type":"string"}},"required":[],"type":"object"}},"description":"ConnectionEvent definition","properties":{"account_sid":{"description":"Account Sid of the SuperSIM this record belongs to.","type":"string"},"apn":{"description":"Access Point Name used to establish a data session.","type":"string"},"data_download":{"description":"The amount of data downloaded to the device in bytes between the data_session_update_start_time and data_session_update_end_time.","type":"integer"},"data_modifier":{"description":"Indicates if the SuperSIM's data is blocked due to the system such as when the SIM has reached its data limit.","type":"string"},"data_session_end_time":{"description":"Data Session end time in UTC and in ISO8601 format.","type":"string"},"data_session_sid":{"description":"Data Session Sid only associated with DataSession events.","type":"string"},"data_session_start_time":{"description":"Data Session start time in UTC and in ISO8601 format.","type":"string"},"data_session_update_end_time":{"description":"Data Session update end time in UTC and in ISO8601 format.","type":"string"},"data_session_update_start_time":{"description":"Data Session update start time in UTC and in ISO8601 format.","type":"string"},"data_upload":{"description":"The amount of data uploaded from the device in bytes between the data_session_update_start_time and data_session_update_end_time.","type":"integer"},"error":{"$ref":"#/definitions/ErrorInfo","description":"Object containing information about an error encountered."},"event_sid":{"description":"Sid of the event. This is a copy of ce_id header field.","type":"string"},"event_type":{"description":"Type of connection event. This is a copy of ce_type header field.","type":"string"},"fleet_sid":{"description":"The SID of the Fleet to which the Super SIM is assigned.","type":"string"},"imei":{"description":"The 'international mobile equipment identity' is the unique ID of the device using the SIM to connect. May be null as it is not guaranteed that the visited network will pass on this information.","type":"string"},"imsi":{"description":"The IMSI used by the Super SIM to connect.","type":"string"},"ip_address":{"description":"The IP address assigned to the device. This IP address is not publicly addressable.","type":"string"},"location":{"$ref":"#/definitions/LocationInfo","description":"An object containing information about the location of the cell to which the device was connected.  May be null as location information is not guaranteed to be sent by the visited network."},"network":{"$ref":"#/definitions/NetworkInfo","description":"An object containing information about the network that the Super SIM attempted to connect to or is connected to."},"rat_type":{"description":"The generation of wireless technology that the device was using.","type":"string"},"sim_iccid":{"description":"ICCID of the SuperSIM this record belongs to.","type":"string"},"sim_sid":{"description":"Sim Sid of the SuperSIM this record belongs to.","type":"string"},"sim_unique_name":{"description":"Unique name of the SuperSIM this record belongs to.","type":"string"},"timestamp":{"description":"UTC timestamp when the event occurred in ISO8601 format.","type":"string"}},"required":["event_sid","event_type","account_sid","sim_sid","sim_iccid","timestamp"],"title":"ConnectionEvent","type":"object"}