// Generated from URSY.cloud API 1.8.3. No hand-maintained operation types. export interface Operations { get_service_info: { input: { }; output: { "schema": "ursy.cloud/service/v1"; "name": string; "version": string; "api": string; "mcp": string; "openapi": string; "developer_manifest": string; "authentication": { "mode": string; "identity_authority": string; "delegated_oauth_ready": boolean; "provisioning": string }; "privacy": { "private_results_sponsored": boolean; "private_content_in_ad_telemetry": boolean; "private_responses_cacheable": boolean }; "limits": { "upload_bytes": number; "upload_chunk_bytes": number; "upload_session_seconds": number; "download_grant_seconds": number; "request_bytes": number; "response_bytes": number; "list_page": number; "sheet_range_cells": number; "edit_operations": number; "grant_max_seconds": number; "reads_per_minute": number; "writes_per_minute": number; "idempotency_seconds": number; "edit_plan_seconds": number; "review_plan_seconds": number; "list_cursor_seconds": number; "change_cursor_seconds": number; "rate_limit_key": string }; "storage_quota_bytes": number; "unsupported": Array; "request_id"?: string } }; list_apps: { input: { }; output: { "apps": Array<{ "id": "drive" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf"; "name": string; "browser_status": string; "machine_status": string; "private": boolean; "url": string }>; "request_id"?: string } }; list_formats: { input: { }; output: { "formats": Array<{ "type": "document"; "native": string; "schema": string; "exports": Array; "limit": string } | { "type": "spreadsheet"; "native": string; "schema": string; "exports": Array; "limit": string } | { "type": "presentation"; "native": string; "schema": string; "exports": Array; "limit": string } | { "type": "note"; "native": string; "schema": string; "exports": Array; "limit": string } | { "type": "publication"; "native": string; "schema": string; "exports": Array; "limit": string } | { "type": "pdf"; "machine_processing": boolean; "browser_operations": Array; "server_ocr": boolean } | { "type": "uploaded_file"; "machine_content_read": boolean; "metadata": boolean; "max_original_bytes": number }>; "csv_export_formula_policy": string; "request_id"?: string } }; get_status: { input: { }; output: { "schema": "ursy.cloud/status/v1"; "status": "operational" | "degraded" | "maintenance"; "authentication": string; "version": string; "operation_count": number; "mcp_protocol": string; "authentication_modes": Array; "delegated_oauth_ready": boolean; "private_sponsorship": boolean; "change_feed": { "coverage": string; "legacy_browser_changes_included": boolean; "cursor_lifetime_seconds": number; "coverage_since": string | null; "resync_guidance": string }; "comment_lifecycle": boolean; "human_proposal_review": boolean; "uploads": boolean; "binary_downloads": boolean; "content_search": boolean; "sharing": boolean; "tasks": boolean; "scratch": boolean; "imports": boolean; "webhooks": boolean; "teams": boolean; "sdk": boolean; "limits": { "upload_bytes": number; "upload_chunk_bytes": number; "upload_session_seconds": number; "download_grant_seconds": number; "request_bytes": number; "response_bytes": number; "list_page": number; "sheet_range_cells": number; "edit_operations": number; "grant_max_seconds": number; "reads_per_minute": number; "writes_per_minute": number; "idempotency_seconds": number; "edit_plan_seconds": number; "review_plan_seconds": number; "list_cursor_seconds": number; "change_cursor_seconds": number; "rate_limit_key": string }; "status_meaning": string; "request_id"?: string } }; list_capabilities: { input: { }; output: { "schema": "ursy.cloud/capabilities/v1"; "capabilities": Array<{ "name": string; "method": "GET" | "POST" | "PATCH" | "DELETE"; "path": string; "description": string; "scope": string | null; "write": boolean; "risk": "R0" | "R1" | "R2" | "R3" | "R4"; "inputSchema": { [key: string]: unknown }; "outputSchema": { [key: string]: unknown }; "family"?: string; "kind"?: string }>; "request_id"?: string } }; get_schema: { input: { "name": "document" | "spreadsheet" | "presentation" | "note" | "publication" }; output: { "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; list_templates: { input: { }; output: { "templates": Array<{ "id": string; "version": string; "type": "document"; "schema": string; "content": { "kind": "docs"; "blocks": Array<{ "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> }>; "settings"?: { "page": "A4" | "Letter"; "reading": "paged" | "continuous" }; "annotations"?: Array<{ "block": number; "text": string }> } } | { "id": string; "version": string; "type": "spreadsheet"; "schema": string; "content": { "kind": "sheets"; "sheets": Array<{ "name": string; "cells": Array> }>; "formats"?: { } | Array; "validation"?: { } | Array; "widths"?: Array> | { }; "univer"?: string } } | { "id": string; "version": string; "type": "presentation"; "schema": string; "content": { "format": "ursy/slides-native"; "schemaVersion": 1; "theme": "midnight" | "daylight" | "studio"; "slides": Array<{ "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" }> } } | { "id": string; "version": string; "type": "note"; "schema": string; "content": { "title": string; "content": string; "tags"?: Array; "pinned"?: boolean; "archived"?: boolean } } | { "id": string; "version": string; "type": "publication"; "schema": string; "content": { "format": "ursy/publish-native"; "schemaVersion": 1; "pages": Array<{ "id": string; "name": string; "size": "a4" | "letter" | "square" | "business-card"; "orientation": "portrait" | "landscape"; "background": string; "elements": Array<{ "id": string; "type": "text" | "shape"; "x": number; "y": number; "w": number; "h": number; "rotation": number; "text": string; "fill": string; "color": string; "fontSize": number; "align": "left" | "center" | "right"; "weight": 400 | 600 | 700 | 800 }> }> } }>; "request_id"?: string } }; list_workspaces: { input: { }; output: { "workspaces": Array<{ [key: string]: unknown }>; "actor": { [key: string]: unknown }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; list_files: { input: { "limit"?: number; "cursor"?: string; "parent_id"?: string; "type"?: "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "name_contains"?: string; "include_trash"?: boolean }; output: { "items": Array<{ "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }>; "next_cursor": string | null; "has_more": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; search_workspace: { input: { "limit"?: number; "cursor"?: string; "parent_id"?: string; "type"?: "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "name_contains": string }; output: { "items": Array<{ "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }>; "next_cursor": string | null; "has_more": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; search_content: { input: { "query": string; "limit"?: number; "cursor"?: string; "type"?: "document" | "spreadsheet" | "presentation" | "note" | "publication" }; output: { "results": Array<{ "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "version_id": string | null; "matches": Array<{ "text": string; "anchor": { "block_id"?: string; "slide_id"?: string; "page_id"?: string; "element_id"?: string; "field"?: "title" | "body" | "notes" | "content"; "sheet_index"?: number; "row_index"?: number; "column_index"?: number; "range"?: string } }> }>; "content_is_untrusted": true; "match_mode": "case_insensitive_literal_substring"; "consistency": string; "next_cursor": string | null; "has_more": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; create_upload: { input: { "name": string; "mime": string; "size": number; "sha256": string; "parent_id"?: string; "file_id"?: string; "if_match"?: string; "idempotency_key": string }; output: { "upload": { "id": string; "state": "pending" | "completed" | "cancelled"; "name": string; "mime": string; "size": number; "sha256": string; "chunk_bytes": 1048576; "chunk_count": number; "received_bytes": number; "next_chunk_index": number; "expires_at": string; "file_id": string | null; "version_id": string | null; "chunk_url_template": string; "chunk_method": "PUT"; "authorization": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; get_upload: { input: { "upload_id": string }; output: { "upload": { "id": string; "state": "pending" | "completed" | "cancelled"; "name": string; "mime": string; "size": number; "sha256": string; "chunk_bytes": 1048576; "chunk_count": number; "received_bytes": number; "next_chunk_index": number; "expires_at": string; "file_id": string | null; "version_id": string | null; "chunk_url_template": string; "chunk_method": "PUT"; "authorization": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; complete_upload: { input: { "upload_id": string; "idempotency_key": string }; output: { "upload": { "id": string; "state": "pending" | "completed" | "cancelled"; "name": string; "mime": string; "size": number; "sha256": string; "chunk_bytes": 1048576; "chunk_count": number; "received_bytes": number; "next_chunk_index": number; "expires_at": string; "file_id": string | null; "version_id": string | null; "chunk_url_template": string; "chunk_method": "PUT"; "authorization": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; cancel_upload: { input: { "upload_id": string; "idempotency_key": string }; output: { "upload": { "id": string; "state": "pending" | "completed" | "cancelled"; "name": string; "mime": string; "size": number; "sha256": string; "chunk_bytes": 1048576; "chunk_count": number; "received_bytes": number; "next_chunk_index": number; "expires_at": string; "file_id": string | null; "version_id": string | null; "chunk_url_template": string; "chunk_method": "PUT"; "authorization": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; create_download_grant: { input: { "file_id": string; "if_match": string; "idempotency_key": string }; output: { "download": { "id": string; "file_id": string; "version_id": string; "url": string; "expires_at": string; "size": number; "sha256": string; "authorization": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; get_file_metadata: { input: { "file_id": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; read_file: { input: { "file_id": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "content": { [key: string]: unknown }; "content_is_untrusted": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; create_file: { input: { "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication"; "name": string; "parent_id"?: string; "content"?: { [key: string]: unknown }; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; update_file_metadata: { input: { "file_id": string; "name"?: string; "parent_id"?: string; "if_match": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; trash_file: { input: { "file_id": string; "if_match": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; list_versions: { input: { "file_id": string; "limit"?: number; "cursor"?: string }; output: { "versions": Array<{ [key: string]: unknown }>; "next_cursor": string | null; "has_more": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; read_version: { input: { "file_id": string; "version_id": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "version_id": string; "version": { [key: string]: unknown }; "content": { [key: string]: unknown }; "content_is_untrusted": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; propose_file_edit: { input: { "file_id": string; "if_match": string; "operations": Array<{ "op": "insert_block"; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> }; "after_id"?: string } | { "op": "replace_block"; "block_id": string; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> } } | { "op": "delete_block"; "block_id": string } | { "op": "replace_text"; "block_id": string; "find": string; "replace": string } | { "op": "set_note"; "content"?: string; "tags"?: Array } | { "op": "set_values"; "sheet_index"?: number; "range": string; "values": Array> } | { "op": "add_slide"; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "replace_slide"; "slide_id": string; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "delete_slide"; "slide_id": string } | { "op": "set_publication_text"; "page_id": string; "element_id": string; "text": string }>; "summary": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "plan": { "id": string; "file_id": string; "base_etag": string; "summary": string; "operations": Array<{ [key: string]: unknown }>; "proposed_content": { [key: string]: unknown }; "expires_at": string; "applied_version_id"?: string | null; "requires_confirmation"?: boolean; "review_status"?: "pending" | "approved" | "rejected"; "approval_url"?: string; "actor"?: { [key: string]: unknown } }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; get_edit_plan: { input: { "file_id": string; "plan_id": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "plan": { "id": string; "file_id": string; "base_etag": string; "summary": string; "operations": Array<{ [key: string]: unknown }>; "proposed_content": { [key: string]: unknown }; "expires_at": string; "applied_version_id"?: string | null; "requires_confirmation"?: boolean; "review_status"?: "pending" | "approved" | "rejected"; "approval_url"?: string; "actor"?: { [key: string]: unknown } }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; apply_file_edit: { input: { "file_id": string; "plan_id": string; "if_match": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; restore_version_plan: { input: { "file_id": string; "version_id": string; "if_match": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "plan": { "id": string; "file_id": string; "base_etag": string; "summary": string; "operations": Array<{ [key: string]: unknown }>; "proposed_content": { [key: string]: unknown }; "expires_at": string; "applied_version_id"?: string | null; "requires_confirmation"?: boolean; "review_status"?: "pending" | "approved" | "rejected"; "approval_url"?: string; "actor"?: { [key: string]: unknown } }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; list_comments: { input: { "file_id": string; "limit"?: number; "cursor"?: string }; output: { "comments": Array<{ "id": string; "file_id": string; "text": string; "anchor": { "block_id"?: string; "slide_id"?: string; "range"?: string }; "actor": { [key: string]: unknown }; "status": "open" | "resolved"; "etag": string; "created_at": string; "updated_at": string; "resolved_at": string | null }>; "content_is_untrusted": true; "next_cursor": string | null; "has_more": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; add_comment: { input: { "file_id": string; "text": string; "anchor"?: { "block_id"?: string; "slide_id"?: string; "range"?: string }; "idempotency_key": string }; output: { "comment": { "id": string; "file_id": string; "text": string; "anchor": { "block_id"?: string; "slide_id"?: string; "range"?: string }; "actor": { [key: string]: unknown }; "status": "open" | "resolved"; "etag": string; "created_at": string; "updated_at": string; "resolved_at": string | null }; "content_is_untrusted": true; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; update_comment: { input: { "file_id": string; "comment_id": string; "if_match": string; "idempotency_key": string; "text": string }; output: { "comment": { "id": string; "file_id": string; "text": string; "anchor": { "block_id"?: string; "slide_id"?: string; "range"?: string }; "actor": { [key: string]: unknown }; "status": "open" | "resolved"; "etag": string; "created_at": string; "updated_at": string; "resolved_at": string | null }; "content_is_untrusted": true; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; resolve_comment: { input: { "file_id": string; "comment_id": string; "if_match": string; "idempotency_key": string }; output: { "comment": { "id": string; "file_id": string; "text": string; "anchor": { "block_id"?: string; "slide_id"?: string; "range"?: string }; "actor": { [key: string]: unknown }; "status": "open" | "resolved"; "etag": string; "created_at": string; "updated_at": string; "resolved_at": string | null }; "content_is_untrusted": true; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; reopen_comment: { input: { "file_id": string; "comment_id": string; "if_match": string; "idempotency_key": string }; output: { "comment": { "id": string; "file_id": string; "text": string; "anchor": { "block_id"?: string; "slide_id"?: string; "range"?: string }; "actor": { [key: string]: unknown }; "status": "open" | "resolved"; "etag": string; "created_at": string; "updated_at": string; "resolved_at": string | null }; "content_is_untrusted": true; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; get_changes: { input: { "limit"?: number; "cursor"?: string }; output: { "events": Array<{ [key: string]: unknown }>; "legacy_browser_changes_included": boolean; "next_cursor": string | null; "has_more": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; export_file: { input: { "file_id": string; "format": "native" | "txt" | "markdown" | "csv" }; output: { "file_id": string; "format": "native" | "txt" | "markdown" | "csv"; "mime": string; "content": string; "bytes": number; "sha256": string; "content_is_untrusted": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; read_sheet_range: { input: { "file_id": string; "range": string; "sheet_index"?: number }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "sheet_index": number; "range": string; "values": Array>; "representation": string; "server_recalculated": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; read_document: { input: { "file_id": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "content": { "kind": "docs"; "blocks": Array<{ "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> }>; "settings"?: { "page": "A4" | "Letter"; "reading": "paged" | "continuous" }; "annotations"?: Array<{ "block": number; "text": string }> }; "content_is_untrusted": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; create_document: { input: { "name": string; "parent_id"?: string; "content"?: { "kind": "docs"; "blocks": Array<{ "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> }>; "settings"?: { "page": "A4" | "Letter"; "reading": "paged" | "continuous" }; "annotations"?: Array<{ "block": number; "text": string }> }; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; propose_document_edit: { input: { "file_id": string; "if_match": string; "operations": Array<{ "op": "insert_block"; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> }; "after_id"?: string } | { "op": "replace_block"; "block_id": string; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> } } | { "op": "delete_block"; "block_id": string } | { "op": "replace_text"; "block_id": string; "find": string; "replace": string } | { "op": "set_note"; "content"?: string; "tags"?: Array } | { "op": "set_values"; "sheet_index"?: number; "range": string; "values": Array> } | { "op": "add_slide"; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "replace_slide"; "slide_id": string; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "delete_slide"; "slide_id": string } | { "op": "set_publication_text"; "page_id": string; "element_id": string; "text": string }>; "summary": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "plan": { "id": string; "file_id": string; "base_etag": string; "summary": string; "operations": Array<{ [key: string]: unknown }>; "proposed_content": { [key: string]: unknown }; "expires_at": string; "applied_version_id"?: string | null; "requires_confirmation"?: boolean; "review_status"?: "pending" | "approved" | "rejected"; "approval_url"?: string; "actor"?: { [key: string]: unknown } }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; apply_document_edit: { input: { "file_id": string; "plan_id": string; "if_match": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; read_spreadsheet: { input: { "file_id": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "content": { "kind": "sheets"; "sheets": Array<{ "name": string; "cells": Array> }>; "formats"?: { } | Array; "validation"?: { } | Array; "widths"?: Array> | { }; "univer"?: string }; "content_is_untrusted": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; create_spreadsheet: { input: { "name": string; "parent_id"?: string; "content"?: { "kind": "sheets"; "sheets": Array<{ "name": string; "cells": Array> }>; "formats"?: { } | Array; "validation"?: { } | Array; "widths"?: Array> | { }; "univer"?: string }; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; propose_spreadsheet_edit: { input: { "file_id": string; "if_match": string; "operations": Array<{ "op": "insert_block"; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> }; "after_id"?: string } | { "op": "replace_block"; "block_id": string; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> } } | { "op": "delete_block"; "block_id": string } | { "op": "replace_text"; "block_id": string; "find": string; "replace": string } | { "op": "set_note"; "content"?: string; "tags"?: Array } | { "op": "set_values"; "sheet_index"?: number; "range": string; "values": Array> } | { "op": "add_slide"; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "replace_slide"; "slide_id": string; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "delete_slide"; "slide_id": string } | { "op": "set_publication_text"; "page_id": string; "element_id": string; "text": string }>; "summary": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "plan": { "id": string; "file_id": string; "base_etag": string; "summary": string; "operations": Array<{ [key: string]: unknown }>; "proposed_content": { [key: string]: unknown }; "expires_at": string; "applied_version_id"?: string | null; "requires_confirmation"?: boolean; "review_status"?: "pending" | "approved" | "rejected"; "approval_url"?: string; "actor"?: { [key: string]: unknown } }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; apply_spreadsheet_edit: { input: { "file_id": string; "plan_id": string; "if_match": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; read_presentation: { input: { "file_id": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "content": { "format": "ursy/slides-native"; "schemaVersion": 1; "theme": "midnight" | "daylight" | "studio"; "slides": Array<{ "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" }> }; "content_is_untrusted": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; create_presentation: { input: { "name": string; "parent_id"?: string; "content"?: { "format": "ursy/slides-native"; "schemaVersion": 1; "theme": "midnight" | "daylight" | "studio"; "slides": Array<{ "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" }> }; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; propose_presentation_edit: { input: { "file_id": string; "if_match": string; "operations": Array<{ "op": "insert_block"; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> }; "after_id"?: string } | { "op": "replace_block"; "block_id": string; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> } } | { "op": "delete_block"; "block_id": string } | { "op": "replace_text"; "block_id": string; "find": string; "replace": string } | { "op": "set_note"; "content"?: string; "tags"?: Array } | { "op": "set_values"; "sheet_index"?: number; "range": string; "values": Array> } | { "op": "add_slide"; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "replace_slide"; "slide_id": string; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "delete_slide"; "slide_id": string } | { "op": "set_publication_text"; "page_id": string; "element_id": string; "text": string }>; "summary": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "plan": { "id": string; "file_id": string; "base_etag": string; "summary": string; "operations": Array<{ [key: string]: unknown }>; "proposed_content": { [key: string]: unknown }; "expires_at": string; "applied_version_id"?: string | null; "requires_confirmation"?: boolean; "review_status"?: "pending" | "approved" | "rejected"; "approval_url"?: string; "actor"?: { [key: string]: unknown } }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; apply_presentation_edit: { input: { "file_id": string; "plan_id": string; "if_match": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; read_note: { input: { "file_id": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "content": { "title": string; "content": string; "tags"?: Array; "pinned"?: boolean; "archived"?: boolean }; "content_is_untrusted": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; create_note: { input: { "name": string; "parent_id"?: string; "content"?: { "title": string; "content": string; "tags"?: Array; "pinned"?: boolean; "archived"?: boolean }; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; propose_note_edit: { input: { "file_id": string; "if_match": string; "operations": Array<{ "op": "insert_block"; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> }; "after_id"?: string } | { "op": "replace_block"; "block_id": string; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> } } | { "op": "delete_block"; "block_id": string } | { "op": "replace_text"; "block_id": string; "find": string; "replace": string } | { "op": "set_note"; "content"?: string; "tags"?: Array } | { "op": "set_values"; "sheet_index"?: number; "range": string; "values": Array> } | { "op": "add_slide"; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "replace_slide"; "slide_id": string; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "delete_slide"; "slide_id": string } | { "op": "set_publication_text"; "page_id": string; "element_id": string; "text": string }>; "summary": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "plan": { "id": string; "file_id": string; "base_etag": string; "summary": string; "operations": Array<{ [key: string]: unknown }>; "proposed_content": { [key: string]: unknown }; "expires_at": string; "applied_version_id"?: string | null; "requires_confirmation"?: boolean; "review_status"?: "pending" | "approved" | "rejected"; "approval_url"?: string; "actor"?: { [key: string]: unknown } }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; apply_note_edit: { input: { "file_id": string; "plan_id": string; "if_match": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; read_publication: { input: { "file_id": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "content": { "format": "ursy/publish-native"; "schemaVersion": 1; "pages": Array<{ "id": string; "name": string; "size": "a4" | "letter" | "square" | "business-card"; "orientation": "portrait" | "landscape"; "background": string; "elements": Array<{ "id": string; "type": "text" | "shape"; "x": number; "y": number; "w": number; "h": number; "rotation": number; "text": string; "fill": string; "color": string; "fontSize": number; "align": "left" | "center" | "right"; "weight": 400 | 600 | 700 | 800 }> }> }; "content_is_untrusted": boolean; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; create_publication: { input: { "name": string; "parent_id"?: string; "content"?: { "format": "ursy/publish-native"; "schemaVersion": 1; "pages": Array<{ "id": string; "name": string; "size": "a4" | "letter" | "square" | "business-card"; "orientation": "portrait" | "landscape"; "background": string; "elements": Array<{ "id": string; "type": "text" | "shape"; "x": number; "y": number; "w": number; "h": number; "rotation": number; "text": string; "fill": string; "color": string; "fontSize": number; "align": "left" | "center" | "right"; "weight": 400 | 600 | 700 | 800 }> }> }; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; propose_publication_edit: { input: { "file_id": string; "if_match": string; "operations": Array<{ "op": "insert_block"; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> }; "after_id"?: string } | { "op": "replace_block"; "block_id": string; "block": { "id"?: string; "type": "paragraph" | "heading1" | "heading2" | "bullet" | "number" | "quote" | "divider" | "table"; "segments": Array<{ "text": string; "bold"?: boolean; "italic"?: boolean; "underline"?: boolean; "link"?: string }>; "rows"?: Array>> } } | { "op": "delete_block"; "block_id": string } | { "op": "replace_text"; "block_id": string; "find": string; "replace": string } | { "op": "set_note"; "content"?: string; "tags"?: Array } | { "op": "set_values"; "sheet_index"?: number; "range": string; "values": Array> } | { "op": "add_slide"; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "replace_slide"; "slide_id": string; "slide": { "id": string; "title": string; "body": string; "notes": string; "layout": "title" | "title-body" | "quote" | "blank"; "background": "ink" | "ocean" | "plum" | "forest" | "sunrise" | "paper" } } | { "op": "delete_slide"; "slide_id": string } | { "op": "set_publication_text"; "page_id": string; "element_id": string; "text": string }>; "summary": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "plan": { "id": string; "file_id": string; "base_etag": string; "summary": string; "operations": Array<{ [key: string]: unknown }>; "proposed_content": { [key: string]: unknown }; "expires_at": string; "applied_version_id"?: string | null; "requires_confirmation"?: boolean; "review_status"?: "pending" | "approved" | "rejected"; "approval_url"?: string; "actor"?: { [key: string]: unknown } }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; apply_publication_edit: { input: { "file_id": string; "plan_id": string; "if_match": string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; "request_id"?: string; "replayed"?: boolean; [key: string]: unknown } }; create_scratch: { input: { "name": string; "type": "document" | "spreadsheet" | "presentation" | "note" | "publication"; "content"?: { [key: string]: unknown }; "idempotency_key": string }; output: { "draft": { "id": string; "name": string; "type": "document" | "spreadsheet" | "presentation" | "note" | "publication"; "expires_at": string; "state": "draft" | "promoted"; "file_id": string | null; "content": { [key: string]: unknown }; "content_is_untrusted": true }; [key: string]: unknown } }; list_scratch: { input: { }; output: { "drafts": Array<{ "id": string; "name": string; "type": "document" | "spreadsheet" | "presentation" | "note" | "publication"; "expires_at": string; "state": "draft" | "promoted"; "file_id": string | null; "content": { [key: string]: unknown }; "content_is_untrusted": true }>; [key: string]: unknown } }; get_scratch: { input: { "draft_id": string }; output: { "draft": { "id": string; "name": string; "type": "document" | "spreadsheet" | "presentation" | "note" | "publication"; "expires_at": string; "state": "draft" | "promoted"; "file_id": string | null; "content": { [key: string]: unknown }; "content_is_untrusted": true }; [key: string]: unknown } }; discard_scratch: { input: { "draft_id": string; "idempotency_key": string }; output: { "discarded": true; [key: string]: unknown } }; promote_scratch: { input: { "draft_id": string; "parent_id"?: string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; [key: string]: unknown } }; import_file: { input: { "name": string; "format": "txt" | "markdown" | "csv"; "text": string; "parent_id"?: string; "idempotency_key": string }; output: { "file": { "schema": "ursy.cloud/file/v1"; "id": string; "workspace_id": string; "parent_id": string | null; "name": string; "type": "folder" | "document" | "spreadsheet" | "presentation" | "note" | "publication" | "pdf" | "uploaded_file"; "current_version_id": string | null; "etag": string; "state": "active" | "trashed"; "created_at": string; "updated_at": string; "human_url": string }; [key: string]: unknown } }; create_share_plan: { input: { "file_id": string; "if_match": string; "mode": "specific_person" | "link_view" | "link_comment" | "link_edit" | "public_view"; "recipient_sub"?: string; "expires_in": number; "idempotency_key": string }; output: { "plan": { "id": string; "file_id": string; "mode": string; "base_etag": string; "expires_at": string; "share_expires_at": string; "requires_confirmation": true; "approval_url": string; "applied_share_id": string | null }; [key: string]: unknown } }; get_share_plan: { input: { "file_id": string; "share_plan_id": string }; output: { "plan": { "id": string; "file_id": string; "mode": string; "base_etag": string; "expires_at": string; "share_expires_at": string; "requires_confirmation": true; "approval_url": string; "applied_share_id": string | null }; [key: string]: unknown } }; apply_share_plan: { input: { "file_id": string; "share_plan_id": string; "if_match": string; "idempotency_key": string }; output: { "share": { "id": string; "file_id": string; "mode": "specific_person" | "link_view" | "link_comment" | "link_edit" | "public_view"; "url": string; "expires_at": string; "revoked": boolean; "indexable": false }; [key: string]: unknown } }; list_shares: { input: { "file_id": string }; output: { "shares": Array<{ "id": string; "file_id": string; "mode": "specific_person" | "link_view" | "link_comment" | "link_edit" | "public_view"; "url": string; "expires_at": string; "revoked": boolean; "indexable": false }>; [key: string]: unknown } }; revoke_share: { input: { "share_id": string; "idempotency_key": string }; output: { "revoked": true; [key: string]: unknown } }; create_workspace_export: { input: { "include_versions"?: boolean; "include_comments"?: boolean; "idempotency_key": string }; output: { "task": { "id": string; "type": "workspace_export"; "state": "confirmation_required" | "queued" | "running" | "completed" | "failed" | "cancelled" | "expired"; "processed_files": number; "result_bytes": number; "expires_at": string; "approval_url": string | null; "error_code": string | null; "content_is_untrusted": true }; [key: string]: unknown } }; get_task: { input: { "task_id": string }; output: { "task": { "id": string; "type": "workspace_export"; "state": "confirmation_required" | "queued" | "running" | "completed" | "failed" | "cancelled" | "expired"; "processed_files": number; "result_bytes": number; "expires_at": string; "approval_url": string | null; "error_code": string | null; "content_is_untrusted": true }; [key: string]: unknown } }; list_tasks: { input: { }; output: { "tasks": Array<{ "id": string; "type": "workspace_export"; "state": "confirmation_required" | "queued" | "running" | "completed" | "failed" | "cancelled" | "expired"; "processed_files": number; "result_bytes": number; "expires_at": string; "approval_url": string | null; "error_code": string | null; "content_is_untrusted": true }>; [key: string]: unknown } }; cancel_task: { input: { "task_id": string; "idempotency_key": string }; output: { "task": { "id": string; "type": "workspace_export"; "state": "confirmation_required" | "queued" | "running" | "completed" | "failed" | "cancelled" | "expired"; "processed_files": number; "result_bytes": number; "expires_at": string; "approval_url": string | null; "error_code": string | null; "content_is_untrusted": true }; [key: string]: unknown } }; create_task_download: { input: { "task_id": string; "idempotency_key": string }; output: { "download": { "task_id": string; "url": string; "expires_at": string; "authorization": string }; [key: string]: unknown } }; create_webhook: { input: { "url": string; "idempotency_key": string }; output: { "webhook": { "id": string; "url": string; "state": "pending" | "active" | "disabled" | "revoked"; "failures": number; "last_error": string }; "secret": string; "verification": string; [key: string]: unknown } }; list_webhooks: { input: { }; output: { "webhooks": Array<{ "id": string; "url": string; "state": "pending" | "active" | "disabled" | "revoked"; "failures": number; "last_error": string }>; [key: string]: unknown } }; revoke_webhook: { input: { "webhook_id": string; "idempotency_key": string }; output: { "revoked": true; [key: string]: unknown } }; list_team_memberships: { input: { }; output: { "memberships": Array<{ [key: string]: unknown }>; "authority": "https://ursy.id/oidc"; [key: string]: unknown } }; create_team: { input: { "idempotency_key": string }; output: { "result": { [key: string]: unknown }; [key: string]: unknown } }; update_team_member: { input: { "organisation_id": string; "subject": string; "role": "owner" | "admin" | "editor" | "commenter" | "viewer"; "state": "ACTIVE" | "SUSPENDED" | "REVOKED"; "expected_version": number; "idempotency_key": string }; output: { "result": { [key: string]: unknown }; [key: string]: unknown } }; get_api_metrics: { input: { }; output: { "schema": "ursy.cloud/aggregate-usage/v1"; "window_days": 7; "rows": Array<{ "day": string; "operation": string; "surface": string; "status_class": number; "count": number; "max_ms": number; "mean_ms": number }>; "privacy": string; "coverage": string; [key: string]: unknown } }; } export declare class CloudError extends Error {status:number;code:string;requestId?:string;retryable:boolean;details:Record;} export declare class Cloud { constructor(options?:{token?:string|(()=>string|Promise);base?:string;fetch?:typeof fetch}); call(name:K,args:Operations[K]['input'],options?:{signal?:AbortSignal}):Promise; files: {list(args:Operations["list_files"]["input"]):Promise;get(args:Operations["get_file_metadata"]["input"]):Promise;create(args:Operations["create_file"]["input"]):Promise;}; documents: {read(args:Operations["read_document"]["input"]):Promise;create(args:Operations["create_document"]["input"]):Promise;proposeEdit(args:Operations["propose_document_edit"]["input"]):Promise;applyEdit(args:Operations["apply_document_edit"]["input"]):Promise;}; sheets: {read(args:Operations["read_spreadsheet"]["input"]):Promise;readRange(args:Operations["read_sheet_range"]["input"]):Promise;}; comments: {add(args:Operations["add_comment"]["input"]):Promise;list(args:Operations["list_comments"]["input"]):Promise;resolve(args:Operations["resolve_comment"]["input"]):Promise;}; changes: {list(args:Operations["get_changes"]["input"]):Promise;}; scratch: {create(args:Operations["create_scratch"]["input"]):Promise;list(args:Operations["list_scratch"]["input"]):Promise;promote(args:Operations["promote_scratch"]["input"]):Promise;discard(args:Operations["discard_scratch"]["input"]):Promise;}; upload(input:{bytes:Uint8Array|ArrayBuffer;name:string;mime:string;parent_id?:string;file_id?:string;if_match?:string;idempotency_key?:string}):Promise; resumeUpload(id:string,bytes:Uint8Array|ArrayBuffer):Promise; download(url:string):Promise; pages(name:K,args:Operations[K]['input'],key?:string):AsyncGenerator; } export declare function authorityMetadata(fetcher?:typeof fetch):Promise>; export declare function startDeviceAuthorization(options:{client_id?:string;scope:string;authorization_details:unknown[];fetch?:typeof fetch}):Promise>; export declare function pollDeviceAuthorization(options:{client_id?:string;device_code:string;fetch?:typeof fetch}):Promise>;