{"openapi":"3.1.0","info":{"title":"AskUI Workspaces API","version":"0.2.15"},"paths":{"/api/v1/agent-executions":{"post":{"tags":["agent-executions"],"summary":"Create Agent Execution","operationId":"create_agent_execution_api_v1_agent_executions_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"agent_id","in":"query","required":true,"schema":{"type":"string","format":"uuid4","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_agent_execution_api_v1_agent_executions_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentExecution"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-executions"],"summary":"List Agent Executions","description":"List all agent executions matching the query parameters sorted anti-chronologically by when they were last updated (`updated_at`).","operationId":"list_agent_executions_api_v1_agent_executions_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"agent_execution_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid4"}},{"type":"null"}],"title":"Agent Execution Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid4"}},{"type":"null"}],"title":"Agent Id"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid4"}},{"type":"null"}],"title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["PENDING_INPUTS","PENDING_DATA_EXTRACTION","PENDING_REVIEW","CANCELED","CONFIRMED","DELIVERED_TO_DESTINATION"],"type":"string"}},{"type":"null"}],"title":"Status"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"const":"total_count","type":"string"}},{"type":"null"}],"description":"total_count: Include the total number of agent executions that match the query, only accurate up to 100.","title":"Expand"},"description":"total_count: Include the total number of agent executions that match the query, only accurate up to 100."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentExecutionsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent-executions/{agent_execution_id}":{"patch":{"tags":["agent-executions"],"summary":"Update Agent Execution","operationId":"update_agent_execution_api_v1_agent_executions__agent_execution_id__patch","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"agent_execution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Agent Execution Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentExecutionUpdateCommand"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentExecution"}}}},"404":{"description":"Agent execution not found"},"409":{"description":"Agent schema not set"},"422":{"description":"Schema validation error"},"400":{"description":"Could not deliver data to destination"}}}},"/api/v1/access-tokens":{"post":{"tags":["access-tokens"],"summary":"Create Access Token","operationId":"create_access_token_api_v1_access_tokens_post","security":[{"Bearer":[]},{"Basic":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubjectAccessTokenCommand"}}}},"responses":{"201":{"description":"Access token created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubjectAccessTokenResponseDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["access-tokens"],"summary":"List Access Tokens","operationId":"list_access_tokens_api_v1_access_tokens_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"subject_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Access tokens fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSubjectAccessTokensResponseDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/access-tokens/{token_id}":{"delete":{"tags":["access-tokens"],"summary":"Delete Access Token","operationId":"delete_access_token_api_v1_access_tokens__token_id__delete","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Token Id"}}],"responses":{"204":{"description":"Access token deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"404":{"description":"Access token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/access-tokens/lookup":{"post":{"tags":["access-tokens"],"summary":"Lookup Global Access Token ID","description":"Converts a sensitive global-level access token into its stable identifier (access_token_id). The access token can be base64 encoded (similar to Authorization header) or passed raw. This enables clients to reference tokens without transmitting sensitive values, e.g., when trying to delete the token or retrieve usage for the token.","operationId":"lookup_access_token_api_v1_access_tokens_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupAccessTokenCommand"}}},"required":true},"responses":{"200":{"description":"Access token ID lookup successful. Returns a stable, non-sensitive identifier for the provided access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupAccessTokenResponseDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"404":{"description":"Access token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"Bearer":[]},{"Basic":[]}]}},"/api/v1/auth/verification-email":{"post":{"tags":["auth"],"summary":"Send Verification Email","description":"Creates a job to send a verification email (only for users that have not verified their email yet) whose status can be retrieved using the `GET /auth/jobs/{job_id}` endpoint","operationId":"send_verification_email_api_v1_auth_verification_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendVerificationEmailCommand"}}},"required":true},"responses":{"200":{"description":"Email sent successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendVerificationEmailResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/jobs/{job_id}":{"get":{"tags":["auth"],"summary":"Get Job Status","operationId":"get_job_status_api_v1_auth_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Job status retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetJobResponse"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agents":{"get":{"tags":["agents"],"summary":"List Agents","description":"List all agents matching the query parameters sorted anti-chronologically by when they were last updated (`updated_at`).","operationId":"list_agents_api_v1_agents_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid4"}},{"type":"null"}],"title":"Agent Id"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid4"}},{"type":"null"}],"title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["ACTIVE","ARCHIVED"],"type":"string"}},{"type":"null"}],"title":"Status"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"const":"total_count","type":"string"}},{"type":"null"}],"description":"total_count: Include the total number of agents that match the query, only accurate up to 100.","title":"Expand"},"description":"total_count: Include the total number of agents that match the query, only accurate up to 100."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agents"],"summary":"Create Agent","operationId":"create_agent_api_v1_agents_post","security":[{"Bearer":[]},{"Basic":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateCommand"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"409":{"description":"Conflict"},"500":{"description":"Internal server error"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agents/{agent_id}":{"patch":{"tags":["agents"],"summary":"Update Agent","operationId":"update_agent_api_v1_agents__agent_id__patch","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdateCommand"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agents/templates":{"get":{"tags":["agents"],"summary":"List Agent Templates","description":"List all available agent templates.","operationId":"list_agent_templates_api_v1_agents_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAgentTemplatesResponse"}}}},"500":{"description":"Internal server error"}},"security":[{"Bearer":[]},{"Basic":[]}]}},"/api/v1/analytics/identify":{"post":{"tags":["analytics"],"summary":"Identify","operationId":"identify_api_v1_analytics_identify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifyCommand"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"Bearer":[]},{"Basic":[]}]}},"/api/v1/files":{"get":{"tags":["files"],"summary":"List Files","description":"List files.\n\n- To list files within a workspace, the `prefix` (query parameter) must start with `workspaces/{workspace_id}/`\n- Cannot list files across multiple workspaces, i.e., if the `prefix` does not start with `workspaces/{workspace_id}/`, it will return an empty list.","operationId":"list_files_api_v1_files_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"prefix","in":"query","required":false,"schema":{"type":"string","description":"Prefix (path) to filter the files by. For folders it should end with `/`. Note that it is currently not possible to list files across workspaces but only within one workspace, i.e., which means that the prefix should start with `workspaces/{workspace_id}/`.","default":"","title":"Prefix"},"description":"Prefix (path) to filter the files by. For folders it should end with `/`. Note that it is currently not possible to list files across workspaces but only within one workspace, i.e., which means that the prefix should start with `workspaces/{workspace_id}/`."},{"name":"delimiter","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Delimiter to group keys, e.g., `/` to group by folders, i.e., get files of the root folder or the folder identified by the prefix. If not provided, no folders are included in the response.","title":"Delimiter"},"description":"Delimiter to group keys, e.g., `/` to group by folders, i.e., get files of the root folder or the folder identified by the prefix. If not provided, no folders are included in the response."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of files to return per page","default":10,"title":"Limit"},"description":"Maximum number of files to return per page"},{"name":"continuation_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Continuation token to get the next page of results (cursor-based pagination)","title":"Continuation Token"},"description":"Continuation token to get the next page of results (cursor-based pagination)"},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"array","uniqueItems":true,"items":{"const":"url","type":"string"}},{"type":"null"}],"description":"Expand the response with the signed URL to the file","title":"Expand"},"description":"Expand the response with the signed URL to the file"}],"responses":{"200":{"description":"Files listed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesListResponseDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/{file_path}":{"put":{"tags":["files"],"summary":"Upload File","description":"Upload a file (max. 5 GB) to the specified path.\n\n- Specify the `Content-Type` header for accurate file type handling.\n- If `Content-Type` is omitted, the system will attempt to infer it.\n- For workspace-specific uploads, use path: `workspaces/{workspace_id}/...`\n- If a file with the same file path already exists, it will be overwritten.\n- If there are unsupported characters in the file path, they will be removed or replaced.\n- If the file path is longer than `1024` characters, the file path will be shortened starting from the end.\n- Set `strict=true` to fail the request if the file path would be modified during sanitization (e.g., if the file path contains unsupported characters or is too long).","operationId":"upload_file_api_v1_files__file_path__put","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"file_path","in":"path","required":true,"schema":{"type":"string","title":"File Path"}},{"name":"strict","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Strict"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_api_v1_files__file_path__put"}}}},"responses":{"201":{"description":"File uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadFileResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"413":{"description":"File too large (max. 5 GB)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"File path contains invalid characters or exceeds maximum length","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}}}},"delete":{"tags":["files"],"summary":"Delete File","description":"Delete a file at the specified path.\n\n- Deletes only one file with the given file path. Not bulk deletion.\n- If there is no file at the specified path, the operation will be a no-op, i.e., it will still return a 204 status code.","operationId":"delete_file_api_v1_files__file_path__delete","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"file_path","in":"path","required":true,"schema":{"type":"string","title":"File Path"}}],"responses":{"204":{"description":"File deleted successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"404":{"description":"File not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/signed-cookies":{"post":{"tags":["files"],"summary":"Set Signed Cookies","description":"Set http-only, secure (signed) cookies for accessing (only READ access) files via AWS CloudFront across all accessible workspaces. If no workspace id is provided, no cookies will be set.","operationId":"set_signed_cookies_api_v1_files_signed_cookies_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateSignedCookiesCommand"}}},"required":true},"responses":{"200":{"description":"Signed cookies set successfully","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"403":{"description":"Permission denied, e.g., if user has no access to workspace in the body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"Bearer":[]},{"Basic":[]}]}},"/api/v1/invites":{"get":{"tags":["invites"],"summary":"List User Invites","description":"Get all valid invites for the authenticated user","operationId":"list_user_invites_api_v1_invites_get","responses":{"200":{"description":"List of invites for the user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUserInvitesResponse"}}}},"500":{"description":"Internal server error"}},"security":[{"Bearer":[]},{"Basic":[]}]}},"/api/v1/runner-jobs/lease":{"post":{"tags":["runner-jobs"],"summary":"Lease","operationId":"lease_api_v1_runner_jobs_lease_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"runner_host","in":"query","required":true,"schema":{"$ref":"#/components/schemas/RunnerHost"}},{"name":"runner_id","in":"query","required":true,"schema":{"type":"string","title":"Runner Id"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workspace Id"}},{"name":"tags","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"default":[],"title":"Tags"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LeaseRunnerJobResponseDto"},{"type":"null"}],"title":"Response Lease Api V1 Runner Jobs Lease Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/runner-jobs/ping":{"post":{"tags":["runner-jobs"],"summary":"Ping","operationId":"ping_api_v1_runner_jobs_ping_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"ack","in":"query","required":true,"schema":{"type":"string","title":"Ack"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PingRunnerJobResponseDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/runner-jobs/complete":{"post":{"tags":["runner-jobs"],"summary":"Complete","operationId":"complete_api_v1_runner_jobs_complete_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"ack","in":"query","required":true,"schema":{"type":"string","title":"Ack"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteRunnerJobRequestDto"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tools/extract-data":{"post":{"tags":["tools"],"summary":"Extract Data","description":"Extract data from files using a provided schema. Depending on the number of files, their size and type, and the complexity of the schema, the extraction may fail or take a while (up to multiple minutes) to complete so don't time out too early. Try making the schema less complex and/or passing less and/or smaller files.","operationId":"extract_data_api_v1_tools_extract_data_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractDataCommand"}}},"required":true},"responses":{"200":{"description":"Data extracted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractDataResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"409":{"description":"Files not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Invalid input data or schema","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}}},"security":[{"Bearer":[]},{"Basic":[]}]}},"/api/v1/dashboard/usage":{"get":{"tags":["dashboard"],"summary":"Aggregate Usage Events","description":"List usage events sorted chronologically by timestamp. Events can be filtered by workspace, user, or access token.\n\nFilter combinations:\n- Multiple filters (e.g. workspace_id & user_id) use AND logic\n- Multiple values for same filter (e.g. workspace_id=123&workspace_id=456) use OR logic\n\nPagination:\n- Use starting_after with event IDs for cursor-based navigation\n- has_more indicates if more events exist beyond limit\n- total_count (optional) shows total matching events up to 100,000","operationId":"aggregate_usage_events_api_v1_dashboard_usage_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string","format":"uuid4"},"description":"Filter by workspace IDs. Must contain at least one ID.","title":"Workspace Ids"},"description":"Filter by workspace IDs. Must contain at least one ID."},{"name":"start_time","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Include events starting from this date (inclusive)","title":"Start Time"},"description":"Include events starting from this date (inclusive)"},{"name":"end_time","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Include events until this date (exclusive)","title":"End Time"},"description":"Include events until this date (exclusive)"},{"name":"user_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Filter by user IDs","title":"User Ids"},"description":"Filter by user IDs"}],"responses":{"200":{"description":"Usage events listed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageEventsAggregateResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/{user_id}/workspace-memberships":{"get":{"tags":["workspace-memberships"],"summary":"List Workspace Membership","operationId":"list_workspace_membership_api_v1_users__user_id__workspace_memberships_get","deprecated":true,"security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"const":"workspace","type":"string"},{"type":"null"}],"title":"Expand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/workspaces__use_cases__workspace_memberships__list_workspace_memberships__WorkspaceMembershipDto"},"title":"Response List Workspace Membership Api V1 Users  User Id  Workspace Memberships Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspace-memberships":{"post":{"tags":["workspace-memberships"],"summary":"Create Workspace Membership","operationId":"create_workspace_membership_api_v1_workspace_memberships_post","security":[{"Bearer":[]},{"Basic":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceMembershipRequestDto"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceMembershipResponseDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspace-memberships"],"summary":"List Workspace Memberships","operationId":"list_workspace_memberships_api_v1_workspace_memberships_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"User Id"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid4"}},{"type":"null"}],"title":"Workspace Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["user","workspace"],"type":"string"}},{"type":"null"}],"title":"Expand"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMembershipsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspace-memberships/{workspace_membership_id}":{"delete":{"tags":["workspace-memberships"],"summary":"Delete Workspace Membership","operationId":"delete_workspace_membership_api_v1_workspace_memberships__workspace_membership_id__delete","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Membership Id"}}],"responses":{"204":{"description":"Successful Response"},"409":{"description":"Orphaned Workspace Error","content":{"application/json":{"example":{"detail":[{"msg":"Cannot delete the last ROLE_WORKSPACE_OWNER of the workspace. Please, delete the workspace instead."}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces":{"post":{"tags":["workspaces"],"summary":"Create Workspace","operationId":"create_workspace_api_v1_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceRequestDto"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceResponseDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"Bearer":[]},{"Basic":[]}]}},"/api/v1/workspaces/{workspace_id}":{"patch":{"tags":["workspaces"],"summary":"Update Workspace Name","operationId":"update_workspace_name_api_v1_workspaces__workspace_id__patch","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"const":"workspaceMemberships","type":"string"},{"type":"null"}],"title":"Expand"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceNameRequestDto"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkspaceNameResponseDto"}}}},"404":{"description":"Workspace not found","content":{"application/json":{"example":{"detail":[{"msg":"Workspace not found"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Workspace","operationId":"delete_workspace_api_v1_workspaces__workspace_id__delete","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/access-tokens":{"post":{"tags":["access-tokens"],"summary":"Create Access Token","operationId":"create_access_token_api_v1_workspaces__workspace_id__access_tokens_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceAccessTokenRequestDto"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceAccessTokenResponseDto"}}}},"404":{"description":"Workspace membership not found","content":{"application/json":{"example":{"detail":[{"msg":"Workspace membership not found"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["access-tokens"],"summary":"List Access Tokens","operationId":"list_access_tokens_api_v1_workspaces__workspace_id__access_tokens_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ListAccessTokenResponseDto"},"title":"Response List Access Tokens Api V1 Workspaces  Workspace Id  Access Tokens Get"}}}},"404":{"description":"Workspace membership not found","content":{"application/json":{"example":{"detail":[{"msg":"Workspace membership not found"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/access-tokens/{token_id}":{"delete":{"tags":["access-tokens"],"summary":"Delete Access Token","operationId":"delete_access_token_api_v1_workspaces__workspace_id__access_tokens__token_id__delete","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}},{"name":"token_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Token Id"}}],"responses":{"204":{"description":"Successful Response"},"404":{"description":"Workspace membership not found","content":{"application/json":{"example":{"detail":[{"msg":"Workspace membership not found"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/access-tokens/lookup":{"post":{"tags":["access-tokens"],"summary":"Lookup Workspace Access Token ID","description":"Converts a sensitive workspace-level access token into its stable identifier (access_token_id) within the specified workspace. The access token can be base64 encoded (similar to Authorization header) or passed raw. This enables clients to reference tokens without transmitting sensitive values, e.g., when trying to delete the token or retrieve usage for the token.","operationId":"lookup_workspace_access_token_api_v1_workspaces__workspace_id__access_tokens_lookup_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupWorkspaceAccessTokenCommand"}}}},"responses":{"200":{"description":"Access token ID lookup successful. Returns a stable, non-sensitive identifier for the provided workspace access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupWorkspaceAccessTokenResponseDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"403":{"description":"Permission denied","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"404":{"description":"Access token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StringErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/billing/customer-portal-session":{"post":{"tags":["billing"],"summary":"Create Customer Portal Session","operationId":"create_customer_portal_session_api_v1_workspaces__workspace_id__billing_customer_portal_session_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerPortalSessionRequestDto"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerPortalSessionResponseDto"}}}},"404":{"description":"Billing details not found","content":{"application/json":{"example":{"detail":[{"msg":"Billing details not found"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/billing/subscription":{"get":{"tags":["billing"],"summary":"Get workspace subscription details","description":"Retrieves the subscription details for the workspace, including Stripe product information.","operationId":"get_workspace_subscription_api_v1_workspaces__workspace_id__billing_subscription_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSubscriptionResponseDto"}}}},"404":{"description":"Subscription not found","content":{"application/json":{"example":{"detail":[{"msg":"Subscription not found"}]}}}},"500":{"description":"Internal server error when retrieving subscription data"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/billing/prices":{"get":{"tags":["billing"],"summary":"List available subscription prices","description":"Returns the list of prices configured for checkout, fetched from Stripe.","operationId":"list_prices_api_v1_workspaces__workspace_id__billing_prices_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPricesResponseDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/billing/checkout":{"post":{"tags":["billing"],"summary":"Create a Stripe Checkout Session","description":"Creates a Checkout Session for a trial-only workspace to purchase a subscription plan. The workspace must not already have an active Stripe subscription.","operationId":"create_checkout_session_api_v1_workspaces__workspace_id__billing_checkout_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutSessionCommand"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutSessionResponseDto"}}}},"404":{"description":"Billing details not found","content":{"application/json":{"example":{"detail":[{"msg":"Billing details not found"}]}}}},"409":{"description":"Workspace already has an active Stripe subscription"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/runs":{"get":{"tags":["runs"],"summary":"List Runs","operationId":"list_runs_api_v1_workspaces__workspace_id__runs_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRunsResponseDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/schedules/{schedule_id}/suspend":{"post":{"tags":["schedules"],"summary":"Suspend Schedule","operationId":"suspend_schedule_api_v1_workspaces__workspace_id__schedules__schedule_id__suspend_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"schedule_id","in":"path","required":true,"schema":{"type":"string","title":"Schedule Id"}},{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/schedules":{"post":{"tags":["schedules"],"summary":"Create Schedule","operationId":"create_schedule_api_v1_workspaces__workspace_id__schedules_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScheduleRequestDto"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScheduleResponseDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/invites":{"post":{"tags":["invites"],"summary":"Create Invite","operationId":"create_invite_api_v1_workspaces__workspace_id__invites_post","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInviteCommand"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["invites"],"summary":"List Invites","operationId":"list_invites_api_v1_workspaces__workspace_id__invites_get","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInvitesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/invites/{invitation_id}":{"put":{"tags":["invites"],"summary":"Process Invite","operationId":"process_invite_api_v1_workspaces__workspace_id__invites__invitation_id__put","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}},{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Invitation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessWorkspaceInviteCommand"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["invites"],"summary":"Revoke Invite","operationId":"revoke_invite_api_v1_workspaces__workspace_id__invites__invitation_id__delete","security":[{"Bearer":[]},{"Basic":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Workspace Id"}},{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid4","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccessTokenResponseDto":{"properties":{"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiresat"}},"type":"object","required":["id","name"],"title":"AccessTokenResponseDto"},"Agent":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"name":{"type":"string","pattern":"^[a-zA-Z0-9]([a-zA-Z0-9-_. ]{0,62}[a-zA-Z0-9])?$","title":"Name","description":"The name of the agent. The name must only contain the following characters: a-z, A-Z, 0-9, -, _, and space. The name must not be empty. The name must start and end with a letter or a number. The name must not be longer than 64 characters."},"status":{"type":"string","enum":["ACTIVE","ARCHIVED"],"title":"Status"},"autoConfirm":{"type":"boolean","title":"Autoconfirm","description":"If true, the agent will automatically confirm the data extracted, i.e., no review is necessary."},"description":{"type":"string","maxLength":1024,"title":"Description","default":""},"emailTrigger":{"$ref":"#/components/schemas/EmailAgentTrigger"},"dataSchema":{"anyOf":[{"$ref":"#/components/schemas/JsonSchema"},{"type":"null"}],"description":"\n            The data schema describes the data to extract in form of a [JSON schema draft 2020-12](https://json-schema.org/draft/2020-12/release-notes). Use the [\"description\" keyword](https://json-schema.org/understanding-json-schema/reference/annotations) of each property to provide additional information about the field, e.g., the prompt for extraction from sources. \n        "},"dataDestinations":{"items":{"oneOf":[{"$ref":"#/components/schemas/DataDestinationAskUiWorkflow"},{"$ref":"#/components/schemas/DataDestinationWebhook"}],"discriminator":{"propertyName":"type","mapping":{"ASKUI_WORKFLOW":"#/components/schemas/DataDestinationAskUiWorkflow","WEBHOOK":"#/components/schemas/DataDestinationWebhook"}}},"type":"array","title":"Datadestinations"},"workspaceId":{"type":"string","format":"uuid4","title":"Workspaceid"},"folderPath":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folderpath"}},"type":"object","required":["name","status","autoConfirm","emailTrigger","dataDestinations","workspaceId"],"title":"Agent"},"AgentCreateCommand":{"properties":{"name":{"type":"string","pattern":"^[a-zA-Z0-9]([a-zA-Z0-9-_. ]{0,62}[a-zA-Z0-9])?$","title":"Name","description":"The name of the agent. The name must only contain the following characters: a-z, A-Z, 0-9, -, _, and space. The name must not be empty. The name must start and end with a letter or a number. The name must not be longer than 64 characters."},"description":{"type":"string","maxLength":1024,"title":"Description","default":""},"dataSchema":{"anyOf":[{"$ref":"#/components/schemas/JsonSchema"},{"type":"null"}],"description":"The JSON schema of the data that the agent is going to extract from documents uploaded. The schema must comply with Draft 2020-12. The schema (root) must be an object with at least one property. The size of the schema must not exceed 15 MB."},"autoConfirm":{"type":"boolean","title":"Autoconfirm","description":"If true, the agent will automatically confirm the data extracted, i.e., no review is necessary.","default":false},"dataDestinations":{"items":{"oneOf":[{"$ref":"#/components/schemas/DataDestinationAskUiWorkflowCreate"},{"$ref":"#/components/schemas/DataDestinationWebhookCreate"}],"discriminator":{"propertyName":"type","mapping":{"ASKUI_WORKFLOW":"#/components/schemas/DataDestinationAskUiWorkflowCreate","WEBHOOK":"#/components/schemas/DataDestinationWebhookCreate"}}},"type":"array","title":"Datadestinations"},"parentId":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Parentid","description":"The ID of an agent that this agent is created from, i.e., of the previous version of this agent. Parent is going to be archived as part of the creation of the new (active) agent."},"emailTrigger":{"$ref":"#/components/schemas/EmailAgentTriggerCreate"},"workspaceId":{"type":"string","format":"uuid4","title":"Workspaceid"},"templateId":{"type":"string","pattern":"^[a-zA-Z0-9-_.]{1,64}$","title":"Templateid","description":"The ID of the template to copy files from."}},"type":"object","required":["name","workspaceId","templateId"],"title":"AgentCreateCommand"},"AgentExecution":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"agentId":{"type":"string","format":"uuid4","title":"Agentid"},"workspaceId":{"type":"string","format":"uuid4","title":"Workspaceid"},"state":{"oneOf":[{"$ref":"#/components/schemas/AgentExecutionStatePendingInputs"},{"$ref":"#/components/schemas/AgentExecutionStatePendingDataExtraction"},{"$ref":"#/components/schemas/AgentExecutionStatePendingReview"},{"$ref":"#/components/schemas/AgentExecutionStateCanceled"},{"$ref":"#/components/schemas/AgentExecutionStateConfirmed"},{"$ref":"#/components/schemas/workspaces__domain__entities__AgentExecutionStateDeliveredToDestination"}],"title":"State","discriminator":{"propertyName":"status","mapping":{"CANCELED":"#/components/schemas/AgentExecutionStateCanceled","CONFIRMED":"#/components/schemas/AgentExecutionStateConfirmed","DELIVERED_TO_DESTINATION":"#/components/schemas/AgentExecutionStateDeliveredToDestination-Output","PENDING_DATA_EXTRACTION":"#/components/schemas/AgentExecutionStatePendingDataExtraction","PENDING_INPUTS":"#/components/schemas/AgentExecutionStatePendingInputs","PENDING_REVIEW":"#/components/schemas/AgentExecutionStatePendingReview"}}}},"type":"object","required":["agentId","workspaceId","state"],"title":"AgentExecution"},"AgentExecutionCancel":{"properties":{"status":{"type":"string","const":"CANCELED","title":"Status","default":"CANCELED"}},"type":"object","title":"AgentExecutionCancel"},"AgentExecutionConfirm":{"properties":{"status":{"type":"string","const":"CONFIRMED","title":"Status","default":"CONFIRMED"},"dataConfirmed":{"additionalProperties":true,"type":"object","minProperties":1,"title":"Dataconfirmed"}},"type":"object","required":["dataConfirmed"],"title":"AgentExecutionConfirm"},"AgentExecutionPendingReview":{"properties":{"status":{"type":"string","const":"PENDING_REVIEW","title":"Status","default":"PENDING_REVIEW"},"dataExtracted":{"additionalProperties":true,"type":"object","minProperties":1,"title":"Dataextracted"}},"type":"object","required":["dataExtracted"],"title":"AgentExecutionPendingReview"},"AgentExecutionStateCanceled":{"properties":{"status":{"type":"string","const":"CANCELED","title":"Status","description":"The agent execution was canceled by the user.","default":"CANCELED"},"dataExtracted":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Dataextracted"}},"type":"object","title":"AgentExecutionStateCanceled"},"AgentExecutionStateConfirmed":{"properties":{"status":{"type":"string","const":"CONFIRMED","title":"Status","description":"The user confirmed the extracted data.","default":"CONFIRMED"},"dataExtracted":{"additionalProperties":true,"type":"object","minProperties":1,"title":"Dataextracted"},"dataConfirmed":{"additionalProperties":true,"type":"object","minProperties":1,"title":"Dataconfirmed"}},"type":"object","required":["dataExtracted","dataConfirmed"],"title":"AgentExecutionStateConfirmed"},"AgentExecutionStatePendingDataExtraction":{"properties":{"status":{"type":"string","const":"PENDING_DATA_EXTRACTION","title":"Status","description":"The agent has all inputs at hand and is about to or already extracting data from inputs. An agent may stay in this state in failure cases, e.g., if data extraction fails.","default":"PENDING_DATA_EXTRACTION"}},"type":"object","title":"AgentExecutionStatePendingDataExtraction"},"AgentExecutionStatePendingInputs":{"properties":{"status":{"type":"string","const":"PENDING_INPUTS","title":"Status","description":"The agent is waiting for inputs, e.g., files to be uploaded. An agent may stay in this state in failure cases, e.g., if file upload fails.","default":"PENDING_INPUTS"}},"type":"object","title":"AgentExecutionStatePendingInputs"},"AgentExecutionStatePendingReview":{"properties":{"status":{"type":"string","const":"PENDING_REVIEW","title":"Status","description":"The agent is waiting for the user to review the extracted data. An agent may stay if the user never confirms the data or cancels the execution.","default":"PENDING_REVIEW"},"dataExtracted":{"additionalProperties":true,"type":"object","minProperties":1,"title":"Dataextracted"}},"type":"object","required":["dataExtracted"],"title":"AgentExecutionStatePendingReview"},"AgentExecutionUpdateCommand":{"properties":{"state":{"oneOf":[{"$ref":"#/components/schemas/AgentExecutionPendingReview"},{"$ref":"#/components/schemas/AgentExecutionCancel"},{"$ref":"#/components/schemas/AgentExecutionConfirm"},{"$ref":"#/components/schemas/workspaces__use_cases__agent_executions__update_agent_execution__AgentExecutionStateDeliveredToDestination"}],"title":"State","discriminator":{"propertyName":"status","mapping":{"CANCELED":"#/components/schemas/AgentExecutionCancel","CONFIRMED":"#/components/schemas/AgentExecutionConfirm","DELIVERED_TO_DESTINATION":"#/components/schemas/AgentExecutionStateDeliveredToDestination-Input","PENDING_REVIEW":"#/components/schemas/AgentExecutionPendingReview"}}}},"type":"object","required":["state"],"title":"AgentExecutionUpdateCommand"},"AgentExecutionsListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AgentExecution"},"type":"array","title":"Data"},"hasMore":{"type":"boolean","title":"Hasmore","description":"Whether there are more agent executions that match the query that were not included in this response.","default":false},"totalCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Totalcount","description":"The total number of agent executions that match the query, only accurate up to 100."}},"type":"object","required":["data"],"title":"AgentExecutionsListResponse"},"AgentTemplate":{"properties":{"id":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9-_.]{0,64}$","title":"Id"},"name":{"type":"string","pattern":"^[a-zA-Z0-9]([a-zA-Z0-9-_. ]{0,62}[a-zA-Z0-9])?$","title":"Name","description":"The name of the agent. The name must only contain the following characters: a-z, A-Z, 0-9, -, _, and space. The name must not be empty. The name must start and end with a letter or a number. The name must not be longer than 64 characters."},"description":{"type":"string","maxLength":1024,"title":"Description","default":""},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"lastModified":{"type":"string","format":"date-time","title":"Lastmodified"}},"type":"object","required":["id","name","url","lastModified"],"title":"AgentTemplate"},"AgentUpdateCommand":{"properties":{"name":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9]([a-zA-Z0-9-_. ]{0,62}[a-zA-Z0-9])?$","description":"The name of the agent. The name must only contain the following characters: a-z, A-Z, 0-9, -, _, and space. The name must not be empty. The name must start and end with a letter or a number. The name must not be longer than 64 characters."},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1024,"default":""},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string","enum":["ACTIVE","ARCHIVED"]},{"type":"null"}],"title":"Status"},"emailTrigger":{"anyOf":[{"$ref":"#/components/schemas/EmailAgentTriggerUpdate"},{"type":"null"}]},"autoConfirm":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Autoconfirm"}},"type":"object","title":"AgentUpdateCommand"},"AgentsListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Agent"},"type":"array","title":"Data"},"hasMore":{"type":"boolean","title":"Hasmore","description":"Whether there are more agents that match the query that were not included in this response.","default":false},"totalCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Totalcount","description":"The total number of agents that match the query, only accurate up to 100."}},"type":"object","required":["data"],"title":"AgentsListResponse"},"AggregationResult":{"properties":{"workspaceId":{"type":"string","title":"Workspaceid","description":"Workspace ID"},"userId":{"type":"string","title":"Userid","description":"User ID"},"date":{"type":"string","title":"Date","description":"Date in YYYY-MM-DD format"},"count":{"type":"integer","title":"Count","description":"Count of events"},"userEmail":{"type":"string","format":"email","title":"Useremail","description":"User's email address"}},"type":"object","required":["workspaceId","userId","date","count","userEmail"],"title":"AggregationResult"},"AskUiRunnerHost":{"type":"string","enum":["SELF","ASKUI"],"title":"AskUiRunnerHost"},"Body_create_agent_execution_api_v1_agent_executions_post":{"properties":{"input_files":{"items":{"type":"string","format":"binary"},"type":"array","minItems":1,"title":"Input Files","description":"Files to extract data from. Supported file extensions: {'.eml', '.webp', '.jpg', '.gif', '.jpeg', '.txt', '.pdf', '.png'}. Maximum total size: 100 MiB. We process the .eml files as text files, i.e., we don't process non-textual attachments and content properly. For that, extract them from the .eml files separating them into different files."}},"type":"object","required":["input_files"],"title":"Body_create_agent_execution_api_v1_agent_executions_post"},"Body_upload_file_api_v1_files__file_path__put":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_api_v1_files__file_path__put"},"CompleteRunnerJobRequestDto":{"properties":{"status":{"type":"string","enum":["CANCELED","FAILED","PASSED"],"title":"Status"}},"type":"object","required":["status"],"title":"CompleteRunnerJobRequestDto"},"CreateCheckoutSessionCommand":{"properties":{"priceId":{"type":"string","title":"Priceid"},"returnUrl":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Returnurl"}},"type":"object","required":["priceId","returnUrl"],"title":"CreateCheckoutSessionCommand"},"CreateCheckoutSessionResponseDto":{"properties":{"sessionUrl":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Sessionurl"}},"type":"object","required":["sessionUrl"],"title":"CreateCheckoutSessionResponseDto"},"CreateCustomerPortalSessionRequestDto":{"properties":{"returnUrl":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Returnurl"}},"type":"object","required":["returnUrl"],"title":"CreateCustomerPortalSessionRequestDto"},"CreateCustomerPortalSessionResponseDto":{"properties":{"sessionUrl":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Sessionurl"}},"type":"object","required":["sessionUrl"],"title":"CreateCustomerPortalSessionResponseDto"},"CreateInviteCommand":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"privilege":{"$ref":"#/components/schemas/WorkspacePrivilege"}},"type":"object","required":["email","privilege"],"title":"CreateInviteCommand"},"CreateScheduleRequestDto":{"properties":{"name":{"type":"string","maxLength":63,"minLength":1,"title":"Name","default":"Unnamed"},"host":{"$ref":"#/components/schemas/RunnerHost","default":"ASKUI"},"runner_ids":{"items":{"type":"string"},"type":"array","title":"Runner Ids"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"started_at":{"type":"string","format":"date-time","title":"Started At","description":"Timestamp after which the schedule starts. If not specified, the schedule starts immediately."},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"ended_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ended After","description":"Number of runs (more specifically, completions) after which the schedule ends, i.e., no more runs will be scheduled. If both ended_at and ended_after are specified, the schedule will end when either condition is met. If neither is specified, the schedule will run indefinitely."},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule","description":"Cron expression specifying the schedule. If not specified, the schedule will run once on when started_at is reached which is now by default. end_at and ended_after will be ignored if schedule is not specified."},"workflows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Workflows","description":"List of paths (not starting with '/' but relative to root of workspace) of workflows to be executed. Each string is a syntactically valid s3 object key or prefix. Cannot be empty. Strings starting with '.' will be ignored."},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"Arbitrary data to be stored with the schedule which is made available to the runner when executing AskUI workflows."}},"type":"object","title":"CreateScheduleRequestDto"},"CreateScheduleResponseDto":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/ScheduleStatus","default":"ACTIVE"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"ended_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ended After"},"run_template":{"$ref":"#/components/schemas/RunTemplate"},"runs_count":{"type":"integer","title":"Runs Count","default":0}},"type":"object","required":["name","started_at","run_template"],"title":"CreateScheduleResponseDto"},"CreateSubjectAccessTokenCommand":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiresat"}},"type":"object","required":["name"],"title":"CreateSubjectAccessTokenCommand"},"CreateSubjectAccessTokenResponseDto":{"properties":{"token":{"$ref":"#/components/schemas/SubjectAccessTokenResponseDto"},"tokenString":{"type":"string","title":"Tokenstring"}},"type":"object","required":["token","tokenString"],"title":"CreateSubjectAccessTokenResponseDto"},"CreateWorkspaceAccessTokenRequestDto":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiresat"}},"type":"object","required":["name"],"title":"CreateWorkspaceAccessTokenRequestDto"},"CreateWorkspaceAccessTokenResponseDto":{"properties":{"privateToken":{"$ref":"#/components/schemas/AccessTokenResponseDto"},"tokenString":{"type":"string","title":"Tokenstring"}},"type":"object","required":["privateToken","tokenString"],"title":"CreateWorkspaceAccessTokenResponseDto"},"CreateWorkspaceMembershipRequestDto":{"properties":{"userId":{"type":"string","title":"Userid"},"workspaceId":{"type":"string","format":"uuid4","title":"Workspaceid"},"privileges":{"items":{"$ref":"#/components/schemas/WorkspacePrivilege"},"type":"array","maxItems":1,"title":"Privileges"}},"type":"object","required":["userId","workspaceId"],"title":"CreateWorkspaceMembershipRequestDto"},"CreateWorkspaceMembershipResponseDto":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"userId":{"type":"string","title":"Userid"},"workspaceId":{"type":"string","format":"uuid4","title":"Workspaceid"},"privileges":{"items":{"$ref":"#/components/schemas/WorkspacePrivilege"},"type":"array","title":"Privileges"},"accessTokens":{"items":{"$ref":"#/components/schemas/WorkspaceAccessToken"},"type":"array","title":"Accesstokens","default":[]}},"type":"object","required":["userId","workspaceId","privileges"],"title":"CreateWorkspaceMembershipResponseDto"},"CreateWorkspaceRequestDto":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"firstMemberId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firstmemberid"},"billingAccountEmail":{"type":"string","format":"email","title":"Billingaccountemail"}},"type":"object","required":["name","billingAccountEmail"],"title":"CreateWorkspaceRequestDto"},"CreateWorkspaceResponseDto":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"name":{"type":"string","title":"Name"},"memberships":{"items":{"$ref":"#/components/schemas/workspaces__entrypoints__http__routers__workspaces__main__CreateWorkspaceResponseDto__WorkspaceMembershipDto"},"type":"array","title":"Memberships"}},"type":"object","required":["name","memberships"],"title":"CreateWorkspaceResponseDto"},"DataDestinationAskUiWorkflow":{"properties":{"type":{"type":"string","const":"ASKUI_WORKFLOW","title":"Type","default":"ASKUI_WORKFLOW"},"host":{"$ref":"#/components/schemas/AskUiRunnerHost"},"runnerTags":{"items":{"type":"string"},"type":"array","title":"Runnertags"},"workflows":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Workflows"}},"type":"object","required":["host","runnerTags","workflows"],"title":"DataDestinationAskUiWorkflow"},"DataDestinationAskUiWorkflowCreate":{"properties":{"type":{"type":"string","const":"ASKUI_WORKFLOW","title":"Type","default":"ASKUI_WORKFLOW"},"host":{"$ref":"#/components/schemas/AskUiRunnerHost","default":"ASKUI"},"runnerTags":{"items":{"type":"string"},"type":"array","title":"Runnertags"},"workflows":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Workflows"}},"type":"object","title":"DataDestinationAskUiWorkflowCreate"},"DataDestinationDeliveryAskUiWorkflow":{"properties":{"type":{"type":"string","const":"ASKUI_WORKFLOW","title":"Type","default":"ASKUI_WORKFLOW"},"scheduleId":{"type":"string","title":"Scheduleid"}},"type":"object","required":["scheduleId"],"title":"DataDestinationDeliveryAskUiWorkflow"},"DataDestinationDeliveryWebhook":{"properties":{"type":{"type":"string","const":"WEBHOOK","title":"Type","default":"WEBHOOK"},"response":{"$ref":"#/components/schemas/WebhookResponse"}},"type":"object","required":["response"],"title":"DataDestinationDeliveryWebhook"},"DataDestinationWebhook":{"properties":{"type":{"type":"string","const":"WEBHOOK","title":"Type","default":"WEBHOOK"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"}},"type":"object","required":["url","headers"],"title":"DataDestinationWebhook"},"DataDestinationWebhookCreate":{"properties":{"type":{"type":"string","const":"WEBHOOK","title":"Type","default":"WEBHOOK"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"}},"type":"object","required":["url"],"title":"DataDestinationWebhookCreate"},"EmailAgentTrigger":{"properties":{"active":{"type":"boolean","title":"Active","description":"If false, no emails can be send to trigger agent.","default":true},"allowedSenders":{"items":{"type":"string"},"type":"array","uniqueItems":true,"title":"Allowedsenders","description":"The email addresses that are allowed to send emails to trigger the agent. If empty, no emails can be send to trigger agent."},"email":{"type":"string","pattern":"^[a-zA-Z0-9-_.+]+@.*$","title":"Email","description":"The email address of the agent to send emails to to trigger the agent. The email address must be unique for each agent. The domain of the email address is fixed. The local part of the email address must be between 1 and 64 characters long and can only contain the following characters: a-z, A-Z, 0-9, -, _, . and +."}},"type":"object","required":["email"],"title":"EmailAgentTrigger"},"EmailAgentTriggerCreate":{"properties":{"active":{"type":"boolean","title":"Active","description":"If false, no emails can be send to trigger agent.","default":true},"allowedSenders":{"items":{"type":"string"},"type":"array","uniqueItems":true,"title":"Allowedsenders","description":"The email addresses that are allowed to send emails to trigger the agent. If empty, no emails can be send to trigger agent."},"localPart":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9-_.+]+$"},{"type":"null"}],"title":"Localpart","description":"Defaults to a unique email string if not provided."}},"type":"object","title":"EmailAgentTriggerCreate"},"EmailAgentTriggerUpdate":{"properties":{"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"allowedSenders":{"anyOf":[{"items":{"type":"string"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Allowedsenders"},"localPart":{"anyOf":[{"type":"string","pattern":"^[a-zA-Z0-9-_.+]+$"},{"type":"null"}],"title":"Localpart"}},"type":"object","title":"EmailAgentTriggerUpdate"},"ExtractDataCommand":{"properties":{"filePaths":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Filepaths","description":"List of file paths (or file path prefixes to be more specifically) to extract data from. If is no file at the specified paths or no files whose paths have the specified path as a prefix, the path is ignored. Only the following content types are supported: {'image/webp', 'image/png', 'text/plain', 'image/jpeg', 'message/rfc822', 'image/jpg', 'image/gif', 'application/pdf'}. Files of other content types are ignored. A maximum of 1 000 files can be passed to the extraction. IMPORTANT: A file path may match multiple files so the supported number of file paths may be lower."},"dataSchema":{"$ref":"#/components/schemas/JsonSchema"}},"type":"object","required":["filePaths","dataSchema"],"title":"ExtractDataCommand"},"ExtractDataResponse":{"properties":{"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["data"],"title":"ExtractDataResponse"},"FileDto":{"properties":{"type":{"type":"string","const":"file","title":"Type","default":"file"},"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path","description":"Path to the file starting"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Signed URL to the file with a 1 hour TTL"},"size":{"type":"integer","title":"Size","description":"Size of the file in bytes"},"lastModified":{"type":"string","format":"date-time","title":"Lastmodified"}},"type":"object","required":["name","path","size","lastModified"],"title":"FileDto"},"FilesListResponseDto":{"properties":{"data":{"items":{"oneOf":[{"$ref":"#/components/schemas/FileDto"},{"$ref":"#/components/schemas/FolderDto"}],"discriminator":{"propertyName":"type","mapping":{"file":"#/components/schemas/FileDto","folder":"#/components/schemas/FolderDto"}}},"type":"array","title":"Data"},"nextContinuationToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nextcontinuationtoken"}},"type":"object","required":["data"],"title":"FilesListResponseDto"},"FolderDto":{"properties":{"type":{"type":"string","const":"folder","title":"Type","default":"folder"},"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"}},"type":"object","required":["name","path"],"title":"FolderDto"},"GenerateSignedCookiesCommand":{"properties":{"workspaceId":{"anyOf":[{"type":"string","format":"uuid4"},{"type":"null"}],"title":"Workspaceid","description":"Must be set to access files within workspace"}},"type":"object","required":["workspaceId"],"title":"GenerateSignedCookiesCommand"},"GetJobResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status","description":"The status of the job. Can be `pending`, `completed` etc."}},"type":"object","required":["id","status"],"title":"GetJobResponse"},"GetSubscriptionResponseDto":{"properties":{"currentPeriodStart":{"type":"string","format":"date-time","title":"Currentperiodstart"},"currentPeriodEnd":{"type":"string","format":"date-time","title":"Currentperiodend"},"items":{"items":{"$ref":"#/components/schemas/SubscriptionItemDto"},"type":"array","title":"Items","default":[]},"isTrial":{"type":"boolean","title":"Istrial","default":false}},"type":"object","required":["currentPeriodStart","currentPeriodEnd"],"title":"GetSubscriptionResponseDto","description":"Simplified response DTO with only the requested fields"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdentifyCommand":{"properties":{"anonymousId":{"type":"string","format":"uuid4","title":"Anonymousid"},"traits":{"$ref":"#/components/schemas/UserTraits"}},"type":"object","required":["anonymousId","traits"],"title":"IdentifyCommand"},"InviteActionEnum":{"type":"string","enum":["accept","decline"],"title":"InviteActionEnum"},"InviteResponse":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"workspaceId":{"type":"string","format":"uuid4","title":"Workspaceid"},"inviterId":{"type":"string","title":"Inviterid"},"privileges":{"items":{"$ref":"#/components/schemas/WorkspacePrivilege"},"type":"array","title":"Privileges"},"status":{"$ref":"#/components/schemas/InviteStatus"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"expiresAt":{"type":"string","format":"date-time","title":"Expiresat"},"workspaceName":{"type":"string","title":"Workspacename"}},"type":"object","required":["id","email","workspaceId","inviterId","privileges","status","updatedAt","expiresAt","workspaceName"],"title":"InviteResponse"},"InviteStatus":{"type":"string","enum":["pending","accepted","declined","revoked","expired"],"title":"InviteStatus"},"JsonSchema":{"properties":{"title":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","title":"Title","default":"DataToExtract"},"description":{"type":"string","title":"Description","default":""},"type":{"type":"string","const":"object","title":"Type","default":"object"},"properties":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","minProperties":1,"title":"Properties"},"required":{"items":{"type":"string"},"type":"array","title":"Required"}},"type":"object","required":["properties"],"title":"JsonSchema"},"LeaseRunnerJobResponseDto":{"properties":{"id":{"type":"string","title":"Id"},"ack":{"type":"string","title":"Ack"},"status":{"$ref":"#/components/schemas/RunnerJobStatus"},"visible":{"type":"string","format":"date-time","title":"Visible"},"runner_id":{"type":"string","title":"Runner Id"},"tries":{"type":"integer","title":"Tries"},"data":{"$ref":"#/components/schemas/LeaseRunnerJobResponseDtoData"}},"type":"object","required":["id","ack","status","visible","runner_id","tries","data"],"title":"LeaseRunnerJobResponseDto"},"LeaseRunnerJobResponseDtoData":{"properties":{"credentials":{"$ref":"#/components/schemas/LeaseRunnerJobResponseDtoDataCredentials"},"workflows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Workflows"},"schedule_results_api_url":{"type":"string","title":"Schedule Results Api Url"},"results_api_url":{"type":"string","title":"Results Api Url"},"workflows_api_url":{"type":"string","title":"Workflows Api Url"},"inference_api_url":{"type":"string","title":"Inference Api Url"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["credentials","workflows","schedule_results_api_url","results_api_url","workflows_api_url","inference_api_url"],"title":"LeaseRunnerJobResponseDtoData"},"LeaseRunnerJobResponseDtoDataCredentials":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"access_token":{"type":"string","title":"Access Token"}},"type":"object","required":["workspace_id","access_token"],"title":"LeaseRunnerJobResponseDtoDataCredentials"},"ListAccessTokenResponseDto":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"name":{"type":"string","title":"Name"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiresat"}},"type":"object","required":["id","name","createdAt"],"title":"ListAccessTokenResponseDto"},"ListAgentTemplatesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AgentTemplate"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ListAgentTemplatesResponse"},"ListInvitesResponse":{"properties":{"invites":{"items":{"$ref":"#/components/schemas/InviteResponse"},"type":"array","title":"Invites"}},"type":"object","required":["invites"],"title":"ListInvitesResponse"},"ListPricesResponseDto":{"properties":{"prices":{"items":{"$ref":"#/components/schemas/PriceItemDto"},"type":"array","title":"Prices"}},"type":"object","required":["prices"],"title":"ListPricesResponseDto","description":"Response containing all available prices."},"ListRunsResponseDto":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RunResponseDto"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ListRunsResponseDto"},"ListSubjectAccessTokensResponseDto":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SubjectAccessTokenResponseDto"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ListSubjectAccessTokensResponseDto"},"ListUserInvitesResponse":{"properties":{"invites":{"items":{"$ref":"#/components/schemas/InviteResponse"},"type":"array","title":"Invites"}},"type":"object","required":["invites"],"title":"ListUserInvitesResponse"},"LookupAccessTokenCommand":{"properties":{"accessToken":{"type":"string","minLength":1,"title":"Accesstoken"}},"type":"object","required":["accessToken"],"title":"LookupAccessTokenCommand"},"LookupAccessTokenResponseDto":{"properties":{"accessTokenId":{"type":"string","format":"uuid4","title":"Accesstokenid"}},"type":"object","required":["accessTokenId"],"title":"LookupAccessTokenResponseDto"},"LookupWorkspaceAccessTokenCommand":{"properties":{"accessToken":{"type":"string","minLength":1,"title":"Accesstoken"}},"type":"object","required":["accessToken"],"title":"LookupWorkspaceAccessTokenCommand"},"LookupWorkspaceAccessTokenResponseDto":{"properties":{"accessTokenId":{"type":"string","format":"uuid4","title":"Accesstokenid"}},"type":"object","required":["accessTokenId"],"title":"LookupWorkspaceAccessTokenResponseDto"},"PingRunnerJobResponseDto":{"properties":{"visible":{"type":"string","format":"date-time","title":"Visible"},"cancel_job":{"type":"boolean","title":"Cancel Job"}},"type":"object","required":["visible","cancel_job"],"title":"PingRunnerJobResponseDto"},"PriceItemDto":{"properties":{"id":{"type":"string","title":"Id"},"productName":{"type":"string","title":"Productname"},"unitAmount":{"type":"integer","title":"Unitamount"},"currency":{"type":"string","title":"Currency"},"recurringInterval":{"type":"string","title":"Recurringinterval"},"recurringIntervalCount":{"type":"integer","title":"Recurringintervalcount"},"productAllowedUsage":{"type":"integer","title":"Productallowedusage"}},"type":"object","required":["id","productName","unitAmount","currency","recurringInterval","recurringIntervalCount","productAllowedUsage"],"title":"PriceItemDto","description":"Single price entry returned to the frontend."},"ProcessWorkspaceInviteCommand":{"properties":{"action":{"$ref":"#/components/schemas/InviteActionEnum"}},"type":"object","required":["action"],"title":"ProcessWorkspaceInviteCommand"},"RunResponseDto":{"properties":{"version":{"type":"string","title":"Version"},"id":{"type":"string","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/RunStatus","default":"UPCOMING"},"to_be_started_at":{"type":"string","format":"date-time","title":"To Be Started At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"schedule_id":{"type":"string","title":"Schedule Id"},"template":{"$ref":"#/components/schemas/RunTemplate"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"no":{"type":"integer","title":"No"},"schedule":{"$ref":"#/components/schemas/ScheduleReponseDto"}},"type":"object","required":["name","to_be_started_at","schedule_id","template","no","schedule"],"title":"RunResponseDto"},"RunStatus":{"type":"string","enum":["UPCOMING","PENDING","RUNNING","SKIPPED","SKIPPED_NOTHING_TO_RUN","PASSED_NOT_YET_REPORTED","FAILED_NOT_YET_REPORTED","PASSED","FAILED","CANCELED","SUSPENDED"],"title":"RunStatus"},"RunTemplate":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"workflows":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Workflows"},"runner_assignment":{"$ref":"#/components/schemas/RunnerAssignment"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["workspace_id","runner_assignment"],"title":"RunTemplate"},"RunnerAssignment":{"properties":{"ids":{"items":{"type":"string"},"type":"array","title":"Ids"},"host":{"$ref":"#/components/schemas/RunnerHost"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["host"],"title":"RunnerAssignment"},"RunnerHost":{"type":"string","enum":["SELF","ASKUI"],"title":"RunnerHost"},"RunnerJobStatus":{"type":"string","enum":["PENDING","RUNNING","PASSED","FAILED","CANCELED","MAX_RETRIES_EXCEEDED"],"title":"RunnerJobStatus"},"ScheduleReponseDto":{"properties":{"version":{"type":"string","title":"Version"},"id":{"type":"string","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/ScheduleStatus","default":"ACTIVE"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"schedule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule"},"ended_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ended After"},"run_template":{"$ref":"#/components/schemas/RunTemplate"},"runs_count":{"type":"integer","title":"Runs Count","default":0},"next_run_to_be_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Run To Be Started At"}},"type":"object","required":["name","started_at","run_template"],"title":"ScheduleReponseDto"},"ScheduleStatus":{"type":"string","enum":["ACTIVE","SUSPENDED","ENDED"],"title":"ScheduleStatus"},"SendVerificationEmailCommand":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"SendVerificationEmailCommand"},"SendVerificationEmailResponse":{"properties":{"jobId":{"type":"string","title":"Jobid"},"jobStatus":{"type":"string","title":"Jobstatus"}},"type":"object","required":["jobId","jobStatus"],"title":"SendVerificationEmailResponse"},"StringErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"StringErrorResponse"},"SubjectAccessTokenResponseDto":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"name":{"type":"string","title":"Name"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expiresat"},"creatorId":{"type":"string","title":"Creatorid"}},"type":"object","required":["name","expiresAt","creatorId"],"title":"SubjectAccessTokenResponseDto"},"SubscriptionItemDto":{"properties":{"productAllowedUsage":{"type":"integer","title":"Productallowedusage"}},"type":"object","required":["productAllowedUsage"],"title":"SubscriptionItemDto","description":"Subscription item with only the requested fields"},"UpdateWorkspaceNameRequestDto":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"UpdateWorkspaceNameRequestDto"},"UpdateWorkspaceNameResponseDto":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"name":{"type":"string","title":"Name"},"memberships":{"anyOf":[{"items":{"$ref":"#/components/schemas/workspaces__entrypoints__http__routers__workspaces__main__UpdateWorkspaceNameResponseDto__WorkspaceMembershipDto"},"type":"array"},{"type":"null"}],"title":"Memberships"}},"type":"object","required":["name","memberships"],"title":"UpdateWorkspaceNameResponseDto"},"UploadFileResponse":{"properties":{"filePath":{"type":"string","title":"Filepath"},"contentType":{"type":"string","title":"Contenttype"}},"type":"object","required":["filePath","contentType"],"title":"UploadFileResponse"},"UsageEventsAggregateResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AggregationResult"},"type":"array","title":"Data","description":"Aggregated usage data"}},"type":"object","required":["data"],"title":"UsageEventsAggregateResponse"},"UserDto":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"name":{"type":"string","title":"Name"},"picture":{"type":"string","minLength":1,"format":"uri","title":"Picture"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"emailVerified":{"type":"boolean","title":"Emailverified"}},"type":"object","required":["id","email","name","picture","updatedAt","createdAt","emailVerified"],"title":"UserDto"},"UserTraits":{"properties":{},"additionalProperties":true,"type":"object","title":"UserTraits","description":"Type for user traits sent to Segment."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WebhookResponse":{"properties":{"statusCode":{"type":"integer","title":"Statuscode"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"body":{"type":"string","title":"Body"}},"type":"object","required":["statusCode","headers","body"],"title":"WebhookResponse"},"WorkspaceAccessToken":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"name":{"type":"string","title":"Name"},"hash":{"type":"string","title":"Hash"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["name","hash","expires_at"],"title":"WorkspaceAccessToken"},"WorkspaceDto":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"WorkspaceDto"},"WorkspaceMembershipsListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/workspaces__use_cases__workspace_memberships__list_workspace_memberships__WorkspaceMembershipDto"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"WorkspaceMembershipsListResponse"},"WorkspacePrivilege":{"type":"string","enum":["ROLE_WORKSPACE_OWNER","ROLE_WORKSPACE_ADMIN","ROLE_WORKSPACE_MEMBER"],"title":"WorkspacePrivilege"},"workspaces__domain__entities__AgentExecutionStateDeliveredToDestination":{"properties":{"status":{"type":"string","const":"DELIVERED_TO_DESTINATION","title":"Status","description":"The extracted data was successfully delivered to the destination(s), e.g., an AskUI workflow invoked with the data.","default":"DELIVERED_TO_DESTINATION"},"dataExtracted":{"additionalProperties":true,"type":"object","title":"Dataextracted"},"dataConfirmed":{"additionalProperties":true,"type":"object","title":"Dataconfirmed"},"deliveries":{"items":{"oneOf":[{"$ref":"#/components/schemas/DataDestinationDeliveryAskUiWorkflow"},{"$ref":"#/components/schemas/DataDestinationDeliveryWebhook"}],"discriminator":{"propertyName":"type","mapping":{"ASKUI_WORKFLOW":"#/components/schemas/DataDestinationDeliveryAskUiWorkflow","WEBHOOK":"#/components/schemas/DataDestinationDeliveryWebhook"}}},"type":"array","title":"Deliveries"}},"type":"object","required":["dataExtracted","dataConfirmed"],"title":"AgentExecutionStateDeliveredToDestination"},"workspaces__entrypoints__http__routers__workspaces__main__CreateWorkspaceResponseDto__WorkspaceMembershipDto":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"userId":{"type":"string","title":"Userid"},"workspaceId":{"type":"string","format":"uuid4","title":"Workspaceid"},"privileges":{"items":{"$ref":"#/components/schemas/WorkspacePrivilege"},"type":"array","title":"Privileges"},"accessTokens":{"items":{"$ref":"#/components/schemas/WorkspaceAccessToken"},"type":"array","title":"Accesstokens","default":[]}},"type":"object","required":["userId","workspaceId","privileges"],"title":"WorkspaceMembershipDto"},"workspaces__entrypoints__http__routers__workspaces__main__UpdateWorkspaceNameResponseDto__WorkspaceMembershipDto":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"userId":{"type":"string","title":"Userid"},"workspaceId":{"type":"string","format":"uuid4","title":"Workspaceid"},"privileges":{"items":{"$ref":"#/components/schemas/WorkspacePrivilege"},"type":"array","title":"Privileges"}},"type":"object","required":["userId","workspaceId","privileges"],"title":"WorkspaceMembershipDto"},"workspaces__use_cases__agent_executions__update_agent_execution__AgentExecutionStateDeliveredToDestination":{"properties":{"status":{"type":"string","const":"DELIVERED_TO_DESTINATION","title":"Status","default":"DELIVERED_TO_DESTINATION"},"deliveries":{"items":{"oneOf":[{"$ref":"#/components/schemas/DataDestinationDeliveryAskUiWorkflow"},{"$ref":"#/components/schemas/DataDestinationDeliveryWebhook"}],"discriminator":{"propertyName":"type","mapping":{"ASKUI_WORKFLOW":"#/components/schemas/DataDestinationDeliveryAskUiWorkflow","WEBHOOK":"#/components/schemas/DataDestinationDeliveryWebhook"}}},"type":"array","title":"Deliveries"}},"type":"object","title":"AgentExecutionStateDeliveredToDestination"},"workspaces__use_cases__workspace_memberships__list_workspace_memberships__WorkspaceMembershipDto":{"properties":{"id":{"type":"string","format":"uuid4","title":"Id"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"},"privileges":{"items":{"$ref":"#/components/schemas/WorkspacePrivilege"},"type":"array","title":"Privileges"},"user":{"anyOf":[{"$ref":"#/components/schemas/UserDto"},{"type":"null"}]},"userId":{"type":"string","title":"Userid"},"workspace":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceDto"},{"type":"null"}]},"workspaceId":{"type":"string","format":"uuid4","title":"Workspaceid"}},"type":"object","required":["privileges","userId","workspaceId"],"title":"WorkspaceMembershipDto"}},"securitySchemes":{"Bearer":{"type":"http","scheme":"bearer"},"Basic":{"type":"apiKey","in":"header","name":"Authorization"}}}}