Create a new versioned shared file in the caller's org.
Shared files default to private. Call ``file_publish`` to generate the
public share URL (``/s/{share_token}``). Each ``file_update`` creates a
new immutable version row. Pass ``work_id`` to attach it to a task
and/or ``project_id`` to attach it to a project (same ``shared_files``
row; project attachments are ``kind=artifact`` only).
``content_format='diagram'`` takes either diagram schema:
- ``teamshared.diagram/v1`` — ``body: {format: mermaid, text: "..."}``,
rendered as Mermaid. Best for flowcharts, sequences, and ER sketches.
- ``teamshared.diagram/v2`` — ``body: {format: scene, layers: [...],
nodes: [...], edges: [...]}``, rendered as a layered 3D scene where
each layer is a plane (infra / software / data by convention), each
node sits on one layer, and edges may cross layers. ``kind``
(default ``system``), ``view`` (``layers``), ``mode`` (``authored``)
and ``body.camera`` are optional. Every node needs ``id`` and
``layer``; ``shape`` is ``box`` | ``cylinder`` | ``sphere`` |
``cone``; edges are ``{from, to, label?, kind?}`` with ``kind`` one
of ``sync`` | ``async`` | ``data`` | ``depends``. Omit ``x``/``z`` to
get an automatic grid on the plane. Caps: 8 layers, 300 nodes,
600 edges, 256 KiB. Unknown keys are rejected.
ConnectorNo auth