{"openapi":"3.1.0","info":{"title":"LineRecon API","version":"0.1.0"},"paths":{"/capabilities":{"get":{"summary":"Capabilities","operationId":"capabilities_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppCapabilities"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/health/live":{"get":{"summary":"Live","operationId":"live_health_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/health/ready":{"get":{"summary":"Ready","operationId":"ready_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/google/challenge":{"post":{"summary":"Google Challenge Login","operationId":"google_challenge_login_auth_google_challenge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleChallengeResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/google":{"post":{"summary":"Google Login","operationId":"google_login_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/email/challenge":{"post":{"summary":"Email Challenge Login","operationId":"email_challenge_login_auth_email_challenge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChallenge"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/email/verify":{"post":{"summary":"Email Verify Login","operationId":"email_verify_login_auth_email_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCode"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/identities/google/challenge":{"post":{"summary":"Google Challenge Link","operationId":"google_challenge_link_auth_identities_google_challenge_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleChallengeResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/identities/google":{"post":{"summary":"Google Link","operationId":"google_link_auth_identities_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credential"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/identities/email/challenge":{"post":{"summary":"Email Challenge Link","operationId":"email_challenge_link_auth_identities_email_challenge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailChallenge"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/identities/email/verify":{"post":{"summary":"Email Verify Link","operationId":"email_verify_link_auth_identities_email_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCode"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/config":{"get":{"summary":"Auth Config","operationId":"auth_config_auth_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthConfig"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/password/challenge":{"post":{"summary":"Password Challenge","operationId":"password_challenge_auth_password_challenge_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChallenge"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/password/complete":{"post":{"summary":"Password Complete","operationId":"password_complete_auth_password_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordComplete"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/password/login":{"post":{"summary":"Password Login","operationId":"password_login_auth_password_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/me":{"get":{"summary":"Me","operationId":"me_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentUserResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/logout":{"post":{"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"204":{"description":"Successful Response"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/.well-known/oauth-protected-resource/mcp":{"get":{"tags":["delegation"],"summary":"Protected Resource","operationId":"protected_resource__well_known_oauth_protected_resource_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"tags":["delegation"],"summary":"Protected Resource","operationId":"protected_resource__well_known_oauth_protected_resource_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"tags":["delegation"],"summary":"Authorization Server","operationId":"authorization_server__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/oauth/register":{"post":{"tags":["delegation"],"summary":"Register","operationId":"register_oauth_register_post","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/oauth/authorize":{"get":{"tags":["delegation"],"summary":"Authorize","operationId":"authorize_oauth_authorize_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["delegation"],"summary":"Decide","operationId":"decide_oauth_authorize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentDecision"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/oauth/requests/{request_id}":{"get":{"tags":["delegation"],"summary":"Request View","operationId":"request_view_oauth_requests__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/oauth/token":{"post":{"tags":["delegation"],"summary":"Token","operationId":"token_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/oauth/revoke":{"post":{"tags":["delegation"],"summary":"Revoke","operationId":"revoke_oauth_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/delegation/connections":{"get":{"tags":["delegation"],"summary":"Connections","operationId":"connections_delegation_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionsView"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/delegation/connections/{grant_id}":{"delete":{"tags":["delegation"],"summary":"Disconnect","operationId":"disconnect_delegation_connections__grant_id__delete","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Grant Id"}}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/mcp/uploads/{upload_id}":{"put":{"tags":["mcp-uploads"],"summary":"Put","operationId":"put_mcp_uploads__upload_id__put","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Upload Id"}},{"name":"expires","in":"query","required":true,"schema":{"type":"integer","title":"Expires"}},{"name":"signature","in":"query","required":true,"schema":{"type":"string","minLength":64,"maxLength":64,"title":"Signature"}}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/mcp/reports/download":{"get":{"tags":["mcp report delivery"],"summary":"Download","operationId":"download_mcp_reports_download_get","parameters":[{"name":"ticket","in":"query","required":true,"schema":{"type":"string","maxLength":2048,"title":"Ticket"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces":{"post":{"summary":"Create","operationId":"create_workspaces_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspace"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"summary":"Listing","operationId":"listing_workspaces_get","parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000","title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}":{"get":{"summary":"Get","operationId":"get_workspaces__wid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceWithRole"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"patch":{"summary":"Update","operationId":"update_workspaces__wid__patch","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspace"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceWithRole"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/storage":{"get":{"summary":"Storage","operationId":"storage_workspaces__wid__storage_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceStorage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/members":{"get":{"summary":"Members","operationId":"members_workspaces__wid__members_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000","title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Members"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/invitations":{"post":{"summary":"Invite","operationId":"invite_workspaces__wid__invitations_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invite"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationReceipt"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["invitations"],"summary":"Listing","operationId":"listing_workspaces__wid__invitations_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000","title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/invitations/{iid}":{"delete":{"summary":"Revoke","operationId":"revoke_workspaces__wid__invitations__iid__delete","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"iid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Iid"}}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["invitations"],"summary":"Read","operationId":"read_workspaces__wid__invitations__iid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"iid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Iid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/invitations/context":{"post":{"summary":"Open Invitation","operationId":"open_invitation_invitations_context_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationToken"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPreview"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/invitations/preview":{"get":{"summary":"Preview","operationId":"preview_invitations_preview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPreview"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/invitations/accept":{"post":{"summary":"Accept","operationId":"accept_invitations_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInvite"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptedInvitation"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/workspaces/{wid}/members/{target}":{"patch":{"summary":"Change","operationId":"change_workspaces__wid__members__target__patch","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"target","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRole"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Member"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"delete":{"summary":"Remove","operationId":"remove_workspaces__wid__members__target__delete","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"target","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revision"}}}},"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/invitations/{iid}/retry-delivery":{"post":{"tags":["invitations"],"summary":"Retry","operationId":"retry_workspaces__wid__invitations__iid__retry_delivery_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"iid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Iid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryDelivery"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryReceipt"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches":{"post":{"tags":["documents"],"summary":"Create","operationId":"create_workspaces__wid__batches_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBatch"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Batch"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["documents"],"summary":"Listing","operationId":"listing_workspaces__wid__batches_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["last_activity","created_at","name"],"type":"string","default":"last_activity","title":"Sort"}},{"name":"order","in":"query","required":false,"schema":{"anyOf":[{"enum":["asc","desc"],"type":"string"},{"type":"null"}],"title":"Order"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["upload","plan","processing","paused","review","export","done"],"type":"string"}},{"type":"null"}],"title":"Stage"}},{"name":"segment","in":"query","required":false,"schema":{"enum":["all","needs_you","processing","done"],"type":"string","default":"all","title":"Segment"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}":{"get":{"tags":["documents"],"summary":"Detail","operationId":"detail_workspaces__wid__batches__bid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDetail"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/summary":{"get":{"tags":["documents"],"summary":"Summary","description":"The batch's list projection alone, for surfaces that show no workbench.","operationId":"summary_workspaces__wid__batches__bid__summary_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchListItem"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/uploads":{"post":{"tags":["documents"],"summary":"Upload","operationId":"upload_workspaces__wid__batches__bid__uploads_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUpload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadReceipt"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/documents/{did}/upload":{"put":{"tags":["documents"],"summary":"Local Upload","operationId":"local_upload_workspaces__wid__batches__bid__documents__did__upload_put","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}},{"name":"expires","in":"query","required":true,"schema":{"type":"integer","title":"Expires"}},{"name":"signature","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Signature"}}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/documents/{did}/complete":{"post":{"tags":["documents"],"summary":"Complete","operationId":"complete_workspaces__wid__batches__bid__documents__did__complete_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentStatus"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/documents/{did}":{"delete":{"tags":["documents"],"summary":"Remove","operationId":"remove_workspaces__wid__batches__bid__documents__did__delete","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["documents"],"summary":"Document","operationId":"document_workspaces__wid__batches__bid__documents__did__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/documents/{did}/content":{"get":{"tags":["documents"],"summary":"Content","operationId":"content_workspaces__wid__batches__bid__documents__did__content_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/supplements/uploads":{"post":{"tags":["supplements"],"summary":"Reserve","operationId":"reserve_workspaces__wid__batches__bid__supplements_uploads_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewUpload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadReceipt"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/supplements/documents/{did}/upload":{"put":{"tags":["supplements"],"summary":"Upload","operationId":"upload_workspaces__wid__batches__bid__supplements_documents__did__upload_put","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}},{"name":"expires","in":"query","required":true,"schema":{"type":"integer","title":"Expires"}},{"name":"signature","in":"query","required":true,"schema":{"type":"string","maxLength":64,"title":"Signature"}}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/supplements/documents/{did}/complete":{"post":{"tags":["supplements"],"summary":"Complete","operationId":"complete_workspaces__wid__batches__bid__supplements_documents__did__complete_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentStatus"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/supplements/documents/{did}":{"delete":{"tags":["supplements"],"summary":"Remove","operationId":"remove_workspaces__wid__batches__bid__supplements_documents__did__delete","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}}],"responses":{"204":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/supplements/runs/estimate":{"post":{"tags":["supplements"],"summary":"Estimate","operationId":"estimate_workspaces__wid__batches__bid__supplements_runs_estimate_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Purpose"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Estimate"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/supplements/runs":{"post":{"tags":["supplements"],"summary":"Start","operationId":"start_workspaces__wid__batches__bid__supplements_runs_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Start"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/balance":{"get":{"tags":["billing"],"summary":"Balance","operationId":"balance_workspaces__wid__billing_balance_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/members/{target}/limit":{"get":{"tags":["billing"],"summary":"Member Limit","operationId":"member_limit_workspaces__wid__billing_members__target__limit_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"target","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberLimit"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"put":{"tags":["billing"],"summary":"Limit","operationId":"limit_workspaces__wid__billing_members__target__limit_put","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"target","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Target"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimitChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LimitResult"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/ledger":{"get":{"tags":["billing"],"summary":"Entries","operationId":"entries_workspaces__wid__billing_ledger_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"scope","in":"query","required":false,"schema":{"enum":["all","mine"],"type":"string","default":"all","title":"Scope"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Optional inclusive lower bound on created_at.","title":"From"},"description":"Optional inclusive lower bound on created_at."},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Optional exclusive upper bound on created_at.","title":"To"},"description":"Optional exclusive upper bound on created_at."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LedgerPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/position":{"get":{"tags":["billing"],"summary":"Position","operationId":"position_workspaces__wid__billing_position_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Position"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/trial":{"get":{"tags":["billing"],"summary":"Trial Offer","operationId":"trial_offer_workspaces__wid__billing_trial_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrialOffer"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"post":{"tags":["billing"],"summary":"Trial Claim","operationId":"trial_claim_workspaces__wid__billing_trial_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrialClaim"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrialAward"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/corrections":{"get":{"tags":["reviews"],"summary":"Get Corrections","operationId":"get_corrections_workspaces__wid__batches__bid__corrections_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionDraftView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"put":{"tags":["reviews"],"summary":"Save Corrections","operationId":"save_corrections_workspaces__wid__batches__bid__corrections_put","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveCorrections"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionDraftView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/corrections/preview":{"post":{"tags":["reviews"],"summary":"Value Preview","operationId":"value_preview_workspaces__wid__batches__bid__corrections_preview_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueSeed"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuePreview"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/corrections/apply":{"post":{"tags":["reviews"],"summary":"Value Apply","operationId":"value_apply_workspaces__wid__batches__bid__corrections_apply_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValueApply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionDraftView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/reviews":{"get":{"tags":["reviews"],"summary":"Get Reviews","operationId":"get_reviews_workspaces__wid__batches__bid__comparisons__vid__reviews_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewState"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"post":{"tags":["reviews"],"summary":"Decide","operationId":"decide_workspaces__wid__batches__bid__comparisons__vid__reviews_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewAction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEventView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/findings/{aid}/{fid}/evidence":{"get":{"tags":["reviews"],"summary":"Finding Evidence","operationId":"finding_evidence_workspaces__wid__batches__bid__comparisons__vid__findings__aid___fid__evidence_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}},{"name":"aid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Aid"}},{"name":"fid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Fid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FindingEvidence"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/reviews/events":{"get":{"tags":["reviews"],"summary":"Events","operationId":"events_workspaces__wid__batches__bid__comparisons__vid__reviews_events_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}},{"name":"before","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":2147483647,"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEventPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/reviews/batch-preview":{"post":{"tags":["reviews"],"summary":"Batch Preview","operationId":"batch_preview_workspaces__wid__batches__bid__comparisons__vid__reviews_batch_preview_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchSeed"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchPreview"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/reviews/batch":{"post":{"tags":["reviews"],"summary":"Batch Apply","operationId":"batch_apply_workspaces__wid__batches__bid__comparisons__vid__reviews_batch_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchApply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkReceipt"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/reviews/bulk-preview":{"post":{"tags":["reviews"],"summary":"Bulk Preview","operationId":"bulk_preview_workspaces__wid__batches__bid__comparisons__vid__reviews_bulk_preview_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatternSeed"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatternPreview"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/reviews/bulk-accept":{"post":{"tags":["reviews"],"summary":"Bulk Accept","operationId":"bulk_accept_workspaces__wid__batches__bid__comparisons__vid__reviews_bulk_accept_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAccept"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkReceipt"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/corrections/preview":{"post":{"tags":["reviews"],"summary":"Contextual Preview","operationId":"contextual_preview_workspaces__wid__batches__bid__comparisons__vid__corrections_preview_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextualSeed"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextualPreview"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/corrections/apply":{"post":{"tags":["reviews"],"summary":"Contextual Apply","operationId":"contextual_apply_workspaces__wid__batches__bid__comparisons__vid__corrections_apply_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextualApply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextualReceipt"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/exports":{"post":{"tags":["exports"],"summary":"Create","operationId":"create_workspaces__wid__batches__bid__exports_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewExport"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["exports"],"summary":"History","operationId":"history_workspaces__wid__batches__bid__exports_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/exports/{eid}":{"get":{"tags":["exports"],"summary":"Read","operationId":"read_workspaces__wid__batches__bid__exports__eid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"eid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Eid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/exports/{eid}/download":{"get":{"tags":["exports"],"summary":"Download","operationId":"download_workspaces__wid__batches__bid__exports__eid__download_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"eid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Eid"}},{"name":"format","in":"query","required":true,"schema":{"enum":["xlsx","pdf"],"type":"string","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"type":"string","format":"binary"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/exports":{"get":{"tags":["exports"],"summary":"Workspace Index","description":"Every report in the workspace, newest first, with its batch.","operationId":"workspace_index_workspaces__wid__exports_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceExportList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/preparation":{"get":{"tags":["preparation"],"summary":"Read","operationId":"read_workspaces__wid__batches__bid__preparation_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreparationView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/preparation/estimate":{"post":{"tags":["preparation"],"summary":"Estimate","operationId":"estimate_workspaces__wid__batches__bid__preparation_estimate_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProfileChoice"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreparationEstimate"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/preparation/runs":{"post":{"tags":["preparation"],"summary":"Start","operationId":"start_workspaces__wid__batches__bid__preparation_runs_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileAction"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/preparation/draft":{"put":{"tags":["preparation"],"summary":"Edit","operationId":"edit_workspaces__wid__batches__bid__preparation_draft_put","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditDraft"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/preparation/confirm":{"post":{"tags":["preparation"],"summary":"Confirm","operationId":"confirm_workspaces__wid__batches__bid__preparation_confirm_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmDraft"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirmation"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/preparation/supplement-scope":{"post":{"tags":["preparation"],"summary":"Supplement Scope","operationId":"supplement_scope_workspaces__wid__batches__bid__preparation_supplement_scope_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmSupplementScope"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/preparation/processing-estimate":{"post":{"tags":["preparation"],"summary":"Processing Estimate","operationId":"processing_estimate_workspaces__wid__batches__bid__preparation_processing_estimate_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditDraft"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessingEstimate"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/preparation/confirm-and-start":{"post":{"tags":["preparation"],"summary":"Confirm And Start","operationId":"confirm_and_start_workspaces__wid__batches__bid__preparation_confirm_and_start_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmDraft"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmAndStart"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/preparation/use-template":{"post":{"tags":["preparation"],"summary":"Template","operationId":"template_workspaces__wid__batches__bid__preparation_use_template_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UseTemplate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/saved-schemas":{"post":{"tags":["saved-schemas"],"summary":"Create","operationId":"create_workspaces__wid__saved_schemas_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewSavedSchema"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedVersion"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["saved-schemas"],"summary":"Listing","operationId":"listing_workspaces__wid__saved_schemas_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000","title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"enum":["active","archived","all"],"type":"string","default":"active","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedList"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/saved-schemas/{sid}":{"get":{"tags":["saved-schemas"],"summary":"Detail","operationId":"detail_workspaces__wid__saved_schemas__sid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedDetail"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"patch":{"tags":["saved-schemas"],"summary":"Update","operationId":"update_workspaces__wid__saved_schemas__sid__patch","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSchemaChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSummary"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/saved-schemas/{sid}/versions":{"post":{"tags":["saved-schemas"],"summary":"Create Version","operationId":"create_version_workspaces__wid__saved_schemas__sid__versions_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NewSavedVersion"},{"$ref":"#/components/schemas/EditedSavedVersion"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedVersion"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/saved-schemas/{sid}/versions/{vid}":{"get":{"tags":["saved-schemas"],"summary":"Version","operationId":"version_workspaces__wid__saved_schemas__sid__versions__vid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedVersion"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/payment-cases":{"get":{"tags":["stripe-test"],"summary":"Payment Cases","operationId":"payment_cases_workspaces__wid__billing_payment_cases_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000","title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CasePage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/catalog":{"get":{"tags":["stripe-test"],"summary":"Catalog","operationId":"catalog_workspaces__wid__billing_catalog_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestCatalog"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/checkout":{"post":{"tags":["stripe-test"],"summary":"Checkout","operationId":"checkout_workspaces__wid__billing_checkout_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/orders/{oid}":{"get":{"tags":["stripe-test"],"summary":"Order","operationId":"order_workspaces__wid__billing_orders__oid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Oid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/orders/{oid}/subscription":{"get":{"tags":["stripe-test"],"summary":"Subscription Status","operationId":"subscription_status_workspaces__wid__billing_orders__oid__subscription_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Oid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatus"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/orders/{oid}/subscription/cancel-renewal":{"post":{"tags":["stripe-test"],"summary":"Cancel Renewal","operationId":"cancel_renewal_workspaces__wid__billing_orders__oid__subscription_cancel_renewal_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Oid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelRenewalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatus"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/billing/stripe/webhook":{"post":{"tags":["stripe-test"],"summary":"Webhook","operationId":"webhook_billing_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/workspaces/{wid}/billing/orders/{oid}/subscription/change-quotes":{"post":{"tags":["stripe-test","subscription-changes-test"],"summary":"Quote","operationId":"quote_workspaces__wid__billing_orders__oid__subscription_change_quotes_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"oid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Oid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/subscription-changes":{"post":{"tags":["stripe-test","subscription-changes-test"],"summary":"Accept","operationId":"accept_workspaces__wid__billing_subscription_changes_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["stripe-test","subscription-changes-test"],"summary":"History","operationId":"history_workspaces__wid__billing_subscription_changes_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000","title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/subscription-changes/{iid}":{"get":{"tags":["stripe-test","subscription-changes-test"],"summary":"Status","operationId":"status_workspaces__wid__billing_subscription_changes__iid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"iid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Iid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/subscription-changes/{iid}/execute":{"post":{"tags":["stripe-test","subscription-changes-test"],"summary":"Run","operationId":"run_workspaces__wid__billing_subscription_changes__iid__execute_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"iid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Iid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/subscription-changes/{iid}/recover-creation":{"post":{"tags":["stripe-test","subscription-changes-test"],"summary":"Recover","operationId":"recover_workspaces__wid__billing_subscription_changes__iid__recover_creation_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"iid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Iid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/subscription-changes/{iid}/recover-upgrade":{"post":{"tags":["stripe-test","subscription-changes-test"],"summary":"Recover Upgrade","operationId":"recover_upgrade_workspaces__wid__billing_subscription_changes__iid__recover_upgrade_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"iid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Iid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecoveryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/operations/payment-cases":{"get":{"tags":["stripe-test","payment-operations-test"],"summary":"Listing","operationId":"listing_operations_payment_cases_get","parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000","title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/operations/payment-cases/{cid}":{"get":{"tags":["stripe-test","payment-operations-test"],"summary":"Detail","operationId":"detail_operations_payment_cases__cid__get","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseDetail"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/operations/payment-cases/{cid}/resolve":{"post":{"tags":["stripe-test","payment-operations-test"],"summary":"Resolve","operationId":"resolve_operations_payment_cases__cid__resolve_post","parameters":[{"name":"cid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Cid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveCase"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/billing/payment-options":{"get":{"tags":["payments"],"summary":"Options","operationId":"options_billing_payment_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentOptions"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/workspaces/{wid}/billing/payment-sessions":{"post":{"tags":["payments"],"summary":"Create","operationId":"create_workspaces__wid__billing_payment_sessions_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSession"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/payment-sessions/{session_id}":{"get":{"tags":["payments"],"summary":"Get","operationId":"get_workspaces__wid__billing_payment_sessions__session_id__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSession"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/payment-sessions/{session_id}/simulate":{"post":{"tags":["payments"],"summary":"Simulate","operationId":"simulate_workspaces__wid__billing_payment_sessions__session_id__simulate_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSession"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/payment-sessions/{session_id}/subscription/change":{"post":{"tags":["payments"],"summary":"Unsupported","operationId":"unsupported_workspaces__wid__billing_payment_sessions__session_id__subscription_change_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/payment-subscription":{"get":{"tags":["payments"],"summary":"Current Subscription","operationId":"current_subscription_workspaces__wid__billing_payment_subscription_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PaymentSession"},{"type":"null"}],"title":"Response Current Subscription Workspaces  Wid  Billing Payment Subscription Get"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/billing/payment-sessions/{session_id}/subscription/cancel-renewal":{"post":{"tags":["payments"],"summary":"Cancel","operationId":"cancel_workspaces__wid__billing_payment_sessions__session_id__subscription_cancel_renewal_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PaymentCancelRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSession"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/billing/stripe/live/webhook":{"post":{"tags":["payments"],"summary":"Live Webhook","operationId":"live_webhook_billing_stripe_live_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/internal/runs/execute":{"post":{"tags":["internal-worker"],"summary":"Execute","operationId":"execute_internal_runs_execute_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteRun"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionResult"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"413":{"description":"Content Too Large","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/workspaces/{wid}/batches/{bid}/comparisons":{"post":{"tags":["comparisons"],"summary":"Create","operationId":"create_workspaces__wid__batches__bid__comparisons_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateComparison"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonVersion"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["comparisons"],"summary":"History","operationId":"history_workspaces__wid__batches__bid__comparisons_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"before","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":2147483647,"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ComparisonVersion"},"title":"Response History Workspaces  Wid  Batches  Bid  Comparisons Get"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/scope":{"get":{"tags":["comparisons"],"summary":"Current Scope","operationId":"current_scope_workspaces__wid__batches__bid__comparisons_scope_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeState"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/scope/preview":{"post":{"tags":["comparisons"],"summary":"Scope Preview","operationId":"scope_preview_workspaces__wid__batches__bid__comparisons__vid__scope_preview_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeSeed"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopePreview"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}/scope/apply":{"post":{"tags":["comparisons"],"summary":"Scope Apply","operationId":"scope_apply_workspaces__wid__batches__bid__comparisons__vid__scope_apply_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeApply"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScopeReceipt"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/comparisons/{vid}":{"get":{"tags":["comparisons"],"summary":"Read","operationId":"read_workspaces__wid__batches__bid__comparisons__vid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"vid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComparisonVersion"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/orders/assignments":{"post":{"tags":["orders"],"summary":"Assign","description":"Pair a Needs pairing document with an order, or keep it as its own order. Writes the\nnext comparison version and starts matching the order's lines (`rematch_run_id`).","operationId":"assign_workspaces__wid__batches__bid__orders_assignments_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignDocument"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAssignmentView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/orders/{order_id}/rematch":{"post":{"tags":["orders"],"summary":"Rematch","description":"Retry line matching for an order after a failed rematch run.","operationId":"rematch_workspaces__wid__batches__bid__orders__order_id__rematch_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"order_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryRematch"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderAssignmentView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/reconciliation":{"get":{"tags":["records"],"summary":"Reconciliation","operationId":"reconciliation_workspaces__wid__runs__rid__reconciliation_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/records":{"get":{"tags":["records"],"summary":"Records","operationId":"records_workspaces__wid__runs__rid__records_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}},{"name":"document_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/coverage":{"get":{"tags":["records"],"summary":"Coverage","operationId":"coverage_workspaces__wid__runs__rid__coverage_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunCoverage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/continuation-candidates":{"post":{"tags":["records"],"summary":"Propose","operationId":"propose_workspaces__wid__runs__rid__continuation_candidates_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContinuationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContinuationPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/record-groups":{"post":{"tags":["records"],"summary":"Create","operationId":"create_workspaces__wid__runs__rid__record_groups_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordGroup"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["records"],"summary":"Listing","operationId":"listing_workspaces__wid__runs__rid__record_groups_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/record-groups/{gid}":{"get":{"tags":["records"],"summary":"Read","operationId":"read_workspaces__wid__runs__rid__record_groups__gid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}},{"name":"gid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Gid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordGroup"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/record-groups/{gid}/resolutions":{"post":{"tags":["records"],"summary":"Resolve","operationId":"resolve_workspaces__wid__runs__rid__record_groups__gid__resolutions_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}},{"name":"gid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Gid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolutionView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["records"],"summary":"Versions","operationId":"versions_workspaces__wid__runs__rid__record_groups__gid__resolutions_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}},{"name":"gid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Gid"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolutionPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/record-groups/{gid}/resolutions/{resolution_id}":{"get":{"tags":["records"],"summary":"Resolved","operationId":"resolved_workspaces__wid__runs__rid__record_groups__gid__resolutions__resolution_id__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}},{"name":"gid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Gid"}},{"name":"resolution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Resolution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolutionView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/resolved-records":{"get":{"tags":["records"],"summary":"Resolved Records","operationId":"resolved_records_workspaces__wid__runs__rid__resolved_records_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolutionPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention":{"get":{"tags":["retention"],"summary":"Policy","operationId":"policy_workspaces__wid__retention_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"put":{"tags":["retention"],"summary":"Update","operationId":"update_workspaces__wid__retention_put","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/impact":{"get":{"tags":["retention"],"summary":"Impact","description":"What saving this period and switch would delete (admins; read-only).","operationId":"impact_workspaces__wid__retention_impact_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"retention_days","in":"query","required":true,"schema":{"type":"integer","maximum":36500,"minimum":1,"title":"Retention Days"}},{"name":"automatic_deletion_enabled","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Automatic Deletion Enabled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetentionImpact"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/documents":{"get":{"tags":["retention"],"summary":"Documents","operationId":"documents_workspaces__wid__retention_documents_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000","title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPreviewView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/status":{"get":{"tags":["retention"],"summary":"Batch Status","description":"One batch's file deletion state, for any member of the workspace.","operationId":"batch_status_workspaces__wid__retention_batches__bid__status_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRetentionStatus"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/inventory":{"get":{"tags":["retention"],"summary":"Inventory","operationId":"inventory_workspaces__wid__retention_batches__bid__inventory_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchInventory"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/storage-inventory":{"get":{"tags":["retention"],"summary":"Storage Inventory","operationId":"storage_inventory_workspaces__wid__retention_batches__bid__storage_inventory_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageInventoryView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/revoke":{"post":{"tags":["retention"],"summary":"Revoke","operationId":"revoke_workspaces__wid__retention_batches__bid__revoke_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleJobView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/jobs/{jid}/restore":{"post":{"tags":["retention"],"summary":"Restore","operationId":"restore_workspaces__wid__retention_batches__bid__jobs__jid__restore_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"jid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Jid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleJobView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/jobs/{jid}":{"get":{"tags":["retention"],"summary":"Job","operationId":"job_workspaces__wid__retention_batches__bid__jobs__jid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"jid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Jid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleJobView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/jobs/{jid}/cleanup":{"post":{"tags":["retention"],"summary":"Cleanup","operationId":"cleanup_workspaces__wid__retention_batches__bid__jobs__jid__cleanup_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"jid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Jid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleJobView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/jobs/{jid}/manifest-storage":{"post":{"tags":["retention"],"summary":"Manifest","operationId":"manifest_workspaces__wid__retention_batches__bid__jobs__jid__manifest_storage_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"jid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Jid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageManifestView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/jobs/{jid}/purge-content":{"post":{"tags":["retention"],"summary":"Purge","operationId":"purge_workspaces__wid__retention_batches__bid__jobs__jid__purge_content_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"jid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Jid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleJobView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/retention/batches/{bid}/jobs":{"get":{"tags":["retention"],"summary":"Jobs","operationId":"jobs_workspaces__wid__retention_batches__bid__jobs_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"after","in":"query","required":false,"schema":{"type":"string","format":"uuid","default":"00000000-0000-0000-0000-000000000000","title":"After"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleJobPage"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/runs/estimate":{"post":{"tags":["runs"],"summary":"Estimate","operationId":"estimate_workspaces__wid__batches__bid__runs_estimate_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Purpose"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Estimate"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/runs":{"post":{"tags":["runs"],"summary":"Start","operationId":"start_workspaces__wid__batches__bid__runs_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Start"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}},"get":{"tags":["runs"],"summary":"List Runs","operationId":"list_runs_workspaces__wid__batches__bid__runs_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Cursor"}},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"enum":["discover","reconcile","rematch"],"type":"string"},{"type":"null"}],"title":"Purpose"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunHistory"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}":{"get":{"tags":["runs"],"summary":"Read","operationId":"read_workspaces__wid__runs__rid__get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/continuation":{"get":{"tags":["runs"],"summary":"Continuation","description":"Read-only: holds nothing, charges nothing and never continues the run.","operationId":"continuation_workspaces__wid__runs__rid__continuation_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Continuation"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/retry-estimate":{"post":{"tags":["runs"],"summary":"Retry Estimate","operationId":"retry_estimate_workspaces__wid__runs__rid__retry_estimate_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProfileChoice"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Estimate"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/retry":{"post":{"tags":["runs"],"summary":"Retry Run","operationId":"retry_run_workspaces__wid__runs__rid__retry_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileAction"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/continue":{"post":{"tags":["runs"],"summary":"Resume","operationId":"resume_workspaces__wid__runs__rid__continue_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/cancel":{"post":{"tags":["runs"],"summary":"Cancel","operationId":"cancel_workspaces__wid__runs__rid__cancel_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Action"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/runs/{rid}/extraction-results":{"get":{"tags":["extraction"],"summary":"Results","operationId":"results_workspaces__wid__runs__rid__extraction_results_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultView"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/documents/{did}/visual-pages":{"get":{"tags":["extraction"],"summary":"Pages","operationId":"pages_workspaces__wid__batches__bid__documents__did__visual_pages_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageStatus"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}},"/workspaces/{wid}/batches/{bid}/documents/{did}/visual-pages/{pid}/content":{"get":{"tags":["extraction"],"summary":"Content","operationId":"content_workspaces__wid__batches__bid__documents__did__visual_pages__pid__content_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Wid"}},{"name":"bid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Bid"}},{"name":"did","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Did"}},{"name":"pid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Pid"}}],"responses":{"200":{"description":"Successful Response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Conflict"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Content Too Large"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Content"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Too Many Requests"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Service Unavailable"}}}}},"components":{"schemas":{"AbsentFindingSource":{"properties":{"group_id":{"type":"string","title":"Group Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"relation":{"type":"string","const":"absent","title":"Relation"},"pages":{"items":{"$ref":"#/components/schemas/Page"},"type":"array","maxItems":0,"title":"Pages"}},"additionalProperties":false,"type":"object","required":["group_id","document_id","relation","pages"],"title":"AbsentFindingSource","description":"A document a presence finding's line is not in: nothing on it to show."},"AcceptInvite":{"properties":{"token":{"anyOf":[{"type":"string","maxLength":128,"minLength":32},{"type":"null"}],"title":"Token"},"invitation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invitation Id"}},"type":"object","title":"AcceptInvite"},"AcceptRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"quote_id":{"type":"string","format":"uuid","title":"Quote Id"},"quote_fingerprint":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Quote Fingerprint"}},"additionalProperties":false,"type":"object","required":["request_id","quote_id","quote_fingerprint"],"title":"AcceptRequest"},"AcceptedInvitation":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"}},"type":"object","required":["workspace_id"],"title":"AcceptedInvitation"},"Action":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"additionalProperties":false,"type":"object","required":["request_id"],"title":"Action"},"Adjustment":{"properties":{"grant_id":{"type":"string","format":"uuid","title":"Grant Id"},"amount":{"type":"string","pattern":"^-?[0-9]{1,18}(\\.[0-9]{1,6})?$","title":"Amount"}},"additionalProperties":false,"type":"object","required":["grant_id","amount"],"title":"Adjustment"},"AffectedFinding":{"properties":{"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"field_name":{"type":"string","title":"Field Name"},"before_consistent":{"type":"boolean","title":"Before Consistent"},"after_consistent":{"type":"boolean","title":"After Consistent"},"review_state":{"type":"string","title":"Review State"},"requires_review_again":{"type":"boolean","title":"Requires Review Again"}},"additionalProperties":false,"type":"object","required":["association_id","field_id","field_name","before_consistent","after_consistent","review_state","requires_review_again"],"title":"AffectedFinding"},"AnalyzedPage":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"page_number":{"type":"integer","title":"Page Number"}},"additionalProperties":false,"type":"object","required":["id","document_id","page_number"],"title":"AnalyzedPage"},"Answer":{"properties":{"question_id":{"type":"string","title":"Question Id"},"action":{"type":"string","enum":["answer","exclude"],"title":"Action"},"value":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Value"},"field_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100},{"type":"null"}],"title":"Field Ids"}},"additionalProperties":false,"type":"object","required":["question_id","action"],"title":"Answer"},"AppCapabilities":{"properties":{"ai_app_connections":{"type":"boolean","title":"Ai App Connections"}},"type":"object","required":["ai_app_connections"],"title":"AppCapabilities"},"AssignDocument":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_version":{"type":"integer","minimum":0.0,"title":"Base Version"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","const":"own"}],"title":"Order Id"}},"additionalProperties":false,"type":"object","required":["request_id","base_version","document_id","order_id"],"title":"AssignDocument"},"Association":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"sources":{"items":{"$ref":"#/components/schemas/SourceGroup"},"type":"array","maxItems":20,"minItems":2,"title":"Sources"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"}},"additionalProperties":false,"type":"object","required":["id","sources"],"title":"Association"},"AuthConfig":{"properties":{"turnstile_site_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnstile Site Key"},"password_enabled":{"type":"boolean","const":true,"title":"Password Enabled","default":true}},"type":"object","required":["turnstile_site_key"],"title":"AuthConfig"},"Balance":{"properties":{"available_credits":{"type":"string","title":"Available Credits"},"pending_credits":{"type":"string","title":"Pending Credits"},"member":{"$ref":"#/components/schemas/MemberLimit"}},"type":"object","required":["available_credits","pending_credits","member"],"title":"Balance"},"Batch":{"properties":{"review_mode":{"type":"string","enum":["standard","strict"],"title":"Review Mode","default":"strict"},"matching_policy":{"anyOf":[{"$ref":"#/components/schemas/Policy"},{"type":"null"}]},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"state":{"type":"string","title":"State"},"schema_revision":{"type":"integer","title":"Schema Revision"},"schema_fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","title":"Schema Fields"},"confirmed_schema_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Confirmed Schema Version Id"}},"type":"object","required":["id","name","state","schema_revision","schema_fields","confirmed_schema_version_id"],"title":"Batch"},"BatchApply":{"properties":{"action":{"type":"string","enum":["follow_up","reset","confirm_match"],"title":"Action"},"items":{"items":{"$ref":"#/components/schemas/PatternSeed"},"type":"array","maxItems":500,"minItems":1,"title":"Items"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","minimum":0.0,"title":"Base Revision"},"preview_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Preview Fingerprint"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["action","items","request_id","base_revision","preview_fingerprint"],"title":"BatchApply"},"BatchDetail":{"properties":{"review_mode":{"type":"string","enum":["standard","strict"],"title":"Review Mode","default":"strict"},"matching_policy":{"anyOf":[{"$ref":"#/components/schemas/Policy"},{"type":"null"}]},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"state":{"type":"string","title":"State"},"schema_revision":{"type":"integer","title":"Schema Revision"},"schema_fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","title":"Schema Fields"},"confirmed_schema_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Confirmed Schema Version Id"},"comparison_rules":{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object","title":"Comparison Rules"},"comparison_rules_warnings":{"items":{"type":"string"},"type":"array","title":"Comparison Rules Warnings"},"documents":{"items":{"$ref":"#/components/schemas/Document"},"type":"array","title":"Documents"},"file_count":{"type":"integer","title":"File Count"},"page_count":{"type":"integer","title":"Page Count"},"pending_file_count":{"type":"integer","title":"Pending File Count"},"ready_for_processing":{"type":"boolean","title":"Ready For Processing"}},"type":"object","required":["id","name","state","schema_revision","schema_fields","confirmed_schema_version_id","documents","file_count","page_count","pending_file_count","ready_for_processing"],"title":"BatchDetail"},"BatchInventory":{"properties":{"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"database_content":{"items":{"$ref":"#/components/schemas/ContentCount"},"type":"array","title":"Database Content"},"registered_blob_references":{"type":"integer","title":"Registered Blob References"},"unversioned_uploads":{"type":"integer","title":"Unversioned Uploads"},"active_runs":{"type":"integer","title":"Active Runs"},"external_batch_references":{"type":"integer","title":"External Batch References"},"workspace_saved_schema_versions":{"type":"integer","title":"Workspace Saved Schema Versions"},"saved_schema_copies":{"type":"integer","title":"Saved Schema Copies"},"unknown_saved_schema_origins":{"type":"integer","title":"Unknown Saved Schema Origins"},"access_revoked":{"type":"boolean","title":"Access Revoked"},"full_inventory_complete":{"type":"boolean","title":"Full Inventory Complete","default":false},"unverified_scopes":{"items":{"type":"string"},"type":"array","title":"Unverified Scopes"}},"type":"object","required":["batch_id","as_of","database_content","registered_blob_references","unversioned_uploads","active_runs","external_batch_references","workspace_saved_schema_versions","saved_schema_copies","unknown_saved_schema_origins","access_revoked","unverified_scopes"],"title":"BatchInventory"},"BatchList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BatchListItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"segment_counts":{"$ref":"#/components/schemas/SegmentCounts"}},"type":"object","required":["items","next_cursor","segment_counts"],"title":"BatchList"},"BatchListItem":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"last_activity_at":{"type":"string","format":"date-time","title":"Last Activity At"},"file_count":{"type":"integer","title":"File Count"},"page_count":{"type":"integer","title":"Page Count"},"usable_file_count":{"type":"integer","title":"Usable File Count"},"usable_page_count":{"type":"integer","title":"Usable Page Count"},"pending_file_count":{"type":"integer","title":"Pending File Count"},"preparation_stage":{"type":"string","enum":["intake","plan","processing","review"],"title":"Preparation Stage"},"stage":{"type":"string","enum":["upload","plan","processing","paused","review","export","done"],"title":"Stage"},"segment":{"type":"string","enum":["needs_you","processing","done"],"title":"Segment"},"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"state":{"type":"string","title":"State"},"schema_revision":{"type":"integer","title":"Schema Revision"},"confirmed_schema_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Confirmed Schema Version Id"},"review_mode":{"type":"string","enum":["standard","strict"],"title":"Review Mode"},"workflow":{"$ref":"#/components/schemas/WorkflowSummary"},"file_deletion":{"anyOf":[{"$ref":"#/components/schemas/FileDeletion"},{"type":"null"}]}},"type":"object","required":["created_at","created_by","created_by_name","last_activity_at","file_count","page_count","usable_file_count","usable_page_count","pending_file_count","preparation_stage","stage","segment","id","name","state","schema_revision","confirmed_schema_version_id","review_mode","workflow","file_deletion"],"title":"BatchListItem"},"BatchPreview":{"properties":{"version_id":{"type":"string","format":"uuid","title":"Version Id"},"review_revision":{"type":"integer","title":"Review Revision"},"eligible":{"items":{"$ref":"#/components/schemas/EligibleFinding"},"type":"array","title":"Eligible"},"ineligible":{"items":{"$ref":"#/components/schemas/IneligibleFinding"},"type":"array","title":"Ineligible"},"preview_fingerprint":{"type":"string","title":"Preview Fingerprint"}},"additionalProperties":false,"type":"object","required":["version_id","review_revision","eligible","ineligible","preview_fingerprint"],"title":"BatchPreview"},"BatchRetentionStatus":{"properties":{"deletion_state":{"type":"string","enum":["off","paused","scheduled","due","deleting","deleted"],"title":"Deletion State"},"retention_days":{"type":"integer","title":"Retention Days"},"deletes_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deletes On"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"kept_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Kept Until"}},"type":"object","required":["deletion_state","retention_days","deletes_on","deleted_at","kept_until"],"title":"BatchRetentionStatus"},"BatchSeed":{"properties":{"action":{"type":"string","enum":["follow_up","reset","confirm_match"],"title":"Action"},"items":{"items":{"$ref":"#/components/schemas/PatternSeed"},"type":"array","maxItems":500,"minItems":1,"title":"Items"}},"additionalProperties":false,"type":"object","required":["action","items"],"title":"BatchSeed"},"Box":{"properties":{"x0":{"type":"number","title":"X0"},"y0":{"type":"number","title":"Y0"},"x1":{"type":"number","title":"X1"},"y1":{"type":"number","title":"Y1"}},"type":"object","required":["x0","y0","x1","y1"],"title":"Box"},"BulkAccept":{"properties":{"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","minimum":0.0,"title":"Base Revision"},"preview_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Preview Fingerprint"},"reason":{"type":"string","maxLength":2000,"title":"Reason","default":""}},"additionalProperties":false,"type":"object","required":["association_id","field_id","request_id","base_revision","preview_fingerprint"],"title":"BulkAccept"},"BulkReceipt":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version_id":{"type":"string","format":"uuid","title":"Version Id"},"revision":{"type":"integer","title":"Revision"},"applied_count":{"type":"integer","title":"Applied Count"}},"type":"object","required":["id","version_id","revision","applied_count"],"title":"BulkReceipt"},"CancelRenewalRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"additionalProperties":false,"type":"object","required":["request_id"],"title":"CancelRenewalRequest"},"CaseDetail":{"properties":{"case":{"$ref":"#/components/schemas/CaseItem"},"subscription_policy_hold":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Subscription Policy Hold"},"grants":{"items":{"$ref":"#/components/schemas/GrantView"},"type":"array","title":"Grants"},"grants_truncated":{"type":"boolean","title":"Grants Truncated"},"operations":{"items":{"$ref":"#/components/schemas/OperationAudit"},"type":"array","title":"Operations"},"operations_truncated":{"type":"boolean","title":"Operations Truncated"}},"type":"object","required":["case","subscription_policy_hold","grants","grants_truncated","operations","operations_truncated"],"title":"CaseDetail"},"CaseItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"provider_id":{"type":"string","title":"Provider Id"},"amount_minor":{"type":"integer","title":"Amount Minor"},"currency":{"type":"string","title":"Currency"},"observed_status":{"type":"string","title":"Observed Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"revision":{"type":"integer","title":"Revision"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","kind","provider_id","amount_minor","currency","observed_status","created_at","workspace_id","revision","status"],"title":"CaseItem"},"CasePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CaseSummary"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"CasePage"},"CaseSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["refund","dispute"],"title":"Kind"},"target":{"type":"string","enum":["subscription","pack"],"title":"Target"},"order_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Order Id"},"amount_minor":{"type":"integer","title":"Amount Minor"},"currency":{"type":"string","title":"Currency"},"observed_status":{"type":"string","title":"Observed Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"status":{"type":"string","enum":["review_required","released"],"title":"Status","default":"review_required"},"revision":{"type":"integer","title":"Revision","default":0},"test_mode":{"type":"boolean","const":true,"title":"Test Mode","default":true}},"type":"object","required":["id","kind","target","order_id","amount_minor","currency","observed_status","created_at"],"title":"CaseSummary"},"CatalogItem":{"properties":{"cadence":{"type":"string","enum":["pack","month","year"],"title":"Cadence","default":"pack"},"credits":{"type":"string","title":"Credits"},"currency":{"type":"string","pattern":"^[a-z]{3}$","title":"Currency"},"amount_minor":{"type":"integer","maximum":99999999.0,"exclusiveMinimum":0.0,"title":"Amount Minor"}},"additionalProperties":false,"type":"object","required":["credits","currency","amount_minor"],"title":"CatalogItem"},"Cell":{"properties":{"rejected_candidates":{"type":"integer","minimum":0.0,"title":"Rejected Candidates"},"binding":{"anyOf":[{"$ref":"#/components/schemas/ValueBinding"},{"type":"null"}]},"binding_check":{"anyOf":[{"type":"string","enum":["matches","ambiguous","mismatch","unverified"]},{"type":"null"}],"title":"Binding Check"},"candidates":{"items":{"$ref":"#/components/schemas/ValueCandidate"},"type":"array","maxItems":20,"title":"Candidates"},"candidates_truncated":{"type":"boolean","title":"Candidates Truncated"},"field_id":{"type":"string","maxLength":100,"minLength":1,"title":"Field Id"},"status":{"type":"string","enum":["found","not_found","unreadable","ambiguous","unsupported"],"title":"Status"},"raw_text":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Raw Text"},"evidence":{"items":{"$ref":"#/components/schemas/Evidence"},"type":"array","maxItems":20,"title":"Evidence"},"printed_at":{"type":"string","enum":["row","column_header","table_note"],"title":"Printed At"}},"additionalProperties":false,"type":"object","required":["field_id","status","evidence"],"title":"Cell"},"CellObservation":{"properties":{"ref":{"$ref":"#/components/schemas/RecordRef"},"cell":{"$ref":"#/components/schemas/Cell"}},"additionalProperties":false,"type":"object","required":["ref","cell"],"title":"CellObservation"},"ChangePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChangeView"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"ChangePage"},"ChangeRole":{"properties":{"base_revision":{"type":"integer","minimum":1.0,"title":"Base Revision"},"role":{"type":"string","enum":["admin","member"],"title":"Role"}},"type":"object","required":["base_revision","role"],"title":"ChangeRole"},"ChangeView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"quote_id":{"type":"string","format":"uuid","title":"Quote Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"actor_id":{"type":"string","format":"uuid","title":"Actor Id"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"effective_at":{"type":"string","format":"date-time","title":"Effective At"},"new_price_id":{"type":"string","title":"New Price Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"test_mode":{"type":"boolean","const":true,"title":"Test Mode","default":true}},"type":"object","required":["id","quote_id","order_id","actor_id","kind","status","effective_at","new_price_id","created_at"],"title":"ChangeView"},"CheckoutRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"price_id":{"type":"string","maxLength":200,"minLength":7,"title":"Price Id"}},"additionalProperties":false,"type":"object","required":["request_id","price_id"],"title":"CheckoutRequest"},"CheckoutResponse":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"status":{"type":"string","title":"Status"},"test_mode":{"type":"boolean","title":"Test Mode"}},"type":"object","required":["order_id","session_id","url","status","test_mode"],"title":"CheckoutResponse"},"CombinedRecord":{"properties":{"id":{"type":"string","const":"resolved","title":"Id","default":"resolved"},"scope":{"type":"string","enum":["document","record","line_item"],"title":"Scope"},"page_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Page Ids"},"cells":{"items":{"$ref":"#/components/schemas/Cell"},"type":"array","maxItems":100,"title":"Cells"}},"additionalProperties":false,"type":"object","required":["scope","page_ids","cells"],"title":"CombinedRecord"},"ComparisonScopeSummary":{"properties":{"version_id":{"type":"string","format":"uuid","title":"Version Id"},"version":{"type":"integer","title":"Version"},"field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Field Ids"},"rules":{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object","title":"Rules"},"plan_scope":{"anyOf":[{"$ref":"#/components/schemas/PlanScope"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["version_id","version","field_ids","rules"],"title":"ComparisonScopeSummary"},"ComparisonVersion":{"properties":{"open_count":{"type":"integer","minimum":0.0,"title":"Open Count"},"to_pair_count":{"type":"integer","minimum":0.0,"title":"To Pair Count"},"accepted_count":{"type":"integer","minimum":0.0,"title":"Accepted Count"},"consistent_count":{"type":"integer","minimum":0.0,"title":"Consistent Count"},"disputed_count":{"type":"integer","minimum":0.0,"title":"Disputed Count"},"review_mode":{"type":"string","enum":["standard","strict"],"title":"Review Mode"},"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"},"schema_revision":{"type":"integer","title":"Schema Revision"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"current":{"type":"boolean","title":"Current"},"fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","title":"Fields"},"plan":{"additionalProperties":true,"type":"object","title":"Plan"},"result":{"additionalProperties":true,"type":"object","title":"Result"},"line_matching":{"items":{"$ref":"#/components/schemas/LineMatching"},"type":"array","title":"Line Matching"}},"type":"object","required":["open_count","to_pair_count","accepted_count","consistent_count","disputed_count","review_mode","id","version","schema_revision","created_by","created_at","current","fields","plan","result"],"title":"ComparisonVersion"},"Condition":{"properties":{"field_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Field Id"},"constant":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Constant"}},"additionalProperties":false,"type":"object","title":"Condition","description":"A value that must be the same on every source before a field is compared: the printed value\nof another field, else, for a source that prints none, a value the user confirmed (DC-13)."},"ConfirmAndStart":{"properties":{"confirmation":{"$ref":"#/components/schemas/Confirmation"},"run":{"anyOf":[{"$ref":"#/components/schemas/RunView"},{"type":"null"}]},"processing_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Processing Error"}},"type":"object","required":["confirmation","run","processing_error"],"title":"ConfirmAndStart"},"ConfirmDraft":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","title":"Base Revision"}},"additionalProperties":false,"type":"object","required":["request_id","base_revision"],"title":"ConfirmDraft"},"ConfirmSupplementScope":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","title":"Base Revision"},"input_fingerprint":{"type":"string","maxLength":128,"minLength":1,"title":"Input Fingerprint"},"revise":{"type":"boolean","title":"Revise","default":false}},"additionalProperties":false,"type":"object","required":["request_id","base_revision","input_fingerprint"],"title":"ConfirmSupplementScope","description":"DR20=A: the explicit, free step that binds files added to a finished batch to its plan.\n\n`input_fingerprint` is the file set the user was shown; `revise` opens the plan for editing\nagainst those files instead of reusing it as confirmed."},"Confirmation":{"properties":{"schema_revision":{"type":"integer","title":"Schema Revision"},"schema_version_id":{"type":"string","format":"uuid","title":"Schema Version Id"},"draft_id":{"type":"string","format":"uuid","title":"Draft Id"}},"additionalProperties":false,"type":"object","required":["schema_revision","schema_version_id","draft_id"],"title":"Confirmation"},"ConnectionView":{"properties":{"grant_id":{"type":"string","format":"uuid","title":"Grant Id"},"client_id":{"type":"string","title":"Client Id"},"client_name":{"type":"string","title":"Client Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"workspaces":{"items":{"$ref":"#/components/schemas/ConnectionWorkspace"},"type":"array","title":"Workspaces"},"created_at":{"type":"string","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoked At"},"revoke_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoke Reason"}},"type":"object","required":["grant_id","client_id","client_name","scopes","workspaces","created_at","last_used_at","revoked_at","revoke_reason"],"title":"ConnectionView"},"ConnectionWorkspace":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"ConnectionWorkspace"},"ConnectionsView":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConnectionView"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ConnectionsView"},"ConsentDecision":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"workspace_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"title":"Workspace Ids"},"decision":{"type":"string","enum":["allow","deny"],"title":"Decision"},"consent_nonce":{"type":"string","maxLength":128,"minLength":43,"pattern":"^[A-Za-z0-9]+$","title":"Consent Nonce"}},"additionalProperties":false,"type":"object","required":["request_id","workspace_ids","decision","consent_nonce"],"title":"ConsentDecision"},"ConsentResult":{"properties":{"redirect_url":{"type":"string","title":"Redirect Url"}},"type":"object","required":["redirect_url"],"title":"ConsentResult"},"ConsentView":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"client_id":{"type":"string","title":"Client Id"},"client_name":{"type":"string","title":"Client Name"},"redirect_host":{"type":"string","title":"Redirect Host"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"workspaces":{"items":{"$ref":"#/components/schemas/ConsentWorkspace"},"type":"array","title":"Workspaces"},"expires_at":{"type":"string","title":"Expires At"},"consent_nonce":{"type":"string","title":"Consent Nonce"},"credit_notice":{"type":"string","title":"Credit Notice"},"report_notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Notice"}},"type":"object","required":["request_id","client_id","client_name","redirect_host","scopes","workspaces","expires_at","consent_nonce","credit_notice","report_notice"],"title":"ConsentView"},"ConsentWorkspace":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","enum":["admin","member"],"title":"Role"}},"type":"object","required":["id","name","role"],"title":"ConsentWorkspace"},"ContentCount":{"properties":{"kind":{"type":"string","title":"Kind"},"rows":{"type":"integer","title":"Rows"},"json_encoded_bytes":{"type":"integer","title":"Json Encoded Bytes"}},"type":"object","required":["kind","rows","json_encoded_bytes"],"title":"ContentCount"},"ContextBinding":{"properties":{"member":{"$ref":"#/components/schemas/RecordRef"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"source":{"$ref":"#/components/schemas/RecordRef"}},"additionalProperties":false,"type":"object","required":["member","field_id","source"],"title":"ContextBinding"},"ContextualApply":{"properties":{"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"correction":{"$ref":"#/components/schemas/Correction"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"preview_token":{"type":"string","maxLength":64,"minLength":64,"title":"Preview Token"}},"additionalProperties":false,"type":"object","required":["association_id","field_id","correction","request_id","preview_token"],"title":"ContextualApply"},"ContextualPreview":{"properties":{"preview_token":{"type":"string","title":"Preview Token"},"comparison_version_id":{"type":"string","format":"uuid","title":"Comparison Version Id"},"review_revision":{"type":"integer","title":"Review Revision"},"draft_revision":{"type":"integer","title":"Draft Revision"},"unrelated_draft_count":{"type":"integer","title":"Unrelated Draft Count"},"draft_schema_compatible":{"type":"boolean","title":"Draft Schema Compatible"},"affected_findings":{"items":{"$ref":"#/components/schemas/AffectedFinding"},"type":"array","title":"Affected Findings"},"affected_group_count":{"type":"integer","title":"Affected Group Count"}},"additionalProperties":false,"type":"object","required":["preview_token","comparison_version_id","review_revision","draft_revision","unrelated_draft_count","draft_schema_compatible","affected_findings","affected_group_count"],"title":"ContextualPreview"},"ContextualReceipt":{"properties":{"comparison":{"$ref":"#/components/schemas/ComparisonVersion"},"applied_correction_revision":{"type":"integer","title":"Applied Correction Revision"},"draft_revision":{"type":"integer","title":"Draft Revision"}},"additionalProperties":false,"type":"object","required":["comparison","applied_correction_revision","draft_revision"],"title":"ContextualReceipt"},"ContextualSeed":{"properties":{"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"correction":{"$ref":"#/components/schemas/Correction"}},"additionalProperties":false,"type":"object","required":["association_id","field_id","correction"],"title":"ContextualSeed"},"Continuation":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"status":{"type":"string","enum":["queued","running","paused","cancelling","cancelled","completed","failed"],"title":"Status"},"viewer_started":{"type":"boolean","title":"Viewer Started"},"viewer_role":{"type":"string","enum":["admin","member"],"title":"Viewer Role"},"remaining_estimate_credits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remaining Estimate Credits"},"held_credits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Held Credits"},"needed_credits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Needed Credits"},"workspace_available_credits":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Available Credits"},"starter_allowance_remaining":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Starter Allowance Remaining"},"blocked_by":{"anyOf":[{"type":"string","enum":["workspace_balance","starter_allowance","starter_inactive"]},{"type":"null"}],"title":"Blocked By"},"recovery":{"anyOf":[{"type":"string","enum":["continue","add_credits","set_limit","open_members","ask_admin"]},{"type":"null"}],"title":"Recovery"}},"type":"object","required":["run_id","status","viewer_started","viewer_role","remaining_estimate_credits","held_credits","needed_credits","workspace_available_credits","starter_allowance_remaining","blocked_by","recovery"],"title":"Continuation","description":"What Continue would meet now on a paused run (DR08). The amounts are null unless the run\nis paused. None of them is a fee or a cap: the run is charged for actual usage."},"ContinuationCandidate":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"record":{"$ref":"#/components/schemas/RecordItem"},"decision":{"$ref":"#/components/schemas/ContinuationDecision"}},"type":"object","required":["id","record","decision"],"title":"ContinuationCandidate"},"ContinuationDecision":{"properties":{"kind":{"type":"string","enum":["continuation_candidate","duplicate_candidate","conflict_candidate","identity_mismatch","scope_mismatch","incompatible_source","insufficient_evidence"],"title":"Kind"},"requires_confirmation":{"type":"boolean","const":true,"title":"Requires Confirmation","default":true},"identity_complete":{"type":"boolean","title":"Identity Complete","default":false},"adjacent_pages":{"type":"boolean","title":"Adjacent Pages","default":false},"same_window":{"type":"boolean","title":"Same Window","default":false},"complementary_fields":{"items":{"type":"string"},"type":"array","title":"Complementary Fields"},"conflicting_fields":{"items":{"type":"string"},"type":"array","title":"Conflicting Fields"},"observations":{"items":{"$ref":"#/components/schemas/ObservationPair"},"type":"array","title":"Observations"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"ContinuationDecision"},"ContinuationPage":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"inputs_current":{"type":"boolean","title":"Inputs Current"},"scope":{"type":"string","const":"same_document_records","title":"Scope","default":"same_document_records"},"proposer_version":{"type":"string","const":"continuation-candidates-v1","title":"Proposer Version","default":"continuation-candidates-v1"},"target":{"$ref":"#/components/schemas/RecordItem"},"identity_fields":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Identity Fields"},"candidates":{"items":{"$ref":"#/components/schemas/ContinuationCandidate"},"type":"array","title":"Candidates"},"excluded_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Excluded Counts"},"scanned_count":{"type":"integer","title":"Scanned Count"},"scanned_all_source_records":{"type":"boolean","title":"Scanned All Source Records"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["run_id","inputs_current","target","identity_fields","candidates","excluded_counts","scanned_count","scanned_all_source_records","next_cursor"],"title":"ContinuationPage"},"ContinuationRequest":{"properties":{"target":{"$ref":"#/components/schemas/RecordRef"},"identity_fields":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":5,"minItems":1,"title":"Identity Fields"},"cursor":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Cursor"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":20}},"additionalProperties":false,"type":"object","required":["target","identity_fields"],"title":"ContinuationRequest"},"Correction":{"properties":{"ref":{"$ref":"#/components/schemas/RecordRef"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"status":{"type":"string","enum":["found","not_found"],"title":"Status","default":"found"},"raw_text":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Raw Text"},"evidence":{"anyOf":[{"items":{"$ref":"#/components/schemas/Evidence"},"type":"array","maxItems":20},{"type":"null"}],"title":"Evidence"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"additionalProperties":false,"type":"object","required":["ref","field_id"],"title":"Correction"},"CorrectionDraftView":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"revision":{"type":"integer","title":"Revision"},"schema_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Schema Revision"},"corrections":{"items":{"$ref":"#/components/schemas/Correction"},"type":"array","title":"Corrections"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"additionalProperties":false,"type":"object","required":["revision","corrections"],"title":"CorrectionDraftView"},"CreateComparison":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_version":{"type":"integer","minimum":0.0,"title":"Base Version"},"schema_revision":{"type":"integer","minimum":1.0,"title":"Schema Revision"},"correction_revision":{"type":"integer","minimum":0.0,"title":"Correction Revision","default":0},"rules":{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object","maxProperties":100,"title":"Rules"},"associations":{"items":{"$ref":"#/components/schemas/Association"},"type":"array","maxItems":1000,"minItems":1,"title":"Associations"},"orders":{"items":{"$ref":"#/components/schemas/Order"},"type":"array","maxItems":20,"title":"Orders"}},"additionalProperties":false,"type":"object","required":["request_id","base_version","schema_revision","associations"],"title":"CreateComparison"},"CreateWorkspace":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"timezone":{"type":"string","maxLength":100,"title":"Timezone"},"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"type":"object","required":["name","timezone","request_id"],"title":"CreateWorkspace"},"Credential":{"properties":{"credential":{"type":"string","maxLength":16384,"minLength":1,"title":"Credential"}},"type":"object","required":["credential"],"title":"Credential"},"CurrentUserResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["user_id","email","display_name"],"title":"CurrentUserResponse"},"DeliveryPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DeliveryView"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"DeliveryPage"},"DeliveryView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","enum":["admin","member"],"title":"Role"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"invitation_status":{"type":"string","enum":["pending","accepted","revoked","expired"],"title":"Invitation Status"},"delivery_status":{"type":"string","enum":["queued","retrying","failed","delivered","cancelled"],"title":"Delivery Status"},"attempts":{"type":"integer","title":"Attempts"},"available_at":{"type":"string","format":"date-time","title":"Available At"},"failed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Failed At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"invited_at":{"type":"string","format":"date-time","title":"Invited At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"delivery_failure_reason":{"anyOf":[{"type":"string","enum":["recipient_rejected","sender_rejected","message_rejected","mail_not_configured","delivery_error"]},{"type":"null"}],"title":"Delivery Failure Reason"},"retry_allowed":{"type":"boolean","title":"Retry Allowed"}},"type":"object","required":["id","email","role","expires_at","invitation_status","delivery_status","attempts","available_at","failed_at","delivered_at","invited_at","sent_at","delivery_failure_reason","retry_allowed"],"title":"DeliveryView"},"Document":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"filename":{"type":"string","title":"Filename"},"declared_size":{"type":"integer","title":"Declared Size"},"status":{"type":"string","title":"Status"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"page_count":{"type":"integer","title":"Page Count"},"removed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Removed At"},"actual_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actual Content Type"},"file_deletion":{"anyOf":[{"$ref":"#/components/schemas/FileDeletion"},{"type":"null"}]}},"type":"object","required":["id","filename","declared_size","status","rejection_reason","page_count","removed_at","actual_content_type","file_deletion"],"title":"Document"},"DocumentCoverage":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"generation":{"type":"string","title":"Generation"},"snapshot_pages_available":{"type":"boolean","title":"Snapshot Pages Available"},"pages":{"items":{"$ref":"#/components/schemas/PageCoverage"},"type":"array","title":"Pages"},"missing_pages":{"items":{"type":"integer"},"type":"array","title":"Missing Pages"},"overlapping_pages":{"items":{"type":"integer"},"type":"array","title":"Overlapping Pages"}},"type":"object","required":["document_id","generation","snapshot_pages_available","pages","missing_pages","overlapping_pages"],"title":"DocumentCoverage"},"DocumentPreviewItem":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"filename":{"type":"string","title":"Filename"},"uploaded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Uploaded At"},"deletion_state":{"type":"string","enum":["off","paused","scheduled","due","deleting","deleted"],"title":"Deletion State"},"deletes_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deletes On"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["document_id","batch_id","filename","uploaded_at","deletion_state","deletes_on","deleted_at"],"title":"DocumentPreviewItem"},"DocumentPreviewView":{"properties":{"policy":{"$ref":"#/components/schemas/PolicyView"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"items":{"items":{"$ref":"#/components/schemas/DocumentPreviewItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["policy","as_of","items","next_cursor"],"title":"DocumentPreviewView"},"DocumentStatus":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["document_id","status"],"title":"DocumentStatus"},"Draft":{"properties":{"observed_labels":{"items":{"$ref":"#/components/schemas/ObservedLabel"},"type":"array","title":"Observed Labels"},"inventory_notes":{"items":{"type":"string"},"type":"array","title":"Inventory Notes"},"inventory_page_ids":{"items":{"type":"string"},"type":"array","title":"Inventory Page Ids"},"label_choices":{"items":{"$ref":"#/components/schemas/LabelChoice"},"type":"array","title":"Label Choices"},"plan_scope":{"anyOf":[{"$ref":"#/components/schemas/PlanScope"},{"type":"null"}]},"source_mappings":{"items":{"$ref":"#/components/schemas/SourceMapping"},"type":"array","title":"Source Mappings"},"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"input_fingerprint":{"type":"string","title":"Input Fingerprint"},"fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","title":"Fields"},"rules":{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object","title":"Rules"},"matching_policy":{"anyOf":[{"$ref":"#/components/schemas/Policy"},{"type":"null"}]},"matching_suggestion":{"anyOf":[{"$ref":"#/components/schemas/MatchingSuggestion"},{"type":"null"}]},"examples":{"items":{"$ref":"#/components/schemas/Example"},"type":"array","title":"Examples"},"preview_records":{"items":{"$ref":"#/components/schemas/PreviewRecordView"},"type":"array","title":"Preview Records"},"unread_labels":{"items":{"$ref":"#/components/schemas/UnreadLabel"},"type":"array","title":"Unread Labels"},"questions":{"items":{"$ref":"#/components/schemas/Question"},"type":"array","title":"Questions"},"answers":{"items":{"$ref":"#/components/schemas/Answer"},"type":"array","title":"Answers"},"confirmed":{"type":"boolean","title":"Confirmed"},"run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Id"},"review_mode":{"type":"string","enum":["standard","strict"],"title":"Review Mode","default":"standard"}},"additionalProperties":false,"type":"object","required":["id","revision","input_fingerprint","fields","rules","matching_policy","examples","questions","answers","confirmed","run_id"],"title":"Draft"},"EditDraft":{"properties":{"label_choices":{"anyOf":[{"items":{"$ref":"#/components/schemas/LabelChoice"},"type":"array","maxItems":80},{"type":"null"}],"title":"Label Choices"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","title":"Base Revision"},"fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","maxItems":100,"minItems":1,"title":"Fields"},"rules":{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object","maxProperties":100,"title":"Rules"},"matching_policy":{"anyOf":[{"$ref":"#/components/schemas/Policy"},{"type":"null"}]},"answers":{"items":{"$ref":"#/components/schemas/Answer"},"type":"array","maxItems":200,"title":"Answers"},"review_mode":{"type":"string","enum":["standard","strict"],"title":"Review Mode","default":"standard"}},"additionalProperties":false,"type":"object","required":["request_id","base_revision","fields"],"title":"EditDraft"},"EditedSavedVersion":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_version":{"type":"integer","minimum":1.0,"title":"Base Version"},"based_on_version_id":{"type":"string","format":"uuid","title":"Based On Version Id"},"fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","minItems":1,"title":"Fields"},"comparison_rules":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object"},{"type":"null"}],"title":"Comparison Rules"},"matching_policy":{"anyOf":[{"$ref":"#/components/schemas/Policy"},{"type":"null"}]},"review_mode":{"type":"string","enum":["standard","strict"],"title":"Review Mode"}},"additionalProperties":false,"type":"object","required":["request_id","base_version","based_on_version_id","fields","review_mode"],"title":"EditedSavedVersion","description":"B11: the next version written on the Templates page from an existing one. The content is\nthe whole version (fields, rules, matching keys, review requirement); nothing is merged."},"EligibleFinding":{"properties":{"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"association_index":{"type":"integer","title":"Association Index"},"field_name":{"type":"string","title":"Field Name"},"current_state":{"type":"string","enum":["pending","accepted","disputed","confirmed","follow_up","needs_review_again"],"title":"Current State"}},"additionalProperties":false,"type":"object","required":["association_id","field_id","association_index","field_name","current_state"],"title":"EligibleFinding"},"EmailChallenge":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"turnstile_token":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Turnstile Token"}},"type":"object","required":["email"],"title":"EmailChallenge"},"EmailCode":{"properties":{"code":{"type":"string","pattern":"^[0-9]{8}$","title":"Code"}},"type":"object","required":["code"],"title":"EmailCode"},"ErrorDetail":{"properties":{"code":{"type":"string","title":"Code"},"current_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Revision"}},"type":"object","required":["code"],"title":"ErrorDetail"},"ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}},"type":"object","required":["error"],"title":"ErrorResponse"},"Estimate":{"properties":{"resource_profile_id":{"anyOf":[{"type":"string","enum":["compact-v1","standard-v1"]},{"type":"null"}],"title":"Resource Profile Id"},"input_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Fingerprint"},"estimated_credits":{"type":"string","title":"Estimated Credits"},"pricing_version":{"type":"string","title":"Pricing Version"},"available_credits":{"type":"string","title":"Available Credits"},"member":{"$ref":"#/components/schemas/MemberLimit"}},"type":"object","required":["estimated_credits","pricing_version","available_credits","member"],"title":"Estimate"},"Evidence":{"properties":{"page_id":{"type":"string","maxLength":200,"minLength":1,"title":"Page Id"},"quote":{"type":"string","maxLength":4000,"minLength":1,"title":"Quote"},"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"type":"null"}],"title":"Bbox"}},"additionalProperties":false,"type":"object","required":["page_id","quote"],"title":"Evidence"},"Example":{"properties":{"field_id":{"type":"string","format":"uuid","title":"Field Id"},"evidence":{"items":{"$ref":"#/components/schemas/Evidence"},"type":"array","maxItems":20,"title":"Evidence"}},"additionalProperties":false,"type":"object","required":["field_id","evidence"],"title":"Example"},"ExecuteRun":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"}},"additionalProperties":false,"type":"object","required":["run_id"],"title":"ExecuteRun"},"ExecutionResult":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"processed":{"type":"boolean","title":"Processed"}},"type":"object","required":["run_id","processed"],"title":"ExecutionResult"},"ExportList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ExportSummary"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"ExportList"},"ExportSummary":{"properties":{"open_count":{"type":"integer","minimum":0.0,"title":"Open Count"},"to_pair_count":{"type":"integer","minimum":0.0,"title":"To Pair Count"},"accepted_count":{"type":"integer","minimum":0.0,"title":"Accepted Count"},"consistent_count":{"type":"integer","minimum":0.0,"title":"Consistent Count"},"disputed_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Disputed Count"},"id":{"type":"string","format":"uuid","title":"Id"},"version_id":{"type":"string","format":"uuid","title":"Version Id"},"review_revision":{"type":"integer","title":"Review Revision"},"renderer_version":{"type":"string","title":"Renderer Version"},"requested_formats":{"items":{"type":"string","enum":["xlsx","pdf"]},"type":"array","title":"Requested Formats"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["open_count","to_pair_count","accepted_count","consistent_count","disputed_count","id","version_id","review_revision","renderer_version","requested_formats","created_by","created_at"],"title":"ExportSummary"},"ExportView":{"properties":{"open_count":{"type":"integer","minimum":0.0,"title":"Open Count"},"to_pair_count":{"type":"integer","minimum":0.0,"title":"To Pair Count"},"accepted_count":{"type":"integer","minimum":0.0,"title":"Accepted Count"},"consistent_count":{"type":"integer","minimum":0.0,"title":"Consistent Count"},"disputed_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Disputed Count"},"id":{"type":"string","format":"uuid","title":"Id"},"version_id":{"type":"string","format":"uuid","title":"Version Id"},"review_revision":{"type":"integer","title":"Review Revision"},"renderer_version":{"type":"string","title":"Renderer Version"},"requested_formats":{"items":{"type":"string","enum":["xlsx","pdf"]},"type":"array","title":"Requested Formats"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"snapshot":{"additionalProperties":true,"type":"object","title":"Snapshot"}},"type":"object","required":["open_count","to_pair_count","accepted_count","consistent_count","disputed_count","id","version_id","review_revision","renderer_version","requested_formats","created_by","created_at","snapshot"],"title":"ExportView"},"Extraction":{"properties":{"records":{"items":{"$ref":"#/components/schemas/Record"},"type":"array","maxItems":500,"minItems":1,"title":"Records"}},"additionalProperties":false,"type":"object","required":["records"],"title":"Extraction"},"ExtractionArtifact":{"properties":{"extraction":{"$ref":"#/components/schemas/Extraction"},"locations":{"items":{"$ref":"#/components/schemas/LocatedEvidence"},"type":"array","title":"Locations"},"pages":{"items":{"$ref":"#/components/schemas/Page"},"type":"array","title":"Pages"},"schema_fingerprint":{"type":"string","title":"Schema Fingerprint"},"usage":{"additionalProperties":true,"type":"object","title":"Usage"},"model_version":{"type":"string","title":"Model Version"},"prompt_version":{"type":"string","title":"Prompt Version"},"references":{"items":{"$ref":"#/components/schemas/PrintedReference"},"type":"array","title":"References"}},"type":"object","required":["extraction","locations","pages","schema_fingerprint","usage","model_version","prompt_version"],"title":"ExtractionArtifact"},"FieldChoice":{"properties":{"field_id":{"type":"string","format":"uuid","title":"Field Id"},"source":{"anyOf":[{"$ref":"#/components/schemas/RecordRef"},{"type":"null"}]},"unresolved":{"type":"boolean","title":"Unresolved","default":false}},"additionalProperties":false,"type":"object","required":["field_id"],"title":"FieldChoice"},"FieldRef":{"properties":{"field_id":{"type":"string","format":"uuid","title":"Field Id"}},"additionalProperties":false,"type":"object","required":["field_id"],"title":"FieldRef"},"FileDeletion":{"properties":{"status":{"type":"string","enum":["deleting","deleted"],"title":"Status"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["status","deleted_at"],"title":"FileDeletion","description":"Automatic deletion has claimed the batch's files: `deleting` (no longer readable; the\nbytes are being removed) or `deleted` on `deleted_at`."},"FindingCell":{"properties":{"rejected_candidates":{"type":"integer","minimum":0.0,"title":"Rejected Candidates"},"binding":{"anyOf":[{"$ref":"#/components/schemas/ValueBinding"},{"type":"null"}]},"binding_check":{"anyOf":[{"type":"string","enum":["matches","ambiguous","mismatch","unverified"]},{"type":"null"}],"title":"Binding Check"},"candidates":{"items":{"$ref":"#/components/schemas/ValueCandidate"},"type":"array","maxItems":20,"title":"Candidates"},"candidates_truncated":{"type":"boolean","title":"Candidates Truncated"},"field_id":{"type":"string","maxLength":100,"minLength":1,"title":"Field Id"},"status":{"type":"string","enum":["found","not_found","unreadable","ambiguous","unsupported"],"title":"Status"},"raw_text":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Raw Text"},"evidence":{"items":{"$ref":"#/components/schemas/FindingQuote"},"type":"array","title":"Evidence"},"printed_at":{"type":"string","enum":["row","column_header","table_note"],"title":"Printed At"},"name":{"type":"string","title":"Name"}},"additionalProperties":false,"type":"object","required":["field_id","status","evidence","name"],"title":"FindingCell"},"FindingEvidence":{"properties":{"version_id":{"type":"string","format":"uuid","title":"Version Id"},"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"field_name":{"type":"string","title":"Field Name"},"sources":{"items":{"$ref":"#/components/schemas/FindingSource"},"type":"array","title":"Sources"},"absent_sources":{"items":{"$ref":"#/components/schemas/AbsentFindingSource"},"type":"array","title":"Absent Sources"}},"additionalProperties":false,"type":"object","required":["version_id","association_id","field_id","field_name","sources"],"title":"FindingEvidence"},"FindingQuote":{"properties":{"page_id":{"type":"string","maxLength":200,"minLength":1,"title":"Page Id"},"quote":{"type":"string","maxLength":4000,"minLength":1,"title":"Quote"},"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"type":"null"}],"title":"Bbox"},"location":{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["page_id","quote","location"],"title":"FindingQuote"},"FindingSource":{"properties":{"index":{"type":"integer","minimum":0.0,"title":"Index"},"source_group_id":{"type":"string","title":"Source Group Id"},"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"record_id":{"type":"string","title":"Record Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"filename":{"type":"string","title":"Filename"},"page_ids":{"items":{"type":"string"},"type":"array","title":"Page Ids"},"pages":{"items":{"$ref":"#/components/schemas/Page"},"type":"array","title":"Pages"},"cells":{"items":{"$ref":"#/components/schemas/FindingCell"},"type":"array","title":"Cells"}},"additionalProperties":false,"type":"object","required":["index","source_group_id","artifact_id","record_id","document_id","filename","page_ids","pages","cells"],"title":"FindingSource"},"GoogleChallengeResponse":{"properties":{"nonce":{"type":"string","title":"Nonce"},"client_id":{"type":"string","title":"Client Id"}},"type":"object","required":["nonce","client_id"],"title":"GoogleChallengeResponse"},"GrantBalance":{"properties":{"source_key":{"type":"string","title":"Source Key"},"kind":{"type":"string","title":"Kind"},"entitlement":{"type":"string","enum":["credit_pack","monthly","trial","development"],"title":"Entitlement"},"amount":{"type":"string","title":"Amount"},"granted_at":{"type":"string","format":"date-time","title":"Granted At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"available":{"type":"string","title":"Available"},"billing_cadence":{"anyOf":[{"type":"string","enum":["month","year"]},{"type":"null"}],"title":"Billing Cadence"},"paid_through":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid Through"}},"type":"object","required":["source_key","kind","entitlement","amount","granted_at","expires_at","available","billing_cadence","paid_through"],"title":"GrantBalance"},"GrantView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_key":{"type":"string","title":"Source Key"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"available":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Available"},"case_adjustment":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Case Adjustment"}},"type":"object","required":["id","source_key","expires_at","available","case_adjustment"],"title":"GrantView"},"GroupPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RecordGroup"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"GroupPage"},"GroupRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"members":{"items":{"$ref":"#/components/schemas/RecordRef"},"type":"array","maxItems":50,"minItems":2,"title":"Members"}},"additionalProperties":false,"type":"object","required":["request_id","members"],"title":"GroupRequest"},"HoldAttribution":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name"},"amount":{"type":"string","title":"Amount"}},"type":"object","required":["run_id","batch_id","batch_name","amount"],"title":"HoldAttribution"},"HumanWorkSummary":{"properties":{"open_count":{"type":"integer","minimum":0.0,"title":"Open Count"},"to_pair_count":{"type":"integer","minimum":0.0,"title":"To Pair Count"},"accepted_count":{"type":"integer","minimum":0.0,"title":"Accepted Count"},"consistent_count":{"type":"integer","minimum":0.0,"title":"Consistent Count"},"disputed_count":{"type":"integer","minimum":0.0,"title":"Disputed Count"},"comparison_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparison Version Id"},"comparison_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Comparison Version"},"current":{"type":"boolean","title":"Current"},"mode":{"type":"string","enum":["standard","strict"],"title":"Mode"},"revision":{"type":"integer","title":"Revision"},"finding_count":{"type":"integer","title":"Finding Count"},"system_consistent_count":{"type":"integer","title":"System Consistent Count"},"human_reviewed_count":{"type":"integer","title":"Human Reviewed Count"},"follow_up_count":{"type":"integer","title":"Follow Up Count"},"unpaired_records":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unpaired Records"},"unpublished_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unpublished Pages"},"unresolved_documents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unresolved Documents"},"coverage_unknown":{"type":"boolean","title":"Coverage Unknown"}},"type":"object","required":["open_count","to_pair_count","accepted_count","consistent_count","disputed_count","comparison_version_id","comparison_version","current","mode","revision","finding_count","system_consistent_count","human_reviewed_count","follow_up_count","unpaired_records","unpublished_pages","unresolved_documents","coverage_unknown"],"title":"HumanWorkSummary"},"IneligibleFinding":{"properties":{"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"code":{"type":"string","enum":["different_finding_cannot_be_confirmed","finding_not_found","already_in_target_state"],"title":"Code"}},"additionalProperties":false,"type":"object","required":["association_id","field_id","code"],"title":"IneligibleFinding"},"InvitationPreview":{"properties":{"invitation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invitation Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"role":{"anyOf":[{"type":"string","enum":["admin","member"]},{"type":"null"}],"title":"Role"},"invited_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By Name"},"invited_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By Email"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"status":{"type":"string","enum":["pending","accepted","revoked","expired"],"title":"Status"},"delivery_failure_reason":{"anyOf":[{"type":"string","enum":["recipient_rejected","sender_rejected","message_rejected","mail_not_configured","delivery_error"]},{"type":"null"}],"title":"Delivery Failure Reason"}},"type":"object","required":["invitation_id","workspace_name","role","invited_by_name","invited_by_email","sent_at","expires_at","status","delivery_failure_reason"],"title":"InvitationPreview"},"InvitationReceipt":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"delivery_status":{"type":"string","title":"Delivery Status"}},"type":"object","required":["id","delivery_status"],"title":"InvitationReceipt"},"InvitationToken":{"properties":{"token":{"type":"string","maxLength":128,"minLength":32,"title":"Token"}},"type":"object","required":["token"],"title":"InvitationToken"},"Invite":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"role":{"type":"string","enum":["admin","member"],"title":"Role","default":"member"},"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"type":"object","required":["email","request_id"],"title":"Invite"},"LabelChoice":{"properties":{"label_id":{"type":"string","maxLength":64,"minLength":1,"title":"Label Id"},"action":{"type":"string","enum":["include","exclude"],"title":"Action"},"field_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Field Id"},"field_signature":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Field Signature"}},"additionalProperties":false,"type":"object","required":["label_id","action"],"title":"LabelChoice"},"LatestComparison":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version":{"type":"integer","title":"Version"},"current":{"type":"boolean","title":"Current"},"correction_revision":{"type":"integer","title":"Correction Revision"},"uses_value":{"type":"boolean","title":"Uses Value"},"record_paired":{"type":"boolean","title":"Record Paired"}},"additionalProperties":false,"type":"object","required":["id","version","current","correction_revision","uses_value","record_paired"],"title":"LatestComparison"},"LedgerEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"amount":{"type":"string","title":"Amount"},"reason":{"type":"string","title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Run Id"},"member_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Member Id"},"member_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Member Email"},"member_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Member Display Name"},"source_kind":{"type":"string","title":"Source Kind"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"batch_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Name"},"run_purpose":{"anyOf":[{"type":"string","enum":["discover","reconcile","rematch"]},{"type":"null"}],"title":"Run Purpose"},"settlement":{"anyOf":[{"type":"string","enum":["held","settled"]},{"type":"null"}],"title":"Settlement"}},"type":"object","required":["id","kind","amount","reason","created_at","run_id","member_id","member_email","member_display_name","source_kind","batch_id","batch_name","run_purpose","settlement"],"title":"LedgerEntry"},"LedgerPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LedgerEntry"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"LedgerPage"},"LifecycleJobPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LifecycleJobView"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"LifecycleJobPage"},"LifecycleJobView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"revocation_id":{"type":"string","format":"uuid","title":"Revocation Id"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"cleanup_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cleanup Started At"},"content_purge_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Content Purge Started At"},"content_purged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Content Purged At"},"content_purge_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Purge Scope"},"database_content_erased":{"type":"boolean","title":"Database Content Erased","default":false},"full_erasure_complete":{"type":"boolean","title":"Full Erasure Complete"},"remaining_scope":{"items":{"type":"string"},"type":"array","title":"Remaining Scope"}},"type":"object","required":["id","workspace_id","batch_id","revocation_id","status","attempts","error_code","created_at","updated_at","cleanup_started_at","full_erasure_complete","remaining_scope"],"title":"LifecycleJobView"},"LifecycleRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"additionalProperties":false,"type":"object","required":["request_id"],"title":"LifecycleRequest"},"LimitChange":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","minimum":0.0,"title":"Base Revision"},"monthly_limit":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Monthly Limit"}},"additionalProperties":false,"type":"object","required":["request_id","base_revision","monthly_limit"],"title":"LimitChange"},"LimitResult":{"properties":{"monthly_limit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthly Limit"},"revision":{"type":"integer","title":"Revision"}},"type":"object","required":["monthly_limit","revision"],"title":"LimitResult"},"LineMatching":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"state":{"type":"string","enum":["matching","failed"],"title":"State"}},"additionalProperties":false,"type":"object","required":["order_id","run_id","state"],"title":"LineMatching","description":"An order of the latest version whose lines a rematch run is matching, or failed to match\n(\"Line matching failed — Retry\", DR23 §8). Read live; never stored in the version."},"LocatedEvidence":{"properties":{"record_id":{"type":"string","title":"Record Id"},"field_id":{"type":"string","title":"Field Id"},"evidence_index":{"type":"integer","title":"Evidence Index"},"location":{"$ref":"#/components/schemas/Location"}},"type":"object","required":["record_id","field_id","evidence_index","location"],"title":"LocatedEvidence"},"Location":{"properties":{"page_id":{"type":"string","title":"Page Id"},"status":{"type":"string","enum":["candidate","page_only","ambiguous"],"title":"Status"},"box":{"anyOf":[{"$ref":"#/components/schemas/Box"},{"type":"null"}]},"method":{"type":"string","title":"Method"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"source_page":{"anyOf":[{"$ref":"#/components/schemas/Page"},{"type":"null"}]},"quote_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Sha256"}},"type":"object","required":["page_id","status","box","method"],"title":"Location"},"MatchingSuggestion":{"properties":{"identity_fields":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Identity Fields"},"scope_fields":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Scope Fields"},"conflict_fields":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Conflict Fields"}},"additionalProperties":false,"type":"object","required":["identity_fields","scope_fields","conflict_fields"],"title":"MatchingSuggestion","description":"The model's partial matching keys, offered as a prefill: never a confirmed policy."},"Member":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"type":"string","enum":["admin","member"],"title":"Role"},"revision":{"type":"integer","title":"Revision"}},"type":"object","required":["user_id","role","revision"],"title":"Member"},"MemberDetail":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"type":"string","enum":["admin","member"],"title":"Role"},"revision":{"type":"integer","title":"Revision"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Joined At"},"monthly_limit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthly Limit"},"used_this_month":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Used This Month"},"remaining":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remaining"},"month":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Month"},"limit_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit Revision"}},"type":"object","required":["user_id","role","revision","email","display_name","joined_at","monthly_limit","used_this_month","remaining","month","limit_revision"],"title":"MemberDetail"},"MemberLimit":{"properties":{"monthly_limit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Monthly Limit"},"used":{"type":"string","title":"Used"},"remaining":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remaining"},"revision":{"type":"integer","title":"Revision"},"month":{"type":"string","format":"date","title":"Month"}},"type":"object","required":["monthly_limit","used","remaining","revision","month"],"title":"MemberLimit"},"Members":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MemberDetail"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"Members"},"NewBatch":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["request_id","name"],"title":"NewBatch"},"NewExport":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"comparison_version_id":{"type":"string","format":"uuid","title":"Comparison Version Id"},"review_revision":{"type":"integer","minimum":0.0,"title":"Review Revision"},"requested_formats":{"items":{"type":"string","enum":["xlsx","pdf"]},"type":"array","maxItems":2,"minItems":1,"uniqueItems":true,"title":"Requested Formats"}},"additionalProperties":false,"type":"object","required":["request_id","comparison_version_id","review_revision","requested_formats"],"title":"NewExport"},"NewSavedSchema":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"schema_revision":{"type":"integer","minimum":1.0,"title":"Schema Revision"},"comparison_version_id":{"type":"string","format":"uuid","title":"Comparison Version Id"},"include_comparison_rules":{"type":"boolean","title":"Include Comparison Rules","default":false},"include_matching_policy":{"type":"boolean","title":"Include Matching Policy","default":false},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["request_id","batch_id","schema_revision","comparison_version_id","name"],"title":"NewSavedSchema"},"NewSavedVersion":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"schema_revision":{"type":"integer","minimum":1.0,"title":"Schema Revision"},"comparison_version_id":{"type":"string","format":"uuid","title":"Comparison Version Id"},"include_comparison_rules":{"type":"boolean","title":"Include Comparison Rules","default":false},"include_matching_policy":{"type":"boolean","title":"Include Matching Policy","default":false},"base_version":{"type":"integer","minimum":1.0,"title":"Base Version"}},"additionalProperties":false,"type":"object","required":["request_id","batch_id","schema_revision","comparison_version_id","base_version"],"title":"NewSavedVersion"},"NewUpload":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes"},"content_type":{"type":"string","enum":["application/pdf","image/jpeg","image/png"],"title":"Content Type"}},"additionalProperties":false,"type":"object","required":["request_id","filename","size_bytes","content_type"],"title":"NewUpload"},"ObservationPair":{"properties":{"field_id":{"type":"string","title":"Field Id"},"left":{"anyOf":[{"$ref":"#/components/schemas/Cell"},{"type":"null"}]},"right":{"anyOf":[{"$ref":"#/components/schemas/Cell"},{"type":"null"}]},"relation":{"type":"string","enum":["equal","conflict","complementary","unresolved","inapplicable"],"title":"Relation"}},"additionalProperties":false,"type":"object","required":["field_id","left","right","relation"],"title":"ObservationPair"},"ObservedLabel":{"properties":{"page_id":{"type":"string","maxLength":200,"minLength":1,"title":"Page Id"},"quote":{"type":"string","maxLength":4000,"minLength":1,"title":"Quote"},"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"type":"null"}],"title":"Bbox"},"id":{"type":"string","title":"Id"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["text","identifier","number","money","date"],"title":"Type"},"scope":{"type":"string","enum":["document","record","line_item"],"title":"Scope"},"field_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Field Id"},"field_signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Signature"}},"additionalProperties":false,"type":"object","required":["page_id","quote","id","label","type","scope"],"title":"ObservedLabel"},"OperationAudit":{"properties":{"case_id":{"type":"string","format":"uuid","title":"Case Id"},"operation_id":{"type":"string","format":"uuid","title":"Operation Id"},"revision":{"type":"integer","title":"Revision"},"status":{"type":"string","title":"Status"},"test_mode":{"type":"boolean","title":"Test Mode"},"adjusted_grants":{"type":"integer","title":"Adjusted Grants"},"actor_id":{"type":"string","format":"uuid","title":"Actor Id"},"reason":{"type":"string","title":"Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["case_id","operation_id","revision","status","test_mode","adjusted_grants","actor_id","reason","created_at"],"title":"OperationAudit"},"OperationView":{"properties":{"case_id":{"type":"string","format":"uuid","title":"Case Id"},"operation_id":{"type":"string","format":"uuid","title":"Operation Id"},"revision":{"type":"integer","title":"Revision"},"status":{"type":"string","title":"Status"},"test_mode":{"type":"boolean","title":"Test Mode"},"adjusted_grants":{"type":"integer","title":"Adjusted Grants"}},"type":"object","required":["case_id","operation_id","revision","status","test_mode","adjusted_grants"],"title":"OperationView"},"OperatorPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CaseItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"OperatorPage"},"Order":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"documents":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20,"minItems":1,"title":"Documents"},"basis":{"type":"string","enum":["key","reference","assigned","own"],"title":"Basis"},"scope_value":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Scope Value"},"assigned":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":20,"title":"Assigned"},"links":{"items":{"$ref":"#/components/schemas/OrderLink"},"type":"array","maxItems":20,"title":"Links"}},"additionalProperties":false,"type":"object","required":["id","documents","basis"],"title":"Order","description":"Documents that describe one transaction (DR23 §3.1): equal scope keys (`key`), equal keys\nplus documents printing that key as a reference (`reference`, DR25 §1C), a person's\nassignment (`assigned`), or one document on its own (`own`)."},"OrderAssignmentView":{"properties":{"comparison_version_id":{"type":"string","format":"uuid","title":"Comparison Version Id"},"version":{"type":"integer","title":"Version"},"rematch_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Rematch Run Id"},"match_limit":{"type":"boolean","title":"Match Limit"},"noop":{"type":"boolean","title":"Noop"}},"type":"object","required":["comparison_version_id","version","rematch_run_id","match_limit","noop"],"title":"OrderAssignmentView"},"OrderLink":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"value":{"type":"string","maxLength":200,"minLength":1,"title":"Value"}},"additionalProperties":false,"type":"object","required":["document_id","label","value"],"title":"OrderLink","description":"A document that joined its order through a printed reference equal to the order's key\n(DR25 §1C): the label and value it prints."},"Page":{"properties":{"id":{"type":"string","maxLength":200,"minLength":1,"title":"Id"},"document_id":{"type":"string","maxLength":100,"minLength":1,"title":"Document Id"},"generation":{"type":"string","maxLength":200,"minLength":1,"title":"Generation"},"page_number":{"type":"integer","exclusiveMinimum":0.0,"title":"Page Number"},"render_hash":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Render Hash"},"width":{"type":"integer","exclusiveMinimum":0.0,"title":"Width"},"height":{"type":"integer","exclusiveMinimum":0.0,"title":"Height"}},"additionalProperties":false,"type":"object","required":["id","document_id","generation","page_number","render_hash","width","height"],"title":"Page"},"PageCoverage":{"properties":{"page_number":{"type":"integer","title":"Page Number"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"artifact_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Artifact Ids"},"state":{"type":"string","enum":["missing","covered","overlap"],"title":"State"}},"type":"object","required":["page_number","page_id","artifact_ids","state"],"title":"PageCoverage"},"PageStatus":{"properties":{"status":{"type":"string","enum":["pending","running","done","ready","failed","rejected"],"title":"Status"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"pages":{"items":{"$ref":"#/components/schemas/PageView"},"type":"array","title":"Pages"}},"type":"object","required":["status","error_code","pages"],"title":"PageStatus"},"PageView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"page_number":{"type":"integer","title":"Page Number"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"render_hash":{"type":"string","title":"Render Hash"},"render_version":{"type":"string","title":"Render Version"}},"type":"object","required":["id","page_number","width","height","render_hash","render_version"],"title":"PageView"},"PasswordChallenge":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"turnstile_token":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Turnstile Token"},"purpose":{"type":"string","enum":["register","reset"],"title":"Purpose"}},"type":"object","required":["email","purpose"],"title":"PasswordChallenge"},"PasswordComplete":{"properties":{"code":{"type":"string","pattern":"^[0-9]{8}$","title":"Code"},"password":{"type":"string","maxLength":128,"minLength":12,"title":"Password"}},"type":"object","required":["code","password"],"title":"PasswordComplete"},"PasswordLogin":{"properties":{"email":{"type":"string","maxLength":254,"minLength":3,"title":"Email"},"turnstile_token":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Turnstile Token"},"password":{"type":"string","maxLength":128,"minLength":12,"title":"Password"}},"type":"object","required":["email","password"],"title":"PasswordLogin"},"PatternCandidate":{"properties":{"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"association_index":{"type":"integer","title":"Association Index"},"state":{"type":"string","title":"State"}},"type":"object","required":["association_id","field_id","association_index","state"],"title":"PatternCandidate"},"PatternPreview":{"properties":{"version_id":{"type":"string","format":"uuid","title":"Version Id"},"review_revision":{"type":"integer","title":"Review Revision"},"field_name":{"type":"string","title":"Field Name"},"kind":{"type":"string","enum":["missing_field","numeric_delta","text_values","absent"],"title":"Kind"},"source_count":{"type":"integer","title":"Source Count"},"missing_sources":{"items":{"type":"integer"},"type":"array","title":"Missing Sources"},"deltas":{"items":{"type":"string"},"type":"array","title":"Deltas"},"values":{"items":{"type":"string"},"type":"array","title":"Values"},"conditions":{"items":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},"type":"array","title":"Conditions"},"candidates":{"items":{"$ref":"#/components/schemas/PatternCandidate"},"type":"array","title":"Candidates"},"preview_fingerprint":{"type":"string","title":"Preview Fingerprint"}},"type":"object","required":["version_id","review_revision","field_name","kind","source_count","missing_sources","deltas","values","conditions","candidates","preview_fingerprint"],"title":"PatternPreview"},"PatternSeed":{"properties":{"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"}},"additionalProperties":false,"type":"object","required":["association_id","field_id"],"title":"PatternSeed"},"PaymentCancelRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"additionalProperties":false,"type":"object","required":["request_id"],"title":"PaymentCancelRequest"},"PaymentOffer":{"properties":{"id":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,79}$","title":"Id"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"kind":{"type":"string","enum":["pack","subscription"],"title":"Kind"},"cadence":{"type":"string","enum":["pack","monthly","annual"],"title":"Cadence"},"currency":{"type":"string","enum":["USD","GBP","EUR"],"title":"Currency"},"amount_minor":{"type":"integer","maximum":100000000.0,"exclusiveMinimum":0.0,"title":"Amount Minor"},"credits":{"type":"string","title":"Credits"},"storage_quota_bytes":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Storage Quota Bytes"}},"additionalProperties":false,"type":"object","required":["id","name","kind","cadence","currency","amount_minor","credits"],"title":"PaymentOffer"},"PaymentOptions":{"properties":{"configured":{"type":"boolean","title":"Configured"},"provider":{"type":"string","enum":["pancake","stripe"],"title":"Provider"},"mode":{"type":"string","enum":["disabled","simulation","sandbox","live"],"title":"Mode"},"catalog_version":{"type":"string","title":"Catalog Version"},"offers":{"items":{"$ref":"#/components/schemas/PaymentOffer"},"type":"array","title":"Offers"}},"type":"object","required":["configured","provider","mode","catalog_version","offers"],"title":"PaymentOptions"},"PaymentSession":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"provider":{"type":"string","enum":["pancake","stripe"],"title":"Provider"},"mode":{"type":"string","enum":["simulation","sandbox","live"],"title":"Mode"},"status":{"type":"string","enum":["pending","paid","failed","cancelled"],"title":"Status"},"offer":{"$ref":"#/components/schemas/PaymentOffer"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"credits_granted":{"type":"string","title":"Credits Granted"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"subscription":{"anyOf":[{"$ref":"#/components/schemas/PaymentSubscription"},{"type":"null"}]}},"type":"object","required":["id","workspace_id","provider","mode","status","offer","checkout_url","credits_granted","created_at"],"title":"PaymentSession"},"PaymentSessionRequest":{"properties":{"offer_id":{"type":"string","maxLength":80,"minLength":1,"title":"Offer Id"},"catalog_version":{"type":"string","maxLength":100,"minLength":1,"title":"Catalog Version"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"return_to":{"anyOf":[{"type":"string","maxLength":300,"pattern":"^/workspaces(/[A-Za-z0-9-]+)+$"},{"type":"null"}],"title":"Return To"},"source":{"anyOf":[{"type":"string","enum":["billing","run_paused","preflight"]},{"type":"null"}],"title":"Source"},"currency":{"anyOf":[{"type":"string","enum":["USD","GBP","EUR"]},{"type":"null"}],"title":"Currency"}},"additionalProperties":false,"type":"object","required":["offer_id","catalog_version","request_id"],"title":"PaymentSessionRequest"},"PaymentSubscription":{"properties":{"status":{"type":"string","title":"Status"},"renewal_cancelled":{"type":"boolean","title":"Renewal Cancelled"},"paid_through":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid Through"}},"type":"object","required":["status","renewal_cancelled","paid_through"],"title":"PaymentSubscription"},"PendingDocument":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"page_numbers":{"items":{"type":"integer"},"type":"array","title":"Page Numbers"}},"type":"object","required":["id"],"title":"PendingDocument"},"PendingRecord":{"properties":{"ref":{"$ref":"#/components/schemas/RecordRef"},"reason":{"type":"string","title":"Reason"},"fields":{"items":{"type":"string"},"type":"array","title":"Fields"}},"type":"object","required":["ref","reason"],"title":"PendingRecord"},"PlanScope":{"properties":{"status":{"type":"string","enum":["not_recorded","unknown","limited","sampled"],"title":"Status"},"observed_count":{"type":"integer","title":"Observed Count"},"included_count":{"type":"integer","title":"Included Count"},"excluded_count":{"type":"integer","title":"Excluded Count"},"unselected_labels":{"items":{"$ref":"#/components/schemas/ScopeLabel"},"type":"array","title":"Unselected Labels"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"},"analyzed_pages":{"type":"integer","title":"Analyzed Pages"},"total_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Pages"}},"additionalProperties":false,"type":"object","required":["status","observed_count","included_count","excluded_count","unselected_labels","notes","analyzed_pages"],"title":"PlanScope"},"Policy":{"properties":{"identity_fields":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":5,"minItems":1,"title":"Identity Fields"},"scope_fields":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":5,"minItems":0,"title":"Scope Fields"},"conflict_fields":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":5,"title":"Conflict Fields","default":[]}},"additionalProperties":false,"type":"object","required":["identity_fields","scope_fields"],"title":"Policy"},"PolicyUpdate":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"revision":{"type":"integer","minimum":0.0,"title":"Revision"},"retention_days":{"type":"integer","maximum":36500.0,"minimum":1.0,"title":"Retention Days"},"automatic_deletion_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Automatic Deletion Enabled"},"confirm_irreversible":{"type":"boolean","title":"Confirm Irreversible","default":false}},"additionalProperties":false,"type":"object","required":["request_id","revision","retention_days"],"title":"PolicyUpdate"},"PolicyView":{"properties":{"revision":{"type":"integer","title":"Revision"},"retention_days":{"type":"integer","title":"Retention Days"},"date_basis":{"type":"string","const":"batch_last_upload","title":"Date Basis"},"automatic_deletion_enabled":{"type":"boolean","title":"Automatic Deletion Enabled"},"automatic_deletion_available":{"type":"boolean","title":"Automatic Deletion Available"},"deletion_status":{"type":"string","enum":["off","on","paused"],"title":"Deletion Status"},"deletion_effective_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deletion Effective At"},"automatic_deletion_changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Automatic Deletion Changed At"},"automatic_deletion_changed_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Automatic Deletion Changed By Name"},"deletion_scope":{"type":"string","const":"uploaded_files_and_page_images","title":"Deletion Scope"},"full_erasure_supported":{"type":"boolean","title":"Full Erasure Supported"},"limitations":{"items":{"type":"string"},"type":"array","title":"Limitations"}},"type":"object","required":["revision","retention_days","date_basis","automatic_deletion_enabled","automatic_deletion_available","deletion_status","deletion_effective_at","automatic_deletion_changed_at","automatic_deletion_changed_by_name","deletion_scope","full_erasure_supported","limitations"],"title":"PolicyView"},"Position":{"properties":{"period_start":{"type":"string","format":"date-time","title":"Period Start"},"period_end":{"type":"string","format":"date-time","title":"Period End"},"opening_credits":{"type":"string","title":"Opening Credits"},"granted":{"type":"string","title":"Granted"},"charged":{"type":"string","title":"Charged"},"returned":{"type":"string","title":"Returned"},"held":{"type":"string","title":"Held"},"adjusted":{"type":"string","title":"Adjusted"},"expired":{"type":"string","title":"Expired"},"closing_credits":{"type":"string","title":"Closing Credits"},"used":{"type":"string","title":"Used"},"grants":{"items":{"$ref":"#/components/schemas/GrantBalance"},"type":"array","title":"Grants"},"holds":{"items":{"$ref":"#/components/schemas/HoldAttribution"},"type":"array","title":"Holds"}},"type":"object","required":["period_start","period_end","opening_credits","granted","charged","returned","held","adjusted","expired","closing_credits","used","grants","holds"],"title":"Position"},"PreparationEstimate":{"properties":{"resource_profile_id":{"anyOf":[{"type":"string","enum":["compact-v1","standard-v1"]},{"type":"null"}],"title":"Resource Profile Id"},"input_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Fingerprint"},"estimated_credits":{"type":"string","title":"Estimated Credits"},"pricing_version":{"type":"string","title":"Pricing Version"},"available_credits":{"type":"string","title":"Available Credits"},"member":{"$ref":"#/components/schemas/MemberLimit"},"analyzed_pages":{"items":{"$ref":"#/components/schemas/AnalyzedPage"},"type":"array","title":"Analyzed Pages"},"total_pages":{"type":"integer","title":"Total Pages"},"unrepresented_document_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Unrepresented Document Ids"}},"type":"object","required":["estimated_credits","pricing_version","available_credits","member","analyzed_pages","total_pages","unrepresented_document_ids"],"title":"PreparationEstimate"},"PreparationView":{"properties":{"comparison_scope":{"anyOf":[{"$ref":"#/components/schemas/ComparisonScopeSummary"},{"type":"null"}]},"observed_fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","title":"Observed Fields"},"observed_fields_current":{"type":"boolean","title":"Observed Fields Current"},"observed_input_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observed Input Fingerprint"},"workflow_stage":{"type":"string","enum":["intake","plan","processing","review"],"title":"Workflow Stage","default":"intake"},"processing_run":{"anyOf":[{"$ref":"#/components/schemas/RunView"},{"type":"null"}]},"comparison_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparison Version Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"state":{"type":"string","enum":["uploading","ready","analyzing","draft","confirmed","failed"],"title":"State"},"input_fingerprint":{"type":"string","title":"Input Fingerprint"},"analyzed_pages":{"items":{"$ref":"#/components/schemas/AnalyzedPage"},"type":"array","title":"Analyzed Pages"},"total_pages":{"type":"integer","title":"Total Pages"},"unrepresented_document_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Unrepresented Document Ids"},"run":{"anyOf":[{"$ref":"#/components/schemas/RunView"},{"type":"null"}]},"spent_credits":{"type":"string","title":"Spent Credits"},"draft":{"anyOf":[{"$ref":"#/components/schemas/Draft"},{"type":"null"}]},"draft_current":{"type":"boolean","title":"Draft Current","default":false},"supplement_scope":{"anyOf":[{"$ref":"#/components/schemas/SupplementScope"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["observed_fields","observed_fields_current","observed_input_fingerprint","batch_id","state","input_fingerprint","analyzed_pages","total_pages","unrepresented_document_ids","run","spent_credits","draft"],"title":"PreparationView"},"PreviewRecordView":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"values":{"items":{"$ref":"#/components/schemas/PreviewValue"},"type":"array","maxItems":40,"title":"Values"}},"additionalProperties":false,"type":"object","required":["document_id","values"],"title":"PreviewRecordView","description":"One printed record the plan analysis read, every field together: a preview, not data."},"PreviewValue":{"properties":{"page_id":{"type":"string","maxLength":200,"minLength":1,"title":"Page Id"},"quote":{"type":"string","maxLength":4000,"minLength":1,"title":"Quote"},"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"type":"null"}],"title":"Bbox"},"field_id":{"type":"string","format":"uuid","title":"Field Id"}},"additionalProperties":false,"type":"object","required":["page_id","quote","field_id"],"title":"PreviewValue"},"PrintedReference":{"properties":{"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"value":{"type":"string","maxLength":200,"minLength":1,"title":"Value"}},"additionalProperties":false,"type":"object","required":["label","value"],"title":"PrintedReference","description":"A printed order or document number and its label (DR25 §1C): raw text, never compared or\nlocated; association links a document to an order through it."},"ProcessingEstimate":{"properties":{"resource_profile_id":{"anyOf":[{"type":"string","enum":["compact-v1","standard-v1"]},{"type":"null"}],"title":"Resource Profile Id"},"input_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Input Fingerprint"},"estimated_credits":{"type":"string","title":"Estimated Credits"},"pricing_version":{"type":"string","title":"Pricing Version"},"available_credits":{"type":"string","title":"Available Credits"},"member":{"$ref":"#/components/schemas/MemberLimit"},"estimate_complete":{"type":"boolean","title":"Estimate Complete"}},"type":"object","required":["estimated_credits","pricing_version","available_credits","member","estimate_complete"],"title":"ProcessingEstimate","description":"The plan step's estimate. `estimate_complete` is false while a plan question is open: the\nestimate is then provisional, an upper bound of the answered plan's estimate (answers do not\nchange the steps quoted; reuse is not counted). Start stays refused until every question is\nanswered."},"ProcessingSummary":{"properties":{"state":{"type":"string","title":"State"},"latest_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Run Id"},"latest_run_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Run Status"},"latest_run_purpose":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Run Purpose"},"pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pause Reason"}},"type":"object","required":["state","latest_run_id","latest_run_status","latest_run_purpose","pause_reason"],"title":"ProcessingSummary"},"ProfileAction":{"properties":{"resource_profile":{"anyOf":[{"type":"string","const":"standard-v1"},{"type":"null"}],"title":"Resource Profile"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"expected_input_fingerprint":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Expected Input Fingerprint"},"expected_pricing_version":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Expected Pricing Version"}},"additionalProperties":false,"type":"object","required":["request_id"],"title":"ProfileAction"},"ProfileChoice":{"properties":{"resource_profile":{"anyOf":[{"type":"string","const":"standard-v1"},{"type":"null"}],"title":"Resource Profile"}},"additionalProperties":false,"type":"object","title":"ProfileChoice"},"PublishedExtraction":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"step_id":{"type":"string","format":"uuid","title":"Step Id"},"purpose":{"type":"string","const":"reconcile","title":"Purpose"},"schema_revision":{"type":"integer","title":"Schema Revision"},"result":{"$ref":"#/components/schemas/ExtractionArtifact"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","step_id","purpose","schema_revision","result","created_at"],"title":"PublishedExtraction"},"Purpose":{"properties":{"purpose":{"type":"string","const":"reconcile","title":"Purpose"}},"additionalProperties":false,"type":"object","required":["purpose"],"title":"Purpose"},"Question":{"properties":{"id":{"type":"string","title":"Id"},"field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Field Ids"},"kind":{"type":"string","enum":["currency","date_format","number_format","order_key","order_grouping","condition_constant","other"],"title":"Kind"},"prompt":{"type":"string","title":"Prompt"},"document_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Document Ids"}},"additionalProperties":false,"type":"object","required":["id","field_ids","kind","prompt"],"title":"Question"},"QuoteRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"price_id":{"type":"string","maxLength":200,"pattern":"^price_[A-Za-z0-9_]+$","title":"Price Id"}},"additionalProperties":false,"type":"object","required":["request_id","price_id"],"title":"QuoteRequest"},"QuoteView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order_id":{"type":"string","format":"uuid","title":"Order Id"},"test_mode":{"type":"boolean","const":true,"title":"Test Mode"},"kind":{"type":"string","enum":["upgrade","downgrade","cadence"],"title":"Kind"},"old_price_id":{"type":"string","title":"Old Price Id"},"new_price_id":{"type":"string","title":"New Price Id"},"target":{"$ref":"#/components/schemas/CatalogItem"},"paid_through":{"type":"string","format":"date-time","title":"Paid Through"},"effective_at":{"type":"string","format":"date-time","title":"Effective At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"supplemental_credits":{"type":"string","title":"Supplemental Credits"},"supplement_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Supplement Expires At"},"amount_due_minor":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Due Minor"},"currency":{"type":"string","title":"Currency"},"quote_fingerprint":{"type":"string","title":"Quote Fingerprint"},"requires_payment_verification":{"type":"boolean","const":true,"title":"Requires Payment Verification"}},"type":"object","required":["id","order_id","test_mode","kind","old_price_id","new_price_id","target","paid_through","effective_at","expires_at","supplemental_credits","supplement_expires_at","amount_due_minor","currency","quote_fingerprint","requires_payment_verification"],"title":"QuoteView"},"ReconciliationView":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"inputs_current":{"type":"boolean","title":"Inputs Current"},"status":{"type":"string","title":"Status"},"comparison_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparison Version Id"},"inventory_complete":{"type":"boolean","title":"Inventory Complete","default":false},"record_count":{"type":"integer","title":"Record Count","default":0},"context_records":{"items":{"$ref":"#/components/schemas/RecordRef"},"type":"array","title":"Context Records"},"unresolved":{"items":{"$ref":"#/components/schemas/PendingRecord"},"type":"array","title":"Unresolved"},"unresolved_documents":{"items":{"$ref":"#/components/schemas/PendingDocument"},"type":"array","title":"Unresolved Documents"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"algorithm":{"type":"string","title":"Algorithm","default":"order-lines-v1"}},"type":"object","required":["run_id","inputs_current","status"],"title":"ReconciliationView"},"Record":{"properties":{"id":{"type":"string","maxLength":100,"minLength":1,"title":"Id"},"scope":{"type":"string","enum":["document","record","line_item"],"title":"Scope","default":"record"},"page_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Page Ids"},"cells":{"items":{"$ref":"#/components/schemas/Cell"},"type":"array","maxItems":100,"title":"Cells"}},"additionalProperties":false,"type":"object","required":["id","page_ids","cells"],"title":"Record"},"RecordGroup":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"inputs_current":{"type":"boolean","title":"Inputs Current"},"scope":{"type":"string","const":"explicit_same_document_records","title":"Scope","default":"explicit_same_document_records"},"field_resolution":{"type":"string","const":"preserved_separate","title":"Field Resolution","default":"preserved_separate"},"member_refs":{"items":{"$ref":"#/components/schemas/RecordRef"},"type":"array","title":"Member Refs"},"members":{"items":{"$ref":"#/components/schemas/RecordItem"},"type":"array","title":"Members"}},"type":"object","required":["id","run_id","document_id","created_by","created_at","inputs_current","member_refs","members"],"title":"RecordGroup"},"RecordItem":{"properties":{"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"filename":{"type":"string","title":"Filename"},"record":{"$ref":"#/components/schemas/Record"},"pages":{"items":{"$ref":"#/components/schemas/Page"},"type":"array","title":"Pages"},"locations":{"items":{"$ref":"#/components/schemas/LocatedEvidence"},"type":"array","title":"Locations"}},"type":"object","required":["artifact_id","document_id","filename","record","pages","locations"],"title":"RecordItem"},"RecordPage":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"status":{"type":"string","title":"Status"},"scope":{"type":"string","const":"published_window_records","title":"Scope"},"inputs_current":{"type":"boolean","title":"Inputs Current"},"schema_revision":{"type":"integer","title":"Schema Revision"},"input_schema_fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","title":"Input Schema Fields"},"items":{"items":{"$ref":"#/components/schemas/RecordItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["run_id","status","scope","inputs_current","schema_revision","input_schema_fields","items","next_cursor"],"title":"RecordPage"},"RecordRef":{"properties":{"artifact_id":{"type":"string","format":"uuid","title":"Artifact Id"},"record_id":{"type":"string","maxLength":100,"minLength":1,"title":"Record Id"}},"additionalProperties":false,"type":"object","required":["artifact_id","record_id"],"title":"RecordRef"},"RecoveryRequest":{"properties":{"event_id":{"type":"string","maxLength":200,"pattern":"^evt_[A-Za-z0-9_-]+$","title":"Event Id"}},"additionalProperties":false,"type":"object","required":["event_id"],"title":"RecoveryRequest"},"ReportSummary":{"properties":{"state":{"type":"string","enum":["not_requested","current_snapshot","earlier_snapshot"],"title":"State"},"latest_export_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Export Id"},"comparison_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Comparison Version Id"},"review_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Review Revision"}},"type":"object","required":["state","latest_export_id","comparison_version_id","review_revision"],"title":"ReportSummary"},"ResolutionPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ResolutionView"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"ResolutionPage"},"ResolutionView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"group_id":{"type":"string","format":"uuid","title":"Group Id"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"version":{"type":"integer","title":"Version"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"inputs_current":{"type":"boolean","title":"Inputs Current"},"fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","title":"Fields"},"member_refs":{"items":{"$ref":"#/components/schemas/RecordRef"},"type":"array","title":"Member Refs"},"result":{"$ref":"#/components/schemas/ResolvedRecord"},"pages":{"items":{"$ref":"#/components/schemas/Page"},"type":"array","title":"Pages"}},"type":"object","required":["id","group_id","run_id","batch_id","document_id","version","created_by","created_at","inputs_current","fields","member_refs","result","pages"],"title":"ResolutionView"},"ResolveCase":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","minimum":0.0,"title":"Base Revision"},"action":{"type":"string","enum":["keep_hold","release"],"title":"Action"},"reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Reason"},"adjustments":{"items":{"$ref":"#/components/schemas/Adjustment"},"type":"array","maxItems":100,"title":"Adjustments"}},"additionalProperties":false,"type":"object","required":["request_id","base_revision","action","reason"],"title":"ResolveCase"},"ResolveRequest":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_version":{"type":"integer","minimum":0.0,"title":"Base Version"},"choices":{"items":{"$ref":"#/components/schemas/FieldChoice"},"type":"array","maxItems":100,"minItems":1,"title":"Choices"}},"additionalProperties":false,"type":"object","required":["request_id","base_version","choices"],"title":"ResolveRequest"},"ResolvedField":{"properties":{"field_id":{"type":"string","format":"uuid","title":"Field Id"},"chosen_ref":{"anyOf":[{"$ref":"#/components/schemas/RecordRef"},{"type":"null"}]},"observations":{"items":{"$ref":"#/components/schemas/CellObservation"},"type":"array","title":"Observations"}},"additionalProperties":false,"type":"object","required":["field_id","chosen_ref","observations"],"title":"ResolvedField"},"ResolvedRecord":{"properties":{"record":{"$ref":"#/components/schemas/CombinedRecord"},"fields":{"items":{"$ref":"#/components/schemas/ResolvedField"},"type":"array","title":"Fields"},"method":{"type":"string","title":"Method","default":"explicit-field-selection-v1"}},"additionalProperties":false,"type":"object","required":["record","fields"],"title":"ResolvedRecord"},"ResultView":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"purpose":{"type":"string","enum":["discover","reconcile"],"title":"Purpose"},"schema_revision":{"type":"integer","title":"Schema Revision"},"input_schema_fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","title":"Input Schema Fields"},"availability":{"type":"string","enum":["pending","partial","complete","history_only","unavailable"],"title":"Availability"},"scope":{"type":"string","enum":["sample_windows","batch_windows"],"title":"Scope"},"stage":{"type":"string","const":"extraction","title":"Stage"},"unresolved_documents":{"items":{"$ref":"#/components/schemas/UnresolvedDocument"},"type":"array","title":"Unresolved Documents"},"inputs_current":{"type":"boolean","title":"Inputs Current"},"status":{"type":"string","enum":["queued","running","paused","cancelling","cancelled","completed","failed"],"title":"Status"},"current":{"type":"boolean","title":"Current"},"artifacts":{"items":{"$ref":"#/components/schemas/PublishedExtraction"},"type":"array","title":"Artifacts"}},"type":"object","required":["run_id","batch_id","purpose","schema_revision","input_schema_fields","availability","scope","stage","unresolved_documents","inputs_current","status","current","artifacts"],"title":"ResultView"},"RetentionImpact":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"effective_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Effective At"},"due_files":{"type":"integer","title":"Due Files"},"due_batches":{"type":"integer","title":"Due Batches"},"next_deletion_on":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Deletion On"},"confirmation_required":{"type":"boolean","title":"Confirmation Required"}},"type":"object","required":["as_of","effective_at","due_files","due_batches","next_deletion_on","confirmation_required"],"title":"RetentionImpact","description":"What saving a proposed period and switch would do, read-only (the confirmation dialog)."},"RetryDelivery":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"failed_at":{"type":"string","format":"date-time","title":"Failed At"}},"additionalProperties":false,"type":"object","required":["request_id","failed_at"],"title":"RetryDelivery"},"RetryReceipt":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"delivery_status":{"type":"string","const":"queued","title":"Delivery Status","default":"queued"}},"type":"object","required":["id","request_id"],"title":"RetryReceipt"},"RetryRematch":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_version":{"type":"integer","minimum":0.0,"title":"Base Version"}},"additionalProperties":false,"type":"object","required":["request_id","base_version"],"title":"RetryRematch"},"ReviewAction":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","minimum":0.0,"title":"Base Revision"},"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"action":{"type":"string","enum":["accept_difference","dispute_difference","confirm_match","follow_up","reset"],"title":"Action"},"reason":{"type":"string","maxLength":2000,"title":"Reason","default":""}},"additionalProperties":false,"type":"object","required":["request_id","base_revision","association_id","field_id","action"],"title":"ReviewAction"},"ReviewEventPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ReviewEventView"},"type":"array","title":"Items"},"next_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Before"}},"additionalProperties":false,"type":"object","required":["items","next_before"],"title":"ReviewEventPage"},"ReviewEventView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"revision":{"type":"integer","title":"Revision"},"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"action":{"type":"string","enum":["accept_difference","dispute_difference","confirm_match","follow_up","reset"],"title":"Action"},"reason":{"type":"string","title":"Reason"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","title":"Created At"}},"additionalProperties":false,"type":"object","required":["id","revision","association_id","field_id","action","reason","created_by","created_at"],"title":"ReviewEventView"},"ReviewItem":{"properties":{"association_id":{"type":"string","format":"uuid","title":"Association Id"},"field_id":{"type":"string","format":"uuid","title":"Field Id"},"state":{"type":"string","enum":["pending","accepted","disputed","confirmed","follow_up","needs_review_again"],"title":"State"},"reason":{"type":"string","title":"Reason"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Event Id"},"inherited_from":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Inherited From"}},"additionalProperties":false,"type":"object","required":["association_id","field_id","state","reason"],"title":"ReviewItem"},"ReviewState":{"properties":{"open_count":{"type":"integer","minimum":0.0,"title":"Open Count"},"to_pair_count":{"type":"integer","minimum":0.0,"title":"To Pair Count"},"accepted_count":{"type":"integer","minimum":0.0,"title":"Accepted Count"},"consistent_count":{"type":"integer","minimum":0.0,"title":"Consistent Count"},"disputed_count":{"type":"integer","minimum":0.0,"title":"Disputed Count"},"version_id":{"type":"string","format":"uuid","title":"Version Id"},"writable":{"type":"boolean","title":"Writable"},"revision":{"type":"integer","title":"Revision"},"review_mode":{"type":"string","enum":["standard","strict"],"title":"Review Mode"},"items":{"items":{"$ref":"#/components/schemas/ReviewItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["open_count","to_pair_count","accepted_count","consistent_count","disputed_count","version_id","writable","revision","review_mode","items"],"title":"ReviewState"},"Revision":{"properties":{"base_revision":{"type":"integer","minimum":1.0,"title":"Base Revision"}},"type":"object","required":["base_revision"],"title":"Revision"},"Rule":{"properties":{"number_format":{"type":"string","enum":["auto","decimal_dot","decimal_comma","grouped_comma","grouped_dot"],"title":"Number Format","default":"auto"},"date_format":{"anyOf":[{"type":"string","enum":["ISO","DMY","MDY"]},{"type":"null"}],"title":"Date Format"},"aggregation":{"type":"string","enum":["none","sum"],"title":"Aggregation","default":"none"},"currency":{"anyOf":[{"$ref":"#/components/schemas/Condition"},{"type":"null"}]},"conditions":{"items":{"$ref":"#/components/schemas/Condition"},"type":"array","maxItems":10,"title":"Conditions","default":[]},"item":{"anyOf":[{"$ref":"#/components/schemas/FieldRef"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"Rule"},"RunCoverage":{"properties":{"semantic_completeness":{"type":"string","const":"not_assessed","title":"Semantic Completeness","default":"not_assessed"},"all_pages_covered_once":{"type":"boolean","title":"All Pages Covered Once"},"documents":{"items":{"$ref":"#/components/schemas/DocumentCoverage"},"type":"array","title":"Documents"},"unexpected_page_count":{"type":"integer","title":"Unexpected Page Count"},"run_id":{"type":"string","format":"uuid","title":"Run Id"},"status":{"type":"string","title":"Status"},"inputs_current":{"type":"boolean","title":"Inputs Current"},"scope":{"type":"string","const":"frozen_snapshot_published_windows","title":"Scope","default":"frozen_snapshot_published_windows"}},"type":"object","required":["all_pages_covered_once","documents","unexpected_page_count","run_id","status","inputs_current"],"title":"RunCoverage"},"RunHistory":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RunSummary"},"type":"array","title":"Items"},"latest_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Latest Run Id"},"active_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Active Run Id"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","latest_run_id","active_run_id","next_cursor"],"title":"RunHistory"},"RunSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"purpose":{"type":"string","enum":["discover","reconcile","rematch"],"title":"Purpose"},"status":{"type":"string","enum":["queued","running","paused","cancelling","cancelled","completed","failed"],"title":"Status"},"pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pause Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"schema_revision":{"type":"integer","title":"Schema Revision"},"estimated_credits":{"type":"string","title":"Estimated Credits"},"charged_credits":{"type":"string","title":"Charged Credits"},"pending_credits":{"type":"string","title":"Pending Credits"},"pricing_version":{"type":"string","title":"Pricing Version"},"step_count":{"type":"integer","title":"Step Count"},"completed_steps":{"type":"integer","title":"Completed Steps"},"failed_steps":{"type":"integer","title":"Failed Steps"},"artifact_count":{"type":"integer","title":"Artifact Count"},"reused_artifact_count":{"type":"integer","title":"Reused Artifact Count","default":0}},"type":"object","required":["id","batch_id","created_by","purpose","status","pause_reason","created_at","finished_at","schema_revision","estimated_credits","charged_credits","pending_credits","pricing_version","step_count","completed_steps","failed_steps","artifact_count"],"title":"RunSummary"},"RunView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"purpose":{"type":"string","enum":["discover","reconcile","rematch"],"title":"Purpose"},"status":{"type":"string","enum":["queued","running","paused","cancelling","cancelled","completed","failed"],"title":"Status"},"pause_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pause Reason"},"estimated_credits":{"type":"string","title":"Estimated Credits"},"charged_credits":{"type":"string","title":"Charged Credits"},"pending_credits":{"type":"string","title":"Pending Credits"},"pricing_version":{"type":"string","title":"Pricing Version"},"steps":{"items":{"$ref":"#/components/schemas/StepView"},"type":"array","title":"Steps"},"retry_of":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Retry Of"},"resource_profile_id":{"anyOf":[{"type":"string","enum":["compact-v1","standard-v1"]},{"type":"null"}],"title":"Resource Profile Id"},"resource_failure":{"anyOf":[{"type":"string","enum":["input_limit","output_limit"]},{"type":"null"}],"title":"Resource Failure"},"standard_retry_available":{"type":"boolean","title":"Standard Retry Available","default":false}},"type":"object","required":["id","batch_id","purpose","status","pause_reason","estimated_credits","charged_credits","pending_credits","pricing_version","steps"],"title":"RunView"},"SaveCorrections":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","minimum":0.0,"title":"Base Revision"},"corrections":{"items":{"$ref":"#/components/schemas/Correction"},"type":"array","maxItems":1000,"title":"Corrections"}},"additionalProperties":false,"type":"object","required":["request_id","base_revision","corrections"],"title":"SaveCorrections"},"SavedDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"latest_version":{"type":"integer","title":"Latest Version"},"latest_version_id":{"type":"string","format":"uuid","title":"Latest Version Id"},"revision":{"type":"integer","title":"Revision","default":1},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"archived_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Archived By"},"versions":{"items":{"$ref":"#/components/schemas/SavedVersion"},"type":"array","title":"Versions"}},"type":"object","required":["id","name","created_by","created_at","latest_version","latest_version_id","versions"],"title":"SavedDetail"},"SavedList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SavedSummary"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"SavedList"},"SavedSchemaChange":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","minimum":1.0,"title":"Base Revision"},"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archived"}},"additionalProperties":false,"type":"object","required":["request_id","base_revision"],"title":"SavedSchemaChange","description":"B11: rename and/or archive a template. The catalog row changes; versions never do."},"SavedSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"latest_version":{"type":"integer","title":"Latest Version"},"latest_version_id":{"type":"string","format":"uuid","title":"Latest Version Id"},"revision":{"type":"integer","title":"Revision","default":1},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"archived_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Archived By"}},"type":"object","required":["id","name","created_by","created_at","latest_version","latest_version_id"],"title":"SavedSummary"},"SavedVersion":{"properties":{"review_mode":{"type":"string","enum":["standard","strict"],"title":"Review Mode"},"matching_policy":{"anyOf":[{"$ref":"#/components/schemas/Policy"},{"type":"null"}]},"id":{"type":"string","format":"uuid","title":"Id"},"schema_id":{"type":"string","format":"uuid","title":"Schema Id"},"version":{"type":"integer","title":"Version"},"name":{"type":"string","title":"Name"},"fields":{"items":{"$ref":"#/components/schemas/SchemaField"},"type":"array","title":"Fields"},"comparison_rules":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object"},{"type":"null"}],"title":"Comparison Rules"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"based_on_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Based On Version Id"}},"type":"object","required":["review_mode","id","schema_id","version","name","fields","comparison_rules","created_by","created_at"],"title":"SavedVersion"},"SchemaField":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":2000,"minLength":1,"title":"Description"},"type":{"type":"string","enum":["text","identifier","number","money","date"],"title":"Type"},"scope":{"type":"string","enum":["document","record","line_item"],"title":"Scope","default":"record"},"comparison_enabled":{"type":"boolean","title":"Comparison Enabled","default":true}},"additionalProperties":false,"type":"object","required":["id","name","description","type"],"title":"SchemaField"},"ScopeApply":{"properties":{"field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"Field Ids"},"rules":{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object","maxProperties":100,"title":"Rules"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"preview_token":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Preview Token"}},"additionalProperties":false,"type":"object","required":["field_ids","rules","request_id","preview_token"],"title":"ScopeApply"},"ScopeField":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":2000,"minLength":1,"title":"Description"},"type":{"type":"string","enum":["text","identifier","number","money","date"],"title":"Type"},"scope":{"type":"string","enum":["document","record","line_item"],"title":"Scope","default":"record"},"comparison_enabled":{"type":"boolean","title":"Comparison Enabled","default":true},"reading_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Reading Counts"},"readings":{"items":{"$ref":"#/components/schemas/ScopeReading"},"type":"array","title":"Readings"},"roles":{"items":{"type":"string","enum":["matching_key","condition"]},"type":"array","title":"Roles"}},"additionalProperties":false,"type":"object","required":["id","name","description","type","reading_counts","readings","roles"],"title":"ScopeField"},"ScopeLabel":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"page_id":{"type":"string","title":"Page Id"}},"additionalProperties":false,"type":"object","required":["id","label","page_id"],"title":"ScopeLabel"},"ScopePreview":{"properties":{"version_id":{"type":"string","format":"uuid","title":"Version Id"},"preview_token":{"type":"string","title":"Preview Token"},"added_field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Added Field Ids"},"removed_field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Removed Field Ids"},"new_findings":{"type":"integer","title":"New Findings"},"new_open_findings":{"type":"integer","title":"New Open Findings"},"removed_open_findings":{"type":"integer","title":"Removed Open Findings"},"preserved_decisions":{"type":"integer","title":"Preserved Decisions"},"needs_review_again":{"type":"integer","title":"Needs Review Again"},"unpaired_records":{"type":"integer","title":"Unpaired Records"},"incomplete_documents":{"type":"integer","title":"Incomplete Documents"}},"additionalProperties":false,"type":"object","required":["version_id","preview_token","added_field_ids","removed_field_ids","new_findings","new_open_findings","removed_open_findings","preserved_decisions","needs_review_again","unpaired_records","incomplete_documents"],"title":"ScopePreview"},"ScopeReading":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"filename":{"type":"string","title":"Filename"},"page_number":{"type":"integer","title":"Page Number"},"status":{"type":"string","title":"Status"},"raw_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Text"},"truncated":{"type":"boolean","title":"Truncated"},"corrected":{"type":"boolean","title":"Corrected"}},"additionalProperties":false,"type":"object","required":["document_id","filename","page_number","status","raw_text","truncated","corrected"],"title":"ScopeReading"},"ScopeReceipt":{"properties":{"comparison":{"$ref":"#/components/schemas/ComparisonVersion"},"added_field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Added Field Ids"},"removed_field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Removed Field Ids"}},"additionalProperties":false,"type":"object","required":["comparison","added_field_ids","removed_field_ids"],"title":"ScopeReceipt"},"ScopeSeed":{"properties":{"field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"minItems":1,"title":"Field Ids"},"rules":{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object","maxProperties":100,"title":"Rules"}},"additionalProperties":false,"type":"object","required":["field_ids","rules"],"title":"ScopeSeed"},"ScopeState":{"properties":{"readings_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Readings Run Id"},"version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Version Id"},"version":{"type":"integer","title":"Version"},"fields":{"items":{"$ref":"#/components/schemas/ScopeField"},"type":"array","title":"Fields"},"rules":{"additionalProperties":{"$ref":"#/components/schemas/Rule"},"type":"object","title":"Rules"},"blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Reason"},"incomplete_documents":{"type":"integer","title":"Incomplete Documents"}},"additionalProperties":false,"type":"object","required":["readings_run_id","version_id","version","fields","rules","blocked_reason","incomplete_documents"],"title":"ScopeState"},"SegmentCounts":{"properties":{"all":{"type":"integer","title":"All"},"needs_you":{"type":"integer","title":"Needs You"},"processing":{"type":"integer","title":"Processing"},"done":{"type":"integer","title":"Done"}},"type":"object","required":["all","needs_you","processing","done"],"title":"SegmentCounts"},"SimulationRequest":{"properties":{"outcome":{"type":"string","enum":["paid","failed","cancelled"],"title":"Outcome"},"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"additionalProperties":false,"type":"object","required":["outcome","request_id"],"title":"SimulationRequest"},"SourceFormat":{"properties":{"number_format":{"anyOf":[{"type":"string","enum":["auto","decimal_dot","decimal_comma","grouped_comma","grouped_dot"]},{"type":"null"}],"title":"Number Format"},"date_format":{"anyOf":[{"type":"string","enum":["ISO","DMY","MDY"]},{"type":"null"}],"title":"Date Format"}},"additionalProperties":false,"type":"object","title":"SourceFormat"},"SourceGroup":{"properties":{"id":{"type":"string","maxLength":100,"minLength":1,"title":"Id"},"members":{"items":{"$ref":"#/components/schemas/RecordRef"},"type":"array","maxItems":1000,"title":"Members"},"relation":{"type":"string","enum":["single","split","resolved","absent"],"title":"Relation","default":"single"},"resolution_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resolution Id"},"document_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Document Id"},"formats":{"additionalProperties":{"$ref":"#/components/schemas/SourceFormat"},"type":"object","maxProperties":100,"title":"Formats"},"context_bindings":{"items":{"$ref":"#/components/schemas/ContextBinding"},"type":"array","maxItems":1000,"title":"Context Bindings","default":[]}},"additionalProperties":false,"type":"object","required":["id","members"],"title":"SourceGroup"},"SourceMapping":{"properties":{"field_id":{"type":"string","format":"uuid","title":"Field Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"description":{"type":"string","maxLength":2000,"minLength":1,"title":"Description"}},"additionalProperties":false,"type":"object","required":["field_id","document_id","description"],"title":"SourceMapping","description":"A field's read hint on one original document; never a reusable template definition."},"Start":{"properties":{"purpose":{"type":"string","const":"reconcile","title":"Purpose"},"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"additionalProperties":false,"type":"object","required":["purpose","request_id"],"title":"Start"},"StepView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"ordinal":{"type":"integer","title":"Ordinal"},"operation":{"type":"string","title":"Operation"},"status":{"type":"string","enum":["pending","running","completed","failed","cancelled"],"title":"Status"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"document_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Name"},"first_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First Page"},"last_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Page"},"no_model_call":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"No Model Call"},"failure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure"}},"type":"object","required":["id","ordinal","operation","status","result"],"title":"StepView"},"StorageInventoryView":{"properties":{"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"finished_at":{"type":"string","format":"date-time","title":"Finished At"},"listing_complete":{"type":"boolean","title":"Listing Complete"},"observed_objects":{"type":"integer","title":"Observed Objects"},"observed_bytes":{"type":"integer","title":"Observed Bytes"},"registered_versions_observed":{"type":"integer","title":"Registered Versions Observed"},"unpinned_upload_objects":{"type":"integer","title":"Unpinned Upload Objects"},"other_generations_of_registered_keys":{"type":"integer","title":"Other Generations Of Registered Keys"},"unregistered_objects":{"type":"integer","title":"Unregistered Objects"},"missing_registered_versions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Missing Registered Versions"},"skipped_entries":{"type":"integer","title":"Skipped Entries"},"registered_keys_outside_prefix":{"type":"integer","title":"Registered Keys Outside Prefix"},"full_inventory_complete":{"type":"boolean","title":"Full Inventory Complete","default":false},"limitations":{"items":{"type":"string"},"type":"array","title":"Limitations"}},"type":"object","required":["batch_id","started_at","finished_at","listing_complete","observed_objects","observed_bytes","registered_versions_observed","unpinned_upload_objects","other_generations_of_registered_keys","unregistered_objects","missing_registered_versions","skipped_entries","registered_keys_outside_prefix","limitations"],"title":"StorageInventoryView"},"StorageManifestView":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"registered_versions":{"type":"integer","title":"Registered Versions"},"observed_versions":{"type":"integer","title":"Observed Versions"},"listing_complete":{"type":"boolean","title":"Listing Complete"},"limitations":{"items":{"type":"string"},"type":"array","title":"Limitations"}},"type":"object","required":["job_id","registered_versions","observed_versions","listing_complete","limitations"],"title":"StorageManifestView"},"SubscriptionStatus":{"properties":{"order_id":{"type":"string","format":"uuid","title":"Order Id"},"test_mode":{"type":"boolean","title":"Test Mode"},"status":{"type":"string","title":"Status"},"renewal_cancelled":{"type":"boolean","title":"Renewal Cancelled"},"paid_through":{"type":"string","format":"date-time","title":"Paid Through"},"monthly_credits":{"type":"string","title":"Monthly Credits"},"cadence":{"type":"string","title":"Cadence"},"refund":{"type":"boolean","title":"Refund"}},"type":"object","required":["order_id","test_mode","status","renewal_cancelled","paid_through","monthly_credits","cadence","refund"],"title":"SubscriptionStatus"},"SupplementScope":{"properties":{"added_document_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Added Document Ids"},"confirmation_required":{"type":"boolean","title":"Confirmation Required"}},"additionalProperties":false,"type":"object","required":["added_document_ids","confirmation_required"],"title":"SupplementScope","description":"Files added after the plan was confirmed that no processing has read yet, rejected or\nfailed ones included (listed, never confirmed or processed). While `confirmation_required`,\nprocessing them is refused until the scope is confirmed (or the plan changed and confirmed\nagain); reusing the plan never accepts them implicitly."},"TestCatalog":{"properties":{"test_mode":{"type":"boolean","title":"Test Mode"},"items":{"items":{"$ref":"#/components/schemas/TestPrice"},"type":"array","title":"Items"}},"type":"object","required":["test_mode","items"],"title":"TestCatalog"},"TestPrice":{"properties":{"cadence":{"type":"string","title":"Cadence","default":"pack"},"price_id":{"type":"string","title":"Price Id"},"credits":{"type":"string","title":"Credits"},"currency":{"type":"string","title":"Currency"},"amount_minor":{"type":"integer","title":"Amount Minor"}},"type":"object","required":["price_id","credits","currency","amount_minor"],"title":"TestPrice"},"TrialAward":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"grant_id":{"type":"string","format":"uuid","title":"Grant Id"},"campaign_id":{"type":"string","title":"Campaign Id"},"credits":{"type":"string","title":"Credits"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","grant_id","campaign_id","credits","expires_at","created_at"],"title":"TrialAward"},"TrialClaim":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"campaign_id":{"type":"string","maxLength":100,"minLength":1,"title":"Campaign Id"},"policy_fingerprint":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Policy Fingerprint"}},"additionalProperties":false,"type":"object","required":["request_id","campaign_id","policy_fingerprint"],"title":"TrialClaim"},"TrialOffer":{"properties":{"configured":{"type":"boolean","title":"Configured"},"eligible":{"type":"boolean","title":"Eligible"},"policy":{"anyOf":[{"$ref":"#/components/schemas/TrialPolicy"},{"type":"null"}]},"policy_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Fingerprint"}},"type":"object","required":["configured","eligible"],"title":"TrialOffer"},"TrialPolicy":{"properties":{"campaign_id":{"type":"string","maxLength":100,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","title":"Campaign Id"},"credits":{"type":"string","maxLength":40,"title":"Credits"},"valid_days":{"type":"integer","maximum":36500.0,"minimum":1.0,"title":"Valid Days"},"scope":{"type":"string","enum":["user","workspace"],"title":"Scope"}},"additionalProperties":false,"type":"object","required":["campaign_id","credits","valid_days","scope"],"title":"TrialPolicy"},"UnreadLabel":{"properties":{"page_id":{"type":"string","maxLength":200,"minLength":1,"title":"Page Id"},"quote":{"type":"string","maxLength":4000,"minLength":1,"title":"Quote"},"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"type":"null"}],"title":"Bbox"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["text","identifier","number","money","date"],"title":"Type"},"scope":{"type":"string","enum":["document","record","line_item"],"title":"Scope"}},"additionalProperties":false,"type":"object","required":["page_id","quote","label","type","scope"],"title":"UnreadLabel","description":"A printed label no field of the plan reads, offered to add: not a field, not data."},"UnresolvedDocument":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["id","reason"],"title":"UnresolvedDocument"},"UpdateWorkspace":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"base_revision":{"type":"integer","minimum":1.0,"title":"Base Revision"},"request_id":{"type":"string","format":"uuid","title":"Request Id"}},"type":"object","required":["name","base_revision","request_id"],"title":"UpdateWorkspace"},"UploadReceipt":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"upload_url":{"type":"string","title":"Upload Url"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"expires_at":{"type":"integer","title":"Expires At"},"method":{"type":"string","title":"Method"}},"type":"object","required":["document_id","upload_url","headers","expires_at","method"],"title":"UploadReceipt"},"UseTemplate":{"properties":{"request_id":{"type":"string","format":"uuid","title":"Request Id"},"saved_schema_version_id":{"type":"string","format":"uuid","title":"Saved Schema Version Id"}},"additionalProperties":false,"type":"object","required":["request_id","saved_schema_version_id"],"title":"UseTemplate"},"UserResponse":{"properties":{"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["user_id"],"title":"UserResponse"},"ValueApply":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"correction":{"$ref":"#/components/schemas/Correction"},"request_id":{"type":"string","format":"uuid","title":"Request Id"},"base_revision":{"type":"integer","minimum":0.0,"title":"Base Revision"},"preview_token":{"type":"string","maxLength":64,"minLength":64,"title":"Preview Token"}},"additionalProperties":false,"type":"object","required":["run_id","correction","request_id","base_revision","preview_token"],"title":"ValueApply"},"ValueBinding":{"properties":{"quote":{"type":"string","maxLength":4000,"minLength":1,"title":"Quote"},"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"unit":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Unit"}},"additionalProperties":false,"type":"object","required":["quote"],"title":"ValueBinding"},"ValueCandidate":{"properties":{"page_id":{"type":"string","maxLength":200,"minLength":1,"title":"Page Id"},"quote":{"type":"string","maxLength":4000,"minLength":1,"title":"Quote"},"bbox":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":4,"minItems":4},{"type":"null"}],"title":"Bbox"},"raw_text":{"type":"string","maxLength":10000,"minLength":1,"title":"Raw Text"},"label":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Label"},"unit":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Unit"}},"additionalProperties":false,"type":"object","required":["page_id","quote","raw_text"],"title":"ValueCandidate"},"ValuePreview":{"properties":{"preview_token":{"type":"string","title":"Preview Token"},"draft_revision":{"type":"integer","title":"Draft Revision"},"next_revision":{"type":"integer","title":"Next Revision"},"draft_schema_compatible":{"type":"boolean","title":"Draft Schema Compatible"},"other_unapplied_count":{"type":"integer","title":"Other Unapplied Count"},"field_compared":{"type":"boolean","title":"Field Compared"},"original_cell":{"$ref":"#/components/schemas/Cell"},"effective_cell":{"$ref":"#/components/schemas/Cell"},"previous_correction":{"anyOf":[{"$ref":"#/components/schemas/Correction"},{"type":"null"}]},"latest_comparison":{"anyOf":[{"$ref":"#/components/schemas/LatestComparison"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["preview_token","draft_revision","next_revision","draft_schema_compatible","other_unapplied_count","field_compared","original_cell","effective_cell","previous_correction","latest_comparison"],"title":"ValuePreview"},"ValueSeed":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"correction":{"$ref":"#/components/schemas/Correction"}},"additionalProperties":false,"type":"object","required":["run_id","correction"],"title":"ValueSeed"},"WorkflowSummary":{"properties":{"processing":{"$ref":"#/components/schemas/ProcessingSummary"},"review":{"$ref":"#/components/schemas/HumanWorkSummary"},"report":{"$ref":"#/components/schemas/ReportSummary"}},"type":"object","required":["processing","review","report"],"title":"WorkflowSummary"},"Workspace":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"timezone":{"type":"string","title":"Timezone"},"revision":{"type":"integer","title":"Revision"}},"type":"object","required":["id","name","timezone","revision"],"title":"Workspace"},"WorkspaceExportList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkspaceExportSummary"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"WorkspaceExportList"},"WorkspaceExportSummary":{"properties":{"open_count":{"type":"integer","minimum":0.0,"title":"Open Count"},"to_pair_count":{"type":"integer","minimum":0.0,"title":"To Pair Count"},"accepted_count":{"type":"integer","minimum":0.0,"title":"Accepted Count"},"consistent_count":{"type":"integer","minimum":0.0,"title":"Consistent Count"},"disputed_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Disputed Count"},"id":{"type":"string","format":"uuid","title":"Id"},"version_id":{"type":"string","format":"uuid","title":"Version Id"},"review_revision":{"type":"integer","title":"Review Revision"},"renderer_version":{"type":"string","title":"Renderer Version"},"requested_formats":{"items":{"type":"string","enum":["xlsx","pdf"]},"type":"array","title":"Requested Formats"},"created_by":{"type":"string","format":"uuid","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"batch_id":{"type":"string","format":"uuid","title":"Batch Id"},"batch_name":{"type":"string","title":"Batch Name"}},"type":"object","required":["open_count","to_pair_count","accepted_count","consistent_count","disputed_count","id","version_id","review_revision","renderer_version","requested_formats","created_by","created_at","batch_id","batch_name"],"title":"WorkspaceExportSummary"},"WorkspaceList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WorkspaceWithRole"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items","next_cursor"],"title":"WorkspaceList"},"WorkspaceStorage":{"properties":{"storage_used_bytes":{"type":"integer","title":"Storage Used Bytes"},"storage_quota_bytes":{"type":"integer","title":"Storage Quota Bytes"}},"type":"object","required":["storage_used_bytes","storage_quota_bytes"],"title":"WorkspaceStorage"},"WorkspaceWithRole":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"timezone":{"type":"string","title":"Timezone"},"revision":{"type":"integer","title":"Revision"},"role":{"type":"string","enum":["admin","member"],"title":"Role"}},"type":"object","required":["id","name","timezone","revision","role"],"title":"WorkspaceWithRole"}}}}