{"openapi":"3.1.0","info":{"title":"MeshArc API","description":"A URL in, clean content out, and a record of what changed. Authenticate with `Authorization: Bearer mesharc_...`; every resource is scoped to the key's workspace. Clients: `pip install mesharc`, `npm install mesharc`; MCP server: `pip install 'mesharc[mcp]'`.","version":"1.0"},"paths":{"/api/v1/me":{"get":{"summary":"Me","operationId":"me_api_v1_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Me","description":"Workspace settings an admin decides: the rate ceiling, and whether\nmembers need a second factor -- that one an owner decides, with a\nfactor of their own, so nobody is locked out by a rule its author\ndoes not meet.","operationId":"update_me_api_v1_me_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/notifications":{"get":{"summary":"My Notifications","description":"The signed-in member's run and monitor notifications not yet\ndismissed -- only while no mail host is configured, when the app shows\nthem as popups because no email will. A key has no inbox: none.","operationId":"my_notifications_api_v1_me_notifications_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/notifications/{notice_id}/seen":{"post":{"summary":"Notification Seen","description":"Dismiss one of your notifications; 404 for one that is not yours.","operationId":"notification_seen_api_v1_me_notifications__notice_id__seen_post","parameters":[{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/usage":{"get":{"summary":"Usage","description":"Pages fetched per day for the last 30 days, and this month's totals.\n\nThe credit counters sit alongside the page counts rather than\nreplacing them: a page is what a customer asks for and a credit is\nwhat it costs, and the screens that read this want both.","operationId":"usage_api_v1_me_usage_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing":{"get":{"summary":"Billing","description":"The plan, what it includes, what has been spent, and the charges\nbehind that number. What the Billing screen is.","operationId":"billing_api_v1_me_billing_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/invoices":{"get":{"summary":"Billing Invoices","operationId":"billing_invoices_api_v1_me_billing_invoices_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/credit-notes/{note_id}":{"get":{"summary":"Billing Credit Note","description":"A credit note as a page with a print stylesheet.","operationId":"billing_credit_note_api_v1_me_billing_credit_notes__note_id__get","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/invoices/{invoice_id}":{"get":{"summary":"Billing Invoice","description":"The tax invoice as a page with a print stylesheet: the browser's\nPrint is the PDF.","operationId":"billing_invoice_api_v1_me_billing_invoices__invoice_id__get","parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","title":"Invoice Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/subscribe":{"post":{"summary":"Billing Subscribe","description":"Start a subscription: the Razorpay customer and subscription are\nmade and what Checkout needs comes back. The plan is set when\n`confirm` sees the signature, and again when the webhook does.","operationId":"billing_subscribe_api_v1_me_billing_subscribe_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscribeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/confirm":{"post":{"summary":"Billing Confirm","description":"Checkout came back. The signature is checked under the key secret;\na subscription is put on its plan, a credit purchase is credited.","operationId":"billing_confirm_api_v1_me_billing_confirm_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/change":{"post":{"summary":"Billing Change","description":"Another plan or period. An upgrade is applied now and the prorated\ndifference charged; a downgrade waits for the cycle end.","operationId":"billing_change_api_v1_me_billing_change_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/keep":{"post":{"summary":"Billing Keep","description":"Call off a scheduled downgrade.","operationId":"billing_keep_api_v1_me_billing_keep_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/cancel":{"post":{"summary":"Billing Cancel","description":"Stop at the cycle end. The plan stays until then.","operationId":"billing_cancel_api_v1_me_billing_cancel_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/card":{"post":{"summary":"Billing Card","description":"What Checkout needs to put a new card on the subscription.","operationId":"billing_card_api_v1_me_billing_card_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/credits/buy":{"post":{"summary":"Billing Buy Credits","description":"Credits beyond the plan: an Order for the packs, for Checkout. The\ncredits land when the payment is confirmed or captured.","operationId":"billing_buy_credits_api_v1_me_billing_credits_buy_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyCreditsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/cap":{"patch":{"summary":"Billing Cap","description":"How far past the allowance the workspace may run on overage, as a\nmultiple; 0 for no cap.","operationId":"billing_cap_api_v1_me_billing_cap_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/billing/receipts":{"get":{"summary":"Billing Receipts","operationId":"billing_receipts_api_v1_me_billing_receipts_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/proxies":{"get":{"summary":"Proxies","description":"The deployment's exits and what this workspace's runs learned about\neach: which hosts it was adopted for, where parity failed, whether it\nis burned or dead, and its success rate on the pages fetched through\nit. Geo comes from the workers' survey cache; nothing is looked up here.","operationId":"proxies_api_v1_me_proxies_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/monitor":{"get":{"summary":"Monitor","description":"What is running and waiting for this org, and the workers the queue\nhas heard from. Workers are shared across orgs; their names are shown,\nwhat they are doing for other orgs is not.","operationId":"monitor_api_v1_me_monitor_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/keys":{"get":{"summary":"List Keys","operationId":"list_keys_api_v1_me_keys_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Key","operationId":"create_key_api_v1_me_keys_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/keys/{key_id}":{"delete":{"summary":"Revoke Key","operationId":"revoke_key_api_v1_me_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orgs/children":{"get":{"summary":"List Children","description":"This workspace's sub-accounts, with this month's spend and what each\nmay still spend; and how many the plan allows.","operationId":"list_children_api_v1_orgs_children_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Child","description":"A sub-account: a workspace of its own for one of your customers, on\nthis workspace's plan and spending its credits. `Idempotency-Key` makes\na retry return the first answer instead of a second workspace.","operationId":"create_child_api_v1_orgs_children_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubAccountRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orgs/children/{child_id}":{"get":{"summary":"Get Child","description":"One sub-account: its month as its own Billing screen shows it, what\nit spent by kind, its latest charges, and which of your keys acted on\nit these 30 days.","operationId":"get_child_api_v1_orgs_children__child_id__get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Child","description":"Rename it, set its monthly cap (0: none), or suspend it -- which\nrefuses its keys and cancels what it has running -- and lift that.","operationId":"update_child_api_v1_orgs_children__child_id__patch","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubAccountUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orgs/children/{child_id}/keys":{"get":{"summary":"List Child Keys","operationId":"list_child_keys_api_v1_orgs_children__child_id__keys_get","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Child Key","description":"A key of the sub-account's own, to hand to your customer: it reaches\nthat workspace and nothing else. Shown once.","operationId":"create_child_key_api_v1_orgs_children__child_id__keys_post","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orgs/children/{child_id}/keys/{key_id}":{"delete":{"summary":"Revoke Child Key","operationId":"revoke_child_key_api_v1_orgs_children__child_id__keys__key_id__delete","parameters":[{"name":"child_id","in":"path","required":true,"schema":{"type":"string","title":"Child Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/logins":{"get":{"summary":"List Logins","description":"This workspace's saved logins: the site, who saved one and when, the\nterms they accepted, whether it still works. Never the session.","operationId":"list_logins_api_v1_logins_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/logins/{login_id}":{"patch":{"summary":"Update Login","operationId":"update_login_api_v1_logins__login_id__patch","parameters":[{"name":"login_id","in":"path","required":true,"schema":{"type":"string","title":"Login Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Login","description":"Delete a saved login: its session is gone, and the projects and runs\nthat name it stop -- a run never falls back to fetching signed out.","operationId":"delete_login_api_v1_logins__login_id__delete","parameters":[{"name":"login_id","in":"path","required":true,"schema":{"type":"string","title":"Login Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/logins/{login_id}/test":{"post":{"summary":"Test Login","description":"One plain fetch of the site's front page with the login: whether the\nsite answered, and whether it showed its login page. Free; a page that\nneeds a browser to show who is signed in reads the same either way, so\na run is the real test.","operationId":"test_login_api_v1_logins__login_id__test_post","parameters":[{"name":"login_id","in":"path","required":true,"schema":{"type":"string","title":"Login Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects":{"get":{"summary":"List Projects","operationId":"list_projects_api_v1_projects_get","parameters":[{"name":"v","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":0,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Project","operationId":"create_project_api_v1_projects_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/batch":{"post":{"summary":"Create Projects","description":"Many sites at once: one project per seed, each taking the template\nproject's config, schedule and retention (its URL lists, feeds and\npatterns excepted -- those name a site's own pages). Seeds that cannot\nbecome a project are listed with the reason; the rest are created.","operationId":"create_projects_api_v1_projects_batch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectsCreateMany"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/config/apply":{"post":{"summary":"Apply Project Config","description":"Copy this project's config onto others -- the chosen groups (scope,\nfetch, content, output, advanced) or all of them; URL lists, feeds and\npatterns never travel. A target already matching keeps its version.","operationId":"apply_project_config_api_v1_projects__project_id__config_apply_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyConfig"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/run":{"post":{"summary":"Start Runs","operationId":"start_runs_api_v1_projects_run_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunMany"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}":{"get":{"summary":"Get Project","operationId":"get_project_api_v1_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Project","operationId":"update_project_api_v1_projects__project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Project","operationId":"delete_project_api_v1_projects__project_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/discovery":{"get":{"summary":"Get Discovery","description":"What the site declares: robots, every sitemap file with its section\nand counts, the feeds, and what changed since the last snapshot. Null\nuntil the first discovery has run; `job` says whether one is running.","operationId":"get_discovery_api_v1_projects__project_id__discovery_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Rediscover","operationId":"rediscover_api_v1_projects__project_id__discovery_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/discovery/entries":{"get":{"summary":"Discovery Entries","description":"The URLs one sitemap file (or one path prefix, or a text match)\ndeclares, paged; and the path prefixes of the file.","operationId":"discovery_entries_api_v1_projects__project_id__discovery_entries_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"file","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File"}},{"name":"prefix","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefix"}},{"name":"snapshot_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snapshot Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/sources":{"get":{"summary":"List Sources","operationId":"list_sources_api_v1_projects__project_id__sources_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/selectors/match":{"post":{"summary":"Selector Matches","description":"How many elements each selector matches on the pages of the last run\nthat have their html stored -- always the home page, every page under\nSTORE_HTML=always. Nothing is fetched.","operationId":"selector_matches_api_v1_projects__project_id__selectors_match_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/content/preview":{"post":{"summary":"Content Preview","description":"What the content filters make of one stored page -- the home page\nunless another with html stored is named -- under the project's config\nwith the request's (unsaved) changes on top. Nothing is fetched.","operationId":"content_preview_api_v1_projects__project_id__content_preview_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ContentPreviewRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/sources/preview":{"post":{"summary":"Sources Preview","description":"What the sources would add: each pattern's count and first URLs,\neach feed read now with its entry count, the URL list checked. Nothing\nis queued.","operationId":"sources_preview_api_v1_projects__project_id__sources_preview_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourcePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/dry-run":{"post":{"summary":"Dry Run","description":"What the scope patterns would do to the URLs this project already\nknows -- the last finished run's pages and the frontier it left queued.\nNothing is fetched. The patterns come from the request (unsaved edits)\nor, failing that, the saved config.","operationId":"dry_run_api_v1_projects__project_id__dry_run_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DryRunRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/runs":{"get":{"summary":"List Runs","operationId":"list_runs_api_v1_projects__project_id__runs_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"v","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Start Run","operationId":"start_run_api_v1_projects__project_id__runs_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunCreate"},{"type":"null"}],"title":"Req"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/pages/recrawl":{"post":{"summary":"Recrawl Pages","description":"Fetch exactly these pages again, now. A run of its own, listed under\nRuns as a re-crawl, whose record compares the listed pages against the\nlast full run; it never stands in for the site.","operationId":"recrawl_pages_api_v1_projects__project_id__pages_recrawl_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecrawlRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/runs/{run_id}":{"get":{"summary":"Get Run","operationId":"get_run_api_v1_projects__project_id__runs__run_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/runs/{run_id}/cancel":{"post":{"summary":"Cancel Run","operationId":"cancel_run_api_v1_projects__project_id__runs__run_id__cancel_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/pages":{"get":{"summary":"List Pages","description":"Pages of one run -- the latest finished one unless `run_id` is given.\n`flag` narrows to one link-graph set: orphan, unlisted, dead_end.","operationId":"list_pages_api_v1_projects__project_id__pages_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"flag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flag"}},{"name":"v","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/runs/{run_id}/links":{"get":{"summary":"Run Links","description":"One set of the run's link graph -- orphans, unlisted, dead_ends --\npaged by URL, with the coverage that says whether it is a verdict.","operationId":"run_links_api_v1_projects__project_id__runs__run_id__links_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"orphans","title":"Kind"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/pages/search":{"post":{"summary":"Search Pages","description":"Which pages of a run say this (content: words and \"phrases\" over the\nstored markdown) or contain this (selector: CSS, or XPath starting\nwith / or (, over the stored html). A scan, not an index; nothing is\nfetched. Pages without a stored body are counted, not guessed.","operationId":"search_pages_api_v1_projects__project_id__pages_search_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mesharc__api__routes__SearchRequest__1"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/pages/content":{"get":{"summary":"Page Content","description":"One stored page in full: markdown, html, head. Scoped by walking\nproject -> run -> page, so a URL in another org's run is a 404.","operationId":"page_content_api_v1_projects__project_id__pages_content_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/pages/screenshot":{"get":{"summary":"Page Screenshot","description":"The render's picture of one page, as JPEG. Scoped like page content.","operationId":"page_screenshot_api_v1_projects__project_id__pages_screenshot_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/pages/removed":{"get":{"summary":"Page Removed","description":"What the content filters took out of one stored page, under the\nproject's current config: banners, widgets, base64 images, excluded\nand out-of-scope selectors, and the chrome the converter drops. Needs\nthe page's html -- always there for the home page, for every page\nunder STORE_HTML=always.","operationId":"page_removed_api_v1_projects__project_id__pages_removed_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks":{"get":{"summary":"Webhooks Overview","description":"Every project's webhook and how it is doing, for the Exports screen.","operationId":"webhooks_overview_api_v1_webhooks_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/webhooks":{"get":{"summary":"Webhook State","description":"The project's signing secret and its recent deliveries.\n\nThe secret only to an admin or an owner -- the roles that can rotate it.\nAnyone else, a read-only key or a connected app included, could sign\nmessages the customer's system would trust; they get `secretHidden`\ninstead, and their read does not mint a missing secret either.","operationId":"webhook_state_api_v1_projects__project_id__webhooks_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/deliveries":{"get":{"summary":"Webhook Deliveries","description":"What a job's or a project's webhook was sent, attempt by attempt --\nthe answer to \"the webhook did not arrive\". One of `runId`,\n`projectId` names whose.","operationId":"webhook_deliveries_api_v1_webhooks_deliveries_get","parameters":[{"name":"runId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runid"}},{"name":"projectId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/deliveries/{delivery_id}/redeliver":{"post":{"summary":"Webhook Redeliver","description":"Send one delivery again, now, with its attempts kept.","operationId":"webhook_redeliver_api_v1_webhooks_deliveries__delivery_id__redeliver_post","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/webhooks/test":{"post":{"summary":"Webhook Test","description":"Queue a `run.finished` message for the last finished run (or a\nsample when there is none) so the endpoint can be checked now.","operationId":"webhook_test_api_v1_projects__project_id__webhooks_test_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/webhooks/secret":{"post":{"summary":"Webhook Rotate","description":"A new signing secret; the old one stops verifying at once.","operationId":"webhook_rotate_api_v1_projects__project_id__webhooks_secret_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/subscriptions":{"post":{"summary":"Webhook Subscribe","description":"Send a project's events to one more URL, beside its own webhook.\n\nFor apps that turn a project's events into their own triggers: a zap\nor a workflow subscribes when it is switched on and deletes its\nsubscription when it is switched off. Each subscription has a secret\nof its own (`subscription.secret`, here only): its messages are signed\nwith it, as `X-MeshArc-Signature`, exactly as the project's own are\nwith the project's. Subscribing the same URL to the same project again\nreturns that subscription (200, `created: false`) with the events now\nnamed. 400 on a URL that is not public http(s) or an event the project\ndoes not send; 409 when the project has 25 already.","operationId":"webhook_subscribe_api_v1_webhooks_subscriptions_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Webhook Subscriptions","description":"The workspace's subscriptions, or one project's (`projectId`),\nnewest first. Never with their secrets.","operationId":"webhook_subscriptions_api_v1_webhooks_subscriptions_get","parameters":[{"name":"projectId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Projectid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/subscriptions/{subscription_id}":{"delete":{"summary":"Webhook Unsubscribe","description":"Stop sending to a subscription. Its messages still waiting are not\nsent; what was delivered stays in the log.","operationId":"webhook_unsubscribe_api_v1_webhooks_subscriptions__subscription_id__delete","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/connections/providers":{"get":{"summary":"Connection Providers","operationId":"connection_providers_api_v1_connections_providers_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/connections":{"get":{"summary":"List Connections","operationId":"list_connections_api_v1_connections_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Connection","operationId":"create_connection_api_v1_connections_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/connections/{connection_id}":{"get":{"summary":"Get Connection","operationId":"get_connection_api_v1_connections__connection_id__get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Connection","operationId":"patch_connection_api_v1_connections__connection_id__patch","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Connection","operationId":"delete_connection_api_v1_connections__connection_id__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/connections/{connection_id}/test":{"post":{"summary":"Test Connection","operationId":"test_connection_api_v1_connections__connection_id__test_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/destinations/preview":{"post":{"summary":"Preview Destination","description":"What these settings would write for a project's last finished run:\nthe first rows after the shape, with every count. Nothing is written,\nnothing saved -- a shape is checked here before it is.","operationId":"preview_destination_api_v1_destinations_preview_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationPreview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/destinations/shape-functions":{"get":{"summary":"Shape Functions","description":"The fixed function set, casts and operators a shape may use.","operationId":"shape_functions_api_v1_destinations_shape_functions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/destinations":{"get":{"summary":"List All Destinations","description":"Every destination in the workspace -- projects' own and shared -- with\nthe projects each writes; the Exports screen's view of where content goes.","operationId":"list_all_destinations_api_v1_destinations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Shared Destination","description":"A destination every project (scope all) or a chosen set (scope\nprojects) writes to after each of their runs: one table for many sites,\nwith site and project columns to tell the rows apart.","operationId":"create_shared_destination_api_v1_destinations_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedDestinationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/destinations/{destination_id}":{"patch":{"summary":"Patch Shared Destination","operationId":"patch_shared_destination_api_v1_destinations__destination_id__patch","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","title":"Destination Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedDestinationPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Shared Destination","operationId":"delete_shared_destination_api_v1_destinations__destination_id__delete","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","title":"Destination Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/destinations/{destination_id}/syncs":{"get":{"summary":"Shared Destination Syncs","operationId":"shared_destination_syncs_api_v1_destinations__destination_id__syncs_get","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","title":"Destination Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/destinations/{destination_id}/sync":{"post":{"summary":"Sync Shared Destination","description":"Queue a sync of the latest finished run of every project in scope\n(or of one project) to this destination.","operationId":"sync_shared_destination_api_v1_destinations__destination_id__sync_post","parameters":[{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","title":"Destination Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/destinations":{"get":{"summary":"List Destinations","operationId":"list_destinations_api_v1_projects__project_id__destinations_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Destination","operationId":"create_destination_api_v1_projects__project_id__destinations_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/destinations/{destination_id}":{"patch":{"summary":"Patch Destination","operationId":"patch_destination_api_v1_projects__project_id__destinations__destination_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","title":"Destination Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DestinationPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Destination","operationId":"delete_destination_api_v1_projects__project_id__destinations__destination_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","title":"Destination Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/destinations/{destination_id}/syncs":{"get":{"summary":"Destination Syncs","operationId":"destination_syncs_api_v1_projects__project_id__destinations__destination_id__syncs_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","title":"Destination Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/destinations/{destination_id}/sync":{"post":{"summary":"Sync Destination","description":"Queue a sync of the latest finished run to this destination; the\nworker does the writing so the API never holds a database open.","operationId":"sync_destination_api_v1_projects__project_id__destinations__destination_id__sync_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"destination_id","in":"path","required":true,"schema":{"type":"string","title":"Destination Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/changes":{"get":{"summary":"Get Changes","description":"What changed in a run against the run before it -- the latest\nfinished run unless `run_id` is given. `runs` lists the runs a record\ncan be shown for.\n\nWith `against`, the two runs are compared directly and the result is\ncomputed now rather than read: the stored record always compares a run\nwith the one before it, which is the wrong question once a run in\nbetween was degraded or re-baselined. Nothing is stored.","operationId":"get_changes_api_v1_projects__project_id__changes_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"against","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Against"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/rows":{"get":{"summary":"Get Rows","description":"The project's rows as they stand: one per record its pages hold.\n\n`active=false` lists the rows a run stopped finding -- a role taken\ndown, a lot withdrawn, a campaign removed from the table.","operationId":"get_rows_api_v1_projects__project_id__rows_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/rows/events":{"get":{"summary":"Get Row Events","description":"What moved: rows added, rows whose columns changed (one entry per\ncolumn, with both values), and rows that are gone.","operationId":"get_row_events_api_v1_projects__project_id__rows_events_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","default":"","title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/rows/{key}":{"get":{"summary":"Get Row","description":"One row: what it is now, when it was first and last seen, and every\nevent that touched it.","operationId":"get_row_api_v1_projects__project_id__rows__key__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/changes/{change_id}/review":{"post":{"summary":"Review Change","operationId":"review_change_api_v1_projects__project_id__changes__change_id__review_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/changes/page":{"get":{"summary":"Page Diff","description":"One page's content difference between a run and its predecessor:\nparagraph blocks with word-level pieces, volatile ones flagged.\n`against` diffs it against that run instead, matching the pair the\nchanges record was asked for.","operationId":"page_diff_api_v1_projects__project_id__changes_page_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"against","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Against"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/changes/markup":{"get":{"summary":"Markup Diff","description":"The DOM difference of one page between a run and its predecessor,\nnoise labelled. Needs both versions' raw html, which the engine keeps\nonly for refused and thin pages unless STORE_HTML=always. `against`\ndiffs it against that run instead.","operationId":"markup_diff_api_v1_projects__project_id__changes_markup_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"against","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Against"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/exports":{"get":{"summary":"List Exports","description":"Every dataset that can be downloaded right now, across the org's projects.","operationId":"list_exports_api_v1_exports_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/projects/{project_id}/export":{"get":{"summary":"Export","operationId":"export_api_v1_projects__project_id__export_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"dataset","in":"query","required":false,"schema":{"type":"string","default":"pages","title":"Dataset"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"jsonl","title":"Format"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Export Selection","description":"The same datasets, restricted to listed URLs -- a selection on the\nPages screen. POST because a selection does not fit in a query string.","operationId":"export_selection_api_v1_projects__project_id__export_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportSelection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/scrape":{"post":{"summary":"Scrape","description":"URLs in, their content out; no project.\n\nOne `url` waits for the page and returns it -- up to `timeout` seconds\n(60 by default, 120 at most), then 202 with the id to poll, the fetch\ncarrying on either way. A list of `urls` is always 202: grouped by host,\nsmall groups fanned out a task per URL, and either polled at\nGET /scrape/{id} or announced by `webhook_url` (`scrape.completed`,\nsigned with the secret returned here once).","operationId":"scrape_api_v1_scrape_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScrapeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Scrapes","operationId":"list_scrapes_api_v1_scrape_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"v","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/scrape/{scrape_id}":{"get":{"summary":"Scrape Result","description":"A scrape: the batch with a row per URL, or the single page of a\none-URL scrape that did not finish inside its request. `formats` picks\nthe bodies (`markdown,text,cleanHtml,rawHtml`).","operationId":"scrape_result_api_v1_scrape__scrape_id__get","parameters":[{"name":"scrape_id","in":"path","required":true,"schema":{"type":"string","title":"Scrape Id"}},{"name":"formats","in":"query","required":false,"schema":{"type":"string","default":"markdown","title":"Formats"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Scrape","description":"Stop a scrape: every run of a batch, or the single run of one URL.","operationId":"cancel_scrape_api_v1_scrape__scrape_id__delete","parameters":[{"name":"scrape_id","in":"path","required":true,"schema":{"type":"string","title":"Scrape Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/crawl":{"post":{"summary":"Start Crawl","description":"Crawl a site once, without making a project for it.\n\nThe crawl is a project underneath -- hidden, kept for a day, with the\nsame sitemap reading, ladder, scope rules and formats a project run\nhas -- so `POST /crawl/{id}/keep` turns this one job into a watched\nproject with its pages and its first run already in place. Answers\n202 with the id to poll at `GET /crawl/{id}`; `webhook` is told\ninstead.","operationId":"start_crawl_api_v1_crawl_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/crawl/{crawl_id}":{"get":{"summary":"Get Crawl","description":"A crawl: its progress and a page of its pages, oldest first.\n`next` is the link to the page after this one.","operationId":"get_crawl_api_v1_crawl__crawl_id__get","parameters":[{"name":"crawl_id","in":"path","required":true,"schema":{"type":"string","title":"Crawl Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":25,"title":"Limit"}},{"name":"formats","in":"query","required":false,"schema":{"type":"string","default":"markdown","title":"Formats"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Crawl","description":"Stop a crawl. Its pages so far stay readable.","operationId":"cancel_crawl_api_v1_crawl__crawl_id__delete","parameters":[{"name":"crawl_id","in":"path","required":true,"schema":{"type":"string","title":"Crawl Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/crawl/{crawl_id}/page":{"get":{"summary":"Crawl Page","description":"One page of a crawl in full: markdown, html, head.\n\n`GET /crawl/{id}` pages through a crawl with every page's body in it,\nwhich is what a reader wants when there are five pages and not what any\nreader wants when there are two hundred. A caller that has been given a\nshort excerpt of each comes back here for the whole of the one page it\ncared about. Scoped exactly as `GET /crawl/{id}` is: this workspace's\ncrawl, or a 404.","operationId":"crawl_page_api_v1_crawl__crawl_id__page_get","parameters":[{"name":"crawl_id","in":"path","required":true,"schema":{"type":"string","title":"Crawl Id"}},{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/crawl/{crawl_id}/keep":{"post":{"summary":"Keep Crawl","description":"Keep a one-shot crawl: it becomes a project, with this run as its\nfirst. Nothing is re-fetched and nothing moves -- only the flag that\nhid it and the expiry that would have deleted it.","operationId":"keep_crawl_api_v1_crawl__crawl_id__keep_post","parameters":[{"name":"crawl_id","in":"path","required":true,"schema":{"type":"string","title":"Crawl Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/KeepRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/map":{"post":{"summary":"Map Site","description":"Every URL a site declares, from its sitemaps.\n\nThe same discovery a project does before its first run -- robots.txt,\nthe well-known paths, the index files walked to their children -- read\nthrough the same ladder, so a site that needs a browser to serve its\nsitemap still answers. Inline when it resolves inside `timeout`\n(10 s by default), otherwise 202 and the id to poll.","operationId":"map_site_api_v1_map_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/map/{map_id}":{"get":{"summary":"Get Map","description":"A map that was still reading when it was asked for.","operationId":"get_map_api_v1_map__map_id__get","parameters":[{"name":"map_id","in":"path","required":true,"schema":{"type":"string","title":"Map Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50000,"minimum":1,"default":5000,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search":{"post":{"summary":"Web Search","description":"Web results for a query: Google's results page read through the\nladder, Bing's when Google refuses. Organic results only -- title, URL,\nsnippet -- each saying which engine it came from.\n\nWaits for the results like a one-URL /scrape -- up to `timeout` seconds\n(60 by default, 120 at most), then 202 with the id to poll at\nGET /search/{id}. `scrape` hands the results' URLs to a batch, and each\nresult gains its page as it lands. A refused results page is free; the\nsame search within the hour is answered from the last one at no charge.\n\n`webhook` (a URL, or {url, events, metadata}) is told once how the\nsearch ended -- `search.completed` or `search.failed`, an answer from\nthe cache included -- signed with `webhookSecret`, returned here only.","operationId":"web_search_api_v1_search_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mesharc__api__routes__SearchRequest__2"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Searches","description":"The workspace's searches, newest first (kept 7 days). `q` keeps those\nwhose query contains it. Reading the list fetches nothing and costs\nnothing; GET /search/{id} opens one.","operationId":"list_searches_api_v1_search_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search/{search_id}":{"get":{"summary":"Get Search","description":"A search: its results, and their pages when it scraped them.","operationId":"get_search_api_v1_search__search_id__get","parameters":[{"name":"search_id","in":"path","required":true,"schema":{"type":"string","title":"Search Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent":{"post":{"summary":"Start Agent","description":"An agent run: a prompt (and optional URLs and JSON Schema) in, the\nanswer with its sources out. It searches, maps and reads pages through\nthe same ladder as a crawl, and charges the same way: pages as they are\nread (refused pages free), model tokens at the model's price plus 20%\n(or 1 per 1k tokens on your own `connectionId`); `maxCredits`\ncaps the run (2,000 by default). Runs in the background: 202 with `next`\nto poll at GET /agent/{id}, or wait up to `timeout` seconds. With a\n`webhook` the run's life is posted to it, signed with `webhookSecret`\n(returned here once).","operationId":"start_agent_api_v1_agent_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Agents","description":"The workspace's agent runs, newest first. `status` keeps one status,\n`model` one model's runs (as runs name it, e.g. `openai:gpt-5.4-mini`),\n`since` / `until` the runs made from / before a date or date-time.","operationId":"list_agents_api_v1_agent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Status"}},{"name":"model","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Model"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Until"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/batch/preview":{"post":{"summary":"Preview Agent Batch","description":"What POST /agent/batch would do, without starting it or spending\nanything: the table as read, the rows that cannot run and why, the first\nprompts as their rows ask them, and the estimate against the balance.","operationId":"preview_agent_batch_api_v1_agent_batch_preview_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBatchPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/batch":{"post":{"summary":"Start Agent Batch","description":"The agent over every row of a table: one agent run a row, its\n`prompt` (and `urls`) filled from the row's columns as {{column}}, its\nanswer the row's new columns (`schema`). A few rows run at once\n(`concurrency`); each pays for what it uses up to `maxCreditsPerRow`,\nand the batch never spends more than rows x that cap, or the balance\nwhen that was less -- rows it cannot afford are skipped, free. Rows\nthat cannot run (a bad URL, an empty prompt) are kept as `invalid`\nand never charged. 202 with `next` to poll; the webhook hears\nagent.batch.finished once.","operationId":"start_agent_batch_api_v1_agent_batch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBatchRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBatch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Agent Batches","description":"The workspace's agent batches, newest first, without their rows.","operationId":"list_agent_batches_api_v1_agent_batch_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBatchList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/batch/{batch_id}":{"get":{"summary":"Get Agent Batch","description":"A batch and one page of its rows, in table order -- each with its\nstatus, answer, sources and credits as its run has them. `status` keeps\none status (done, error, invalid, …). 410 past its keep date.","operationId":"get_agent_batch_api_v1_agent_batch__batch_id__get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBatch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Agent Batch","description":"Stop a batch: rows not started are cancelled, running ones stop\nbefore their next step. What rows already used stays charged; their\nanswers are kept.","operationId":"cancel_agent_batch_api_v1_agent_batch__batch_id__delete","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/batch/{batch_id}/export":{"get":{"summary":"Export Agent Batch","description":"The batch as a file: the table as it was sent, each row's answer as\nnew columns, its credits, sources and error. CSV cells that would start\na formula are written as text.","operationId":"export_agent_batch_api_v1_agent_batch__batch_id__export_get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(csv|jsonl)$","default":"csv","title":"Format"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/conversations":{"get":{"summary":"List Conversations","description":"The workspace's agent conversations, the latest message first: a run\nand the runs that continued or followed it, named by its first\nquestion. `q` keeps those whose first question holds it. Kept for 7\ndays after the last message.","operationId":"list_conversations_api_v1_agent_conversations_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConversationList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/conversations/{thread_id}":{"get":{"summary":"Get Conversation","description":"One conversation with every run in it, oldest first, each as GET\n/agent/{id} answers. 410 once it is past its keep date.","operationId":"get_conversation_api_v1_agent_conversations__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConversationDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/{run_id}":{"get":{"summary":"Get Agent","description":"An agent run: its status while it works, its answer and sources after.\n410 once its results are past their keep date.","operationId":"get_agent_api_v1_agent__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Cancel Agent","description":"Stop a run. A queued run stops at once; a running one before its next\nstep -- the step under way finishes first. Pages and tokens already used\nstay charged.","operationId":"cancel_agent_api_v1_agent__run_id__delete","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/{run_id}/continue":{"post":{"summary":"Continue Agent","description":"Carry on a run that stopped at its credit limit, with a new budget: a\nnew run on the same thread (`continuesRunId`) that resumes from where the\nstopped one was, keeps the pages it read (not paid for again) and answers\nin full; the stopped run says `continuedBy`. 409 for a run that did not\nstop at its limit or was already continued, 410 past its keep date.","operationId":"continue_agent_api_v1_agent__run_id__continue_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentContinueRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/{run_id}/follow-up":{"post":{"summary":"Follow Up Agent","description":"Ask a follow-up in a conversation: a new run on its thread\n(`followsRunId`) that answers `prompt` after everything asked and found\nin it before, and may read again, free, the pages the conversation\nread. The body is a POST /agent request -- its own URLs, schema,\nbudget, sites and model -- and the follow-up pays for its own work.\n`run_id` is the conversation's latest message, finished: 409 while it\nworks, for an earlier message (the error names the latest), or past 30\nmessages; 410 past its keep date.","operationId":"follow_up_agent_api_v1_agent__run_id__follow_up_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent/{run_id}/trace":{"get":{"summary":"Agent Trace","description":"What the run did, step by step: model calls, searches, pages read\n(with rung and credits), maps, waits. Only the steps after `after`, so\na poll reads what is new.","operationId":"agent_trace_api_v1_agent__run_id__trace_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"after","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTrace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors":{"post":{"summary":"Create Monitor","description":"Keep a search or an agent request and run it on a schedule. Each run\nis the ordinary search or agent run, charged as one; when it ends it is\ncompared with the last run that answered -- new, dropped and moved\nresults, or the answer's added, changed and removed values -- and the\n`webhook` hears `search.changed` / `agent.changed` when something did.\nThe first run is `baselineId`'s (a finished run with the same request)\nor starts now.","operationId":"create_monitor_api_v1_monitors_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Monitors","description":"The workspace's monitors, newest first, each with its last run. A key\nheld to some projects sees none.","operationId":"list_monitors_api_v1_monitors_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Kind"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"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"}}}}}}},"/api/v1/monitors/overview":{"get":{"summary":"Scheduled Overview","description":"Everything on a schedule, in one list: crawl projects with a schedule\nand kept searches and agent runs -- each with its status, last run and\nwhat it changed, spend this month, the month's estimate, caps and who\nis told. Active first, soonest next run first; paused last. `kind`\nkeeps one kind. A key held to some projects sees those, and no monitors.","operationId":"scheduled_overview_api_v1_monitors_overview_get","parameters":[{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(crawl|search|agent)$"},{"type":"null"}],"title":"Kind"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledOverview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors/{monitor_id}":{"get":{"summary":"Get Monitor","operationId":"get_monitor_api_v1_monitors__monitor_id__get","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Monitor","description":"Its name, schedule, status (active or paused) or webhook. A new\nwebhook's secret is returned here, once.","operationId":"update_monitor_api_v1_monitors__monitor_id__patch","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Monitor","description":"The monitor and its runs. The searches and agent runs it made stay in\nthe workspace's history; an agent run it has under way is stopped.","operationId":"delete_monitor_api_v1_monitors__monitor_id__delete","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors/{monitor_id}/pause":{"post":{"summary":"Pause Monitor","description":"No more scheduled runs until it is resumed. A run under way finishes.","operationId":"pause_monitor_api_v1_monitors__monitor_id__pause_post","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors/{monitor_id}/resume":{"post":{"summary":"Resume Monitor","description":"Scheduled again, from its last run: a slot that passed while it was\npaused runs once, at the next tick.","operationId":"resume_monitor_api_v1_monitors__monitor_id__resume_post","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Monitor"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors/{monitor_id}/run":{"post":{"summary":"Run Monitor","description":"Run it now, paused or not; the schedule counts on from this run. 409\nwhile a run is under way.","operationId":"run_monitor_api_v1_monitors__monitor_id__run_post","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorRun"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors/{monitor_id}/runs":{"get":{"summary":"Monitor Runs","description":"Its runs, newest first, each with what changed since the run before\nthat answered.","operationId":"monitor_runs_api_v1_monitors__monitor_id__runs_get","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonitorRuns"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors/{monitor_id}/rows":{"get":{"summary":"Monitor Rows","description":"The records its answers list, as they stand: one per record, with\nthe page each value was read on. `active=false` lists the records gone\n-- missing from `confirmAfter` answers in a row; a record missing from\nfewer is `withheld`, still listed.","operationId":"monitor_rows_api_v1_monitors__monitor_id__rows_get","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":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors/{monitor_id}/rows/events":{"get":{"summary":"Monitor Row Events","description":"What moved, newest first: records added, records whose columns changed\n(one entry per column, with both values), records gone, and records\nwithheld (not in an answer, not yet believed gone). `run_id` is a\nmonitor run's id.","operationId":"monitor_row_events_api_v1_monitors__monitor_id__rows_events_get","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Run Id"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","maxLength":20,"default":"","title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors/{monitor_id}/rows/export":{"get":{"summary":"Monitor Rows Export","description":"Its records (`rows`) or everything that moved (`row-events`) as a\nfile. CSV cells that would start a formula are written as text.","operationId":"monitor_rows_export_api_v1_monitors__monitor_id__rows_export_get","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"dataset","in":"query","required":false,"schema":{"type":"string","pattern":"^(rows|row-events)$","default":"rows","title":"Dataset"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(csv|jsonl)$","default":"csv","title":"Format"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/monitors/{monitor_id}/rows/{key}":{"get":{"summary":"Monitor Row","description":"One record: what it is now, the page each value was read on, and\nevery event that touched it.","operationId":"monitor_row_api_v1_monitors__monitor_id__rows__key__get","parameters":[{"name":"monitor_id","in":"path","required":true,"schema":{"type":"string","title":"Monitor Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triggers":{"post":{"summary":"Create Trigger","description":"Start work when a project's change record, or a monitor's run, matches\na condition: an agent run from a prompt template, a re-crawl of the\nchanged pages, a monitor run, or a re-check of the records read on the\nchanged pages. Fired by a tick once a source run has finished, once per\nsource run, within its cooldown, fires a day and monthly budget. It\nlooks from now on: what came before it is not news.","operationId":"create_trigger_api_v1_triggers_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trigger"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Triggers","description":"The workspace's triggers, newest first; `source_id` keeps one\nproject's or monitor's, `target_id` those whose action runs a monitor.","operationId":"list_triggers_api_v1_triggers_get","parameters":[{"name":"source_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Source Id"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Target Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triggers/{trigger_id}":{"get":{"summary":"Get Trigger","operationId":"get_trigger_api_v1_triggers__trigger_id__get","parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trigger"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Trigger","description":"Its name, condition, action, limits or status (active / paused).\nResumed, it looks from then on.","operationId":"update_trigger_api_v1_triggers__trigger_id__patch","parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trigger"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Trigger","description":"The trigger and its firing history. What it started stays.","operationId":"delete_trigger_api_v1_triggers__trigger_id__delete","parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triggers/{trigger_id}/fires":{"get":{"summary":"Trigger Fires","description":"Its firing history, newest first: what each source run matched, and\nwhat it started -- or why it was skipped. Kept 90 days.","operationId":"trigger_fires_api_v1_triggers__trigger_id__fires_get","parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerFires"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triggers/{trigger_id}/preview":{"post":{"summary":"Preview Trigger","description":"What the source's latest run would make of it -- what matches, and\nfor an agent action the prompt as it would be sent. Fires nothing.","operationId":"preview_trigger_api_v1_triggers__trigger_id__preview_post","parameters":[{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/proposals":{"get":{"summary":"List Proposals","description":"What agents proposed to watch, newest first: those waiting for a\ndecision (`status=proposed`, the default), the approved, or all\n(`status=`); `run_id` keeps one agent run's. Kept 30 days.","operationId":"list_proposals_api_v1_proposals_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(proposed|approved|)$"},{"type":"null"}],"default":"proposed","title":"Status"}},{"name":"run_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/proposals/{proposal_id}/approve":{"post":{"summary":"Approve Proposal","description":"Make what was proposed: the project, or the monitor -- whose first run\nstarts now. 409 when it was decided already; 402 at the project limit or\nwith no credits left.","operationId":"approve_proposal_api_v1_proposals__proposal_id__approve_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/proposals/{proposal_id}/dismiss":{"post":{"summary":"Dismiss Proposal","description":"Not wanted: the proposal is deleted.","operationId":"dismiss_proposal_api_v1_proposals__proposal_id__dismiss_post","parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/estimate":{"get":{"summary":"Get Estimate","description":"About how many credits scheduled work costs a month, before it is\nsaved: a crawl (`projectId`, or `maxPages` and `maxTier` for one not made\nyet), a search or an agent (`monitorId`, or `maxCredits`). A thing that\nhas run is priced at the average of its last runs; otherwise at the most a\nrun could cost (`upTo`). Held to `monthCap`, or the project's or\nmonitor's own monthly cap.","operationId":"get_estimate_api_v1_estimate_get","parameters":[{"name":"kind","in":"query","required":true,"schema":{"type":"string","maxLength":10,"title":"Kind"}},{"name":"schedule","in":"query","required":true,"schema":{"type":"string","maxLength":10,"title":"Schedule"}},{"name":"projectId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Projectid"}},{"name":"monitorId","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Monitorid"}},{"name":"maxPages","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":200000,"minimum":1},{"type":"null"}],"title":"Maxpages"}},{"name":"maxTier","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Maxtier"}},{"name":"maxCredits","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100000,"minimum":1},{"type":"null"}],"title":"Maxcredits"}},{"name":"monthCap","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100000000,"minimum":0},{"type":"null"}],"title":"Monthcap"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Estimate"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/playground/extract":{"post":{"summary":"Playground Extract","operationId":"playground_extract_api_v1_playground_extract_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/playground/{run_id}":{"get":{"summary":"Playground Result","operationId":"playground_result_api_v1_playground__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/playground/{run_id}/screenshot":{"get":{"summary":"Playground Screenshot","description":"The render's picture of the extracted page, when a screenshot was asked for.","operationId":"playground_screenshot_api_v1_playground__run_id__screenshot_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meta":{"get":{"summary":"Meta","operationId":"meta_api_v1_meta_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/logins/live":{"post":{"summary":"Open Live","description":"A ticket for a live browser on `host`, to sign in and save the login.","operationId":"open_live_api_v1_logins_live_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/logins/terms":{"get":{"summary":"Terms","description":"The terms a person accepts before saving a login, and whether logins are on here.","operationId":"terms_api_v1_logins_terms_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tools/run":{"post":{"tags":["tools"],"summary":"Run Tool","description":"One free tool, one URL, in this request.\n\nNo account, and so: the http rungs only, one page, the address rule, a\nlimit per caller and a budget for the day. Nothing is written down.","operationId":"run_tool_api_v1_tools_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/signup":{"post":{"summary":"Signup","operationId":"signup_api_v1_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login/mfa":{"post":{"summary":"Login Mfa","description":"The second step: the ticket from `/login` and a code from the\nauthenticator app (or a recovery code) make the session.","operationId":"login_mfa_api_v1_auth_login_mfa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChallengeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/sso":{"get":{"summary":"Sso Providers","description":"The sign-in providers this deployment offers; the buttons follow it.","operationId":"sso_providers_api_v1_auth_sso_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/sso/{provider}/start":{"post":{"summary":"Sso Start","description":"Where to send the browser, and the binding the front end keeps in an\nhttpOnly cookie until the provider sends the browser back.","operationId":"sso_start_api_v1_auth_sso__provider__start_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSOStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/sso/{provider}/finish":{"post":{"summary":"Sso Finish","description":"The provider's answer, brought back by the front end. Answers as\n`/login` does -- the session, or a challenge ticket for an account with\na second factor -- plus `next`; for a link, `{\"linked\": true}`.","operationId":"sso_finish_api_v1_auth_sso__provider__finish_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SSOFinishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/identities":{"get":{"summary":"Identities","description":"The Google and GitHub accounts linked to the signed-in person, and\nwhich providers could still be linked.","operationId":"identities_api_v1_auth_identities_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/identities/{provider}":{"delete":{"summary":"Unlink Identity","operationId":"unlink_identity_api_v1_auth_identities__provider__delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"summary":"Logout","operationId":"logout_api_v1_auth_logout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/session":{"get":{"summary":"Session","description":"Who is signed in. An API key answers with the org and no user.","operationId":"session_api_v1_auth_session_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/switch":{"post":{"summary":"Switch","operationId":"switch_api_v1_auth_switch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify/request":{"post":{"summary":"Verify Request","operationId":"verify_request_api_v1_auth_verify_request_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify":{"post":{"summary":"Verify","operationId":"verify_api_v1_auth_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/forgot":{"post":{"summary":"Forgot","description":"Always 202: whether the address exists is not for the caller to learn.","operationId":"forgot_api_v1_auth_forgot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/reset":{"post":{"summary":"Reset","operationId":"reset_api_v1_auth_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/profile":{"patch":{"summary":"Profile","operationId":"profile_api_v1_auth_profile_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/password":{"post":{"summary":"Password","operationId":"password_api_v1_auth_password_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/setup":{"post":{"summary":"Two Factor Setup","description":"Start enrolling: the secret to show as a QR code (and to type, for\nan app that cannot scan). Nothing changes until `/2fa/enable`.","operationId":"two_factor_setup_api_v1_auth_2fa_setup_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/enable":{"post":{"summary":"Two Factor Enable","description":"The first code from the app turns the factor on. The recovery codes\ncome back this once; every other session ends, since none of them\nshowed a factor.","operationId":"two_factor_enable_api_v1_auth_2fa_enable_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/verify":{"post":{"summary":"Two Factor Verify","description":"Show the factor again on this session, for the actions that ask\n(`403 mfa_stale`). Good for ten minutes.","operationId":"two_factor_verify_api_v1_auth_2fa_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/disable":{"post":{"summary":"Two Factor Disable","operationId":"two_factor_disable_api_v1_auth_2fa_disable_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/recovery":{"post":{"summary":"Two Factor Recovery","description":"A new set of recovery codes, against a current code from the app.","operationId":"two_factor_recovery_api_v1_auth_2fa_recovery_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/sessions":{"get":{"summary":"Sessions","operationId":"sessions_api_v1_auth_sessions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/sessions/{session_id}":{"delete":{"summary":"Revoke Session","operationId":"revoke_session_api_v1_auth_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/members":{"get":{"summary":"List Members","operationId":"list_members_api_v1_auth_members_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/invites":{"post":{"summary":"Create Invite","operationId":"create_invite_api_v1_auth_invites_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/invites/{invite_id}":{"delete":{"summary":"Revoke Invite","operationId":"revoke_invite_api_v1_auth_invites__invite_id__delete","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/invites/{token}":{"get":{"summary":"Peek Invite","description":"What an invite link is for, before the invitee signs up.","operationId":"peek_invite_api_v1_auth_invites__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/invites/accept":{"post":{"summary":"Accept Invite","operationId":"accept_invite_api_v1_auth_invites_accept_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/members/{user_id}":{"patch":{"summary":"Set Role","operationId":"set_role_api_v1_auth_members__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Remove Member","operationId":"remove_member_api_v1_auth_members__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/workspace":{"patch":{"summary":"Rename Workspace","operationId":"rename_workspace_api_v1_auth_workspace_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oauth/check":{"get":{"summary":"Oauth Check","description":"Is this consent request real, and what is the app called?\n\nA GET because it changes nothing, which lets the page fetch it the way it\nfetches everything else. Rate-limited per user: without that, any signed-in\naccount could use it to enumerate registered client and redirect pairs.","operationId":"oauth_check_api_v1_auth_oauth_check_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Client Id"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Redirect Uri"}},{"name":"code_challenge","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":false,"schema":{"type":"string","default":"S256","title":"Code Challenge Method"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"read","title":"Scope"}},{"name":"resource","in":"query","required":false,"schema":{"type":"string","default":"","title":"Resource"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oauth/approve":{"post":{"summary":"Oauth Approve","description":"Connect the app: one grant, backed by one ordinary API key.\n\nGated exactly like POST /me/keys, because that is what this is -- minting\na key. Looser would mean a member could get one through read-only consent,\nand that a 30-day credential could be issued on a session cookie alone\nwithout the second factor being shown again.\n\nThe workspace comes from the session (`auth[\"org\"]`), never from the body:\n`require(\"admin\")` reads the role from the session's current org, so taking\nthe org from anywhere else would check one workspace and write to another.","operationId":"oauth_approve_api_v1_auth_oauth_approve_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/oauth/deny":{"post":{"summary":"Oauth Deny","description":"Turn the app away. A session is all this needs: it mints nothing, so a\nmember who cannot connect an app can still decline one rather than being\nshown a button that refuses them.\n\nIt validates the request all the same. A route that redirects wherever it\nis told is an open redirect, whatever it declines.","operationId":"oauth_deny_api_v1_auth_oauth_deny_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-mesharc-tenant","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Mesharc-Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"summary":"Authorization Server Metadata","operationId":"authorization_server_metadata__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/register":{"post":{"summary":"Register","description":"Dynamic client registration, open to anyone -- that is what DCR is.\n\nRate-limited per address, and a registration nobody uses ages out, so the\ncollection does not grow without bound just because the door is open.","operationId":"register_oauth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/authorize":{"get":{"summary":"Authorize","description":"Check the request, then hand the browser to the consent page.\n\nNothing is minted here and no session is read -- the person may not even be\nsigned in yet. The consent page sends them through /login and back.","operationId":"authorize_oauth_authorize_get","parameters":[{"name":"client_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Client Id"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Redirect Uri"}},{"name":"response_type","in":"query","required":false,"schema":{"type":"string","default":"code","title":"Response Type"}},{"name":"code_challenge","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":false,"schema":{"type":"string","default":"S256","title":"Code Challenge Method"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"read","title":"Scope"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"resource","in":"query","required":false,"schema":{"type":"string","default":"","title":"Resource"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/token":{"post":{"summary":"Token","description":"Both grants. The body is form-encoded, as the RFC says, and JSON is\naccepted too because some clients send it.\n\nEvery answer is built here rather than returned as a dict, so the no-store\nheaders are on the response itself. Relying on an injected `Response` put\nthem on failures and missed every success -- the one case where the body\nactually is a credential.\n\nAsync only to read the body (_body); the rest -- Mongo, and the .env\nconfig() reads -- runs on a worker thread, not on the loop every other\nrequest shares.","operationId":"token_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/revoke":{"post":{"summary":"Revoke","description":"RFC 7009: always 200, whether or not the token was ours. Saying which\nwould make this an oracle. (The revoking runs on a worker thread.)","operationId":"revoke_oauth_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/introspect":{"post":{"summary":"Introspect Route","description":"For the MCP server, which is the only caller. The shared secret is what\nseparates it from the internet; without a match this says nothing at all,\nbecause an open introspection endpoint is a token oracle. (Its reads\nrun on a worker thread.)","operationId":"introspect_route_oauth_introspect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AcceptRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"AcceptRequest"},"AgentBatch":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"columns":{"items":{"type":"string"},"type":"array","title":"Columns"},"outputColumns":{"items":{"type":"string"},"type":"array","title":"Outputcolumns"},"prompt":{"type":"string","title":"Prompt"},"urls":{"items":{"type":"string"},"type":"array","title":"Urls"},"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schema"},"maxCreditsPerRow":{"type":"integer","title":"Maxcreditsperrow"},"maxSteps":{"type":"integer","title":"Maxsteps"},"domainLimit":{"type":"string","title":"Domainlimit"},"allowedDomains":{"items":{"type":"string"},"type":"array","title":"Alloweddomains"},"concurrency":{"type":"integer","title":"Concurrency"},"rows":{"type":"integer","title":"Rows"},"counts":{"$ref":"#/components/schemas/AgentBatchCounts"},"budget":{"type":"integer","title":"Budget"},"creditsUsed":{"type":"integer","title":"Creditsused"},"averagePerRow":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Averageperrow"},"model":{"type":"string","title":"Model"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finishedat"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiresat"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentBatchRow"},"type":"array"},{"type":"null"}],"title":"Data"},"more":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"More"},"webhookSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhooksecret"},"request_id":{"type":"string","title":"Request Id","default":""}},"type":"object","required":["id","kind","name","status","columns","outputColumns","prompt","urls","maxCreditsPerRow","maxSteps","domainLimit","allowedDomains","concurrency","rows","counts","budget","creditsUsed","model"],"title":"AgentBatch"},"AgentBatchCounts":{"properties":{"pending":{"type":"integer","title":"Pending","default":0},"running":{"type":"integer","title":"Running","default":0},"done":{"type":"integer","title":"Done","default":0},"credit_limit":{"type":"integer","title":"Credit Limit","default":0},"error":{"type":"integer","title":"Error","default":0},"cancelled":{"type":"integer","title":"Cancelled","default":0},"invalid":{"type":"integer","title":"Invalid","default":0},"skipped":{"type":"integer","title":"Skipped","default":0}},"type":"object","title":"AgentBatchCounts"},"AgentBatchEstimate":{"properties":{"rows":{"type":"integer","title":"Rows"},"perRow":{"type":"integer","title":"Perrow"},"total":{"type":"integer","title":"Total"},"most":{"type":"integer","title":"Most"},"upTo":{"type":"boolean","title":"Upto"},"basis":{"type":"string","title":"Basis"},"balance":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Balance"},"enough":{"type":"boolean","title":"Enough"}},"type":"object","required":["rows","perRow","total","most","upTo","basis","enough"],"title":"AgentBatchEstimate"},"AgentBatchExample":{"properties":{"row":{"type":"integer","title":"Row"},"prompt":{"type":"string","title":"Prompt"},"urls":{"items":{"type":"string"},"type":"array","title":"Urls"},"allowedDomains":{"items":{"type":"string"},"type":"array","title":"Alloweddomains"}},"type":"object","required":["row","prompt","urls","allowedDomains"],"title":"AgentBatchExample"},"AgentBatchInvalid":{"properties":{"row":{"type":"integer","title":"Row"},"error":{"type":"string","title":"Error"}},"type":"object","required":["row","error"],"title":"AgentBatchInvalid"},"AgentBatchList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AgentBatch"},"type":"array","title":"Data"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["data"],"title":"AgentBatchList"},"AgentBatchPreview":{"properties":{"columns":{"items":{"type":"string"},"type":"array","title":"Columns"},"outputColumns":{"items":{"type":"string"},"type":"array","title":"Outputcolumns"},"rows":{"type":"integer","title":"Rows"},"valid":{"type":"integer","title":"Valid"},"invalid":{"type":"integer","title":"Invalid"},"invalidRows":{"items":{"$ref":"#/components/schemas/AgentBatchInvalid"},"type":"array","title":"Invalidrows"},"examples":{"items":{"$ref":"#/components/schemas/AgentBatchExample"},"type":"array","title":"Examples"},"concurrency":{"type":"integer","title":"Concurrency"},"maxCreditsPerRow":{"type":"integer","title":"Maxcreditsperrow"},"estimate":{"$ref":"#/components/schemas/AgentBatchEstimate"}},"type":"object","required":["columns","outputColumns","rows","valid","invalid","invalidRows","examples","concurrency","maxCreditsPerRow","estimate"],"title":"AgentBatchPreview"},"AgentBatchRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"rows":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":50000},{"type":"null"}],"title":"Rows"},"csv":{"anyOf":[{"type":"string","maxLength":2000000},{"type":"null"}],"title":"Csv"},"prompt":{"type":"string","maxLength":10000,"minLength":1,"title":"Prompt"},"urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Urls"},"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schema"},"maxCreditsPerRow":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Maxcreditsperrow"},"maxSteps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Maxsteps"},"allowedDomains":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Alloweddomains"},"concurrency":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Concurrency"},"webhook":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Webhook"},"connectionId":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Connectionid"},"logins":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Logins"},"loginId":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Loginid"},"dataConnections":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":2},{"type":"null"}],"title":"Dataconnections"}},"type":"object","required":["prompt"],"title":"AgentBatchRequest"},"AgentBatchRow":{"properties":{"row":{"type":"integer","title":"Row"},"values":{"additionalProperties":true,"type":"object","title":"Values"},"status":{"type":"string","title":"Status"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Data"},"fieldSources":{"additionalProperties":true,"type":"object","title":"Fieldsources","default":{}},"sources":{"items":{"type":"string"},"type":"array","title":"Sources","default":[]},"creditsUsed":{"type":"integer","title":"Creditsused"},"budget":{"type":"integer","title":"Budget"},"error":{"type":"string","title":"Error","default":""},"runId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runid"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startedat"},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finishedat"}},"type":"object","required":["row","values","status","creditsUsed","budget"],"title":"AgentBatchRow"},"AgentContinueRequest":{"properties":{"maxCredits":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Maxcredits"},"maxSteps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Maxsteps"},"timeout":{"anyOf":[{"type":"number","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Timeout"}},"type":"object","title":"AgentContinueRequest"},"AgentConversation":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"messages":{"type":"integer","title":"Messages"},"status":{"type":"string","title":"Status"},"lastRunId":{"type":"string","title":"Lastrunid"},"model":{"type":"string","title":"Model"},"creditsUsed":{"type":"integer","title":"Creditsused"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedat"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiresat"}},"type":"object","required":["id","title","messages","status","lastRunId","model","creditsUsed"],"title":"AgentConversation"},"AgentConversationDetail":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"messages":{"type":"integer","title":"Messages"},"status":{"type":"string","title":"Status"},"lastRunId":{"type":"string","title":"Lastrunid"},"model":{"type":"string","title":"Model"},"creditsUsed":{"type":"integer","title":"Creditsused"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updatedat"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiresat"},"runs":{"items":{"$ref":"#/components/schemas/AgentResponse"},"type":"array","title":"Runs"}},"type":"object","required":["id","title","messages","status","lastRunId","model","creditsUsed","runs"],"title":"AgentConversationDetail"},"AgentConversationList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AgentConversation"},"type":"array","title":"Data"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["data"],"title":"AgentConversationList"},"AgentEvent":{"properties":{"seq":{"type":"integer","title":"Seq"},"t":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"},"kind":{"type":"string","title":"Kind"},"text":{"type":"string","title":"Text","default":""}},"additionalProperties":true,"type":"object","required":["seq","kind"],"title":"AgentEvent"},"AgentList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AgentSummary"},"type":"array","title":"Data"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["data"],"title":"AgentList"},"AgentRequest":{"properties":{"prompt":{"type":"string","maxLength":10000,"minLength":1,"title":"Prompt"},"urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Urls"},"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Schema"},"maxCredits":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Maxcredits"},"maxSteps":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Maxsteps"},"allowedDomains":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Alloweddomains"},"timeout":{"anyOf":[{"type":"number","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Timeout"},"webhook":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Webhook"},"connectionId":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Connectionid"},"proposals":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Proposals"},"logins":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Logins"},"loginId":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Loginid"},"dataConnections":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":2},{"type":"null"}],"title":"Dataconnections"}},"type":"object","required":["prompt"],"title":"AgentRequest"},"AgentResponse":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"prompt":{"type":"string","title":"Prompt"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Data"},"fieldSources":{"additionalProperties":true,"type":"object","title":"Fieldsources","default":{}},"sources":{"items":{"$ref":"#/components/schemas/AgentSource"},"type":"array","title":"Sources"},"creditsUsed":{"type":"integer","title":"Creditsused"},"budget":{"type":"integer","title":"Budget"},"budgetLimited":{"type":"boolean","title":"Budgetlimited"},"tokens":{"additionalProperties":true,"type":"object","title":"Tokens"},"steps":{"type":"integer","title":"Steps"},"model":{"type":"string","title":"Model"},"threadId":{"type":"string","title":"Threadid"},"continuesRunId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Continuesrunid"},"continuedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Continuedby"},"followsRunId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followsrunid"},"followedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followedby"},"stopReason":{"type":"string","title":"Stopreason"},"error":{"type":"string","title":"Error"},"doing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Doing"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startedat"},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finishedat"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiresat"},"request_id":{"type":"string","title":"Request Id"},"webhookSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhooksecret"}},"type":"object","required":["id","kind","status","prompt","params","sources","creditsUsed","budget","budgetLimited","tokens","steps","model","threadId","stopReason","error","request_id"],"title":"AgentResponse"},"AgentSource":{"properties":{"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title","default":""},"pageId":{"type":"string","title":"Pageid","default":""},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},"type":"object","required":["url"],"title":"AgentSource"},"AgentSummary":{"properties":{"id":{"type":"string","title":"Id"},"prompt":{"type":"string","title":"Prompt"},"status":{"type":"string","title":"Status"},"model":{"type":"string","title":"Model"},"steps":{"type":"integer","title":"Steps"},"threadId":{"type":"string","title":"Threadid","default":""},"continuesRunId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Continuesrunid"},"continuedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Continuedby"},"followsRunId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followsrunid"},"followedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followedby"},"creditsUsed":{"type":"integer","title":"Creditsused"},"error":{"type":"string","title":"Error"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"startedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startedat"},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finishedat"}},"type":"object","required":["id","prompt","status","model","steps","creditsUsed","error"],"title":"AgentSummary"},"AgentTrace":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AgentEvent"},"type":"array","title":"Data"},"last":{"type":"integer","title":"Last"}},"type":"object","required":["data","last"],"title":"AgentTrace"},"ApplyConfig":{"properties":{"project_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Project Ids"},"groups":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Groups"}},"type":"object","title":"ApplyConfig"},"BuyCreditsRequest":{"properties":{"packs":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Packs","default":1}},"type":"object","title":"BuyCreditsRequest"},"CapRequest":{"properties":{"multiple":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Multiple"}},"type":"object","required":["multiple"],"title":"CapRequest"},"ChallengeRequest":{"properties":{"ticket":{"type":"string","title":"Ticket"},"code":{"type":"string","maxLength":16,"minLength":6,"title":"Code"}},"type":"object","required":["ticket","code"],"title":"ChallengeRequest"},"ChangeRequest":{"properties":{"plan":{"type":"string","title":"Plan"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"}},"type":"object","required":["plan"],"title":"ChangeRequest"},"CodeRequest":{"properties":{"code":{"type":"string","maxLength":6,"minLength":6,"title":"Code"}},"type":"object","required":["code"],"title":"CodeRequest"},"ConfirmRequest":{"properties":{"razorpay_payment_id":{"type":"string","maxLength":64,"title":"Razorpay Payment Id"},"razorpay_signature":{"type":"string","maxLength":128,"title":"Razorpay Signature"},"razorpay_subscription_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Razorpay Subscription Id"},"razorpay_order_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Razorpay Order Id"}},"type":"object","required":["razorpay_payment_id","razorpay_signature"],"title":"ConfirmRequest"},"ConnectionCreate":{"properties":{"provider":{"type":"string","title":"Provider"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"secrets":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Secrets"}},"type":"object","required":["provider"],"title":"ConnectionCreate"},"ConnectionPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"secrets":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Secrets"}},"type":"object","title":"ConnectionPatch"},"ContentPreviewRequest":{"properties":{"config":{"anyOf":[{"$ref":"#/components/schemas/ProjectConfig"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","title":"ContentPreviewRequest"},"CrawlRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"limit":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Limit"},"maxDepth":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Maxdepth"},"includePaths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Includepaths"},"excludePaths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excludepaths"},"allowSubdomains":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allowsubdomains"},"useSitemap":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usesitemap"},"sitemapMode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sitemapmode"},"crawlMode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crawlmode"},"maxAge":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Maxage"},"maxTier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maxtier"},"delay":{"anyOf":[{"type":"integer","maximum":60000.0,"minimum":0.0},{"type":"null"}],"title":"Delay"},"concurrency":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":1.0},{"type":"null"}],"title":"Concurrency"},"respectRobots":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Respectrobots"},"scrapeOptions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Scrapeoptions"},"webhook":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Webhook"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"destination":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Destination"}},"type":"object","required":["url"],"title":"CrawlRequest"},"DestinationCreate":{"properties":{"connectionId":{"type":"string","title":"Connectionid"},"target":{"type":"string","title":"Target"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Columns"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"incremental":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Incremental"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"shape":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shape"}},"type":"object","required":["connectionId","target"],"title":"DestinationCreate"},"DestinationPatch":{"properties":{"target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Columns"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"incremental":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Incremental"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"shape":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shape"}},"type":"object","title":"DestinationPatch"},"DestinationPreview":{"properties":{"project_id":{"type":"string","title":"Project Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Columns"},"incremental":{"type":"boolean","title":"Incremental","default":true},"shape":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shape"},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":20}},"type":"object","required":["project_id"],"title":"DestinationPreview"},"DestinationScope":{"properties":{"kind":{"type":"string","title":"Kind","default":"all"},"projectIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Projectids"}},"type":"object","title":"DestinationScope"},"DisableRequest":{"properties":{"password":{"type":"string","title":"Password","default":""},"code":{"type":"string","maxLength":16,"minLength":6,"title":"Code"}},"type":"object","required":["code"],"title":"DisableRequest"},"DryRunRequest":{"properties":{"config":{"anyOf":[{"$ref":"#/components/schemas/ProjectConfig"},{"type":"null"}]},"sample":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Sample","default":12}},"type":"object","title":"DryRunRequest"},"Estimate":{"properties":{"kind":{"type":"string","title":"Kind"},"schedule":{"type":"string","title":"Schedule"},"perRun":{"type":"integer","title":"Perrun"},"runsPerMonth":{"type":"number","title":"Runspermonth"},"perMonth":{"type":"integer","title":"Permonth"},"capped":{"type":"boolean","title":"Capped"},"cap":{"type":"integer","title":"Cap"},"upTo":{"type":"boolean","title":"Upto"},"basis":{"type":"string","title":"Basis"}},"type":"object","required":["kind","schedule","perRun","runsPerMonth","perMonth","capped","cap","upTo","basis"],"title":"Estimate"},"ExportSelection":{"properties":{"dataset":{"type":"string","title":"Dataset","default":"pages"},"format":{"type":"string","title":"Format","default":"jsonl"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"urls":{"items":{"type":"string"},"type":"array","maxItems":5000,"minItems":1,"title":"Urls"}},"type":"object","required":["urls"],"title":"ExportSelection"},"ExtractRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"allow_browser":{"type":"boolean","title":"Allow Browser","default":true},"use_proxy":{"type":"boolean","title":"Use Proxy","default":false},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"destination":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Destination"}},"type":"object","required":["url"],"title":"ExtractRequest"},"FactorRequest":{"properties":{"code":{"type":"string","maxLength":16,"minLength":6,"title":"Code"}},"type":"object","required":["code"],"title":"FactorRequest"},"ForgotRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"ForgotRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InviteRequest":{"properties":{"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role","default":"member"}},"type":"object","required":["email"],"title":"InviteRequest"},"KeepRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"retention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retention"}},"type":"object","title":"KeepRequest"},"KeyRequest":{"properties":{"name":{"type":"string","title":"Name","default":"default"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"projects":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Projects"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days"},"rpm":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":1.0},{"type":"null"}],"title":"Rpm"}},"type":"object","title":"KeyRequest"},"LiveRequest":{"properties":{"host":{"type":"string","maxLength":300,"minLength":1,"title":"Host"},"name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Name"},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false}},"type":"object","required":["host"],"title":"LiveRequest"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LoginUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"expired":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Expired"}},"type":"object","title":"LoginUpdate"},"MapRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"},"search":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"},"limit":{"anyOf":[{"type":"integer","maximum":50000.0,"minimum":1.0},{"type":"null"}],"title":"Limit"},"sitemapMode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sitemapmode"},"sitemaps":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sitemaps"},"includePaths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Includepaths"},"excludePaths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excludepaths"},"allowSubdomains":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allowsubdomains"},"maxTier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maxtier"},"timeout":{"anyOf":[{"type":"number","maximum":60.0,"minimum":0.0},{"type":"null"}],"title":"Timeout"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"}},"type":"object","required":["url"],"title":"MapRequest"},"MatchRequest":{"properties":{"selectors":{"items":{"type":"string"},"type":"array","maxItems":40,"title":"Selectors"}},"type":"object","title":"MatchRequest"},"Monitor":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"request":{"additionalProperties":true,"type":"object","title":"Request"},"schedule":{"type":"string","title":"Schedule"},"status":{"type":"string","title":"Status"},"webhook":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Webhook"},"budget":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Budget"},"spentThisMonth":{"type":"integer","title":"Spentthismonth","default":0},"alerts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Alerts"},"addToProject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Addtoproject"},"rows":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rows"},"destination":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Destination"},"sentiment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sentiment"},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextrunat"},"lastRunAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastrunat"},"lastRun":{"anyOf":[{"$ref":"#/components/schemas/MonitorRun"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"webhookSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhooksecret"}},"type":"object","required":["id","kind","name","request","schedule","status"],"title":"Monitor"},"MonitorList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Monitor"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"MonitorList"},"MonitorRequest":{"properties":{"kind":{"type":"string","maxLength":10,"title":"Kind"},"request":{"additionalProperties":true,"type":"object","title":"Request"},"schedule":{"type":"string","maxLength":10,"title":"Schedule"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"webhook":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Webhook"},"baselineId":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Baselineid"},"budget":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Budget"},"alerts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Alerts"},"addToProject":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Addtoproject"},"rows":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"boolean"},{"type":"null"}],"title":"Rows"},"destination":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Destination"},"sentiment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"boolean"},{"type":"null"}],"title":"Sentiment"}},"type":"object","required":["kind","request","schedule"],"title":"MonitorRequest"},"MonitorRun":{"properties":{"id":{"type":"string","title":"Id"},"monitorId":{"type":"string","title":"Monitorid"},"kind":{"type":"string","title":"Kind"},"trigger":{"type":"string","title":"Trigger"},"status":{"type":"string","title":"Status"},"refId":{"type":"string","title":"Refid"},"credits":{"type":"integer","title":"Credits"},"answered":{"type":"boolean","title":"Answered"},"changed":{"type":"boolean","title":"Changed"},"summary":{"type":"string","title":"Summary"},"diff":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Diff"},"error":{"type":"string","title":"Error","default":""},"addedToProject":{"type":"integer","title":"Addedtoproject","default":0},"rows":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rows"},"destinationSync":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Destinationsync"},"triggeredBy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Triggeredby"},"partial":{"type":"boolean","title":"Partial","default":false},"sentimentPending":{"type":"boolean","title":"Sentimentpending","default":false},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finishedat"}},"type":"object","required":["id","monitorId","kind","trigger","status","refId","credits","answered","changed","summary"],"title":"MonitorRun"},"MonitorRuns":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MonitorRun"},"type":"array","title":"Data"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["data"],"title":"MonitorRuns"},"MonitorUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"schedule":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Schedule"},"status":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Status"},"webhook":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Webhook"},"budget":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Budget"},"alerts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Alerts"},"addToProject":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Addtoproject"},"rows":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"boolean"},{"type":"null"}],"title":"Rows"},"destination":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Destination"},"sentiment":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"boolean"},{"type":"null"}],"title":"Sentiment"}},"type":"object","title":"MonitorUpdate"},"Notice":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"subject":{"type":"string","title":"Subject"},"text":{"type":"string","title":"Text"},"link":{"type":"string","title":"Link"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"}},"type":"object","required":["id","kind","subject","text","link"],"title":"Notice"},"NoticeList":{"properties":{"emailConfigured":{"type":"boolean","title":"Emailconfigured"},"data":{"items":{"$ref":"#/components/schemas/Notice"},"type":"array","title":"Data"}},"type":"object","required":["emailConfigured","data"],"title":"NoticeList"},"OAuthDecision":{"properties":{"client_id":{"type":"string","title":"Client Id"},"redirect_uri":{"type":"string","title":"Redirect Uri"},"code_challenge":{"type":"string","title":"Code Challenge"},"code_challenge_method":{"type":"string","title":"Code Challenge Method","default":"S256"},"scope":{"type":"string","title":"Scope","default":"read"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"resource":{"type":"string","title":"Resource","default":""}},"type":"object","required":["client_id","redirect_uri","code_challenge"],"title":"OAuthDecision"},"OrgSettingsRequest":{"properties":{"max_rpm":{"anyOf":[{"type":"integer","maximum":600.0,"minimum":1.0},{"type":"null"}],"title":"Max Rpm"},"require_2fa":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require 2Fa"},"billing_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Billing Name"},"billing_address":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Billing Address"},"gstin":{"anyOf":[{"type":"string","maxLength":15},{"type":"null"}],"title":"Gstin"},"billing_state":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Billing State"}},"type":"object","title":"OrgSettingsRequest"},"OrgUpdate":{"properties":{"settings":{"anyOf":[{"$ref":"#/components/schemas/OrgSettingsRequest"},{"type":"null"}]}},"type":"object","title":"OrgUpdate"},"PasswordRequest":{"properties":{"current":{"type":"string","title":"Current"},"new":{"type":"string","title":"New"}},"type":"object","required":["current","new"],"title":"PasswordRequest"},"ProfileRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"digest":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Digest"},"notifyRuns":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Notifyruns"}},"type":"object","title":"ProfileRequest"},"ProjectConfig":{"properties":{"max_pages":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Pages"},"max_depth":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Max Depth"},"use_sitemap":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Sitemap"},"sitemap_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sitemap Mode"},"sitemaps":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sitemaps"},"sitemap_include":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sitemap Include"},"sitemap_exclude":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sitemap Exclude"},"crawl_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crawl Mode"},"sitemap_incremental":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sitemap Incremental"},"sitemap_full_every":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Sitemap Full Every"},"allow_browser":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Browser"},"keep_pages":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Keep Pages"},"use_proxy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Proxy"},"include_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Include Paths"},"exclude_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Paths"},"include_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Include Tags"},"exclude_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Tags"},"preserve_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Preserve Tags"},"only_main_content":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Only Main Content"},"strip_boilerplate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strip Boilerplate"},"strip_base64":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strip Base64"},"min_words":{"anyOf":[{"type":"integer","maximum":5000.0,"minimum":0.0},{"type":"null"}],"title":"Min Words"},"languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Languages"},"respect_robots":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Respect Robots"},"allow_subdomains":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Subdomains"},"breadth_per_level":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Breadth Per Level"},"crawl_delay_ms":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Crawl Delay Ms"},"concurrency":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":1.0},{"type":"null"}],"title":"Concurrency"},"actions":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Actions"},"actions_on":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actions On"},"actions_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Actions Paths"},"llm_extract":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Llm Extract"},"fetch_timeout_ms":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Fetch Timeout Ms"},"fetch_retries":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Fetch Retries"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"render_js":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Render Js"},"max_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Max Tier"},"googlebot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Googlebot"},"solve_captcha":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Solve Captcha"},"max_credits_per_page":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Max Credits Per Page"},"max_credits_per_run":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Max Credits Per Run"},"max_credits_per_month":{"anyOf":[{"type":"integer","maximum":100000000.0,"minimum":0.0},{"type":"null"}],"title":"Max Credits Per Month"},"geo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Geo"},"cache_max_age_hours":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Cache Max Age Hours"},"max_age_hours":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Age Hours"},"force_cache":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Force Cache"},"parse_documents":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parse Documents"},"wait_for_selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wait For Selector"},"wait_ms":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Wait Ms"},"viewport":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewport"},"formats":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Formats"},"json_schema":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Json Schema"},"rows":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rows"},"heading_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading Style"},"link_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link Style"},"image_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Mode"},"image_exclude":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Image Exclude"},"image_min_width":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Image Min Width"},"image_min_height":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Image Min Height"},"image_max_kb":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Image Max Kb"},"alt_fallback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Fallback"},"url_list":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Url List"},"feeds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Feeds"},"patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Patterns"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"webhook_events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Webhook Events"},"notify_min_words":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Notify Min Words"},"chat_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat Url"},"change_digest":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Change Digest"},"login_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Login Id"}},"additionalProperties":false,"type":"object","title":"ProjectConfig"},"ProjectCreate":{"properties":{"seed":{"type":"string","maxLength":2048,"minLength":1,"title":"Seed"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"schedule":{"type":"string","title":"Schedule","default":"manual"},"retention":{"type":"string","title":"Retention","default":"90d"},"config":{"anyOf":[{"$ref":"#/components/schemas/ProjectConfig"},{"type":"null"}]}},"type":"object","required":["seed"],"title":"ProjectCreate"},"ProjectUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"retention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retention"},"config":{"anyOf":[{"$ref":"#/components/schemas/ProjectConfig"},{"type":"null"}]},"paused":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Paused"},"seed":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Seed"}},"type":"object","title":"ProjectUpdate"},"ProjectsCreateMany":{"properties":{"seeds":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Seeds"},"template_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Project Id"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"retention":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retention"},"config":{"anyOf":[{"$ref":"#/components/schemas/ProjectConfig"},{"type":"null"}]}},"type":"object","required":["seeds"],"title":"ProjectsCreateMany"},"Proposal":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"},"what":{"type":"string","title":"What"},"schedule":{"type":"string","title":"Schedule"},"reason":{"type":"string","title":"Reason"},"estimate":{"additionalProperties":true,"type":"object","title":"Estimate"},"spec":{"additionalProperties":true,"type":"object","title":"Spec"},"runId":{"type":"string","title":"Runid"},"runPrompt":{"type":"string","title":"Runprompt","default":""},"status":{"type":"string","title":"Status"},"made":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Made"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"decidedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decidedat"}},"type":"object","required":["id","kind","name","what","schedule","reason","estimate","spec","runId","status"],"title":"Proposal"},"ProposalList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Proposal"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ProposalList"},"RecrawlRequest":{"properties":{"urls":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Urls"}},"type":"object","required":["urls"],"title":"RecrawlRequest"},"RegisterRequest":{"properties":{"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"redirect_uris":{"items":{"type":"string"},"type":"array","title":"Redirect Uris"},"token_endpoint_auth_method":{"type":"string","title":"Token Endpoint Auth Method","default":"none"},"grant_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Grant Types"},"response_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Response Types"}},"type":"object","title":"RegisterRequest"},"ResetRequest":{"properties":{"email":{"type":"string","title":"Email"},"code":{"type":"string","maxLength":6,"minLength":6,"title":"Code"},"password":{"type":"string","title":"Password"},"factor":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Factor"}},"type":"object","required":["email","code","password"],"title":"ResetRequest"},"ReviewRequest":{"properties":{"url":{"type":"string","title":"Url"},"reviewed":{"type":"boolean","title":"Reviewed","default":true}},"type":"object","required":["url"],"title":"ReviewRequest"},"RoleRequest":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"RoleRequest"},"RunCreate":{"properties":{"trigger":{"type":"string","title":"Trigger","default":"manual"}},"type":"object","title":"RunCreate"},"RunMany":{"properties":{"project_ids":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Project Ids"}},"type":"object","required":["project_ids"],"title":"RunMany"},"SSOFinishRequest":{"properties":{"state":{"type":"string","maxLength":200,"title":"State","default":""},"binding":{"type":"string","maxLength":200,"title":"Binding","default":""},"code":{"type":"string","maxLength":2000,"title":"Code","default":""},"error":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Error"}},"type":"object","title":"SSOFinishRequest"},"SSOStartRequest":{"properties":{"next":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Next"},"invite":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Invite"},"intent":{"type":"string","maxLength":10,"title":"Intent","default":"signin"},"attribution":{"anyOf":[{"$ref":"#/components/schemas/SignupAttribution"},{"type":"null"}]}},"type":"object","title":"SSOStartRequest"},"ScheduledOverview":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ScheduledRow"},"type":"array","title":"Data"},"counts":{"additionalProperties":true,"type":"object","title":"Counts"}},"type":"object","required":["data","counts"],"title":"ScheduledOverview"},"ScheduledRow":{"properties":{"kind":{"type":"string","title":"Kind"},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"detail":{"type":"string","title":"Detail"},"schedule":{"type":"string","title":"Schedule"},"status":{"type":"string","title":"Status"},"health":{"type":"string","title":"Health","default":""},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextrunat"},"lastRunAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastrunat"},"lastRun":{"anyOf":[{"$ref":"#/components/schemas/ScheduledRun"},{"type":"null"}]},"skipped":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Skipped"},"spentThisMonth":{"type":"integer","title":"Spentthismonth","default":0},"estimate":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Estimate"},"caps":{"additionalProperties":true,"type":"object","title":"Caps"},"alerts":{"additionalProperties":true,"type":"object","title":"Alerts"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"}},"type":"object","required":["kind","id","name","detail","schedule","status","caps","alerts"],"title":"ScheduledRow"},"ScheduledRun":{"properties":{"at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At"},"status":{"type":"string","title":"Status"},"summary":{"type":"string","title":"Summary","default":""},"changed":{"type":"boolean","title":"Changed","default":false},"baseline":{"type":"boolean","title":"Baseline","default":false},"withheld":{"type":"string","title":"Withheld","default":""},"error":{"type":"string","title":"Error","default":""}},"type":"object","required":["status"],"title":"ScheduledRun"},"ScrapeRequest":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"title":"Url"},"urls":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1},{"type":"null"}],"title":"Urls"},"config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Config"},"webhook_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Webhook Url"},"timeout":{"anyOf":[{"type":"number","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Timeout"},"formats":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Formats"},"maxCredits":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Maxcredits"},"destination":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Destination"}},"type":"object","title":"ScrapeRequest"},"SearchAttempt":{"properties":{"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine"},"ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ok"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"rung":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rung"},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"credits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Credits"}},"type":"object","title":"SearchAttempt"},"SearchList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SearchSummary"},"type":"array","title":"Data"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["data"],"title":"SearchList"},"SearchResponse":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"query":{"type":"string","title":"Query"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"data":{"items":{"$ref":"#/components/schemas/SearchResultOut"},"type":"array","title":"Data"},"engine":{"type":"string","title":"Engine"},"rung":{"type":"string","title":"Rung"},"cached":{"type":"boolean","title":"Cached"},"batchId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batchid"},"creditsUsed":{"type":"integer","title":"Creditsused"},"attempts":{"items":{"$ref":"#/components/schemas/SearchAttempt"},"type":"array","title":"Attempts"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"},"error":{"type":"string","title":"Error"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finishedat"},"request_id":{"type":"string","title":"Request Id"},"webhookSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhooksecret"}},"type":"object","required":["id","kind","status","query","params","data","engine","rung","cached","creditsUsed","attempts","error","request_id"],"title":"SearchResponse"},"SearchResultOut":{"properties":{"position":{"type":"integer","title":"Position"},"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title"},"snippet":{"type":"string","title":"Snippet"},"source":{"type":"string","title":"Source"},"engine":{"type":"string","title":"Engine"},"publisher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publisher"},"age":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Age"},"page":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Page"}},"type":"object","required":["position","url","title","snippet","source","engine"],"title":"SearchResultOut"},"SearchScrape":{"properties":{"formats":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Formats"},"maxCredits":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Maxcredits"}},"type":"object","title":"SearchScrape"},"SearchSummary":{"properties":{"id":{"type":"string","title":"Id"},"query":{"type":"string","title":"Query"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"status":{"type":"string","title":"Status"},"engine":{"type":"string","title":"Engine"},"rung":{"type":"string","title":"Rung"},"cached":{"type":"boolean","title":"Cached"},"resultCount":{"type":"integer","title":"Resultcount"},"domains":{"items":{"type":"string"},"type":"array","title":"Domains"},"scraped":{"type":"boolean","title":"Scraped"},"creditsUsed":{"type":"integer","title":"Creditsused"},"error":{"type":"string","title":"Error"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"finishedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finishedat"}},"type":"object","required":["id","query","params","status","engine","rung","cached","resultCount","domains","scraped","creditsUsed","error"],"title":"SearchSummary"},"SetupRequest":{"properties":{"password":{"type":"string","title":"Password","default":""}},"type":"object","title":"SetupRequest"},"SharedDestinationCreate":{"properties":{"connectionId":{"type":"string","title":"Connectionid"},"target":{"type":"string","title":"Target"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Columns"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"incremental":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Incremental"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"shape":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shape"},"scope":{"anyOf":[{"$ref":"#/components/schemas/DestinationScope"},{"type":"null"}]}},"type":"object","required":["connectionId","target"],"title":"SharedDestinationCreate"},"SharedDestinationPatch":{"properties":{"target":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Columns"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"incremental":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Incremental"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"shape":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Shape"},"scope":{"anyOf":[{"$ref":"#/components/schemas/DestinationScope"},{"type":"null"}]}},"type":"object","title":"SharedDestinationPatch"},"SignupAttribution":{"properties":{"source":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Source"},"medium":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Medium"},"campaign":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Campaign"},"term":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Term"},"content":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Content"},"referrer":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Referrer"},"landing":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Landing"},"firstSeen":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Firstseen"}},"type":"object","title":"SignupAttribution","description":"Where the account came from, as the site's first-visit cookie recorded\nit; the app's proxy adds it, and users.clean_attribution trusts none of it."},"SignupRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace"},"invite":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invite"},"attribution":{"anyOf":[{"$ref":"#/components/schemas/SignupAttribution"},{"type":"null"}]}},"type":"object","required":["email","password"],"title":"SignupRequest"},"SourcePreviewRequest":{"properties":{"patterns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Patterns"},"feeds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Feeds"},"url_list":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Url List"},"sitemap_include":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sitemap Include"},"sitemap_exclude":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sitemap Exclude"},"include_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Include Paths"},"exclude_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Exclude Paths"}},"type":"object","title":"SourcePreviewRequest"},"SubAccountRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"monthlyCap":{"anyOf":[{"type":"integer","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Monthlycap"},"externalId":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Externalid"}},"type":"object","required":["name"],"title":"SubAccountRequest"},"SubAccountUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"monthlyCap":{"anyOf":[{"type":"integer","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Monthlycap"},"suspended":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Suspended"},"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","title":"SubAccountUpdate"},"SubscribeRequest":{"properties":{"plan":{"type":"string","title":"Plan"},"period":{"type":"string","title":"Period","default":"monthly"},"currency":{"type":"string","title":"Currency","default":"USD"}},"type":"object","required":["plan"],"title":"SubscribeRequest"},"Subscription":{"properties":{"id":{"type":"string","title":"Id"},"projectId":{"type":"string","title":"Projectid"},"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"label":{"type":"string","title":"Label","default":""},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"}},"type":"object","required":["id","projectId","url","events"],"title":"Subscription"},"SubscriptionCreate":{"properties":{"projectId":{"type":"string","maxLength":64,"title":"Projectid"},"url":{"type":"string","maxLength":2048,"title":"Url"},"events":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":30},{"type":"null"}],"title":"Events"},"label":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Label"}},"type":"object","required":["projectId","url"],"title":"SubscriptionCreate"},"SubscriptionCreated":{"properties":{"subscription":{"$ref":"#/components/schemas/Subscription"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["subscription","created"],"title":"SubscriptionCreated"},"SubscriptionList":{"properties":{"subscriptions":{"items":{"$ref":"#/components/schemas/Subscription"},"type":"array","title":"Subscriptions"}},"type":"object","required":["subscriptions"],"title":"SubscriptionList"},"SwitchRequest":{"properties":{"orgId":{"type":"string","title":"Orgid"}},"type":"object","required":["orgId"],"title":"SwitchRequest"},"ToolRequest":{"properties":{"tool":{"type":"string","maxLength":40,"minLength":1,"title":"Tool"},"url":{"type":"string","maxLength":2000,"minLength":4,"title":"Url"}},"type":"object","required":["tool","url"],"title":"ToolRequest"},"Trigger":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"source":{"additionalProperties":true,"type":"object","title":"Source"},"when":{"additionalProperties":true,"type":"object","title":"When"},"action":{"additionalProperties":true,"type":"object","title":"Action"},"limits":{"additionalProperties":true,"type":"object","title":"Limits"},"spentThisMonth":{"type":"integer","title":"Spentthismonth","default":0},"lastFiredAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastfiredat"},"lastFire":{"anyOf":[{"$ref":"#/components/schemas/TriggerFire"},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Createdat"}},"type":"object","required":["id","name","status","source","when","action","limits"],"title":"Trigger"},"TriggerFire":{"properties":{"id":{"type":"string","title":"Id"},"at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At"},"status":{"type":"string","title":"Status"},"reason":{"type":"string","title":"Reason","default":""},"sourceRunId":{"type":"string","title":"Sourcerunid"},"matched":{"type":"integer","title":"Matched"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items","default":[]},"action":{"type":"string","title":"Action"},"refKind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refkind"},"refId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refid"},"credits":{"type":"integer","title":"Credits","default":0}},"type":"object","required":["id","status","sourceRunId","matched","action"],"title":"TriggerFire"},"TriggerFires":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TriggerFire"},"type":"array","title":"Data"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},"type":"object","required":["data"],"title":"TriggerFires"},"TriggerList":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Trigger"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"TriggerList"},"TriggerRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"source":{"additionalProperties":true,"type":"object","title":"Source"},"when":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"When"},"action":{"additionalProperties":true,"type":"object","title":"Action"},"limits":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Limits"},"status":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Status"}},"type":"object","required":["source","action"],"title":"TriggerRequest"},"TriggerUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"when":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"When"},"action":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Action"},"limits":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Limits"},"status":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Status"}},"type":"object","title":"TriggerUpdate"},"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"},"WorkspaceRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"WorkspaceRequest"},"mesharc__api__routes__SearchRequest__1":{"properties":{"mode":{"type":"string","title":"Mode","default":"content"},"q":{"type":"string","maxLength":200,"minLength":1,"title":"Q"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"}},"type":"object","required":["q"],"title":"SearchRequest"},"mesharc__api__routes__SearchRequest__2":{"properties":{"query":{"type":"string","maxLength":400,"minLength":1,"title":"Query"},"limit":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Limit"},"sources":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":2},{"type":"null"}],"title":"Sources"},"page":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":1.0},{"type":"null"}],"title":"Page"},"country":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Country"},"lang":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Lang"},"freshness":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Freshness"},"includeDomains":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Includedomains"},"excludeDomains":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Excludedomains"},"scrape":{"anyOf":[{"$ref":"#/components/schemas/SearchScrape"},{"type":"null"}]},"timeout":{"anyOf":[{"type":"number","maximum":120.0,"minimum":0.0},{"type":"null"}],"title":"Timeout"},"destination":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Destination"},"webhook":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"string"},{"type":"null"}],"title":"Webhook"}},"type":"object","required":["query"],"title":"SearchRequest"}}}}