{"openapi":"3.1.0","info":{"title":"Anthias Backend","description":"Subscription, update, licence, and AI proxy backend for Anthias.","version":"0.1.0"},"paths":{"/admin/login":{"post":{"summary":"Admin Login","operationId":"admin_login_admin_login_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/logout":{"post":{"summary":"Admin Logout","operationId":"admin_logout_admin_logout_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":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}}}},"/licence/check":{"post":{"summary":"Check Licence","operationId":"check_licence_licence_check_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenceCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenceCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin":{"get":{"summary":"Admin Page","operationId":"admin_page_admin_get","parameters":[{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/licences":{"get":{"summary":"Admin List Licences","operationId":"admin_list_licences_admin_licences_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-anthias-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Anthias-Admin-Token"}},{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LicenceRecord"},"title":"Response Admin List Licences Admin Licences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Create Licence","operationId":"admin_create_licence_admin_licences_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-anthias-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Anthias-Admin-Token"}},{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenceCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenceRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/licences/{licence_id}/usage-history":{"get":{"summary":"Admin Licence Usage History","operationId":"admin_licence_usage_history_admin_licences__licence_id__usage_history_get","parameters":[{"name":"licence_id","in":"path","required":true,"schema":{"type":"integer","title":"Licence Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-anthias-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Anthias-Admin-Token"}},{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Licence Usage History Admin Licences  Licence Id  Usage History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/licences/{licence_id}":{"patch":{"summary":"Admin Update Licence","operationId":"admin_update_licence_admin_licences__licence_id__patch","parameters":[{"name":"licence_id","in":"path","required":true,"schema":{"type":"integer","title":"Licence Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-anthias-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Anthias-Admin-Token"}},{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenceUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenceRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/licences/{licence_id}/reset-activations":{"post":{"summary":"Admin Reset Licence Activations","operationId":"admin_reset_licence_activations_admin_licences__licence_id__reset_activations_post","parameters":[{"name":"licence_id","in":"path","required":true,"schema":{"type":"integer","title":"Licence Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-anthias-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Anthias-Admin-Token"}},{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Reset Licence Activations Admin Licences  Licence Id  Reset Activations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/licences/{licence_id}/email":{"post":{"summary":"Admin Email Licence","operationId":"admin_email_licence_admin_licences__licence_id__email_post","parameters":[{"name":"licence_id","in":"path","required":true,"schema":{"type":"integer","title":"Licence Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-anthias-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Anthias-Admin-Token"}},{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Email Licence Admin Licences  Licence Id  Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/app-update":{"get":{"summary":"Admin Get App Update","operationId":"admin_get_app_update_admin_app_update_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-anthias-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Anthias-Admin-Token"}},{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppUpdateSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Admin Save App Update","operationId":"admin_save_app_update_admin_app_update_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-anthias-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Anthias-Admin-Token"}},{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppUpdateSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppUpdateSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/billing/checkout":{"post":{"summary":"Admin Create Billing Checkout","operationId":"admin_create_billing_checkout_admin_billing_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-anthias-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Anthias-Admin-Token"}},{"name":"anthias_admin_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anthias Admin Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/checkout":{"post":{"summary":"Create Public Billing Checkout","operationId":"create_public_billing_checkout_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBillingCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBillingCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/add-ons/checkout":{"post":{"summary":"Create Addon Billing Checkout","operationId":"create_addon_billing_checkout_billing_add_ons_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOnCheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOnCheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/portal":{"post":{"summary":"Create Billing Portal","operationId":"create_billing_portal_billing_portal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stripe/webhook":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_stripe_webhook_post","parameters":[{"name":"Stripe-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stripe Webhook Stripe Webhook Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/app/latest-version":{"get":{"summary":"Latest Version","operationId":"latest_version_app_latest_version_get","parameters":[{"name":"current_version","in":"query","required":false,"schema":{"type":"string","default":"","title":"Current Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Latest Version App Latest Version Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/support/diagnostics":{"post":{"summary":"Support Diagnostics","operationId":"support_diagnostics_support_diagnostics_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportDiagnosticsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Support Diagnostics Support Diagnostics Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/summarise":{"post":{"summary":"Summarise","operationId":"summarise_summarise_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummariseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummariseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/summarise/openai":{"post":{"summary":"Summarise Openai","operationId":"summarise_openai_summarise_openai_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummariseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummariseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AddOnCheckoutRequest":{"properties":{"add_on":{"type":"string","pattern":"^(notes|device)$","title":"Add On"},"quantity":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Quantity","default":1}},"type":"object","required":["add_on"],"title":"AddOnCheckoutRequest"},"AddOnCheckoutResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["checkout_url"],"title":"AddOnCheckoutResponse"},"AppUpdateSettings":{"properties":{"latest_version":{"type":"string","maxLength":40,"title":"Latest Version","default":"0.1.0"},"download_url":{"type":"string","maxLength":1000,"title":"Download Url","default":""},"release_notes":{"type":"string","maxLength":4000,"title":"Release Notes","default":"No release notes published yet."},"required":{"type":"boolean","title":"Required","default":false}},"type":"object","title":"AppUpdateSettings"},"BillingCheckoutRequest":{"properties":{"clinic_name":{"type":"string","maxLength":200,"minLength":1,"title":"Clinic Name"},"contact_email":{"type":"string","maxLength":320,"minLength":1,"title":"Contact Email"},"plan":{"type":"string","maxLength":80,"title":"Plan","default":"solo"},"success_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Success Url"},"cancel_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Cancel Url"}},"type":"object","required":["clinic_name","contact_email"],"title":"BillingCheckoutRequest"},"BillingCheckoutResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"},"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["checkout_url","session_id"],"title":"BillingCheckoutResponse"},"BillingPortalResponse":{"properties":{"portal_url":{"type":"string","title":"Portal Url"}},"type":"object","required":["portal_url"],"title":"BillingPortalResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LicenceCheckRequest":{"properties":{"app_version":{"type":"string","maxLength":40,"title":"App Version","default":""},"machine_id":{"type":"string","maxLength":200,"title":"Machine Id","default":""},"user_email":{"type":"string","maxLength":320,"title":"User Email","default":""}},"type":"object","title":"LicenceCheckRequest"},"LicenceCheckResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"plan":{"type":"string","title":"Plan","default":"development"},"organisation":{"type":"string","title":"Organisation","default":"Local Development"},"message":{"type":"string","title":"Message"},"checked_at":{"type":"string","title":"Checked At"},"allowed_devices":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Allowed Devices"},"ai_notes_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ai Notes Used"},"ai_notes_included":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ai Notes Included"},"estimated_tokens_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Tokens Used"},"estimated_tokens_included":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Tokens Included"},"extra_devices":{"type":"integer","title":"Extra Devices","default":0},"extra_ai_note_packs":{"type":"integer","title":"Extra Ai Note Packs","default":0}},"type":"object","required":["valid","message","checked_at"],"title":"LicenceCheckResponse"},"LicenceCreateRequest":{"properties":{"token":{"type":"string","maxLength":200,"title":"Token","default":""},"clinic_name":{"type":"string","maxLength":200,"minLength":1,"title":"Clinic Name"},"contact_email":{"type":"string","maxLength":320,"minLength":1,"title":"Contact Email"},"plan":{"type":"string","maxLength":80,"title":"Plan","default":"solo"},"active":{"type":"boolean","title":"Active","default":true},"expires_at":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Expires At"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"},"extra_devices":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Extra Devices","default":0},"extra_ai_note_packs":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Extra Ai Note Packs","default":0}},"type":"object","required":["clinic_name","contact_email"],"title":"LicenceCreateRequest"},"LicenceRecord":{"properties":{"id":{"type":"integer","title":"Id"},"token":{"type":"string","title":"Token"},"clinic_name":{"type":"string","title":"Clinic Name"},"contact_email":{"type":"string","title":"Contact Email"},"plan":{"type":"string","title":"Plan"},"active":{"type":"boolean","title":"Active"},"created_at":{"type":"string","title":"Created At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"stripe_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Customer Id"},"stripe_subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Subscription Id"},"stripe_checkout_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Checkout Session Id"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"extra_devices":{"type":"integer","title":"Extra Devices","default":0},"extra_ai_note_packs":{"type":"integer","title":"Extra Ai Note Packs","default":0},"plan_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Name"},"allowed_devices":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Allowed Devices"},"ai_notes_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ai Notes Used"},"ai_notes_included":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ai Notes Included"},"estimated_tokens_used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Tokens Used"},"estimated_tokens_included":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Tokens Included"},"usage_period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Usage Period"},"welcome_email_sent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Welcome Email Sent"}},"type":"object","required":["id","token","clinic_name","contact_email","plan","active","created_at"],"title":"LicenceRecord"},"LicenceUpdateRequest":{"properties":{"token":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Token"},"clinic_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Clinic Name"},"contact_email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Contact Email"},"plan":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Plan"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"expires_at":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Expires At"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Notes"},"extra_devices":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Extra Devices"},"extra_ai_note_packs":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":0.0},{"type":"null"}],"title":"Extra Ai Note Packs"}},"type":"object","title":"LicenceUpdateRequest"},"PublicBillingCheckoutRequest":{"properties":{"clinic_name":{"type":"string","maxLength":200,"minLength":1,"title":"Clinic Name"},"contact_email":{"type":"string","maxLength":320,"minLength":1,"title":"Contact Email"},"plan":{"type":"string","maxLength":80,"title":"Plan","default":"solo"}},"type":"object","required":["clinic_name","contact_email"],"title":"PublicBillingCheckoutRequest"},"PublicBillingCheckoutResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"}},"type":"object","required":["checkout_url"],"title":"PublicBillingCheckoutResponse"},"SummariseRequest":{"properties":{"transcript":{"type":"string","minLength":1,"title":"Transcript"},"mode":{"type":"string","pattern":"^(basic|dentist)$","title":"Mode","default":"dentist"},"app_version":{"type":"string","maxLength":40,"title":"App Version","default":""},"machine_id":{"type":"string","maxLength":200,"title":"Machine Id","default":""},"clinical_profile":{"type":"string","maxLength":80,"title":"Clinical Profile","default":"dentistry"},"note_language":{"type":"string","maxLength":40,"title":"Note Language","default":"english"},"glossary":{"additionalProperties":true,"type":"object","title":"Glossary"}},"type":"object","required":["transcript"],"title":"SummariseRequest"},"SummariseResponse":{"properties":{"summary":{"type":"string","title":"Summary"},"model":{"type":"string","title":"Model"},"prompt_version":{"type":"string","title":"Prompt Version"}},"type":"object","required":["summary","model","prompt_version"],"title":"SummariseResponse"},"SupportDiagnosticsRequest":{"properties":{"report":{"type":"string","maxLength":30000,"minLength":1,"title":"Report"},"app_version":{"type":"string","maxLength":40,"title":"App Version","default":""},"contact_email":{"type":"string","maxLength":320,"title":"Contact Email","default":""}},"type":"object","required":["report"],"title":"SupportDiagnosticsRequest"},"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"}}}}