{"openapi":"3.1.0","info":{"title":"Aufilm — by Auf Wassen","description":"Production planning for independent film: breakdown, schedule, budget, financing preparation and festival strategy from a screenplay.","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["meta"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthz":{"get":{"tags":["meta"],"summary":"Healthz","description":"Ops liveness probe: no auth, no DB touch — safe to poll aggressively.\n\nDeliberately ``async def`` and pure in-memory: a sync handler would hop the\nshared anyio threadpool, so during a heavy-compute burst (pipelines pinning\nevery worker thread) the probe would queue behind them and time out — and an\norchestrator would kill a perfectly healthy instance. An async handler runs\non the event loop, never touches the threadpool, and answers in microseconds\neven while the pipeline family is saturated and load-shedding. Keep it free\nof any awaited I/O (no DB, no disk) for the same reason. Readiness (which\nDOES touch the DB) stays on ``/ready``.","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/ready":{"get":{"tags":["meta"],"summary":"Ready","description":"Readiness probe for load balancers and orchestrators.","operationId":"ready_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app":{"get":{"tags":["meta"],"summary":"Product App","description":"Aufilm product workspace for the Phase 1 engine.","operationId":"product_app_app_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/favicon.ico":{"get":{"tags":["meta"],"summary":"Favicon","operationId":"favicon_favicon_ico_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/pipeline/text":{"post":{"tags":["phase1-core"],"summary":"Pipeline From Text","operationId":"pipeline_from_text_v1_pipeline_text_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptTextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipeline/upload":{"post":{"tags":["phase1-core"],"summary":"Pipeline From Upload","operationId":"pipeline_from_upload_v1_pipeline_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_pipeline_from_upload_v1_pipeline_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipeline/export":{"post":{"tags":["phase1-core"],"summary":"Pipeline Export","description":"Run the pipeline and return a formatted report file (pdf, docx, sheets,\ncsv, xlsx or saturation). With fmt=call_sheet and day=<shooting day>, the\ncall sheet for that day of the plan's schedule (pdf).","operationId":"pipeline_export_v1_pipeline_export_post","parameters":[{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"pdf","title":"Fmt"}},{"name":"day","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Day"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScriptTextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipeline/export-upload":{"post":{"tags":["phase1-core"],"summary":"Pipeline Export From Upload","operationId":"pipeline_export_from_upload_v1_pipeline_export_upload_post","parameters":[{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"pdf","title":"Fmt"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_pipeline_export_from_upload_v1_pipeline_export_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/init":{"post":{"tags":["phase1-core"],"summary":"Departments Init","description":"Materialize the project workspace (folders + database) from a\npipeline result. Returns the initial dashboard. The materialized project\nis owned by the authenticated caller.\n\nThis is the app's \"Save as my project\" path. It is NOT plan-gated: saving\nand storing a project is part of the Free tier, like the assessment, the\nbudget and the Day Out of Days it materializes.\n\nWith ``?project=<key>`` the plan on screen is written back into that\nproject instead of creating a second copy, so saving twice never duplicates\na project. Only the owner may do that.","operationId":"departments_init_v1_departments_init_post","parameters":[{"name":"project","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Update this saved project in place instead of creating a new one","title":"Project"},"description":"Update this saved project in place instead of creating a new one"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Result"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}":{"delete":{"tags":["phase1-core"],"summary":"Departments Delete","description":"Remove a saved project and everything in it. Owner only: this is the\n\"undo\" behind the calm \"Saved to Projects\" confirmation, and the Projects\nlist's remove action. A non-member reads 404 like every project route.","operationId":"departments_delete_v1_departments__project__delete","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/dashboard":{"get":{"tags":["phase1-core"],"summary":"Departments Dashboard","operationId":"departments_dashboard_v1_departments__project__dashboard_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/invites":{"get":{"tags":["phase1-core"],"summary":"Departments Pending Invites","description":"Pending (unredeemed) crew invites for a project — read-only, owner-facing.\n\nBacks the workbench Crew panel so an owner can SEE who was invited but has\nnot joined yet. Emails and roles only: claim codes are one-time secrets\nshown at creation and never re-served (cancel + re-invite rotates a lost\ncode). Owner-scoped — a non-owner (including active crew members) reads a\nflat 404, never a roster of invites.","operationId":"departments_pending_invites_v1_departments__project__invites_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/audit":{"get":{"tags":["phase1-core"],"summary":"Departments Audit","description":"The project's change log — who touched what, newest first. Any crew\nmember may read it (this is the activity feed); when the producer\nrestricted budget amounts, non-owners keep the who/what/when but every\ndollar value is blanked by the store.","operationId":"departments_audit_v1_departments__project__audit_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/cost":{"patch":{"tags":["phase1-core"],"summary":"Departments Cost","description":"Edit an account's estimated/actual/note — the master and the\ndepartment docs recalculate together (same row in the database);\neverything is audited with the actor. Owner or editor crew; viewers\nread 403. When the producer restricted budget amounts, line edits are\nowner-only — an editor cannot rewrite numbers they cannot see.","operationId":"departments_cost_v1_departments__project__cost_patch","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/workspace":{"get":{"tags":["phase1-core"],"summary":"Departments Workspace","description":"One fetch behind every department bracket: the editable item lists\n(gear-seeded for Camera at init), the crew requests, the caller's role,\nthe privacy flags, and which request categories land in which department\n(server truth — the account map is never duplicated in the page).","operationId":"departments_workspace_v1_departments__project__workspace_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/requests":{"post":{"tags":["phase1-core"],"summary":"Departments Add Request","description":"A crew request (\"Easyrig, +$450/wk\") lands as a WORKING addition on the\nright budget line (category -> account), the master recalcs, the\ndepartment status flags overbudget automatically, and the audit records\nwho asked. Owner or editor crew; viewers read 403. Never rewrites the\nparametric plan or anyone's line estimate.","operationId":"departments_add_request_v1_departments__project__requests_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRequestBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/workspace/items":{"post":{"tags":["phase1-core"],"summary":"Departments Add Workspace Item","description":"Add an item to a department's workspace list (no budget effect —\nmoney moves only through requests or line estimates). Owner/editor.","operationId":"departments_add_workspace_item_v1_departments__project__workspace_items_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceItemBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/workspace/items/{item_id}":{"delete":{"tags":["phase1-core"],"summary":"Departments Remove Workspace Item","operationId":"departments_remove_workspace_item_v1_departments__project__workspace_items__item_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"integer","title":"Item Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/privacy":{"get":{"tags":["phase1-core"],"summary":"Departments Get Privacy","description":"The producer's sensitive-info switches — owner-facing (the crew learns\nonly the honest 'restricted' markers on the surfaces themselves).","operationId":"departments_get_privacy_v1_departments__project__privacy_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["phase1-core"],"summary":"Departments Set Privacy","description":"Flip one sensitive-info switch (budget, finance_plan, script,\ncontracts, insurance). Owner-only; crew members read an honest 403.","operationId":"departments_set_privacy_v1_departments__project__privacy_patch","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrivacyPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/script":{"get":{"tags":["phase1-core"],"summary":"Departments Script","description":"The screenplay text behind a saved project, for crew reading it inside\nthe platform. When the producer restricted the script, non-owners read an\nhonest 403 — never a silent empty page.","operationId":"departments_script_v1_departments__project__script_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/export":{"get":{"tags":["phase1-core"],"summary":"Departments Export","description":"Export a SAVED project's plan (pdf | docx | sheets | csv | xlsx |\nsaturation; call_sheet with day=<shooting day> for one day's call sheet).\n\nBefore this route, opening a saved project and pressing Export sent the\nempty intake form — the saved plan never reached the exporter, so the\ndownload failed. This renders the stored plan itself, with every edit it\nwas saved with, through the same plan-filtered exporter as every other\nexport.\n\nThe file carries budget amounts, the finance plan and the script, so a\ncrew member reads it only when the producer has restricted none of them;\notherwise the owner exports. Non-members read 404 (existence never leaks).","operationId":"departments_export_v1_departments__project__export_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"fmt","in":"query","required":false,"schema":{"type":"string","default":"pdf","title":"Fmt"}},{"name":"day","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Day"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/templates":{"get":{"tags":["phase1-core"],"summary":"Schedule Templates List","description":"The read-only per-production-type built-ins plus the caller's own saved\ntemplates. No project context — every authenticated user can browse.","operationId":"schedule_templates_list_v1_schedule_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/schedule/templates/{template_id}":{"get":{"tags":["phase1-core"],"summary":"Schedule Template Get","description":"A single template. Built-ins are visible to everyone; a saved template is\nreturned only to its owner (a non-owner reads 404 — no existence leak).","operationId":"schedule_template_get_v1_schedule_templates__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["phase1-core"],"summary":"Schedule Template Delete","description":"Delete a saved template (owner only). Built-ins cannot be deleted.","operationId":"schedule_template_delete_v1_schedule_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/save-template":{"post":{"tags":["phase1-core"],"summary":"Schedule Save Template","description":"Derive a reusable template from a project's scheduling state + call-sheet\nlayout, stripping every project-specific value (cast, addresses, phone\nnumbers, script text) down to STRUCTURE plus named blanks. Owner/manage only.","operationId":"schedule_save_template_v1_schedule__project__save_template_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveTemplateBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/apply-template":{"post":{"tags":["phase1-core"],"summary":"Schedule Apply Template","description":"Bind a template's named blanks to this project's real cast/crew/scenes/\nlocations/schedule, compute its calculated fields + conditional rules, and\nreturn the resolved config plus a resolved/unresolved binding report.\nOwner/manage only.","operationId":"schedule_apply_template_v1_schedule__project__apply_template_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyTemplateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/opportunities":{"get":{"tags":["phase1-core"],"summary":"List Opportunities","description":"Funding opportunities catalogue. Studio: this is the financing surface,\nthe same one stripped from a Free caller's pipeline result. Leaving the\ncatalogue open would hand back through a side door what the plan withholds.","operationId":"list_opportunities_v1_opportunities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/product/variables":{"get":{"tags":["phase1-core"],"summary":"Product Variables","operationId":"product_variables_v1_product_variables_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/opportunities/match":{"get":{"tags":["phase1-core"],"summary":"Match Opportunities","operationId":"match_opportunities_v1_opportunities_match_get","parameters":[{"name":"genre","in":"query","required":false,"schema":{"type":"string","default":"drama","title":"Genre"}},{"name":"project_format","in":"query","required":false,"schema":{"type":"string","default":"narrative_feature","title":"Project Format"}},{"name":"scale","in":"query","required":false,"schema":{"type":"string","default":"micro","title":"Scale"}},{"name":"jurisdiction","in":"query","required":false,"schema":{"type":"string","default":"US","title":"Jurisdiction"}},{"name":"phase","in":"query","required":false,"schema":{"type":"string","default":"development","title":"Phase"}},{"name":"budget_total","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Total"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intake/statements/generate":{"post":{"tags":["phase1-core"],"summary":"Generate Intake Statements","operationId":"generate_intake_statements_v1_intake_statements_generate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementDraftRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intake/statements/generate-upload":{"post":{"tags":["phase1-core"],"summary":"Generate Intake Statements Upload","operationId":"generate_intake_statements_upload_v1_intake_statements_generate_upload_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_generate_intake_statements_upload_v1_intake_statements_generate_upload_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/audit":{"get":{"tags":["phase1-core"],"summary":"Intelligence Audit","operationId":"intelligence_audit_v1_intelligence_audit_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/intelligence/sources":{"get":{"tags":["phase1-core"],"summary":"Intelligence Sources","description":"The funding source registry.\n\nPlan-gated: this IS the financing catalogue, the same records that power\n/v1/opportunities. Leaving it open handed a Free account all 153 funding\nrecords, with jurisdictions, formats and eligibility, through a side door\nwhile the front door returned 402. A gate is only worth the number of doors\nit is actually on.","operationId":"intelligence_sources_v1_intelligence_sources_get","parameters":[{"name":"source_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/freshness":{"get":{"tags":["phase1-core"],"summary":"Intelligence Freshness","description":"Registry freshness accounting (read-only, auth-gated like the other\nintelligence reads): per-state counts + the worst actionable offenders.\n``actionable_stale_count`` > 0 means some money-surface record needs\nre-verification — the same number that fails `python -m tools.freshness_report`.","operationId":"intelligence_freshness_v1_intelligence_freshness_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/intelligence/sources/{source_id}":{"get":{"tags":["phase1-core"],"summary":"Intelligence Source Detail","description":"One funding record. Gated for the same reason as the list above:\nenumerating ids would otherwise rebuild the catalogue one call at a time.","operationId":"intelligence_source_detail_v1_intelligence_sources__source_id__get","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/sources/manual":{"post":{"tags":["phase1-core"],"summary":"Intelligence Sources Manual","operationId":"intelligence_sources_manual_v1_intelligence_sources_manual_post","parameters":[{"name":"x-aufilm-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Aufilm-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/sources/ingest/json":{"post":{"tags":["phase1-core"],"summary":"Intelligence Sources Ingest Json","operationId":"intelligence_sources_ingest_json_v1_intelligence_sources_ingest_json_post","parameters":[{"name":"x-aufilm-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Aufilm-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RawTextIngestPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/sources/ingest/csv":{"post":{"tags":["phase1-core"],"summary":"Intelligence Sources Ingest Csv","operationId":"intelligence_sources_ingest_csv_v1_intelligence_sources_ingest_csv_post","parameters":[{"name":"x-aufilm-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Aufilm-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RawTextIngestPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/intelligence/sources/ingest/xml":{"post":{"tags":["phase1-core"],"summary":"Intelligence Sources Ingest Xml","operationId":"intelligence_sources_ingest_xml_v1_intelligence_sources_ingest_xml_post","parameters":[{"name":"x-aufilm-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Aufilm-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RawTextIngestPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipeline/recompute":{"post":{"tags":["phase1-core"],"summary":"Pipeline Recompute","description":"The reactive graph over HTTP: edit any bracket, the plan re-solves.\n\nSend the project's `project_state.input_snapshot` plus `edits` (dotted field\nkeys). Backward edits to derived quantities (budget.grand_total, budget.cap,\nschedule.shoot_days, cast.attachments) re-derive their upstream inputs; the\nfull pipeline then re-runs so every downstream bracket stays consistent.","operationId":"pipeline_recompute_v1_pipeline_recompute_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecomputeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipeline/editable-fields":{"get":{"tags":["phase1-core"],"summary":"Pipeline Editable Fields","description":"What the reactive graph lets a client edit (and which edits are backward).","operationId":"pipeline_editable_fields_v1_pipeline_editable_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/placements":{"get":{"tags":["phase1-core"],"summary":"Placements","description":"Sponsor placements for the caller. Free only; Studio gets an empty list.\n\nResolved SERVER-side so the paid \"no ads\" promise is kept before any markup\nexists, rather than by a client that might be stale. See\n`phase2_platform/placements.py`: local example data, no ad network, no\nnetwork call, no identifier ever leaves the process.","operationId":"placements_v1_placements_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/session/mode":{"get":{"tags":["phase1-core"],"summary":"Session Mode","description":"Public: whether the frontend should offer a no-account 'try it' path.\n\nNo auth (it exposes only two booleans, no data), so the login/app pages can\ndecide whether to show the guest lane before any credential exists.","operationId":"session_mode_v1_session_mode_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/project/mutate":{"post":{"tags":["phase1-core"],"summary":"Project Mutate","operationId":"project_mutate_v1_project_mutate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromptMutationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/automations/vocabulary":{"get":{"tags":["phase1-core"],"summary":"Schedule Automations Vocabulary","description":"The closed whitelist a no-code editor builds against: every trigger (with\nthe fields its event context provides), every condition operator and\ncombinator, and every action (with its allowed params). A rule may be\nassembled ONLY from this vocabulary; anything else is refused at save.","operationId":"schedule_automations_vocabulary_v1_schedule_automations_vocabulary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/schedule/{project}/automations":{"get":{"tags":["phase1-core"],"summary":"Schedule Automations List","description":"List a project's automation rules. Any member may read them.","operationId":"schedule_automations_list_v1_schedule__project__automations_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["phase1-core"],"summary":"Schedule Automations Create","description":"Create a rule. Owner/manage only. The rule is validated deny-by-default\n(unknown trigger/op/action → 422) BEFORE anything is stored.","operationId":"schedule_automations_create_v1_schedule__project__automations_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationRuleBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/automations/{rule_id}":{"patch":{"tags":["phase1-core"],"summary":"Schedule Automations Update","description":"Edit / enable / disable a rule. Owner/manage only. The whole resulting\nrule is re-validated deny-by-default, so an edit can never smuggle an\nunknown trigger/op/action past the boundary.","operationId":"schedule_automations_update_v1_schedule__project__automations__rule_id__patch","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationRulePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["phase1-core"],"summary":"Schedule Automations Delete","description":"Delete a rule. Owner/manage only.","operationId":"schedule_automations_delete_v1_schedule__project__automations__rule_id__delete","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/automations/{rule_id}/test":{"post":{"tags":["phase1-core"],"summary":"Schedule Automations Test","description":"Dry-run a single rule against a provided or sample event context and\nreturn the report of what it WOULD do — no side effects (no persistence\nwrite, no note queued, no email attempted, no audit row). Any member may\ntest.","operationId":"schedule_automations_test_v1_schedule__project__automations__rule_id__test_post","parameters":[{"name":"rule_id","in":"path","required":true,"schema":{"type":"integer","title":"Rule Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutomationTestBody","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/budget/import-mm":{"post":{"tags":["phase1-core","phase1-core","budget"],"summary":"Import Mm Budget Endpoint","description":"Import an MMB-style budget CSV and return an Aufilm budget context.\n\nResponse: ``{\"context\": <feedable to generate_budget>, \"summary\": {...}}``\nwhere the summary carries lines imported, mapped/unmapped counts, apply-tools\ndetected, grand/net totals, and the honest round-trip note.","operationId":"import_mm_budget_endpoint_v1_budget_import_mm_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_mm_budget_endpoint_v1_budget_import_mm_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/export/fdx":{"post":{"tags":["export"],"summary":"Export Fdx","description":"Convert Fountain-style text to a Final Draft (.fdx) file download.","operationId":"export_fdx_v1_export_fdx_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FdxExportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/assets":{"post":{"tags":["creative-boards"],"summary":"Upload Asset","description":"Upload one image (floorplan | moodboard_image | reference). Editor+.","operationId":"upload_asset_v1_departments__project__assets_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_asset_v1_departments__project__assets_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["creative-boards"],"summary":"List Project Assets","description":"All creative assets on the project (optionally filtered by type). Any member.","operationId":"list_project_assets_v1_departments__project__assets_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/assets/{asset_id}/file":{"get":{"tags":["creative-boards"],"summary":"Asset File","description":"The image bytes, with the stored content type. Any member. The path is\nresolved from the server-generated stored name only — never client input.","operationId":"asset_file_v1_departments__project__assets__asset_id__file_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/assets/{asset_id}":{"delete":{"tags":["creative-boards"],"summary":"Delete Project Asset","description":"Delete an asset (editor+, audited with the actor). Deleting the LAST\nfloorplan that declared a scene's setups also clears that scene's schedule\nweight and re-solves the plan — the schedule never silently keeps a number\nwhose source is gone.","operationId":"delete_project_asset_v1_departments__project__assets__asset_id__delete","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/assets/{asset_id}/floorplan":{"put":{"tags":["creative-boards"],"summary":"Set Floorplan","description":"Attach a floorplan's structured fields to its scene and re-solve the\nsaved plan: the declared setups become the scene's schedule weight through\nthe plan's own input snapshot (input_snapshot.storyboard_setups), so day\npacking, feasibility, budget impacts and every later recompute/export\ninherit them. Editor+.","operationId":"set_floorplan_v1_departments__project__assets__asset_id__floorplan_put","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FloorplanBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/schedule":{"get":{"tags":["creative-boards"],"summary":"Project Plan Schedule","description":"The saved plan's schedule read (days, setups, feasibility, crew calls,\nper-scene setups) for the boards UI. Any member. Honest when the project\nhas no stored plan.","operationId":"project_plan_schedule_v1_departments__project__schedule_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/boards":{"get":{"tags":["creative-boards"],"summary":"List Project Boards","description":"Every moodboard on the project, items in their saved order. Any member.","operationId":"list_project_boards_v1_departments__project__boards_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["creative-boards"],"summary":"Create Project Board","description":"Create a moodboard (e.g. 'Look', 'Wardrobe', 'Locations'). Editor+.","operationId":"create_project_board_v1_departments__project__boards_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardCreateBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/departments/{project}/boards/{board_id}":{"patch":{"tags":["creative-boards"],"summary":"Update Project Board","description":"Rename a board and/or replace its ordered item list (asset ids +\ncaptions — every id must be an asset of THIS project). Editor+.","operationId":"update_project_board_v1_departments__project__boards__board_id__patch","parameters":[{"name":"board_id","in":"path","required":true,"schema":{"type":"string","title":"Board Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BoardUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["creative-boards"],"summary":"Delete Project Board","description":"Delete a moodboard (the images stay in the asset library). Editor+.","operationId":"delete_project_board_v1_departments__project__boards__board_id__delete","parameters":[{"name":"board_id","in":"path","required":true,"schema":{"type":"string","title":"Board Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/{project}/upload":{"post":{"tags":["project-documents"],"summary":"Upload Document","description":"Upload one document (pdf/txt/fountain/fdx/celtx/docx, ≤ 15 MB). Editor+.","operationId":"upload_document_v1_documents__project__upload_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_v1_documents__project__upload_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/{project}":{"get":{"tags":["project-documents"],"summary":"List Project Documents","description":"All documents on the project (optionally filtered by kind). Any member.\nBudget-kind documents are omitted for viewers the producer restricted the\nbudget field from; contract-kind for viewers restricted on contracts; and a\ndepartment-scoped member sees neither budget nor contract documents (the\nproject-wide picture is outside their lane).","operationId":"list_project_documents_v1_documents__project__get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/{project}/{doc_id}/file":{"get":{"tags":["project-documents"],"summary":"Document File","description":"The document bytes, with the stored content type and a download\nContent-Disposition. Any member — except budget-restricted viewers on\nbudget-kind documents, contracts-restricted viewers on contract-kind\ndocuments, and department-scoped members on either project-wide kind. The\npath is resolved from the server-generated stored name only — never client\ninput.","operationId":"document_file_v1_documents__project___doc_id__file_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/{project}/{doc_id}":{"delete":{"tags":["project-documents"],"summary":"Delete Project Document","description":"Delete a document (editor+, audited with the actor).","operationId":"delete_project_document_v1_documents__project___doc_id__delete","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/options":{"post":{"tags":["scheduling"],"summary":"Schedule Options","description":"Generate the named schedule OPTIONS (shortest / lowest-cost / lowest-risk /\nperformance) scored against the caller's priorities, with a comparison table\nand a recommendation. Derived from the saved breakdown — never persisted here.\nAny member may explore options.","operationId":"schedule_options_v1_schedule__project__options_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptionsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/validate-move":{"post":{"tags":["scheduling"],"summary":"Schedule Validate Move","description":"Classify moving a scene to another day (safe / inefficient / expensive /\nimpossible / unusual) with the reason. Any member.","operationId":"schedule_validate_move_v1_schedule__project__validate_move_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateMoveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/apply-move":{"post":{"tags":["scheduling"],"summary":"Schedule Apply Move","description":"PERSIST a stripboard move to the saved project (editor+), through the\nsame reactive recompute+save path as a floorplan edit — so the stripboard is\na real, durable, coherent edit that every later analysis/export inherits.\n\nThe move is validated first; an ``impossible`` move is refused, and an\n``expensive`` one requires ``acknowledged=true`` (the UI's ack gate). Safe/\ninefficient/unusual moves apply directly. Returns the validation verdict\nplus the persisted before/after.","operationId":"schedule_apply_move_v1_schedule__project__apply_move_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyMoveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/state":{"get":{"tags":["scheduling"],"summary":"Get State","description":"The persisted scheduling decision: priorities, chosen option, status. Any member.","operationId":"get_state_v1_schedule__project__state_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["scheduling"],"summary":"Put State","description":"Persist the priorities + chosen option (editor+). Set ``approve`` (and\noptionally ``lock``) to finalize the decision — owner-only, audited.","operationId":"put_state_v1_schedule__project__state_put","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/call-sheets":{"get":{"tags":["scheduling"],"summary":"List Call Sheets","description":"Every day with a call sheet: the latest version + version history. The\nlatest snapshot is redacted to the caller's scope. Any member.","operationId":"list_call_sheets_v1_schedule__project__call_sheets_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/call-sheets/{day}":{"post":{"tags":["scheduling"],"summary":"Refresh Call Sheet","description":"Create/refresh a call-sheet VERSION for a day from the current derived\nschedule (a new immutable version). Optional approved ``call_overrides``\n(per-actor call times) and ``notes``. Editor+.","operationId":"refresh_call_sheet_v1_schedule__project__call_sheets__day__post","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"integer","title":"Day"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSheetBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["scheduling"],"summary":"Get Call Sheet","description":"One call sheet (latest, or a specific ``version``), redacted to the\ncaller's scope. Any member.","operationId":"get_call_sheet_v1_schedule__project__call_sheets__day__get","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"integer","title":"Day"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/call-sheets/{day}/status":{"patch":{"tags":["scheduling"],"summary":"Set Call Sheet Status","description":"Transition the latest version's status. draft→in_review is editor+;\napprove/lock are owner-only. Only an approved sheet can be locked (guard).","operationId":"set_call_sheet_status_v1_schedule__project__call_sheets__day__status_patch","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"integer","title":"Day"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/call-sheets/{day}/pdf":{"get":{"tags":["scheduling"],"summary":"Call Sheet Pdf","description":"The call sheet as a permission-scoped one-page PDF. The redaction happens\nBEFORE the PDF is rendered, so an unauthorized scope's bytes never carry the\nprivate fields. Any member.","operationId":"call_sheet_pdf_v1_schedule__project__call_sheets__day__pdf_get","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"integer","title":"Day"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/call-sheets/{day}/recipients":{"post":{"tags":["scheduling"],"summary":"Add Recipients","description":"Attach recipients (name/email/role/scope) to the latest call-sheet\nversion. Each gets a unique ack token. Editor+.","operationId":"add_recipients_v1_schedule__project__call_sheets__day__recipients_post","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"integer","title":"Day"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["scheduling"],"summary":"Get Recipients","description":"Distribution summary + per-recipient state for the latest version. Any member.","operationId":"get_recipients_v1_schedule__project__call_sheets__day__recipients_get","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"integer","title":"Day"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/call-sheets/{day}/distribute":{"post":{"tags":["scheduling"],"summary":"Distribute Call Sheet","description":"Record a distribution attempt HONESTLY: with no mailer configured,\nrecipients stay 'pending' (nothing is claimed sent); with a mailer, a\nsuccessful send is 'delivered', a failure 'failed'. Acknowledgement (the ack\nlink) is the reliable receipt. Editor+.","operationId":"distribute_call_sheet_v1_schedule__project__call_sheets__day__distribute_post","parameters":[{"name":"day","in":"path","required":true,"schema":{"type":"integer","title":"Day"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/callsheet/ack/{ack_token}":{"post":{"tags":["scheduling"],"summary":"Acknowledge Call Sheet","description":"The recipient's ack link: flips their state to 'acknowledged'. PUBLIC and\nrate-limited; it only ever sets one recipient's own acknowledgement and\nleaks nothing about other recipients. An unknown/expired token reads 404.","operationId":"acknowledge_call_sheet_v1_callsheet_ack__ack_token__post","parameters":[{"name":"ack_token","in":"path","required":true,"schema":{"type":"string","title":"Ack Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/schedule/{project}/conflicts":{"get":{"tags":["scheduling"],"summary":"Schedule Conflicts","description":"The risk dashboard: hard/soft schedule constraints (unavailable cast,\nturnaround, minors, marine, location ceiling, daylight, overtime, meals,\ncompany moves, hold days), incomplete contacts, and — cross-referencing the\npersisted call sheets — unapproved sheets, missing acknowledgements, and\nSTALE call sheets whose issued day-data no longer matches the current derived\nschedule. Any member.","operationId":"schedule_conflicts_v1_schedule__project__conflicts_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sourcing/live":{"post":{"tags":["sourcing"],"summary":"Live Sourcing","description":"Real-time sourcing for a project profile: live API hits (honest and\ngated), the region's verified directory with freshness, and search kits.\n\nPlan-gated. `verified_directory` is the funding catalogue (12 records per\ncall, with jurisdiction, type and freshness) — the same class of data that\n/v1/opportunities and /v1/intelligence/sources both refuse to a free\naccount. It was reachable here by any caller, including a guest with no\naccount at all, which made the other two gates decorative.","operationId":"live_sourcing_v1_sourcing_live_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveSourcingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sourcing/refresh":{"post":{"tags":["sourcing"],"summary":"Refresh Sourcing","description":"Explicitly re-verify the curated funding records that matter to this\nproject against their real sources, and honestly update their freshness\n(renew confirmed ones, keep dead/needs-recheck ones off the apply-now list).\nBounded and non-fabricating; AUFILM_LIVE_SOURCING=0 skips the network honestly.","operationId":"refresh_sourcing_v1_sourcing_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogRefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sourcing/health":{"get":{"tags":["sourcing"],"summary":"Sourcing Health","description":"Connector availability for the live lane (configuration truth, no\nsecrets, no external calls, this endpoint must stay fast).","operationId":"sourcing_health_v1_sourcing_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/status":{"get":{"tags":["phase2-platform"],"summary":"Status","operationId":"status_v1_platform_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/pricing":{"get":{"tags":["phase2-platform"],"summary":"Public Pricing","description":"The public price list, readable without an account (the Plans card and the\nupgrade card are shown to no-account visitors too). Same payload as the\n``pricing`` block of ``/me``: one paid plan, and ``checkout_url`` only when a\nvalid hosted-checkout link is configured.","operationId":"public_pricing_v1_platform_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/packages":{"get":{"tags":["phase2-platform"],"summary":"My Packages","description":"The caller's per-production package grants, plus the public catalog.\n\nRead-only: grants are written by an admin or a confirmed-payment path\n(aufilm.phase2_platform.packages.grant_package), never from this router. The\ncatalog marks Production and Producer's Desk purchasable, with their\nhosted checkout links; Essential is never purchasable.","operationId":"my_packages_v1_platform_packages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/terms":{"get":{"tags":["phase2-platform"],"summary":"Terms","description":"Current Terms of Use + Privacy notice (versioned), for the signup gate\nand any in-app link. Public — no auth required to read before signing up.","operationId":"terms_v1_platform_terms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/guest/accept-terms":{"post":{"tags":["phase2-platform"],"summary":"Guest Accept Terms","description":"Record a no-account visitor's acceptance of the Terms of Use and hand back\nthe signed consent cookie the guest pipeline lane requires.\n\nPublic by necessity: the caller has no account and no session, which is the\nentire point. It is rate limited on the auth scope, writes one small audit\nrow, and mints a token that only unlocks the stateless guest lane. It can\nnever create an account, read anyone's data, or raise a privilege.","operationId":"guest_accept_terms_v1_platform_guest_accept_terms_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuestTermsBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/auth/signup":{"post":{"tags":["phase2-platform"],"summary":"Signup","operationId":"signup_v1_platform_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupBody"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/auth/login":{"post":{"tags":["phase2-platform"],"summary":"Login","operationId":"login_v1_platform_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/auth/login/otp":{"post":{"tags":["phase2-platform"],"summary":"Login Otp","description":"Second step of a 2FA login: the purpose token from /auth/login plus the\nemailed 6-digit code. Only after BOTH verify does the session mint through\nthe same _token_response path as a plain login.","operationId":"login_otp_v1_platform_auth_login_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpLoginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/auth/2fa/email/enable":{"post":{"tags":["phase2-platform"],"summary":"Request Twofa Enable","description":"Start enabling email 2FA: requires the CURRENT password, then sends a\nconfirmation code to prove the account can actually receive codes — so a\nuser can never lock themselves out behind a broken mailer. Refuses with an\nhonest 503 when no mailer is configured.","operationId":"request_twofa_enable_v1_platform_auth_2fa_email_enable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwofaPasswordBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/auth/2fa/email/enable/confirm":{"post":{"tags":["phase2-platform"],"summary":"Confirm Twofa Enable","description":"Finish enabling email 2FA by returning the emailed confirmation code.\nOnly turns the flag on after delivery is PROVEN to work end to end.","operationId":"confirm_twofa_enable_v1_platform_auth_2fa_email_enable_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtpLoginBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/auth/2fa/email/disable":{"post":{"tags":["phase2-platform"],"summary":"Disable Twofa","description":"Turn email 2FA off. Requires the current password — a hijacked session\nalone must not be able to strip the second factor.","operationId":"disable_twofa_v1_platform_auth_2fa_email_disable_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwofaPasswordBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/auth/logout":{"post":{"tags":["phase2-platform"],"summary":"Logout","description":"Revoke EVERY outstanding token for the calling account (R2).\n\nBumps the account's ``token_version`` epoch; verification (aufilm.auth) then\nrejects all tokens minted at older epochs — including the one presented on\nthis call. Requires a valid credential (revocation is an account action).\nA principal with no platform account (dev header / local) has nothing to\nrevoke. There is no password-change endpoint yet; when one lands it MUST\nbump the epoch the same way.","operationId":"logout_v1_platform_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/auth/request-password-reset":{"post":{"tags":["phase2-platform"],"summary":"Request Password Reset","operationId":"request_password_reset_v1_platform_auth_request_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequestBody"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/auth/reset-password":{"post":{"tags":["phase2-platform"],"summary":"Reset Password","operationId":"reset_password_v1_platform_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetConfirmBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/auth/request-email-verification":{"post":{"tags":["phase2-platform"],"summary":"Request Email Verification","operationId":"request_email_verification_v1_platform_auth_request_email_verification_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/auth/verify-email":{"post":{"tags":["phase2-platform"],"summary":"Verify Email","operationId":"verify_email_v1_platform_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/me":{"get":{"tags":["phase2-platform"],"summary":"Me","description":"The calling principal, plus its account row when one exists. A local /\ndev principal with no registered account returns ``account: null``.\n\n``terms`` carries the latest terms version this account accepted and the\ncurrent version, so the client can re-prompt when the terms change.","operationId":"me_v1_platform_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/session":{"get":{"tags":["phase2-platform"],"summary":"Session Probe","description":"The page-load probe: \"is anyone signed in here?\", answered without an error.\n\n``GET /me`` is a 401 for an anonymous caller, which is correct for an API but\nshows up as a red console error on the first load of every public page (the\nbrowser logs every failed request). This answers 200 with\n``{\"authenticated\": false}`` for a caller with no valid session, and for a\nsigned-in caller returns exactly what ``/me`` returns, so a page can use it as\na drop-in. ``/me`` itself is unchanged for existing clients. Only a missing or\ninvalid credential is softened; any other refusal (for example the cross-site\ncookie check) is passed through untouched.","operationId":"session_probe_v1_platform_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/account/export":{"get":{"tags":["phase2-platform"],"summary":"Export Account Data","description":"Structured data stored under the calling account as one JSON bundle.\n\nUploaded file binaries (documents and images) are not embedded in JSON;\n``uploaded_files`` lists each one with its name, size, SHA-256, content type\nand authenticated file endpoint. Shared projects expose membership only because\ntheir content belongs to the project owner.","operationId":"export_account_data_v1_platform_account_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/account":{"delete":{"tags":["phase2-platform"],"summary":"Delete Account","description":"Erase the calling account and everything it owns (right to erasure).\n\nRequires the current password AND confirm=\"DELETE\" — an authenticated\nsession alone (e.g. a hijacked browser tab) is not enough. The session\ncookie is cleared and the account row removed, so every outstanding token\ndies with it (verification requires the account to exist).","operationId":"delete_account_v1_platform_account_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/accept-terms":{"post":{"tags":["phase2-platform"],"summary":"Accept Terms","description":"Record that the authenticated caller accepts the CURRENT terms version.\n\nThis is the *write* side of the re-prompt-on-change flow whose read side is\n``/me`` (``terms.up_to_date``): when the terms version bumps, an existing\nuser shows ``up_to_date: false`` and the client calls this to consent to the\nnew version — no re-signup, no way to forge a version. The server always\nrecords ``TERMS_VERSION`` (never a client-supplied string), so a stale or\nspoofed version can't be backdated in, and the record is idempotent per\n(email, version). The response is read back from the store rather than\nasserted, so ``up_to_date`` reflects what was actually persisted.","operationId":"accept_terms_v1_platform_accept_terms_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/projects":{"get":{"tags":["phase2-platform"],"summary":"My Projects","description":"Every project the caller can reach — owned OR shared with them — newest\nfirst, each tagged with the caller's role and live budget summary. The\nheadline crew dashboard surface.","operationId":"my_projects_v1_platform_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["phase2-platform"],"summary":"Create Project","description":"Create a project from a script: runs the analysis pipeline, materializes\nthe workspace owned by the caller, and returns it. The container that\neverything else (budget, crew, versions, documents) lives inside.\n\nNOT plan-gated, and deliberately so: saving a project and keeping it stored\nis part of the Free tier. A filmmaker can break a script down, cost it and\ncome back to it without paying.\n\nAdmission-gated like every other heavy route: this runs the full CPU-bound\npipeline, and without the slot it was the one heavy route an authenticated\nburst could saturate — the 2026-11-03 simulated-user stress run broke\nproject creation at 10-12 simultaneous creators (opaque edge 502s for\neveryone) while the gated routes shed honestly with 503 + Retry-After.","operationId":"create_project_v1_platform_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectBody"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/budget":{"get":{"tags":["phase2-platform"],"summary":"Project Budget","description":"The project's live budget dashboard — any crew member may view, scoped\nto the caller's rights: a budget-restricted member sees the structure with\namounts nulled, a department-scoped member sees only their department (no\ngrand totals). Unrestricted all-project members are unchanged.","operationId":"project_budget_v1_platform_projects__project_id__budget_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/cost":{"patch":{"tags":["phase2-platform"],"summary":"Edit Cost","description":"Edit a budget line (estimated/actual/note). Requires edit access (owner\nor editor crew); a viewer is 403. Recalculates master + department docs and\naudits the change, via the same store the Phase 1 route uses.","operationId":"edit_cost_v1_platform_projects__project_id__cost_patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/script/parse":{"post":{"tags":["phase2-platform"],"summary":"Parse Script","description":"Lightweight 'Aufilm sees…' readout for the writer: just scenes / cast /\nlocations / pages. Runs the deterministic breakdown only — no budget,\nschedule, or funding — so it's cheap enough to call as the user types.","operationId":"parse_script_v1_platform_script_parse_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParseBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/drafts":{"get":{"tags":["phase2-platform"],"summary":"List Drafts","operationId":"list_drafts_v1_platform_drafts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["phase2-platform"],"summary":"Create Draft","operationId":"create_draft_v1_platform_drafts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftCreateBody"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/drafts/{draft_id}":{"get":{"tags":["phase2-platform"],"summary":"Get Draft","operationId":"get_draft_v1_platform_drafts__draft_id__get","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["phase2-platform"],"summary":"Update Draft","operationId":"update_draft_v1_platform_drafts__draft_id__put","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["phase2-platform"],"summary":"Delete Draft","operationId":"delete_draft_v1_platform_drafts__draft_id__delete","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/signing/templates":{"get":{"tags":["phase2-platform"],"summary":"Signing Templates","description":"Catalog of standard production document templates.","operationId":"signing_templates_v1_platform_signing_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/platform/projects/{project_id}/signatures":{"post":{"tags":["phase2-platform"],"summary":"Prepare Signature","description":"Prepare a signature request draft for a project the caller can edit.\nBuilds the envelope from a template, validates signers, and persists it in\n``draft`` status. Does not send anything.","operationId":"prepare_signature_v1_platform_projects__project_id__signatures_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareSignatureBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase2-platform"],"summary":"List Project Signatures","description":"All signature requests on a project the caller can view (crew-shared).\nContracts privacy applies: a restricted or department-scoped member reads\nan honest 403, never the contract roster.","operationId":"list_project_signatures_v1_platform_projects__project_id__signatures_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/signatures/{sig_id}":{"get":{"tags":["phase2-platform"],"summary":"Get Signature","operationId":"get_signature_v1_platform_signatures__sig_id__get","parameters":[{"name":"sig_id","in":"path","required":true,"schema":{"type":"string","title":"Sig Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/signatures/{sig_id}/send":{"post":{"tags":["phase2-platform"],"summary":"Stage Signature Send","description":"Stage a prepared request for external dispatch.\n\nGATE: transmitting a contract to a third party is an external/legal action\nthat Aufilm never performs autonomously. This endpoint advances the request\nto its prepared-for-dispatch state and reports that an operator must authorize the actual send\n(and a signing provider must be configured). It never sets ``sent`` or\ncontacts a signer.","operationId":"stage_signature_send_v1_platform_signatures__sig_id__send_post","parameters":[{"name":"sig_id","in":"path","required":true,"schema":{"type":"string","title":"Sig Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/versions":{"post":{"tags":["phase2-platform"],"summary":"Create Version","description":"Snapshot the project's current budget truth (the live departments\ndashboard) as a labelled version. Append-only — never mutates live data.","operationId":"create_version_v1_platform_projects__project_id__versions_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotBody","default":{"label":""}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase2-platform"],"summary":"List Versions","description":"Version history for a project the caller can view, newest first.","operationId":"list_versions_v1_platform_projects__project_id__versions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/versions/compare":{"get":{"tags":["phase2-platform"],"summary":"Compare Versions","description":"Diff two versions of a project: master delta + per-department movement.\n(Declared before the `{version_id}` route so `compare` isn't swallowed.)","operationId":"compare_versions_v1_platform_projects__project_id__versions_compare_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"a","in":"query","required":true,"schema":{"type":"string","title":"A"}},{"name":"b","in":"query","required":true,"schema":{"type":"string","title":"B"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/versions/{version_id}":{"get":{"tags":["phase2-platform"],"summary":"Get Version","operationId":"get_version_v1_platform_projects__project_id__versions__version_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/members":{"get":{"tags":["phase2-platform"],"summary":"List Members","description":"The crew on a project (owner + members). Any member may view the roster.","operationId":"list_members_v1_platform_projects__project_id__members_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["phase2-platform"],"summary":"Add Project Member","description":"Invite a crew member (owner-only, manage). Creates a PENDING invite and\nreturns a one-time claim_code — the invitee gains NO access until they redeem\nit via the claim endpoint (proving both that they control the account for that\nemail AND that they hold the code). Relay the code to the invitee, or Aufilm\nemails the claim link when a mailer is configured (AUFILM_SMTP_URL). This closes\nthe email-squatting hijack: signing up as an address is not enough to inherit\nits invite. (R1)\n\nOptional ``department`` scopes the invite to ONE department: the redeemed\nmembership sees that bracket's costs/requests/audit only, never the grand\ntotals or other departments (the gaffer sees G&E, not the whole financial\npicture). Omitted = the legacy all-departments membership.","operationId":"add_project_member_v1_platform_projects__project_id__members_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/members/claim":{"post":{"tags":["phase2-platform"],"summary":"Claim Project Membership","description":"Redeem a pending invite for the CALLING account's email with the claim_code\nthe owner issued. On success the caller becomes an active member. The invitee\nneed not already have project access (they are joining), but must be\nauthenticated as the invited email. A wrong/absent code is a flat 404 — it\nnever reveals whether an invite exists. (R1)","operationId":"claim_project_membership_v1_platform_projects__project_id__members_claim_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/members/{member_email}":{"delete":{"tags":["phase2-platform"],"summary":"Remove Project Member","description":"Revoke a crew member's access. Owner-only (manage).","operationId":"remove_project_member_v1_platform_projects__project_id__members__member_email__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"member_email","in":"path","required":true,"schema":{"type":"string","title":"Member Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/quotes":{"post":{"tags":["phase2-platform"],"summary":"Create Quote Request","description":"Create a structured vendor quote request from the production plan.\nEditor+ access. The packet is returned for the producer to relay — Aufilm\ndoes not send it.","operationId":"create_quote_request_v1_platform_projects__project_id__quotes_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteCreateBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["phase2-platform"],"summary":"List Quote Requests","operationId":"list_quote_requests_v1_platform_projects__project_id__quotes_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/quotes/{quote_id}":{"patch":{"tags":["phase2-platform"],"summary":"Update Quote Status","description":"Record the vendor's answer: received (with amount), accepted, declined,\nvoid. Editor+ access; transitions are validated.","operationId":"update_quote_status_v1_platform_projects__project_id__quotes__quote_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"quote_id","in":"path","required":true,"schema":{"type":"string","title":"Quote Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteStatusBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/platform/projects/{project_id}/quotes/reconciliation":{"get":{"tags":["phase2-platform"],"summary":"Quote Reconciliation","description":"Estimate vs user-entered vs accepted-quote vs actual, per budget line.\nBudget-privacy rules apply (a restricted viewer sees no amounts).","operationId":"quote_reconciliation_v1_platform_projects__project_id__quotes_reconciliation_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/executive/status":{"get":{"tags":["phase3-executive (scaffold)"],"summary":"Status","operationId":"status_v1_executive_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/executive/listings":{"post":{"tags":["phase3-executive (scaffold)"],"summary":"Create Listing","operationId":"create_listing_v1_executive_listings_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/legalfinance/status":{"get":{"tags":["phase4-legalfinance (scaffold)"],"summary":"Status","operationId":"status_v1_legalfinance_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/legalfinance/entities":{"post":{"tags":["phase4-legalfinance (scaffold)"],"summary":"Form Entity","operationId":"form_entity_v1_legalfinance_entities_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/legalfinance/payroll/run":{"post":{"tags":["phase4-legalfinance (scaffold)"],"summary":"Run Payroll","operationId":"run_payroll_v1_legalfinance_payroll_run_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/business/status":{"get":{"tags":["phase5-business (scaffold)"],"summary":"Status","operationId":"status_v1_business_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/business/tiers":{"get":{"tags":["phase5-business (scaffold)"],"summary":"Tiers","operationId":"tiers_v1_business_tiers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"ApplyMoveBody":{"properties":{"scene_number":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Scene Number"},"target_day":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Target Day"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"},"acknowledged":{"type":"boolean","title":"Acknowledged","default":false}},"type":"object","required":["scene_number","target_day"],"title":"ApplyMoveBody"},"ApplyTemplateBody":{"properties":{"template_id":{"type":"string","maxLength":80,"minLength":1,"title":"Template Id"},"crew":{"additionalProperties":{"type":"string"},"type":"object","title":"Crew"}},"type":"object","required":["template_id"],"title":"ApplyTemplateBody"},"AutomationRuleBody":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"trigger":{"type":"string","maxLength":64,"minLength":1,"title":"Trigger"},"condition":{"additionalProperties":true,"type":"object","title":"Condition"},"action":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":16,"minItems":1,"title":"Action"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"additionalProperties":false,"type":"object","required":["name","trigger","action"],"title":"AutomationRuleBody","description":"A rule to create. Validated a second time, deny-by-default, in the store\n(validate_rule) — this only bounds sizes so a hostile payload is cheap to\nreject before it reaches the whitelist check."},"AutomationRulePatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"condition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Condition"},"action":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":16},{"type":"null"}],"title":"Action"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"additionalProperties":false,"type":"object","title":"AutomationRulePatch","description":"A partial edit. Trigger is immutable post-create (delete + recreate to\nchange it), so it is intentionally absent here."},"AutomationTestBody":{"properties":{"event_context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Event Context"}},"additionalProperties":false,"type":"object","title":"AutomationTestBody","description":"Dry-run a rule. Provide an explicit event_context, or leave it empty to\nuse a representative sample for the rule's trigger."},"BoardCreateBody":{"properties":{"title":{"type":"string","maxLength":120,"minLength":1,"title":"Title"}},"type":"object","required":["title"],"title":"BoardCreateBody"},"BoardItemBody":{"properties":{"asset_id":{"type":"string","maxLength":64,"minLength":1,"title":"Asset Id"},"caption":{"type":"string","maxLength":500,"title":"Caption","default":""}},"type":"object","required":["asset_id"],"title":"BoardItemBody"},"BoardUpdateBody":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Title"},"items":{"anyOf":[{"items":{"$ref":"#/components/schemas/BoardItemBody"},"type":"array","maxItems":100},{"type":"null"}],"title":"Items"}},"type":"object","title":"BoardUpdateBody"},"Body_generate_intake_statements_upload_v1_intake_statements_generate_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"title":{"type":"string","title":"Title","default":"Untitled"},"genre":{"type":"string","title":"Genre","default":"drama"},"director_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Director Name"}},"type":"object","required":["file"],"title":"Body_generate_intake_statements_upload_v1_intake_statements_generate_upload_post"},"Body_import_mm_budget_endpoint_v1_budget_import_mm_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"csv_text":{"type":"string","title":"Csv Text"}},"type":"object","title":"Body_import_mm_budget_endpoint_v1_budget_import_mm_post"},"Body_pipeline_export_from_upload_v1_pipeline_export_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Day"},"title":{"type":"string","title":"Title","default":"Untitled"},"genre":{"type":"string","title":"Genre","default":"drama"},"project_format":{"type":"string","title":"Project Format","default":"narrative_feature"},"scale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scale"},"jurisdiction":{"type":"string","title":"Jurisdiction","default":"US"},"phase":{"type":"string","title":"Phase","default":"development"},"shoot_days":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Shoot Days"},"attachments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachments"},"shooting_format":{"type":"string","title":"Shooting Format","default":"digital"},"student_film":{"type":"boolean","title":"Student Film","default":false},"paying_crew":{"type":"string","title":"Paying Crew","default":""},"real_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Real Budget"},"budget_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Cap"},"fit_budget_to_cap":{"type":"boolean","title":"Fit Budget To Cap","default":false},"home_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Currency"},"essential_only":{"type":"boolean","title":"Essential Only","default":false},"school_equipment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"School Equipment"},"school_insurance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"School Insurance"},"school_locations":{"type":"boolean","title":"School Locations","default":false},"school_transport":{"type":"boolean","title":"School Transport","default":false},"in_house_post":{"type":"boolean","title":"In House Post","default":false},"stock_props":{"type":"boolean","title":"Stock Props","default":false},"meals_provided":{"type":"boolean","title":"Meals Provided","default":false},"union_sag":{"type":"boolean","title":"Union Sag","default":false},"sag_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sag Tier"},"period_piece":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Period Piece"},"line_total_overrides":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Total Overrides"},"storyboard_setups":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storyboard Setups"},"coverage_notes_by_scene":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Notes By Scene"},"actor_notes_by_scene":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Notes By Scene"},"uploaded_storyboard":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded Storyboard"},"scene_day_overrides":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scene Day Overrides"},"ongoing_project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ongoing Project"},"project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"},"director_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Director Name"},"project_statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Statement"},"director_statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Director Statement"},"beginner_mode":{"type":"boolean","title":"Beginner Mode","default":false}},"type":"object","required":["file"],"title":"Body_pipeline_export_from_upload_v1_pipeline_export_upload_post"},"Body_pipeline_from_upload_v1_pipeline_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"title":{"type":"string","title":"Title","default":"Untitled"},"genre":{"type":"string","title":"Genre","default":"drama"},"project_format":{"type":"string","title":"Project Format","default":"narrative_feature"},"scale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scale"},"jurisdiction":{"type":"string","title":"Jurisdiction","default":"US"},"phase":{"type":"string","title":"Phase","default":"development"},"shoot_days":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Shoot Days"},"attachments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachments"},"shooting_format":{"type":"string","title":"Shooting Format","default":"digital"},"student_film":{"type":"boolean","title":"Student Film","default":false},"paying_crew":{"type":"string","title":"Paying Crew","default":""},"real_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Real Budget"},"budget_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Budget Cap"},"fit_budget_to_cap":{"type":"boolean","title":"Fit Budget To Cap","default":false},"home_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Home Currency"},"essential_only":{"type":"boolean","title":"Essential Only","default":false},"school_equipment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"School Equipment"},"school_insurance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"School Insurance"},"school_locations":{"type":"boolean","title":"School Locations","default":false},"school_transport":{"type":"boolean","title":"School Transport","default":false},"in_house_post":{"type":"boolean","title":"In House Post","default":false},"stock_props":{"type":"boolean","title":"Stock Props","default":false},"meals_provided":{"type":"boolean","title":"Meals Provided","default":false},"union_sag":{"type":"boolean","title":"Union Sag","default":false},"sag_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sag Tier"},"period_piece":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Period Piece"},"line_total_overrides":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Total Overrides"},"storyboard_setups":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storyboard Setups"},"coverage_notes_by_scene":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Notes By Scene"},"actor_notes_by_scene":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Notes By Scene"},"uploaded_storyboard":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded Storyboard"},"scene_day_overrides":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scene Day Overrides"},"ongoing_project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ongoing Project"},"project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project"},"director_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Director Name"},"project_statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Statement"},"director_statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Director Statement"},"beginner_mode":{"type":"boolean","title":"Beginner Mode","default":false}},"type":"object","required":["file"],"title":"Body_pipeline_from_upload_v1_pipeline_upload_post"},"Body_upload_asset_v1_departments__project__assets_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"type":{"type":"string","title":"Type"},"scene_number":{"anyOf":[{"type":"integer","maximum":100000.0,"minimum":1.0},{"type":"null"}],"title":"Scene Number"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"}},"type":"object","required":["file","type"],"title":"Body_upload_asset_v1_departments__project__assets_post"},"Body_upload_document_v1_documents__project__upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"kind":{"type":"string","title":"Kind","default":"other"}},"type":"object","required":["file"],"title":"Body_upload_document_v1_documents__project__upload_post"},"CallSheetBody":{"properties":{"call_overrides":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Call Overrides"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"},"call_sheet_inputs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Call Sheet Inputs"},"notes":{"type":"string","maxLength":2000,"title":"Notes","default":""}},"type":"object","title":"CallSheetBody"},"CatalogRefreshRequest":{"properties":{"country":{"type":"string","maxLength":3,"minLength":2,"pattern":"^[A-Za-z]{2,3}$","title":"Country","default":"US"},"us_state":{"anyOf":[{"type":"string","maxLength":2,"pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"title":"Us State"},"format":{"type":"string","maxLength":40,"title":"Format","default":"narrative_feature"},"genre":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Genre"},"budget_usd":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Budget Usd"},"scale":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Scale"},"stage":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Stage"},"max_records":{"type":"integer","maximum":40.0,"minimum":1.0,"title":"Max Records","default":12}},"type":"object","title":"CatalogRefreshRequest"},"ClaimBody":{"properties":{"claim_code":{"type":"string","maxLength":128,"minLength":8,"title":"Claim Code"}},"type":"object","required":["claim_code"],"title":"ClaimBody"},"CostBody":{"properties":{"code":{"type":"string","maxLength":32,"minLength":1,"title":"Code"},"field":{"type":"string","maxLength":16,"minLength":1,"title":"Field"},"value":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["code","field"],"title":"CostBody"},"CostPatch":{"properties":{"code":{"type":"string","title":"Code"},"field":{"type":"string","title":"Field"},"value":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["code","field"],"title":"CostPatch"},"CreateProjectBody":{"properties":{"title":{"type":"string","maxLength":180,"minLength":1,"title":"Title"},"script_text":{"type":"string","maxLength":1000000,"minLength":20,"title":"Script Text"},"genre":{"type":"string","maxLength":80,"title":"Genre","default":"drama"},"scale":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Scale"},"jurisdiction":{"type":"string","maxLength":8,"title":"Jurisdiction","default":"US"},"project_format":{"type":"string","maxLength":40,"title":"Project Format","default":"narrative_feature"}},"type":"object","required":["title","script_text"],"title":"CreateProjectBody"},"DeleteAccountBody":{"properties":{"password":{"type":"string","maxLength":200,"minLength":1,"title":"Password"},"confirm":{"type":"string","maxLength":32,"minLength":1,"title":"Confirm"}},"type":"object","required":["password","confirm"],"title":"DeleteAccountBody"},"DraftCreateBody":{"properties":{"title":{"type":"string","maxLength":180,"title":"Title","default":"Untitled draft"},"content":{"type":"string","maxLength":200000,"title":"Content","default":""}},"type":"object","title":"DraftCreateBody"},"DraftUpdateBody":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":180},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Content"}},"type":"object","title":"DraftUpdateBody"},"FdxExportRequest":{"properties":{"text":{"type":"string","maxLength":1000000,"title":"Text"},"title":{"type":"string","maxLength":180,"title":"Title","default":"screenplay"}},"type":"object","required":["text"],"title":"FdxExportRequest"},"FloorplanBody":{"properties":{"scene_number":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Scene Number"},"planned_setups":{"type":"integer","maximum":200.0,"minimum":0.0,"title":"Planned Setups"},"company_move_note":{"type":"string","maxLength":500,"title":"Company Move Note","default":""},"rigging_precall_min":{"anyOf":[{"type":"integer","maximum":480.0,"minimum":0.0},{"type":"null"}],"title":"Rigging Precall Min"},"apply_to_schedule":{"type":"boolean","title":"Apply To Schedule","default":true}},"type":"object","required":["scene_number","planned_setups"],"title":"FloorplanBody"},"GuestTermsBody":{"properties":{"accepted_terms_version":{"type":"string","maxLength":64,"title":"Accepted Terms Version","default":""}},"type":"object","title":"GuestTermsBody","description":"Clickwrap echo. The client must send back the exact version string it\nwas shown, so 'I accepted' can never mean 'I accepted whatever is current'\n— if the text changed between render and click, this 409s and re-prompts."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IngestPayload":{"properties":{"records":{"items":{"$ref":"#/components/schemas/SourceRecordInput"},"type":"array","maxItems":500,"title":"Records"},"source_origin":{"type":"string","title":"Source Origin","default":"manual"}},"type":"object","required":["records"],"title":"IngestPayload"},"LiveSourcingRequest":{"properties":{"country":{"type":"string","maxLength":3,"minLength":2,"pattern":"^[A-Za-z]{2,3}$","title":"Country","default":"US"},"us_state":{"anyOf":[{"type":"string","maxLength":2,"pattern":"^[A-Za-z]{2}$"},{"type":"null"}],"title":"Us State"},"format":{"type":"string","maxLength":40,"title":"Format","default":"narrative_feature"},"genre":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Genre"},"budget_usd":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Budget Usd"},"scale":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Scale"},"stage":{"anyOf":[{"type":"string","maxLength":30},{"type":"null"}],"title":"Stage"},"identity_optin":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Identity Optin"}},"type":"object","title":"LiveSourcingRequest"},"LoginBody":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"password":{"type":"string","maxLength":200,"minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginBody"},"MemberBody":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"role":{"type":"string","maxLength":16,"title":"Role","default":"viewer"},"department":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Department"}},"type":"object","required":["email"],"title":"MemberBody"},"OptionsBody":{"properties":{"priorities":{"items":{"$ref":"#/components/schemas/PriorityBody"},"type":"array","maxItems":20,"title":"Priorities"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"}},"type":"object","title":"OptionsBody"},"OtpLoginBody":{"properties":{"otp_token":{"type":"string","maxLength":2048,"minLength":16,"title":"Otp Token"},"code":{"type":"string","maxLength":16,"minLength":1,"title":"Code"}},"type":"object","required":["otp_token","code"],"title":"OtpLoginBody"},"ParseBody":{"properties":{"script_text":{"type":"string","maxLength":1000000,"minLength":1,"title":"Script Text"}},"type":"object","required":["script_text"],"title":"ParseBody"},"PrepareSignatureBody":{"properties":{"template_key":{"type":"string","maxLength":64,"minLength":1,"title":"Template Key"},"signers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":20,"title":"Signers"},"field_values":{"additionalProperties":true,"type":"object","title":"Field Values"}},"type":"object","required":["template_key"],"title":"PrepareSignatureBody"},"PriorityBody":{"properties":{"key":{"type":"string","maxLength":60,"minLength":1,"title":"Key"},"weight":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Weight","default":1.0}},"type":"object","required":["key"],"title":"PriorityBody"},"PrivacyPatch":{"properties":{"field":{"type":"string","maxLength":32,"minLength":1,"title":"Field"},"restricted":{"type":"boolean","title":"Restricted"}},"type":"object","required":["field","restricted"],"title":"PrivacyPatch"},"ProductionContext":{"properties":{"production_type":{"type":"string","maxLength":64,"title":"Production Type","default":"independent"},"student_film":{"type":"boolean","title":"Student Film","default":false},"paying_crew":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Paying Crew"},"real_budget":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Real Budget"},"budget_cap":{"anyOf":[{"type":"number","maximum":1000000000.0,"minimum":0.0},{"type":"null"}],"title":"Budget Cap"},"fit_budget_to_cap":{"type":"boolean","title":"Fit Budget To Cap","default":false},"essential_only":{"type":"boolean","title":"Essential Only","default":false},"school_equipment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"School Equipment"},"school_insurance":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"School Insurance"},"school_locations":{"type":"boolean","title":"School Locations","default":false},"school_transport":{"type":"boolean","title":"School Transport","default":false},"in_house_post":{"type":"boolean","title":"In House Post","default":false},"stock_props":{"type":"boolean","title":"Stock Props","default":false},"meals_provided":{"type":"boolean","title":"Meals Provided","default":false},"union_sag":{"type":"boolean","title":"Union Sag","default":false},"sag_tier":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Sag Tier"},"home_currency":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Home Currency"},"period_piece":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Period Piece"},"department_pay":{"additionalProperties":{"type":"number"},"type":"object","title":"Department Pay"},"role_rates":{"additionalProperties":{"type":"number"},"type":"object","title":"Role Rates"},"line_total_overrides":{"additionalProperties":{"type":"number"},"type":"object","title":"Line Total Overrides"},"priorities":{"additionalProperties":{"type":"string"},"type":"object","title":"Priorities"}},"additionalProperties":true,"type":"object","title":"ProductionContext","description":"Who is making this and how it is resourced — adjusts the budget math.\n\nFields with production-type-aware defaults (paying_crew, school_equipment,\nschool_insurance) default to None = \"not set\", so normalize_context can\napply the student-film defaults (unpaid/deferred crew, school gear/insurance)\ninstead of a hardcoded value silently overriding them. Combined with\n_context_dict's exclude_none, an unset field never reaches the engine as a\nconcrete non-student value — this is what makes the \"Student film\" choice\nactually discount on the JSON /pipeline/text path, not only on uploads."},"PromptMutationRequest":{"properties":{"prompt":{"type":"string","maxLength":8000,"title":"Prompt"},"current_input":{"additionalProperties":true,"type":"object","title":"Current Input"},"current_result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Current Result"},"project":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Project"}},"type":"object","required":["prompt","current_input"],"title":"PromptMutationRequest"},"QuoteCreateBody":{"properties":{"vendor_name":{"type":"string","maxLength":255,"minLength":1,"title":"Vendor Name"},"vendor_contact":{"type":"string","maxLength":255,"title":"Vendor Contact","default":""},"category":{"type":"string","maxLength":64,"title":"Category","default":""},"code":{"type":"string","maxLength":32,"title":"Code","default":""},"items":{"items":{"$ref":"#/components/schemas/QuoteItemBody"},"type":"array","maxItems":100,"title":"Items"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""}},"type":"object","required":["vendor_name"],"title":"QuoteCreateBody"},"QuoteItemBody":{"properties":{"item":{"type":"string","maxLength":200,"minLength":1,"title":"Item"},"qty":{"type":"number","maximum":100000.0,"minimum":0.0,"title":"Qty","default":1.0},"unit":{"type":"string","maxLength":32,"title":"Unit","default":""},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["item"],"title":"QuoteItemBody"},"QuoteStatusBody":{"properties":{"status":{"type":"string","maxLength":16,"minLength":1,"title":"Status"},"amount":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Amount"},"note":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Note"}},"type":"object","required":["status"],"title":"QuoteStatusBody"},"RawTextIngestPayload":{"properties":{"payload":{"type":"string","maxLength":2000000,"title":"Payload"},"source_origin":{"type":"string","title":"Source Origin","default":"manual_upload"}},"type":"object","required":["payload"],"title":"RawTextIngestPayload"},"RecipientBody":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name","default":""},"email":{"type":"string","maxLength":320,"title":"Email","default":""},"role":{"type":"string","maxLength":120,"title":"Role","default":""},"scope":{"type":"string","maxLength":20,"title":"Scope","default":"crew"}},"type":"object","title":"RecipientBody"},"RecipientsBody":{"properties":{"recipients":{"items":{"$ref":"#/components/schemas/RecipientBody"},"type":"array","maxItems":500,"minItems":1,"title":"Recipients"}},"type":"object","required":["recipients"],"title":"RecipientsBody"},"RecomputeRequest":{"properties":{"input_snapshot":{"additionalProperties":true,"type":"object","title":"Input Snapshot"},"edits":{"additionalProperties":true,"type":"object","title":"Edits"},"project":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Project"}},"type":"object","required":["input_snapshot","edits"],"title":"RecomputeRequest","description":"Reactive-graph edit: field edits against a project's input snapshot."},"ResetConfirmBody":{"properties":{"token":{"type":"string","maxLength":2048,"minLength":16,"title":"Token"},"new_password":{"type":"string","maxLength":200,"minLength":1,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetConfirmBody"},"ResetRequestBody":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"ResetRequestBody"},"SaveTemplateBody":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"production_type":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Production Type"},"scope":{"type":"string","maxLength":16,"title":"Scope","default":"project"}},"type":"object","required":["name"],"title":"SaveTemplateBody"},"ScriptTextRequest":{"properties":{"script_text":{"type":"string","maxLength":1000000,"title":"Script Text"},"title":{"type":"string","maxLength":180,"title":"Title","default":"Untitled"},"genre":{"type":"string","maxLength":80,"title":"Genre","default":"drama"},"project_format":{"type":"string","maxLength":80,"title":"Project Format","default":"narrative_feature"},"scale":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Scale"},"jurisdiction":{"type":"string","maxLength":40,"title":"Jurisdiction","default":"US"},"phase":{"type":"string","maxLength":60,"title":"Phase","default":"development"},"shoot_days":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Shoot Days"},"attachments":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":25},{"type":"null"}],"title":"Attachments"},"storyboard_setups":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Storyboard Setups"},"shooting_format":{"type":"string","maxLength":40,"title":"Shooting Format","default":"digital"},"production_context":{"anyOf":[{"$ref":"#/components/schemas/ProductionContext"},{"type":"null"}]},"ongoing_project":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Ongoing Project"},"director_name":{"anyOf":[{"type":"string","maxLength":180},{"type":"null"}],"title":"Director Name"},"project_statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Statement"},"director_statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Director Statement"},"beginner_mode":{"type":"boolean","title":"Beginner Mode","default":false},"coverage_notes_by_scene":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Coverage Notes By Scene"},"actor_notes_by_scene":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Actor Notes By Scene"},"uploaded_storyboard":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Uploaded Storyboard"},"scene_day_overrides":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Scene Day Overrides"},"project":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Project"}},"type":"object","required":["script_text"],"title":"ScriptTextRequest"},"SignupBody":{"properties":{"email":{"type":"string","maxLength":255,"minLength":3,"title":"Email"},"name":{"type":"string","maxLength":255,"title":"Name","default":""},"password":{"type":"string","maxLength":200,"minLength":1,"title":"Password"},"role":{"type":"string","maxLength":32,"title":"Role","default":"creator"},"accepted_terms_version":{"type":"string","maxLength":32,"title":"Accepted Terms Version","default":""}},"type":"object","required":["email","password"],"title":"SignupBody"},"SnapshotBody":{"properties":{"label":{"type":"string","maxLength":120,"title":"Label","default":""}},"type":"object","title":"SnapshotBody"},"SourceRecordInput":{"properties":{"source_id":{"type":"string","title":"Source Id"},"title":{"type":"string","title":"Title"},"source_type":{"type":"string","title":"Source Type"},"jurisdiction":{"type":"string","title":"Jurisdiction","default":"global"},"country":{"type":"string","title":"Country","default":""},"region":{"type":"string","title":"Region","default":""},"industry_scope":{"type":"string","title":"Industry Scope","default":"film"},"description":{"type":"string","title":"Description","default":""},"eligibility_data":{"additionalProperties":true,"type":"object","title":"Eligibility Data"},"requirements":{"items":{},"type":"array","title":"Requirements"},"deadlines":{"items":{},"type":"array","title":"Deadlines"},"official_url":{"type":"string","title":"Official Url","default":""},"verification_status":{"type":"string","title":"Verification Status","default":"unverified"},"confidence_score":{"type":"number","title":"Confidence Score","default":0.5},"last_reviewed":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reviewed"},"last_updated":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Updated"},"source_owner":{"type":"string","title":"Source Owner","default":"aufilm"},"source_origin":{"type":"string","title":"Source Origin","default":"manual"},"active_status":{"type":"string","title":"Active Status","default":"unknown"},"deprecation_status":{"type":"string","title":"Deprecation Status","default":"none"},"change_history":{"items":{},"type":"array","title":"Change History"}},"type":"object","required":["source_id","title","source_type"],"title":"SourceRecordInput"},"StateBody":{"properties":{"priorities":{"anyOf":[{"items":{"$ref":"#/components/schemas/PriorityBody"},"type":"array","maxItems":20},{"type":"null"}],"title":"Priorities"},"chosen_option":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Chosen Option"},"approve":{"type":"boolean","title":"Approve","default":false},"lock":{"type":"boolean","title":"Lock","default":false}},"type":"object","title":"StateBody"},"StatementDraftRequest":{"properties":{"script_text":{"type":"string","maxLength":1000000,"title":"Script Text"},"title":{"type":"string","maxLength":180,"title":"Title","default":"Untitled"},"genre":{"type":"string","maxLength":80,"title":"Genre","default":"drama"},"director_name":{"anyOf":[{"type":"string","maxLength":180},{"type":"null"}],"title":"Director Name"}},"type":"object","required":["script_text"],"title":"StatementDraftRequest"},"StatusBody":{"properties":{"status":{"type":"string","maxLength":20,"minLength":1,"title":"Status"}},"type":"object","required":["status"],"title":"StatusBody"},"TwofaPasswordBody":{"properties":{"password":{"type":"string","maxLength":200,"minLength":1,"title":"Password"}},"type":"object","required":["password"],"title":"TwofaPasswordBody"},"ValidateMoveBody":{"properties":{"scene_number":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Scene Number"},"target_day":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Target Day"},"context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Context"}},"type":"object","required":["scene_number","target_day"],"title":"ValidateMoveBody"},"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"},"VerifyEmailBody":{"properties":{"token":{"type":"string","maxLength":2048,"minLength":16,"title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailBody"},"WorkspaceItemBody":{"properties":{"dept":{"type":"string","maxLength":40,"minLength":1,"title":"Dept"},"item":{"type":"string","maxLength":200,"minLength":1,"title":"Item"},"category":{"type":"string","maxLength":40,"title":"Category","default":""},"qty":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Qty","default":1},"unit":{"type":"string","maxLength":40,"title":"Unit","default":""},"cost_note":{"type":"string","maxLength":120,"title":"Cost Note","default":""},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["dept","item"],"title":"WorkspaceItemBody"},"WorkspaceRequestBody":{"properties":{"category":{"type":"string","maxLength":40,"minLength":1,"title":"Category"},"item":{"type":"string","maxLength":200,"minLength":1,"title":"Item"},"qty":{"type":"number","maximum":10000.0,"exclusiveMinimum":0.0,"title":"Qty","default":1},"unit":{"type":"string","maxLength":40,"title":"Unit","default":""},"cost":{"type":"number","maximum":100000000.0,"minimum":0.0,"title":"Cost"},"basis":{"type":"string","maxLength":8,"title":"Basis","default":"weekly"},"note":{"type":"string","maxLength":500,"title":"Note","default":""}},"type":"object","required":["category","item","cost"],"title":"WorkspaceRequestBody"}}}}