{"openapi":"3.1.0","info":{"title":"VictoryPAY MDM","version":"0.3.2"},"paths":{"/api/v1/portal/me":{"get":{"summary":"Me","operationId":"me_api_v1_portal_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/portal/logout":{"post":{"summary":"Logout","operationId":"logout_api_v1_portal_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/api/v1/portal/users":{"get":{"summary":"Users","operationId":"users_api_v1_portal_users_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/portal/users/{user_id}/role":{"patch":{"summary":"Change Role","operationId":"change_role_api_v1_portal_users__user_id__role_patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleChange"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/store/releases":{"post":{"tags":["App Store"],"summary":"Upload Release","operationId":"upload_release_api_v1_admin_store_releases_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"title":"Name"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/store/apps":{"get":{"tags":["App Store"],"summary":"List Apps","operationId":"list_apps_api_v1_admin_store_apps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/store/devices":{"get":{"tags":["App Store"],"summary":"Search Devices","operationId":"search_devices_api_v1_admin_store_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":120,"default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/store/apps/{app_id}/assignments":{"get":{"tags":["App Store"],"summary":"List Assignments","operationId":"list_assignments_api_v1_admin_store_apps__app_id__assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"App Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/store/apps/{app_id}/assignments/{kind}/{target_id}":{"put":{"tags":["App Store"],"summary":"Save Assignment","operationId":"save_assignment_api_v1_admin_store_apps__app_id__assignments__kind___target_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"App Id"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["group","device"],"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assignment"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["App Store"],"summary":"Remove Assignment","operationId":"remove_assignment_api_v1_admin_store_apps__app_id__assignments__kind___target_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"App Id"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["group","device"],"type":"string","title":"Kind"}},{"name":"target_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/device/store":{"get":{"tags":["App Store"],"summary":"Device Catalog","operationId":"device_catalog_api_v1_device_store_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/device/store/releases/{release_id}/apk":{"get":{"tags":["App Store"],"summary":"Fetch Release","operationId":"fetch_release_api_v1_device_store_releases__release_id__apk_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"release_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Release Id"}}],"responses":{"200":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/presets":{"get":{"tags":["Command presets"],"summary":"List Presets","operationId":"list_presets_api_v1_admin_presets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Command presets"],"summary":"Create Preset","operationId":"create_preset_api_v1_admin_presets_post","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/IntentPreset"},{"$ref":"#/components/schemas/HttpPreset"}],"title":"Body","discriminator":{"propertyName":"kind","mapping":{"intent":"#/components/schemas/IntentPreset","http_json":"#/components/schemas/HttpPreset"}}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/presets/{preset_id}":{"delete":{"tags":["Command presets"],"summary":"Remove Preset","operationId":"remove_preset_api_v1_admin_presets__preset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"preset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Preset Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/devices/{device_id}/presets/{preset_id}/send":{"post":{"tags":["Command presets"],"summary":"Send Preset","operationId":"send_preset_api_v1_admin_devices__device_id__presets__preset_id__send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"preset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Preset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerPreset"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/devices/{device_id}/support":{"post":{"tags":["Attended remote support"],"summary":"Request Support","description":"Request an attended support session on one device.","operationId":"request_support_api_v1_admin_devices__device_id__support_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}},{"name":"request_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportIdentifier"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/support/{session}":{"get":{"tags":["Attended remote support"],"summary":"Support Status","description":"Read the status and latest frame reference and refresh the viewer lease.","operationId":"support_status_api_v1_admin_support__session__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/support/{session}/frame":{"get":{"tags":["Attended remote support"],"summary":"Support Frame","description":"Return only the current live JPEG. No images are archived on the server.","operationId":"support_frame_api_v1_admin_support__session__frame_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session"}},{"name":"frame_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Frame Id"}}],"responses":{"200":{"description":"Successful Response","content":{"image/jpeg":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/support/{session}/input":{"post":{"tags":["Attended remote support"],"summary":"Support Input","description":"Queue one touch gesture for the consenting device.","operationId":"support_input_api_v1_admin_support__session__input_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportInput"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/support/{session}/close":{"post":{"tags":["Attended remote support"],"summary":"Close From Portal","description":"End the support session and remove its latest frame.","operationId":"close_from_portal_api_v1_admin_support__session__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/device/support/pending":{"get":{"tags":["Attended remote support"],"summary":"Pending Support","description":"Read the current support request for the authenticated Android device.","operationId":"pending_support_api_v1_device_support_pending_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PendingSupport"},{"type":"null"}],"title":"Response Pending Support Api V1 Device Support Pending Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/device/support/{session}/decision":{"post":{"tags":["Attended remote support"],"summary":"Decide Support","description":"Record Android's explicit consent or refusal to share the screen.","operationId":"decide_support_api_v1_device_support__session__decision_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportDecision"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/device/support/{session}/tick":{"post":{"tags":["Attended remote support"],"summary":"Support Tick","description":"Update the live JPEG and receive a waiting gesture for an active session.","operationId":"support_tick_api_v1_device_support__session__tick_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTick"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportTickResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/device/support/{session}/close":{"post":{"tags":["Attended remote support"],"summary":"Close From Device","description":"End support from Android and remove its current frame.","operationId":"close_from_device_api_v1_device_support__session__close_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/documentation/{topic}":{"get":{"tags":["Documentation"],"summary":"Documentation","description":"Read an integration guide, API guide or release notes.","operationId":"documentation_api_v1_admin_documentation__topic__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"topic","in":"path","required":true,"schema":{"enum":["integrations","api","releases"],"type":"string","title":"Topic"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentationPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"summary":"Health","operationId":"health_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/admin/groups":{"get":{"summary":"List Groups","operationId":"list_groups_api_v1_admin_groups_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Group"},"type":"array","title":"Response List Groups Api V1 Admin Groups Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Group","operationId":"create_group_api_v1_admin_groups_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Group"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/enrollments":{"post":{"summary":"Create Enrollment","operationId":"create_enrollment_api_v1_admin_enrollments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentTicket"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/enroll":{"post":{"summary":"Redeem Enrollment","operationId":"redeem_enrollment_api_v1_enroll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentRedeem"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceIdentity"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/devices":{"get":{"summary":"List Devices","operationId":"list_devices_api_v1_admin_devices_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Cursor"}},{"name":"group_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["assigned","online","offline"],"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicePage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/dashboard":{"get":{"summary":"Dashboard","operationId":"dashboard_api_v1_admin_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardStats"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/search":{"post":{"summary":"Search Dashboard","operationId":"search_dashboard_api_v1_admin_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardSearch"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardMatches"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/device/heartbeat":{"post":{"summary":"Heartbeat","operationId":"heartbeat_api_v1_device_heartbeat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Telemetry"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/device/inventory":{"post":{"summary":"Record Inventory","operationId":"record_inventory_api_v1_device_inventory_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceInventory"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/devices/{device_id}/inventory":{"get":{"summary":"Show Inventory","operationId":"show_inventory_api_v1_admin_devices__device_id__inventory_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/devices/{device_id}/group":{"patch":{"summary":"Assign Device Group","operationId":"assign_device_group_api_v1_admin_devices__device_id__group_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDeviceGroup"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/notifications/bulk":{"post":{"summary":"Queue Bulk Notification","operationId":"queue_bulk_notification_api_v1_admin_notifications_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkNotification"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueuedNotifications"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/devices/{device_id}/commands":{"post":{"summary":"Queue Command","operationId":"queue_command_api_v1_admin_devices__device_id__commands_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SimpleCommand"},{"$ref":"#/components/schemas/NotificationCommand"},{"$ref":"#/components/schemas/KioskCommand"},{"$ref":"#/components/schemas/AppCommand"}],"discriminator":{"propertyName":"kind","mapping":{"ping":"#/components/schemas/SimpleCommand","inventory":"#/components/schemas/SimpleCommand","lock":"#/components/schemas/SimpleCommand","reboot":"#/components/schemas/SimpleCommand","notify":"#/components/schemas/NotificationCommand","kiosk":"#/components/schemas/KioskCommand","uninstall":"#/components/schemas/AppCommand","home":"#/components/schemas/AppCommand"}},"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Command"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Command History","operationId":"command_history_api_v1_admin_devices__device_id__commands_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Command"},"title":"Response Command History Api V1 Admin Devices  Device Id  Commands Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/device/commands/next":{"post":{"summary":"Next Command","operationId":"next_command_api_v1_device_commands_next_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CommandDelivery"},{"type":"null"}],"title":"Response Next Command Api V1 Device Commands Next Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/device/commands/{command_id}/result":{"post":{"summary":"Record Result","operationId":"record_result_api_v1_device_commands__command_id__result_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"command_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Command Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandResult"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/audit":{"get":{"summary":"Audit History","operationId":"audit_history_api_v1_admin_audit_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","exclusiveMinimum":0},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditEvent"},"title":"Response Audit History Api V1 Admin Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AppAdministration":{"properties":{"package_name":{"type":"string","maxLength":250,"pattern":"^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$","title":"Package Name"}},"type":"object","required":["package_name"],"title":"AppAdministration"},"AppCommand":{"properties":{"kind":{"type":"string","enum":["uninstall","home"],"title":"Kind"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"payload":{"$ref":"#/components/schemas/AppAdministration"}},"type":"object","required":["kind","request_id","payload"],"title":"AppCommand"},"Assignment":{"properties":{"automatic":{"type":"boolean","title":"Automatic","default":false}},"type":"object","title":"Assignment"},"AuditEvent":{"properties":{"id":{"type":"integer","title":"Id"},"actor_type":{"type":"string","title":"Actor Type"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"action":{"type":"string","title":"Action"},"target_id":{"type":"string","format":"uuid","title":"Target Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","actor_type","actor_id","action","target_id","created_at"],"title":"AuditEvent"},"BulkNotification":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"},"audience":{"type":"string","enum":["all","online","offline"],"title":"Audience","default":"all"},"payload":{"$ref":"#/components/schemas/NotificationText"}},"type":"object","required":["request_id","payload"],"title":"BulkNotification"},"CatalogSearchResult":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"package_name":{"type":"string","title":"Package Name"}},"type":"object","required":["id","name","package_name"],"title":"CatalogSearchResult"},"Command":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["ping","inventory","lock","notify","kiosk","uninstall","home","preset","reboot"],"title":"Kind"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"attempts":{"type":"integer","title":"Attempts"},"status":{"type":"string","enum":["queued","in_progress","succeeded","failed","expired"],"title":"Status"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"}},"type":"object","required":["id","kind","created_at","attempts","status","result"],"title":"Command"},"CommandDelivery":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["ping","inventory","lock","notify","kiosk","uninstall","home","preset","reboot"],"title":"Kind"},"delivery_id":{"type":"string","format":"uuid","title":"Delivery Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","kind","delivery_id","payload","expires_at"],"title":"CommandDelivery"},"CommandResult":{"properties":{"delivery_id":{"type":"string","format":"uuid","title":"Delivery Id"},"outcome":{"type":"string","enum":["succeeded","failed"],"title":"Outcome"},"message":{"type":"string","maxLength":2000,"title":"Message","default":""},"inventory":{"anyOf":[{"$ref":"#/components/schemas/Telemetry"},{"type":"null"}]}},"type":"object","required":["delivery_id","outcome"],"title":"CommandResult"},"DashboardMatches":{"properties":{"devices":{"items":{"$ref":"#/components/schemas/Device"},"type":"array","title":"Devices"},"groups":{"items":{"$ref":"#/components/schemas/Group"},"type":"array","title":"Groups"},"apps":{"items":{"$ref":"#/components/schemas/CatalogSearchResult"},"type":"array","title":"Apps"},"presets":{"items":{"$ref":"#/components/schemas/Group"},"type":"array","title":"Presets"}},"type":"object","required":["devices","groups","apps","presets"],"title":"DashboardMatches"},"DashboardSearch":{"properties":{"q":{"type":"string","maxLength":120,"minLength":2,"title":"Q"}},"type":"object","required":["q"],"title":"DashboardSearch"},"DashboardStats":{"properties":{"total":{"type":"integer","title":"Total"},"assigned":{"type":"integer","title":"Assigned"},"online":{"type":"integer","title":"Online"},"offline":{"type":"integer","title":"Offline"}},"type":"object","required":["total","assigned","online","offline"],"title":"DashboardStats"},"Device":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"model":{"type":"string","title":"Model"},"android_sdk":{"type":"integer","title":"Android Sdk"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"online":{"type":"boolean","title":"Online"},"telemetry":{"$ref":"#/components/schemas/Telemetry"},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"}},"type":"object","required":["id","name","model","android_sdk","last_seen_at","online","telemetry","group_id"],"title":"Device"},"DeviceIdentity":{"properties":{"device_id":{"type":"string","format":"uuid","title":"Device Id"}},"type":"object","required":["device_id"],"title":"DeviceIdentity"},"DeviceInventory":{"properties":{"serial":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Serial"},"serial_source":{"anyOf":[{"type":"string","enum":["android","senraise_printer"]},{"type":"null"}],"title":"Serial Source"},"android_release":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Android Release"},"security_patch":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Security Patch"},"device_owner":{"type":"boolean","title":"Device Owner","default":false},"imei":{"items":{"type":"string","maxLength":120,"minLength":1},"type":"array","maxItems":16,"title":"Imei"},"sims":{"items":{"$ref":"#/components/schemas/SimDetails"},"type":"array","maxItems":32,"title":"Sims"},"apps":{"items":{"$ref":"#/components/schemas/InstalledApp"},"type":"array","maxItems":3000,"title":"Apps"}},"type":"object","title":"DeviceInventory"},"DevicePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Device"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"DevicePage"},"DeviceSupportInput":{"properties":{"kind":{"type":"string","enum":["tap","swipe","back","home","recents","notifications","quick_settings","power"],"title":"Kind"},"x":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"X"},"y":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Y"},"end_x":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"End X"},"end_y":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"End Y"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"}},"type":"object","required":["kind","x","y","end_x","end_y","width","height"],"title":"DeviceSupportInput"},"DocumentationPage":{"properties":{"html":{"type":"string","title":"Html"}},"type":"object","required":["html"],"title":"DocumentationPage"},"EnrollmentRedeem":{"properties":{"enrollment_token":{"anyOf":[{"type":"string","pattern":"^vpe_[A-Za-z0-9_-]{43}$"},{"type":"null"}],"title":"Enrollment Token"},"pairing_id":{"anyOf":[{"type":"string","pattern":"^[2-9A-HJKMNP-Z]{8}$"},{"type":"null"}],"title":"Pairing Id"},"pairing_password":{"anyOf":[{"type":"string","pattern":"^[2-9A-HJKMNP-Z]{10}$"},{"type":"null"}],"title":"Pairing Password"},"device_token":{"type":"string","pattern":"^vpd_[A-Za-z0-9_-]{43}$","title":"Device Token"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"model":{"type":"string","maxLength":120,"minLength":1,"title":"Model"},"android_sdk":{"type":"integer","maximum":200.0,"minimum":23.0,"title":"Android Sdk"}},"type":"object","required":["device_token","name","model","android_sdk"],"title":"EnrollmentRedeem"},"EnrollmentRequest":{"properties":{"agent_variant":{"type":"string","enum":["common","h10"],"title":"Agent Variant","default":"common"},"valid_minutes":{"type":"integer","maximum":60.0,"minimum":1.0,"title":"Valid Minutes","default":15},"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"}},"type":"object","title":"EnrollmentRequest"},"EnrollmentTicket":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"enrollment_token":{"type":"string","title":"Enrollment Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"pairing_id":{"type":"string","title":"Pairing Id"},"pairing_password":{"type":"string","title":"Pairing Password"},"qr_image":{"type":"string","title":"Qr Image"},"provisioning_qr_image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provisioning Qr Image"}},"type":"object","required":["id","enrollment_token","expires_at","pairing_id","pairing_password","qr_image"],"title":"EnrollmentTicket"},"Group":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"Group"},"GroupCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"GroupCreate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HttpPreset":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"kind":{"type":"string","const":"http_json","title":"Kind"},"url":{"type":"string","maxLength":500,"minLength":10,"title":"Url"},"method":{"type":"string","enum":["GET","POST"],"title":"Method"},"data":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object","maxProperties":24,"title":"Data"}},"type":"object","required":["name","kind","url","method"],"title":"HttpPreset"},"InstalledApp":{"properties":{"package_name":{"type":"string","maxLength":250,"minLength":1,"title":"Package Name"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"version":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Version"},"system":{"type":"boolean","title":"System","default":false},"home":{"type":"boolean","title":"Home","default":false}},"type":"object","required":["package_name","name"],"title":"InstalledApp"},"IntentPreset":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"kind":{"type":"string","const":"intent","title":"Kind"},"package_name":{"type":"string","maxLength":250,"pattern":"^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$","title":"Package Name"},"component":{"anyOf":[{"type":"string","maxLength":250,"minLength":1},{"type":"null"}],"title":"Component"},"action":{"type":"string","maxLength":120,"minLength":1,"title":"Action"},"delivery":{"type":"string","enum":["broadcast","activity"],"title":"Delivery","default":"broadcast"},"data":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object","maxProperties":24,"title":"Data"}},"type":"object","required":["name","kind","package_name","action"],"title":"IntentPreset"},"JsonValue":{},"KioskCommand":{"properties":{"kind":{"type":"string","const":"kiosk","title":"Kind"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"payload":{"$ref":"#/components/schemas/KioskSettings"}},"type":"object","required":["kind","request_id","payload"],"title":"KioskCommand"},"KioskSettings":{"properties":{"package_name":{"anyOf":[{"type":"string","maxLength":250,"pattern":"^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"},{"type":"null"}],"title":"Package Name"}},"type":"object","required":["package_name"],"title":"KioskSettings"},"NotificationCommand":{"properties":{"kind":{"type":"string","const":"notify","title":"Kind"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"payload":{"$ref":"#/components/schemas/NotificationText"}},"type":"object","required":["kind","request_id","payload"],"title":"NotificationCommand"},"NotificationText":{"properties":{"title":{"type":"string","maxLength":120,"minLength":1,"title":"Title"},"message":{"type":"string","maxLength":500,"minLength":1,"title":"Message"}},"type":"object","required":["title","message"],"title":"NotificationText"},"PendingSupport":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"requested_by":{"type":"string","title":"Requested By"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["id","requested_by","expires_at"],"title":"PendingSupport"},"QueuedNotifications":{"properties":{"queued":{"type":"integer","title":"Queued"}},"type":"object","required":["queued"],"title":"QueuedNotifications"},"RoleChange":{"properties":{"role":{"type":"string","enum":["pending","viewer","operator","admin"],"title":"Role"},"all_groups":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"All Groups"},"group_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Group Ids"}},"type":"object","required":["role"],"title":"RoleChange"},"SetDeviceGroup":{"properties":{"group_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"}},"type":"object","required":["group_id"],"title":"SetDeviceGroup"},"SimDetails":{"properties":{"slot":{"type":"integer","maximum":32.0,"minimum":0.0,"title":"Slot"},"iccid":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Iccid"},"phone_number":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["slot"],"title":"SimDetails"},"SimpleCommand":{"properties":{"kind":{"type":"string","enum":["ping","inventory","lock","reboot"],"title":"Kind"},"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"type":"object","required":["kind","request_id"],"title":"SimpleCommand"},"SupportDecision":{"properties":{"accept":{"type":"boolean","title":"Accept"},"allow_control":{"type":"boolean","title":"Allow Control","default":false}},"type":"object","required":["accept"],"title":"SupportDecision"},"SupportIdentifier":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"}},"type":"object","required":["id"],"title":"SupportIdentifier"},"SupportInput":{"properties":{"frame":{"type":"string","format":"uuid","title":"Frame"},"kind":{"type":"string","enum":["tap","swipe","back","home","recents","notifications","quick_settings","power"],"title":"Kind"},"x":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"X"},"y":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Y"},"end_x":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"End X"},"end_y":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"End Y"}},"type":"object","required":["frame","kind"],"title":"SupportInput"},"SupportStatus":{"properties":{"status":{"type":"string","enum":["requested","active","declined","closed","expired"],"title":"Status"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"frame":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Frame"},"can_control":{"type":"boolean","title":"Can Control"}},"type":"object","required":["status","expires_at","frame","can_control"],"title":"SupportStatus"},"SupportTick":{"properties":{"jpeg":{"anyOf":[{"type":"string","maxLength":220000},{"type":"null"}],"title":"Jpeg"},"width":{"anyOf":[{"type":"integer","maximum":1200.0,"minimum":1.0},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer","maximum":1200.0,"minimum":1.0},{"type":"null"}],"title":"Height"},"control_available":{"type":"boolean","title":"Control Available","default":false}},"type":"object","title":"SupportTick"},"SupportTickResult":{"properties":{"active":{"type":"boolean","title":"Active"},"input":{"anyOf":[{"$ref":"#/components/schemas/DeviceSupportInput"},{"type":"null"}]}},"type":"object","required":["active","input"],"title":"SupportTickResult"},"Telemetry":{"properties":{"battery_percent":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Battery Percent"},"battery_charging":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Battery Charging"},"memory_available_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Memory Available Bytes"},"storage_available_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Storage Available Bytes"},"network":{"type":"string","enum":["wifi","ethernet","cellular","other","unknown"],"title":"Network","default":"unknown"},"agent_version":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Agent Version"},"agent_variant":{"anyOf":[{"type":"string","enum":["common","h10"]},{"type":"null"}],"title":"Agent Variant"},"supports_lock":{"type":"boolean","title":"Supports Lock","default":false},"supports_notifications":{"type":"boolean","title":"Supports Notifications","default":false},"supports_kiosk":{"type":"boolean","title":"Supports Kiosk","default":false},"supports_app_admin":{"type":"boolean","title":"Supports App Admin","default":false},"supports_presets":{"type":"boolean","title":"Supports Presets","default":false},"supports_remote_support":{"type":"boolean","title":"Supports Remote Support","default":false},"supports_system_buttons":{"type":"boolean","title":"Supports System Buttons","default":false},"supports_reboot":{"type":"boolean","title":"Supports Reboot","default":false}},"type":"object","title":"Telemetry"},"TriggerPreset":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"type":"object","required":["request_id"],"title":"TriggerPreset"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}