{"openapi":"3.1.0","info":{"title":"ds-protogalaxy","version":"0.1.0"},"paths":{"/v1/jobs":{"get":{"tags":["jobs"],"summary":"List Jobs","operationId":"list_jobs_v1_jobs_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","operationId":"get_job_v1_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/start":{"post":{"tags":["jobs"],"summary":"Start Job","operationId":"start_job_v1_jobs__job_id__start_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/review":{"post":{"tags":["jobs"],"summary":"Mark Job Reviewed","description":"Acknowledge a completed / failed job so it stops surfacing in the chip.\nIdempotent; re-posting preserves the original ``reviewed_at``.","operationId":"mark_job_reviewed_v1_jobs__job_id__review_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/cancel":{"post":{"tags":["jobs"],"summary":"Cancel Job","operationId":"cancel_job_v1_jobs__job_id__cancel_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/{job_id}/events":{"get":{"tags":["jobs"],"summary":"Stream Events","operationId":"stream_events_v1_jobs__job_id__events_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"last_event_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Last Event Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/documents":{"post":{"tags":["cde-documents"],"summary":"Prepare Uploads","description":"Mint a signed upload URL and create the MySQL row for each file in the\nrequest. The client then PUTs to ``signed_url`` directly from the browser.\nMirrors ``POST /cde/v2/documents`` on the legacy service.","operationId":"prepare_uploads_v1_cde_documents_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/documents/{cde_id}":{"get":{"tags":["cde-documents"],"summary":"Get Cde Signed Download Url","description":"Return a short-lived signed download URL for the given CDE document.","operationId":"get_cde_signed_download_url_v1_cde_documents__cde_id__get","parameters":[{"name":"cde_id","in":"path","required":true,"schema":{"type":"integer","title":"Cde Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedDownloadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/documents/rename-by-series-id":{"post":{"tags":["cde-documents"],"summary":"Rename By Series Id","operationId":"rename_by_series_id_v1_cde_documents_rename_by_series_id_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameBySeriesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameBySeriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/documents/{cde_id}/type":{"put":{"tags":["cde-documents"],"summary":"Update Cde Type","description":"Set the document's ``cde_type_id``. Mirrors legacy ds-api shape.\n\nGated (POR-93): builders as before; a portal caller must name the project\nand may only de-register (``ds-cde-upload``) a document their party\nregistered, in a folder their party can write to. Registering goes through\n``POST /v1/cde/bulk-promote-jobs``.","operationId":"update_cde_type_v1_cde_documents__cde_id__type_put","parameters":[{"name":"cde_id","in":"path","required":true,"schema":{"type":"integer","title":"Cde Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTypeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTypeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/documents/{cde_id}/metadata":{"put":{"tags":["cde-documents"],"summary":"Update Cde Metadata","description":"Upsert one ``(metadata_key, metadata_value)`` pair. Mirrors legacy.\n\nGated (POR-93): builders as before; a portal caller must name the project,\nthe document must sit in a folder their party can write to, and the key\nmust be one a portal may write — register fields on a registered document,\nthe type's own non-register keys otherwise, ``registered_by_company`` never.","operationId":"update_cde_metadata_v1_cde_documents__cde_id__metadata_put","parameters":[{"name":"cde_id","in":"path","required":true,"schema":{"type":"integer","title":"Cde Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMetadataRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/documents/archive-by-series-id":{"post":{"tags":["cde-documents"],"summary":"Archive By Series Id","operationId":"archive_by_series_id_v1_cde_documents_archive_by_series_id_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveBySeriesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveBySeriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/push-to-site":{"post":{"tags":["cde-push-to-site"],"summary":"Push To Site","operationId":"push_to_site_v1_cde_push_to_site_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToSiteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushToSiteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/types":{"get":{"tags":["cde-types"],"summary":"List Cde Types","operationId":"list_cde_types_v1_cde_types_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"cde_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cde Type Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CdeTypeResponse"},"title":"Response List Cde Types V1 Cde Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/split-jobs":{"post":{"tags":["cde-split-jobs"],"summary":"Create Split Job","operationId":"create_split_job_v1_cde_split_jobs_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSplitJobRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSplitJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/bulk-metadata-jobs":{"post":{"tags":["cde-bulk-metadata-jobs"],"summary":"Create Bulk Metadata Job","operationId":"create_bulk_metadata_job_v1_cde_bulk_metadata_jobs_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkMetadataJobRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkMetadataJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/bulk-promote-jobs":{"post":{"tags":["cde-bulk-promote-jobs"],"summary":"Create Bulk Promote Job","operationId":"create_bulk_promote_job_v1_cde_bulk_promote_jobs_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkPromoteJobRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkPromoteJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/bulk-promote-jobs/doc-number-check":{"post":{"tags":["cde-bulk-promote-jobs"],"summary":"Check Doc Numbers","operationId":"check_doc_numbers_v1_cde_bulk_promote_jobs_doc_number_check_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocNumberCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocNumberCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/bulk-revisions":{"post":{"tags":["cde-bulk-revisions"],"summary":"Create Bulk Revisions Job","description":"Mint upload URLs and create the job for files the browser uploads.\n\nGated before any URL is minted or job created (POR-89): a builder or\nsuperuser passes as before, with nothing about their items inspected; a\nclient portal user passes only with Document Control and only into\nfolders their party can write to (``replace``: the series' folder), with\nno Unsorted fallback; anyone else gets a 403.","operationId":"create_bulk_revisions_job_v1_cde_bulk_revisions_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkRevisionsJobRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkRevisionsJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/bulk-revisions/register-from-attachments":{"post":{"tags":["cde-bulk-revisions"],"summary":"Register From Attachments","description":"Register attachments that are already stored, without moving their bytes\n(CDE-250).\n\nThe sibling route above mints a signed upload URL per item and waits for the\nbrowser to PUT the file. An attachment that came in on an email or a reply,\nor that the notice itself carries (CDE-293), is already in GCS, so there is\nnothing to upload: this points the job's ``source_blob`` straight at the\nstored object. ``BulkRevisionsHandler`` downloads from\n``source_bucket``/``source_blob`` either way, so its ``register`` branch runs\nunchanged — the tmp-blob convention belongs to the route, not the handler.\n\nThat is also why the response carries no upload targets.\n\nAn email attachment Make ingested is already a CDE document (CDE-340): its\nitem carries ``source_cde_id`` instead of a blob, and the job acts on that\ndocument — ``register`` promotes it in place, ``replace`` adds its bytes as\nthe next revision of the chosen series and then archives it, ``new`` moves\nit into the folder. Whether it may be filed is decided here, before the job\nexists: 404 when it is not in this workspace and project, 409 when it is\nalready registered or archived, 415 for a non-PDF bound for the register,\nand 400 when two items name the same document.\n\nPortal callers are refused with a 403 (POR-88) unless they are a client\nwith Document Control on this project (POR-89), and then only for\nattachments their company can see — a notice's or a reply's attachment on\na notice their company is a party to, never a Project Inbox email — and\nonly into folders their party can write to. Every item is checked, so one\nrefused item refuses the request. The worker writes as the caller,\nstraight into MySQL, so this is where ds-api's portal upload rule is\napplied. The gate runs before any attachment is read and before a job\nexists; a portal filer's job is stamped with their party so the worker\nre-checks the folders when it runs.","operationId":"register_from_attachments_v1_cde_bulk_revisions_register_from_attachments_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterFromAttachmentsRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterFromAttachmentsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/register-revisions/reorder":{"post":{"tags":["cde-register-revisions"],"summary":"Reorder Revisions","operationId":"reorder_revisions_v1_cde_register_revisions_reorder_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderRevisionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderRevisionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/copy-jobs/preflight":{"post":{"tags":["cde-copy-jobs"],"summary":"Preflight Copy Job","operationId":"preflight_copy_job_v1_cde_copy_jobs_preflight_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CdeCopyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CdeCopyPreflightResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/copy-jobs":{"post":{"tags":["cde-copy-jobs"],"summary":"Create Copy Job","operationId":"create_copy_job_v1_cde_copy_jobs_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CdeCopyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCdeCopyJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/push-folder-jobs/preflight":{"post":{"tags":["push-folder-jobs"],"summary":"Preflight Push Folder Job","operationId":"preflight_push_folder_job_v1_cde_push_folder_jobs_preflight_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushFolderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushFolderPreflightResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/push-folder-jobs":{"post":{"tags":["push-folder-jobs"],"summary":"Create Push Folder Job","operationId":"create_push_folder_job_v1_cde_push_folder_jobs_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushFolderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePushFolderJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/push-register-jobs/preflight":{"post":{"tags":["push-register-jobs"],"summary":"Preflight Push Register Job","operationId":"preflight_push_register_job_v1_cde_push_register_jobs_preflight_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushRegisterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushRegisterPreflightResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/push-register-jobs":{"post":{"tags":["push-register-jobs"],"summary":"Create Push Register Job","operationId":"create_push_register_job_v1_cde_push_register_jobs_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushRegisterRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePushRegisterJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/bulk-push-to-site-jobs":{"post":{"tags":["cde-bulk-push-to-site-jobs"],"summary":"Create Bulk Push To Site Job","operationId":"create_bulk_push_to_site_job_v1_cde_bulk_push_to_site_jobs_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkPushToSiteJobRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkPushToSiteJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/site-photos-rotate-jobs":{"post":{"tags":["cde-jobs"],"summary":"Create Site Photos Rotate Job","operationId":"create_site_photos_rotate_job_v1_cde_site_photos_rotate_jobs_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePhotosRotateJobCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SitePhotosRotateJobCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/revision-changes":{"get":{"tags":["cde-revision-changes"],"summary":"Get Revision Changes","operationId":"get_revision_changes_v1_cde_revision_changes_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"old_cde_id","in":"query","required":true,"schema":{"type":"integer","title":"Old Cde Id"}},{"name":"new_cde_id","in":"query","required":true,"schema":{"type":"integer","title":"New Cde Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionChangesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cde-revision-changes"],"summary":"Request Revision Changes","operationId":"request_revision_changes_v1_cde_revision_changes_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestRevisionChangesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionChangesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/revision-changes/hidden-markers":{"put":{"tags":["cde-revision-changes"],"summary":"Put Hidden Markers","description":"Needs Project Documents access to the project, unlike the reads above:\nit changes what every viewer of the compare sees.","operationId":"put_hidden_markers_v1_cde_revision_changes_hidden_markers_put","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HideMarkersRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HideMarkersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/takeoff-kai/availability":{"get":{"tags":["takeoff-kai"],"summary":"Get Takeoff Kai Availability","operationId":"get_takeoff_kai_availability_v1_takeoff_kai_availability_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeoffKaiAvailabilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/takeoff-kai/packages/{qto_id}/latest-run":{"get":{"tags":["takeoff-kai"],"summary":"Get Latest Takeoff Kai Run","operationId":"get_latest_takeoff_kai_run_v1_takeoff_kai_packages__qto_id__latest_run_get","parameters":[{"name":"qto_id","in":"path","required":true,"schema":{"type":"string","title":"Qto Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeoffKaiRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/takeoff-kai/runs":{"post":{"tags":["takeoff-kai"],"summary":"Create Takeoff Kai Run","operationId":"create_takeoff_kai_run_v1_takeoff_kai_runs_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTakeoffKaiRunRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTakeoffKaiRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/takeoff-kai/runs/{run_id}":{"get":{"tags":["takeoff-kai"],"summary":"Get Takeoff Kai Run","operationId":"get_takeoff_kai_run_v1_takeoff_kai_runs__run_id__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeoffKaiRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/takeoff-kai/runs/{run_id}/sheets/{cde_id}/{page}":{"get":{"tags":["takeoff-kai"],"summary":"Get Takeoff Kai Sheet","operationId":"get_takeoff_kai_sheet_v1_takeoff_kai_runs__run_id__sheets__cde_id___page__get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"cde_id","in":"path","required":true,"schema":{"type":"integer","title":"Cde Id"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeoffKaiSheetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/takeoff-kai/runs/{run_id}/sheets/{cde_id}/{page}/decisions/{proposal_id}":{"put":{"tags":["takeoff-kai"],"summary":"Put Takeoff Kai Decision","operationId":"put_takeoff_kai_decision_v1_takeoff_kai_runs__run_id__sheets__cde_id___page__decisions__proposal_id__put","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"cde_id","in":"path","required":true,"schema":{"type":"integer","title":"Cde Id"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","title":"Page"}},{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeoffKaiDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeoffKaiDecisionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ai-usage/summary":{"get":{"tags":["ai-usage"],"summary":"Get Ai Usage Summary","operationId":"get_ai_usage_summary_v1_ai_usage_summary_get","parameters":[{"name":"months","in":"query","required":false,"schema":{"type":"integer","default":6,"title":"Months"}},{"name":"workflow","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiUsageSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ai-usage/runs":{"get":{"tags":["ai-usage"],"summary":"Get Ai Usage Runs","operationId":"get_ai_usage_runs_v1_ai_usage_runs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"workflow","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiUsageRunsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/revision-reviews":{"get":{"tags":["cde-revision-reviews"],"summary":"Get Revision Reviews","operationId":"get_revision_reviews_v1_cde_revision_reviews_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"pairs","in":"query","required":true,"schema":{"type":"string","description":"old:new,old:new,…","title":"Pairs"},"description":"old:new,old:new,…"},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionReviewsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["cde-revision-reviews"],"summary":"Put Revision Review","operationId":"put_revision_review_v1_cde_revision_reviews_put","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutRevisionReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionReviewDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/revision-followups":{"get":{"tags":["cde-revision-reviews"],"summary":"Get Revision Followups","operationId":"get_revision_followups_v1_cde_revision_followups_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"pairs","in":"query","required":true,"schema":{"type":"string","description":"old:new,old:new,…","title":"Pairs"},"description":"old:new,old:new,…"},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionFollowupsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["cde-revision-reviews"],"summary":"Create Revision Followup","operationId":"create_revision_followup_v1_cde_revision_followups_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRevisionFollowupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionFollowupDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/registration-events":{"get":{"tags":["cde-registration-events"],"summary":"List Registration Events","operationId":"list_registration_events_v1_cde_registration_events_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"next_before of the previous page","title":"Before"},"description":"next_before of the previous page"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationEventsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/registration-events/{job_id}":{"get":{"tags":["cde-registration-events"],"summary":"Get Registration Event","operationId":"get_registration_event_v1_cde_registration_events__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationEventDto"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/cde/extract-metadata":{"post":{"tags":["cde-extract"],"summary":"Extract Metadata","description":"Extract drawing metadata from a PDF.\n\nDecodes ``pdf_base64``, sends the bytes to the KAI Vertex AI extractor,\nand maps the 16-field result to the response schema.\n\n- 400 if ``pdf_base64`` is not valid base64 or decodes to zero bytes.\n- 422 if the extractor could not parse metadata from the PDF.","operationId":"extract_metadata_v1_cde_extract_metadata_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractMetadataRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/kai/meeting-minutes:extract":{"post":{"tags":["kai"],"summary":"Extract Meeting Minutes","operationId":"extract_meeting_minutes_v1_workspaces__workspace_id__projects__project_id__kai_meeting_minutes_extract_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesExtractRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesExtractResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/kai/record-summary:generate":{"post":{"tags":["kai"],"summary":"Generate Record Summary","operationId":"generate_record_summary_v1_workspaces__workspace_id__projects__project_id__kai_record_summary_generate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordSummaryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/kai/file-compare:generate":{"post":{"tags":["kai"],"summary":"Generate File Compare","operationId":"generate_file_compare_v1_workspaces__workspace_id__projects__project_id__kai_file_compare_generate_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileCompareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileCompareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/email-accounts/auth-url":{"get":{"tags":["email-accounts"],"summary":"Get Auth Url","operationId":"get_auth_url_v1_email_accounts_auth_url_get","parameters":[{"name":"provider","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","title":"Redirect Uri"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/email-accounts/callback":{"post":{"tags":["email-accounts"],"summary":"Post Callback","operationId":"post_callback_v1_email_accounts_callback_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/email-accounts":{"get":{"tags":["email-accounts"],"summary":"Get Accounts","operationId":"get_accounts_v1_email_accounts_get","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/email-accounts/{provider}":{"get":{"tags":["email-accounts"],"summary":"Get Provider","operationId":"get_provider_v1_email_accounts__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["email-accounts"],"summary":"Delete Provider","operationId":"delete_provider_v1_email_accounts__provider__delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Provider V1 Email Accounts  Provider  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/email-accounts/{provider}/primary":{"patch":{"tags":["email-accounts"],"summary":"Patch Primary","operationId":"patch_primary_v1_email_accounts__provider__primary_patch","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPrimaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connections":{"get":{"tags":["connections"],"summary":"List Connections","operationId":"list_connections_v1_connections_get","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connections/{provider}/auth-url":{"get":{"tags":["connections"],"summary":"Get Auth Url","operationId":"get_auth_url_v1_connections__provider__auth_url_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","title":"Redirect Uri"}},{"name":"capabilities","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Capability"}},{"type":"null"}],"title":"Capabilities"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connections/{provider}/callback":{"post":{"tags":["connections"],"summary":"Post Callback","operationId":"post_callback_v1_connections__provider__callback_post","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connections/{provider}":{"delete":{"tags":["connections"],"summary":"Delete Connection","operationId":"delete_connection_v1_connections__provider__delete","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Connection V1 Connections  Provider  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/connections/{provider}/primary":{"patch":{"tags":["connections"],"summary":"Patch Primary","operationId":"patch_primary_v1_connections__provider__primary_patch","parameters":[{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPrimaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/org-approvals/{provider}":{"get":{"tags":["org-approvals"],"summary":"Get Org Approval Status","operationId":"get_org_approval_status_v1_workspaces__workspace_id__org_approvals__provider__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgApprovalStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/org-approvals/{provider}/link":{"post":{"tags":["org-approvals"],"summary":"Create Org Approval Link","operationId":"create_org_approval_link_v1_workspaces__workspace_id__org_approvals__provider__link_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Provider"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgApprovalLinkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/org-approvals/{token}":{"get":{"tags":["org-approvals"],"summary":"Start Org Approval","operationId":"start_org_approval_v1_public_org_approvals__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Redirect Uri"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgApprovalStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/org-approvals/{token}/complete":{"post":{"tags":["org-approvals"],"summary":"Complete Org Approval","operationId":"complete_org_approval_v1_public_org_approvals__token__complete_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgApprovalCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgApprovalCompleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/calendar/notifications":{"post":{"tags":["calendar"],"summary":"Change Notifications","operationId":"change_notifications_v1_public_calendar_notifications_post","parameters":[{"name":"validationToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validationtoken"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/calendar/lifecycle":{"post":{"tags":["calendar"],"summary":"Lifecycle Notifications","operationId":"lifecycle_notifications_v1_public_calendar_lifecycle_post","parameters":[{"name":"validationToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validationtoken"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/email-templates/preview":{"post":{"tags":["email-templates"],"summary":"Post Preview","operationId":"post_preview_v1_email_templates_preview_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/threads":{"get":{"tags":["correspondence"],"summary":"List Threads","operationId":"list_threads_v1_workspaces__workspace_id__projects__project_id__correspondence_threads_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"title":"Tag"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["correspondence"],"summary":"Create Thread","operationId":"create_thread_v1_workspaces__workspace_id__projects__project_id__correspondence_threads_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/threads/{thread_doc_id}":{"get":{"tags":["correspondence"],"summary":"Get Thread","operationId":"get_thread_v1_workspaces__workspace_id__projects__project_id__correspondence_threads__thread_doc_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"thread_doc_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Doc Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["correspondence"],"summary":"Patch Thread","operationId":"patch_thread_v1_workspaces__workspace_id__projects__project_id__correspondence_threads__thread_doc_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"thread_doc_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Doc Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["correspondence"],"summary":"Delete Thread","operationId":"delete_thread_v1_workspaces__workspace_id__projects__project_id__correspondence_threads__thread_doc_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"thread_doc_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Doc Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Thread V1 Workspaces  Workspace Id  Projects  Project Id  Correspondence Threads  Thread Doc Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/threads/{thread_doc_id}/tags":{"patch":{"tags":["correspondence"],"summary":"Patch Thread Tags","operationId":"patch_thread_tags_v1_workspaces__workspace_id__projects__project_id__correspondence_threads__thread_doc_id__tags_patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"thread_doc_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Doc Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadTagsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/threads/{thread_doc_id}/emails":{"get":{"tags":["correspondence"],"summary":"List Emails In Thread","operationId":"list_emails_in_thread_v1_workspaces__workspace_id__projects__project_id__correspondence_threads__thread_doc_id__emails_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"thread_doc_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Doc Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EmailPublic"},"title":"Response List Emails In Thread V1 Workspaces  Workspace Id  Projects  Project Id  Correspondence Threads  Thread Doc Id  Emails Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/emails/{email_doc_id}/attachments/{index}:download":{"get":{"tags":["correspondence"],"summary":"Get Email Attachment Download","description":"Signed download URL for one stored inbound attachment (COR-651).\n\nAttachments are addressed by list index — AttachmentMetadata rows carry\nno id of their own. The list is append-only once ingested: the COR-1123\nbackfill (``scripts/backfill_reply_attachments.py``) may append parts it\nrecovers from the raw ``.eml``, but never reorders, rewrites or removes a\nrow, so an index never moves.","operationId":"get_email_attachment_download_v1_workspaces__workspace_id__projects__project_id__correspondence_emails__email_doc_id__attachments__index__download_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"email_doc_id","in":"path","required":true,"schema":{"type":"string","title":"Email Doc Id"}},{"name":"index","in":"path","required":true,"schema":{"type":"integer","title":"Index"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailAttachmentDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/emails/{email_doc_id}:raw":{"get":{"tags":["correspondence"],"summary":"Get Email Raw Download","description":"Signed download URL for the raw .eml file (COR-580) — the \"open the\nnative Outlook file\" ask. Carried by sync-ingested emails and, since\nCOR-884, by mail forwarded as an attachment to the project inbox address.\nMailgun inbound has no raw MIME.","operationId":"get_email_raw_download_v1_workspaces__workspace_id__projects__project_id__correspondence_emails__email_doc_id__raw_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"email_doc_id","in":"path","required":true,"schema":{"type":"string","title":"Email Doc Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRawDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/send":{"post":{"tags":["correspondence"],"summary":"Send Email","operationId":"send_email_v1_workspaces__workspace_id__projects__project_id__correspondence_send_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/correspondence/tags":{"get":{"tags":["correspondence-tags"],"summary":"List Correspondence Tags","operationId":"list_correspondence_tags_v1_workspaces__workspace_id__correspondence_tags_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrespondenceTagsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["correspondence-tags"],"summary":"Replace Correspondence Tags","operationId":"replace_correspondence_tags_v1_workspaces__workspace_id__correspondence_tags_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrespondenceTagsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrespondenceTagsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/correspondence/search":{"get":{"tags":["correspondence-search"],"summary":"Search Correspondence","operationId":"search_correspondence_v1_workspaces__workspace_id__correspondence_search_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}],"title":"Q"}},{"name":"project_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"title":"Project Ids"}},{"name":"from","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"To"}},{"name":"cc","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Cc"}},{"name":"participant","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Participant"}},{"name":"tag","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"title":"Tag"}},{"name":"direction","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(inbound|outbound)$"},{"type":"null"}],"title":"Direction"}},{"name":"has_attachments","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Attachments"}},{"name":"linked","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LinkedFilter","default":"any"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SearchSort","default":"relevance"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/notices":{"post":{"tags":["correspondence-notices"],"summary":"Create Notice","operationId":"create_notice_v1_workspaces__workspace_id__projects__project_id__correspondence_notices_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["correspondence-notices"],"summary":"List Notices","operationId":"list_notices_v1_workspaces__workspace_id__projects__project_id__correspondence_notices_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/NoticeStatus"},{"type":"null"}],"title":"Status"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"linked_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"default":0,"title":"Limit"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__correspondence__notice__NoticeListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/notices/{notice_id}":{"get":{"tags":["correspondence-notices"],"summary":"Get Notice","operationId":"get_notice_v1_workspaces__workspace_id__projects__project_id__correspondence_notices__notice_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["correspondence-notices"],"summary":"Update Notice","operationId":"update_notice_v1_workspaces__workspace_id__projects__project_id__correspondence_notices__notice_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["correspondence-notices"],"summary":"Delete Notice","operationId":"delete_notice_v1_workspaces__workspace_id__projects__project_id__correspondence_notices__notice_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/correspondence/notices/{notice_id}/issue":{"post":{"tags":["correspondence-notices"],"summary":"Issue Notice","description":"Send the draft notice via the user's connected provider and stamp\nit as ISSUED. The send goes through the new ds-protogalaxy\ncorrespondence/send pipeline so Gmail-rewritten Message-IDs are\ncaptured correctly. On send failure the notice stays DRAFT and the\nerror is recorded; route returns 502 so the user can retry.\n\nThe optional ``workspace_name`` / ``project_name`` body fields are\nsubstituted into the email template (subject + header). When absent\nthe service falls back to ID strings — the notice still sends.","operationId":"issue_notice_v1_workspaces__workspace_id__projects__project_id__correspondence_notices__notice_id__issue_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeIssueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeIssueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/correspondence/inbound-email-webhook":{"post":{"summary":"Inbound Email Webhook","description":"Receive and dispatch a Mailgun inbound reply.","operationId":"inbound_email_webhook_v1_correspondence_inbound_email_webhook_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/correspondence/o/{token}.gif":{"get":{"summary":"Pixel Track","description":"Return a 1×1 transparent GIF and optionally record an email_viewed event.","operationId":"pixel_track_v1_correspondence_o__token__gif_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/correspondence/d/{token}/{attachment_id}":{"head":{"summary":"Download a notice attachment via an emailed token","description":"Unauthenticated. Validates the emailed token, then redirects to a freshly minted 15-minute GCS signed URL for the requested attachment.","operationId":"download_attachment_v1_correspondence_d__token___attachment_id__head","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"302":{"description":"Redirect to a short-lived signed download URL"},"404":{"description":"Token unknown, expired, revoked, or file not on this link"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Download a notice attachment via an emailed token","description":"Unauthenticated. Validates the emailed token, then redirects to a freshly minted 15-minute GCS signed URL for the requested attachment.","operationId":"download_attachment_v1_correspondence_d__token___attachment_id__head","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"302":{"description":"Redirect to a short-lived signed download URL"},"404":{"description":"Token unknown, expired, revoked, or file not on this link"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/correspondence/inbound-email-webhook/events":{"post":{"summary":"Mailgun Event Webhook","description":"Receive and dispatch a Mailgun delivery event.","operationId":"mailgun_event_webhook_v1_correspondence_inbound_email_webhook_events_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/correspondence-sync-jobs":{"post":{"tags":["correspondence-sync"],"summary":"Create Sync Job","description":"Create a QUEUED inbox-sync job for the given provider.\n\nWorkspace + project scoping matches the GET /v1/jobs list pattern.\nThe caller must then POST /v1/jobs/{id}/start to begin execution,\nand may subscribe to /v1/jobs/{id}/events for SSE progress.","operationId":"create_sync_job_v1_correspondence_sync_jobs_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncJobCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncJobPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notice-types":{"get":{"summary":"List Notice Types","operationId":"list_notice_types_v1_workspaces__workspace_id__notice_types_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"contract_standard","in":"query","required":false,"schema":{"type":"string","default":"NZS3910","title":"Contract Standard"}},{"name":"sender_org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Sender Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NoticeTypeListItemResponse"},"title":"Response List Notice Types V1 Workspaces  Workspace Id  Notice Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notice-types/{code}":{"get":{"summary":"Get Notice Type","operationId":"get_notice_type_v1_workspaces__workspace_id__notice_types__code__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"contract_standard","in":"query","required":false,"schema":{"type":"string","default":"NZS3910","title":"Contract Standard"}},{"name":"sender_org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Sender Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTypeDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notice-types/{code}/overrides":{"get":{"summary":"Get Notice Type Overrides","operationId":"get_notice_type_overrides_v1_workspaces__workspace_id__notice_types__code__overrides_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"contract_standard","in":"query","required":false,"schema":{"type":"string","default":"NZS3910","title":"Contract Standard"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTypeOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Notice Type Overrides","operationId":"put_notice_type_overrides_v1_workspaces__workspace_id__notice_types__code__overrides_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"contract_standard","in":"query","required":false,"schema":{"type":"string","default":"NZS3910","title":"Contract Standard"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTypeOverridesUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTypeOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notice-types/{code}/org-overrides":{"get":{"summary":"Get Notice Type Org Overrides","operationId":"get_notice_type_org_overrides_v1_workspaces__workspace_id__notice_types__code__org_overrides_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Org Id"}},{"name":"contract_standard","in":"query","required":false,"schema":{"type":"string","default":"NZS3910","title":"Contract Standard"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTypeOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Notice Type Org Overrides","operationId":"put_notice_type_org_overrides_v1_workspaces__workspace_id__notice_types__code__org_overrides_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Org Id"}},{"name":"contract_standard","in":"query","required":false,"schema":{"type":"string","default":"NZS3910","title":"Contract Standard"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTypeOrgOverridesUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTypeOverridesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notice-types/{code}/visibility":{"put":{"summary":"Put Notice Type Visibility","operationId":"put_notice_type_visibility_v1_workspaces__workspace_id__notice_types__code__visibility_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTypeVisibilityUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTypeVisibilityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-types/{code}/fields/{field_key}:kai-draft":{"post":{"summary":"Kai Draft Field","operationId":"kai_draft_field_v1_workspaces__workspace_id__projects__project_id__notice_types__code__fields__field_key__kai_draft_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"field_key","in":"path","required":true,"schema":{"type":"string","title":"Field Key"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KaiDraftFieldRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KaiDraftFieldResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/recipients":{"get":{"summary":"List Recipients","operationId":"list_recipients_v1_workspaces__workspace_id__projects__project_id__recipients_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyResponse"},"title":"Response List Recipients V1 Workspaces  Workspace Id  Projects  Project Id  Recipients Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-drafts":{"post":{"summary":"Create Draft","operationId":"create_draft_v1_workspaces__workspace_id__projects__project_id__notice_drafts_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeDraftCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Drafts","operationId":"list_drafts_v1_workspaces__workspace_id__projects__project_id__notice_drafts_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"type_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Code"}},{"name":"due_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Before"}},{"name":"overdue","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Overdue"}},{"name":"own_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Own Only"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Page Size"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeDraftListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-drafts/{draft_id}":{"get":{"summary":"Get Draft","operationId":"get_draft_v1_workspaces__workspace_id__projects__project_id__notice_drafts__draft_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Draft","operationId":"patch_draft_v1_workspaces__workspace_id__projects__project_id__notice_drafts__draft_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"if-match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"If-Match"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeDraftPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Draft","operationId":"delete_draft_v1_workspaces__workspace_id__projects__project_id__notice_drafts__draft_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-drafts/{draft_id}/pictures/{picture_id}":{"get":{"summary":"Get Draft Picture","description":"A picture in the draft's text (COR-1310): for whoever may open the\ndraft, and only a picture its text references (else 404).","operationId":"get_draft_picture_v1_workspaces__workspace_id__projects__project_id__notice_drafts__draft_id__pictures__picture_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"picture_id","in":"path","required":true,"schema":{"type":"string","title":"Picture Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"image/png":{},"image/jpeg":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-drafts/{draft_id}/attachments:sign":{"post":{"summary":"Sign Attachment Upload","operationId":"sign_attachment_upload_v1_workspaces__workspace_id__projects__project_id__notice_drafts__draft_id__attachments_sign_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-drafts/{draft_id}/attachments/{attachment_id}":{"delete":{"summary":"Delete Attachment","operationId":"delete_attachment_v1_workspaces__workspace_id__projects__project_id__notice_drafts__draft_id__attachments__attachment_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-drafts/{draft_id}:issue":{"post":{"summary":"Issue Draft","description":"Issue the draft. Its issuing company (``sender_org_id``) must be one the\ncaller may act for, and a draft linked to a parent must answer a button\nthe parent offers that company — 403 otherwise, before anything is\nwritten (COR-1082; the refusal is mapped by the global handler).","operationId":"issue_draft_v1_workspaces__workspace_id__projects__project_id__notice_drafts__draft_id__issue_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-drafts/{draft_id}:preview-pdf":{"post":{"summary":"Preview Draft Pdf","description":"Render a draft as a DRAFT-marked PDF for review before issue (COR-990).\n\nSame body as ``:issue``, with the same meaning, so the preview is what\nissuing with that body would print. Rendered on demand and returned\nas-is: nothing is stored and nothing is issued.","operationId":"preview_draft_pdf_v1_workspaces__workspace_id__projects__project_id__notice_drafts__draft_id__preview_pdf_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssueDraftRequest"}}}},"responses":{"200":{"description":"The DRAFT PDF.","content":{"application/pdf":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notice-pictures":{"post":{"summary":"Upload Notice Picture","description":"Store one picture for a notice text (E2): PNG or JPEG by content, at\nmost 2 MB, metadata stripped. 400 with a sentence for the editor to show\notherwise; 403 for someone outside the workspace.","operationId":"upload_notice_picture_v1_workspaces__workspace_id__notice_pictures_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadNoticePictureRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticePictureResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-templates":{"get":{"summary":"List Notice Templates","operationId":"list_notice_templates_v1_workspaces__workspace_id__projects__project_id__notice_templates_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTemplateListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-templates/{type_code}":{"get":{"summary":"Get Notice Template","operationId":"get_notice_template_v1_workspaces__workspace_id__projects__project_id__notice_templates__type_code__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"type_code","in":"path","required":true,"schema":{"type":"string","title":"Type Code"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Notice Template","operationId":"put_notice_template_v1_workspaces__workspace_id__projects__project_id__notice_templates__type_code__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"type_code","in":"path","required":true,"schema":{"type":"string","title":"Type Code"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTemplateUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Notice Template","operationId":"delete_notice_template_v1_workspaces__workspace_id__projects__project_id__notice_templates__type_code__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"type_code","in":"path","required":true,"schema":{"type":"string","title":"Type Code"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notice-templates/{type_code}/pictures/{picture_id}":{"get":{"summary":"Get Notice Template Picture","description":"A picture in a template's text (COR-1310), read as the template is\nread on its layer; only a picture its text references (else 404).","operationId":"get_notice_template_picture_v1_workspaces__workspace_id__projects__project_id__notice_templates__type_code__pictures__picture_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"type_code","in":"path","required":true,"schema":{"type":"string","title":"Type Code"}},{"name":"picture_id","in":"path","required":true,"schema":{"type":"string","title":"Picture Id"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"image/png":{},"image/jpeg":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notice-templates":{"get":{"summary":"List All Projects Notice Templates","operationId":"list_all_projects_notice_templates_v1_workspaces__workspace_id__notice_templates_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllProjectsNoticeTemplateListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notice-templates/{type_code}":{"get":{"summary":"Get All Projects Notice Template","operationId":"get_all_projects_notice_template_v1_workspaces__workspace_id__notice_templates__type_code__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"type_code","in":"path","required":true,"schema":{"type":"string","title":"Type Code"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllProjectsNoticeTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put All Projects Notice Template","operationId":"put_all_projects_notice_template_v1_workspaces__workspace_id__notice_templates__type_code__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"type_code","in":"path","required":true,"schema":{"type":"string","title":"Type Code"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllProjectsNoticeTemplateUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllProjectsNoticeTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete All Projects Notice Template","operationId":"delete_all_projects_notice_template_v1_workspaces__workspace_id__notice_templates__type_code__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"type_code","in":"path","required":true,"schema":{"type":"string","title":"Type Code"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notice-templates/{type_code}/pictures/{picture_id}":{"get":{"summary":"Get All Projects Notice Template Picture","description":"A picture in the all-projects template's text (COR-1310), read as the\ntemplate is read; only a picture its text references (else 404).","operationId":"get_all_projects_notice_template_picture_v1_workspaces__workspace_id__notice_templates__type_code__pictures__picture_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"type_code","in":"path","required":true,"schema":{"type":"string","title":"Type Code"}},{"name":"picture_id","in":"path","required":true,"schema":{"type":"string","title":"Picture Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"image/png":{},"image/jpeg":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notices/eot-rollup":{"get":{"summary":"Get Eot Rollup","operationId":"get_eot_rollup_v1_workspaces__workspace_id__notices_eot_rollup_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"as_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Count only grants decided on or before this date (YYYY-MM-DD). Pending days stay today's. Echoed back so a caller can tell an as-at answer from a server that ignored the parameter.","title":"As At"},"description":"Count only grants decided on or before this date (YYYY-MM-DD). Pending days stay today's. Echoed back so a caller can tell an as-at answer from a server that ignored the parameter."},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EotRollupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/notices/related-to-me":{"get":{"summary":"Related To Me","operationId":"related_to_me_v1_workspaces__workspace_id__notices_related_to_me_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":25,"minimum":1,"default":10,"title":"Limit"}},{"name":"for_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"View-as target (Kinde id). Honoured only when the caller is a workspace manager of this workspace; 403 otherwise.","title":"For User Id"},"description":"View-as target (Kinde id). Honoured only when the caller is a workspace manager of this workspace; 403 otherwise."},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelatedToMeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/awaiting-count":{"get":{"summary":"Awaiting Count","description":"Cheap count of notices in this project still awaiting the viewer's company.\n\nDrives the register sidebar badge (COR-788). Exists because the only prior\nway to get this number was a full\n``list_notices(awaiting_company_id=...)``, which pays a recipients fetch per\nnotice in the project before it can paginate — far too heavy for something\nthat polls every 60s on every page for every user.\n\n``viewer_org_id`` is REQUIRED (422 without it), matching the list and detail\nendpoints on this router: there is no \"current org\" on the token, so an\nomitted org has no safe default to fall back to. It must be a company the\ncaller may act for (403 otherwise, COR-1082).","operationId":"awaiting_count_v1_workspaces__workspace_id__projects__project_id__notices_awaiting_count_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeAwaitingCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/link-candidates":{"get":{"summary":"List Link Candidates","description":"What a ``linked_notice`` field's picker offers (COR-933).\n\n``type_code`` and ``field_key`` name the field being filled (an EoT's\n``related_delay_notice``); the field's own config says which notice types\nit takes. ``head_contract_id`` is the head contract picked on the notice\nbeing written — omitted while none is picked. Lists issued notices the\nviewer's company is a party to, newest first; an empty list when there\nare none.\n\nDeclared above ``/{notice_id}`` with the other literal paths, for the same\nreason as ``/awaiting-count`` — see the comment there.","operationId":"list_link_candidates_v1_workspaces__workspace_id__projects__project_id__notices_link_candidates_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"type_code","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Type Code"}},{"name":"field_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Field Key"}},{"name":"head_contract_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Contract Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCandidatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/bulk-export-reports":{"post":{"summary":"Report Bulk Export","description":"What a register bulk export did, notice by notice (COR-1118).\n\nThe browser merges the export, so only it knows which notices dropped out.\nPersists nothing: one structured log line per report — WARNING when any\noutcome is not ``ok`` or ``error`` is set — with the user, workspace,\nproject, counts, the failed rows and the error. ``error`` (at most 500\ncharacters) reports an export that failed as a whole before any notice had\nan outcome; it comes with no outcomes and nothing merged. At most\n``MAX_BULK_EXPORT_OUTCOMES`` outcomes (422 beyond, as for an unknown\noutcome, a negative count or a longer error). ``viewer_org_id`` is logged\nwhen given; unlike the reads it is optional, so a report is never lost to\na missing parameter.","operationId":"report_bulk_export_v1_workspaces__workspace_id__projects__project_id__notices_bulk_export_reports_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"viewer_org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkExportReportRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}":{"get":{"summary":"Get Notice","operationId":"get_notice_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices":{"get":{"summary":"List Notices","operationId":"list_notices_v1_workspaces__workspace_id__projects__project_id__notices_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"type_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Code"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"sender_org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Id"}},{"name":"participant_company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Company Id"}},{"name":"awaiting_company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awaiting Company Id"}},{"name":"has_awaiting","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Awaiting"}},{"name":"due_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Before"}},{"name":"overdue","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Overdue"}},{"name":"source_record_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Record Type"}},{"name":"source_record_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Record Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Page Size"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__schemas__notices__notice__NoticeListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:acknowledge":{"post":{"summary":"Acknowledge","description":"Recipient-side acknowledgement (COR-810).\n\n``viewer_org_id`` is REQUIRED and names the caller's own org, matching the\nread endpoints. There is no ``company_id`` body field on purpose: an issuer\nmust not be able to assert that someone else acknowledged. 403 (COR-1082)\nwhen the company is not the caller's, or the notice no longer awaits it\n(a company that already acknowledged gets the current state back); the\n400 below covers \"this type has no acknowledge step\" (RFI / Submittal —\nuse ``:mark-responded``) and a notice whose status takes none.","operationId":"acknowledge_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__acknowledge_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:mark-responded":{"post":{"summary":"Mark Responded","description":"Record that ``company_id`` responded (COR-285, COR-1074).\n\n``viewer_org_id`` is REQUIRED (422 without it) and names the caller's own\norg, as on ``:acknowledge`` / ``:chase``. The service accepts the issuer\n(recording an off-platform answer on the company's behalf — ``note``\nmandatory, blank or over-long is 400) or the company itself where the\nnotice offers it \"Reply with answer\" (``note`` optional); anyone else,\nor a company that is not the caller's, is 403 (COR-1082).","operationId":"mark_responded_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__mark_responded_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkRespondedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:waive-response":{"post":{"summary":"Waive Response","description":"The issuer waives ``company_id``'s response — To → FYI (COR-1074).\n\n``viewer_org_id`` is REQUIRED and must be the notice's issuing org (403\notherwise). The company must still be awaiting (400 otherwise); a replay on\nan already-waived company returns the current state. ``note`` is\nmandatory. No emails or notifications go out.","operationId":"waive_response_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__waive_response_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaiveResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:require-response":{"post":{"summary":"Require Response","description":"The issuer asks ``company_id`` to respond after issue — \"Set as To\" (COR-1078).\n\n``viewer_org_id`` is REQUIRED and must be the notice's issuing org (403\notherwise). Only while the notice is collecting answers (400 otherwise —\nreopen first); 400 too for a company that was removed (use Forward). The\ncompany's For-information rows become For-response, it joins the awaiting\nlist, and those rows are emailed \"Response requested\". A company that\nalready answered is asked AGAIN (COR-1083): ``note`` is then required (400\nwithout) and every one of its rows is emailed. A replay with nothing left\nto flip returns the current state.","operationId":"require_response_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__require_response_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequireResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:remove-recipient":{"post":{"summary":"Remove Recipient","description":"The issuer takes one person off the distribution (COR-1078).\n\n``viewer_org_id`` is REQUIRED and must be the notice's issuing org (403\notherwise). Soft: the row stays (flagged removed) and gets no further\nemail. 400 on a draft, an unknown row, the notice's last active\nrecipient, or a missing note when the person is the last one their\ncompany still owed an answer through. A replay on a removed row returns\nthe current state. No emails go out.","operationId":"remove_recipient_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__remove_recipient_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveRecipientRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/timeline-events/{event_id}:share":{"post":{"summary":"Share Message","description":"The issuing company shares one recipient's message with other\ncompanies on the notice — \"Share with…\" (COR-1291 S3, PLAN D6).\n\n``viewer_org_id`` is REQUIRED: a company the caller acts for (403\notherwise) that issued the notice (403 otherwise — a recipient, or a\nbuilder user on a notice someone else issued). 404 when the message is\nnot on the notice or not shown to the issuing company. 400 when it may\nnot be shared (an internal note, the issuing company's own message, a\nmessage whose company is not known, a \"Hide recipients\" notice) or a\ncompany may not have it (not on the notice, the author's, the issuer, one\nit already went to). The companies' contacts are emailed. One way: there\nis no un-share. Returns the detail read for the acting company.","operationId":"share_message_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__timeline_events__event_id__share_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/pdf:download":{"get":{"summary":"Get Pdf Download Url","description":"PRE-437: mint the notice-PDF link on click (24h TTL) instead of the\ndrawer holding a pre-signed URL across its lifetime.","operationId":"get_pdf_download_url_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__pdf_download_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticePdfDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/pdf:ensure":{"post":{"summary":"Ensure Notice Pdf","description":"The notice's record PDF, made and stored when it has none (COR-1118).\n\nFor the register's bulk export, which asks for every issued row. No body:\nnothing the PDF prints comes from the caller. Visibility is the detail\nGET's, with the same 404 / 403. 409 ``notice_is_draft``; 503\n``pdf_render_failed`` (no PDF stored, notice untouched) or ``pdf_read_failed`` (a\nstored PDF exists but could not be read). ``X-Notice-Pdf-Source`` —\n``stored`` / ``adopted`` / ``generated`` — is for debugging only.","operationId":"ensure_notice_pdf_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__pdf_ensure_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"The notice's record PDF.","content":{"application/pdf":{}}},"409":{"description":"A draft — ``{\"detail\": {\"code\": \"notice_is_draft\", ...}}``."},"503":{"description":"``detail.code`` pdf_render_failed or pdf_read_failed; retry."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/attachments/{attachment_id}:download":{"get":{"summary":"Get Attachment Download Url","operationId":"get_attachment_download_url_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__attachments__attachment_id__download_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeAttachmentDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/reply-attachments:sign":{"post":{"summary":"Sign Reply Attachment Upload","description":"Mint a signed PUT URL for a file the caller wants to attach to a reply.\n\nPersists nothing (COM-840): the browser uploads to the returned URL, then\nhands the ref back on ``POST /{id}/comments`` or ``POST /{id}:mark-responded``.","operationId":"sign_reply_attachment_upload_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__reply_attachments_sign_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignReplyAttachmentUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignReplyAttachmentUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/timeline-events/{event_id}/attachments/{attachment_id}:download":{"get":{"summary":"Get Reply Attachment Download Url","description":"Signed download URL for a file attached to an in-app reply (COM-840).\n\nDistinct from ``/attachments/{id}:download`` above, which serves the issued\ndocument's own attachment set. Reply files live in the timeline event's\npayload, so they are addressed by (event_id, attachment_id). The file\nfollows its message (COR-1291): only a caller the detail read would show\nit to gets a link. ``viewer_org_id`` is the company the page reads as —\noptional (an older frontend sends none and the caller's company is\nresolved), checked like the detail read's when given.","operationId":"get_reply_attachment_download_url_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__timeline_events__event_id__attachments__attachment_id__download_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}},{"name":"viewer_org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyAttachmentDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:link":{"post":{"summary":"Link Notices","description":"Link this notice to another EXISTING notice in the same project (COR-802).\n\nNeutral cross-reference: writes a ``relates_to`` edge and a two-sided\ntimeline record, and changes neither notice's status. Distinct from\n``:link-thread`` directly below, which links an email *thread*.\n\n404 when either notice is missing, 400 on a self-link or a cross-project\npair, 200 (unchanged state, no new events) on an idempotent replay.","operationId":"link_notices_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__link_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkNoticesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:unlink":{"post":{"summary":"Unlink Notices","description":"Remove a neutral link between this notice and another (COR-802).\n\nSoft delete — the edge is retained as a tombstone and filtered out of every\nread. 200 with unchanged state when the pair was not linked, so the control\nis safe to double-click.","operationId":"unlink_notices_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__unlink_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlinkNoticesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:assign":{"post":{"summary":"Assign Notice","description":"Set or clear the internal assignee on an issued notice (COR-800).\n\nSend ``{\"assignee_user_id\": null}`` to un-assign. Internal bookkeeping\nonly — no status change, no outbound email, and the notice's contractual\n``sender_*`` snapshot is untouched.","operationId":"assign_notice_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__assign_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignNoticeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/linked-threads":{"get":{"summary":"List Linked Threads","description":"Inbox threads linked to this notice — the rail's \"Linked emails\" card (COR-983).\n\nExcludes the notice's own issue / forward / chase threads. Newest activity\nfirst. 403 for anyone but the builder's own team (fail closed, including\nwhen the caller's audience cannot be resolved); 404 when the notice is not\nfound.","operationId":"list_linked_threads_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__linked_threads_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkedThreadsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:link-thread":{"post":{"summary":"Link Thread","description":"Link an existing correspondence thread to this notice (COR-526).\n\nStamps the thread's ``linked_notice`` embed so the inbox shows it linked\nand can deep-link to the notice, and records ``email_linked`` on the notice\n(COR-983). A thread linked elsewhere MOVES here, with ``email_unlinked`` on\nthe notice it left. Re-linking to the same notice is a 200 no-op. Never\nchanges notice state.\n\n403 for anyone but the builder's own team; 404 unknown notice; 400 thread\nmissing or in another workspace; 409 ``{\"detail\": {\"code\": \"own_thread\"}}``\nwhen the thread is an email the notice it is linked to sent itself.","operationId":"link_thread_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__link_thread_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:unlink-thread":{"post":{"summary":"Unlink Thread","description":"Remove a correspondence thread's link to this notice (COR-983).\n\nUsed by the notice's rail and by the Project Inbox. Clears the thread's\nembed and records ``email_unlinked``; never changes notice state.\n\n403 for anyone but the builder's own team; 404 unknown notice; 400 thread\nmissing or in another workspace; 409 ``{\"detail\": {\"code\": \"not_linked\"}}``\nwhen the thread is not linked to this notice, ``{\"detail\": {\"code\":\n\"own_thread\"}}`` when it is an email this notice sent (its link is what\nroutes replies back to the notice).","operationId":"unlink_thread_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__unlink_thread_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlinkThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlinkThreadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/comments":{"post":{"summary":"Add Comment","description":"Add a comment or an internal note (COR-1291: \"Send to …\" /\n\"Save as internal note\"). ``viewer_org_id`` is the company the caller\nwrites as — the one the page reads as — and becomes the comment's author\ncompany once checked (403 when the caller may not act for it). Optional:\nwithout it (an older frontend) the caller's company is resolved.","operationId":"add_comment_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__comments_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCommentRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelineEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:pass-to-sub":{"post":{"summary":"Pass To Sub","description":"The builder passes a CI or CAN down to its subcontractors (COR-330).\n\n``viewer_org_id`` is REQUIRED (422 without it) and names the company\npassing the notice down, the child's issuer (DEL-400). A query parameter\nrather than a body field on purpose: the frontend sends it before this\nbackend requires it, and a backend that predates it ignores an unknown\nquery parameter, where ``PassToSubRequest`` rejects an unknown field.\n\nThe service answers 403 — the reason in ``detail``, shown to the user as\nis — when the caller is not the builder, the company is not one the caller\nmay act for, or the notice no longer awaits that company (COR-1082). That\nrefusal is not caught here: the global exception handler maps it, as it\ndoes for every action's ``NoticeActionAccessDeniedError``.","operationId":"pass_to_sub_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__pass_to_sub_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PassToSubRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:forward":{"post":{"summary":"Forward Notice","description":"Forward the issued notice to more people (COR-640, COR-1078).\n\n``viewer_org_id`` is REQUIRED (422 without it) and must be a company the\ncaller may act for, on the notice (403 otherwise, COR-1082). Recipients\nare copied in for information unless ``role`` is ``for_response``: that\nasks them to respond, which only the issuing org may do (403) and only\nwhile the notice is collecting answers (400). A company that already\nanswered is refused (400) — reopen first.","operationId":"forward_notice_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__forward_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardNoticeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:chase":{"post":{"summary":"Chase Notice","description":"Chase the parties who still owe a response on this notice (COR-769).\n\nRe-sends the notice email with a chaser framing to exactly the companies\nin ``awaiting_responses_from`` and records a ``notice_chased`` event. Not\na re-issue — nothing about the notice's state changes.\n\n``viewer_org_id`` is required, must be a company the caller may act for\n(COR-1082), and is matched against the notice's sender org by the service\nbecause the chaser goes out under the issuer's name — see\n``NoticeChasePermissionError``.","operationId":"chase_notice_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__chase_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChaseNoticeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:instruct-from":{"post":{"summary":"Instruct From","description":"Link an issued instruction to the notice it was instructed from.\n\n``viewer_org_id`` is REQUIRED (422 without it). The instruction must be\nthe caller's company's own, and the notice must offer that company the\nbutton that issues it (403 otherwise, COR-1082).","operationId":"instruct_from_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__instruct_from_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstructFromRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:request-ci":{"post":{"summary":"Request Ci","operationId":"request_ci_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__request_ci_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestCiRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:raise-clarification":{"post":{"summary":"Raise Clarification","operationId":"raise_clarification_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__raise_clarification_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RaiseClarificationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:schedule-coordination-call":{"post":{"summary":"Schedule Coordination Call","operationId":"schedule_coordination_call_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__schedule_coordination_call_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleCoordinationCallRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:accept-response":{"post":{"summary":"Accept Response","operationId":"accept_response_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__accept_response_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:grant":{"post":{"summary":"Grant Eot","operationId":"grant_eot_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__grant_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantEotRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:refuse":{"post":{"summary":"Refuse Eot","operationId":"refuse_eot_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__refuse_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefuseEotRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:record-decision":{"post":{"summary":"Record Eot Decision","description":"COR-1292 — the issuing company records the client's EoT decision on\nits behalf (\"Record client's decision\").","operationId":"record_eot_decision_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__record_decision_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordEotDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:reopen":{"post":{"summary":"Reopen Notice","description":"The issuer reopens a settled or closed notice (COR-1077).\n\n``viewer_org_id`` is REQUIRED and must be the notice's issuing org (403\notherwise). 400 when the note is missing, the status has no ``reopen``\ntransition, the notice was superseded, or a company in\n``await_company_ids`` did not answer (or has no active For-response\nrecipient left). The companies asked again are emailed \"Response\nrequested\".","operationId":"reopen_notice_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__reopen_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReopenNoticeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:close":{"post":{"summary":"Close Notice","description":"Close the notice (COR-352). ``viewer_org_id`` is REQUIRED (422 without\nit) and must be the issuing company, the caller's own (403 otherwise,\nCOR-1082). A closed notice is returned as it is (to that company only).","operationId":"close_notice_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__close_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:revise":{"post":{"summary":"Revise Notice","description":"Open the draft of the notice's next version, or return the one already\nopen (D8). Edit it with the ordinary draft routes (``ETag`` as there),\npublish it with ``:publish-revision``, discard it with ``DELETE\n/notice-drafts/{id}``.\n\n``viewer_org_id`` is REQUIRED and must be the issuing company, the\ncaller's own (403 otherwise). 400 on a closed notice (reopen first), a\ndecided EoT and a type with no revisions (submittals).","operationId":"revise_notice_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__revise_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/revision:summary":{"get":{"summary":"Revision Summary","description":"What the publish step shows for the open revision draft: what changed,\nthe automatic \"what changed\" line (D6) and the checklist of companies\nthat can be asked to answer the new version (D3). Issuing company only\n(403); 404 when no revision draft is open.","operationId":"revision_summary_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__revision_summary_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}:publish-revision":{"post":{"summary":"Publish Revision","description":"Publish the revision draft as the notice's next version (COR-1202).\n\nSame number, same issue date; the new version gets its own PDF, everyone\non the notice is emailed, and the companies in ``await_company_ids`` are\nasked to answer it. Returns the notice as the detail GET does for this\ncompany. Issuing company only (403). 400: no difference from the current\nversion, a closed notice, a decided EoT, a company that cannot be asked.\n404: no such revision draft. 409: the draft or the notice moved since.","operationId":"publish_revision_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__publish_revision_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRevisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/versions/{revision}":{"get":{"summary":"Get Notice Version","description":"One version of the notice: its content, attachments and PDF (E8).\n\n``revision`` 0 is the Original. Visibility is the detail GET's (403 / 404\nthe same), and a company sees the versions from the one it joined at\n(D5): an older one is 404, exactly like one that does not exist.\n``pdf_url`` is signed for 24 h like the detail GET's.","operationId":"get_notice_version_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__versions__revision__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"revision","in":"path","required":true,"schema":{"type":"integer","title":"Revision"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeVersionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/pictures/{picture_id}":{"get":{"summary":"Get Notice Picture","description":"A picture in the notice's text (COR-1310). Visibility is opening a\nversion's: the picture must be in the text of a version the viewer's\ncompany may open. 404 for anything else, as for no such picture.","operationId":"get_notice_picture_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__pictures__picture_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"picture_id","in":"path","required":true,"schema":{"type":"string","title":"Picture Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"image/png":{},"image/jpeg":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/versions/{revision}/pdf:download":{"get":{"summary":"Get Notice Version Pdf Download","description":"A signed link (24 h) to one version's PDF. Same visibility as\n``GET .../versions/{revision}``.","operationId":"get_notice_version_pdf_download_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__versions__revision__pdf_download_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"revision","in":"path","required":true,"schema":{"type":"integer","title":"Revision"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticePdfDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/notices/{notice_id}/versions/{revision}/attachments/{attachment_id}:download":{"get":{"summary":"Get Notice Version Attachment Download","description":"A signed link to one attachment of one version. Same visibility as\n``GET .../versions/{revision}``.","operationId":"get_notice_version_attachment_download_v1_workspaces__workspace_id__projects__project_id__notices__notice_id__versions__revision__attachments__attachment_id__download_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"notice_id","in":"path","required":true,"schema":{"type":"string","title":"Notice Id"}},{"name":"revision","in":"path","required":true,"schema":{"type":"integer","title":"Revision"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}},{"name":"viewer_org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Viewer Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeAttachmentDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notice-notifications":{"get":{"tags":["notice-notifications"],"summary":"List Notifications","operationId":"list_notifications_v1_notice_notifications_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeNotificationListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notice-notifications/log/emails":{"get":{"tags":["notice-notifications"],"summary":"List Notification Email Log","description":"The admin log's EMAIL view (COR-595 slice 4b): every notice\nnotification email send attempt for ``project_id``, whoever it went to.\nBuilder audience only (COR-1256). Declared before ``/log`` so the literal\npath wins declaration-order matching.","operationId":"list_notification_email_log_v1_notice_notifications_log_emails_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeNotificationEmailLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notice-notifications/log":{"get":{"tags":["notice-notifications"],"summary":"List Notification Log","description":"The admin notification-log view (COR-595) — NOT the personal feed.\n\nEvery notification record written for ``project_id`` regardless of\nrecipient, so a builder admin can see what the notice platform notified.\n``project_id`` is REQUIRED: these records carry no workspace_id, so a\nproject is the only sound scoping key. ``workspace_id`` is REQUIRED too\n(COR-1256): it is where the caller's audience is resolved, and only the\nbuilder's team may read the log. Declared before ``/{notification_id}:read``\nfor the same declaration-order reason as ``/stream``.","operationId":"list_notification_log_v1_notice_notifications_log_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Before"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeNotificationLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notice-notifications/unread-count":{"get":{"tags":["notice-notifications"],"summary":"Unread Count","operationId":"unread_count_v1_notice_notifications_unread_count_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnreadCountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notice-notifications/stream":{"get":{"tags":["notice-notifications"],"summary":"Stream Notifications","description":"Long-lived per-user SSE feed — pushes a frame per new notification.\n\nDeclared as a literal ``/stream`` BEFORE the ``/{notification_id}:read``\nparam route so FastAPI (which matches in declaration order) resolves\n``/stream`` to this handler instead of treating ``stream`` as a\n``notification_id``.\n\nResume cursor priority: the ``Last-Event-ID`` request header (EventSource\nsends it automatically on reconnect) wins; a ``last_event_id`` query param\nis a manual fallback. Either is parsed as an ISO datetime → ``since``;\nabsent/invalid → now. ``project_id`` optionally narrows to one project feed.","operationId":"stream_notifications_v1_notice_notifications_stream_get","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"last_event_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Event Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notice-notifications/{notification_id}:read":{"put":{"tags":["notice-notifications"],"summary":"Mark Read","operationId":"mark_read_v1_notice_notifications__notification_id__read_put","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeNotificationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notice-notifications:read-all":{"put":{"tags":["notice-notifications"],"summary":"Mark All Read","operationId":"mark_all_read_v1_notice_notifications_read_all_put","parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkAllReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/meeting-minutes":{"get":{"tags":["meeting-minutes"],"summary":"List Meeting Minutes","operationId":"list_meeting_minutes_v1_workspaces__workspace_id__projects__project_id__meeting_minutes_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["meeting-minutes"],"summary":"Create Meeting Minutes","operationId":"create_meeting_minutes_v1_workspaces__workspace_id__projects__project_id__meeting_minutes_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/meeting-minutes/{minutes_id}":{"get":{"tags":["meeting-minutes"],"summary":"Get Meeting Minutes","operationId":"get_meeting_minutes_v1_workspaces__workspace_id__projects__project_id__meeting_minutes__minutes_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"minutes_id","in":"path","required":true,"schema":{"type":"string","title":"Minutes Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["meeting-minutes"],"summary":"Patch Meeting Minutes","operationId":"patch_meeting_minutes_v1_workspaces__workspace_id__projects__project_id__meeting_minutes__minutes_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"minutes_id","in":"path","required":true,"schema":{"type":"string","title":"Minutes Id"}},{"name":"if-match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"If-Match"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["meeting-minutes"],"summary":"Delete Meeting Minutes","operationId":"delete_meeting_minutes_v1_workspaces__workspace_id__projects__project_id__meeting_minutes__minutes_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"minutes_id","in":"path","required":true,"schema":{"type":"string","title":"Minutes Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/meeting-minutes/{minutes_id}:preview-pdf":{"post":{"tags":["meeting-minutes"],"summary":"Preview Meeting Minutes Pdf","description":"The draft rendered as a DRAFT-marked PDF. Nothing is stored or sent.","operationId":"preview_meeting_minutes_pdf_v1_workspaces__workspace_id__projects__project_id__meeting_minutes__minutes_id__preview_pdf_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"minutes_id","in":"path","required":true,"schema":{"type":"string","title":"Minutes Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"The DRAFT PDF.","content":{"application/pdf":{}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/meeting-minutes/{minutes_id}:issue":{"post":{"tags":["meeting-minutes"],"summary":"Issue Meeting Minutes","operationId":"issue_meeting_minutes_v1_workspaces__workspace_id__projects__project_id__meeting_minutes__minutes_id__issue_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"minutes_id","in":"path","required":true,"schema":{"type":"string","title":"Minutes Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/meeting-minutes/{minutes_id}/pdf:download":{"get":{"tags":["meeting-minutes"],"summary":"Download Meeting Minutes Pdf","description":"A signed link to the issued PDF, minted on click.","operationId":"download_meeting_minutes_pdf_v1_workspaces__workspace_id__projects__project_id__meeting_minutes__minutes_id__pdf_download_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"minutes_id","in":"path","required":true,"schema":{"type":"string","title":"Minutes Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingMinutesPdfDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/meeting-minutes-templates":{"get":{"tags":["meeting-minutes"],"summary":"List Meeting Minutes Templates","operationId":"list_meeting_minutes_templates_v1_workspaces__workspace_id__projects__project_id__meeting_minutes_templates_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinutesTemplateListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["meeting-minutes"],"summary":"Put Meeting Minutes Template","operationId":"put_meeting_minutes_template_v1_workspaces__workspace_id__projects__project_id__meeting_minutes_templates_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"if-match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"If-Match"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinutesTemplatePutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinutesTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/meeting-minutes-templates/{template_id}":{"get":{"tags":["meeting-minutes"],"summary":"Get Meeting Minutes Template","operationId":"get_meeting_minutes_template_v1_workspaces__workspace_id__projects__project_id__meeting_minutes_templates__template_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Org Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinutesTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["meeting-minutes"],"summary":"Delete Meeting Minutes Template","operationId":"delete_meeting_minutes_template_v1_workspaces__workspace_id__projects__project_id__meeting_minutes_templates__template_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"org_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Org Id"}},{"name":"if-match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"If-Match"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/calendar/ds-site-forms/{form_id}/event":{"post":{"tags":["calendar"],"summary":"Schedule Event","description":"Create the record's Outlook event (the caller becomes organiser) or\nupdate the one it has — only its organiser may update it.","operationId":"schedule_event_v1_workspaces__workspace_id__calendar_ds_site_forms__form_id__event_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["calendar"],"summary":"Event Status","operationId":"event_status_v1_workspaces__workspace_id__calendar_ds_site_forms__form_id__event_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/calendar/ds-site-forms/{form_id}/event/cancel":{"post":{"tags":["calendar"],"summary":"Cancel Event","description":"Cancel the Outlook meeting. Only its organiser may; anyone else unlinks.","operationId":"cancel_event_v1_workspaces__workspace_id__calendar_ds_site_forms__form_id__event_cancel_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CommentIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/calendar/ds-site-forms/{form_id}/event/unlink":{"post":{"tags":["calendar"],"summary":"Unlink Event","operationId":"unlink_event_v1_workspaces__workspace_id__calendar_ds_site_forms__form_id__event_unlink_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/calendar/ds-site-forms/{form_id}/event/adopt":{"post":{"tags":["calendar"],"summary":"Adopt Event","description":"Link the record to an event already in the caller's calendar.","operationId":"adopt_event_v1_workspaces__workspace_id__calendar_ds_site_forms__form_id__event_adopt_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdoptIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/calendar/ds-site-forms/{form_id}/event/link-from":{"post":{"tags":["calendar"],"summary":"Link From","description":"Give this record the series another record is linked to (Next meeting).","operationId":"link_from_v1_workspaces__workspace_id__calendar_ds_site_forms__form_id__event_link_from_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkFromRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/calendar/ds-site-forms/{form_id}/event/next-occurrence":{"get":{"tags":["calendar"],"summary":"Next Occurrence","operationId":"next_occurrence_v1_workspaces__workspace_id__calendar_ds_site_forms__form_id__event_next_occurrence_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}},{"name":"after","in":"query","required":true,"schema":{"type":"string","format":"date","description":"A local date; the first occurrence after it","title":"After"},"description":"A local date; the first occurrence after it"},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/NextOccurrenceOut"},{"type":"null"}],"title":"Response Next Occurrence V1 Workspaces  Workspace Id  Calendar Ds Site Forms  Form Id  Event Next Occurrence Get"}}}},"204":{"description":"No further occurrence within a year"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/calendar/ds-site-forms/lookup":{"post":{"tags":["calendar"],"summary":"Lookup Links","description":"The links among a page of records, keyed by form id (the register's\nCalendar column).","operationId":"lookup_links_v1_workspaces__workspace_id__calendar_ds_site_forms_lookup_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/calendar/upcoming":{"get":{"tags":["calendar"],"summary":"Upcoming","description":"The caller's calendar from now, one row per series (the Import picker).","operationId":"upcoming_v1_workspaces__workspace_id__calendar_upcoming_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":366,"minimum":1,"default":90,"title":"Days"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UpcomingEventOut"},"title":"Response Upcoming V1 Workspaces  Workspace Id  Calendar Upcoming Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices":{"post":{"tags":["devices"],"summary":"Register Device","operationId":"register_device_v1_devices_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceRegisterRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/{app_uuid}":{"put":{"tags":["devices"],"summary":"Update Device","operationId":"update_device_v1_devices__app_uuid__put","parameters":[{"name":"app_uuid","in":"path","required":true,"schema":{"type":"string","title":"App Uuid"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceUpdateTokenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["devices"],"summary":"Get Device","operationId":"get_device_v1_devices__app_uuid__get","parameters":[{"name":"app_uuid","in":"path","required":true,"schema":{"type":"string","title":"App Uuid"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/{app_uuid}/acquire":{"put":{"tags":["devices"],"summary":"Acquire Device","operationId":"acquire_device_v1_devices__app_uuid__acquire_put","parameters":[{"name":"app_uuid","in":"path","required":true,"schema":{"type":"string","title":"App Uuid"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/devices/{app_uuid}/release":{"put":{"tags":["devices"],"summary":"Release Device","operationId":"release_device_v1_devices__app_uuid__release_put","parameters":[{"name":"app_uuid","in":"path","required":true,"schema":{"type":"string","title":"App Uuid"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/opportunities":{"get":{"tags":["opportunities"],"summary":"List Opportunities","operationId":"list_opportunities_v1_workspaces__workspace_id__opportunities_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"client_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"}},{"name":"project_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Type"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"enum":["High","Medium","Low"],"type":"string"},{"type":"null"}],"title":"Priority"}},{"name":"opportunity_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opportunity Source"}},{"name":"min_probability","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"title":"Min Probability"}},{"name":"max_probability","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"title":"Max Probability"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/opportunities/{opportunity_id}":{"get":{"tags":["opportunities"],"summary":"Get Opportunity","operationId":"get_opportunity_v1_workspaces__workspace_id__opportunities__opportunity_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","title":"Opportunity Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["opportunities"],"summary":"Update Opportunity","operationId":"update_opportunity_v1_workspaces__workspace_id__opportunities__opportunity_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","title":"Opportunity Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["opportunities"],"summary":"Delete Opportunity","operationId":"delete_opportunity_v1_workspaces__workspace_id__opportunities__opportunity_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","title":"Opportunity Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/opportunities/{opportunity_id}/comments":{"post":{"tags":["opportunities"],"summary":"Add Comment","operationId":"add_comment_v1_workspaces__workspace_id__opportunities__opportunity_id__comments_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"opportunity_id","in":"path","required":true,"schema":{"type":"string","title":"Opportunity Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/office/connection":{"get":{"tags":["office"],"summary":"Get Connection","operationId":"get_connection_v1_office_connection_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["office"],"summary":"Disconnect","operationId":"disconnect_v1_office_connection_delete","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/office/connection/consent-url":{"post":{"tags":["office"],"summary":"Start Connection","operationId":"start_connection_v1_office_connection_consent_url_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/office/connection/register":{"post":{"tags":["office"],"summary":"Retry Registration","operationId":"retry_registration_v1_office_connection_register_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/office/container":{"get":{"tags":["office"],"summary":"Get Container","operationId":"get_container_v1_office_container_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContainerStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["office"],"summary":"Ensure Container","operationId":"ensure_container_v1_office_container_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EnsureContainerRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContainerStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/office/edit-session":{"post":{"tags":["office"],"summary":"Start Edit Session","operationId":"start_edit_session_v1_office_edit_session_post","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/office/consent/complete":{"post":{"tags":["office"],"summary":"Complete Consent","operationId":"complete_consent_v1_public_office_consent_complete_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentCompleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/office/notifications":{"post":{"tags":["office"],"summary":"Change Notifications","description":"Graph is the caller. Subscription creation validates the URL with a\n``validationToken`` echoed back as text. Every item must name a\nsubscription on one of our containers and carry that container's\n``clientState``; anything else is dropped and logged, and the response is\n202 either way so a probe learns nothing. Verified containers are queued\n(debounced) and the request returns within Microsoft's 3-second budget.","operationId":"change_notifications_v1_public_office_notifications_post","parameters":[{"name":"validationToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validationtoken"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/opportunity-tags":{"get":{"tags":["opportunities"],"summary":"List Tags","operationId":"list_tags_v1_workspaces__workspace_id__opportunity_tags_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["opportunities"],"summary":"Replace Tags","operationId":"replace_tags_v1_workspaces__workspace_id__opportunity_tags_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagsUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/permissions/capabilities":{"get":{"tags":["permissions"],"summary":"List Capabilities","description":"Return the capability catalogue for a workspace's role builder.\n\nThe catalogue itself is global metadata (the same capabilities exist in\nevery workspace), but the *endpoint* is workspace-scoped because the\npermission gate runs against the caller's role assignments in this\nworkspace. Caller must be a WORKSPACE_MANAGER / PRIMARY_COMPANY_ADMIN\nor hold the ``roles:view`` capability.\n\nPass ``?audience=builder`` from the role-builder UI to hide caps that\nonly apply to portal users (and vice versa for engagement-cap admin).","operationId":"list_capabilities_v1_workspaces__workspace_id__permissions_capabilities_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"audience","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional comma-separated audience filter. Values: builder, subcontractor, client, consultant, supplier. Returns only capabilities whose own audiences allow-list intersects the filter. Omit to get the full registry.","title":"Audience"},"description":"Optional comma-separated audience filter. Values: builder, subcontractor, client, consultant, supplier. Returns only capabilities whose own audiences allow-list intersects the filter. Omit to get the full registry."},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CapabilityResponse"},"title":"Response List Capabilities V1 Workspaces  Workspace Id  Permissions Capabilities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/roles":{"get":{"tags":["permissions"],"summary":"List Roles","operationId":"list_roles_v1_workspaces__workspace_id__roles_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomRoleResponse"},"title":"Response List Roles V1 Workspaces  Workspace Id  Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["permissions"],"summary":"Create Role","operationId":"create_role_v1_workspaces__workspace_id__roles_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomRoleCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomRoleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/roles/{role_id}":{"put":{"tags":["permissions"],"summary":"Update Role","operationId":"update_role_v1_workspaces__workspace_id__roles__role_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomRoleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomRoleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["permissions"],"summary":"Delete Role","operationId":"delete_role_v1_workspaces__workspace_id__roles__role_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/roles/{role_id}/assignments":{"get":{"tags":["permissions"],"summary":"List Assignments For Role","operationId":"list_assignments_for_role_v1_workspaces__workspace_id__roles__role_id__assignments_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When set, restricts to assignments effective on this project: workspace-scope rows (inherit everywhere) plus project-scope rows targeting this project exactly.","title":"Project Id"},"description":"When set, restricts to assignments effective on this project: workspace-scope rows (inherit everywhere) plus project-scope rows targeting this project exactly."},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssignmentResponse"},"title":"Response List Assignments For Role V1 Workspaces  Workspace Id  Roles  Role Id  Assignments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users/{user_id}/roles":{"get":{"tags":["permissions"],"summary":"List Role Assignments","description":"List the user's current custom-role assignments in this workspace.\n\nPowers the role-builder UI's \"what does Alice already have\" view —\nused to disable already-granted projects in the batch-assign picker.","operationId":"list_role_assignments_v1_workspaces__workspace_id__users__user_id__roles_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssignmentResponse"},"title":"Response List Role Assignments V1 Workspaces  Workspace Id  Users  User Id  Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["permissions"],"summary":"Assign Role","operationId":"assign_role_v1_workspaces__workspace_id__users__user_id__roles_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users/{user_id}/roles/batch":{"post":{"tags":["permissions"],"summary":"Assign Batch Role","description":"Grant a project-scope role across multiple projects in one call.\n\nIdempotent — already-granted projects are returned in ``skipped`` and not\nduplicated. 400 if the role is workspace-scope (use the single POST .../roles\nendpoint instead).","operationId":"assign_batch_role_v1_workspaces__workspace_id__users__user_id__roles_batch_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchAssignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users/{user_id}/roles/{assignment_id}":{"delete":{"tags":["permissions"],"summary":"Revoke Role","operationId":"revoke_role_v1_workspaces__workspace_id__users__user_id__roles__assignment_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/roles":{"get":{"tags":["permissions"],"summary":"List Project Team Roles","operationId":"list_project_team_roles_v1_workspaces__workspace_id__projects__project_id__roles_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectTeamRoleResponse"},"title":"Response List Project Team Roles V1 Workspaces  Workspace Id  Projects  Project Id  Roles Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/engagements/{engagement_id}/capabilities/available":{"get":{"tags":["permissions"],"summary":"List Available Engagement Capabilities","description":"Return capabilities admins can grant on this engagement.\n\nThe list is narrowed to capabilities whose audience allow-list\nintersects the engagement's ``relationship_type`` SET tags\n(subcontractor / client / consultant / supplier). The role-builder\ncap-picker for portal access should use this endpoint; the generic\n``/workspaces/{ws}/permissions/capabilities?audience=builder``\nendpoint covers the main-app role builder.","operationId":"list_available_engagement_capabilities_v1_workspaces__workspace_id__engagements__engagement_id__capabilities_available_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CapabilityResponse"},"title":"Response List Available Engagement Capabilities V1 Workspaces  Workspace Id  Engagements  Engagement Id  Capabilities Available Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/engagements/{engagement_id}/capabilities":{"get":{"tags":["permissions"],"summary":"List Engagement Capabilities","operationId":"list_engagement_capabilities_v1_workspaces__workspace_id__engagements__engagement_id__capabilities_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementCapabilitiesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["permissions"],"summary":"Grant Engagement Capability","operationId":"grant_engagement_capability_v1_workspaces__workspace_id__engagements__engagement_id__capabilities_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementCapabilityGrantRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementCapabilitiesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/engagements/{engagement_id}/capabilities/{capability_name}":{"delete":{"tags":["permissions"],"summary":"Revoke Engagement Capability","operationId":"revoke_engagement_capability_v1_workspaces__workspace_id__engagements__engagement_id__capabilities__capability_name__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"capability_name","in":"path","required":true,"schema":{"type":"string","title":"Capability Name"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/permissions/superusers":{"get":{"tags":["permissions"],"summary":"List Superusers","operationId":"list_superusers_v1_permissions_superusers_get","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SuperuserResponse"},"title":"Response List Superusers V1 Permissions Superusers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["permissions"],"summary":"Grant Superuser","operationId":"grant_superuser_v1_permissions_superusers_post","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuperuserGrantRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuperuserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/permissions/superusers/{target_user_id}":{"delete":{"tags":["permissions"],"summary":"Revoke Superuser","operationId":"revoke_superuser_v1_permissions_superusers__target_user_id__delete","parameters":[{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/permissions/me/is-superuser":{"get":{"tags":["permissions"],"summary":"Is Superuser","description":"Return whether the current caller is a global superuser.\n\nUnauthenticated callers get 401 from ``get_current_user``. Everyone else\ngets a boolean — there is no permission gate; the answer is about the\ncaller themselves.","operationId":"is_superuser_v1_permissions_me_is_superuser_get","parameters":[{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsSuperuserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/me/permissions":{"get":{"tags":["permissions"],"summary":"Get My Permissions","description":"Return the caller's effective permissions in ``workspace_id``.\n\nSelf-read — no admin gate. The SPA uses this to render buttons /\nroutes correctly. Reading another user's permissions goes through\n``GET /v1/workspaces/{ws}/users/{u}/permissions``, which is admin-gated.","operationId":"get_my_permissions_v1_workspaces__workspace_id__me_permissions_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPermissionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users/{user_id}/permissions":{"get":{"tags":["permissions"],"summary":"Get User Permissions","description":"Return ``user_id``'s effective permissions in ``workspace_id``.\n\nSurfaces the same ``PermissionSet`` the engine builds for runtime\ncapability checks. Powers the per-user \"view granted capabilities\"\nmodal in the role-builder UI. Caller must be a workspace admin or\nhold ``roles:view``.","operationId":"get_user_permissions_v1_workspaces__workspace_id__users__user_id__permissions_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPermissionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements":{"get":{"tags":["global-company-engagements"],"summary":"List Engagements","operationId":"list_engagements_v1_workspaces__workspace_id__global_company_engagements_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"expand","in":"query","required":false,"schema":{"anyOf":[{"const":"target","type":"string"},{"type":"null"}],"title":"Expand"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"relationship_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"],"type":"string"}},{"type":"null"}],"title":"Relationship Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["company","added"],"type":"string","default":"added","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Sort Order"}},{"name":"sort_field_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Field Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EngagementResponse"}},{"$ref":"#/components/schemas/PaginatedEngagementsWithTargetResponse"}],"title":"Response List Engagements V1 Workspaces  Workspace Id  Global Company Engagements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["global-company-engagements"],"summary":"Create Engagement","operationId":"create_engagement_v1_workspaces__workspace_id__global_company_engagements_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/lookup":{"get":{"tags":["global-company-engagements"],"summary":"Lookup Engagement","operationId":"lookup_engagement_v1_workspaces__workspace_id__global_company_engagements_lookup_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"country","in":"query","required":true,"schema":{"enum":["AU","NZ"],"type":"string","title":"Country"}},{"name":"tax_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Tax Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/resolve":{"get":{"tags":["global-company-engagements"],"summary":"Resolve Companies","operationId":"resolve_companies_v1_workspaces__workspace_id__global_company_engagements_resolve_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"directory_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer"},"maxItems":200,"title":"Directory Ids"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveCompaniesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}":{"get":{"tags":["global-company-engagements"],"summary":"Get Engagement","operationId":"get_engagement_v1_workspaces__workspace_id__global_company_engagements__engagement_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["global-company-engagements"],"summary":"Update Engagement","operationId":"update_engagement_v1_workspaces__workspace_id__global_company_engagements__engagement_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["global-company-engagements"],"summary":"Delete Engagement","operationId":"delete_engagement_v1_workspaces__workspace_id__global_company_engagements__engagement_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}/projects":{"get":{"tags":["global-company-engagements"],"summary":"List Engagement Projects","operationId":"list_engagement_projects_v1_workspaces__workspace_id__global_company_engagements__engagement_id__projects_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/by-tax-id":{"post":{"tags":["global-company-engagements"],"summary":"Create Engagement By Tax Id","operationId":"create_engagement_by_tax_id_v1_workspaces__workspace_id__global_company_engagements_by_tax_id_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementCreateByTaxId"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/by-name":{"post":{"tags":["global-company-engagements"],"summary":"Create Engagement By Name","operationId":"create_engagement_by_name_v1_workspaces__workspace_id__global_company_engagements_by_name_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementCreateByName"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}/promote":{"post":{"tags":["global-company-engagements"],"summary":"Promote Engagement","operationId":"promote_engagement_v1_workspaces__workspace_id__global_company_engagements__engagement_id__promote_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementPromoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagement-contacts":{"get":{"tags":["global-company-engagement-contacts"],"summary":"List Contacts","operationId":"list_contacts_v1_workspaces__workspace_id__global_company_engagement_contacts_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["recorded","invited","active","archived"],"type":"string"}},{"type":"null"}],"title":"Status"}},{"name":"engagement_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Engagement Id"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["name_asc","name_desc","company_asc","company_desc","status_custom","date_added_desc"],"type":"string","default":"name_asc","title":"Sort"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedContactsWithCompanyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["global-company-engagement-contacts"],"summary":"Create Contact","operationId":"create_contact_v1_workspaces__workspace_id__global_company_engagement_contacts_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagement-contacts/summary":{"get":{"tags":["global-company-engagement-contacts"],"summary":"Get Contacts Summary","operationId":"get_contacts_summary_v1_workspaces__workspace_id__global_company_engagement_contacts_summary_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"enum":["recorded","invited","active","archived"],"type":"string"}},{"type":"null"}],"title":"Status"}},{"name":"engagement_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"integer"}},{"type":"null"}],"title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagement-contacts/lookup-user":{"get":{"tags":["global-company-engagement-contacts"],"summary":"Lookup User Profile","operationId":"lookup_user_profile_v1_workspaces__workspace_id__global_company_engagement_contacts_lookup_user_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"email","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":255,"title":"Email"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagement-contacts/{contact_id}":{"patch":{"tags":["global-company-engagement-contacts"],"summary":"Update Contact","operationId":"update_contact_v1_workspaces__workspace_id__global_company_engagement_contacts__contact_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactWithCompanyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagement-contacts/{contact_id}/invite-preview":{"post":{"tags":["global-company-engagement-contacts"],"summary":"Invite Preview","operationId":"invite_preview_v1_workspaces__workspace_id__global_company_engagement_contacts__contact_id__invite_preview_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagement-contacts/bulk-invite":{"post":{"tags":["global-company-engagement-contacts"],"summary":"Start Bulk Invite","operationId":"start_bulk_invite_v1_workspaces__workspace_id__global_company_engagement_contacts_bulk_invite_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkInviteRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkInviteJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagement-contacts/bulk-invite/{job_id}":{"get":{"tags":["global-company-engagement-contacts"],"summary":"Get Bulk Invite Job","operationId":"get_bulk_invite_job_v1_workspaces__workspace_id__global_company_engagement_contacts_bulk_invite__job_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkInviteJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagement-contacts/{contact_id}/invite":{"post":{"tags":["global-company-engagement-contacts"],"summary":"Invite Contact","operationId":"invite_contact_v1_workspaces__workspace_id__global_company_engagement_contacts__contact_id__invite_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"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"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}/performance-reviews":{"get":{"tags":["global-company-engagement-performance-reviews"],"summary":"List Reviews","operationId":"list_reviews_v1_workspaces__workspace_id__global_company_engagements__engagement_id__performance_reviews_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["global-company-engagement-performance-reviews"],"summary":"Create Review","operationId":"create_review_v1_workspaces__workspace_id__global_company_engagements__engagement_id__performance_reviews_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}/performance-reviews/{review_id}":{"patch":{"tags":["global-company-engagement-performance-reviews"],"summary":"Update Review","operationId":"update_review_v1_workspaces__workspace_id__global_company_engagements__engagement_id__performance_reviews__review_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"review_id","in":"path","required":true,"schema":{"type":"integer","title":"Review Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["global-company-engagement-performance-reviews"],"summary":"Delete Review","operationId":"delete_review_v1_workspaces__workspace_id__global_company_engagements__engagement_id__performance_reviews__review_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"review_id","in":"path","required":true,"schema":{"type":"integer","title":"Review Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}/compliance-items":{"get":{"tags":["global-company-engagement-compliance-items"],"summary":"List Items","operationId":"list_items_v1_workspaces__workspace_id__global_company_engagements__engagement_id__compliance_items_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"statuses","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated derived statuses to return, e.g. 'current,expiring'. Omit for every status. Ask for 'current,expiring' when the number is going onto a document: the default ordering is severity-ascending, so an expired item comes back first.","title":"Statuses"},"description":"Comma-separated derived statuses to return, e.g. 'current,expiring'. Omit for every status. Ask for 'current,expiring' when the number is going onto a document: the default ordering is severity-ascending, so an expired item comes back first."},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["global-company-engagement-compliance-items"],"summary":"Create Item","operationId":"create_item_v1_workspaces__workspace_id__global_company_engagements__engagement_id__compliance_items_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}/compliance-items/{item_id}":{"get":{"tags":["global-company-engagement-compliance-items"],"summary":"Get Item","operationId":"get_item_v1_workspaces__workspace_id__global_company_engagements__engagement_id__compliance_items__item_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceItemDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["global-company-engagement-compliance-items"],"summary":"Update Item","operationId":"update_item_v1_workspaces__workspace_id__global_company_engagements__engagement_id__compliance_items__item_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}/compliance-items/{item_id}/renew":{"post":{"tags":["global-company-engagement-compliance-items"],"summary":"Renew Item","operationId":"renew_item_v1_workspaces__workspace_id__global_company_engagements__engagement_id__compliance_items__item_id__renew_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceRenew"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}/compliance-items/{item_id}/archive":{"post":{"tags":["global-company-engagement-compliance-items"],"summary":"Archive Item","operationId":"archive_item_v1_workspaces__workspace_id__global_company_engagements__engagement_id__compliance_items__item_id__archive_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComplianceItemResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/global-company-engagements":{"get":{"tags":["global-company-engagement-projects"],"summary":"List Project Engagements","operationId":"list_project_engagements_v1_workspaces__workspace_id__projects__project_id__global_company_engagements_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectEngagementResponse"},"title":"Response List Project Engagements V1 Workspaces  Workspace Id  Projects  Project Id  Global Company Engagements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["global-company-engagement-projects"],"summary":"Link Engagement To Project","operationId":"link_engagement_to_project_v1_workspaces__workspace_id__projects__project_id__global_company_engagements_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkEngagementToProjectRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementProjectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/global-company-engagements/available":{"get":{"tags":["global-company-engagement-projects"],"summary":"List Available Engagements","operationId":"list_available_engagements_v1_workspaces__workspace_id__projects__project_id__global_company_engagements_available_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailableEngagementResponse"},"title":"Response List Available Engagements V1 Workspaces  Workspace Id  Projects  Project Id  Global Company Engagements Available Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/global-company-engagements/{engagement_project_id}":{"delete":{"tags":["global-company-engagement-projects"],"summary":"Unlink Engagement From Project","operationId":"unlink_engagement_from_project_v1_workspaces__workspace_id__projects__project_id__global_company_engagements__engagement_project_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"engagement_project_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/engagement-contacts/{contact_id}:invite-to-project":{"post":{"tags":["global-company-engagement-projects"],"summary":"Invite Contact To Project","operationId":"invite_contact_to_project_v1_workspaces__workspace_id__projects__project_id__engagement_contacts__contact_id__invite_to_project_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/engagement-contacts/{contact_id}:remove-from-project":{"post":{"tags":["global-company-engagement-projects"],"summary":"Remove Contact From Project","operationId":"remove_contact_from_project_v1_workspaces__workspace_id__projects__project_id__engagement_contacts__contact_id__remove_from_project_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-imports":{"post":{"tags":["global-company-imports"],"summary":"Upload Csv","operationId":"upload_csv_v1_workspaces__workspace_id__global_company_imports_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_csv_v1_workspaces__workspace_id__global_company_imports_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-imports/analyze-charset":{"post":{"tags":["global-company-imports"],"summary":"Analyze Charset","description":"AI helper for a failed import: the user re-uploads their CSV and Gemini\nPro flags characters the latin1 directory columns can't store. Stateless —\nno job is created. Declared before ``/{job_id}`` so the static path wins.","operationId":"analyze_charset_v1_workspaces__workspace_id__global_company_imports_analyze_charset_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_analyze_charset_v1_workspaces__workspace_id__global_company_imports_analyze_charset_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeCharsetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-imports/{job_id}":{"get":{"tags":["global-company-imports"],"summary":"Get Import","operationId":"get_import_v1_workspaces__workspace_id__global_company_imports__job_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-imports/{job_id}/rows":{"get":{"tags":["global-company-imports"],"summary":"List Rows","operationId":"list_rows_v1_workspaces__workspace_id__global_company_imports__job_id__rows_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["pending","matched","will_create","already_in_workspace","needs_attention","skipped","committed"],"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedImportRowsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-imports/{job_id}/groups":{"get":{"tags":["global-company-imports"],"summary":"List Groups","operationId":"list_groups_v1_workspaces__workspace_id__global_company_imports__job_id__groups_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedCompanyGroupsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-imports/{job_id}/commit":{"post":{"tags":["global-company-imports"],"summary":"Commit Import","description":"Kick off the atomic commit. Returns the SOURCE JobRun (now in\nFINALIZING) — the FE keeps polling its /imports/{id} endpoint and\nwill see it advance to COMPLETED when the commit job finishes.","operationId":"commit_import_v1_workspaces__workspace_id__global_company_imports__job_id__commit_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-imports/{job_id}/rows/{row_number}":{"patch":{"tags":["global-company-imports"],"summary":"Fix Row","operationId":"fix_row_v1_workspaces__workspace_id__global_company_imports__job_id__rows__row_number__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"row_number","in":"path","required":true,"schema":{"type":"integer","title":"Row Number"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowFixRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RowFixResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users":{"get":{"tags":["user-directory"],"summary":"List Users","operationId":"list_users_v1_workspaces__workspace_id__users_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"name_asc","title":"Sort"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedCompanyUsersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users/lookup":{"get":{"tags":["user-directory"],"summary":"Lookup User","operationId":"lookup_user_v1_workspaces__workspace_id__users_lookup_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"email","in":"query","required":true,"schema":{"type":"string","minLength":3,"maxLength":255,"title":"Email"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLookupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users/invite":{"post":{"tags":["user-directory"],"summary":"Invite User","operationId":"invite_user_v1_workspaces__workspace_id__users_invite_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users/{kinde_id}/resend-invite":{"post":{"tags":["user-directory"],"summary":"Resend Invite","operationId":"resend_invite_v1_workspaces__workspace_id__users__kinde_id__resend_invite_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"kinde_id","in":"path","required":true,"schema":{"type":"string","title":"Kinde Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteUserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users/{kinde_id}/projects":{"get":{"tags":["user-directory"],"summary":"Get User Projects","operationId":"get_user_projects_v1_workspaces__workspace_id__users__kinde_id__projects_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"kinde_id","in":"path","required":true,"schema":{"type":"string","title":"Kinde Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectAccessResponse"},"title":"Response Get User Projects V1 Workspaces  Workspace Id  Users  Kinde Id  Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/users/{kinde_id}/projects/{project_id}":{"post":{"tags":["user-directory"],"summary":"Add User To Project","operationId":"add_user_to_project_v1_workspaces__workspace_id__users__kinde_id__projects__project_id__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"kinde_id","in":"path","required":true,"schema":{"type":"string","title":"Kinde Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["user-directory"],"summary":"Remove User From Project","operationId":"remove_user_from_project_v1_workspaces__workspace_id__users__kinde_id__projects__project_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"kinde_id","in":"path","required":true,"schema":{"type":"string","title":"Kinde Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/combined-directory":{"get":{"tags":["combined-directory"],"summary":"Get Combined Directory","operationId":"get_combined_directory_v1_workspaces__workspace_id__combined_directory_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CombinedDirectoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/members":{"get":{"tags":["project-distribution"],"summary":"List Members","operationId":"list_members_v1_workspaces__workspace_id__projects__project_id__members_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectMembersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/distribution-list":{"get":{"tags":["project-distribution"],"summary":"Get Distribution List","operationId":"get_distribution_list_v1_workspaces__workspace_id__projects__project_id__distribution_list_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["project-distribution"],"summary":"Put Distribution List","operationId":"put_distribution_list_v1_workspaces__workspace_id__projects__project_id__distribution_list_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributionListRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/distribution-lists":{"get":{"tags":["project-distribution"],"summary":"List Distribution Lists","operationId":"list_distribution_lists_v1_workspaces__workspace_id__projects__project_id__distribution_lists_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributionListsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["project-distribution"],"summary":"Create Distribution List","operationId":"create_distribution_list_v1_workspaces__workspace_id__projects__project_id__distribution_lists_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDistributionListRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributionListSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/distribution-lists/{list_id}":{"patch":{"tags":["project-distribution"],"summary":"Rename Distribution List","operationId":"rename_distribution_list_v1_workspaces__workspace_id__projects__project_id__distribution_lists__list_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameDistributionListRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["project-distribution"],"summary":"Delete Distribution List","operationId":"delete_distribution_list_v1_workspaces__workspace_id__projects__project_id__distribution_lists__list_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/distribution-lists/{list_id}/members":{"get":{"tags":["project-distribution"],"summary":"Get Distribution List Members","operationId":"get_distribution_list_members_v1_workspaces__workspace_id__projects__project_id__distribution_lists__list_id__members_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["project-distribution"],"summary":"Put Distribution List Members","operationId":"put_distribution_list_members_v1_workspaces__workspace_id__projects__project_id__distribution_lists__list_id__members_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributionListRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DistributionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/register-distribution-list":{"get":{"tags":["project-distribution"],"summary":"Get Register Distribution List","operationId":"get_register_distribution_list_v1_workspaces__workspace_id__projects__project_id__register_distribution_list_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterDistributionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["project-distribution"],"summary":"Put Register Distribution List","operationId":"put_register_distribution_list_v1_workspaces__workspace_id__projects__project_id__register_distribution_list_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterDistributionListRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterDistributionListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/ds-site-settings":{"get":{"tags":["project-distribution"],"summary":"Get Ds Site Settings","operationId":"get_ds_site_settings_v1_workspaces__workspace_id__projects__project_id__ds_site_settings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsSiteSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["project-distribution"],"summary":"Put Ds Site Settings","operationId":"put_ds_site_settings_v1_workspaces__workspace_id__projects__project_id__ds_site_settings_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsSiteSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DsSiteSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/register-portal-access":{"get":{"tags":["project-distribution"],"summary":"Get Register Portal Access","operationId":"get_register_portal_access_v1_workspaces__workspace_id__projects__project_id__register_portal_access_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPortalAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["project-distribution"],"summary":"Put Register Portal Access","operationId":"put_register_portal_access_v1_workspaces__workspace_id__projects__project_id__register_portal_access_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPortalAccessRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterPortalAccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/register/who-has-it/summary":{"post":{"tags":["register-who-has-it"],"summary":"Who Has It Summary","operationId":"who_has_it_summary_v1_workspaces__workspace_id__projects__project_id__register_who_has_it_summary_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhoHasItSummaryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhoHasItSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/register/who-has-it/{document_series_id}":{"get":{"tags":["register-who-has-it"],"summary":"Who Has It Detail","operationId":"who_has_it_detail_v1_workspaces__workspace_id__projects__project_id__register_who_has_it__document_series_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"document_series_id","in":"path","required":true,"schema":{"type":"string","title":"Document Series Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhoHasItDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/projects/{project_id}/register/who-has-it/{document_series_id}/send":{"post":{"tags":["register-who-has-it"],"summary":"Who Has It Send","operationId":"who_has_it_send_v1_workspaces__workspace_id__projects__project_id__register_who_has_it__document_series_id__send_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"integer","title":"Project Id"}},{"name":"document_series_id","in":"path","required":true,"schema":{"type":"string","title":"Document Series Id"}},{"name":"_session_factory","in":"query","required":false,"schema":{"title":" Session Factory"}},{"name":"_region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":" Region"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhoHasItSendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhoHasItSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/company-custom-fields":{"get":{"tags":["company-custom-fields"],"summary":"List Fields","operationId":"list_fields_v1_workspaces__workspace_id__company_custom_fields_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["company-custom-fields"],"summary":"Create Field","operationId":"create_field_v1_workspaces__workspace_id__company_custom_fields_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/company-custom-fields/{field_id}":{"patch":{"tags":["company-custom-fields"],"summary":"Update Field","operationId":"update_field_v1_workspaces__workspace_id__company_custom_fields__field_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"field_id","in":"path","required":true,"schema":{"type":"integer","title":"Field Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/company-custom-fields/{field_id}/archive":{"post":{"tags":["company-custom-fields"],"summary":"Archive Field","operationId":"archive_field_v1_workspaces__workspace_id__company_custom_fields__field_id__archive_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"field_id","in":"path","required":true,"schema":{"type":"integer","title":"Field Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/company-custom-fields/reorder":{"post":{"tags":["company-custom-fields"],"summary":"Reorder Fields","operationId":"reorder_fields_v1_workspaces__workspace_id__company_custom_fields_reorder_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Reorder Fields V1 Workspaces  Workspace Id  Company Custom Fields Reorder Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/global-company-engagements/{engagement_id}/custom-field-values":{"put":{"tags":["company-custom-field-values"],"summary":"Set Custom Field Values","operationId":"set_custom_field_values_v1_workspaces__workspace_id__global_company_engagements__engagement_id__custom_field_values_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"integer","title":"Engagement Id"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetValuesRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/tasks/{job_type}/{job_id}":{"post":{"tags":["internal"],"summary":"Dispatch Task","operationId":"dispatch_task_internal_tasks__job_type___job_id__post","parameters":[{"name":"job_type","in":"path","required":true,"schema":{"type":"string","title":"Job Type"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/push":{"post":{"tags":["internal"],"summary":"Push","operationId":"push_internal_push_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalPushRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalPushResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/notices/ingest":{"post":{"tags":["internal"],"summary":"Ingest","operationId":"ingest_internal_notices_ingest_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeIngestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/correspondence/ingest-raw-mime":{"post":{"tags":["internal"],"summary":"Ingest Raw Mime","operationId":"ingest_raw_mime_internal_correspondence_ingest_raw_mime_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_ingest_raw_mime_internal_correspondence_ingest_raw_mime_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RawMimeIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/correspondence/search-reconcile":{"post":{"tags":["internal"],"summary":"Search Reconcile","operationId":"search_reconcile_internal_correspondence_search_reconcile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchReconcileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchReconcileResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/notices/signoff-complete":{"post":{"tags":["internal"],"summary":"Signoff Complete","operationId":"signoff_complete_internal_notices_signoff_complete_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-apigateway-api-userinfo","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Apigateway-Api-Userinfo"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeSignoffRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeSignoffResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/calendar/events":{"post":{"tags":["internal"],"summary":"Upsert Event","operationId":"upsert_event_internal_calendar_events_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/calendar/events/cancel":{"post":{"tags":["internal"],"summary":"Cancel Event","operationId":"cancel_event_internal_calendar_events_cancel_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/calendar/events/unlink":{"post":{"tags":["internal"],"summary":"Unlink Event","operationId":"unlink_event_internal_calendar_events_unlink_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/calendar/events/adopt":{"post":{"tags":["internal"],"summary":"Adopt Event","operationId":"adopt_event_internal_calendar_events_adopt_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdoptEventRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/calendar/events/status":{"post":{"tags":["internal"],"summary":"Event Status","operationId":"event_status_internal_calendar_events_status_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/calendar/upcoming":{"post":{"tags":["internal"],"summary":"Upcoming","operationId":"upcoming_internal_calendar_upcoming_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpcomingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UpcomingEventOut"},"title":"Response Upcoming Internal Calendar Upcoming Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/office/tasks/sync":{"post":{"tags":["internal"],"summary":"Sync Container","operationId":"sync_container_internal_office_tasks_sync_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/office/tasks/register":{"post":{"tags":["internal"],"summary":"Register Tenant","operationId":"register_tenant_internal_office_tasks_register_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterTaskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ds-site/tasks/drawings-list-sync":{"post":{"tags":["internal"],"summary":"Sync Drawings List","operationId":"sync_drawings_list_internal_ds_site_tasks_drawings_list_sync_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrawingsListSyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync Drawings List Internal Ds Site Tasks Drawings List Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/ds-site/pin-sync":{"post":{"tags":["internal"],"summary":"Sync Pin","operationId":"sync_pin_internal_ds_site_pin_sync_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinSyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Sync Pin Internal Ds Site Pin Sync Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/calendar/tasks/notifications":{"post":{"tags":["internal"],"summary":"Process Notifications","operationId":"process_notifications_internal_calendar_tasks_notifications_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/calendar/reconcile":{"post":{"tags":["internal"],"summary":"Reconcile","operationId":"reconcile_internal_calendar_reconcile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/calendar/subscriptions/renew":{"post":{"tags":["internal"],"summary":"Renew Subscriptions","operationId":"renew_subscriptions_internal_calendar_subscriptions_renew_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenewReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health Check","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Check Health Get"}}}}}}}},"components":{"schemas":{"AcceptResponseRequest":{"properties":{"chosen_response_edge_id":{"type":"string","minLength":1,"title":"Chosen Response Edge Id"}},"additionalProperties":false,"type":"object","required":["chosen_response_edge_id"],"title":"AcceptResponseRequest"},"AccountsResponse":{"properties":{"google":{"$ref":"#/components/schemas/_ProviderStatus"},"microsoft":{"$ref":"#/components/schemas/_ProviderStatus"}},"type":"object","required":["google","microsoft"],"title":"AccountsResponse"},"AcknowledgeRequest":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"attachments":{"items":{"$ref":"#/components/schemas/app__schemas__notices__notice__ReplyAttachmentRef"},"type":"array","title":"Attachments","default":[]}},"additionalProperties":false,"type":"object","title":"AcknowledgeRequest","description":"Body for ``POST /{notice_id}:acknowledge`` (COR-810).\n\nDeliberately has NO ``company_id``. The acknowledging org is the caller's\nown ``viewer_org_id`` query param, exactly as on the read endpoints —\nthere is no on-behalf-of acknowledgement, so a field naming a different\nparty would be a way to forge one."},"ActionAssigneeRequest":{"properties":{"kind":{"type":"string","enum":["person","company"],"title":"Kind"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"ActionAssigneeRequest","description":"One assignee of an action (COR-1096): a snapshot of the attendee row\nit was picked from. A ``kind`` other than person / company is a 422; the\nfield rules (a person's name or email, a company's name, the lengths)\nare the domain's — a 400."},"ActionAssigneeResponse":{"properties":{"kind":{"type":"string","enum":["person","company"],"title":"Kind"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["kind","name","company_name","company_id","email"],"title":"ActionAssigneeResponse"},"ActionResponse":{"properties":{"action":{"type":"string","title":"Action"},"label":{"type":"string","title":"Label"},"reason":{"type":"string","title":"Reason"},"tier":{"type":"string","title":"Tier"},"edge_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edge Type"},"target_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"},"recommended":{"type":"boolean","title":"Recommended"},"counts_as_response":{"type":"boolean","title":"Counts As Response","default":false}},"additionalProperties":false,"type":"object","required":["action","label","reason","tier","edge_type","target_type","recommended"],"title":"ActionResponse","description":"A single affordance tile in the response rail (COR-343)."},"AddCommentRequest":{"properties":{"body":{"type":"string","maxLength":10000,"minLength":0,"title":"Body"},"body_html":{"anyOf":[{"type":"string","maxLength":40000},{"type":"null"}],"title":"Body Html"},"visible_to_recipients":{"type":"boolean","title":"Visible To Recipients","default":false},"attachments":{"items":{"$ref":"#/components/schemas/app__schemas__notices__notice__ReplyAttachmentRef"},"type":"array","title":"Attachments","default":[]}},"additionalProperties":false,"type":"object","required":["body"],"title":"AddCommentRequest"},"AddressBlock":{"properties":{"address_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Line"},"suburb_city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suburb City"},"state_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Region"},"postcode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postcode"}},"additionalProperties":false,"type":"object","title":"AddressBlock","description":"Structured physical address for an engagement."},"AdoptEventRequest":{"properties":{"source":{"$ref":"#/components/schemas/SourceRefIn"},"actor_kinde_id":{"type":"string","title":"Actor Kinde Id"},"event_id":{"type":"string","title":"Event Id"}},"type":"object","required":["source","actor_kinde_id","event_id"],"title":"AdoptEventRequest"},"AdoptIn":{"properties":{"event_id":{"type":"string","title":"Event Id"}},"type":"object","required":["event_id"],"title":"AdoptIn"},"AiUsageRunResponse":{"properties":{"workflow":{"type":"string","title":"Workflow"},"workflow_label":{"type":"string","title":"Workflow Label"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"run_id":{"type":"string","title":"Run Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"},"model_calls":{"type":"integer","title":"Model Calls"},"cached_reads":{"type":"integer","title":"Cached Reads"},"failed_calls":{"type":"integer","title":"Failed Calls"},"input_tokens":{"type":"integer","title":"Input Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"thinking_tokens":{"type":"integer","title":"Thinking Tokens"},"cost_usd":{"type":"number","title":"Cost Usd"},"unpriced_calls":{"type":"integer","title":"Unpriced Calls"}},"type":"object","required":["workflow","workflow_label","workspace_id","project_id","run_id","user_id","started_at","ended_at","model_calls","cached_reads","failed_calls","input_tokens","output_tokens","thinking_tokens","cost_usd","unpriced_calls"],"title":"AiUsageRunResponse"},"AiUsageRunsResponse":{"properties":{"currency":{"type":"string","title":"Currency"},"runs":{"items":{"$ref":"#/components/schemas/AiUsageRunResponse"},"type":"array","title":"Runs"}},"type":"object","required":["currency","runs"],"title":"AiUsageRunsResponse"},"AiUsageSummaryResponse":{"properties":{"from_period":{"type":"string","title":"From Period"},"to_period":{"type":"string","title":"To Period"},"currency":{"type":"string","title":"Currency"},"workflows":{"items":{"$ref":"#/components/schemas/AiUsageWorkflowResponse"},"type":"array","title":"Workflows"},"totals":{"items":{"$ref":"#/components/schemas/AiUsageSummaryRowResponse"},"type":"array","title":"Totals"},"by_model":{"items":{"$ref":"#/components/schemas/AiUsageSummaryRowResponse"},"type":"array","title":"By Model"}},"type":"object","required":["from_period","to_period","currency","workflows","totals","by_model"],"title":"AiUsageSummaryResponse"},"AiUsageSummaryRowResponse":{"properties":{"workflow":{"type":"string","title":"Workflow"},"workflow_label":{"type":"string","title":"Workflow Label"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"period":{"type":"string","title":"Period"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"runs":{"type":"integer","title":"Runs"},"model_calls":{"type":"integer","title":"Model Calls"},"cached_reads":{"type":"integer","title":"Cached Reads"},"failed_calls":{"type":"integer","title":"Failed Calls"},"input_tokens":{"type":"integer","title":"Input Tokens"},"cached_tokens":{"type":"integer","title":"Cached Tokens"},"output_tokens":{"type":"integer","title":"Output Tokens"},"thinking_tokens":{"type":"integer","title":"Thinking Tokens"},"cost_usd":{"type":"number","title":"Cost Usd"},"unpriced_calls":{"type":"integer","title":"Unpriced Calls"}},"type":"object","required":["workflow","workflow_label","workspace_id","period","model","runs","model_calls","cached_reads","failed_calls","input_tokens","cached_tokens","output_tokens","thinking_tokens","cost_usd","unpriced_calls"],"title":"AiUsageSummaryRowResponse"},"AiUsageWorkflowResponse":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"}},"type":"object","required":["key","label"],"title":"AiUsageWorkflowResponse"},"AllProjectsNoticeTemplateListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AllProjectsNoticeTemplateResponse"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"AllProjectsNoticeTemplateListResponse"},"AllProjectsNoticeTemplateResponse":{"properties":{"type_code":{"type":"string","title":"Type Code"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"body_field_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Field Key"},"body_field_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Field Label"},"role_recipients":{"items":{"$ref":"#/components/schemas/RoleRecipientResponse"},"type":"array","title":"Role Recipients"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["type_code","body","body_html","body_field_key","body_field_label","role_recipients","updated_by","updated_at"],"title":"AllProjectsNoticeTemplateResponse"},"AllProjectsNoticeTemplateUpdateRequest":{"properties":{"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"role_recipients":{"items":{"$ref":"#/components/schemas/RoleRecipientRequest"},"type":"array","title":"Role Recipients"}},"additionalProperties":false,"type":"object","title":"AllProjectsNoticeTemplateUpdateRequest","description":"``PUT /workspaces/{workspace_id}/notice-templates/{type_code}`` — full\nreplace.\n\n``body`` and ``body_html`` behave exactly as on a per-project template\n(``NoticeTemplateUpdateRequest``): a blank body is \"no default body\", and\nwhen ``body_html`` is sent the backend sanitises it and derives ``body``\nfrom it. A template with neither a body nor a role recipient is a ``400``:\nclearing a template is ``DELETE``."},"AnalyzeCharsetResponse":{"properties":{"has_issues":{"type":"boolean","title":"Has Issues"},"summary":{"type":"string","title":"Summary"},"issues":{"items":{"$ref":"#/components/schemas/CharsetIssueResponse"},"type":"array","title":"Issues"}},"type":"object","required":["has_issues","summary","issues"],"title":"AnalyzeCharsetResponse","description":"200 response for POST /analyze-charset — the AI's findings for one\nre-uploaded CSV."},"ArchiveBySeriesRequest":{"properties":{"document_series_id":{"type":"string","title":"Document Series Id"}},"additionalProperties":false,"type":"object","required":["document_series_id"],"title":"ArchiveBySeriesRequest"},"ArchiveBySeriesResponse":{"properties":{"document_series_id":{"type":"string","title":"Document Series Id"},"archived_count":{"type":"integer","title":"Archived Count"},"cde_ids":{"items":{"type":"integer"},"type":"array","title":"Cde Ids"}},"type":"object","required":["document_series_id","archived_count","cde_ids"],"title":"ArchiveBySeriesResponse"},"AssignNoticeRequest":{"properties":{"assignee_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"}},"additionalProperties":false,"type":"object","required":["assignee_user_id"],"title":"AssignNoticeRequest","description":"Body for ``POST /notices/{id}:assign`` (COR-800).\n\n``assignee_user_id`` is REQUIRED as a key but nullable as a value: an\nexplicit ``null`` is how the caller un-assigns. There is no sentinel /\n\"leave unchanged\" case to model here (unlike the draft PATCH) because this\nendpoint does exactly one thing — a request that did not want to change the\nassignee would not be sent."},"AssignRequest":{"properties":{"role_id":{"type":"string","title":"Role Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"}},"additionalProperties":false,"type":"object","required":["role_id"],"title":"AssignRequest"},"AssignmentResponse":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"role_id":{"type":"string","title":"Role Id"},"role_name":{"type":"string","title":"Role Name"},"role_scope":{"type":"string","title":"Role Scope"}},"type":"object","required":["id","user_id","workspace_id","project_id","role_id","role_name","role_scope"],"title":"AssignmentResponse"},"AttachmentMetadataSchema":{"properties":{"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"content_disposition":{"type":"string","title":"Content Disposition","default":"attachment"},"content_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Id"},"cde_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cde Id"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"downloadable":{"type":"boolean","title":"Downloadable","default":false}},"type":"object","required":["filename","content_type"],"title":"AttachmentMetadataSchema"},"AttachmentRefRequest":{"properties":{"attachment_id":{"type":"string","title":"Attachment Id"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"storage_path":{"type":"string","title":"Storage Path"},"register_snapshot":{"anyOf":[{"$ref":"#/components/schemas/RegisterSnapshotSchema"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["attachment_id","filename","content_type","size_bytes","storage_path"],"title":"AttachmentRefRequest"},"AttachmentRefResponse":{"properties":{"attachment_id":{"type":"string","title":"Attachment Id"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"storage_path":{"type":"string","title":"Storage Path"},"register_snapshot":{"anyOf":[{"$ref":"#/components/schemas/RegisterSnapshotSchema"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["attachment_id","filename","content_type","size_bytes","storage_path"],"title":"AttachmentRefResponse"},"AttachmentResponse":{"properties":{"id":{"type":"string","title":"Id"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"uploaded_by":{"type":"string","title":"Uploaded By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"register_snapshot":{"anyOf":[{"$ref":"#/components/schemas/RegisterSnapshotSchema"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","filename","content_type","size_bytes","uploaded_by","created_at"],"title":"AttachmentResponse"},"AttendeeIn":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"required":{"type":"boolean","title":"Required","default":true}},"type":"object","title":"AttendeeIn"},"AttendeeRequest":{"properties":{"company_id":{"type":"string","title":"Company Id"},"company_name":{"type":"string","title":"Company Name","default":""},"contact_name":{"type":"string","title":"Contact Name","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"attendance":{"type":"string","title":"Attendance"}},"additionalProperties":false,"type":"object","required":["company_id","attendance"],"title":"AttendeeRequest"},"AttendeeResponse":{"properties":{"company_id":{"type":"string","title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"contact_name":{"type":"string","title":"Contact Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"attendance":{"type":"string","enum":["attended","apologies","distribution"],"title":"Attendance"}},"type":"object","required":["company_id","company_name","contact_name","email","attendance"],"title":"AttendeeResponse"},"AuthUrlResponse":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"auth_url":{"type":"string","title":"Auth Url"},"state":{"type":"string","title":"State"}},"type":"object","required":["provider","auth_url","state"],"title":"AuthUrlResponse"},"AvailableEngagementResponse":{"properties":{"engagement_id":{"type":"integer","title":"Engagement Id"},"company_id":{"type":"integer","title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"relationship_type":{"items":{"type":"string","enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"]},"type":"array","uniqueItems":true,"title":"Relationship Type"},"contacts_count":{"type":"integer","title":"Contacts Count"},"other_active_projects_count":{"type":"integer","title":"Other Active Projects Count"}},"type":"object","required":["engagement_id","company_id","company_name","relationship_type","contacts_count","other_active_projects_count"],"title":"AvailableEngagementResponse","description":"Workspace-level engagement that hasn't been linked to the project yet.\n\nPowers the Step 1 dropdown in Image #3. ``contacts_count`` and\n``other_active_projects_count`` are pre-rolled-up so the FE can render\nthe secondary line without per-row fan-out."},"BatchAssignRequest":{"properties":{"role_id":{"type":"string","title":"Role Id"},"project_ids":{"items":{"type":"string"},"type":"array","title":"Project Ids"}},"additionalProperties":false,"type":"object","required":["role_id","project_ids"],"title":"BatchAssignRequest","description":"Grant one project-scope role across multiple projects in one call."},"BatchAssignResponse":{"properties":{"created":{"items":{"$ref":"#/components/schemas/AssignmentResponse"},"type":"array","title":"Created"},"skipped":{"items":{"$ref":"#/components/schemas/SkippedAssignmentResponse"},"type":"array","title":"Skipped"}},"type":"object","required":["created","skipped"],"title":"BatchAssignResponse","description":"Result of a batch grant.\n\n``created`` holds newly-inserted assignments; ``skipped`` holds\nper-project skips tagged with a reason (see\n:class:`SkippedAssignmentResponse`). A duplicate re-submission of\nthe same request returns ``created=[]`` and the same set of\n``already_granted`` skips."},"Body_analyze_charset_v1_workspaces__workspace_id__global_company_imports_analyze_charset_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["file"],"title":"Body_analyze_charset_v1_workspaces__workspace_id__global_company_imports_analyze_charset_post"},"Body_ingest_raw_mime_internal_correspondence_ingest_raw_mime_post":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"integer","title":"Project Id"},"verb":{"type":"string","title":"Verb"},"raw":{"type":"string","contentMediaType":"application/octet-stream","title":"Raw"}},"type":"object","required":["workspace_id","project_id","verb","raw"],"title":"Body_ingest_raw_mime_internal_correspondence_ingest_raw_mime_post"},"Body_upload_csv_v1_workspaces__workspace_id__global_company_imports_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_csv_v1_workspaces__workspace_id__global_company_imports_post"},"BuilderGroupResponse":{"properties":{"company_id":{"type":"integer","title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"members":{"items":{"$ref":"#/components/schemas/DirectoryMemberResponse"},"type":"array","title":"Members"}},"type":"object","required":["company_id","company_name","members"],"title":"BuilderGroupResponse","description":"The builder's own company and its workspace users."},"BulkExportOutcomeRequest":{"properties":{"notice_id":{"type":"string","maxLength":256,"title":"Notice Id"},"reference":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Reference"},"outcome":{"type":"string","enum":["ok","render_failed","download_failed","not_found","forbidden","unreadable","draft_render_failed"],"title":"Outcome"}},"additionalProperties":false,"type":"object","required":["notice_id","outcome"],"title":"BulkExportOutcomeRequest"},"BulkExportReportRequest":{"properties":{"requested":{"type":"integer","minimum":0.0,"title":"Requested"},"merged":{"type":"integer","minimum":0.0,"title":"Merged"},"outcomes":{"items":{"$ref":"#/components/schemas/BulkExportOutcomeRequest"},"type":"array","maxItems":500,"title":"Outcomes"},"error":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Error"}},"additionalProperties":false,"type":"object","required":["requested","merged","outcomes"],"title":"BulkExportReportRequest"},"BulkInviteFailureItem":{"properties":{"contact_id":{"type":"integer","title":"Contact Id"},"email":{"type":"string","title":"Email"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["contact_id","email","reason"],"title":"BulkInviteFailureItem"},"BulkInviteFilterSpec":{"properties":{"search":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Search"},"statuses":{"anyOf":[{"items":{"type":"string","enum":["recorded","invited","active","archived"]},"type":"array"},{"type":"null"}],"title":"Statuses"},"engagement_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Engagement Ids"}},"additionalProperties":false,"type":"object","title":"BulkInviteFilterSpec","description":"FE-supplied filter that the BE expands into a concrete id list.\n\nMirrors the list endpoint's filter shape (minus pagination + sort).\nstatuses defaults to invitable rows only at the repo layer, so the\nFE can leave it null when promoting 'all matching the filter'."},"BulkInviteJobProgress":{"properties":{"stage":{"type":"string","title":"Stage"},"current":{"type":"integer","title":"Current"},"total":{"type":"integer","title":"Total"},"message":{"type":"string","title":"Message"}},"type":"object","required":["stage","current","total","message"],"title":"BulkInviteJobProgress"},"BulkInviteJobResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","enum":["queued","running","awaiting_review","finalizing","completed","failed","cancelled"],"title":"Status"},"progress":{"anyOf":[{"$ref":"#/components/schemas/BulkInviteJobProgress"},{"type":"null"}]},"result":{"anyOf":[{"$ref":"#/components/schemas/BulkInviteResultPayload"},{"type":"null"}]},"workspace_id":{"type":"string","title":"Workspace Id"}},"type":"object","required":["id","status","progress","result","workspace_id"],"title":"BulkInviteJobResponse","description":"Job-state envelope returned by the bulk-invite endpoints."},"BulkInviteRequest":{"properties":{"contact_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Contact Ids"},"filter":{"anyOf":[{"$ref":"#/components/schemas/BulkInviteFilterSpec"},{"type":"null"}]},"personal_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Personal Note"}},"additionalProperties":false,"type":"object","title":"BulkInviteRequest","description":"Body for POST /contacts/bulk-invite.\n\nExactly one of ``contact_ids`` or ``filter`` is required. Personal\nnote is shared across every invite the batch sends."},"BulkInviteResultPayload":{"properties":{"invited":{"type":"integer","title":"Invited"},"failed":{"type":"integer","title":"Failed"},"total":{"type":"integer","title":"Total"},"failures":{"items":{"$ref":"#/components/schemas/BulkInviteFailureItem"},"type":"array","title":"Failures"}},"type":"object","required":["invited","failed","total","failures"],"title":"BulkInviteResultPayload"},"BulkPromoteItem":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"cde_type_id":{"type":"string","title":"Cde Type Id"},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata","default":{}},"add_to_series_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Add To Series Id"},"stack_in_batch":{"type":"boolean","title":"Stack In Batch","default":false}},"additionalProperties":false,"type":"object","required":["cde_id","cde_type_id"],"title":"BulkPromoteItem"},"BulkPushToSiteItem":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"display_name":{"type":"string","title":"Display Name","default":""}},"additionalProperties":false,"type":"object","required":["cde_id"],"title":"BulkPushToSiteItem"},"BulkRevisionItem":{"properties":{"mode":{"type":"string","enum":["replace","new","register"],"title":"Mode"},"display_filename":{"type":"string","title":"Display Filename"},"filetype":{"type":"string","title":"Filetype"},"file_size_bytes":{"type":"integer","title":"File Size Bytes","default":0},"document_series_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Series Id"},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata","default":{}},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"place_before_cde_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Place Before Cde Id"}},"additionalProperties":false,"type":"object","required":["mode","display_filename","filetype"],"title":"BulkRevisionItem"},"BulkRevisionUploadTarget":{"properties":{"upload_signed_url":{"type":"string","title":"Upload Signed Url"},"upload_gcs_uri":{"type":"string","title":"Upload Gcs Uri"}},"type":"object","required":["upload_signed_url","upload_gcs_uri"],"title":"BulkRevisionUploadTarget"},"CallbackRequest":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"code":{"type":"string","title":"Code"},"redirect_uri":{"type":"string","title":"Redirect Uri"},"state":{"type":"string","title":"State"}},"additionalProperties":false,"type":"object","required":["provider","code","redirect_uri","state"],"title":"CallbackRequest"},"CallbackResponse":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"email":{"type":"string","title":"Email"},"is_connected":{"type":"boolean","title":"Is Connected"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["provider","email","is_connected","scopes"],"title":"CallbackResponse"},"CancelEventRequest":{"properties":{"source":{"$ref":"#/components/schemas/SourceRefIn"},"actor_kinde_id":{"type":"string","title":"Actor Kinde Id"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["source","actor_kinde_id"],"title":"CancelEventRequest"},"Capability":{"type":"string","enum":["identity","mail.send","mail.read","calendar"],"title":"Capability"},"CapabilityResponse":{"properties":{"name":{"type":"string","title":"Name"},"scope":{"type":"string","title":"Scope"},"description":{"type":"string","title":"Description"},"audiences":{"items":{"type":"string"},"type":"array","title":"Audiences"},"module":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Module"}},"type":"object","required":["name","scope","description","audiences"],"title":"CapabilityResponse"},"CdeCopyPreflightResponse":{"properties":{"file_count":{"type":"integer","title":"File Count"},"folder_count":{"type":"integer","title":"Folder Count"},"total_bytes":{"type":"number","title":"Total Bytes"},"limits":{"additionalProperties":{"type":"integer"},"type":"object","title":"Limits"},"violations":{"items":{"type":"string"},"type":"array","title":"Violations"}},"type":"object","required":["file_count","folder_count","total_bytes","limits","violations"],"title":"CdeCopyPreflightResponse"},"CdeCopyRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"folder_ids":{"items":{"type":"string"},"type":"array","title":"Folder Ids","default":[]},"series_ids":{"items":{"type":"string"},"type":"array","title":"Series Ids","default":[]},"target_folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Folder Id"}},"additionalProperties":false,"type":"object","required":["workspace_id"],"title":"CdeCopyRequest"},"CdeTypeResponse":{"properties":{"cde_type_id":{"type":"string","title":"Cde Type Id"},"cde_type_display":{"type":"string","title":"Cde Type Display"},"required_permission":{"items":{"type":"string"},"type":"array","title":"Required Permission"},"metadata_requirements":{"items":{"$ref":"#/components/schemas/MetadataRequirementResponse"},"type":"array","title":"Metadata Requirements"}},"type":"object","required":["cde_type_id","cde_type_display","required_permission","metadata_requirements"],"title":"CdeTypeResponse"},"ChangePositionDto":{"properties":{"page":{"type":"integer","title":"Page"},"x0":{"type":"number","title":"X0"},"y0":{"type":"number","title":"Y0"},"x1":{"type":"number","title":"X1"},"y1":{"type":"number","title":"Y1"},"precise":{"type":"boolean","title":"Precise"}},"type":"object","required":["page","x0","y0","x1","y1","precise"],"title":"ChangePositionDto","description":"Fractions (0-1) of the newer revision's page as displayed, top-left\norigin. ``precise`` False → the viewer shows \"Approximate location\"."},"CharsetIssueResponse":{"properties":{"row_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Row Number"},"column":{"type":"string","title":"Column"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"},"value":{"type":"string","title":"Value"},"problem_characters":{"items":{"type":"string"},"type":"array","title":"Problem Characters"},"suggested_value":{"type":"string","title":"Suggested Value"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["row_number","column","field","value","problem_characters","suggested_value","note"],"title":"CharsetIssueResponse","description":"One problematic cell flagged by the AI charset helper."},"ChaseNoticeRequest":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"ChaseNoticeRequest","description":"Body for ``POST /notices/{id}:chase`` (COR-769).\n\nDeliberately minimal: the chase targets are NOT client-supplied. The server\nderives them from ``awaiting_responses_from`` so a chaser can never be\naimed at someone who has already responded, or at a for-information\nrecipient — see ``NoticeService.chase``. All the caller can add is an\noptional covering message."},"CloseRequest":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"CloseRequest","description":"Body for ``POST /{notice_id}:close``.\n\n``note`` (COR-1074) is optional on the wire but the service REQUIRES it\n(trimmed, 1–2000 characters → 400 otherwise) when companies are still in\n``awaiting_responses_from`` at the time of closing."},"CombinedDirectoryResponse":{"properties":{"builder":{"$ref":"#/components/schemas/BuilderGroupResponse"},"engagements":{"items":{"$ref":"#/components/schemas/EngagementGroupResponse"},"type":"array","title":"Engagements"}},"type":"object","required":["builder","engagements"],"title":"CombinedDirectoryResponse","description":"Full combined set: builder group + one group per engagement."},"CommentCreateRequest":{"properties":{"comment_text":{"type":"string","minLength":1,"title":"Comment Text"}},"additionalProperties":false,"type":"object","required":["comment_text"],"title":"CommentCreateRequest"},"CommentIn":{"properties":{"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","title":"CommentIn"},"CommentResponse":{"properties":{"id":{"type":"string","title":"Id"},"comment_text":{"type":"string","title":"Comment Text"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"type":"string","title":"Created By"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"}},"type":"object","required":["id","comment_text","created_at","created_by"],"title":"CommentResponse"},"CompanyContactResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"}},"additionalProperties":false,"type":"object","required":["id","name","email","role"],"title":"CompanyContactResponse"},"CompanyRefResponse":{"properties":{"company_id":{"type":"string","title":"Company Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"additionalProperties":false,"type":"object","required":["company_id","name"],"title":"CompanyRefResponse"},"CompanyResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"contacts":{"items":{"$ref":"#/components/schemas/CompanyContactResponse"},"type":"array","title":"Contacts"}},"additionalProperties":false,"type":"object","required":["id","name","type","contacts"],"title":"CompanyResponse"},"CompanyUserResponse":{"properties":{"kinde_id":{"type":"string","title":"Kinde Id"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"status":{"type":"string","enum":["invited","active"],"title":"Status"},"role_flags":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceRoleFlagsResponse"},{"type":"null"}]},"predefined_roles":{"items":{"type":"string"},"type":"array","title":"Predefined Roles"},"custom_roles":{"items":{"$ref":"#/components/schemas/CustomRoleRef"},"type":"array","title":"Custom Roles"},"project_count":{"type":"integer","title":"Project Count"}},"type":"object","required":["kinde_id","email","first_name","last_name","status","role_flags","predefined_roles","custom_roles","project_count"],"title":"CompanyUserResponse"},"ComplianceCreate":{"properties":{"item_type":{"type":"string","enum":["insurance","licence","certification","prequal","accreditation"],"title":"Item Type"},"item_name":{"type":"string","maxLength":255,"minLength":1,"title":"Item Name"},"issuer":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Issuer"},"item_number":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Item Number"},"type_specific":{"additionalProperties":true,"type":"object","title":"Type Specific"},"effective_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective From"},"expires_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires On"},"visibility":{"type":"string","enum":["internal","portal"],"title":"Visibility","default":"internal"},"reminder_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reminder Days"},"notes":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Notes"},"evidence_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Document Id"}},"additionalProperties":false,"type":"object","required":["item_type","item_name"],"title":"ComplianceCreate"},"ComplianceItemDetailResponse":{"properties":{"id":{"type":"integer","title":"Id"},"engagement_id":{"type":"integer","title":"Engagement Id"},"item_type":{"type":"string","enum":["insurance","licence","certification","prequal","accreditation"],"title":"Item Type"},"item_name":{"type":"string","title":"Item Name"},"issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer"},"item_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Number"},"type_specific":{"additionalProperties":true,"type":"object","title":"Type Specific"},"effective_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective From"},"expires_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires On"},"visibility":{"type":"string","enum":["internal","portal"],"title":"Visibility"},"reminder_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reminder Days"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"evidence_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Document Id"},"renews_compliance_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renews Compliance Item Id"},"renewed_by_compliance_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renewed By Compliance Item Id"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_kinde_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By Kinde Id"},"status":{"type":"string","enum":["current","expiring","expired","archived"],"title":"Status"},"can_renew":{"type":"boolean","title":"Can Renew"},"evidence":{"anyOf":[{"$ref":"#/components/schemas/EvidenceResponse"},{"type":"null"}]}},"type":"object","required":["id","engagement_id","item_type","item_name","issuer","item_number","type_specific","effective_from","expires_on","visibility","reminder_days","notes","evidence_document_id","renews_compliance_item_id","renewed_by_compliance_item_id","archived_at","created_at","created_by_kinde_id","updated_at","updated_by_kinde_id","status","can_renew"],"title":"ComplianceItemDetailResponse"},"ComplianceItemResponse":{"properties":{"id":{"type":"integer","title":"Id"},"engagement_id":{"type":"integer","title":"Engagement Id"},"item_type":{"type":"string","enum":["insurance","licence","certification","prequal","accreditation"],"title":"Item Type"},"item_name":{"type":"string","title":"Item Name"},"issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuer"},"item_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Item Number"},"type_specific":{"additionalProperties":true,"type":"object","title":"Type Specific"},"effective_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective From"},"expires_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires On"},"visibility":{"type":"string","enum":["internal","portal"],"title":"Visibility"},"reminder_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reminder Days"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"evidence_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Document Id"},"renews_compliance_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renews Compliance Item Id"},"renewed_by_compliance_item_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renewed By Compliance Item Id"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by_kinde_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By Kinde Id"},"status":{"type":"string","enum":["current","expiring","expired","archived"],"title":"Status"},"can_renew":{"type":"boolean","title":"Can Renew"}},"type":"object","required":["id","engagement_id","item_type","item_name","issuer","item_number","type_specific","effective_from","expires_on","visibility","reminder_days","notes","evidence_document_id","renews_compliance_item_id","renewed_by_compliance_item_id","archived_at","created_at","created_by_kinde_id","updated_at","updated_by_kinde_id","status","can_renew"],"title":"ComplianceItemResponse"},"ComplianceListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ComplianceItemResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ComplianceListResponse"},"ComplianceRenew":{"properties":{"item_name":{"type":"string","maxLength":255,"minLength":1,"title":"Item Name"},"issuer":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Issuer"},"item_number":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Item Number"},"type_specific":{"additionalProperties":true,"type":"object","title":"Type Specific"},"effective_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective From"},"expires_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires On"},"visibility":{"type":"string","enum":["internal","portal"],"title":"Visibility","default":"internal"},"reminder_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reminder Days"},"notes":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Notes"},"evidence_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Document Id"}},"additionalProperties":false,"type":"object","required":["item_name"],"title":"ComplianceRenew","description":"Renew — same editable shape as Update; item_type inherited from the old item."},"ComplianceUpdate":{"properties":{"item_name":{"type":"string","maxLength":255,"minLength":1,"title":"Item Name"},"issuer":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Issuer"},"item_number":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Item Number"},"type_specific":{"additionalProperties":true,"type":"object","title":"Type Specific"},"effective_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Effective From"},"expires_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Expires On"},"visibility":{"type":"string","enum":["internal","portal"],"title":"Visibility","default":"internal"},"reminder_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reminder Days"},"notes":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Notes"},"evidence_document_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evidence Document Id"}},"additionalProperties":false,"type":"object","required":["item_name"],"title":"ComplianceUpdate","description":"Edit — item_type is immutable, so it's not accepted here."},"ComposerResponse":{"properties":{"own_company":{"anyOf":[{"$ref":"#/components/schemas/CompanyRefResponse"},{"type":"null"}]},"send_to":{"items":{"$ref":"#/components/schemas/CompanyRefResponse"},"type":"array","title":"Send To"},"send_to_everyone":{"type":"boolean","title":"Send To Everyone"},"send_to_includes_builder":{"type":"boolean","title":"Send To Includes Builder","default":false}},"additionalProperties":false,"type":"object","required":["own_company","send_to","send_to_everyone"],"title":"ComposerResponse","description":"Who the comment box's two actions reach for this viewer (COR-1291, D1).\n\n\"Send\" reaches ``send_to`` (besides the viewer's own company) — every\ncompany on the notice when ``send_to_everyone``. \"Save as internal note\"\nstays with ``own_company``."},"ConnectionCallbackRequest":{"properties":{"code":{"type":"string","minLength":1,"title":"Code"},"redirect_uri":{"type":"string","minLength":1,"title":"Redirect Uri"},"state":{"type":"string","minLength":1,"title":"State"}},"additionalProperties":false,"type":"object","required":["code","redirect_uri","state"],"title":"ConnectionCallbackRequest"},"ConnectionResponse":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"status":{"type":"string","title":"Status"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"disconnect_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disconnect Reason"},"capabilities":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Capabilities","default":{}}},"type":"object","required":["provider","status"],"title":"ConnectionResponse"},"ConnectionStatusResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"status":{"type":"string","title":"Status","description":"not_connected | pending_consent | consented | registered | consent_declined | disconnected"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"registration_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Status"},"registration_attempts":{"type":"integer","title":"Registration Attempts","default":0},"consented_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Consented At"},"registered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Registered At"},"disconnected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Disconnected At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"customer_steps":{"items":{"type":"string"},"type":"array","title":"Customer Steps","default":[]}},"type":"object","required":["workspace_id","status"],"title":"ConnectionStatusResponse"},"ConnectionsResponse":{"properties":{"connections":{"items":{"$ref":"#/components/schemas/ConnectionResponse"},"type":"array","title":"Connections"}},"type":"object","required":["connections"],"title":"ConnectionsResponse"},"ConsentCallbackRequest":{"properties":{"state":{"type":"string","title":"State"},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant","description":"Tenant id Microsoft appends on success"},"admin_consent":{"type":"boolean","title":"Admin Consent","default":false},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"error_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}},"additionalProperties":false,"type":"object","required":["state"],"title":"ConsentCallbackRequest","description":"The query string Microsoft appended to the consent redirect."},"ConsentCompleteResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"status":{"type":"string","title":"Status"},"registration_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Status"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["workspace_id","status","message"],"title":"ConsentCompleteResponse","description":"What the public landing page shows the customer's administrator. Only\nwhat they already know (their tenant) plus where it stands."},"ConsentUrlResponse":{"properties":{"consent_url":{"type":"string","title":"Consent Url"},"state":{"type":"string","title":"State"}},"type":"object","required":["consent_url","state"],"title":"ConsentUrlResponse"},"ContactCreate":{"properties":{"engagement_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engagement Id"},"email":{"type":"string","format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Title"}},"additionalProperties":false,"type":"object","required":["email"],"title":"ContactCreate","description":"Request body for POST /global-company-engagement-contacts.\n\nThe status of a newly created contact is always ``recorded`` — they\nhaven't been invited to the portal yet. The server sets it; callers\ncan't override."},"ContactFix":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"name":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Name"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Title"},"is_primary":{"type":"boolean","title":"Is Primary","default":false}},"additionalProperties":false,"type":"object","required":["email"],"title":"ContactFix","description":"Contact bundle on a Fix request. Full re-submission semantics —\nsending this sets / replaces the row's contact data wholesale.\n\nOmit the wrapping ``contact`` field on RowFixRequest to clear an\nexisting contact bundle (no contact on this row)."},"ContactResponse":{"properties":{"id":{"type":"integer","title":"Id"},"engagement_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engagement Id"},"kinde_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kinde Id"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"status":{"type":"string","enum":["recorded","invited","active","archived"],"title":"Status"},"invited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invited At"},"invited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","engagement_id","kinde_id","email","first_name","last_name","phone","job_title","status","invited_at","invited_by","created_at","created_by_kinde_id","updated_at"],"title":"ContactResponse","description":"Response body for contact endpoints (no company JOIN)."},"ContactStatusCountsResponse":{"properties":{"recorded":{"type":"integer","title":"Recorded"},"invited":{"type":"integer","title":"Invited"},"active":{"type":"integer","title":"Active"},"archived":{"type":"integer","title":"Archived"}},"type":"object","required":["recorded","invited","active","archived"],"title":"ContactStatusCountsResponse","description":"Per-status counts feeding the summary line under the filter bar."},"ContactSummaryResponse":{"properties":{"total":{"type":"integer","title":"Total"},"by_status":{"$ref":"#/components/schemas/ContactStatusCountsResponse"},"company_count":{"type":"integer","title":"Company Count"}},"type":"object","required":["total","by_status","company_count"],"title":"ContactSummaryResponse","description":"Aggregate counts that match the user's current filter set.\n\n``company_count`` is the number of distinct engagements (= companies)\nrepresented in the filtered contact set."},"ContactUpdate":{"properties":{"first_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Title"}},"additionalProperties":false,"type":"object","title":"ContactUpdate","description":"Request body for PATCH /global-company-engagement-contacts/{id}.\n\nEdits the contact's display details only. Email, status, engagement,\nand platform identity (``kinde_id``) are not editable here — the FE\nedit-details modal exposes just these four fields, and every one is\nsent on save, so the values fully replace what's stored (passing null\nclears a field)."},"ContactWithCompanyResponse":{"properties":{"id":{"type":"integer","title":"Id"},"engagement_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engagement Id"},"kinde_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kinde Id"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"status":{"type":"string","enum":["recorded","invited","active","archived"],"title":"Status"},"invited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invited At"},"invited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"target_global_company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Global Company Id"},"target_company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Company Name"}},"type":"object","required":["id","engagement_id","kinde_id","email","first_name","last_name","phone","job_title","status","invited_at","invited_by","created_at","created_by_kinde_id","updated_at","target_global_company_id","target_company_name"],"title":"ContactWithCompanyResponse","description":"``ContactResponse`` plus the target company's id + name.\n\nThe list view renders a company chip per row; carrying the name in the\nsame payload avoids one round-trip per contact."},"ContainerStatusResponse":{"properties":{"exists":{"type":"boolean","title":"Exists"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"container_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Container Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At"},"subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Id"},"subscription_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Subscription Expires At"}},"type":"object","required":["exists"],"title":"ContainerStatusResponse"},"CorrespondenceTagsResponse":{"properties":{"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["tags"],"title":"CorrespondenceTagsResponse"},"CorrespondenceTagsUpdateRequest":{"properties":{"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"additionalProperties":false,"type":"object","required":["tags"],"title":"CorrespondenceTagsUpdateRequest"},"CreateBulkMetadataJobRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"cde_ids":{"items":{"type":"integer"},"type":"array","title":"Cde Ids"}},"additionalProperties":false,"type":"object","required":["workspace_id","cde_ids"],"title":"CreateBulkMetadataJobRequest"},"CreateBulkMetadataJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"CreateBulkMetadataJobResponse"},"CreateBulkPromoteJobRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"items":{"items":{"$ref":"#/components/schemas/BulkPromoteItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["workspace_id","items"],"title":"CreateBulkPromoteJobRequest"},"CreateBulkPromoteJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"CreateBulkPromoteJobResponse"},"CreateBulkPushToSiteJobRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"destination":{"type":"string","enum":["project","company"],"title":"Destination","default":"project"},"heading":{"anyOf":[{"type":"string","enum":["safety","policy"]},{"type":"null"}],"title":"Heading"},"folder_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Path"},"items":{"items":{"$ref":"#/components/schemas/BulkPushToSiteItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["workspace_id","items"],"title":"CreateBulkPushToSiteJobRequest"},"CreateBulkPushToSiteJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"CreateBulkPushToSiteJobResponse"},"CreateBulkRevisionsJobRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"items":{"items":{"$ref":"#/components/schemas/BulkRevisionItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["workspace_id","items"],"title":"CreateBulkRevisionsJobRequest"},"CreateBulkRevisionsJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"items":{"items":{"$ref":"#/components/schemas/BulkRevisionUploadTarget"},"type":"array","title":"Items"}},"type":"object","required":["job_id","items"],"title":"CreateBulkRevisionsJobResponse"},"CreateCdeCopyJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"CreateCdeCopyJobResponse"},"CreateDistributionListRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"CreateDistributionListRequest"},"CreatePushFolderJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"CreatePushFolderJobResponse"},"CreatePushRegisterJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"CreatePushRegisterJobResponse"},"CreateRevisionFollowupRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"integer","title":"Project Id"},"document_series_id":{"type":"string","title":"Document Series Id"},"old_cde_id":{"type":"integer","minimum":0.0,"title":"Old Cde Id"},"new_cde_id":{"type":"integer","minimum":1.0,"title":"New Cde Id"},"kind":{"type":"string","enum":["rfi","action","cost"],"title":"Kind"},"items":{"items":{"type":"integer"},"type":"array","minItems":1,"title":"Items"},"record_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Id"},"note":{"type":"string","title":"Note","default":""}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","document_series_id","old_cde_id","new_cde_id","kind","items"],"title":"CreateRevisionFollowupRequest"},"CreateSplitJobRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"string","title":"Project Id"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"source_filename":{"type":"string","title":"Source Filename"},"source_size_bytes":{"type":"integer","title":"Source Size Bytes"}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","source_filename","source_size_bytes"],"title":"CreateSplitJobRequest"},"CreateSplitJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"upload_signed_url":{"type":"string","title":"Upload Signed Url"},"upload_gcs_uri":{"type":"string","title":"Upload Gcs Uri"}},"type":"object","required":["job_id","upload_signed_url","upload_gcs_uri"],"title":"CreateSplitJobResponse"},"CreateTakeoffKaiRunRequest":{"properties":{"workspace_id":{"type":"string","minLength":1,"title":"Workspace Id"},"project_id":{"type":"string","minLength":1,"title":"Project Id"},"documents":{"items":{"$ref":"#/components/schemas/TakeoffKaiDocument"},"type":"array","title":"Documents"},"qto_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Qto Id"}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","documents"],"title":"CreateTakeoffKaiRunRequest"},"CreateTakeoffKaiRunResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"}},"type":"object","required":["run_id"],"title":"CreateTakeoffKaiRunResponse"},"CustomFieldCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"field_type":{"type":"string","enum":["text","number","single_select","multi_select","phone","email"],"title":"Field Type"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"},"display_order":{"type":"integer","title":"Display Order","default":0}},"additionalProperties":false,"type":"object","required":["name","field_type"],"title":"CustomFieldCreate"},"CustomFieldListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CustomFieldResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"CustomFieldListResponse"},"CustomFieldResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"field_type":{"type":"string","enum":["text","number","single_select","multi_select","phone","email"],"title":"Field Type"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"},"display_order":{"type":"integer","title":"Display Order"},"is_archived":{"type":"boolean","title":"Is Archived"}},"type":"object","required":["id","name","field_type","options","display_order","is_archived"],"title":"CustomFieldResponse"},"CustomFieldUpdate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"},"display_order":{"type":"integer","title":"Display Order","default":0}},"additionalProperties":false,"type":"object","required":["name"],"title":"CustomFieldUpdate","description":"Edit — field_type is immutable, so it is not accepted here."},"CustomRoleCreateRequest":{"properties":{"name":{"type":"string","title":"Name"},"scope":{"type":"string","enum":["workspace","project"],"title":"Scope"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"capability_names":{"items":{"type":"string"},"type":"array","title":"Capability Names"}},"additionalProperties":false,"type":"object","required":["name","scope","capability_names"],"title":"CustomRoleCreateRequest"},"CustomRoleRef":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"scope":{"type":"string","enum":["workspace","project"],"title":"Scope"}},"type":"object","required":["id","name","scope"],"title":"CustomRoleRef"},"CustomRoleResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"scope":{"type":"string","title":"Scope"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"capability_names":{"items":{"type":"string"},"type":"array","title":"Capability Names"}},"type":"object","required":["id","workspace_id","name","scope","description","capability_names"],"title":"CustomRoleResponse"},"CustomRoleUpdateRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"capability_names":{"items":{"type":"string"},"type":"array","title":"Capability Names"}},"additionalProperties":false,"type":"object","required":["name","capability_names"],"title":"CustomRoleUpdateRequest"},"DeviceRegisterRequest":{"properties":{"app_uuid":{"type":"string","title":"App Uuid"},"platform":{"type":"string","title":"Platform"},"token":{"type":"string","title":"Token"},"env":{"type":"string","title":"Env"}},"additionalProperties":false,"type":"object","required":["app_uuid","platform","token","env"],"title":"DeviceRegisterRequest"},"DeviceResponse":{"properties":{"app_uuid":{"type":"string","title":"App Uuid"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"platform":{"type":"string","title":"Platform"},"token":{"type":"string","title":"Token"},"env":{"type":"string","title":"Env"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"additionalProperties":false,"type":"object","required":["app_uuid","user_id","platform","token","env","last_seen_at","created_at","updated_at"],"title":"DeviceResponse"},"DeviceUpdateTokenRequest":{"properties":{"token":{"type":"string","title":"Token"}},"additionalProperties":false,"type":"object","required":["token"],"title":"DeviceUpdateTokenRequest"},"DirectoryCompanyResolveResponse":{"properties":{"id_global_company_directory":{"type":"integer","title":"Id Global Company Directory"},"company_name":{"type":"string","title":"Company Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"tax_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tax Id"},"verified":{"type":"boolean","title":"Verified"},"main_contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Contact Email"},"main_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Main Contact Phone"},"company_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Type"},"ds_workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ds Workspace Name"}},"type":"object","required":["id_global_company_directory","company_name","country","tax_id","verified","main_contact_email","main_contact_phone","company_type","ds_workspace_name"],"title":"DirectoryCompanyResolveResponse","description":"One resolved company (directory identity + contact), engagement-scoped."},"DirectoryMemberResponse":{"properties":{"source":{"type":"string","enum":["builder","engagement"],"title":"Source"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"kinde_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kinde Id"},"status":{"type":"string","title":"Status"},"contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact Id"},"engagement_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Engagement Id"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"}},"type":"object","required":["source","email","first_name","last_name","kinde_id","status","contact_id","engagement_id","phone","job_title"],"title":"DirectoryMemberResponse","description":"One person in the combined set.\n\n``source`` is the flag separating the builder's own staff from contacts\nat engaged external companies. Fields that don't apply to a source are\nnull (builder members carry no ``contact_id`` / ``engagement_id`` /\n``phone`` / ``job_title``; engagement members may carry a null\n``kinde_id`` when they're record-only)."},"DirectoryRefResponse":{"properties":{"id_global_company_directory":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id Global Company Directory"},"company_name":{"type":"string","title":"Company Name"},"tax_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tax Id"},"country":{"type":"string","title":"Country"},"verified":{"type":"boolean","title":"Verified"}},"type":"object","required":["id_global_company_directory","company_name","tax_id","country","verified"],"title":"DirectoryRefResponse","description":"Lightweight ``global_company_directory`` projection embedded in responses."},"DistributionListRequest":{"properties":{"kinde_ids":{"items":{"type":"string"},"type":"array","title":"Kinde Ids"}},"type":"object","required":["kinde_ids"],"title":"DistributionListRequest"},"DistributionListResponse":{"properties":{"kinde_ids":{"items":{"type":"string"},"type":"array","title":"Kinde Ids"}},"type":"object","required":["kinde_ids"],"title":"DistributionListResponse"},"DistributionListSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"is_default":{"type":"boolean","title":"Is Default"},"member_count":{"type":"integer","title":"Member Count"}},"type":"object","required":["id","name","is_default","member_count"],"title":"DistributionListSummary"},"DistributionListsResponse":{"properties":{"lists":{"items":{"$ref":"#/components/schemas/DistributionListSummary"},"type":"array","title":"Lists"}},"type":"object","required":["lists"],"title":"DistributionListsResponse"},"DocNumberCheckItem":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"doc_number":{"type":"string","title":"Doc Number"},"area":{"type":"string","title":"Area","default":""}},"additionalProperties":false,"type":"object","required":["cde_id","doc_number"],"title":"DocNumberCheckItem"},"DocNumberCheckMatch":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"drawings":{"items":{"$ref":"#/components/schemas/RegisteredDrawingOut"},"type":"array","title":"Drawings"}},"type":"object","required":["cde_id","drawings"],"title":"DocNumberCheckMatch"},"DocNumberCheckRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"string","title":"Project Id"},"items":{"items":{"$ref":"#/components/schemas/DocNumberCheckItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","items"],"title":"DocNumberCheckRequest"},"DocNumberCheckResponse":{"properties":{"matches":{"items":{"$ref":"#/components/schemas/DocNumberCheckMatch"},"type":"array","title":"Matches"}},"type":"object","required":["matches"],"title":"DocNumberCheckResponse"},"DrawingsListSyncRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"reason":{"type":"string","title":"Reason","default":"unknown"}},"type":"object","required":["workspace_id"],"title":"DrawingsListSyncRequest"},"DsSiteSettingsRequest":{"properties":{"auto_push_register_to_ds_site":{"type":"boolean","title":"Auto Push Register To Ds Site"}},"type":"object","required":["auto_push_register_to_ds_site"],"title":"DsSiteSettingsRequest"},"DsSiteSettingsResponse":{"properties":{"auto_push_register_to_ds_site":{"type":"boolean","title":"Auto Push Register To Ds Site"}},"type":"object","required":["auto_push_register_to_ds_site"],"title":"DsSiteSettingsResponse"},"EdgeResponse":{"properties":{"id":{"type":"string","title":"Id"},"from_notice_id":{"type":"string","title":"From Notice Id"},"to_notice_id":{"type":"string","title":"To Notice Id"},"edge_type":{"type":"string","title":"Edge Type"},"created_by":{"type":"string","title":"Created By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"additionalProperties":false,"type":"object","required":["id","from_notice_id","to_notice_id","edge_type","created_by","created_at"],"title":"EdgeResponse"},"EdgeSetResponse":{"properties":{"outgoing":{"items":{"$ref":"#/components/schemas/EdgeResponse"},"type":"array","title":"Outgoing"},"incoming":{"items":{"$ref":"#/components/schemas/EdgeResponse"},"type":"array","title":"Incoming"}},"additionalProperties":false,"type":"object","required":["outgoing","incoming"],"title":"EdgeSetResponse"},"EditIdentityResponse":{"properties":{"address":{"type":"string","title":"Address"},"source":{"type":"string","title":"Source","description":"linked | email_connection | login_email"}},"type":"object","required":["address","source"],"title":"EditIdentityResponse"},"EditSessionRequest":{"properties":{"cde_id":{"type":"integer","title":"Cde Id","description":"The revision clicked; the newest live one opens"},"project_name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Project Name"}},"additionalProperties":false,"type":"object","required":["cde_id"],"title":"EditSessionRequest"},"EditSessionResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"integer","title":"Project Id"},"document_series_id":{"type":"string","title":"Document Series Id"},"container_id":{"type":"string","title":"Container Id"},"item_id":{"type":"string","title":"Item Id"},"item_name":{"type":"string","title":"Item Name"},"web_url":{"type":"string","title":"Web Url","description":"Office for the web, edit mode"},"desktop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Desktop Url","description":"ms-word: / ms-excel: / ms-powerpoint: launch URL"},"homed_cde_id":{"type":"integer","title":"Homed Cde Id"},"rehomed":{"type":"boolean","title":"Rehomed","description":"True when this call copied a revision into the container"},"identity":{"$ref":"#/components/schemas/EditIdentityResponse"},"opened_at":{"type":"string","format":"date-time","title":"Opened At"}},"type":"object","required":["workspace_id","project_id","document_series_id","container_id","item_id","item_name","web_url","desktop_url","homed_cde_id","rehomed","identity","opened_at"],"title":"EditSessionResponse"},"EmailAddressSchema":{"properties":{"address":{"type":"string","title":"Address"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"additionalProperties":false,"type":"object","required":["address"],"title":"EmailAddressSchema"},"EmailAttachmentDownloadResponse":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},"type":"object","required":["url","filename","content_type"],"title":"EmailAttachmentDownloadResponse","description":"Signed download URL for one stored inbound attachment (COR-651)."},"EmailAttachmentRef":{"properties":{"kind":{"type":"string","const":"email","title":"Kind"},"email_doc_id":{"type":"string","title":"Email Doc Id"},"index":{"type":"integer","title":"Index"}},"additionalProperties":false,"type":"object","required":["kind","email_doc_id","index"],"title":"EmailAttachmentRef","description":"An inbound email reply's attachment (COR-651).\n\nAddressed by list index because AttachmentMetadata rows carry no id of\ntheir own and the list is immutable once ingested.\n\nMail Make ingests into a project inbox (CDE-340) lists each attachment with\nthe ``cde_id`` of the CDE document Make filed it as, and no stored bytes;\nthe same reference resolves to that document instead."},"EmailDeliveryStatus":{"type":"string","enum":["sent","failed"],"title":"EmailDeliveryStatus","description":"Tracks the outcome of the synchronous send at issue time. Distinct\nfrom ``NoticeStatus`` because a send can succeed (notice → issued) or\nfail (notice stays in draft, error stamped on the notice for retry)."},"EmailDirection":{"type":"string","enum":["inbound","outbound"],"title":"EmailDirection"},"EmailPublic":{"properties":{"id":{"type":"string","title":"Id"},"thread_id":{"type":"string","title":"Thread Id"},"thread_doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Doc Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"direction":{"$ref":"#/components/schemas/EmailDirection"},"date":{"type":"string","format":"date-time","title":"Date"},"from_address":{"$ref":"#/components/schemas/EmailAddressSchema"},"to":{"items":{"$ref":"#/components/schemas/EmailAddressSchema"},"type":"array","title":"To"},"cc":{"items":{"$ref":"#/components/schemas/EmailAddressSchema"},"type":"array","title":"Cc","default":[]},"bcc":{"items":{"$ref":"#/components/schemas/EmailAddressSchema"},"type":"array","title":"Bcc","default":[]},"message_id":{"type":"string","title":"Message Id"},"in_reply_to":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"In Reply To"},"references":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"References"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"text_plain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Plain"},"text_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Html"},"body_plain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Plain"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentMetadataSchema"},"type":"array","title":"Attachments","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"raw_downloadable":{"type":"boolean","title":"Raw Downloadable","default":false}},"type":"object","required":["id","thread_id","workspace_id","project_id","direction","date","from_address","to","message_id","created_at"],"title":"EmailPublic","description":"Email response — exposes the read-only public surface of an Email entity."},"EmailRawDownloadResponse":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["url","filename"],"title":"EmailRawDownloadResponse","description":"Signed download URL for the raw .eml of a sync-ingested email (COR-580)."},"EngagementCapabilitiesResponse":{"properties":{"engagement_id":{"type":"integer","title":"Engagement Id"},"capability_names":{"items":{"type":"string"},"type":"array","title":"Capability Names"}},"type":"object","required":["engagement_id","capability_names"],"title":"EngagementCapabilitiesResponse"},"EngagementCapabilityGrantRequest":{"properties":{"capability_name":{"type":"string","title":"Capability Name"}},"additionalProperties":false,"type":"object","required":["capability_name"],"title":"EngagementCapabilityGrantRequest"},"EngagementCreate":{"properties":{"target_global_company_id":{"type":"integer","title":"Target Global Company Id"},"relationship_type":{"items":{"type":"string","enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"]},"type":"array","minItems":1,"uniqueItems":true,"title":"Relationship Type"},"primary_contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Primary Contact Id"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressBlock"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["target_global_company_id","relationship_type"],"title":"EngagementCreate","description":"Request body for POST /global-company-engagements."},"EngagementCreateByName":{"properties":{"country":{"type":"string","enum":["AU","NZ"],"title":"Country"},"company_name":{"type":"string","minLength":1,"title":"Company Name"},"relationship_type":{"items":{"type":"string","enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"]},"type":"array","minItems":1,"uniqueItems":true,"title":"Relationship Type"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressBlock"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["country","company_name","relationship_type"],"title":"EngagementCreateByName","description":"POST /global-company-engagements/by-name — name-only company (no ABN)."},"EngagementCreateByTaxId":{"properties":{"country":{"type":"string","enum":["AU","NZ"],"title":"Country"},"tax_id":{"type":"string","title":"Tax Id"},"company_name":{"type":"string","minLength":1,"title":"Company Name"},"relationship_type":{"items":{"type":"string","enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"]},"type":"array","minItems":1,"uniqueItems":true,"title":"Relationship Type"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressBlock"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["country","tax_id","company_name","relationship_type"],"title":"EngagementCreateByTaxId","description":"Request body for POST /global-company-engagements/by-tax-id.\n\nUsed when the FE knows the country + tax_id but not the directory id.\nServer resolves the directory (creating it via ABR/NZBN validation if\nneeded) and creates the engagement in one call."},"EngagementGroupResponse":{"properties":{"engagement_id":{"type":"integer","title":"Engagement Id"},"company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"relationship_type":{"items":{"type":"string"},"type":"array","title":"Relationship Type"},"members":{"items":{"$ref":"#/components/schemas/DirectoryMemberResponse"},"type":"array","title":"Members"}},"type":"object","required":["engagement_id","company_id","company_name","relationship_type","members"],"title":"EngagementGroupResponse","description":"One engaged external company and its contacts.\n\n``company_id`` is ``None`` for name-only engagements that have not yet\nbeen matched to a verified directory entry. ``company_name`` is always\nnon-null."},"EngagementLookupResponse":{"properties":{"state":{"type":"string","enum":["engagement_exists","directory_exists","not_found"],"title":"State"},"directory":{"anyOf":[{"$ref":"#/components/schemas/DirectoryRefResponse"},{"type":"null"}]},"engagement":{"anyOf":[{"$ref":"#/components/schemas/EngagementResponse"},{"type":"null"}]}},"type":"object","required":["state"],"title":"EngagementLookupResponse","description":"Response for GET /global-company-engagements/lookup.\n\n``state`` drives the FE add-modal banner choice:\n- ``engagement_exists`` -> State 2D (duplicate in workspace)\n- ``directory_exists`` -> State 2B (linked to existing identity)\n- ``not_found`` -> State 2C (first builder)"},"EngagementProjectResponse":{"properties":{"id":{"type":"integer","title":"Id"},"engagement_id":{"type":"integer","title":"Engagement Id"},"project_id":{"type":"integer","title":"Project Id"},"status":{"type":"string","enum":["active","archived"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","engagement_id","project_id","status","created_at","created_by_kinde_id","updated_at"],"title":"EngagementProjectResponse","description":"The link row itself, returned on POST."},"EngagementPromoteRequest":{"properties":{"country":{"type":"string","enum":["AU","NZ"],"title":"Country"},"tax_id":{"type":"string","title":"Tax Id"}},"additionalProperties":false,"type":"object","required":["country","tax_id"],"title":"EngagementPromoteRequest","description":"POST /global-company-engagements/{id}/promote — attach a real ABN/NZBN."},"EngagementResponse":{"properties":{"id":{"type":"integer","title":"Id"},"owner_global_company_id":{"type":"integer","title":"Owner Global Company Id"},"target_global_company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Global Company Id"},"target_company_name":{"type":"string","title":"Target Company Name"},"target_country":{"type":"string","title":"Target Country"},"relationship_type":{"items":{"type":"string","enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"]},"type":"array","uniqueItems":true,"title":"Relationship Type"},"status":{"type":"string","enum":["active","archived"],"title":"Status"},"primary_contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Primary Contact Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressBlock"},{"type":"null"}]}},"type":"object","required":["id","owner_global_company_id","target_global_company_id","target_company_name","target_country","relationship_type","status","primary_contact_id","created_at","created_by_kinde_id","updated_at","address"],"title":"EngagementResponse","description":"Response body for engagement GET/POST/PATCH endpoints."},"EngagementUpdate":{"properties":{"relationship_type":{"anyOf":[{"items":{"type":"string","enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"]},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Relationship Type"},"status":{"anyOf":[{"type":"string","enum":["active","archived"]},{"type":"null"}],"title":"Status"},"primary_contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Primary Contact Id"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressBlock"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"EngagementUpdate","description":"Request body for PATCH /global-company-engagements/{id}.\n\nAll fields optional. Pass a field to update it; omit to leave unchanged.\nTo clear ``primary_contact_id`` explicitly, send ``null``."},"EngagementWithTargetResponse":{"properties":{"id":{"type":"integer","title":"Id"},"owner_global_company_id":{"type":"integer","title":"Owner Global Company Id"},"target_global_company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Global Company Id"},"target_company_name":{"type":"string","title":"Target Company Name"},"target_country":{"type":"string","title":"Target Country"},"relationship_type":{"items":{"type":"string","enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"]},"type":"array","uniqueItems":true,"title":"Relationship Type"},"status":{"type":"string","enum":["active","archived"],"title":"Status"},"primary_contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Primary Contact Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"address":{"anyOf":[{"$ref":"#/components/schemas/AddressBlock"},{"type":"null"}]},"target":{"$ref":"#/components/schemas/DirectoryRefResponse"},"custom_field_values":{"additionalProperties":true,"type":"object","title":"Custom Field Values","default":{}}},"type":"object","required":["id","owner_global_company_id","target_global_company_id","target_company_name","target_country","relationship_type","status","primary_contact_id","created_at","created_by_kinde_id","updated_at","address","target"],"title":"EngagementWithTargetResponse","description":"``EngagementResponse`` with the target ``global_company_directory`` row joined in.\n\nUsed by the directory list page so the FE can render company name / tax_id\n/ country without a second round-trip per row."},"EnsureContainerRequest":{"properties":{"project_name":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Project Name"}},"additionalProperties":false,"type":"object","title":"EnsureContainerRequest"},"EotDecisionResponse":{"properties":{"outcome":{"type":"string","enum":["granted","refused"],"title":"Outcome"},"days_granted":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Granted"},"days_claimed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days Claimed"},"days_claimed_tbd":{"type":"boolean","title":"Days Claimed Tbd"},"decision_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Decision Date"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"on_behalf":{"type":"boolean","title":"On Behalf"}},"additionalProperties":false,"type":"object","required":["outcome","days_granted","days_claimed","days_claimed_tbd","decision_date","decided_at","actor_id","actor_name","on_behalf"],"title":"EotDecisionResponse","description":"The decision on an EoT (COR-1290) — see ``eot_decision.derive_eot_decision``.\n\nThe one summary the detail page, the company panel and the register row\nread, so none of them works the decision out from the status (which reads\nonly ``closed`` once the EoT is closed)."},"EotRollupItemResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"anticipated_pc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anticipated Pc"},"days_granted":{"type":"integer","title":"Days Granted"},"days_pending_known":{"type":"integer","title":"Days Pending Known"},"pending_tbd_count":{"type":"integer","title":"Pending Tbd Count"},"head_contract_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Contract Id"}},"additionalProperties":false,"type":"object","required":["project_id","anticipated_pc","days_granted","days_pending_known","pending_tbd_count","head_contract_id"],"title":"EotRollupItemResponse"},"EotRollupResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EotRollupItemResponse"},"type":"array","title":"Items"},"as_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"As At"}},"additionalProperties":false,"type":"object","required":["items"],"title":"EotRollupResponse"},"EventIn":{"properties":{"title":{"type":"string","title":"Title"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"timezone":{"type":"string","title":"Timezone"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"attendees":{"items":{"$ref":"#/components/schemas/AttendeeIn"},"type":"array","title":"Attendees"},"recurrence":{"anyOf":[{"$ref":"#/components/schemas/RecurrenceIn"},{"type":"null"}]},"online_meeting":{"type":"boolean","title":"Online Meeting","default":false}},"type":"object","required":["title","start","end","timezone"],"title":"EventIn","description":"Wall-clock ``start`` / ``end`` (no offset) in ``timezone`` (IANA)."},"EvidenceResponse":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"display_file_name":{"type":"string","title":"Display File Name"},"cde_link":{"type":"string","title":"Cde Link"},"status":{"type":"string","title":"Status"}},"type":"object","required":["cde_id","display_file_name","cde_link","status"],"title":"EvidenceResponse"},"ExtractMetadataRequest":{"properties":{"pdf_base64":{"type":"string","title":"Pdf Base64"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},"additionalProperties":false,"type":"object","required":["pdf_base64"],"title":"ExtractMetadataRequest"},"ExtractMetadataResponse":{"properties":{"document_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Number"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"discipline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discipline"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"set":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Set"},"sheet_size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sheet Size"},"scale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scale"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"issue_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issue Date"},"revision_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Date"},"sheet_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sheet Number"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"project_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Number"},"drawn_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drawn By"},"checked_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checked By"},"approved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By"},"filename_revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename Revision"}},"type":"object","title":"ExtractMetadataResponse"},"FieldDefResponse":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"field_type":{"type":"string","title":"Field Type"},"required":{"type":"boolean","title":"Required"},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"kai_assist":{"anyOf":[{"$ref":"#/components/schemas/KaiAssistResponse"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","label","field_type","required","options"],"title":"FieldDefResponse"},"FileCompareChange":{"properties":{"title":{"type":"string","title":"Title"},"detail":{"type":"string","title":"Detail","default":""},"location":{"type":"string","title":"Location","default":""}},"type":"object","required":["title"],"title":"FileCompareChange"},"FileCompareFile":{"properties":{"cde_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Cde Id"},"label":{"type":"string","maxLength":300,"title":"Label","default":""}},"additionalProperties":false,"type":"object","required":["cde_id"],"title":"FileCompareFile"},"FileCompareRequest":{"properties":{"file_a":{"$ref":"#/components/schemas/FileCompareFile"},"file_b":{"$ref":"#/components/schemas/FileCompareFile"}},"additionalProperties":false,"type":"object","required":["file_a","file_b"],"title":"FileCompareRequest"},"FileCompareResponse":{"properties":{"summary":{"type":"string","title":"Summary"},"changes":{"items":{"$ref":"#/components/schemas/FileCompareChange"},"type":"array","title":"Changes"}},"type":"object","required":["summary","changes"],"title":"FileCompareResponse"},"FileUploadRequest":{"properties":{"filename":{"type":"string","title":"Filename"},"filetype":{"type":"string","title":"Filetype"},"file_size_bytes":{"type":"number","title":"File Size Bytes","default":0.0},"document_series_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Series Id"}},"additionalProperties":false,"type":"object","required":["filename","filetype"],"title":"FileUploadRequest"},"FollowupCountsDto":{"properties":{"rfi":{"type":"integer","title":"Rfi"},"rfi_open":{"type":"integer","title":"Rfi Open"},"action":{"type":"integer","title":"Action"},"action_open":{"type":"integer","title":"Action Open"},"cost":{"type":"integer","title":"Cost"}},"type":"object","required":["rfi","rfi_open","action","action_open","cost"],"title":"FollowupCountsDto"},"ForwardNoticeRequest":{"properties":{"recipients":{"items":{"$ref":"#/components/schemas/ForwardRecipientRequest"},"type":"array","minItems":1,"title":"Recipients"},"note":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["recipients"],"title":"ForwardNoticeRequest","description":"Forward an issued notice to additional recipients (COR-640, COR-1078).\n\nEach recipient is copied in for information unless its ``role`` is\n``for_response``, which only the issuing org may ask for (``viewer_org_id``\nquery param), and only while the notice is collecting answers."},"ForwardRecipientRequest":{"properties":{"company_id":{"type":"string","minLength":1,"title":"Company Id"},"company_name":{"type":"string","minLength":1,"title":"Company Name"},"contact_name":{"type":"string","minLength":1,"title":"Contact Name"},"email":{"type":"string","minLength":1,"title":"Email"},"role":{"type":"string","enum":["for_response","for_information"],"title":"Role","default":"for_information"}},"additionalProperties":false,"type":"object","required":["company_id","company_name","contact_name","email"],"title":"ForwardRecipientRequest","description":"One forward target (COR-640, COR-1078).\n\nSame contact fields as the composer's ``InlineRecipientRequest`` but the\nOPPOSITE role default: omitted, a forwarded party is copied in for\ninformation — which is all the frontend deployed before COR-1078 ever\nsends, so its forwards keep producing FYI rows. ``for_response`` asks the\nparty to respond and is issuer-only (see ``NoticeService.forward``).\n``InlineRecipientRequest`` is deliberately left alone: drafts rely on its\n``for_response`` default."},"GrantEotRequest":{"properties":{"days_granted":{"type":"integer","exclusiveMinimum":0.0,"title":"Days Granted"},"decision_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Decision Date"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["days_granted"],"title":"GrantEotRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HideMarkersRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"integer","title":"Project Id"},"old_cde_id":{"type":"integer","title":"Old Cde Id"},"new_cde_id":{"type":"integer","title":"New Cde Id"},"hidden_markers":{"items":{"type":"integer"},"type":"array","title":"Hidden Markers"}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","old_cde_id","new_cde_id","hidden_markers"],"title":"HideMarkersRequest","description":"The full set of hidden markers for the pair (CDE-361); send it without a\nnumber to show that marker again."},"HideMarkersResponse":{"properties":{"hidden_markers":{"items":{"type":"integer"},"type":"array","title":"Hidden Markers"},"hidden_markers_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hidden Markers By Name"},"hidden_markers_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hidden Markers At"}},"type":"object","required":["hidden_markers","hidden_markers_by_name","hidden_markers_at"],"title":"HideMarkersResponse"},"ImportJobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"status":{"type":"string","title":"Status"},"total_rows":{"type":"integer","title":"Total Rows"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"progress_stage":{"type":"string","title":"Progress Stage"},"progress_current":{"type":"integer","title":"Progress Current"},"progress_total":{"type":"integer","title":"Progress Total"},"progress_message":{"type":"string","title":"Progress Message"},"counts":{"$ref":"#/components/schemas/ImportRowCountsResponse"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"commit_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Error"}},"type":"object","required":["job_id","workspace_id","status","total_rows","filename","progress_stage","progress_current","progress_total","progress_message","counts","created_at","updated_at","completed_at","reviewed_at","commit_error"],"title":"ImportJobResponse","description":"Trimmed JobRun shape the FE wizard cares about. Wraps the full\nJobRun + the derived row counts so the FE doesn't have to walk\n``result['rows']`` to render the State 3B / 3C overview."},"ImportRowCountsResponse":{"properties":{"pending":{"type":"integer","title":"Pending"},"matched":{"type":"integer","title":"Matched"},"will_create":{"type":"integer","title":"Will Create"},"already_in_workspace":{"type":"integer","title":"Already In Workspace"},"needs_attention":{"type":"integer","title":"Needs Attention"},"skipped":{"type":"integer","title":"Skipped"},"committed":{"type":"integer","title":"Committed"},"total":{"type":"integer","title":"Total"},"contacts_pending":{"type":"integer","title":"Contacts Pending","default":0},"contacts_will_create":{"type":"integer","title":"Contacts Will Create","default":0},"contacts_already_in_workspace":{"type":"integer","title":"Contacts Already In Workspace","default":0},"contacts_needs_attention":{"type":"integer","title":"Contacts Needs Attention","default":0},"contacts_skipped":{"type":"integer","title":"Contacts Skipped","default":0},"contacts_committed":{"type":"integer","title":"Contacts Committed","default":0},"contacts_total":{"type":"integer","title":"Contacts Total","default":0}},"type":"object","required":["pending","matched","will_create","already_in_workspace","needs_attention","skipped","committed","total"],"title":"ImportRowCountsResponse"},"ImportRowResponse":{"properties":{"row_number":{"type":"integer","title":"Row Number"},"raw_company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Company Name"},"raw_country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Country"},"raw_tax_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Tax Id"},"raw_relationship_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Relationship Type"},"parsed_country":{"anyOf":[{"type":"string","enum":["AU","NZ"]},{"type":"null"}],"title":"Parsed Country"},"parsed_tax_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parsed Tax Id"},"parsed_relationship_type":{"items":{"type":"string"},"type":"array","title":"Parsed Relationship Type"},"status":{"type":"string","enum":["pending","matched","will_create","already_in_workspace","needs_attention","skipped","committed"],"title":"Status"},"matched_directory_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Matched Directory Id"},"external_validation_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"External Validation Json"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"committed_engagement_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Committed Engagement Id"},"company_warning_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Warning Message"},"raw_contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Contact Email"},"raw_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Contact Name"},"raw_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Contact Phone"},"raw_contact_job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Contact Job Title"},"raw_is_primary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Is Primary"},"parsed_contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parsed Contact Email"},"parsed_contact_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parsed Contact First Name"},"parsed_contact_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parsed Contact Last Name"},"parsed_contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parsed Contact Phone"},"parsed_contact_job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parsed Contact Job Title"},"parsed_is_primary":{"type":"boolean","title":"Parsed Is Primary","default":false},"contact_status":{"type":"string","enum":["skipped","pending","will_create","already_in_workspace","needs_attention","committed"],"title":"Contact Status","default":"skipped"},"matched_existing_contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Matched Existing Contact Id"},"committed_contact_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Committed Contact Id"},"contact_error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Error Message"}},"type":"object","required":["row_number","raw_company_name","raw_country","raw_tax_id","raw_relationship_type","parsed_country","parsed_tax_id","parsed_relationship_type","status","matched_directory_id","external_validation_json","error_message","committed_engagement_id"],"title":"ImportRowResponse"},"InboundChangeOut":{"properties":{"at":{"type":"string","format":"date-time","title":"At"},"kind":{"type":"string","title":"Kind"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["at","kind","detail"],"title":"InboundChangeOut"},"InlineRecipientRequest":{"properties":{"company_id":{"type":"string","minLength":1,"title":"Company Id"},"company_name":{"type":"string","minLength":1,"title":"Company Name"},"contact_name":{"type":"string","minLength":1,"title":"Contact Name"},"email":{"type":"string","minLength":1,"title":"Email"},"role":{"type":"string","enum":["for_response","for_information"],"title":"Role","default":"for_response"}},"additionalProperties":false,"type":"object","required":["company_id","company_name","contact_name","email"],"title":"InlineRecipientRequest"},"InlineRecipientResponse":{"properties":{"company_id":{"type":"string","title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"contact_name":{"type":"string","title":"Contact Name"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"}},"additionalProperties":false,"type":"object","required":["company_id","company_name","contact_name","email","role"],"title":"InlineRecipientResponse"},"InstructFromRequest":{"properties":{"instruction_notice_id":{"type":"string","minLength":1,"title":"Instruction Notice Id"},"edge_type":{"type":"string","const":"instructs_from","title":"Edge Type","default":"instructs_from"}},"additionalProperties":false,"type":"object","required":["instruction_notice_id"],"title":"InstructFromRequest"},"InternalPushRequest":{"properties":{"user_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"User Ids","description":"Kinde subs (user ids) to notify."},"title":{"type":"string","title":"Title","description":"OS / lock-screen notification title."},"body":{"type":"string","title":"Body","description":"OS / lock-screen notification body."},"data":{"additionalProperties":{"type":"string"},"type":"object","title":"Data","description":"FCM data payload — string values only. The caller owns this; include ``action_route`` (a full FE route) for click-through."}},"additionalProperties":false,"type":"object","required":["user_ids","title","body"],"title":"InternalPushRequest"},"InternalPushResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/UserPushResultResponse"},"type":"array","title":"Results"}},"type":"object","required":["results"],"title":"InternalPushResponse"},"InvitePreviewRequest":{"properties":{"personal_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Personal Note"}},"additionalProperties":false,"type":"object","title":"InvitePreviewRequest","description":"Body for POST /contacts/{id}/invite-preview."},"InvitePreviewResponse":{"properties":{"rendered":{"$ref":"#/components/schemas/app__schemas__global_company_engagement_contact__RenderedInvitationResponse"},"workspace_company_name":{"type":"string","title":"Workspace Company Name"},"recipient_company_name":{"type":"string","title":"Recipient Company Name"},"transport":{"type":"string","enum":["oauth","relay"],"title":"Transport"}},"type":"object","required":["rendered","workspace_company_name","recipient_company_name","transport"],"title":"InvitePreviewResponse"},"InviteRequest":{"properties":{"personal_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Personal Note"}},"additionalProperties":false,"type":"object","title":"InviteRequest","description":"Body for POST /contacts/{id}/invite."},"InviteResponse":{"properties":{"contact":{"$ref":"#/components/schemas/ContactWithCompanyResponse"},"rendered":{"$ref":"#/components/schemas/app__schemas__global_company_engagement_contact__RenderedInvitationResponse"}},"type":"object","required":["contact","rendered"],"title":"InviteResponse"},"InviteUserRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"first_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Last Name"},"personal_note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Personal Note"}},"additionalProperties":false,"type":"object","required":["email"],"title":"InviteUserRequest"},"InviteUserResponse":{"properties":{"user":{"$ref":"#/components/schemas/CompanyUserResponse"},"rendered":{"anyOf":[{"$ref":"#/components/schemas/app__schemas__user_directory__RenderedInvitationResponse"},{"type":"null"}]},"already_member":{"type":"boolean","title":"Already Member"}},"type":"object","required":["user","rendered","already_member"],"title":"InviteUserResponse"},"IsSuperuserResponse":{"properties":{"is_superuser":{"type":"boolean","title":"Is Superuser"}},"type":"object","required":["is_superuser"],"title":"IsSuperuserResponse"},"IssueDraftRequest":{"properties":{"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"contract_standard":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Standard"},"hide_recipients":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hide Recipients"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"additionalProperties":false,"type":"object","title":"IssueDraftRequest","description":"Optional body for the :issue endpoint (COR-347, COR-914, SUP-1687, COR-1255).\n\n``project_name`` is an override, not a requirement: POST {} or omit the body\nand the service resolves the name from ``projects_def``. Kept because the\nbuilder composer already sends it and its value still wins — the portal\nnever could (it has no workspace/project list in its store), which is the\ngap COR-914 closed.\n\n``contract_standard`` (SUP-1687) is the canonical code the composer already\nresolved from the project's country and the picked Head Contract, and it is\nOPTIONAL on purpose so this schema can ship before the frontend sends it:\n``extra=\"forbid\"`` means the reverse order would 422 every issue. A request\nwithout it snapshots nothing and the notice's PDF prints no contract line —\nwhich is also what every notice issued before SUP-1687 does.\n\n``hide_recipients`` (COR-1255) is the confirm step's \"Hide recipients from\neach other\" box, frozen onto the notice. Optional for the same reason as\n``contract_standard``; omitted, a notice raised from a tender package to\ntwo or more companies is hidden and any other is not\n(``resolve_recipients_hidden``).\n\n``timezone`` (COR-1309) is the IANA time zone name the issuing user's\nbrowser reports (\"Pacific/Auckland\"). The PDF prints its issue date in\nit. Optional for the same reason as ``contract_standard``, and never\nvalidated here: a name the server does not know is dropped, the PDF\nprints the Australia/Sydney date, and the issue goes ahead. Internal —\nno response carries it."},"JobListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/JobResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"JobListResponse"},"JobProgressSchema":{"properties":{"stage":{"type":"string","title":"Stage"},"current":{"type":"integer","title":"Current"},"total":{"type":"integer","title":"Total"},"message":{"type":"string","title":"Message"}},"type":"object","required":["stage","current","total","message"],"title":"JobProgressSchema"},"JobResponse":{"properties":{"id":{"type":"string","title":"Id"},"job_type":{"type":"string","title":"Job Type"},"status":{"type":"string","title":"Status"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"progress":{"$ref":"#/components/schemas/JobProgressSchema"},"input_ref":{"additionalProperties":true,"type":"object","title":"Input Ref"},"result":{"additionalProperties":true,"type":"object","title":"Result"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error"},"attempt":{"type":"integer","title":"Attempt"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"}},"type":"object","required":["id","job_type","status","workspace_id","project_id","created_by_kinde_id","progress","input_ref","result","error","attempt","created_at","updated_at","completed_at","reviewed_at"],"title":"JobResponse","description":"Generic job status response. Works for all job_types."},"JobStatus":{"type":"string","enum":["queued","running","awaiting_review","finalizing","completed","failed","cancelled"],"title":"JobStatus"},"KaiAssistResponse":{"properties":{"label":{"type":"string","title":"Label"},"accepts_instruction":{"type":"boolean","title":"Accepts Instruction"},"ground_documents":{"type":"boolean","title":"Ground Documents"},"requires_fields":{"items":{"type":"string"},"type":"array","title":"Requires Fields"}},"additionalProperties":false,"type":"object","required":["label","accepts_instruction","ground_documents"],"title":"KaiAssistResponse","description":"The KAI drafting affordance for one field, as the composer needs it (COR-771).\n\nDeliberately narrow. ``KaiAssistDef.guidance`` and\n``KaiAssistDef.context_fields`` are server-side prompt material and are NOT\nexposed here: they are prompt internals, and shipping them to the client\ninvites client-side prompt tampering. The FE only needs to know what to\nlabel the button and which input affordances to render.\n\n``requires_fields`` is the one exception to that rule, and it is exposed on\npurpose. It is not prompt material: it carries no guidance text, and its\ncontents are field *keys the client already holds* — they came from\n``fields[].key`` in this very response. It is a rendering instruction, and\nthe composer cannot do its job without it: it decides whether the affordance\nis offered or disabled, and there is no way to compute that client-side.\nWithholding it would mean shipping a button that is always enabled and\nalways fails on a blank form."},"KaiDraftFieldRequest":{"properties":{"field_values":{"additionalProperties":true,"type":"object","title":"Field Values","description":"The composer's current form state. Only the field's configured context_fields are read from it."},"instruction":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Instruction","description":"Optional rough note from the user. Ignored (with a warning) when the field's config sets accepts_instruction=false."},"contract_standard":{"type":"string","title":"Contract Standard","default":"NZS3910"}},"additionalProperties":false,"type":"object","title":"KaiDraftFieldRequest"},"KaiDraftFieldResponse":{"properties":{"field_key":{"type":"string","title":"Field Key"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"status":{"type":"string","enum":["drafted","declined","ungrounded"],"title":"Status"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"references":{"items":{"$ref":"#/components/schemas/ResolvedDocumentReferenceResponse"},"type":"array","title":"References"},"unresolved_references":{"items":{"$ref":"#/components/schemas/UnresolvedReferenceResponse"},"type":"array","title":"Unresolved References"},"register_empty":{"type":"boolean","title":"Register Empty"},"as_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"As At"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"additionalProperties":false,"type":"object","required":["field_key","value","status","rationale","references","unresolved_references","register_empty","as_at","warnings"],"title":"KaiDraftFieldResponse"},"LinkCandidateResponse":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"formatted_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted Number"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Issued At"}},"type":"object","required":["id","type","formatted_number","subject","issued_at"],"title":"LinkCandidateResponse","description":"One notice a ``linked_notice`` field's picker offers (COR-933): what the\npicker shows — reference, subject, issue date — and nothing else of it."},"LinkCandidatesResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LinkCandidateResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"LinkCandidatesResponse"},"LinkEngagementToProjectRequest":{"properties":{"engagement_id":{"type":"integer","title":"Engagement Id"}},"additionalProperties":false,"type":"object","required":["engagement_id"],"title":"LinkEngagementToProjectRequest","description":"POST body — only the engagement id; the path carries workspace + project."},"LinkFromRequest":{"properties":{"from_form_id":{"type":"string","title":"From Form Id"}},"type":"object","required":["from_form_id"],"title":"LinkFromRequest"},"LinkNoticesRequest":{"properties":{"peer_notice_id":{"type":"string","minLength":1,"title":"Peer Notice Id"},"edge_type":{"type":"string","const":"relates_to","title":"Edge Type","default":"relates_to"}},"additionalProperties":false,"type":"object","required":["peer_notice_id"],"title":"LinkNoticesRequest","description":"Body for ``POST /notices/{id}:link`` (COR-802).\n\n``edge_type`` is pinned to ``relates_to``, exactly as ``InstructFromRequest``\npins ``instructs_from``. This endpoint is the only way a user links two\nnotices that BOTH already exist, and ``relates_to`` is the only edge type\nwith no status consequence — widening the literal would mean deciding what\ntransition a one-click link should fire on a notice the user is only\ncross-referencing, which is a separate decision from shipping the link.\n\nReplaces ``RespondWithRequest``, whose route COR-802 deleted: it had zero\ncallers and hardcoded ``responds_to``, which is exactly the transition-firing\nbehaviour a neutral cross-reference must not have. ``NoticeService.respond_with``\nitself is retained — the draft-promote path still calls it."},"LinkOut":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"source_type":{"type":"string","title":"Source Type"},"source_id":{"type":"string","title":"Source Id"},"organiser_kinde_id":{"type":"string","title":"Organiser Kinde Id"},"is_organiser":{"type":"boolean","title":"Is Organiser"},"event_id":{"type":"string","title":"Event Id"},"timezone":{"type":"string","title":"Timezone"},"start_local":{"type":"string","format":"date-time","title":"Start Local"},"end_local":{"type":"string","format":"date-time","title":"End Local"},"recurrence":{"anyOf":[{"$ref":"#/components/schemas/RecurrenceIn"},{"type":"null"}]},"sync_state":{"type":"string","title":"Sync State"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"inbound_log":{"items":{"$ref":"#/components/schemas/InboundChangeOut"},"type":"array","title":"Inbound Log"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Synced At"},"rsvp":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Rsvp"},"web_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Link"},"online_meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Online Meeting Url"},"is_series":{"type":"boolean","title":"Is Series","default":false},"origin":{"type":"string","enum":["scheduled","adopted"],"title":"Origin","default":"scheduled"},"last_outbound_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Outbound By"},"last_outbound_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Outbound At"}},"type":"object","required":["workspace_id","source_type","source_id","organiser_kinde_id","is_organiser","event_id","timezone","start_local","end_local","recurrence","sync_state","last_error","inbound_log","created_at","updated_at","last_synced_at","rsvp","web_link"],"title":"LinkOut"},"LinkThreadRequest":{"properties":{"thread_doc_id":{"type":"string","minLength":1,"title":"Thread Doc Id"}},"additionalProperties":false,"type":"object","required":["thread_doc_id"],"title":"LinkThreadRequest","description":"Link an existing correspondence thread to this notice (COR-526)."},"LinkThreadResponse":{"properties":{"notice_id":{"type":"string","title":"Notice Id"},"thread_doc_id":{"type":"string","title":"Thread Doc Id"},"type":{"type":"string","title":"Type"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"formatted_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted Number"}},"additionalProperties":false,"type":"object","required":["notice_id","thread_doc_id","type","number","formatted_number"],"title":"LinkThreadResponse","description":"Result of linking a correspondence thread to a notice (COR-526)."},"LinkedEmailAddressResponse":{"properties":{"address":{"type":"string","title":"Address"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"additionalProperties":false,"type":"object","required":["address","display_name"],"title":"LinkedEmailAddressResponse"},"LinkedEmailAttachmentResponse":{"properties":{"index":{"type":"integer","title":"Index"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},"additionalProperties":false,"type":"object","required":["index","filename","content_type","size_bytes"],"title":"LinkedEmailAttachmentResponse","description":"A file a chip can open. ``index`` addresses the COR-651 route\n``GET .../correspondence/emails/{email_doc_id}/attachments/{index}:download``."},"LinkedEmailMessageResponse":{"properties":{"email_doc_id":{"type":"string","title":"Email Doc Id"},"message_id":{"type":"string","title":"Message Id"},"from":{"$ref":"#/components/schemas/LinkedEmailAddressResponse"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"},"body_preview":{"type":"string","title":"Body Preview"},"attachments":{"items":{"$ref":"#/components/schemas/LinkedEmailAttachmentResponse"},"type":"array","title":"Attachments"}},"additionalProperties":false,"type":"object","required":["email_doc_id","message_id","from","sent_at","body_preview","attachments"],"title":"LinkedEmailMessageResponse","description":"The latest message on a linked thread. Serialised with a ``from`` key."},"LinkedFilter":{"type":"string","enum":["any","linked","unlinked"],"title":"LinkedFilter","description":"Whether a result's thread is attached to a notice.\n\n``UNLINKED`` is stored as NULL, not as a sentinel: it is what the partial\nindex excludes, and what a raw-SQL rewrite of this query has to remember to\nask for with IS NULL rather than an equality."},"LinkedNoticeSummaryResponse":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"status":{"type":"string","title":"Status"},"sender_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Id"},"sender_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Name"},"sender_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Name"},"issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Issued At"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"recipient_company_ids":{"items":{"type":"string"},"type":"array","title":"Recipient Company Ids"},"formatted_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted Number"}},"additionalProperties":false,"type":"object","required":["id","type","number","status","sender_org_id","sender_org_name","sender_name","issued_at","subject","recipient_company_ids"],"title":"LinkedNoticeSummaryResponse","description":"Lightweight summary of a chain-adjacent notice for the §7 timeline."},"LinkedNoticeSummarySchema":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"linked_id":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Linked Id"},"linked_friendly_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Friendly Id"}},"type":"object","required":["id","type"],"title":"LinkedNoticeSummarySchema","description":"Notice summary embedded on a thread response. Mirrors the shape\nds-api exposes on its EmailThreadWithLinkedNotice response so the\nfrontend's `LinkedNoticeSummary` keeps working unchanged."},"LinkedThreadResponse":{"properties":{"thread_doc_id":{"type":"string","title":"Thread Doc Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"participants":{"items":{"$ref":"#/components/schemas/LinkedEmailAddressResponse"},"type":"array","title":"Participants"},"message_count":{"type":"integer","title":"Message Count"},"attachment_count":{"type":"integer","title":"Attachment Count"},"last_message_date":{"type":"string","format":"date-time","title":"Last Message Date"},"latest_message":{"anyOf":[{"$ref":"#/components/schemas/LinkedEmailMessageResponse"},{"type":"null"}]},"linked_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked By Name"},"linked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Linked At"}},"additionalProperties":false,"type":"object","required":["thread_doc_id","subject","participants","message_count","attachment_count","last_message_date","latest_message","linked_by_name","linked_at"],"title":"LinkedThreadResponse"},"LinkedThreadsResponse":{"properties":{"notice_id":{"type":"string","title":"Notice Id"},"threads":{"items":{"$ref":"#/components/schemas/LinkedThreadResponse"},"type":"array","title":"Threads"}},"additionalProperties":false,"type":"object","required":["notice_id","threads"],"title":"LinkedThreadsResponse","description":"``GET .../notices/{notice_id}/linked-threads``. Newest activity first."},"LinkedVariationResponse":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["HVO","SVO"],"title":"Kind"},"reference":{"type":"string","title":"Reference"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"linked_notice_id":{"type":"string","title":"Linked Notice Id"},"via":{"type":"string","enum":["instruction","notice"],"title":"Via"}},"additionalProperties":false,"type":"object","required":["id","kind","reference","status","description","linked_notice_id","via"],"title":"LinkedVariationResponse","description":"A cost-domain variation linked to a notice on the chain (COM-1286).\n\nBuilder viewers only — the service leaves the list empty for anyone else.\n``via`` says how it attaches to ``linked_notice_id``: ``instruction`` (the\nnotice instructed it) or ``notice`` (linked from the variation)."},"LookupRequest":{"properties":{"form_ids":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Form Ids"}},"type":"object","required":["form_ids"],"title":"LookupRequest"},"LookupResponse":{"properties":{"links":{"additionalProperties":{"$ref":"#/components/schemas/LinkOut"},"type":"object","title":"Links"}},"type":"object","required":["links"],"title":"LookupResponse"},"MarkAllReadResponse":{"properties":{"marked":{"type":"integer","title":"Marked"}},"additionalProperties":false,"type":"object","required":["marked"],"title":"MarkAllReadResponse"},"MarkRespondedRequest":{"properties":{"company_id":{"type":"string","minLength":1,"title":"Company Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"attachments":{"items":{"$ref":"#/components/schemas/app__schemas__notices__notice__ReplyAttachmentRef"},"type":"array","title":"Attachments","default":[]}},"additionalProperties":false,"type":"object","required":["company_id"],"title":"MarkRespondedRequest","description":"Body for ``POST /{notice_id}:mark-responded``.\n\n``note`` is the issuer's reason when marking ON BEHALF of a company\n(COR-1074: caller's ``viewer_org_id`` query param == the notice's sender\norg and != ``company_id``) — the service requires it there, trimmed and\n1–2000 characters, answering 400 like every other notice-state\nprecondition. A company answering for itself may leave it out\n(attachment-only reply, COM-840); an over-long note is 400 either way.\nThe caller's own org travels as the ``viewer_org_id`` query param, as on\n``:acknowledge`` / ``:chase``, and is required (422 without it — the\nlegacy caller that sent none was removed under COR-1082)."},"MeetingMinutesAgendaItemResponse":{"properties":{"title":{"type":"string","title":"Title"},"category":{"type":"string","title":"Category"},"presenter":{"type":"string","title":"Presenter"},"duration":{"type":"string","title":"Duration"},"notes":{"type":"string","title":"Notes"}},"type":"object","required":["title","category","presenter","duration","notes"],"title":"MeetingMinutesAgendaItemResponse"},"MeetingMinutesAttendeeResponse":{"properties":{"name":{"type":"string","title":"Name"},"company":{"type":"string","title":"Company"},"email":{"type":"string","title":"Email"},"phone":{"type":"string","title":"Phone"},"attendance_status":{"type":"string","title":"Attendance Status"}},"type":"object","required":["name","company","email","phone","attendance_status"],"title":"MeetingMinutesAttendeeResponse"},"MeetingMinutesCreateRequest":{"properties":{"org_id":{"type":"string","title":"Org Id"},"meeting_type":{"type":"string","title":"Meeting Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"meeting_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Date"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"start_from":{"anyOf":[{"type":"string","enum":["template","previous","blank"]},{"type":"null"}],"title":"Start From"},"from_previous":{"type":"boolean","title":"From Previous","default":false}},"additionalProperties":false,"type":"object","required":["org_id","meeting_type"],"title":"MeetingMinutesCreateRequest"},"MeetingMinutesExtractRequest":{"properties":{"pdf_base64":{"type":"string","title":"Pdf Base64"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},"additionalProperties":false,"type":"object","required":["pdf_base64"],"title":"MeetingMinutesExtractRequest"},"MeetingMinutesExtractResponse":{"properties":{"meeting_title":{"type":"string","title":"Meeting Title"},"meeting_type":{"type":"string","title":"Meeting Type"},"date":{"type":"string","title":"Date"},"start_time":{"type":"string","title":"Start Time"},"end_time":{"type":"string","title":"End Time"},"location":{"type":"string","title":"Location"},"overview":{"type":"string","title":"Overview"},"organizer":{"type":"string","title":"Organizer"},"attendees":{"items":{"$ref":"#/components/schemas/MeetingMinutesAttendeeResponse"},"type":"array","title":"Attendees"},"agenda":{"items":{"$ref":"#/components/schemas/MeetingMinutesAgendaItemResponse"},"type":"array","title":"Agenda"}},"type":"object","required":["meeting_title","meeting_type","date","start_time","end_time","location","overview","organizer","attendees","agenda"],"title":"MeetingMinutesExtractResponse","description":"What the meeting minutes form fills from. Missing values are ``\"\"``."},"MeetingMinutesListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MeetingMinutesResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"MeetingMinutesListResponse"},"MeetingMinutesPatchRequest":{"properties":{"meeting_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"meeting_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Date"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"attendees":{"anyOf":[{"items":{"$ref":"#/components/schemas/AttendeeRequest"},"type":"array"},{"type":"null"}],"title":"Attendees"},"sections":{"anyOf":[{"items":{"$ref":"#/components/schemas/MinutesSectionRequest"},"type":"array"},{"type":"null"}],"title":"Sections"}},"additionalProperties":false,"type":"object","title":"MeetingMinutesPatchRequest","description":"Any subset of the editable fields. A key present with ``null`` clears an\noptional field; an absent key leaves it alone. ``attendees`` / ``sections``\nreplace the whole list (``null`` empties it)."},"MeetingMinutesPdfDownloadResponse":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"expires_in_hours":{"type":"integer","title":"Expires In Hours"}},"type":"object","required":["url","filename","expires_in_hours"],"title":"MeetingMinutesPdfDownloadResponse"},"MeetingMinutesResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"string","title":"Project Id"},"org_id":{"type":"string","title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"status":{"type":"string","enum":["draft","issued"],"title":"Status"},"meeting_type":{"type":"string","title":"Meeting Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"meeting_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Date"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Time"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"attendees":{"items":{"$ref":"#/components/schemas/AttendeeResponse"},"type":"array","title":"Attendees"},"sections":{"items":{"$ref":"#/components/schemas/MinutesSectionResponse"},"type":"array","title":"Sections"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"created_by":{"type":"string","title":"Created By"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"issued_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued By"},"issued_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued By Name"},"issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Issued At"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["id","workspace_id","project_id","org_id","org_name","status","meeting_type","title","meeting_date","start_time","end_time","location","attendees","sections","number","reference","project_name","created_by","created_by_name","created_at","updated_at","issued_by","issued_by_name","issued_at","version"],"title":"MeetingMinutesResponse"},"MemberResponse":{"properties":{"kinde_id":{"type":"string","title":"Kinde Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"is_project_manager":{"type":"boolean","title":"Is Project Manager"},"is_project_viewer":{"type":"boolean","title":"Is Project Viewer"},"is_revit_user":{"type":"boolean","title":"Is Revit User"},"is_cost_user":{"type":"boolean","title":"Is Cost User"}},"type":"object","required":["kinde_id","first_name","last_name","email","is_project_manager","is_project_viewer","is_revit_user","is_cost_user"],"title":"MemberResponse"},"MessageAuthorResponse":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"is_viewer_company":{"type":"boolean","title":"Is Viewer Company"}},"additionalProperties":false,"type":"object","required":["name","company_id","company_name","address","is_viewer_company"],"title":"MessageAuthorResponse","description":"Who wrote a message (COR-1291, D8). ``company_id`` / ``company_name``\nare null when the company cannot be worked out or this viewer is not\nshown it; ``address`` is an email reply's From address."},"MessageViewResponse":{"properties":{"internal":{"type":"boolean","title":"Internal"},"everyone":{"type":"boolean","title":"Everyone"},"visible_to":{"items":{"$ref":"#/components/schemas/CompanyRefResponse"},"type":"array","title":"Visible To"},"author":{"$ref":"#/components/schemas/MessageAuthorResponse"},"includes_builder":{"type":"boolean","title":"Includes Builder","default":false},"shared_by":{"anyOf":[{"$ref":"#/components/schemas/CompanyRefResponse"},{"type":"null"}]},"shared_with":{"items":{"$ref":"#/components/schemas/CompanyRefResponse"},"type":"array","title":"Shared With","default":[]},"share_to":{"anyOf":[{"items":{"$ref":"#/components/schemas/CompanyRefResponse"},"type":"array"},{"type":"null"}],"title":"Share To"},"share_to_without_email":{"items":{"type":"string"},"type":"array","title":"Share To Without Email","default":[]}},"additionalProperties":false,"type":"object","required":["internal","everyone","visible_to","author"],"title":"MessageViewResponse","description":"Who wrote a message and which companies may see it (COR-1291, D5/D8).\n\n``everyone``: the issuing company's send, for every company on the notice.\n``visible_to`` names only the companies this viewer is shown, the viewer's\nown first. ``internal``: an internal note, for the author's company only."},"MetadataRequirementResponse":{"properties":{"metadata_key":{"type":"string","title":"Metadata Key"},"mandatory":{"type":"boolean","title":"Mandatory"}},"type":"object","required":["metadata_key","mandatory"],"title":"MetadataRequirementResponse"},"MinutesActionRequest":{"properties":{"assignees":{"anyOf":[{"items":{"$ref":"#/components/schemas/ActionAssigneeRequest"},"type":"array"},{"type":"null"}],"title":"Assignees"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"}},"additionalProperties":false,"type":"object","title":"MinutesActionRequest","description":"An item's or sub-item's action (COR-1096): 1 to 20 assignees and an\noptional ``due_date`` (``YYYY-MM-DD``). No assignees and no due date is\nno action; a due date with no assignee is a 400."},"MinutesActionResponse":{"properties":{"assignees":{"items":{"$ref":"#/components/schemas/ActionAssigneeResponse"},"type":"array","title":"Assignees"},"due_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Date"}},"type":"object","required":["assignees","due_date"],"title":"MinutesActionResponse"},"MinutesItemRequest":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"text":{"type":"string","title":"Text","default":""},"text_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Html"},"sub_items":{"anyOf":[{"items":{"$ref":"#/components/schemas/MinutesSubItemRequest"},"type":"array"},{"type":"null"}],"title":"Sub Items"},"action":{"anyOf":[{"$ref":"#/components/schemas/MinutesActionRequest"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"MinutesItemRequest","description":"One item. ``text_html`` is its formatted copy (COR-1087), and absent\nis not null: markup is sanitised and ``text`` re-derived from it; null or\nblank makes a plain item of ``text``; absent — a client from before\nformatting existed — keeps the item's stored copy while ``text`` is\nunchanged.\n\n``sub_items`` (COR-1088) likewise: a list replaces the item's sub-items\nand null empties them; absent — a client from before sub-items existed —\nkeeps the sub-items stored under the item's id.\n\n``action`` (COR-1096) likewise, on an item and a sub-item alike: an\nobject replaces the row's action and null clears it; absent — a client\nfrom before actions existed — keeps the action stored under the row's\nid. A template drops every action it is sent."},"MinutesItemResponse":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"text_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Html"},"sub_items":{"items":{"$ref":"#/components/schemas/MinutesSubItemResponse"},"type":"array","title":"Sub Items"},"action":{"anyOf":[{"$ref":"#/components/schemas/MinutesActionResponse"},{"type":"null"}]}},"type":"object","required":["id","text","text_html","sub_items","action"],"title":"MinutesItemResponse"},"MinutesSectionRequest":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"title":{"type":"string","title":"Title","default":""},"items":{"items":{"$ref":"#/components/schemas/MinutesItemRequest"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","title":"MinutesSectionRequest"},"MinutesSectionResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"items":{"items":{"$ref":"#/components/schemas/MinutesItemResponse"},"type":"array","title":"Items"}},"type":"object","required":["id","title","items"],"title":"MinutesSectionResponse"},"MinutesSubItemRequest":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"text":{"type":"string","title":"Text","default":""},"text_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Html"},"action":{"anyOf":[{"$ref":"#/components/schemas/MinutesActionRequest"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"MinutesSubItemRequest","description":"One sub-item (COR-1088): an item's ``text`` / ``text_html`` and\n``action`` rules, one level down. It has no ``sub_items`` of its own —\nthe key is a 422."},"MinutesSubItemResponse":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"text_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text Html"},"action":{"anyOf":[{"$ref":"#/components/schemas/MinutesActionResponse"},{"type":"null"}]}},"type":"object","required":["id","text","text_html","action"],"title":"MinutesSubItemResponse"},"MinutesTemplateListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MinutesTemplateResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"MinutesTemplateListResponse"},"MinutesTemplatePutRequest":{"properties":{"org_id":{"type":"string","title":"Org Id"},"meeting_type":{"type":"string","title":"Meeting Type"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"attendees":{"items":{"$ref":"#/components/schemas/AttendeeRequest"},"type":"array","title":"Attendees"},"sections":{"items":{"$ref":"#/components/schemas/MinutesSectionRequest"},"type":"array","title":"Sections"}},"additionalProperties":false,"type":"object","required":["org_id","meeting_type"],"title":"MinutesTemplatePutRequest","description":"The whole template for one meeting type. ``attendees`` / ``sections``\nare the full lists; an item is an agenda line (≤ 500 chars of plain\ntext), with the minute item's ``text_html`` (COR-1087) and ``sub_items``\n(COR-1088) rules. An item's or sub-item's ``action`` has the minutes'\nshape and is dropped on save: a template holds none (COR-1096)."},"MinutesTemplateResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"string","title":"Project Id"},"org_id":{"type":"string","title":"Org Id"},"meeting_type":{"type":"string","title":"Meeting Type"},"meeting_type_key":{"type":"string","title":"Meeting Type Key"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"attendees":{"items":{"$ref":"#/components/schemas/AttendeeResponse"},"type":"array","title":"Attendees"},"sections":{"items":{"$ref":"#/components/schemas/MinutesSectionResponse"},"type":"array","title":"Sections"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["id","workspace_id","project_id","org_id","meeting_type","meeting_type_key","location","attendees","sections","updated_by","updated_at","version"],"title":"MinutesTemplateResponse"},"NextOccurrenceOut":{"properties":{"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"timezone":{"type":"string","title":"Timezone"}},"type":"object","required":["start","end","timezone"],"title":"NextOccurrenceOut","description":"Wall-clock ``start`` / ``end`` in ``timezone``."},"NoticeAttachmentDownloadResponse":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["url","filename","content_type","size_bytes"],"title":"NoticeAttachmentDownloadResponse"},"NoticeAttachmentRef":{"properties":{"kind":{"type":"string","const":"notice","title":"Kind"},"notice_id":{"type":"string","title":"Notice Id"},"attachment_id":{"type":"string","title":"Attachment Id"}},"additionalProperties":false,"type":"object","required":["kind","notice_id","attachment_id"],"title":"NoticeAttachmentRef","description":"One of an issued notice's own attachments (CDE-293).\n\nThe file the issuer attached to the notice body, stored at\n``notices/{notice_id}/attachments/{attachment_id}`` — the same id\n``GET .../notices/{notice_id}/attachments/{attachment_id}:download`` serves.\nNot a reply's file: those are ``ReplyAttachmentRef``."},"NoticeAwaitingCountResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"additionalProperties":false,"type":"object","required":["count"],"title":"NoticeAwaitingCountResponse","description":"Sidebar badge payload (COR-788) — notices in this project awaiting the\nviewer's company.\n\nDeliberately a one-key object rather than a bare integer: the badge is a\npolled endpoint, and a JSON object leaves room to add (say) a per-type\nbreakdown or a computed-at stamp without a breaking response-shape change.\n\n``count`` is contractually equal to the number of rows the register's\n\"Awaiting me\" tab shows for the same viewer and project — see\n``NoticeService.count_awaiting_for_company``."},"NoticeCreate":{"properties":{"type":{"type":"string","title":"Type"},"summary":{"type":"string","title":"Summary"},"status":{"$ref":"#/components/schemas/NoticeStatus","default":"draft"},"linked_id":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Linked Id"},"linked_friendly_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Friendly Id"},"list_index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Index"},"response_required":{"type":"boolean","title":"Response Required","default":false},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"internal_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internal Notes"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"recipients":{"items":{"$ref":"#/components/schemas/NoticeRecipientSchema"},"type":"array","title":"Recipients"},"template_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Category"},"template_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Type"},"thread_ids":{"items":{"type":"string"},"type":"array","title":"Thread Ids"}},"additionalProperties":false,"type":"object","required":["type","summary"],"title":"NoticeCreate","description":"Input for POST /notices. v1 of the shim only supports drafts;\ncallers that need to create non-draft notices for backfill / link\nflows should keep using ds-api directly until the Notice Platform\n/issue lands."},"NoticeDraftCreateRequest":{"properties":{"type_code":{"type":"string","title":"Type Code"},"field_values":{"additionalProperties":true,"type":"object","title":"Field Values","default":{}},"recipients":{"items":{"$ref":"#/components/schemas/InlineRecipientRequest"},"type":"array","title":"Recipients","default":[]},"attachment_refs":{"items":{"$ref":"#/components/schemas/AttachmentRefRequest"},"type":"array","title":"Attachment Refs","default":[]},"sender_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Id"},"parent_notice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Notice Id"},"parent_edge_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Edge Type"},"assignee_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"},"carry_attachments":{"type":"boolean","title":"Carry Attachments","default":false},"prefill_content":{"type":"boolean","title":"Prefill Content","default":false},"source_record":{"anyOf":[{"$ref":"#/components/schemas/SourceRecordRequest"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["type_code"],"title":"NoticeDraftCreateRequest"},"NoticeDraftListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NoticeDraftResponse"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items"],"title":"NoticeDraftListResponse"},"NoticeDraftPatchRequest":{"properties":{"field_values":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Field Values"},"recipients":{"anyOf":[{"items":{"$ref":"#/components/schemas/InlineRecipientRequest"},"type":"array"},{"type":"null"}],"title":"Recipients"},"attachment_refs":{"anyOf":[{"items":{"$ref":"#/components/schemas/AttachmentRefRequest"},"type":"array"},{"type":"null"}],"title":"Attachment Refs"},"sender_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Id"},"parent_notice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Notice Id"},"parent_edge_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Edge Type"},"assignee_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"}},"additionalProperties":false,"type":"object","title":"NoticeDraftPatchRequest"},"NoticeDraftResponse":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"string","title":"Project Id"},"type_code":{"type":"string","title":"Type Code"},"field_values":{"additionalProperties":true,"type":"object","title":"Field Values"},"recipients":{"items":{"$ref":"#/components/schemas/InlineRecipientResponse"},"type":"array","title":"Recipients"},"attachment_refs":{"items":{"$ref":"#/components/schemas/AttachmentRefResponse"},"type":"array","title":"Attachment Refs"},"version":{"type":"integer","title":"Version"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"sender_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Id"},"parent_notice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Notice Id"},"parent_edge_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Edge Type"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"assignee_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"},"source_record":{"anyOf":[{"$ref":"#/components/schemas/SourceRecordResponse"},{"type":"null"}]},"revises_notice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revises Notice Id"},"base_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Revision"},"revises_formatted_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revises Formatted Number"}},"additionalProperties":false,"type":"object","required":["id","user_id","workspace_id","project_id","type_code","field_values","recipients","attachment_refs","version"],"title":"NoticeDraftResponse"},"NoticeEdgeSummaryResponse":{"properties":{"edge_id":{"type":"string","title":"Edge Id"},"edge_type":{"type":"string","title":"Edge Type"},"direction":{"type":"string","enum":["outgoing","incoming"],"title":"Direction"},"peer_notice_id":{"type":"string","title":"Peer Notice Id"},"peer_type":{"type":"string","title":"Peer Type"},"peer_formatted_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Peer Formatted Number"},"peer_status":{"type":"string","title":"Peer Status"}},"additionalProperties":false,"type":"object","required":["edge_id","edge_type","direction","peer_notice_id","peer_type","peer_status"],"title":"NoticeEdgeSummaryResponse","description":"One chain neighbour of a register row (COR-769).\n\nFeeds the register's chain stepper (\"RFI 0019 › CI expected › SI\nexpected\"), which the bare ``edges_*_count`` integers could not. Capped\nper row server-side and filtered to peers the viewer is a party to, so\nthe list may be shorter than the counts."},"NoticeIngestRequest":{"properties":{"workspace_id":{"type":"string","minLength":1,"title":"Workspace Id"},"project_id":{"type":"string","minLength":1,"title":"Project Id"},"type_code":{"type":"string","minLength":1,"title":"Type Code"},"owner_user_id":{"type":"string","minLength":1,"title":"Owner User Id"},"field_values":{"additionalProperties":true,"type":"object","title":"Field Values"},"sender_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Id"},"source":{"type":"string","title":"Source","default":"dssite"},"submission_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Id"},"submission_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Url"}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","type_code","owner_user_id"],"title":"NoticeIngestRequest","description":"One captured external form submission → one notice draft."},"NoticeIngestResponse":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"type_code":{"type":"string","title":"Type Code"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"string","title":"Project Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"status":{"type":"string","title":"Status","default":"draft"}},"type":"object","required":["draft_id","type_code","workspace_id","project_id","owner_user_id"],"title":"NoticeIngestResponse"},"NoticeIssueRequest":{"properties":{"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"}},"additionalProperties":false,"type":"object","title":"NoticeIssueRequest","description":"Optional issue-time payload. The notice's email template\nreferences ``$workspace_name`` and ``$project_name`` placeholders\nin its subject/header. The frontend already has both via\n``useWorkspaceProject`` and passes them through here so the email\nreads naturally to external recipients. When absent, the service\nfalls back to the workspace_id / project_id strings."},"NoticeIssueResponse":{"properties":{"notice":{"$ref":"#/components/schemas/NoticePublic"},"email_status":{"$ref":"#/components/schemas/EmailDeliveryStatus"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["notice","email_status"],"title":"NoticeIssueResponse","description":"Response from POST /notices/{id}/issue. Frontend reads\n``notice`` to refresh its cached copy and ``email_status`` to drive\nthe success/failure toast."},"NoticeLastActivitySummary":{"properties":{"event_type":{"type":"string","title":"Event Type"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"open_count":{"type":"integer","title":"Open Count","default":0},"reply_count":{"type":"integer","title":"Reply Count","default":0},"attachment_count":{"type":"integer","title":"Attachment Count","default":0}},"additionalProperties":false,"type":"object","required":["event_type"],"title":"NoticeLastActivitySummary","description":"Denormalised \"Latest activity\" line for a register row (COR-769).\n\nRead straight off the notice document — no timeline fan-out. See\n``app/domain/notices/last_activity.py`` for why it is denormalised and\nwho writes it."},"NoticeListRecipient":{"properties":{"company_id":{"type":"string","title":"Company Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"role":{"type":"string","title":"Role"},"removed":{"type":"boolean","title":"Removed","default":false}},"additionalProperties":false,"type":"object","required":["company_id","org_name","role"],"title":"NoticeListRecipient","description":"Minimal recipient summary carried on each list row (register \"To\"\nfilter). Distinct from RecipientResponse, which adds the contact snapshot,\ndispatch, and bounce state only needed by the single-notice read."},"NoticeNotificationEmailLogItemResponse":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"notice_id":{"type":"string","title":"Notice Id"},"notice_type":{"type":"string","title":"Notice Type"},"notice_ref":{"type":"string","title":"Notice Ref"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"subject":{"type":"string","title":"Subject"},"to_email":{"type":"string","title":"To Email"},"to_name":{"type":"string","title":"To Name"},"success":{"type":"boolean","title":"Success"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["id","project_id","notice_id","notice_type","notice_ref","event_type","subject","to_email","to_name","success","error","created_at"],"title":"NoticeNotificationEmailLogItemResponse","description":"One email send attempt (COR-595 slice 4b) — log-only observability."},"NoticeNotificationEmailLogResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NoticeNotificationEmailLogItemResponse"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"NoticeNotificationEmailLogResponse"},"NoticeNotificationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NoticeNotificationResponse"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Cursor"},"unread_count":{"type":"integer","title":"Unread Count"}},"additionalProperties":false,"type":"object","required":["items","next_cursor","unread_count"],"title":"NoticeNotificationListResponse"},"NoticeNotificationLogItemResponse":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"notice_id":{"type":"string","title":"Notice Id"},"notice_type":{"type":"string","title":"Notice Type"},"title":{"type":"string","title":"Title"},"sender_org":{"type":"string","title":"Sender Org"},"action_route":{"type":"string","title":"Action Route"},"project_id":{"type":"string","title":"Project Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"formatted_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted Number"},"user_id":{"type":"string","title":"User Id"}},"additionalProperties":false,"type":"object","required":["id","event_type","notice_id","notice_type","title","sender_org","action_route","project_id","created_at","read_at","user_id"],"title":"NoticeNotificationLogItemResponse","description":"A log row (COR-595 admin view) — adds the recipient, which the personal\nfeed never exposes because there the caller IS the recipient."},"NoticeNotificationLogResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NoticeNotificationLogItemResponse"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"NoticeNotificationLogResponse"},"NoticeNotificationResponse":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"notice_id":{"type":"string","title":"Notice Id"},"notice_type":{"type":"string","title":"Notice Type"},"title":{"type":"string","title":"Title"},"sender_org":{"type":"string","title":"Sender Org"},"action_route":{"type":"string","title":"Action Route"},"project_id":{"type":"string","title":"Project Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"formatted_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted Number"}},"additionalProperties":false,"type":"object","required":["id","event_type","notice_id","notice_type","title","sender_org","action_route","project_id","created_at","read_at"],"title":"NoticeNotificationResponse"},"NoticePdfDownloadResponse":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"expires_in_hours":{"type":"integer","title":"Expires In Hours"}},"type":"object","required":["url","filename","expires_in_hours"],"title":"NoticePdfDownloadResponse","description":"PRE-437: on-click-minted signed URL for the issue-time notice PDF."},"NoticePictureResponse":{"properties":{"picture_id":{"type":"string","title":"Picture Id"},"src":{"type":"string","title":"Src"},"content_type":{"type":"string","title":"Content Type"},"width":{"type":"integer","title":"Width"},"height":{"type":"integer","title":"Height"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["picture_id","src","content_type","width","height","size_bytes"],"title":"NoticePictureResponse","description":"The stored picture. ``src`` is what the text references it by."},"NoticePublic":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"type":{"type":"string","title":"Type"},"status":{"$ref":"#/components/schemas/NoticeStatus"},"summary":{"type":"string","title":"Summary"},"linked_id":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Linked Id"},"linked_friendly_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Friendly Id"},"list_index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Index"},"response_required":{"type":"boolean","title":"Response Required","default":false},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"internal_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internal Notes"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"recipients":{"items":{"$ref":"#/components/schemas/NoticeRecipientSchema"},"type":"array","title":"Recipients"},"template_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Category"},"template_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Type"},"email_status":{"anyOf":[{"$ref":"#/components/schemas/EmailDeliveryStatus"},{"type":"null"}]},"email_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Sent At"},"email_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Message Id"},"email_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Error"},"send_mode":{"anyOf":[{"type":"string","enum":["oauth","system_relay"]},{"type":"null"}],"title":"Send Mode"},"issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Issued At"},"issued_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued By"},"company_ids":{"items":{"type":"string"},"type":"array","title":"Company Ids"},"thread_ids":{"items":{"type":"string"},"type":"array","title":"Thread Ids"},"is_deleted":{"type":"boolean","title":"Is Deleted","default":false},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"deleted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deleted By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"created_by":{"type":"string","title":"Created By","default":""},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"type":"string","title":"Updated By","default":""}},"type":"object","required":["id","workspace_id","project_id","type","status","summary"],"title":"NoticePublic","description":"Notice as returned by list/get/issue. Mirrors ds-api's\n``NoticeWithLinkedThreads`` (i.e. always includes thread_ids)."},"NoticeReadResponse":{"properties":{"notice":{"$ref":"#/components/schemas/NoticeResponse"},"edges":{"$ref":"#/components/schemas/EdgeSetResponse"},"recipients":{"items":{"$ref":"#/components/schemas/RecipientResponse"},"type":"array","title":"Recipients"},"timeline_events":{"items":{"$ref":"#/components/schemas/TimelineEventResponse"},"type":"array","title":"Timeline Events"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentResponse"},"type":"array","title":"Attachments"},"available_actions":{"items":{"$ref":"#/components/schemas/ActionResponse"},"type":"array","title":"Available Actions","default":[]},"linked_notices":{"items":{"$ref":"#/components/schemas/LinkedNoticeSummaryResponse"},"type":"array","title":"Linked Notices","default":[]},"chain_edges":{"items":{"$ref":"#/components/schemas/EdgeResponse"},"type":"array","title":"Chain Edges","default":[]},"linked_variations":{"items":{"$ref":"#/components/schemas/LinkedVariationResponse"},"type":"array","title":"Linked Variations","default":[]},"versions":{"items":{"$ref":"#/components/schemas/NoticeVersionSummaryResponse"},"type":"array","title":"Versions","default":[]},"revision_draft":{"anyOf":[{"$ref":"#/components/schemas/RevisionDraftRefResponse"},{"type":"null"}]},"composer":{"anyOf":[{"$ref":"#/components/schemas/ComposerResponse"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["notice","edges","recipients","timeline_events","attachments"],"title":"NoticeReadResponse","description":"Composite response for GET /notices/{notice_id}."},"NoticeRecipientSchema":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"type":{"type":"string","enum":["to","cc"],"title":"Type"}},"additionalProperties":false,"type":"object","required":["email","type"],"title":"NoticeRecipientSchema"},"NoticeResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"string","title":"Project Id"},"type":{"type":"string","title":"Type"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"status":{"type":"string","title":"Status"},"sender_id":{"type":"string","title":"Sender Id"},"sender_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Name"},"sender_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Id"},"sender_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Name"},"field_values":{"additionalProperties":true,"type":"object","title":"Field Values"},"awaiting_responses_from":{"items":{"type":"string"},"type":"array","title":"Awaiting Responses From"},"response_states":{"additionalProperties":{"$ref":"#/components/schemas/ResponseStateResponse"},"type":"object","title":"Response States"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Issued At"},"pdf_status":{"type":"string","title":"Pdf Status"},"pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Url"},"status_meta":{"additionalProperties":true,"type":"object","title":"Status Meta"},"edges_outgoing_count":{"type":"integer","title":"Edges Outgoing Count","default":0},"edges_incoming_count":{"type":"integer","title":"Edges Incoming Count","default":0},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"type_name":{"type":"string","title":"Type Name"},"formatted_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted Number"},"head_contract_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Head Contract Name"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"assignee_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"},"recipients":{"items":{"$ref":"#/components/schemas/NoticeListRecipient"},"type":"array","title":"Recipients"},"last_activity":{"anyOf":[{"$ref":"#/components/schemas/NoticeLastActivitySummary"},{"type":"null"}]},"edges":{"items":{"$ref":"#/components/schemas/NoticeEdgeSummaryResponse"},"type":"array","title":"Edges"},"variation_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variation Reference"},"source_record":{"anyOf":[{"$ref":"#/components/schemas/SourceRecordResponse"},{"type":"null"}]},"recipients_hidden":{"type":"boolean","title":"Recipients Hidden","default":false},"eot_decision":{"anyOf":[{"$ref":"#/components/schemas/EotDecisionResponse"},{"type":"null"}]},"revision":{"type":"integer","title":"Revision","default":0},"revision_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Label"},"revision_issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revision Issued At"},"revision_issued_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Issued By Name"},"revision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Note"}},"additionalProperties":false,"type":"object","required":["id","workspace_id","project_id","type","number","status","sender_id","sender_name","sender_org_id","sender_org_name","field_values","awaiting_responses_from","created_at","updated_at","issued_at","pdf_status","pdf_url","type_name"],"title":"NoticeResponse"},"NoticeSignoffRequest":{"properties":{"workspace_id":{"type":"string","minLength":1,"title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"notice_id":{"type":"string","minLength":1,"title":"Notice Id"},"approval_id":{"type":"string","minLength":1,"title":"Approval Id"},"outcome":{"type":"string","enum":["APPROVED","REJECTED"],"title":"Outcome"},"source":{"type":"string","enum":["internal","external"],"title":"Source","default":"internal"},"files":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Files"},"actor_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor User Id"},"actor_user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor User Email"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"additionalProperties":false,"type":"object","required":["workspace_id","notice_id","approval_id","outcome"],"title":"NoticeSignoffRequest","description":"One terminal approval-engine outcome → one stamp on the notice."},"NoticeSignoffResponse":{"properties":{"notice_id":{"type":"string","title":"Notice Id"},"outcome":{"type":"string","title":"Outcome"}},"type":"object","required":["notice_id","outcome"],"title":"NoticeSignoffResponse"},"NoticeStatus":{"type":"string","enum":["draft","issued","acknowledged","actioned","closed"],"title":"NoticeStatus"},"NoticeTemplateListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NoticeTemplateResponse"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"NoticeTemplateListResponse"},"NoticeTemplateRecipientRequest":{"properties":{"company_id":{"type":"string","title":"Company Id"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role","default":"for_response"}},"additionalProperties":false,"type":"object","required":["company_id","email"],"title":"NoticeTemplateRecipientRequest","description":"One default recipient — the draft's inline recipient shape.\n\nOnly the JSON shape is checked here; the values (non-blank\n``company_id``, a plausible ``email``, ``role`` one of\n``for_response`` / ``for_information``) are validated by the domain and\nanswer ``400``, not ``422``. Names are optional. A one-off external\nparty uses ``company_id = \"ext:<email>\"``."},"NoticeTemplateResponse":{"properties":{"type_code":{"type":"string","title":"Type Code"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"body_field_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Field Key"},"body_field_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Field Label"},"recipients":{"items":{"$ref":"#/components/schemas/InlineRecipientResponse"},"type":"array","title":"Recipients"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"additionalProperties":false,"type":"object","required":["type_code","org_id","body","body_html","body_field_key","body_field_label","recipients","updated_by","updated_at"],"title":"NoticeTemplateResponse"},"NoticeTemplateUpdateRequest":{"properties":{"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html"},"recipients":{"items":{"$ref":"#/components/schemas/NoticeTemplateRecipientRequest"},"type":"array","title":"Recipients"}},"additionalProperties":false,"type":"object","title":"NoticeTemplateUpdateRequest","description":"``PUT …/notice-templates/{type_code}`` — full replace.\n\nA body that is absent, null or whitespace-only means \"no default body\".\nA template with neither a body nor a recipient is a ``400``: clearing a\ntemplate is ``DELETE``.\n\n``body_html`` (COR-1036) is the formatted copy of the body, the same pair\na notice's main text carries (COR-1002): when it is sent, the backend\nsanitises it to canonical HTML and DERIVES ``body`` from it, whatever\nplain ``body`` came alongside; markup with no text in it (``\"\"`` or an\nempty editor's ``<p><br></p>``) saves no body at all, not even the plain\none sent with it. Absent or null, the template is plain and ``body`` is\ntaken as sent — a full replace, so a client that leaves ``body_html`` out\ndrops any formatted copy saved before."},"NoticeTypeDetailResponse":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"version":{"type":"integer","title":"Version"},"fields":{"items":{"$ref":"#/components/schemas/FieldDefResponse"},"type":"array","title":"Fields"},"status_flow":{"items":{"type":"string"},"type":"array","title":"Status Flow"},"transitions":{"items":{"$ref":"#/components/schemas/TransitionResponse"},"type":"array","title":"Transitions"},"response_actions":{"items":{"$ref":"#/components/schemas/ResponseActionResponse"},"type":"array","title":"Response Actions"},"pdf_template":{"$ref":"#/components/schemas/PdfTemplateRefResponse"},"permission_rules":{"items":{"$ref":"#/components/schemas/PermissionRuleResponse"},"type":"array","title":"Permission Rules"},"response_required":{"type":"boolean","title":"Response Required","default":true}},"additionalProperties":false,"type":"object","required":["code","name","prefix","version","fields","status_flow","transitions","response_actions","pdf_template","permission_rules"],"title":"NoticeTypeDetailResponse"},"NoticeTypeListItemResponse":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"can_issue":{"type":"boolean","title":"Can Issue"},"hidden":{"type":"boolean","title":"Hidden","default":false},"response_required":{"type":"boolean","title":"Response Required","default":true}},"additionalProperties":false,"type":"object","required":["code","name","prefix","can_issue"],"title":"NoticeTypeListItemResponse"},"NoticeTypeOrgOverridesUpdateRequest":{"properties":{"fields":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Fields"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"number_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Width"},"contract_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Reference"}},"additionalProperties":false,"type":"object","title":"NoticeTypeOrgOverridesUpdateRequest","description":"Organisation-layer save (COR-919) plus the issuer profile (COR-972).\n\nTwo different semantics in one body, deliberately:\n\n* ``fields`` — full replace, as on the workspace layer, when present.\n  Absent keeps the stored options, so a profile-only save from support\n  cannot clear the organisation's categories.\n* ``display_name`` / ``number_width`` / ``contract_reference`` — a patch.\n  Absent = keep the stored value, explicit ``null`` = clear it. The\n  composer's \"Customise list\" modal PUTs only ``{\"fields\": …}``; saving\n  categories therefore never wipes a profile.\n\nPresence is read from ``model_fields_set`` — see ``profile_updates`` and\n``field_options``. Value rules (strip, 1–60 / 1–80 chars, single line,\nwidth 3–6) live in the domain ``IssuerProfile`` and come back as 400."},"NoticeTypeOverridesResponse":{"properties":{"code":{"type":"string","title":"Code"},"fields":{"items":{"$ref":"#/components/schemas/OverridableFieldResponse"},"type":"array","title":"Fields"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"number_width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Width"},"contract_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Reference"}},"additionalProperties":false,"type":"object","required":["code","fields"],"title":"NoticeTypeOverridesResponse"},"NoticeTypeOverridesUpdateRequest":{"properties":{"fields":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Fields"}},"additionalProperties":false,"type":"object","title":"NoticeTypeOverridesUpdateRequest","description":"Full-replace payload: field key → replacement options.\n\nAn empty list clears that field's customisation; omitting a key clears\nit too (full replace). A payload that clears everything deletes the\nworkspace's override doc.\n\nWorkspace layer only. ``extra=\"forbid\"`` is also what rejects the\nCOR-972 issuer-profile keys here (422): a workspace has no issuer."},"NoticeTypeVisibilityResponse":{"properties":{"code":{"type":"string","title":"Code"},"hidden":{"type":"boolean","title":"Hidden"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},"additionalProperties":false,"type":"object","required":["code","hidden"],"title":"NoticeTypeVisibilityResponse"},"NoticeTypeVisibilityUpdateRequest":{"properties":{"hidden":{"type":"boolean","title":"Hidden"}},"additionalProperties":false,"type":"object","required":["hidden"],"title":"NoticeTypeVisibilityUpdateRequest","description":"Show (``hidden: false``) or hide a type in the New notice picker.\n\nStrict: ``\"yes\"`` / ``1`` are refused (422) rather than coerced — a\nmalformed switch must not silently hide a type for a whole workspace."},"NoticeUpdate":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/NoticeStatus"},{"type":"null"}]},"response_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Response Required"},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Due Date"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"internal_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internal Notes"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"linked_id":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Linked Id"},"linked_friendly_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Friendly Id"},"list_index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Index"},"thread_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Thread Ids"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"recipients":{"anyOf":[{"items":{"$ref":"#/components/schemas/NoticeRecipientSchema"},"type":"array"},{"type":"null"}],"title":"Recipients"},"template_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Category"},"template_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Type"}},"additionalProperties":false,"type":"object","title":"NoticeUpdate","description":"Input for PATCH /notices/{id}. All fields optional; only fields\nexplicitly present in the request body are updated."},"NoticeVersionResponse":{"properties":{"revision":{"type":"integer","title":"Revision"},"label":{"type":"string","title":"Label"},"is_current":{"type":"boolean","title":"Is Current"},"issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Issued At"},"issued_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued By Name"},"change_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Note"},"field_values":{"additionalProperties":true,"type":"object","title":"Field Values"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentResponse"},"type":"array","title":"Attachments"},"pdf_status":{"type":"string","title":"Pdf Status"},"pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Url"}},"additionalProperties":false,"type":"object","required":["revision","label","is_current","issued_at","issued_by_name","change_note","field_values","due_date","attachments","pdf_status"],"title":"NoticeVersionResponse","description":"``GET /notices/{id}/versions/{revision}`` — the document of one version\n(E8: content, attachments, PDF). The status, panel and timeline stay the\nnotice's and are read from the detail GET."},"NoticeVersionSummaryResponse":{"properties":{"revision":{"type":"integer","title":"Revision"},"label":{"type":"string","title":"Label"},"issued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Issued At"},"issued_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issued By Name"},"change_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Note"},"is_current":{"type":"boolean","title":"Is Current"}},"additionalProperties":false,"type":"object","required":["revision","label","issued_at","issued_by_name","change_note","is_current"],"title":"NoticeVersionSummaryResponse","description":"One entry of the version picker (``NoticeReadResponse.versions``)."},"OpportunityListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OpportunityResponse"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"limit":{"type":"integer","title":"Limit"},"total_count":{"type":"integer","title":"Total Count"}},"type":"object","required":["items","page","limit","total_count"],"title":"OpportunityListResponse"},"OpportunityResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_name":{"type":"string","title":"Project Name"},"status":{"type":"string","enum":["Identified","Qualifying","ROI","Tender","Negotiation","Awarded","Lost","Did Not Proceed"],"title":"Status"},"probability":{"type":"integer","title":"Probability"},"estimated_value_millions":{"type":"number","title":"Estimated Value Millions"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"project_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Type"},"priority":{"anyOf":[{"type":"string","enum":["High","Medium","Low"]},{"type":"null"}],"title":"Priority"},"opportunity_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opportunity Source"},"opportunity_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opportunity Notes"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"assigned_estimator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Estimator"},"submission_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Date"},"expected_award_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Award Date"},"lost_at_stage":{"anyOf":[{"type":"string","enum":["ROI","Tender","Negotiation"]},{"type":"null"}],"title":"Lost At Stage"},"lost_reason":{"anyOf":[{"type":"string","enum":["Price","Scope","Relationship","Timing","Client Cancelled","Other"]},{"type":"null"}],"title":"Lost Reason"},"lost_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lost Notes"},"contacts":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Contacts"},"competitors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Competitors"},"comments":{"items":{"$ref":"#/components/schemas/CommentResponse"},"type":"array","title":"Comments"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"project_created":{"type":"boolean","title":"Project Created","default":false},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Email"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","workspace_id","project_name","status","probability","estimated_value_millions"],"title":"OpportunityResponse"},"OpportunityUpdateRequest":{"properties":{"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"status":{"anyOf":[{"type":"string","enum":["Identified","Qualifying","ROI","Tender","Negotiation","Awarded","Lost","Did Not Proceed"]},{"type":"null"}],"title":"Status"},"probability":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Probability"},"estimated_value_millions":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Estimated Value Millions"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"project_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Type"},"priority":{"anyOf":[{"type":"string","enum":["High","Medium","Low"]},{"type":"null"}],"title":"Priority"},"opportunity_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opportunity Source"},"opportunity_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opportunity Notes"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"assigned_estimator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Estimator"},"submission_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Date"},"expected_award_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Award Date"},"lost_at_stage":{"anyOf":[{"type":"string","enum":["ROI","Tender","Negotiation"]},{"type":"null"}],"title":"Lost At Stage"},"lost_reason":{"anyOf":[{"type":"string","enum":["Price","Scope","Relationship","Timing","Client Cancelled","Other"]},{"type":"null"}],"title":"Lost Reason"},"lost_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lost Notes"},"contacts":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Contacts"},"competitors":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Competitors"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"}},"additionalProperties":false,"type":"object","title":"OpportunityUpdateRequest","description":"PUT body — partial update. All fields optional."},"OrgApprovalCompleteRequest":{"properties":{"admin_consent":{"type":"boolean","title":"Admin Consent","default":false},"tenant":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tenant"},"error":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Error"}},"additionalProperties":false,"type":"object","title":"OrgApprovalCompleteRequest","description":"What Microsoft put on the redirect, passed through by the page."},"OrgApprovalCompleteResponse":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"approved":{"type":"boolean","title":"Approved"},"capabilities":{"items":{"$ref":"#/components/schemas/Capability"},"type":"array","title":"Capabilities"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["provider","approved","capabilities"],"title":"OrgApprovalCompleteResponse"},"OrgApprovalLinkResponse":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"token":{"type":"string","title":"Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["provider","token","expires_at"],"title":"OrgApprovalLinkResponse"},"OrgApprovalStartResponse":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"capabilities":{"items":{"$ref":"#/components/schemas/Capability"},"type":"array","title":"Capabilities"},"admin_consent_url":{"type":"string","title":"Admin Consent Url"}},"type":"object","required":["provider","capabilities","admin_consent_url"],"title":"OrgApprovalStartResponse"},"OrgApprovalStatusResponse":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"state":{"type":"string","title":"State"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"capabilities":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Capabilities","default":{}}},"type":"object","required":["provider","state"],"title":"OrgApprovalStatusResponse"},"OverridableFieldResponse":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"field_type":{"type":"string","title":"Field Type"},"default_options":{"items":{"type":"string"},"type":"array","title":"Default Options"},"override_options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Override Options"}},"additionalProperties":false,"type":"object","required":["key","label","field_type","default_options"],"title":"OverridableFieldResponse","description":"One select-ish field as shown in the admin gear modal."},"PaginatedCompanyGroupsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/app__schemas__global_company_import__CompanyGroupResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["data","total","limit","offset"],"title":"PaginatedCompanyGroupsResponse"},"PaginatedCompanyUsersResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CompanyUserResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["data","total","limit","offset"],"title":"PaginatedCompanyUsersResponse"},"PaginatedContactsWithCompanyResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ContactWithCompanyResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["data","total","limit","offset"],"title":"PaginatedContactsWithCompanyResponse","description":"Page of joined contact + target rows for the directory list view."},"PaginatedEngagementsWithTargetResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/EngagementWithTargetResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["data","total","limit","offset"],"title":"PaginatedEngagementsWithTargetResponse","description":"Page of joined engagement + target rows for the directory list view."},"PaginatedImportRowsResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ImportRowResponse"},"type":"array","title":"Data"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["data","total","limit","offset"],"title":"PaginatedImportRowsResponse"},"PassToSubRequest":{"properties":{"sub_recipients":{"anyOf":[{"items":{"$ref":"#/components/schemas/InlineRecipientRequest"},"type":"array","maxItems":100,"minItems":1},{"type":"null"}],"title":"Sub Recipients"},"sub_recipient":{"anyOf":[{"$ref":"#/components/schemas/InlineRecipientRequest"},{"type":"null"}]},"field_values":{"additionalProperties":true,"type":"object","title":"Field Values"},"target_type":{"type":"string","title":"Target Type","default":"NTS"},"attachment_ids_to_exclude":{"items":{"type":"string"},"type":"array","title":"Attachment Ids To Exclude","default":[]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"additionalProperties":false,"type":"object","required":["field_values"],"title":"PassToSubRequest","description":"Body for ``POST /{notice_id}:pass-to-sub`` (COR-330).\n\n``sub_recipients`` (DEL-396) is everyone the child notice goes to: several\npeople at one subcontractor, several subcontractors, To\n(``for_response``) and FYI (``for_information``) mixed — 1 to 100\nentries. Exactly one of ``sub_recipients`` / ``sub_recipient`` must be\nsent; both, or neither, is a 422. Read them through ``recipients()``,\nwhich returns the list whichever form the body used.\n\n``timezone`` (COR-1309) — the IANA time zone name the caller's browser\nreports. The child notice's PDF prints its issue date in it. Optional and\nnever validated here: a name the server does not know is dropped and the\nPDF prints the Australia/Sydney date."},"PdfTemplateRefResponse":{"properties":{"template_id":{"type":"string","title":"Template Id"},"header_logo":{"type":"boolean","title":"Header Logo"}},"additionalProperties":false,"type":"object","required":["template_id","header_logo"],"title":"PdfTemplateRefResponse"},"PermissionRuleResponse":{"properties":{"action":{"type":"string","title":"Action"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"}},"additionalProperties":false,"type":"object","required":["action","roles"],"title":"PermissionRuleResponse"},"PinSyncRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"submission_id":{"type":"integer","title":"Submission Id"}},"type":"object","required":["workspace_id","submission_id"],"title":"PinSyncRequest"},"PreviewRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"category":{"type":"string","title":"Category"},"type":{"type":"string","title":"Type"},"template_variables":{"additionalProperties":true,"type":"object","title":"Template Variables"}},"additionalProperties":false,"type":"object","required":["workspace_id","category","type","template_variables"],"title":"PreviewRequest"},"PreviewResponse":{"properties":{"subject":{"type":"string","title":"Subject"},"html_body":{"type":"string","title":"Html Body"},"plain_text_body":{"type":"string","title":"Plain Text Body"},"template_source":{"$ref":"#/components/schemas/TemplateSource"},"layout_applied":{"type":"boolean","title":"Layout Applied"}},"type":"object","required":["subject","html_body","plain_text_body","template_source","layout_applied"],"title":"PreviewResponse"},"ProjectAccessResponse":{"properties":{"project_id":{"type":"integer","title":"Project Id"},"project_name":{"type":"string","title":"Project Name"},"has_access":{"type":"boolean","title":"Has Access"},"is_project_manager":{"type":"boolean","title":"Is Project Manager"},"is_project_viewer":{"type":"boolean","title":"Is Project Viewer"},"is_revit_user":{"type":"boolean","title":"Is Revit User"},"is_cost_user":{"type":"boolean","title":"Is Cost User"}},"type":"object","required":["project_id","project_name","has_access","is_project_manager","is_project_viewer","is_revit_user","is_cost_user"],"title":"ProjectAccessResponse"},"ProjectEngagementContactResponse":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"kinde_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kinde Id"},"status":{"type":"string","enum":["recorded","invited","active","archived"],"title":"Status"},"is_primary":{"type":"boolean","title":"Is Primary"},"on_this_project":{"type":"boolean","title":"On This Project"}},"type":"object","required":["id","email","first_name","last_name","kinde_id","status","is_primary","on_this_project"],"title":"ProjectEngagementContactResponse","description":"Contact embedded inside ``ProjectEngagementResponse``.\n\n``on_this_project`` is true when a ``databaseuserproject`` row exists for\nthis contact's kinde_id against the requested project_id — the FE uses\nit to flip the per-contact badge between \"Active\" / \"Recorded\"."},"ProjectEngagementResponse":{"properties":{"id":{"type":"integer","title":"Id"},"engagement_id":{"type":"integer","title":"Engagement Id"},"project_id":{"type":"integer","title":"Project Id"},"status":{"type":"string","enum":["active","archived"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"company_id":{"type":"integer","title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"relationship_type":{"items":{"type":"string","enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"]},"type":"array","uniqueItems":true,"title":"Relationship Type"},"contacts":{"items":{"$ref":"#/components/schemas/ProjectEngagementContactResponse"},"type":"array","title":"Contacts"}},"type":"object","required":["id","engagement_id","project_id","status","created_at","created_by_kinde_id","company_id","company_name","relationship_type","contacts"],"title":"ProjectEngagementResponse","description":"Bundled view: link + engagement summary + company + contacts.\n\nPowers Image #2 — one card per engagement on the project, with contacts\nnested. Returned from ``GET .../global-company-engagements``."},"ProjectHistoryItemResponse":{"properties":{"project_id":{"type":"integer","title":"Project Id"},"project_identifier":{"type":"string","title":"Project Identifier"},"project_name":{"type":"string","title":"Project Name"},"city":{"type":"string","title":"City"},"project_status":{"type":"string","enum":["ACTIVE","ON_HOLD","ARCHIVED"],"title":"Project Status"},"engaged_at":{"type":"string","format":"date-time","title":"Engaged At"}},"type":"object","required":["project_id","project_identifier","project_name","city","project_status","engaged_at"],"title":"ProjectHistoryItemResponse"},"ProjectHistoryResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ProjectHistoryItemResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ProjectHistoryResponse"},"ProjectMembersResponse":{"properties":{"companies":{"items":{"$ref":"#/components/schemas/app__schemas__project_distribution__CompanyGroupResponse"},"type":"array","title":"Companies"}},"type":"object","required":["companies"],"title":"ProjectMembersResponse"},"ProjectTeamRoleResponse":{"properties":{"role":{"$ref":"#/components/schemas/CustomRoleResponse"},"assignments":{"items":{"$ref":"#/components/schemas/AssignmentResponse"},"type":"array","title":"Assignments"}},"type":"object","required":["role","assignments"],"title":"ProjectTeamRoleResponse","description":"One project-scope custom role with the assignments effective on this project.\n\n``assignments`` are filtered server-side to those that apply to the requested\nproject (workspace-scope rows inheriting + project-scope rows matching the\nproject_id exactly). For the project-team view this list contains only\nproject-scope rows because the wrapping ``role`` is always project-scope."},"Provider":{"type":"string","enum":["google","microsoft"],"title":"Provider"},"ProviderAccountResponse":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"is_connected":{"type":"boolean","title":"Is Connected"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","default":[]}},"type":"object","required":["provider","is_connected"],"title":"ProviderAccountResponse"},"PublishRevisionRequest":{"properties":{"draft_id":{"type":"string","minLength":1,"title":"Draft Id"},"await_company_ids":{"items":{"type":"string"},"type":"array","title":"Await Company Ids"},"change_note":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Change Note"},"draft_version":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Draft Version"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"additionalProperties":false,"type":"object","required":["draft_id","await_company_ids"],"title":"PublishRevisionRequest","description":"Body for ``POST /notices/{id}:publish-revision``.\n\n``await_company_ids`` — the companies asked to answer this version (D3):\neach must have answered and still hold an active For-response row.\nRequired, may be empty; a company still awaited stays awaited either way\n(E5). ``change_note`` — the \"what changed\" line as the user left it; blank\nor omitted publishes the automatic line (D6). ``draft_version`` — the\ndraft version the publish step showed; 409 if the draft changed since.\n\nRecipients, the type and \"Hide recipients\" are not part of a revision\n(D4): the body has no place for them (``extra=\"forbid\"`` → 422).\n\n``timezone`` (COR-1309) — the IANA time zone name the publishing user's\nbrowser reports. The new version's PDF prints its \"Rev N issued\" date in\nit. Optional and never validated here: a name the server does not know\nis dropped and the PDF prints the Australia/Sydney date."},"PushFolderPreflightResponse":{"properties":{"file_count":{"type":"integer","title":"File Count"},"folder_count":{"type":"integer","title":"Folder Count"},"total_bytes":{"type":"number","title":"Total Bytes"},"limits":{"additionalProperties":{"type":"integer"},"type":"object","title":"Limits"},"violations":{"items":{"type":"string"},"type":"array","title":"Violations"}},"type":"object","required":["file_count","folder_count","total_bytes","limits","violations"],"title":"PushFolderPreflightResponse"},"PushFolderRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"integer","title":"Project Id"},"folder_ids":{"items":{"type":"string"},"type":"array","title":"Folder Ids","default":[]},"series_ids":{"items":{"type":"string"},"type":"array","title":"Series Ids","default":[]}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id"],"title":"PushFolderRequest"},"PushRegisterPreflightResponse":{"properties":{"file_count":{"type":"integer","title":"File Count"},"total_bytes":{"type":"number","title":"Total Bytes"},"limits":{"additionalProperties":{"type":"integer"},"type":"object","title":"Limits"},"violations":{"items":{"type":"string"},"type":"array","title":"Violations"}},"type":"object","required":["file_count","total_bytes","limits","violations"],"title":"PushRegisterPreflightResponse"},"PushRegisterRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"integer","title":"Project Id"},"series_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Series Ids"}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","series_ids"],"title":"PushRegisterRequest"},"PushToSiteRequest":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"destination":{"type":"string","enum":["project","company"],"title":"Destination","default":"project"},"heading":{"anyOf":[{"type":"string","enum":["safety","policy"]},{"type":"null"}],"title":"Heading"},"folder_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Path"}},"additionalProperties":false,"type":"object","required":["cde_id"],"title":"PushToSiteRequest"},"PushToSiteResponse":{"properties":{"resource_id":{"type":"integer","title":"Resource Id"},"resource_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Url"}},"type":"object","required":["resource_id"],"title":"PushToSiteResponse"},"PutRevisionReviewRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"integer","title":"Project Id"},"document_series_id":{"type":"string","title":"Document Series Id"},"old_cde_id":{"type":"integer","minimum":0.0,"title":"Old Cde Id"},"new_cde_id":{"type":"integer","minimum":1.0,"title":"New Cde Id"},"state":{"type":"string","enum":["to_review","reviewed"],"title":"State"},"note":{"type":"string","title":"Note","default":""}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","document_series_id","old_cde_id","new_cde_id","state"],"title":"PutRevisionReviewRequest"},"RaiseClarificationRequest":{"properties":{"clarifying_draft_id":{"type":"string","minLength":1,"title":"Clarifying Draft Id"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"additionalProperties":false,"type":"object","required":["clarifying_draft_id"],"title":"RaiseClarificationRequest","description":"Body for ``POST /{notice_id}:raise-clarification`` (COR-331).\n\n``timezone`` (COR-1309) — the IANA time zone name the caller's browser\nreports. The clarification's PDF prints its issue date in it. Optional\nand never validated here: a name the server does not know is dropped and\nthe PDF prints the Australia/Sydney date."},"RawMimeIngestResponse":{"properties":{"email_id":{"type":"string","title":"Email Id"},"thread_id":{"type":"string","title":"Thread Id"},"thread_doc_id":{"type":"string","title":"Thread Doc Id"},"thread_action":{"type":"string","title":"Thread Action"},"message_id":{"type":"string","title":"Message Id"},"from_address":{"type":"string","title":"From Address"},"attachments_stored":{"type":"integer","title":"Attachments Stored"},"raw_stored":{"type":"boolean","title":"Raw Stored"}},"additionalProperties":false,"type":"object","required":["email_id","thread_id","thread_doc_id","thread_action","message_id","from_address","attachments_stored","raw_stored"],"title":"RawMimeIngestResponse"},"RecipientResponse":{"properties":{"id":{"type":"string","title":"Id"},"company_id":{"type":"string","title":"Company Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"role":{"type":"string","title":"Role"},"added_by":{"type":"string","title":"Added By"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"dispatch_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dispatch Status"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"replied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Replied At"},"bounce_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bounce Reason"},"bounced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Bounced At"},"removed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Removed At"},"removed_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Removed By Name"}},"additionalProperties":false,"type":"object","required":["id","company_id","org_name","role","added_by","created_at","contact_email","contact_name","dispatch_status","sent_at","replied_at","bounce_reason","bounced_at"],"title":"RecipientResponse"},"ReconcileMode":{"type":"string","enum":["full","incremental"],"title":"ReconcileMode"},"ReconcileReportOut":{"properties":{"organisers":{"type":"integer","title":"Organisers"},"checked":{"type":"integer","title":"Checked"},"changed":{"type":"integer","title":"Changed"},"cancelled":{"type":"integer","title":"Cancelled"},"disconnected":{"type":"integer","title":"Disconnected"},"errors":{"type":"integer","title":"Errors"}},"type":"object","required":["organisers","checked","changed","cancelled","disconnected","errors"],"title":"ReconcileReportOut"},"ReconcileRequest":{"properties":{"window_days":{"type":"integer","maximum":366.0,"minimum":1.0,"title":"Window Days","default":90}},"type":"object","title":"ReconcileRequest"},"RecordEotDecisionRequest":{"properties":{"outcome":{"type":"string","enum":["granted","refused"],"title":"Outcome"},"days_granted":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Days Granted"},"decision_date":{"type":"string","format":"date","title":"Decision Date"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["outcome","decision_date"],"title":"RecordEotDecisionRequest","description":"Body for ``POST /{notice_id}:record-decision`` (COR-1292): the issuing\ncompany records the client's decision on its behalf."},"RecordSummaryRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"}},"additionalProperties":false,"type":"object","required":["prompt"],"title":"RecordSummaryRequest"},"RecordSummaryResponse":{"properties":{"summary":{"type":"string","title":"Summary"}},"type":"object","required":["summary"],"title":"RecordSummaryResponse"},"RecurrenceIn":{"properties":{"frequency":{"type":"string","enum":["daily","weekly","monthly"],"title":"Frequency"},"interval":{"type":"integer","title":"Interval","default":1},"days_of_week":{"items":{"type":"string"},"type":"array","title":"Days Of Week"},"until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Until"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"}},"type":"object","required":["frequency"],"title":"RecurrenceIn"},"RefuseEotRequest":{"properties":{"decision_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Decision Date"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","title":"RefuseEotRequest"},"RegisterDistributionListRequest":{"properties":{"distribution_list_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Distribution List Id"}},"type":"object","title":"RegisterDistributionListRequest"},"RegisterDistributionListResponse":{"properties":{"distribution_list_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Distribution List Id"}},"type":"object","required":["distribution_list_id"],"title":"RegisterDistributionListResponse"},"RegisterFromAttachmentItem":{"properties":{"source":{"oneOf":[{"$ref":"#/components/schemas/EmailAttachmentRef"},{"$ref":"#/components/schemas/app__schemas__jobs__ReplyAttachmentRef"},{"$ref":"#/components/schemas/NoticeAttachmentRef"}],"title":"Source","discriminator":{"propertyName":"kind","mapping":{"email":"#/components/schemas/EmailAttachmentRef","notice":"#/components/schemas/NoticeAttachmentRef","reply":"#/components/schemas/app__schemas__jobs__ReplyAttachmentRef"}}},"mode":{"type":"string","enum":["new","register","replace"],"title":"Mode","default":"register"},"document_series_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Series Id"},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata","default":{}},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"additionalProperties":false,"type":"object","required":["source"],"title":"RegisterFromAttachmentItem","description":"One already-stored attachment to file, register, or add as a revision.\n\nThree source kinds: an inbound email reply's attachment, an in-app reply's\nattachment, and the notice's own attachment (CDE-293). The first two mirror\nthe frontend's ``ReplyAttachment`` union — the timeline renders both through\none kind-agnostic chip row, so supporting only one here would force that\ncomponent to branch.\n\nNo filetype or size: both are read from the stored attachment rather than\ntrusted from the client, and the bytes are never re-uploaded."},"RegisterFromAttachmentsRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"items":{"items":{"$ref":"#/components/schemas/RegisterFromAttachmentItem"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["workspace_id","items"],"title":"RegisterFromAttachmentsRequest"},"RegisterFromAttachmentsResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"additionalProperties":false,"type":"object","required":["job_id"],"title":"RegisterFromAttachmentsResponse"},"RegisterPortalAccessRequest":{"properties":{"open_to_all_portal_subcontractors":{"type":"boolean","title":"Open To All Portal Subcontractors"}},"type":"object","required":["open_to_all_portal_subcontractors"],"title":"RegisterPortalAccessRequest"},"RegisterPortalAccessResponse":{"properties":{"open_to_all_portal_subcontractors":{"type":"boolean","title":"Open To All Portal Subcontractors"}},"type":"object","required":["open_to_all_portal_subcontractors"],"title":"RegisterPortalAccessResponse"},"RegisterSnapshotSchema":{"properties":{"document_series_id":{"type":"string","minLength":1,"title":"Document Series Id"},"cde_id":{"type":"integer","title":"Cde Id"},"version":{"type":"integer","title":"Version"},"doc_number":{"type":"string","title":"Doc Number","default":""},"title":{"type":"string","title":"Title","default":""},"revision":{"type":"string","title":"Revision","default":""},"discipline":{"type":"string","title":"Discipline","default":""}},"additionalProperties":false,"type":"object","required":["document_series_id","cde_id","version"],"title":"RegisterSnapshotSchema","description":"Document Register identity captured when the attachment was picked\n(COR-877). One model for both directions: the composer sends back exactly\nwhat it will later be shown, and there is no server-derived field to make\nthe two shapes diverge.\n\n``document_series_id`` is the only required value — the register allows\n``doc_number``/``revision``/``title``/``discipline`` to be blank, and a\ndrawing registered without a doc number must still be attachable."},"RegisterTaskRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"attempt":{"type":"integer","minimum":1.0,"title":"Attempt","description":"1-based retry number in the chain"}},"additionalProperties":false,"type":"object","required":["workspace_id","attempt"],"title":"RegisterTaskRequest","description":"Body of the Cloud Tasks POST to ``/internal/office/tasks/register``."},"RegisteredDrawingOut":{"properties":{"document_series_id":{"type":"string","title":"Document Series Id"},"folder_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Path"},"current":{"$ref":"#/components/schemas/RegisteredRevisionOut"},"revisions":{"items":{"$ref":"#/components/schemas/RegisteredRevisionOut"},"type":"array","title":"Revisions"}},"type":"object","required":["document_series_id","current","revisions"],"title":"RegisteredDrawingOut","description":"A drawing that already holds a document number (CDE-387)."},"RegisteredRevisionOut":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"doc_number":{"type":"string","title":"Doc Number"},"title":{"type":"string","title":"Title"},"discipline":{"type":"string","title":"Discipline"},"revision":{"type":"string","title":"Revision"},"revision_date":{"type":"string","title":"Revision Date"},"area":{"type":"string","title":"Area","default":""}},"type":"object","required":["cde_id","doc_number","title","discipline","revision","revision_date"],"title":"RegisteredRevisionOut"},"RegistrationEventDto":{"properties":{"event":{"$ref":"#/components/schemas/RegistrationEventSummaryDto"},"sheets":{"items":{"$ref":"#/components/schemas/RegistrationSheetDto"},"type":"array","title":"Sheets"}},"type":"object","required":["event","sheets"],"title":"RegistrationEventDto"},"RegistrationEventSummaryDto":{"properties":{"job_id":{"type":"string","title":"Job Id"},"job_type":{"type":"string","enum":["bulk_revisions","bulk_promote_documents"],"title":"Job Type"},"project_id":{"type":"integer","title":"Project Id"},"registered_by_kinde_id":{"type":"string","title":"Registered By Kinde Id"},"registered_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registered By Name"},"registered_at":{"type":"string","format":"date-time","title":"Registered At"},"sheet_count":{"type":"integer","title":"Sheet Count"}},"type":"object","required":["job_id","job_type","project_id","registered_by_kinde_id","registered_by_name","registered_at","sheet_count"],"title":"RegistrationEventSummaryDto"},"RegistrationEventsResponse":{"properties":{"events":{"items":{"$ref":"#/components/schemas/RegistrationEventSummaryDto"},"type":"array","title":"Events"},"next_before":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Before"}},"type":"object","required":["events","next_before"],"title":"RegistrationEventsResponse"},"RegistrationSheetDto":{"properties":{"position":{"type":"integer","title":"Position"},"new_cde_id":{"type":"integer","title":"New Cde Id"},"old_cde_id":{"type":"integer","title":"Old Cde Id"},"document_series_id":{"type":"string","title":"Document Series Id"},"is_new":{"type":"boolean","title":"Is New"},"available":{"type":"boolean","title":"Available"},"doc_number":{"type":"string","title":"Doc Number"},"title":{"type":"string","title":"Title"},"discipline":{"type":"string","title":"Discipline"},"rev_from":{"type":"string","title":"Rev From"},"rev_to":{"type":"string","title":"Rev To"},"display_file_name":{"type":"string","title":"Display File Name"},"changes_status":{"anyOf":[{"type":"string","enum":["queued","running","done","failed","too_large"]},{"type":"null"}],"title":"Changes Status"},"changes_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changes Summary"},"changes_count":{"type":"integer","title":"Changes Count"},"review_state":{"type":"string","enum":["to_review","reviewed"],"title":"Review State"},"reviewed_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewed By Name"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"followups":{"$ref":"#/components/schemas/FollowupCountsDto"}},"type":"object","required":["position","new_cde_id","old_cde_id","document_series_id","is_new","available","doc_number","title","discipline","rev_from","rev_to","display_file_name","changes_status","changes_summary","changes_count","review_state","reviewed_by_name","reviewed_at","followups"],"title":"RegistrationSheetDto"},"RelatedNoticeItem":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name"},"project_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Identifier"},"type":{"type":"string","title":"Type"},"formatted_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formatted Number"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"status":{"type":"string","title":"Status"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"overdue":{"type":"boolean","title":"Overdue"},"awaiting_my_org":{"type":"boolean","title":"Awaiting My Org"},"sender_org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Org Name"},"relations":{"items":{"type":"string"},"type":"array","title":"Relations"}},"additionalProperties":false,"type":"object","required":["id","project_id","project_name","project_identifier","type","formatted_number","subject","status","due_date","updated_at","overdue","awaiting_my_org","sender_org_name","relations"],"title":"RelatedNoticeItem"},"RelatedToMeResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RelatedNoticeItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"target_user_id":{"type":"string","title":"Target User Id"}},"additionalProperties":false,"type":"object","required":["items","total","target_user_id"],"title":"RelatedToMeResponse"},"RemoveRecipientRequest":{"properties":{"recipient_id":{"type":"string","minLength":1,"title":"Recipient Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["recipient_id"],"title":"RemoveRecipientRequest","description":"Body for ``POST /{notice_id}:remove-recipient`` (COR-1078).\n\n``recipient_id`` is the recipient row to take off the distribution (soft:\nthe row stays, flagged removed). ``note`` is REQUIRED (trimmed, 1–2000\ncharacters) when that row is the last For-response row of a company still\nowing an answer — the company then stops owing it — and optional\notherwise. The caller's org travels as the ``viewer_org_id`` query param."},"RenameBySeriesRequest":{"properties":{"document_series_id":{"type":"string","title":"Document Series Id"},"new_display_name":{"type":"string","title":"New Display Name"}},"additionalProperties":false,"type":"object","required":["document_series_id","new_display_name"],"title":"RenameBySeriesRequest"},"RenameBySeriesResponse":{"properties":{"document_series_id":{"type":"string","title":"Document Series Id"},"new_display_name":{"type":"string","title":"New Display Name"},"renamed_count":{"type":"integer","title":"Renamed Count"},"cde_ids":{"items":{"type":"integer"},"type":"array","title":"Cde Ids"},"old_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Name"}},"type":"object","required":["document_series_id","new_display_name","renamed_count","cde_ids","old_name"],"title":"RenameBySeriesResponse"},"RenameDistributionListRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"RenameDistributionListRequest"},"RenewReportOut":{"properties":{"checked":{"type":"integer","title":"Checked"},"renewed":{"type":"integer","title":"Renewed"},"recreated":{"type":"integer","title":"Recreated"},"dropped":{"type":"integer","title":"Dropped"},"errors":{"type":"integer","title":"Errors"}},"type":"object","required":["checked","renewed","recreated","dropped","errors"],"title":"RenewReportOut"},"RenewRequest":{"properties":{},"type":"object","title":"RenewRequest","description":"No parameters; a body object keeps the OIDC audience equal to the URL\nand lets Cloud Scheduler send ``application/json``."},"ReopenNoticeRequest":{"properties":{"note":{"type":"string","title":"Note"},"await_company_ids":{"items":{"type":"string"},"type":"array","title":"Await Company Ids","default":[]}},"additionalProperties":false,"type":"object","required":["note"],"title":"ReopenNoticeRequest","description":"Body for ``POST /{notice_id}:reopen`` (COR-1077).\n\n``note`` is REQUIRED — the reason for reopening (trimmed, 1–2000\ncharacters; the service answers 400 otherwise). ``await_company_ids``\nnames the companies that answered and are asked to answer again; each\nmust have responded and still hold an active For-response recipient.\nCompanies still awaiting stay awaiting whatever this list says. The\ncaller's org travels as the ``viewer_org_id`` query param."},"ReorderRequest":{"properties":{"order":{"additionalProperties":{"type":"integer"},"type":"object","title":"Order"}},"additionalProperties":false,"type":"object","required":["order"],"title":"ReorderRequest"},"ReorderRevisionsRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"type":"string","title":"Project Id"},"document_series_id":{"type":"string","title":"Document Series Id"},"revision_cde_ids":{"items":{"type":"integer"},"type":"array","maxItems":500,"minItems":1,"title":"Revision Cde Ids"}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","document_series_id","revision_cde_ids"],"title":"ReorderRevisionsRequest","description":"A new order for the registered revisions of one drawing (CDE-404)."},"ReorderRevisionsResponse":{"properties":{"changed":{"type":"boolean","title":"Changed"},"current_changed":{"type":"boolean","title":"Current Changed"},"current_cde_id":{"type":"integer","title":"Current Cde Id"},"revision_cde_ids":{"items":{"type":"integer"},"type":"array","title":"Revision Cde Ids"},"moved_cde_ids":{"items":{"type":"integer"},"type":"array","title":"Moved Cde Ids"},"site_push_job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Site Push Job Id"}},"type":"object","required":["changed","current_changed","current_cde_id","revision_cde_ids","moved_cde_ids"],"title":"ReorderRevisionsResponse"},"ReplyAttachmentDownloadResponse":{"properties":{"url":{"type":"string","title":"Url"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},"additionalProperties":false,"type":"object","required":["url","filename","content_type","size_bytes"],"title":"ReplyAttachmentDownloadResponse","description":"Signed GET URL for one file attached to an in-app reply (COM-840)."},"RequestCiRecipient":{"properties":{"company_id":{"type":"string","minLength":1,"title":"Company Id"},"company_name":{"type":"string","minLength":1,"title":"Company Name"},"contact_name":{"type":"string","minLength":1,"title":"Contact Name"},"email":{"type":"string","minLength":1,"title":"Email"}},"additionalProperties":false,"type":"object","required":["company_id","company_name","contact_name","email"],"title":"RequestCiRecipient","description":"A single client recipient the builder picks from the directory (COR-499).\n\nEmail-only: the client has no resolvable user_id (COR-234 unavailable), so\nwe carry the contact details inline rather than a company/user reference."},"RequestCiRequest":{"properties":{"recipients":{"items":{"$ref":"#/components/schemas/RequestCiRecipient"},"type":"array","minItems":1,"title":"Recipients"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["recipients"],"title":"RequestCiRequest","description":"Body for ``POST /notices/{id}:request-ci`` (COR-499).\n\nThe builder (respondent on the CAN) asks the client to issue a CI. This is\nNOT an issuance — no edge, no child notice, no status change. The frontend\npicks the client recipient(s) from the directory and sends them here."},"RequestRevisionChangesRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"old_cde_id":{"type":"integer","title":"Old Cde Id"},"new_cde_id":{"type":"integer","title":"New Cde Id"},"regenerate":{"type":"boolean","title":"Regenerate","default":false}},"additionalProperties":false,"type":"object","required":["workspace_id","old_cde_id","new_cde_id"],"title":"RequestRevisionChangesRequest"},"RequireResponseRequest":{"properties":{"company_id":{"type":"string","minLength":1,"title":"Company Id"},"recipient_ids":{"items":{"type":"string"},"type":"array","title":"Recipient Ids","default":[]},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["company_id"],"title":"RequireResponseRequest","description":"Body for ``POST /{notice_id}:require-response`` — \"Set as To\" (COR-1078).\n\n``company_id`` names the company the issuer now asks to respond.\n``recipient_ids`` narrows the ask to some of that company's active rows;\nempty means all of them. ``note`` is optional (trimmed, at most 2000\ncharacters) and is quoted in the \"Response requested\" email — REQUIRED\nwhen the company already answered and is being asked again (COR-1083).\nThe caller's org travels as the ``viewer_org_id`` query param, as on\n``:waive-response``."},"ResolveCompaniesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DirectoryCompanyResolveResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ResolveCompaniesResponse","description":"Batch resolve response wrapper."},"ResolvedDocumentReferenceResponse":{"properties":{"document_number":{"type":"string","title":"Document Number"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"cde_id":{"type":"integer","title":"Cde Id"},"is_current_revision":{"type":"boolean","title":"Is Current Revision"},"registered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registered At"}},"additionalProperties":false,"type":"object","required":["document_number","revision","title","cde_id","is_current_revision","registered_at"],"title":"ResolvedDocumentReferenceResponse","description":"A document KAI referenced that resolves to a real registered document\nat its current revision, as at the response's ``as_at`` date."},"ResponseActionResponse":{"properties":{"action":{"type":"string","title":"Action"},"label":{"type":"string","title":"Label"},"edge_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edge Type"},"visible_in_statuses":{"items":{"type":"string"},"type":"array","title":"Visible In Statuses"},"visible_to_roles":{"items":{"type":"string"},"type":"array","title":"Visible To Roles"},"tier":{"type":"string","title":"Tier","default":"neutral"},"target_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"},"reason":{"type":"string","title":"Reason","default":""}},"additionalProperties":false,"type":"object","required":["action","label","visible_in_statuses","visible_to_roles"],"title":"ResponseActionResponse"},"ResponseStateResponse":{"properties":{"state":{"type":"string","title":"State"},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"},"actor_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},"additionalProperties":false,"type":"object","required":["state","at","actor_id","actor_name","note","source"],"title":"ResponseStateResponse","description":"One company's response state on a notice (COR-1074)."},"ReviewCreate":{"properties":{"project_id":{"type":"integer","title":"Project Id"},"reviewed_at":{"type":"string","format":"date-time","title":"Reviewed At"},"dimensions":{"additionalProperties":{"type":"number"},"type":"object","title":"Dimensions"},"comments":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Comments"}},"additionalProperties":false,"type":"object","required":["project_id","reviewed_at","dimensions"],"title":"ReviewCreate"},"ReviewListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ReviewResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"ReviewListResponse"},"ReviewResponse":{"properties":{"id":{"type":"integer","title":"Id"},"engagement_id":{"type":"integer","title":"Engagement Id"},"project_id":{"type":"integer","title":"Project Id"},"reviewed_by_kinde_id":{"type":"string","title":"Reviewed By Kinde Id"},"reviewer_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer First Name"},"reviewer_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewer Last Name"},"reviewed_at":{"type":"string","format":"date-time","title":"Reviewed At"},"dimensions":{"additionalProperties":{"type":"number"},"type":"object","title":"Dimensions"},"overall_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Score"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"project_identifier":{"type":"string","title":"Project Identifier"},"project_name":{"type":"string","title":"Project Name"},"city":{"type":"string","title":"City"},"project_status":{"type":"string","enum":["ACTIVE","ON_HOLD","ARCHIVED"],"title":"Project Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","engagement_id","project_id","reviewed_by_kinde_id","reviewer_first_name","reviewer_last_name","reviewed_at","dimensions","overall_score","comments","project_identifier","project_name","city","project_status","created_at","updated_at"],"title":"ReviewResponse"},"ReviewUpdate":{"properties":{"reviewed_at":{"type":"string","format":"date-time","title":"Reviewed At"},"dimensions":{"additionalProperties":{"type":"number"},"type":"object","title":"Dimensions"},"comments":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Comments"}},"additionalProperties":false,"type":"object","required":["reviewed_at","dimensions"],"title":"ReviewUpdate"},"RevisionChangeItem":{"properties":{"type":{"type":"string","title":"Type"},"title":{"type":"string","title":"Title"},"detail":{"type":"string","title":"Detail"},"location":{"type":"string","title":"Location"},"position":{"anyOf":[{"$ref":"#/components/schemas/ChangePositionDto"},{"type":"null"}]}},"type":"object","required":["type","title","detail","location"],"title":"RevisionChangeItem"},"RevisionChangeResponse":{"properties":{"kind":{"type":"string","title":"Kind"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"label":{"type":"string","title":"Label"},"old":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old"},"new":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New"},"text":{"type":"string","title":"Text"}},"additionalProperties":false,"type":"object","required":["kind","key","label","old","new","text"],"title":"RevisionChangeResponse"},"RevisionChangesResponse":{"properties":{"old_cde_id":{"type":"integer","title":"Old Cde Id"},"new_cde_id":{"type":"integer","title":"New Cde Id"},"status":{"type":"string","enum":["none","queued","running","done","failed","too_large"],"title":"Status"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"changes":{"items":{"$ref":"#/components/schemas/RevisionChangeItem"},"type":"array","title":"Changes","default":[]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"positions":{"type":"string","enum":["ready","locating","missing"],"title":"Positions","default":"missing"},"hidden_markers":{"items":{"type":"integer"},"type":"array","title":"Hidden Markers","default":[]},"hidden_markers_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hidden Markers By Name"},"hidden_markers_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hidden Markers At"}},"type":"object","required":["old_cde_id","new_cde_id","status"],"title":"RevisionChangesResponse"},"RevisionDraftRefResponse":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"started_by":{"type":"string","title":"Started By"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"version":{"type":"integer","title":"Version"},"base_revision":{"type":"integer","title":"Base Revision"},"publish_unfinished":{"type":"boolean","title":"Publish Unfinished","default":false}},"additionalProperties":false,"type":"object","required":["draft_id","started_by","started_at","updated_at","version","base_revision"],"title":"RevisionDraftRefResponse","description":"That a draft revision is open on the notice (COR-1202) — on the read of\nthe issuing company only, so the page can offer \"continue\"."},"RevisionFollowupDto":{"properties":{"id":{"type":"string","title":"Id"},"old_cde_id":{"type":"integer","title":"Old Cde Id"},"new_cde_id":{"type":"integer","title":"New Cde Id"},"project_id":{"type":"integer","title":"Project Id"},"document_series_id":{"type":"string","title":"Document Series Id"},"kind":{"type":"string","enum":["rfi","action","cost"],"title":"Kind"},"items":{"items":{"type":"integer"},"type":"array","title":"Items"},"item_titles":{"items":{"type":"string"},"type":"array","title":"Item Titles"},"record_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Id"},"note":{"type":"string","title":"Note"},"status":{"anyOf":[{"type":"string","enum":["draft","open","answered","closed","removed"]},{"type":"null"}],"title":"Status"},"record_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Label"},"change_set_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Change Set Updated At"},"change_set_prompt_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Change Set Prompt Version"},"created_by_kinde_id":{"type":"string","title":"Created By Kinde Id"},"created_by_name":{"type":"string","title":"Created By Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","old_cde_id","new_cde_id","project_id","document_series_id","kind","items","item_titles","record_id","note","status","change_set_updated_at","change_set_prompt_version","created_by_kinde_id","created_by_name","created_at"],"title":"RevisionFollowupDto"},"RevisionFollowupsResponse":{"properties":{"followups":{"items":{"$ref":"#/components/schemas/RevisionFollowupDto"},"type":"array","title":"Followups"}},"type":"object","required":["followups"],"title":"RevisionFollowupsResponse"},"RevisionRespondentResponse":{"properties":{"company_id":{"type":"string","title":"Company Id"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"locked":{"type":"boolean","title":"Locked"},"can_tick":{"type":"boolean","title":"Can Tick"},"ticked_by_default":{"type":"boolean","title":"Ticked By Default"}},"additionalProperties":false,"type":"object","required":["company_id","company_name","state","locked","can_tick","ticked_by_default"],"title":"RevisionRespondentResponse"},"RevisionReviewDto":{"properties":{"old_cde_id":{"type":"integer","title":"Old Cde Id"},"new_cde_id":{"type":"integer","title":"New Cde Id"},"project_id":{"type":"integer","title":"Project Id"},"document_series_id":{"type":"string","title":"Document Series Id"},"state":{"type":"string","enum":["to_review","reviewed"],"title":"State"},"note":{"type":"string","title":"Note"},"updated_by_kinde_id":{"type":"string","title":"Updated By Kinde Id"},"updated_by_name":{"type":"string","title":"Updated By Name"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["old_cde_id","new_cde_id","project_id","document_series_id","state","note","updated_by_kinde_id","updated_by_name","updated_at"],"title":"RevisionReviewDto"},"RevisionReviewsResponse":{"properties":{"reviews":{"items":{"$ref":"#/components/schemas/RevisionReviewDto"},"type":"array","title":"Reviews"}},"type":"object","required":["reviews"],"title":"RevisionReviewsResponse"},"RevisionSummaryResponse":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"draft_version":{"type":"integer","title":"Draft Version"},"revision":{"type":"integer","title":"Revision"},"label":{"type":"string","title":"Label"},"has_changes":{"type":"boolean","title":"Has Changes"},"auto_change_note":{"type":"string","title":"Auto Change Note"},"changes":{"items":{"$ref":"#/components/schemas/RevisionChangeResponse"},"type":"array","title":"Changes"},"respondents":{"items":{"$ref":"#/components/schemas/RevisionRespondentResponse"},"type":"array","title":"Respondents"}},"additionalProperties":false,"type":"object","required":["draft_id","draft_version","revision","label","has_changes","auto_change_note","changes","respondents"],"title":"RevisionSummaryResponse","description":"``GET /notices/{id}/revision:summary`` — what the publish step shows."},"RoleRecipientRequest":{"properties":{"source":{"type":"string","title":"Source"},"role":{"type":"string","title":"Role","default":"for_response"}},"additionalProperties":false,"type":"object","required":["source"],"title":"RoleRecipientRequest","description":"One default recipient named by role, not by person.\n\nOnly the JSON shape is checked here; the values (``source`` one of the\nallowed sources, ``role`` one of ``for_response`` / ``for_information``)\nare validated by the domain and answer ``400``, not ``422``."},"RoleRecipientResponse":{"properties":{"source":{"type":"string","title":"Source"},"role":{"type":"string","title":"Role"}},"additionalProperties":false,"type":"object","required":["source","role"],"title":"RoleRecipientResponse"},"RowFixRequest":{"properties":{"company_name":{"type":"string","title":"Company Name"},"country":{"type":"string","enum":["AU","NZ"],"title":"Country"},"tax_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Id"},"relationship_type":{"items":{"type":"string","enum":["SUBCONTRACTOR","SUPPLIER","CLIENT","CONSULTANT"]},"type":"array","title":"Relationship Type"},"contact":{"anyOf":[{"$ref":"#/components/schemas/ContactFix"},{"type":"null"}]}},"type":"object","required":["company_name","country","relationship_type"],"title":"RowFixRequest","description":"Body for PATCH /imports/{job_id}/rows/{row_number}.\n\nCompany fields are required — Fix is a full re-submission of the row,\nnot a partial patch (matches the State 3C Fix-modal UX where the\nuser sees + edits every field). ``contact`` is optional:\n\n- omitted / null → clear any existing contact bundle on the row\n- present → set / replace the contact bundle; resolver re-runs"},"RowFixResponse":{"properties":{"row":{"$ref":"#/components/schemas/ImportRowResponse"},"counts":{"$ref":"#/components/schemas/ImportRowCountsResponse"}},"type":"object","required":["row","counts"],"title":"RowFixResponse","description":"200 response: the updated row + the recomputed bucket counts for the\nwhole JobRun, so the FE can update its filter chips without a refetch."},"ScheduleCoordinationCallRequest":{"properties":{"link_or_note":{"type":"string","maxLength":2000,"minLength":1,"title":"Link Or Note"}},"additionalProperties":false,"type":"object","required":["link_or_note"],"title":"ScheduleCoordinationCallRequest"},"SearchHitSchema":{"properties":{"email_doc_id":{"type":"string","title":"Email Doc Id"},"thread_doc_id":{"type":"string","title":"Thread Doc Id"},"message_id":{"type":"string","title":"Message Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"from_address":{"type":"string","title":"From Address"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"sent_at":{"type":"string","format":"date-time","title":"Sent At"},"direction":{"type":"string","title":"Direction"},"has_attachments":{"type":"boolean","title":"Has Attachments"},"attachment_names":{"items":{"type":"string"},"type":"array","title":"Attachment Names"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"linked_notice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Notice Id"},"linked_notice_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Notice Label"},"to_addresses":{"items":{"type":"string"},"type":"array","title":"To Addresses"},"cc_addresses":{"items":{"type":"string"},"type":"array","title":"Cc Addresses"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet"},"rank":{"type":"number","title":"Rank"},"duplicate_count":{"type":"integer","title":"Duplicate Count"}},"type":"object","required":["email_doc_id","thread_doc_id","message_id","subject","from_address","from_name","sent_at","direction","has_attachments","attachment_names","tags","linked_notice_id","linked_notice_label","to_addresses","cc_addresses","snippet","rank","duplicate_count"],"title":"SearchHitSchema","description":"One matching message.\n\nResults are messages, not threads. A body-text hit lives on one message\ninside a conversation, and \"which email proves my point\" is unanswerable if\nthe API only names the thread. ``thread_doc_id`` travels with every hit so\nthe frontend can group for display and open the conversation."},"SearchReconcileRequest":{"properties":{"since_minutes":{"anyOf":[{"type":"integer","maximum":10080.0,"minimum":1.0},{"type":"null"}],"title":"Since Minutes"}},"additionalProperties":false,"type":"object","title":"SearchReconcileRequest"},"SearchReconcileResponse":{"properties":{"mode":{"$ref":"#/components/schemas/ReconcileMode"},"since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"},"scanned":{"type":"integer","title":"Scanned"},"projected":{"type":"integer","title":"Projected"},"unresolvable":{"type":"integer","title":"Unresolvable"},"unparseable":{"type":"integer","title":"Unparseable"},"orphans_removed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Orphans Removed"},"orphans_reappeared":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Orphans Reappeared"},"duplicate_message_ids":{"type":"integer","title":"Duplicate Message Ids"},"ambiguous_threads":{"type":"integer","title":"Ambiguous Threads"},"duration_ms":{"type":"integer","title":"Duration Ms"},"skipped_total":{"type":"integer","title":"Skipped Total"},"skipped":{"items":{"$ref":"#/components/schemas/SkippedEmailResponse"},"type":"array","title":"Skipped"}},"type":"object","required":["mode","since","scanned","projected","unresolvable","unparseable","orphans_removed","orphans_reappeared","duplicate_message_ids","ambiguous_threads","duration_ms","skipped_total","skipped"],"title":"SearchReconcileResponse"},"SearchResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/SearchHitSchema"},"type":"array","title":"Results"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total_count":{"type":"integer","title":"Total Count"},"searched_project_ids":{"items":{"type":"integer"},"type":"array","title":"Searched Project Ids"}},"type":"object","required":["results","next_cursor","total_count","searched_project_ids"],"title":"SearchResponse"},"SearchSort":{"type":"string","enum":["relevance","date_desc","date_asc"],"title":"SearchSort","description":"How a page is ordered. Each mode carries its own cursor comparison, so a\ncaller cannot page through one ordering with a cursor minted under another."},"SendEmailRequest":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"to":{"items":{"$ref":"#/components/schemas/EmailAddressSchema"},"type":"array","title":"To"},"cc":{"items":{"$ref":"#/components/schemas/EmailAddressSchema"},"type":"array","title":"Cc","default":[]},"bcc":{"items":{"$ref":"#/components/schemas/EmailAddressSchema"},"type":"array","title":"Bcc","default":[]},"in_reply_to_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"In Reply To Thread Id"},"template":{"anyOf":[{"$ref":"#/components/schemas/TemplatePayload"},{"type":"null"}]},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"html_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Body"},"plain_text_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plain Text Body"}},"additionalProperties":false,"type":"object","required":["provider","to"],"title":"SendEmailRequest"},"SendEmailResponse":{"properties":{"thread":{"$ref":"#/components/schemas/ThreadPublic"},"message_id":{"type":"string","title":"Message Id"}},"type":"object","required":["thread","message_id"],"title":"SendEmailResponse","description":"The thread the email was filed under, plus the new message id."},"SetPrimaryResponse":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"},"is_primary":{"type":"boolean","title":"Is Primary"},"email":{"type":"string","title":"Email"}},"type":"object","required":["provider","is_primary","email"],"title":"SetPrimaryResponse"},"SetValuesRequest":{"properties":{"values":{"additionalProperties":true,"type":"object","title":"Values"}},"additionalProperties":false,"type":"object","required":["values"],"title":"SetValuesRequest","description":"Request body for PUT .../custom-field-values."},"ShareMessageRequest":{"properties":{"company_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Company Ids"}},"additionalProperties":false,"type":"object","required":["company_ids"],"title":"ShareMessageRequest","description":"Body for ``POST /notices/{id}/timeline-events/{event_id}:share``\n(COR-1291 S3): the companies on the notice to share the message with —\none or more, each one it has not gone to yet."},"ShareViewResponse":{"properties":{"message_event_id":{"type":"string","title":"Message Event Id"},"companies":{"items":{"$ref":"#/components/schemas/CompanyRefResponse"},"type":"array","title":"Companies"}},"additionalProperties":false,"type":"object","required":["message_event_id","companies"],"title":"ShareViewResponse","description":"One share of a message (COR-1291 S3): the message it points at and\nthe companies it went to, named only when this viewer is shown them. The\nsharer and the time are the event's ``actor_name`` and ``created_at``."},"SignReplyAttachmentUploadRequest":{"properties":{"filename":{"type":"string","minLength":1,"title":"Filename"},"content_type":{"type":"string","minLength":1,"title":"Content Type"},"size_bytes":{"type":"integer","minimum":0.0,"title":"Size Bytes"}},"additionalProperties":false,"type":"object","required":["filename","content_type","size_bytes"],"title":"SignReplyAttachmentUploadRequest","description":"Body for ``POST /notices/{id}/reply-attachments:sign`` (COM-840)."},"SignReplyAttachmentUploadResponse":{"properties":{"attachment_id":{"type":"string","title":"Attachment Id"},"upload_url":{"type":"string","title":"Upload Url"},"storage_path":{"type":"string","title":"Storage Path"}},"additionalProperties":false,"type":"object","required":["attachment_id","upload_url","storage_path"],"title":"SignReplyAttachmentUploadResponse"},"SignUploadRequest":{"properties":{"filename":{"type":"string","minLength":1,"title":"Filename"},"content_type":{"type":"string","minLength":1,"title":"Content Type"},"size_bytes":{"type":"integer","minimum":0.0,"title":"Size Bytes"}},"additionalProperties":false,"type":"object","required":["filename","content_type","size_bytes"],"title":"SignUploadRequest"},"SignUploadResponse":{"properties":{"attachment_id":{"type":"string","title":"Attachment Id"},"upload_url":{"type":"string","title":"Upload Url"},"storage_path":{"type":"string","title":"Storage Path"}},"additionalProperties":false,"type":"object","required":["attachment_id","upload_url","storage_path"],"title":"SignUploadResponse"},"SignedDownloadUrlResponse":{"properties":{"signed_url":{"type":"string","title":"Signed Url"}},"type":"object","required":["signed_url"],"title":"SignedDownloadUrlResponse"},"SitePhotosRotateJobCreate":{"properties":{"workspace_id":{"type":"string","minLength":1,"title":"Workspace Id"},"project_id":{"type":"string","minLength":1,"title":"Project Id"},"cde_ids":{"items":{"type":"integer"},"type":"array","title":"Cde Ids"},"turn":{"type":"integer","title":"Turn"}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","cde_ids","turn"],"title":"SitePhotosRotateJobCreate","description":"CDE-329. ``turn`` is validated in the route so a bad value is a 400, not a 422."},"SitePhotosRotateJobCreated":{"properties":{"job_id":{"type":"string","title":"Job Id"}},"type":"object","required":["job_id"],"title":"SitePhotosRotateJobCreated"},"SkippedAssignmentResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["project_id","reason"],"title":"SkippedAssignmentResponse","description":"One ``skipped`` entry in a batch-grant response.\n\n``reason`` is one of:\n\n- ``already_granted`` — the user already holds this exact\n  (workspace, role) assignment on the project; the batch is\n  idempotent.\n- ``no_project_access`` — the user has no row in\n  ``databaseuserproject`` for this project in this workspace; a\n  project-scope role grant would be incoherent and is skipped\n  without failing the rest of the batch."},"SkippedEmailResponse":{"properties":{"doc_id":{"type":"string","title":"Doc Id"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["doc_id","reason"],"title":"SkippedEmailResponse"},"SourceRecordRequest":{"properties":{"record_type":{"type":"string","minLength":1,"title":"Record Type"},"record_id":{"type":"string","minLength":1,"title":"Record Id"}},"additionalProperties":false,"type":"object","required":["record_type","record_id"],"title":"SourceRecordRequest","description":"Typed back-link to the business record a notice is raised from\n(PRE-340, ports PRE-284). ``record_type`` is an open caller-owned\nvocabulary (\"tender_package\" first)."},"SourceRecordResponse":{"properties":{"record_type":{"type":"string","title":"Record Type"},"record_id":{"type":"string","title":"Record Id"}},"additionalProperties":false,"type":"object","required":["record_type","record_id"],"title":"SourceRecordResponse"},"SourceRefIn":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"source_type":{"type":"string","title":"Source Type"},"source_id":{"type":"string","title":"Source Id"}},"type":"object","required":["workspace_id","source_type","source_id"],"title":"SourceRefIn"},"StatusRequest":{"properties":{"source":{"$ref":"#/components/schemas/SourceRefIn"}},"type":"object","required":["source"],"title":"StatusRequest"},"SuperuserGrantRequest":{"properties":{"target_user_id":{"type":"string","title":"Target User Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"additionalProperties":false,"type":"object","required":["target_user_id"],"title":"SuperuserGrantRequest"},"SuperuserResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"granted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted By"},"granted_at":{"type":"string","format":"date-time","title":"Granted At"}},"type":"object","required":["user_id","note","granted_by","granted_at"],"title":"SuperuserResponse"},"SyncJobCreate":{"properties":{"provider":{"$ref":"#/components/schemas/Provider"}},"additionalProperties":false,"type":"object","required":["provider"],"title":"SyncJobCreate","description":"Request body for POST /v1/correspondence-sync-jobs."},"SyncJobPublic":{"properties":{"id":{"type":"string","title":"Id"},"status":{"$ref":"#/components/schemas/JobStatus"},"provider":{"$ref":"#/components/schemas/Provider"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"subscribe_url":{"type":"string","title":"Subscribe Url"}},"type":"object","required":["id","status","provider","workspace_id","project_id","created_at","updated_at","completed_at","subscribe_url"],"title":"SyncJobPublic","description":"Response — wraps the underlying JobRun and points the client at the\nexisting SSE endpoint for progress events."},"SyncReportResponse":{"properties":{"container_id":{"type":"string","title":"Container Id"},"found":{"type":"boolean","title":"Found"},"items_seen":{"type":"integer","title":"Items Seen"},"revisions_created":{"type":"integer","title":"Revisions Created"},"unchanged":{"type":"integer","title":"Unchanged"},"unknown_items":{"type":"integer","title":"Unknown Items"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["container_id","found","items_seen","revisions_created","unchanged","unknown_items","errors"],"title":"SyncReportResponse"},"SyncRequest":{"properties":{"container_id":{"type":"string","minLength":1,"title":"Container Id","description":"The container (= drive) id"}},"additionalProperties":false,"type":"object","required":["container_id"],"title":"SyncRequest"},"TagsResponse":{"properties":{"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["tags"],"title":"TagsResponse"},"TagsUpdateRequest":{"properties":{"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"additionalProperties":false,"type":"object","required":["tags"],"title":"TagsUpdateRequest"},"TakeoffKaiAvailabilityResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"max_sheets":{"type":"integer","title":"Max Sheets"}},"type":"object","required":["enabled","reason","max_sheets"],"title":"TakeoffKaiAvailabilityResponse"},"TakeoffKaiDecisionRequest":{"properties":{"workspace_id":{"type":"string","minLength":1,"title":"Workspace Id"},"project_id":{"type":"string","minLength":1,"title":"Project Id"},"decision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision"},"measure_ids":{"items":{"type":"string"},"type":"array","maxItems":5000,"title":"Measure Ids"},"qto_item_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Qto Item Id"}},"additionalProperties":false,"type":"object","required":["workspace_id","project_id","decision"],"title":"TakeoffKaiDecisionRequest"},"TakeoffKaiDecisionResponse":{"properties":{"decision":{"type":"string","title":"Decision"},"measure_ids":{"items":{"type":"string"},"type":"array","title":"Measure Ids"},"qto_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qto Item Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"by":{"type":"string","title":"By"},"at":{"type":"string","title":"At"}},"type":"object","required":["decision","measure_ids","qto_item_id","run_id","by","at"],"title":"TakeoffKaiDecisionResponse"},"TakeoffKaiDecisionsResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"cde_id":{"type":"integer","title":"Cde Id"},"page":{"type":"integer","title":"Page"},"decisions":{"additionalProperties":{"$ref":"#/components/schemas/TakeoffKaiDecisionResponse"},"type":"object","title":"Decisions"}},"type":"object","required":["run_id","cde_id","page","decisions"],"title":"TakeoffKaiDecisionsResponse"},"TakeoffKaiDocument":{"properties":{"cde_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Cde Id"},"pages":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":500},{"type":"null"}],"title":"Pages"},"calibrations":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/TakeoffKaiSavedScale"},"type":"object","maxProperties":500},{"type":"null"}],"title":"Calibrations"}},"additionalProperties":false,"type":"object","required":["cde_id"],"title":"TakeoffKaiDocument"},"TakeoffKaiRunProgress":{"properties":{"stage":{"type":"string","title":"Stage"},"current":{"type":"integer","title":"Current"},"total":{"type":"integer","title":"Total"},"message":{"type":"string","title":"Message"}},"type":"object","required":["stage","current","total","message"],"title":"TakeoffKaiRunProgress"},"TakeoffKaiRunResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","title":"Status"},"progress":{"$ref":"#/components/schemas/TakeoffKaiRunProgress"},"result":{"additionalProperties":true,"type":"object","title":"Result"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["run_id","status","progress","result","error","created_at","completed_at"],"title":"TakeoffKaiRunResponse"},"TakeoffKaiSavedScale":{"properties":{"points_per_unit":{"type":"number","exclusiveMinimum":0.0,"title":"Points Per Unit"},"unit":{"type":"string","maxLength":10,"minLength":1,"title":"Unit"}},"additionalProperties":false,"type":"object","required":["points_per_unit","unit"],"title":"TakeoffKaiSavedScale"},"TakeoffKaiSheetResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"cde_id":{"type":"integer","title":"Cde Id"},"page":{"type":"integer","title":"Page"},"sheet":{"additionalProperties":true,"type":"object","title":"Sheet"},"decisions":{"additionalProperties":{"$ref":"#/components/schemas/TakeoffKaiDecisionResponse"},"type":"object","title":"Decisions"}},"type":"object","required":["run_id","cde_id","page","sheet","decisions"],"title":"TakeoffKaiSheetResponse"},"TemplatePayload":{"properties":{"category":{"type":"string","title":"Category"},"type":{"type":"string","title":"Type"},"variables":{"additionalProperties":true,"type":"object","title":"Variables"}},"additionalProperties":false,"type":"object","required":["category","type","variables"],"title":"TemplatePayload","description":"Templated email payload for SendEmailRequest. Mutually exclusive\nwith html_body. The backend resolves and renders the template before\nsending — see app/services/email_templates/service.py."},"TemplateSource":{"type":"string","enum":["workspace","global_default"],"title":"TemplateSource","description":"Where a template was resolved from. Returned alongside the template\nso callers can log/diagnose without a second lookup."},"ThreadCreate":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"}},"additionalProperties":false,"type":"object","title":"ThreadCreate"},"ThreadListResponse":{"properties":{"threads":{"items":{"$ref":"#/components/schemas/ThreadPublic"},"type":"array","title":"Threads"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["threads"],"title":"ThreadListResponse"},"ThreadPatch":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"}},"additionalProperties":false,"type":"object","title":"ThreadPatch"},"ThreadPublic":{"properties":{"id":{"type":"string","title":"Id"},"thread_id":{"type":"string","title":"Thread Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"project_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Project Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"participants":{"items":{"$ref":"#/components/schemas/EmailAddressSchema"},"type":"array","title":"Participants"},"first_message_date":{"type":"string","format":"date-time","title":"First Message Date"},"last_message_date":{"type":"string","format":"date-time","title":"Last Message Date"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"linked_notice":{"anyOf":[{"$ref":"#/components/schemas/LinkedNoticeSummarySchema"},{"type":"null"}]},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["id","thread_id","workspace_id","project_id","subject","participants","first_message_date","last_message_date","created_at","updated_at"],"title":"ThreadPublic"},"ThreadTagsPatch":{"properties":{"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"additionalProperties":false,"type":"object","required":["tags"],"title":"ThreadTagsPatch"},"TimelineEventResponse":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"actor_id":{"type":"string","title":"Actor Id"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revision"},"message":{"anyOf":[{"$ref":"#/components/schemas/MessageViewResponse"},{"type":"null"}]},"share":{"anyOf":[{"$ref":"#/components/schemas/ShareViewResponse"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["id","event_type","actor_id","actor_name","payload","created_at"],"title":"TimelineEventResponse"},"TransitionResponse":{"properties":{"action":{"type":"string","title":"Action"},"from_status":{"type":"string","title":"From Status"},"to_status":{"type":"string","title":"To Status"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition"}},"additionalProperties":false,"type":"object","required":["action","from_status","to_status"],"title":"TransitionResponse"},"UnlinkNoticesRequest":{"properties":{"peer_notice_id":{"type":"string","minLength":1,"title":"Peer Notice Id"},"edge_type":{"type":"string","const":"relates_to","title":"Edge Type","default":"relates_to"}},"additionalProperties":false,"type":"object","required":["peer_notice_id"],"title":"UnlinkNoticesRequest","description":"Body for ``POST /notices/{id}:unlink`` (COR-802).\n\nDeliberately the exact inverse of ``LinkNoticesRequest`` — the same\n``(peer_notice_id, edge_type)`` pair, not an ``edge_id``.\n\nAddressing by edge id was rejected. A ``relates_to`` edge is symmetric, so\nthe notice a user is looking at may be either endpoint; with an edge id the\ncaller has to first find which of the peer's edges is the right one and\nwhich way it points, coupling every unlink control to the shape of the edge\nset. With the peer, the server resolves both directions itself. It also\nmakes unlink idempotent on the same key ``:link`` is idempotent on, so\n\"link, unlink, link again\" is expressible without the client tracking ids."},"UnlinkRequest":{"properties":{"source":{"$ref":"#/components/schemas/SourceRefIn"}},"type":"object","required":["source"],"title":"UnlinkRequest"},"UnlinkThreadRequest":{"properties":{"thread_doc_id":{"type":"string","minLength":1,"title":"Thread Doc Id"}},"additionalProperties":false,"type":"object","required":["thread_doc_id"],"title":"UnlinkThreadRequest","description":"Remove a correspondence thread's link to this notice (COR-983)."},"UnlinkThreadResponse":{"properties":{"notice_id":{"type":"string","title":"Notice Id"},"thread_doc_id":{"type":"string","title":"Thread Doc Id"}},"additionalProperties":false,"type":"object","required":["notice_id","thread_doc_id"],"title":"UnlinkThreadResponse"},"UnreadCountResponse":{"properties":{"unread_count":{"type":"integer","title":"Unread Count"}},"additionalProperties":false,"type":"object","required":["unread_count"],"title":"UnreadCountResponse"},"UnresolvedReferenceResponse":{"properties":{"document_number":{"type":"string","title":"Document Number"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"},"reason":{"type":"string","title":"Reason"}},"additionalProperties":false,"type":"object","required":["document_number","revision","reason"],"title":"UnresolvedReferenceResponse","description":"A citation that could not be grounded, kept exactly as KAI wrote it.\n\nNever corrected and never normalised: the point is to show the contract\nadministrator what the model tried to say and why it does not hold."},"UpcomingEventOut":{"properties":{"event_id":{"type":"string","title":"Event Id"},"subject":{"type":"string","title":"Subject"},"start":{"type":"string","format":"date-time","title":"Start"},"end":{"type":"string","format":"date-time","title":"End"},"timezone":{"type":"string","title":"Timezone"},"is_series":{"type":"boolean","title":"Is Series"},"is_organiser":{"type":"boolean","title":"Is Organiser"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},"type":"object","required":["event_id","subject","start","end","timezone","is_series","is_organiser","location"],"title":"UpcomingEventOut"},"UpcomingRequest":{"properties":{"organiser_kinde_id":{"type":"string","title":"Organiser Kinde Id"},"days":{"type":"integer","maximum":366.0,"minimum":1.0,"title":"Days","default":90}},"type":"object","required":["organiser_kinde_id"],"title":"UpcomingRequest"},"UpdateMetadataRequest":{"properties":{"metadata_key":{"type":"string","title":"Metadata Key"},"metadata_value":{"type":"string","title":"Metadata Value"}},"additionalProperties":false,"type":"object","required":["metadata_key","metadata_value"],"title":"UpdateMetadataRequest"},"UpdateMetadataResponse":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"metadata_key":{"type":"string","title":"Metadata Key"},"metadata_value":{"type":"string","title":"Metadata Value"}},"type":"object","required":["cde_id","metadata_key","metadata_value"],"title":"UpdateMetadataResponse"},"UpdateTypeRequest":{"properties":{"cde_type_id":{"type":"string","title":"Cde Type Id"}},"additionalProperties":false,"type":"object","required":["cde_type_id"],"title":"UpdateTypeRequest"},"UpdateTypeResponse":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"cde_type_id":{"type":"string","title":"Cde Type Id"},"previous_cde_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Cde Type Id"}},"type":"object","required":["cde_id","cde_type_id","previous_cde_type_id"],"title":"UpdateTypeResponse"},"UploadEntry":{"properties":{"cde_id":{"type":"integer","title":"Cde Id"},"document_series_id":{"type":"string","title":"Document Series Id"},"display_filename":{"type":"string","title":"Display Filename"},"filename":{"type":"string","title":"Filename"},"signed_url":{"type":"string","title":"Signed Url"},"cde_link":{"type":"string","title":"Cde Link"},"filetype":{"type":"string","title":"Filetype"}},"type":"object","required":["cde_id","document_series_id","display_filename","filename","signed_url","cde_link","filetype"],"title":"UploadEntry"},"UploadNoticePictureRequest":{"properties":{"data_base64":{"type":"string","minLength":1,"title":"Data Base64"}},"additionalProperties":false,"type":"object","required":["data_base64"],"title":"UploadNoticePictureRequest","description":"One picture, as the editor was given it.\n\n``data_base64`` is the file's bytes, base64-encoded: the web app's API\nproxy forwards only JSON and text bodies intact, so the file travels in\nJSON. Its type is judged from the bytes, never from a name or MIME type."},"UploadRequest":{"properties":{"files":{"items":{"$ref":"#/components/schemas/FileUploadRequest"},"type":"array","title":"Files"},"cde_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cde Type"},"cde_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cde Type Id"},"uploaded_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"additionalProperties":false,"type":"object","required":["files"],"title":"UploadRequest"},"UploadResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/UploadEntry"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"UploadResponse"},"UpsertEventRequest":{"properties":{"source":{"$ref":"#/components/schemas/SourceRefIn"},"actor_kinde_id":{"type":"string","title":"Actor Kinde Id"},"event":{"$ref":"#/components/schemas/EventIn"}},"type":"object","required":["source","actor_kinde_id","event"],"title":"UpsertEventRequest"},"UpsertEventResponse":{"properties":{"link":{"$ref":"#/components/schemas/LinkOut"},"created":{"type":"boolean","title":"Created"},"skipped_attendees":{"items":{"$ref":"#/components/schemas/AttendeeIn"},"type":"array","title":"Skipped Attendees"}},"type":"object","required":["link","created","skipped_attendees"],"title":"UpsertEventResponse"},"UserLookupResponse":{"properties":{"outcome":{"type":"string","enum":["not_found","already_in_this_company","already_in_other_company","available_to_invite"],"title":"Outcome"},"kinde_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kinde Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"existing_company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Existing Company Id"},"existing_company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Existing Company Name"}},"type":"object","required":["outcome","kinde_id","first_name","last_name","existing_company_id","existing_company_name"],"title":"UserLookupResponse"},"UserPermissionsResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"is_superuser":{"type":"boolean","title":"Is Superuser"},"workspace_predefined_roles":{"items":{"type":"string"},"type":"array","title":"Workspace Predefined Roles"},"workspace_capabilities":{"items":{"type":"string"},"type":"array","title":"Workspace Capabilities"},"project_predefined_roles":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Project Predefined Roles"},"project_capabilities":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Project Capabilities"}},"additionalProperties":false,"type":"object","required":["user_id","workspace_id","is_superuser","workspace_predefined_roles","workspace_capabilities","project_predefined_roles","project_capabilities"],"title":"UserPermissionsResponse","description":"Effective permission state for one user in one workspace.\n\nWorkspace-scope capabilities and project-scope capabilities are kept\nseparate so the frontend can render them in distinct sections.\nProject-scope capabilities granted via a workspace-scope role appear\nin ``workspace_capabilities`` (inheritance is engine-side — the engine\nanswers project checks against this bucket first)."},"UserProfileLookupResponse":{"properties":{"found":{"type":"boolean","title":"Found"},"kinde_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kinde Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"}},"type":"object","required":["found"],"title":"UserProfileLookupResponse","description":"Response for GET /global-company-engagement-contacts/lookup-user.\n\n``found`` is the headline signal the FE uses to decide whether to\nshow the \"will be linked to <name>\" status under the email input.\nThe remaining fields are populated only when ``found`` is true; the\ncontact backend re-runs the same lookup on POST regardless, so the\nFE result is purely advisory."},"UserPushResultResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"sent":{"type":"integer","title":"Sent"},"failed":{"type":"integer","title":"Failed"},"pruned":{"type":"integer","title":"Pruned"}},"type":"object","required":["user_id","sent","failed","pruned"],"title":"UserPushResultResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WaiveResponseRequest":{"properties":{"company_id":{"type":"string","minLength":1,"title":"Company Id"},"note":{"type":"string","title":"Note"}},"additionalProperties":false,"type":"object","required":["company_id","note"],"title":"WaiveResponseRequest","description":"Body for ``POST /{notice_id}:waive-response`` (COR-1074).\n\n``company_id`` names the awaited company whose response is no longer\nrequired (To → FYI). ``note`` is REQUIRED — same presence / content split\nas ``MarkRespondedRequest``."},"WhoHasItDetailResponse":{"properties":{"document_series_id":{"type":"string","title":"Document Series Id"},"latest_cde_id":{"type":"integer","title":"Latest Cde Id"},"latest_revision":{"type":"string","title":"Latest Revision"},"doc_number":{"type":"string","title":"Doc Number"},"title":{"type":"string","title":"Title"},"people":{"items":{"$ref":"#/components/schemas/WhoHasItPersonResponse"},"type":"array","title":"People"}},"type":"object","required":["document_series_id","latest_cde_id","latest_revision","doc_number","title","people"],"title":"WhoHasItDetailResponse"},"WhoHasItPersonResponse":{"properties":{"person_key":{"type":"string","title":"Person Key"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"status":{"type":"string","title":"Status"},"held_revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Held Revision"},"via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Via"},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"},"can_send":{"type":"boolean","title":"Can Send"}},"type":"object","required":["person_key","name","email","company_name","status","held_revision","via","at","can_send"],"title":"WhoHasItPersonResponse"},"WhoHasItSendRequest":{"properties":{"latest_cde_id":{"type":"integer","title":"Latest Cde Id"},"kinde_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Kinde Ids"}},"type":"object","required":["latest_cde_id"],"title":"WhoHasItSendRequest"},"WhoHasItSendResponse":{"properties":{"document_series_id":{"type":"string","title":"Document Series Id"},"latest_cde_id":{"type":"integer","title":"Latest Cde Id"},"latest_revision":{"type":"string","title":"Latest Revision"},"doc_number":{"type":"string","title":"Doc Number"},"title":{"type":"string","title":"Title"},"people":{"items":{"$ref":"#/components/schemas/WhoHasItPersonResponse"},"type":"array","title":"People"},"failed_kinde_ids":{"items":{"type":"string"},"type":"array","title":"Failed Kinde Ids"}},"type":"object","required":["document_series_id","latest_cde_id","latest_revision","doc_number","title","people","failed_kinde_ids"],"title":"WhoHasItSendResponse"},"WhoHasItSummaryItem":{"properties":{"have":{"type":"integer","title":"Have"},"expected":{"type":"integer","title":"Expected"}},"type":"object","required":["have","expected"],"title":"WhoHasItSummaryItem"},"WhoHasItSummaryRequest":{"properties":{"document_series_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Document Series Ids"}},"type":"object","required":["document_series_ids"],"title":"WhoHasItSummaryRequest"},"WhoHasItSummaryResponse":{"properties":{"can_view":{"type":"boolean","title":"Can View"},"items":{"additionalProperties":{"$ref":"#/components/schemas/WhoHasItSummaryItem"},"type":"object","title":"Items"}},"type":"object","required":["can_view","items"],"title":"WhoHasItSummaryResponse"},"WorkspaceRoleFlagsResponse":{"properties":{"is_workspace_manager":{"type":"boolean","title":"Is Workspace Manager"},"is_workspace_member":{"type":"boolean","title":"Is Workspace Member"},"is_workspace_dashboard_viewer":{"type":"boolean","title":"Is Workspace Dashboard Viewer"},"is_primary_company_admin":{"type":"boolean","title":"Is Primary Company Admin"}},"type":"object","required":["is_workspace_manager","is_workspace_member","is_workspace_dashboard_viewer","is_primary_company_admin"],"title":"WorkspaceRoleFlagsResponse"},"_ProviderStatus":{"properties":{"is_connected":{"type":"boolean","title":"Is Connected"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"is_primary":{"type":"boolean","title":"Is Primary","default":false}},"type":"object","required":["is_connected"],"title":"_ProviderStatus"},"app__schemas__correspondence__notice__NoticeListResponse":{"properties":{"results":{"items":{"$ref":"#/components/schemas/NoticePublic"},"type":"array","title":"Results"},"page_size":{"type":"integer","title":"Page Size","default":0},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"prev_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prev Cursor"}},"type":"object","required":["results"],"title":"NoticeListResponse","description":"Mirrors ds-api PaginatedResponse[NoticeWithLinkedThreads]."},"app__schemas__global_company_engagement_contact__RenderedInvitationResponse":{"properties":{"subject":{"type":"string","title":"Subject"},"html_body":{"type":"string","title":"Html Body"},"plain_text_body":{"type":"string","title":"Plain Text Body"},"from_email":{"type":"string","title":"From Email"},"from_name":{"type":"string","title":"From Name"},"to_email":{"type":"string","title":"To Email"},"to_display_name":{"type":"string","title":"To Display Name"},"reply_to":{"type":"string","title":"Reply To"},"transport":{"type":"string","enum":["oauth","relay"],"title":"Transport"}},"type":"object","required":["subject","html_body","plain_text_body","from_email","from_name","to_email","to_display_name","reply_to","transport"],"title":"RenderedInvitationResponse","description":"The fully-merged email surfaced to the FE preview pane."},"app__schemas__global_company_import__CompanyGroupResponse":{"properties":{"group_key":{"type":"string","title":"Group Key"},"company_status":{"type":"string","enum":["pending","matched","will_create","already_in_workspace","needs_attention","skipped","committed"],"title":"Company Status"},"raw_company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Company Name"},"parsed_country":{"anyOf":[{"type":"string","enum":["AU","NZ"]},{"type":"null"}],"title":"Parsed Country"},"parsed_tax_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Parsed Tax Id"},"matched_directory_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Matched Directory Id"},"parsed_relationship_type":{"items":{"type":"string"},"type":"array","title":"Parsed Relationship Type"},"company_warning_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Warning Message"},"company_error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Error Message"},"contact_count":{"type":"integer","title":"Contact Count"},"rows":{"items":{"$ref":"#/components/schemas/ImportRowResponse"},"type":"array","title":"Rows"}},"type":"object","required":["group_key","company_status","raw_company_name","parsed_country","parsed_tax_id","matched_directory_id","parsed_relationship_type","contact_count","rows"],"title":"CompanyGroupResponse","description":"A company and the import rows (contacts) grouped under it. Reuses\n``ImportRowResponse`` for each member so the per-row Fix flow keeps\nworking off ``row_number``."},"app__schemas__jobs__ReplyAttachmentRef":{"properties":{"kind":{"type":"string","const":"reply","title":"Kind"},"notice_id":{"type":"string","title":"Notice Id"},"event_id":{"type":"string","title":"Event Id"},"attachment_id":{"type":"string","title":"Attachment Id"}},"additionalProperties":false,"type":"object","required":["kind","notice_id","event_id","attachment_id"],"title":"ReplyAttachmentRef","description":"An in-app reply's attachment (COM-840), stored on the timeline event."},"app__schemas__notices__notice__NoticeListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NoticeResponse"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"additionalProperties":false,"type":"object","required":["items"],"title":"NoticeListResponse"},"app__schemas__notices__notice__ReplyAttachmentRef":{"properties":{"attachment_id":{"type":"string","title":"Attachment Id"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","minimum":0.0,"title":"Size Bytes"},"storage_path":{"type":"string","title":"Storage Path"}},"additionalProperties":false,"type":"object","required":["attachment_id","filename","content_type","size_bytes","storage_path"],"title":"ReplyAttachmentRef","description":"A file the client already PUT to GCS via ``reply-attachments:sign`` (COM-840).\n\nCarried on the in-app reply bodies (comment / mark-responded) so the\nresulting timeline event can record the file's metadata. The bytes never\npass through the API — only this reference does, which is why the service\nre-derives and equality-checks ``storage_path`` before trusting it."},"app__schemas__project_distribution__CompanyGroupResponse":{"properties":{"company_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Company Id"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"source":{"type":"string","title":"Source"},"relationship_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Type"},"members":{"items":{"$ref":"#/components/schemas/MemberResponse"},"type":"array","title":"Members"}},"type":"object","required":["company_id","company_name","source","relationship_type","members"],"title":"CompanyGroupResponse"},"app__schemas__user_directory__RenderedInvitationResponse":{"properties":{"subject":{"type":"string","title":"Subject"},"html_body":{"type":"string","title":"Html Body"},"plain_text_body":{"type":"string","title":"Plain Text Body"},"from_email":{"type":"string","title":"From Email"},"from_name":{"type":"string","title":"From Name"},"to_email":{"type":"string","title":"To Email"},"to_display_name":{"type":"string","title":"To Display Name"},"reply_to":{"type":"string","title":"Reply To"},"transport":{"type":"string","enum":["oauth","relay"],"title":"Transport"}},"type":"object","required":["subject","html_body","plain_text_body","from_email","from_name","to_email","to_display_name","reply_to","transport"],"title":"RenderedInvitationResponse"}}}}