{"openapi":"3.1.0","info":{"title":"Fareflare API","version":"0.2.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/monitors":{"post":{"summary":"Create","operationId":"create_v1_monitors_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idempotency-key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorInput"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Monitors","operationId":"list_monitors_v1_monitors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks":{"post":{"summary":"Register Webhook","operationId":"register_webhook_v1_webhooks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"idempotency-key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRegistrationView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Webhooks","operationId":"list_webhooks_v1_webhooks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}":{"get":{"summary":"Get Webhook","operationId":"get_webhook_v1_webhooks__webhook_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Webhook","operationId":"delete_webhook_v1_webhooks__webhook_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/challenge":{"post":{"summary":"Challenge Webhook","operationId":"challenge_webhook_v1_webhooks__webhook_id__challenge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookChallengeView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/verify":{"post":{"summary":"Verify Webhook","operationId":"verify_webhook_v1_webhooks__webhook_id__verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookVerificationInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/disable":{"post":{"summary":"Disable Webhook","operationId":"disable_webhook_v1_webhooks__webhook_id__disable_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/monitors/{monitor_id}":{"get":{"summary":"Get Monitor","operationId":"get_monitor_v1_monitors__monitor_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Monitor","operationId":"update_monitor_v1_monitors__monitor_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/monitors/{monitor_id}/history":{"get":{"summary":"History","operationId":"history_v1_monitors__monitor_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObservationList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/alerts":{"get":{"summary":"Alerts","operationId":"alerts_v1_alerts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/alerts/{delivery_id}/retry":{"post":{"summary":"Retry","operationId":"retry_v1_alerts__delivery_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/monitors/{monitor_id}/retry-collection":{"post":{"summary":"Retry Collection","operationId":"retry_collection_v1_monitors__monitor_id__retry_collection_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/monitors/{monitor_id}/policy":{"put":{"summary":"Policy","operationId":"policy_v1_monitors__monitor_id__policy_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/preferences":{"get":{"summary":"Preferences","operationId":"preferences_v1_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Preferences"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"summary":"Update Preferences","operationId":"update_preferences_v1_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Preferences"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Preferences"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/preferences/telegram-preview":{"post":{"summary":"Telegram Preview","operationId":"telegram_preview_v1_preferences_telegram_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Preferences"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/config":{"get":{"summary":"Public Config","operationId":"public_config_v1_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/register":{"post":{"summary":"Register","operationId":"register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/recover":{"post":{"summary":"Recover","operationId":"recover_auth_recover_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account":{"get":{"summary":"Account","operationId":"account_v1_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"summary":"Delete Account","operationId":"delete_account_v1_account_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys":{"get":{"summary":"List Keys","operationId":"list_keys_v1_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Key","operationId":"create_key_v1_api_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyInput"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys/{identifier}":{"delete":{"summary":"Revoke Key","operationId":"revoke_key_v1_api_keys__identifier__delete","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/telegram":{"get":{"summary":"Telegram Status","operationId":"telegram_status_v1_telegram_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Telegram Connect","operationId":"telegram_connect_v1_telegram_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"summary":"Telegram Disconnect","operationId":"telegram_disconnect_v1_telegram_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/oauth/requests/{request_id}":{"get":{"summary":"Consent Request","operationId":"consent_request_v1_oauth_requests__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Consent","operationId":"consent_v1_oauth_requests__request_id__post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/oauth/grants":{"get":{"summary":"Connected Apps","operationId":"connected_apps_v1_oauth_grants_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/oauth/grants/{identifier}":{"delete":{"summary":"Disconnect App","operationId":"disconnect_app_v1_oauth_grants__identifier__delete","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AlertList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AlertView"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"AlertList"},"AlertView":{"properties":{"id":{"type":"string","title":"Id"},"event_id":{"type":"string","title":"Event Id"},"monitor_id":{"type":"string","title":"Monitor Id"},"reason":{"type":"string","title":"Reason"},"observation":{"$ref":"#/components/schemas/ObservationView"},"status":{"type":"string","enum":["pending","sent","dead_letter","suppressed"],"title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"webhook_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Id"}},"type":"object","required":["id","event_id","monitor_id","reason","observation","status","attempts"],"title":"AlertView"},"ConsentInput":{"properties":{"approve":{"type":"boolean","title":"Approve"}},"additionalProperties":false,"type":"object","required":["approve"],"title":"ConsentInput"},"DeleteAccountInput":{"properties":{"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"additionalProperties":false,"type":"object","required":["password"],"title":"DeleteAccountInput"},"EvidenceView":{"properties":{"adapter_version":{"type":"string","title":"Adapter Version"},"identity_verified":{"type":"boolean","title":"Identity Verified"},"eligibility_verified":{"type":"boolean","title":"Eligibility Verified"},"party_verified":{"type":"boolean","title":"Party Verified"},"display_precision_minor":{"type":"integer","title":"Display Precision Minor"}},"type":"object","required":["adapter_version","identity_verified","eligibility_verified","party_verified","display_precision_minor"],"title":"EvidenceView"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KeyInput":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["name"],"title":"KeyInput"},"LegView":{"properties":{"origin":{"type":"string","title":"Origin"},"destination":{"type":"string","title":"Destination"},"date":{"type":"string","title":"Date"},"airline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Airline"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"}},"type":"object","required":["origin","destination","date","airline","number"],"title":"LegView"},"LoginInput":{"properties":{"username":{"type":"string","maxLength":80,"minLength":1,"title":"Username"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"additionalProperties":false,"type":"object","required":["username","password"],"title":"LoginInput"},"MonitorInput":{"properties":{"url":{"type":"string","maxLength":8192,"minLength":1,"title":"Url"},"interval_seconds":{"type":"integer","maximum":86400.0,"minimum":300.0,"title":"Interval Seconds","default":900},"policy":{"$ref":"#/components/schemas/PolicyInput"},"webhook_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{32}$"},{"type":"null"}],"title":"Webhook Id"}},"additionalProperties":false,"type":"object","required":["url"],"title":"MonitorInput"},"MonitorList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MonitorView"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"active_count":{"type":"integer","title":"Active Count"}},"type":"object","required":["items","active_count"],"title":"MonitorList"},"MonitorView":{"properties":{"id":{"type":"string","title":"Id"},"target_id":{"type":"string","title":"Target Id"},"status":{"type":"string","enum":["pending","active","paused","cancelled","expired","degraded"],"title":"Status"},"policy":{"$ref":"#/components/schemas/PolicyInput"},"interval_seconds":{"type":"integer","title":"Interval Seconds"},"created_at":{"type":"integer","title":"Created At"},"target":{"$ref":"#/components/schemas/TargetView"},"latest":{"anyOf":[{"$ref":"#/components/schemas/ObservationView"},{"type":"null"}]},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"next_check_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Check At"},"stale":{"type":"boolean","title":"Stale"},"collection_status":{"type":"string","title":"Collection Status"},"webhook_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Id"}},"type":"object","required":["id","target_id","status","policy","interval_seconds","created_at","target","latest","last_error","next_check_at","stale","collection_status"],"title":"MonitorView"},"ObservationList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ObservationView"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"ObservationList"},"ObservationView":{"properties":{"target_id":{"type":"string","title":"Target Id"},"amount_minor":{"type":"integer","title":"Amount Minor"},"currency":{"type":"string","title":"Currency"},"observed_at":{"type":"integer","title":"Observed At"},"source":{"type":"string","title":"Source"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/EvidenceView"},{"type":"null"}]},"fare_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fare Name"},"price_basis":{"type":"string","enum":["total","unspecified"],"title":"Price Basis","default":"unspecified"},"observed_offer":{"anyOf":[{"$ref":"#/components/schemas/ObservedOfferView"},{"type":"null"}]}},"type":"object","required":["target_id","amount_minor","currency","observed_at","source"],"title":"ObservationView"},"ObservedOfferView":{"properties":{"target_id":{"type":"string","title":"Target Id"},"segments":{"items":{"$ref":"#/components/schemas/SegmentView"},"type":"array","title":"Segments"},"adults":{"type":"integer","title":"Adults"},"cabin":{"type":"integer","title":"Cabin"},"url":{"type":"string","title":"Url"}},"type":"object","required":["target_id","segments","adults","cabin","url"],"title":"ObservedOfferView"},"PolicyInput":{"properties":{"kind":{"type":"string","enum":["new_low","below_price"],"title":"Kind","default":"new_low"},"min_drop_minor":{"type":"integer","maximum":100000000.0,"minimum":0.0,"title":"Min Drop Minor","default":0},"threshold_minor":{"anyOf":[{"type":"integer","maximum":100000000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Threshold Minor"},"notify_rebounds":{"type":"boolean","title":"Notify Rebounds","default":false}},"additionalProperties":false,"type":"object","title":"PolicyInput"},"Preferences":{"properties":{"muted":{"type":"boolean","title":"Muted","default":false},"muted_routes":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Muted Routes"},"time_zone":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Time Zone"},"locale":{"type":"string","enum":["en-US","en-GB","de-DE","fr-FR","es-ES","uk-UA"],"title":"Locale","default":"en-US"},"hour_cycle":{"type":"string","enum":["auto","h12","h23"],"title":"Hour Cycle","default":"auto"},"telegram_style":{"type":"string","enum":["detailed","compact"],"title":"Telegram Style","default":"detailed"},"telegram_show_flight_numbers":{"type":"boolean","title":"Telegram Show Flight Numbers","default":true},"telegram_show_observed_time":{"type":"boolean","title":"Telegram Show Observed Time","default":true},"telegram_show_fare":{"type":"boolean","title":"Telegram Show Fare","default":true},"telegram_silent":{"type":"boolean","title":"Telegram Silent","default":false}},"additionalProperties":false,"type":"object","title":"Preferences"},"RecoveryInput":{"properties":{"username":{"type":"string","maxLength":80,"minLength":1,"title":"Username"},"recovery_code":{"type":"string","maxLength":128,"minLength":1,"title":"Recovery Code"},"new_password":{"type":"string","maxLength":128,"minLength":15,"title":"New Password"}},"additionalProperties":false,"type":"object","required":["username","recovery_code","new_password"],"title":"RecoveryInput"},"RegisterInput":{"properties":{"username":{"type":"string","maxLength":80,"minLength":1,"title":"Username"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"},"invite_token":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Invite Token"}},"additionalProperties":false,"type":"object","required":["username","password"],"title":"RegisterInput"},"SegmentView":{"properties":{"date":{"type":"string","title":"Date"},"legs":{"items":{"$ref":"#/components/schemas/LegView"},"type":"array","title":"Legs"}},"type":"object","required":["date","legs"],"title":"SegmentView"},"StatusInput":{"properties":{"status":{"type":"string","enum":["paused","active","cancelled"],"title":"Status"}},"additionalProperties":false,"type":"object","required":["status"],"title":"StatusInput"},"TargetView":{"properties":{"kind":{"type":"string","enum":["selected","search"],"title":"Kind","default":"selected"},"id":{"type":"string","title":"Id"},"segments":{"items":{"$ref":"#/components/schemas/SegmentView"},"type":"array","title":"Segments"},"adults":{"type":"integer","title":"Adults"},"cabin":{"type":"integer","title":"Cabin"},"currency":{"type":"string","title":"Currency"},"market":{"type":"string","title":"Market"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","segments","adults","cabin","currency","market","url"],"title":"TargetView"},"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"},"WebhookChallengeView":{"properties":{"delivered":{"type":"boolean","title":"Delivered"},"expires_at":{"type":"integer","title":"Expires At"}},"type":"object","required":["delivered","expires_at"],"title":"WebhookChallengeView"},"WebhookInput":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"}},"additionalProperties":false,"type":"object","required":["url"],"title":"WebhookInput"},"WebhookList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebhookView"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"WebhookList"},"WebhookRegistrationView":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"status":{"type":"string","enum":["pending","active","disabled","deleted"],"title":"Status"},"created_at":{"type":"integer","title":"Created At"},"verified_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Verified At"},"signing_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signing Secret"}},"type":"object","required":["id","url","status","created_at"],"title":"WebhookRegistrationView"},"WebhookVerificationInput":{"properties":{"token":{"type":"string","maxLength":128,"minLength":32,"pattern":"^[A-Za-z0-9_-]+$","title":"Token"}},"additionalProperties":false,"type":"object","required":["token"],"title":"WebhookVerificationInput"},"WebhookView":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"status":{"type":"string","enum":["pending","active","disabled","deleted"],"title":"Status"},"created_at":{"type":"integer","title":"Created At"},"verified_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Verified At"}},"type":"object","required":["id","url","status","created_at"],"title":"WebhookView"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}