{"openapi":"3.1.0","info":{"title":"Squidbrake Insights","version":"0.1.0"},"paths":{"/v1/admin/login":{"post":{"summary":"Login","operationId":"login_v1_admin_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/logout":{"post":{"summary":"Logout","operationId":"logout_v1_admin_logout_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/password":{"post":{"summary":"Set Password","description":"Set or change the admin password. Needs the current password (or the server key the first time).","operationId":"set_password_v1_admin_password_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/me":{"get":{"summary":"Admin Me","operationId":"admin_me_v1_admin_me_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/join":{"post":{"summary":"Join","operationId":"join_v1_pilot_join_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/leave":{"post":{"summary":"Leave","operationId":"leave_v1_pilot_leave_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PingIn"},{"$ref":"#/components/schemas/JoinIn"}],"title":"J"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ping":{"post":{"summary":"Ping","operationId":"ping_v1_ping_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/admin/funnel":{"get":{"summary":"Funnel","operationId":"funnel_v1_admin_funnel_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/pilots":{"post":{"summary":"Create Pilot","operationId":"create_pilot_v1_admin_pilots_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PilotIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/pilots/{code}":{"delete":{"summary":"Delete Pilot","operationId":"delete_pilot_v1_admin_pilots__code__delete","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/pilots/{code}/approve":{"post":{"summary":"Approve Hosted","description":"A hosted request from sign-up waits for you: approving it lets provision.py start the gateway.","operationId":"approve_hosted_v1_admin_pilots__code__approve_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/pilots/{code}/new-keys":{"post":{"summary":"New Keys","description":"A founder lost their keys: provision.py makes new ones, and their start page shows them once more.","operationId":"new_keys_v1_admin_pilots__code__new_keys_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/provision":{"get":{"summary":"Provision Queue","operationId":"provision_queue_v1_admin_provision_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/pilots/{code}/license":{"post":{"summary":"Pilot License","description":"A Team plan license for a pilot's own (self-hosted) gateway: `squidbrake license set LICENSE`.","operationId":"pilot_license_v1_admin_pilots__code__license_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":1100,"minimum":1,"default":365,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/provisioned":{"post":{"summary":"Provisioned","operationId":"provisioned_v1_admin_provisioned_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionedIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/caddy/ask":{"get":{"summary":"Caddy Ask","description":"Caddy asks before getting a certificate for <sub>.HOSTED_DOMAIN: only for hosted pilots that exist.","operationId":"caddy_ask_v1_caddy_ask_get","parameters":[{"name":"domain","in":"query","required":false,"schema":{"type":"string","default":"","title":"Domain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/{code}/status":{"get":{"summary":"Pilot Status","description":"Polled by the start page while a hosted dashboard is being set up.","operationId":"pilot_status_v1_pilot__code__status_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/{code}/seen":{"post":{"summary":"Pilot Seen","description":"The start page, open in a browser: one view. Link previews and scanners don't run the page, or say what they are.","operationId":"pilot_seen_v1_pilot__code__seen_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pilot/{code}/keys":{"post":{"summary":"Reveal Keys","description":"The founder's keys for their hosted gateway, shown once on their start page and then forgotten here.","operationId":"reveal_keys_v1_pilot__code__keys_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/all-time":{"get":{"summary":"All Time","description":"Every day's counts ever received, per pilot and in total (the overview shows the last 14 days).","operationId":"all_time_v1_admin_all_time_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/overview":{"get":{"summary":"Overview","operationId":"overview_v1_admin_overview_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/pilots/{code}/revenue":{"post":{"summary":"Set Revenue","operationId":"set_revenue_v1_admin_pilots__code__revenue_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevenueIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/traction":{"get":{"summary":"Traction","operationId":"traction_v1_admin_traction_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/team-request":{"post":{"summary":"Team Request","operationId":"team_request_v1_team_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRequestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/booking":{"post":{"summary":"Booking","operationId":"booking_v1_booking_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/signup":{"post":{"summary":"Signup","description":"The public sign-up: a pilot code whose start page has the local install line. The install joins with it, so\nits counts and what was held or blocked (program and rule only, see pilot.py) reach the admin page.","operationId":"signup_v1_signup_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/signup":{"get":{"summary":"Signup Page","operationId":"signup_page_signup_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/v1/admin/team-requests":{"get":{"summary":"Team Requests","operationId":"team_requests_v1_admin_team_requests_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/team-requests/{rid}":{"post":{"summary":"Team Request Done","operationId":"team_request_done_v1_admin_team_requests__rid__post","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"integer","title":"Rid"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoneIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/install-report":{"post":{"summary":"Install Report","operationId":"install_report_v1_install_report_post","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"os","in":"query","required":false,"schema":{"type":"string","default":"","title":"Os"}},{"name":"step","in":"query","required":false,"schema":{"type":"string","default":"","title":"Step"}},{"name":"installer","in":"query","required":false,"schema":{"type":"string","default":"","title":"Installer"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/install-reports":{"get":{"summary":"Install Reports","operationId":"install_reports_v1_admin_install_reports_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/install-reports/{rid}":{"post":{"summary":"Install Report Done","operationId":"install_report_done_v1_admin_install_reports__rid__post","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"integer","title":"Rid"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoneIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/start/{code}":{"get":{"summary":"Start Page","operationId":"start_page_start__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/go/{channel}":{"get":{"summary":"Go","operationId":"go_go__channel__get","parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","title":"Channel"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/get":{"get":{"summary":"Get Page","operationId":"get_page_get_get","parameters":[{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/sources":{"get":{"summary":"Sources","description":"Per channel: link clicks -> installs that share stats -> used this week -> stopped something.","operationId":"sources_v1_admin_sources_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Days"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/team":{"get":{"summary":"Team Page","operationId":"team_page_team_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin":{"get":{"summary":"Admin Page","operationId":"admin_page_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/install.ps1":{"get":{"summary":"Install Ps1","operationId":"install_ps1_install_ps1_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/install.sh":{"get":{"summary":"Install Sh","operationId":"install_sh_install_sh_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/v1/admin/contacts":{"get":{"summary":"Contacts","operationId":"contacts_v1_admin_contacts_get","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Save Contact","operationId":"save_contact_v1_admin_contacts_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/contacts/{cid}":{"delete":{"summary":"Delete Contact","operationId":"delete_contact_v1_admin_contacts__cid__delete","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"string","title":"Cid"}},{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/contacts/import":{"post":{"summary":"Import Contacts","description":"The same file the sync reads, posted directly (for scripts that can reach this server).","operationId":"import_contacts_v1_admin_contacts_import_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/contacts/pull":{"post":{"summary":"Pull Now","operationId":"pull_now_v1_admin_contacts_pull_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/contacts/read":{"post":{"summary":"Read Paste","operationId":"read_paste_v1_admin_contacts_read_post","parameters":[{"name":"x-admin-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Admin-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/stripe/webhook":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_v1_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"BookingIn":{"properties":{"event":{"type":"string","maxLength":300,"title":"Event","default":""},"invitee":{"type":"string","maxLength":300,"title":"Invitee","default":""},"page":{"type":"string","maxLength":60,"title":"Page","default":""},"name":{"type":"string","maxLength":80,"title":"Name","default":""},"email":{"type":"string","maxLength":200,"title":"Email","default":""},"company":{"type":"string","maxLength":120,"title":"Company","default":""}},"type":"object","title":"BookingIn"},"ContactIn":{"properties":{"id":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"org":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Org"},"lane":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Lane"},"stage":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Stage"},"signal":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Signal"},"said":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Said"},"read":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Read"},"next":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Next"},"pilot_code":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Pilot Code"},"last_contact":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Last Contact"},"loi":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Loi"},"paid_once":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Paid Once"},"monthly":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly"},"conditional":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Conditional"},"talked":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Talked"},"needs_outcome":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Needs Outcome"},"update":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Update"}},"type":"object","title":"ContactIn"},"DoneIn":{"properties":{"done":{"type":"boolean","title":"Done"}},"type":"object","required":["done"],"title":"DoneIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JoinIn":{"properties":{"code":{"type":"string","maxLength":40,"title":"Code"},"install_id":{"type":"string","pattern":"^[0-9a-f]{32}$","title":"Install Id"},"version":{"type":"string","maxLength":40,"title":"Version","default":""},"os":{"type":"string","maxLength":80,"title":"Os","default":""},"ref":{"type":"string","pattern":"^([a-z0-9][a-z0-9-]{0,29})?$","title":"Ref","default":""}},"type":"object","required":["code","install_id"],"title":"JoinIn"},"LoginIn":{"properties":{"password":{"type":"string","maxLength":200,"title":"Password"}},"type":"object","required":["password"],"title":"LoginIn"},"PasswordIn":{"properties":{"current":{"type":"string","maxLength":200,"title":"Current"},"new":{"type":"string","maxLength":200,"minLength":10,"title":"New"}},"type":"object","required":["current","new"],"title":"PasswordIn"},"PasteIn":{"properties":{"text":{"type":"string","maxLength":60000,"minLength":20,"title":"Text"},"contact_id":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Contact Id"}},"type":"object","required":["text"],"title":"PasteIn"},"PilotIn":{"properties":{"company":{"type":"string","maxLength":80,"minLength":1,"title":"Company"},"contact":{"type":"string","maxLength":120,"title":"Contact","default":""},"note":{"type":"string","maxLength":500,"title":"Note","default":""},"hosted":{"type":"boolean","title":"Hosted","default":false}},"type":"object","required":["company"],"title":"PilotIn"},"PingIn":{"properties":{"code":{"type":"string","maxLength":40,"title":"Code"},"install_id":{"type":"string","pattern":"^[0-9a-f]{32}$","title":"Install Id"},"usage":{"additionalProperties":true,"type":"object","title":"Usage"}},"type":"object","required":["code","install_id","usage"],"title":"PingIn"},"ProvisionedIn":{"properties":{"code":{"type":"string","title":"Code"},"state":{"type":"string","pattern":"^(running|failed|deleted)$","title":"State"},"admin_key":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Admin Key"},"agent_key":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Agent Key"},"error":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Error"}},"type":"object","required":["code","state"],"title":"ProvisionedIn"},"RevenueIn":{"properties":{"mrr":{"type":"integer","maximum":1000000.0,"minimum":0.0,"title":"Mrr"}},"type":"object","required":["mrr"],"title":"RevenueIn"},"SignupIn":{"properties":{"name":{"type":"string","maxLength":80,"title":"Name","default":""},"email":{"type":"string","maxLength":200,"title":"Email","default":""},"company":{"type":"string","maxLength":80,"title":"Company","default":""},"agents":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Agents"},"website":{"type":"string","maxLength":200,"title":"Website","default":""},"setup":{"type":"string","pattern":"^(local|hosted)$","title":"Setup","default":"local"},"plan":{"type":"string","pattern":"^(|team)$","title":"Plan","default":""},"source":{"type":"string","pattern":"^[a-z0-9-]{0,30}$","title":"Source","default":""}},"type":"object","title":"SignupIn"},"TeamRequestIn":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"email":{"type":"string","maxLength":200,"title":"Email"},"company":{"type":"string","maxLength":120,"title":"Company","default":""},"team_size":{"type":"string","maxLength":20,"title":"Team Size","default":""},"agents":{"type":"string","maxLength":200,"title":"Agents","default":""},"note":{"type":"string","maxLength":1000,"title":"Note","default":""},"source":{"type":"string","maxLength":20,"title":"Source","default":""},"website":{"type":"string","maxLength":200,"title":"Website","default":""}},"type":"object","required":["name","email"],"title":"TeamRequestIn"},"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"}}}}