{"openapi":"3.1.0","info":{"title":"SourceActs","description":"Hosted MCP server that gives AI agents real-time access to official regulatory sources such as EUR-Lex, WTO, UN documents, and national gazettes.","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Home","operationId":"home__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/pricing":{"get":{"summary":"Pricing","operationId":"pricing_pricing_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/contact":{"get":{"summary":"Contact Page","operationId":"contact_page_contact_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Contact Submit","operationId":"contact_submit_contact_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_contact_submit_contact_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/docs":{"get":{"summary":"Docs","operationId":"docs_docs_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/faq":{"get":{"summary":"Faq Page","operationId":"faq_page_faq_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/recipes":{"get":{"summary":"Recipes","operationId":"recipes_recipes_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/status":{"get":{"summary":"Status Page","operationId":"status_page_status_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/sources":{"get":{"summary":"Sources Page","operationId":"sources_page_sources_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/login":{"get":{"summary":"Login Page","operationId":"login_page_login_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Login","operationId":"login_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_login_login_post"}}},"required":true},"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"}}}}}},"post":{"summary":"Signup","operationId":"signup_signup_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_signup_signup_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/forgot-password":{"get":{"summary":"Forgot Password Page","operationId":"forgot_password_page_forgot_password_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Forgot Password","operationId":"forgot_password_forgot_password_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_forgot_password_forgot_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reset-password":{"get":{"summary":"Reset Password Page","operationId":"reset_password_page_reset_password_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}},"post":{"summary":"Reset Password","operationId":"reset_password_reset_password_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_reset_password_reset_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/dashboard":{"get":{"summary":"Dashboard","operationId":"dashboard_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/legal/terms":{"get":{"summary":"Terms","operationId":"terms_legal_terms_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/legal/privacy":{"get":{"summary":"Privacy","operationId":"privacy_legal_privacy_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/legal/attribution":{"get":{"summary":"Attribution","operationId":"attribution_legal_attribution_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/legal/compliance":{"get":{"summary":"Compliance","operationId":"compliance_legal_compliance_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/logout":{"post":{"summary":"Logout","operationId":"logout_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/verify-email":{"get":{"summary":"Verify Email","operationId":"verify_email_verify_email_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/resend-verification":{"post":{"summary":"Resend Verification","operationId":"resend_verification_account_resend_verification_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/account/email":{"post":{"summary":"Change Email","operationId":"change_email_account_email_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_change_email_account_email_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/api-keys/rotate":{"post":{"summary":"Rotate Key","operationId":"rotate_key_account_api_keys_rotate_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing/checkout":{"post":{"summary":"Start Checkout","operationId":"start_checkout_billing_checkout_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_start_checkout_billing_checkout_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/portal":{"post":{"summary":"Billing Portal","operationId":"billing_portal_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhooks/stripe":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/search_regulations":{"post":{"tags":["mcp-tools"],"summary":"Search official regulations","description":"Search official regulatory texts by keyword, CELEX, or ELI.\n\nDefaults to EUR-Lex via the public Cellar SPARQL endpoint. Set source=uk,\nus, australia, canada, denmark, wto, un, or brazil for a single corpus, or source=all\nfor the primary wired sources. Free plans are limited to EUR-Lex and UK.","operationId":"search_regulations","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tools/fetch_metadata":{"post":{"tags":["mcp-tools"],"summary":"Fetch instrument metadata","description":"Fetch structured metadata for a CELEX number, ELI URI, Cellar URI, UK citation, Federal Register document number, Danish ELI, or Brazilian Lei/Decreto.","operationId":"fetch_metadata","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tools/get_latest_updates":{"post":{"tags":["mcp-tools"],"summary":"List latest official updates","description":"Return recent official instruments from OJ feeds, Cellar, and national gazettes.\n\nOptional `query` and `since` act as a watchlist: keep rows whose title or\nidentifier match the keyword and whose published_at is on or after `since`.\nPass `seen_hashes` from yesterday's rows to skip unchanged instruments.\nEach remaining row includes `fetch_identifier` for a follow-up fetch_metadata call.\nGazette updates require Starter ($5) or above.","operationId":"get_latest_updates","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources":{"get":{"tags":["public"],"summary":"List Sources","operationId":"list_sources_v1_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/audit":{"get":{"tags":["account"],"summary":"List Audit","operationId":"list_audit_v1_audit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/audit.csv":{"get":{"tags":["account"],"summary":"Export Audit","operationId":"export_audit_v1_audit_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/tools/create_watch":{"post":{"tags":["mcp-tools"],"summary":"Create a gazette watch","description":"Save a gazette watch. We poll official latest feeds and POST only changed rows to webhook_url.\n\nHMAC header X-SourceActs-Signature is t=<unix>,v1=<hex> over `{timestamp}.{body}`.\nThe first poll seeds hashes and does not notify. Starter ($5) and above.","operationId":"create_watch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tools/list_watches":{"post":{"tags":["mcp-tools"],"summary":"List gazette watches","description":"List saved watches for this API key's workspace. Signing secrets are not returned.","operationId":"list_watches","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WatchListRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WatchRecord"},"type":"array","title":"Response List Watches"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tools/delete_watch":{"post":{"tags":["mcp-tools"],"summary":"Delete a gazette watch","description":"Delete a watch by watch_id (wat_…).","operationId":"delete_watch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchDeleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Delete Watch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/watches":{"get":{"tags":["account"],"summary":"Rest List Watches","operationId":"rest_list_watches_v1_watches_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["account"],"summary":"Rest Create Watch","operationId":"rest_create_watch_v1_watches_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/watches/{watch_id}":{"delete":{"tags":["account"],"summary":"Rest Delete Watch","operationId":"rest_delete_watch_v1_watches__watch_id__delete","parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","title":"Watch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/watches":{"post":{"summary":"Account Create Watch","operationId":"account_create_watch_account_watches_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_account_create_watch_account_watches_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/account/watches/{watch_id}/delete":{"post":{"summary":"Account Delete Watch","operationId":"account_delete_watch_account_watches__watch_id__delete_post","parameters":[{"name":"watch_id","in":"path","required":true,"schema":{"type":"string","title":"Watch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/run-watches":{"post":{"summary":"Internal Run Watches","operationId":"internal_run_watches_internal_run_watches_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/demo/search":{"post":{"tags":["public"],"summary":"Demo Search","description":"Unauthenticated playground with a tight per-IP cap. Not exposed as an MCP tool.","operationId":"demo_search_v1_demo_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/version":{"get":{"summary":"Version","operationId":"version_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_account_create_watch_account_watches_post":{"properties":{"source":{"type":"string","title":"Source","default":"eurlex"},"query":{"type":"string","title":"Query","default":""},"webhook_url":{"type":"string","title":"Webhook Url"},"days":{"type":"integer","title":"Days","default":2},"name":{"type":"string","title":"Name","default":""}},"type":"object","required":["webhook_url"],"title":"Body_account_create_watch_account_watches_post"},"Body_change_email_account_email_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_change_email_account_email_post"},"Body_contact_submit_contact_post":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"message":{"type":"string","title":"Message"}},"type":"object","required":["name","email","message"],"title":"Body_contact_submit_contact_post"},"Body_forgot_password_forgot_password_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_forgot_password_forgot_password_post"},"Body_login_login_post":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"Body_login_login_post"},"Body_reset_password_reset_password_post":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","title":"Password"}},"type":"object","required":["token","password"],"title":"Body_reset_password_reset_password_post"},"Body_signup_signup_post":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"accept_terms":{"type":"string","title":"Accept Terms","default":""}},"type":"object","required":["email","password"],"title":"Body_signup_signup_post"},"Body_start_checkout_billing_checkout_post":{"properties":{"plan":{"type":"string","title":"Plan","default":"starter"}},"type":"object","title":"Body_start_checkout_billing_checkout_post"},"FetchRequest":{"properties":{"identifier":{"type":"string","maxLength":400,"minLength":3,"title":"Identifier","description":"CELEX number, ELI URI, Cellar URI, UK citation, Australian title id, SOR/SI number, Federal Register document number, Danish ELI or Lovtidende citation, WTO symbol, UN symbol, or Brazilian Lei/Decreto citation."},"language":{"type":"string","title":"Language","default":"en"},"source":{"type":"string","enum":["all","eurlex","wto","un","uk","us","india","brazil","canada","australia","denmark"],"title":"Source","default":"eurlex"}},"type":"object","required":["identifier"],"title":"FetchRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Instrument":{"properties":{"source":{"type":"string","title":"Source"},"identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identifier"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"eli":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Eli"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"document_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Type"},"extra":{"additionalProperties":true,"type":"object","title":"Extra"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At","description":"ISO date YYYY-MM-DD when known."},"official_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Official Url","description":"Official publisher locator."},"retrieved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrieved At"},"licence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licence"},"tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tier","description":"official_feed, portal_listing, or experimental."},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash","description":"SHA-256 of source, identifier, title, published_at, official_url, and document_type."}},"type":"object","required":["source"],"title":"Instrument"},"LatestRequest":{"properties":{"source":{"type":"string","enum":["all","eurlex","wto","un","uk","us","india","brazil","canada","australia","denmark"],"title":"Source","default":"eurlex"},"document_type":{"type":"string","enum":["all","regulation","directive","decision","treaty","case-law"],"title":"Document Type","default":"regulation"},"language":{"type":"string","title":"Language","default":"en"},"days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Days","description":"Look back window for SPARQL date filters.","default":7},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","default":15},"query":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Query","description":"Optional keyword filter across title and identifier (watchlist)."},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since","description":"Optional inclusive start date YYYY-MM-DD for published_at."},"seen_hashes":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Seen Hashes","description":"SHA-256 content_hash values from a previous latest call. Matching rows are omitted so only real changes remain."}},"type":"object","title":"LatestRequest"},"SearchRequest":{"properties":{"query":{"type":"string","maxLength":300,"minLength":2,"title":"Query","description":"Keywords, CELEX number, or ELI URI to search across official sources."},"language":{"type":"string","title":"Language","description":"ISO 639-1 language code for titles (en, fr, de, da, es, it, nl, pt, sv, pl).","default":"en"},"date_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From","description":"Inclusive start date YYYY-MM-DD."},"date_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To","description":"Inclusive end date YYYY-MM-DD."},"document_type":{"type":"string","enum":["all","regulation","directive","decision","treaty","case-law"],"title":"Document Type","description":"Filter by instrument type when the source supports it.","default":"all"},"source":{"type":"string","enum":["all","eurlex","wto","un","uk","us","india","brazil","canada","australia","denmark"],"title":"Source","description":"Official source: eurlex, uk, us, australia, canada, denmark, wto, un, brazil, or all.","default":"eurlex"},"page":{"type":"integer","maximum":200.0,"minimum":1.0,"title":"Page","default":1},"page_size":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Page Size","default":10}},"type":"object","required":["query"],"title":"SearchRequest"},"ToolResponse":{"properties":{"source":{"type":"string","title":"Source"},"attribution":{"type":"string","title":"Attribution"},"count":{"type":"integer","title":"Count"},"items":{"items":{"$ref":"#/components/schemas/Instrument"},"type":"array","title":"Items"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["source","attribution","count","items"],"title":"ToolResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WatchCreateRequest":{"properties":{"source":{"type":"string","enum":["all","eurlex","wto","un","uk","us","india","brazil","canada","australia","denmark"],"title":"Source","default":"eurlex"},"query":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Query"},"webhook_url":{"type":"string","maxLength":500,"minLength":8,"title":"Webhook Url"},"document_type":{"type":"string","enum":["all","regulation","directive","decision","treaty","case-law"],"title":"Document Type","default":"regulation"},"language":{"type":"string","title":"Language","default":"en"},"days":{"type":"integer","maximum":90.0,"minimum":1.0,"title":"Days","default":2},"name":{"type":"string","maxLength":120,"title":"Name","default":""}},"type":"object","required":["webhook_url"],"title":"WatchCreateRequest"},"WatchDeleteRequest":{"properties":{"watch_id":{"type":"string","maxLength":40,"minLength":4,"title":"Watch Id"}},"type":"object","required":["watch_id"],"title":"WatchDeleteRequest"},"WatchListRequest":{"properties":{},"type":"object","title":"WatchListRequest"},"WatchRecord":{"properties":{"watch_id":{"type":"string","title":"Watch Id"},"name":{"type":"string","title":"Name","default":""},"source":{"type":"string","title":"Source"},"query":{"type":"string","title":"Query","default":""},"document_type":{"type":"string","title":"Document Type"},"days":{"type":"integer","title":"Days"},"webhook_url":{"type":"string","title":"Webhook Url"},"enabled":{"type":"boolean","title":"Enabled"},"last_run_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Run At"},"last_status":{"type":"string","title":"Last Status","default":"seed"},"last_error":{"type":"string","title":"Last Error","default":""},"last_hit_count":{"type":"integer","title":"Last Hit Count","default":0},"signing_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signing Secret"}},"type":"object","required":["watch_id","source","document_type","days","webhook_url","enabled"],"title":"WatchRecord"}}}}