{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/setup_user/":{"post":{"summary":"Setup User","description":"This creates a user on the mac and sets up the vnc to connect to the mac. Only for our use rn","operationId":"setup_user_setup_user__post","parameters":[{"name":"api-key","in":"header","required":true,"schema":{"type":"string","title":"Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/check_icloud_status/{username}":{"get":{"summary":"Check Icloud Status","description":"Check the status of iCloud setup and Airpinpoint app launch for a specific user","operationId":"check_icloud_status_check_icloud_status__username__get","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","title":"Username"}},{"name":"api-key","in":"header","required":true,"schema":{"type":"string","title":"Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ICloudStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/check_all_icloud_status":{"get":{"summary":"Check All Icloud Status","description":"Check the status of iCloud setup for all users","operationId":"check_all_icloud_status_check_all_icloud_status_get","parameters":[{"name":"api-key","in":"header","required":true,"schema":{"type":"string","title":"Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ICloudStatusResponse"},"title":"Response Check All Icloud Status Check All Icloud Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/account":{"get":{"tags":["Account"],"summary":"Get Account Info","description":"Retrieve the current user's account information.","operationId":"get_account_info_v1_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}]}},"/v1/trackables":{"get":{"tags":["Locations"],"summary":"List All Trackables","description":"Retrieve all trackables with their latest location and battery information.\n\n- skip: Number of items to skip (for pagination)\n- limit: Maximum number of items to return (for pagination)","operationId":"list_all_trackables_v1_trackables_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrackableDetail"},"title":"Response List All Trackables V1 Trackables Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/trackables/{trackable_id}":{"get":{"tags":["Trackables"],"summary":"Get Trackable Details","description":"Retrieve details of a specific beacon.","operationId":"get_trackable_details_v1_trackables__trackable_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"trackable_id","in":"path","required":true,"schema":{"type":"string","title":"Trackable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackableDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/trackables/{trackable_id}/battery":{"get":{"tags":["Trackables"],"summary":"Get Trackable Battery Info","description":"Retrieve battery information for a specific beacon.\n\nReturns battery life details including:\n- Last battery reset date\n- Battery life in months\n- Estimated days remaining","operationId":"get_trackable_battery_info_v1_trackables__trackable_id__battery_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"trackable_id","in":"path","required":true,"schema":{"type":"string","title":"Trackable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatteryInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Trackables"],"summary":"Reset Trackable Battery","description":"Reset the battery life for a specific beacon.\n\nMarks the current date as the last battery reset date and sets the expected\nbattery life in months. This is used to calculate remaining battery life.","operationId":"reset_trackable_battery_v1_trackables__trackable_id__battery_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"trackable_id","in":"path","required":true,"schema":{"type":"string","title":"Trackable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatteryResetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/trackables/{trackable_id}/current_location":{"get":{"tags":["Locations"],"summary":"Get Trackable Current Location","description":"Retrieve the most recent location for a specific beacon.","operationId":"get_trackable_current_location_v1_trackables__trackable_id__current_location_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"trackable_id","in":"path","required":true,"schema":{"type":"string","title":"Trackable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationBase"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/trackables/{trackable_id}/locations":{"get":{"tags":["Locations"],"summary":"Get Trackable Location History","description":"Retrieve location history for a specific trackable item.","operationId":"get_trackable_location_history_v1_trackables__trackable_id__locations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"trackable_id","in":"path","required":true,"schema":{"type":"string","title":"Trackable Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip (for pagination)","default":0,"title":"Skip"},"description":"Number of items to skip (for pagination)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of items to return (for pagination)","default":10,"title":"Limit"},"description":"Maximum number of items to return (for pagination)"},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start of the time range to filter locations","title":"Start Time"},"description":"Start of the time range to filter locations"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"End of the time range to filter locations","title":"End Time"},"description":"End of the time range to filter locations"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocationBase"},"title":"Response Get Trackable Location History V1 Trackables  Trackable Id  Locations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/geofences":{"get":{"tags":["Geofences"],"summary":"List Geofences","description":"Retrieve a list of geofences for the current user. Only for business users\n\n- skip: Number of items to skip (for pagination)\n- limit: Maximum number of items to return (for pagination)\n- trackable_id: Optional ID of a specific trackable item to filter geofences","operationId":"list_geofences_v1_geofences_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"trackable_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trackable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GeofenceBase"},"title":"Response List Geofences V1 Geofences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Geofences"],"summary":"Create Geofence","description":"Create a new geofence for multiple trackable items. Only for business users\n\n- geofence: GeofenceCreate object containing geofence details and list of trackable IDs","operationId":"create_geofence_v1_geofences_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeofenceCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeofenceBase"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/geofences/{geofence_id}":{"delete":{"tags":["Geofences"],"summary":"Delete Geofence","description":"Delete a geofence belonging to the current user.\n\n- geofence_id: ID of the geofence to delete","operationId":"delete_geofence_v1_geofences__geofence_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"geofence_id","in":"path","required":true,"schema":{"type":"string","title":"Geofence Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Geofences"],"summary":"Update Geofence","description":"Update an existing geofence, including webhook configuration.\n\n- geofence_id: ID of the geofence to update\n- geofence_update: GeofenceUpdate object containing fields to update","operationId":"update_geofence_v1_geofences__geofence_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"geofence_id","in":"path","required":true,"schema":{"type":"string","title":"Geofence Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeofenceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeofenceBase"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/share-links":{"post":{"tags":["Share"],"summary":"Create Share Link","description":"Generate a share link for a beacon.\nThe link will be valid for the specified number of hours (1-168).\n\n- share_link: ShareLinkCreate object containing beacon ID and hours","operationId":"create_share_link_v1_share_links_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareLinkCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}]}},"/v1/usage":{"get":{"summary":"Read User Usage","description":"TODO fix to get usage for the current billing period, check CUstomer table for the billing start date","operationId":"read_user_usage_v1_usage_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","format":"date-time","title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","format":"date-time","title":"End Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usage/total":{"get":{"summary":"Read Total Requests","operationId":"read_total_requests_v1_usage_total_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","format":"date-time","title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","format":"date-time","title":"End Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"integer","title":"Response Read Total Requests V1 Usage Total Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/geofences/{geofence_id}/webhooks":{"get":{"tags":["Webhooks"],"summary":"Get Webhook Deliveries","description":"Get webhook delivery history for a specific geofence.\n\n- geofence_id: ID of the geofence\n- limit: Maximum number of deliveries to return\n- successful: Filter by successful/failed deliveries","operationId":"get_webhook_deliveries_v1_geofences__geofence_id__webhooks_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"geofence_id","in":"path","required":true,"schema":{"type":"string","title":"Geofence Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}},{"name":"successful","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Successful"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryBase"},"title":"Response Get Webhook Deliveries V1 Geofences  Geofence Id  Webhooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/geofences/{geofence_id}/webhooks/{delivery_id}":{"get":{"tags":["Webhooks"],"summary":"Get Webhook Delivery Detail","description":"Get detailed information about a specific webhook delivery.\n\n- geofence_id: ID of the geofence\n- delivery_id: ID of the webhook delivery","operationId":"get_webhook_delivery_detail_v1_geofences__geofence_id__webhooks__delivery_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"geofence_id","in":"path","required":true,"schema":{"type":"string","title":"Geofence Id"}},{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/geofences/{geofence_id}/test-webhook":{"post":{"tags":["Webhooks"],"summary":"Test Webhook","description":"Test a webhook configuration by sending a test payload to the configured endpoint.\n\n- geofence_id: ID of the geofence with the webhook configuration to test\n- test_data: Configuration for the test, including the event type\n\nReturns an object indicating success or failure of the webhook delivery.","operationId":"test_webhook_v1_geofences__geofence_id__test_webhook_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"geofence_id","in":"path","required":true,"schema":{"type":"string","title":"Geofence Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"BatteryInfo":{"properties":{"lastBatteryReset":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastbatteryreset"},"batteryMonths":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Batterymonths"},"estimatedDaysRemaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimateddaysremaining"},"batteryPercentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Batterypercentage"}},"type":"object","required":["lastBatteryReset","batteryMonths","estimatedDaysRemaining","batteryPercentage"],"title":"BatteryInfo"},"BatteryResetRequest":{"properties":{"batteryMonths":{"type":"integer","title":"Batterymonths"}},"type":"object","required":["batteryMonths"],"title":"BatteryResetRequest"},"GeofenceBase":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"radius":{"type":"number","title":"Radius"},"notifyType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notifytype"},"notifyDestination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notifydestination"},"trackableId":{"items":{"type":"string"},"type":"array","title":"Trackableid","default":[]},"webhookEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Webhookenabled","default":false},"lastWebhookSuccess":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastwebhooksuccess"}},"type":"object","required":["id","name","latitude","longitude","radius"],"title":"GeofenceBase"},"GeofenceCreate":{"properties":{"name":{"type":"string","title":"Name"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"radius":{"type":"number","title":"Radius"},"notifyType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notifytype"},"notifyDestination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notifydestination"},"trackableId":{"items":{"type":"string"},"type":"array","title":"Trackableid","default":[]},"webhookSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhooksecret"},"webhookEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Webhookenabled","default":false},"webhookHeaders":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Webhookheaders"}},"type":"object","required":["name","latitude","longitude","radius"],"title":"GeofenceCreate"},"GeofenceUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"radius":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Radius"},"notifyType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notifytype"},"notifyDestination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notifydestination"},"trackableId":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Trackableid"},"webhookSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhooksecret"},"webhookEnabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Webhookenabled"},"webhookHeaders":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Webhookheaders"}},"type":"object","title":"GeofenceUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ICloudStatusResponse":{"properties":{"username":{"type":"string","title":"Username"},"appLaunched":{"type":"boolean","title":"Applaunched"},"hasOwnedBeacons":{"type":"boolean","title":"Hasownedbeacons"},"recordCount":{"type":"integer","title":"Recordcount"},"icloudWorking":{"type":"boolean","title":"Icloudworking"},"statusUpdate":{"type":"string","title":"Statusupdate"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["username","appLaunched","hasOwnedBeacons","recordCount","icloudWorking","statusUpdate"],"title":"ICloudStatusResponse"},"LocationBase":{"properties":{"id":{"type":"string","title":"Id"},"trackableId":{"type":"string","title":"Trackableid"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"altitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Altitude"},"horizontalAccuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Horizontalaccuracy"},"verticalAccuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Verticalaccuracy"},"batteryLevel":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Batterylevel"},"timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timestamp"},"isOld":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isold"},"isInaccurate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Isinaccurate"},"createdAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatedat"},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deletedat"}},"type":"object","required":["id","trackableId","latitude","longitude","altitude","horizontalAccuracy","verticalAccuracy","batteryLevel","timestamp","isOld","isInaccurate","createdAt","updatedAt","deletedAt"],"title":"LocationBase"},"Message":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"Message"},"ShareLinkCreate":{"properties":{"trackableId":{"type":"string","title":"Trackableid"},"hours":{"type":"integer","maximum":168.0,"minimum":1.0,"title":"Hours","description":"Number of hours the link will be valid (1-168)"}},"type":"object","required":["trackableId","hours"],"title":"ShareLinkCreate"},"ShareLinkResponse":{"properties":{"shareUrl":{"type":"string","title":"Shareurl","description":"Full URL for sharing the trackable's location"}},"type":"object","required":["shareUrl"],"title":"ShareLinkResponse"},"TrackableDetail":{"properties":{"id":{"type":"string","title":"Id"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"enabled":{"type":"boolean","title":"Enabled"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"pairedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pairedat"},"lastKnownLocation":{"anyOf":[{"$ref":"#/components/schemas/LocationBase"},{"type":"null"}]},"batteryInfo":{"anyOf":[{"$ref":"#/components/schemas/BatteryInfo"},{"type":"null"}]}},"type":"object","required":["id","model","name","enabled","createdAt","pairedAt"],"title":"TrackableDetail"},"User":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"id":{"type":"string","format":"uuid4","title":"Id"},"emailVerified":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Emailverified"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","required":["name","email","id","emailVerified","image"],"title":"User"},"UserSetupRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"type":"string","title":"Email"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"id":{"type":"string","title":"Id"},"isAdmin":{"type":"boolean","title":"Isadmin"}},"type":"object","required":["email","id","isAdmin"],"title":"UserSetupRequest"},"UserSetupResponse":{"properties":{"username":{"type":"string","title":"Username"},"tempPassword":{"type":"string","title":"Temppassword"},"vncToken":{"type":"string","title":"Vnctoken"},"message":{"type":"string","title":"Message"}},"type":"object","required":["username","tempPassword","vncToken","message"],"title":"UserSetupResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebhookDeliveryBase":{"properties":{"id":{"type":"string","title":"Id"},"geofenceId":{"type":"string","title":"Geofenceid"},"trackableId":{"type":"string","title":"Trackableid"},"eventType":{"type":"string","title":"Eventtype"},"successful":{"type":"boolean","title":"Successful"},"responseStatus":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Responsestatus"},"attemptedAt":{"type":"string","format":"date-time","title":"Attemptedat"}},"type":"object","required":["id","geofenceId","trackableId","eventType","successful","attemptedAt"],"title":"WebhookDeliveryBase"},"WebhookDeliveryDetail":{"properties":{"id":{"type":"string","title":"Id"},"geofenceId":{"type":"string","title":"Geofenceid"},"trackableId":{"type":"string","title":"Trackableid"},"eventType":{"type":"string","title":"Eventtype"},"successful":{"type":"boolean","title":"Successful"},"responseStatus":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Responsestatus"},"attemptedAt":{"type":"string","format":"date-time","title":"Attemptedat"},"payload":{"type":"object","title":"Payload"},"responseBody":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsebody"}},"type":"object","required":["id","geofenceId","trackableId","eventType","successful","attemptedAt","payload"],"title":"WebhookDeliveryDetail"},"WebhookTestRequest":{"properties":{"geofenceId":{"type":"string","title":"Geofenceid"},"eventType":{"type":"string","title":"Eventtype","default":"entry"}},"type":"object","required":["geofenceId"],"title":"WebhookTestRequest"},"WebhookTestResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"deliveryId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliveryid"}},"type":"object","required":["success","message"],"title":"WebhookTestResponse"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"},"HTTPBearer":{"type":"http","scheme":"bearer"}}}}