{
    "openapi": "3.0.0",
    "info": {
        "title": "Pharlo",
        "description": "Content Delivery Service \u2014 API for managing publication assignments",
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "https://pharlo.io"
        }
    ],
    "paths": {
        "/api/v1/assignments": {
            "get": {
                "operationId": "get_api_v1_assignments_list",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "post_api_v1_assignments_create",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/assignments/{id}": {
            "get": {
                "operationId": "get_api_v1_assignments_show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "delete_api_v1_assignments_cancel",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "patch_api_v1_assignments_update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/assignments/{id}/retry": {
            "post": {
                "operationId": "post_api_v1_assignments_retry",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/assignment-upload-sessions": {
            "post": {
                "operationId": "post_api_v1_assignment_upload_sessions_create",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CreateAssignmentUploadSessionRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/register": {
            "post": {
                "operationId": "post_api_auth_register",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/login": {
            "post": {
                "operationId": "post_api_auth_login",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/me": {
            "get": {
                "operationId": "get_api_auth_me",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/profile": {
            "patch": {
                "operationId": "patch_api_auth_profile",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/change-password": {
            "post": {
                "operationId": "post_api_auth_change_password",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/onboarding": {
            "patch": {
                "operationId": "patch_api_auth_onboarding_advance",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/billing/status": {
            "get": {
                "operationId": "get_api_v1_billing_status",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/billing/pricing": {
            "get": {
                "operationId": "get_api_v1_billing_pricing",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/billing/transactions": {
            "get": {
                "operationId": "get_api_v1_billing_transactions",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/billing/org/member-limits": {
            "get": {
                "operationId": "get_api_v1_billing_org_member_limits",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/billing/org/member-limits/{userId}": {
            "patch": {
                "operationId": "patch_api_v1_billing_org_member_limit_update",
                "parameters": [
                    {
                        "name": "userId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/billing/org/usage-by-member": {
            "get": {
                "operationId": "get_api_v1_billing_org_usage_by_member",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/connections/{id}/channel-stats": {
            "get": {
                "operationId": "get_api_v1_connection_channel_stats",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/connections": {
            "get": {
                "operationId": "get_api_v1_connections_list",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/connections/{id}": {
            "get": {
                "operationId": "get_api_v1_connections_show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "patch_api_v1_connections_update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/connections/{id}/refresh-token": {
            "post": {
                "operationId": "post_api_v1_connections_refresh_token",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/connections/{id}/posts/{postId}/stats": {
            "get": {
                "operationId": "get_api_v1_connection_post_stats",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "postId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/assignments": {
            "get": {
                "operationId": "get_api_console_assignments_list",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "post_api_console_assignments_create",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/assignments/{id}": {
            "get": {
                "operationId": "get_api_console_assignments_show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "delete_api_console_assignments_cancel",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "patch_api_console_assignments_update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/assignments/{id}/retry": {
            "post": {
                "operationId": "post_api_console_assignments_retry",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/billing/status": {
            "get": {
                "operationId": "get_api_console_billing_status",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/billing/finance-state": {
            "get": {
                "operationId": "get_api_console_billing_finance_state",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/billing/portal-session": {
            "post": {
                "operationId": "post_api_console_billing_portal_session",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PortalSessionRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/billing/transactions": {
            "get": {
                "operationId": "get_api_console_billing_transactions",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/billing/paygo/quote": {
            "get": {
                "operationId": "get_api_console_billing_paygo_quote",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/billing/paygo/checkout": {
            "post": {
                "operationId": "post_api_console_billing_paygo_checkout",
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PaygoCheckoutRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/connections": {
            "get": {
                "operationId": "get_api_console_connections_list",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/connections/{id}": {
            "delete": {
                "operationId": "delete_api_console_connections_delete",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/connections/{id}/refresh-token": {
            "post": {
                "operationId": "post_api_console_connections_refresh_token",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/oauth/connect-url": {
            "post": {
                "operationId": "post_api_console_oauth_connect_url",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/oauth/status/{ticketId}": {
            "get": {
                "operationId": "get_api_console_oauth_status",
                "parameters": [
                    {
                        "name": "ticketId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/stats/overview": {
            "get": {
                "operationId": "get_api_console_stats_overview",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/stats/analytics": {
            "get": {
                "operationId": "get_api_console_stats_analytics",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/stats/recent-posts": {
            "get": {
                "operationId": "get_api_console_stats_recent_posts",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/stats/subscriber-growth": {
            "get": {
                "operationId": "get_api_console_stats_subscriber_growth",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/stats/compare": {
            "get": {
                "operationId": "get_api_console_stats_compare",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/transactions": {
            "get": {
                "operationId": "get_api_console_transactions_list",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/transactions/overview": {
            "get": {
                "operationId": "get_api_console_transactions_overview",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/transactions/export": {
            "get": {
                "operationId": "get_api_console_transactions_export",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/transactions/{transactionId}": {
            "get": {
                "operationId": "get_api_console_transactions_detail",
                "parameters": [
                    {
                        "name": "transactionId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "[0-9a-f-]{36}"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/credentials/webhook-secret/rotate": {
            "post": {
                "operationId": "post_api_console_webhook_secret_rotate",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/credentials/api-key/regenerate": {
            "post": {
                "operationId": "post_api_console_api_key_regenerate",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/credentials/test-connection": {
            "post": {
                "operationId": "post_api_console_test_connection",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/dashboard": {
            "get": {
                "operationId": "get_api_console_dashboard",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/organizations/{id}": {
            "delete": {
                "operationId": "delete_api_console_org_delete",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "patch_api_console_org_update",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/organizations/{id}/transfer": {
            "post": {
                "operationId": "post_api_console_org_transfer",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/sessions": {
            "get": {
                "operationId": "get_api_console_sessions_list",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "delete": {
                "operationId": "delete_api_console_sessions_revoke_all",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/sessions/{id}": {
            "delete": {
                "operationId": "delete_api_console_sessions_revoke",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/health": {
            "get": {
                "operationId": "get_api_v1_health",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/internal/organizations/register": {
            "post": {
                "summary": "Upsert an organization by externalId (content-delivery integer org ID).",
                "description": "Returns the delivery-api UUID for use in subsequent billing/stats calls.",
                "operationId": "post_api_v1_internal_organizations_register",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/organizations/{orgId}/invitations": {
            "get": {
                "operationId": "get_api_invitations_list",
                "parameters": [
                    {
                        "name": "orgId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "post_api_invitations_create",
                "parameters": [
                    {
                        "name": "orgId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/invitations/{token}/accept": {
            "post": {
                "operationId": "post_api_invitations_accept",
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/organizations/{orgId}/invitations/{id}": {
            "delete": {
                "operationId": "delete_api_invitations_cancel",
                "parameters": [
                    {
                        "name": "orgId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/organizations/{orgId}/invitations/{id}/resend": {
            "post": {
                "operationId": "post_api_invitations_resend",
                "parameters": [
                    {
                        "name": "orgId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/oauth/tickets": {
            "post": {
                "operationId": "post_api_v1_oauth_tickets_create",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/oauth/{platform}/authorize": {
            "get": {
                "operationId": "get_api_v1_oauth_authorize",
                "parameters": [
                    {
                        "name": "platform",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/oauth/{platform}/callback": {
            "get": {
                "operationId": "get_api_v1_oauth_callback",
                "parameters": [
                    {
                        "name": "platform",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/organizations": {
            "get": {
                "operationId": "get_api_organizations_list",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "post": {
                "operationId": "post_api_organizations_create",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/organizations/{id}": {
            "get": {
                "operationId": "get_api_organizations_show",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/organizations/{id}/members": {
            "get": {
                "operationId": "get_api_organizations_members",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/organizations/{orgId}/members/{memberId}/role": {
            "patch": {
                "operationId": "patch_api_organizations_update_member_role",
                "parameters": [
                    {
                        "name": "orgId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "memberId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/organizations/{orgId}/members/{memberId}": {
            "delete": {
                "operationId": "delete_api_organizations_remove_member",
                "parameters": [
                    {
                        "name": "orgId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "memberId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/forgot-password": {
            "post": {
                "operationId": "post_api_auth_forgot_password",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/auth/reset-password": {
            "post": {
                "operationId": "post_api_auth_reset_password",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/platforms": {
            "get": {
                "operationId": "get_api_v1_platforms_list",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/platforms/{platform}/capabilities": {
            "get": {
                "operationId": "get_api_v1_platforms_capabilities",
                "parameters": [
                    {
                        "name": "platform",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/webhooks/stripe": {
            "post": {
                "operationId": "post_api_v1_webhooks_stripe",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/webhooks/clerk": {
            "post": {
                "operationId": "post_api_v1_webhooks_clerk",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/webhooks/deliveries": {
            "get": {
                "operationId": "get_api_v1_webhooks_deliveries",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/webhooks/billing": {
            "post": {
                "operationId": "post_api_v1_webhooks_billing",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/mcp/oauth/consent-info": {
            "get": {
                "operationId": "get_mcp_oauth_consent_info",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/console/mcp/oauth/authorize": {
            "post": {
                "operationId": "post_mcp_oauth_authorize_submit",
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/public/assignment-upload-sessions/{token}/content": {
            "head": {
                "operationId": "head_api_v1_public_assignment_upload_content_head",
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            },
            "patch": {
                "operationId": "patch_api_v1_public_assignment_upload_content_patch",
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/public/assignment-upload-sessions/{token}/metadata": {
            "post": {
                "operationId": "post_api_v1_public_assignment_upload_metadata",
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/InitializeAssignmentUploadSessionMetadataRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        },
        "/api/v1/public/assignment-upload-sessions/{token}/complete": {
            "post": {
                "operationId": "post_api_v1_public_assignment_upload_complete",
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "default": {
                        "description": ""
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "CreateAssignmentUploadSessionRequest": {
                "required": [
                    "connectionId"
                ],
                "properties": {
                    "connectionId": {
                        "type": "string"
                    },
                    "fileName": {
                        "type": "string",
                        "default": null,
                        "maxLength": 255,
                        "nullable": true
                    },
                    "fileMimeType": {
                        "type": "string",
                        "default": null,
                        "maxLength": 127,
                        "nullable": true
                    },
                    "fileSizeBytes": {
                        "type": "integer",
                        "default": null,
                        "minimum": 0,
                        "exclusiveMinimum": true,
                        "nullable": true
                    }
                },
                "type": "object"
            },
            "PortalSessionRequest": {
                "properties": {
                    "returnPath": {
                        "type": "string",
                        "default": "/console/billing",
                        "maxLength": 512
                    }
                },
                "type": "object"
            },
            "PaygoCheckoutRequest": {
                "required": [
                    "amount_cents"
                ],
                "properties": {
                    "amount_cents": {
                        "type": "integer",
                        "maximum": 1000000,
                        "minimum": 500
                    }
                },
                "type": "object"
            },
            "InitializeAssignmentUploadSessionMetadataRequest": {
                "required": [
                    "fileName",
                    "fileMimeType",
                    "fileSizeBytes"
                ],
                "properties": {
                    "fileName": {
                        "type": "string",
                        "maxLength": 255
                    },
                    "fileMimeType": {
                        "type": "string",
                        "maxLength": 127
                    },
                    "fileSizeBytes": {
                        "type": "integer",
                        "minimum": 0,
                        "exclusiveMinimum": true
                    }
                },
                "type": "object"
            }
        },
        "securitySchemes": {
            "BearerAuth": {
                "type": "http",
                "description": "API key (ds_live_... or internal key)",
                "scheme": "bearer"
            }
        }
    },
    "security": [
        {
            "BearerAuth": []
        }
    ]
}
